|
@@ -133,7 +133,7 @@ class YLYService extends HttpService implements ProviderInterface
|
|
|
* @param string $order_id
|
|
|
* @return bool|mixed
|
|
|
*/
|
|
|
- public function orderPrinting(string $order_id = '', int $errorCount = 0)
|
|
|
+ public function orderPrinting(string $order_id = '', int $errorCount = 0, $store_id = 0)
|
|
|
{
|
|
|
$request = self::postRequest($this->apiUrl . 'print/index', [
|
|
|
'client_id' => $this->client_id,
|
|
@@ -150,8 +150,8 @@ class YLYService extends HttpService implements ProviderInterface
|
|
|
var_dump($request);
|
|
|
if (isset($request['error']) && in_array($request['error'], [18, 14]) && $errorCount == 0) {
|
|
|
CacheModel::delectDbCache('YLY_access_token');
|
|
|
- $this->getAccessToken();
|
|
|
- return $this->orderPrinting($order_id, 1);
|
|
|
+ $this->getAccessToken($store_id);
|
|
|
+ return $this->orderPrinting($order_id, 1, $store_id);
|
|
|
}
|
|
|
return $request;
|
|
|
}
|