|
|
@@ -14,11 +14,13 @@ class BasicService extends BaseService
|
|
|
/**
|
|
|
* Query shop information
|
|
|
*/
|
|
|
- public function queryShop(string $shopNo): ApiResponse
|
|
|
+ public function queryShop(?string $shopNo = null): ApiResponse
|
|
|
{
|
|
|
- return $this->call('shop.php', [
|
|
|
- 'shop_no' => $shopNo,
|
|
|
- ]);
|
|
|
+ $params = [];
|
|
|
+ if ($shopNo !== null) {
|
|
|
+ $params['shop_no'] = $shopNo;
|
|
|
+ }
|
|
|
+ return $this->call('shop.php', $params);
|
|
|
}
|
|
|
|
|
|
/**
|