修改电子面单打印

This commit is contained in:
liaofei 2023-05-11 10:10:10 +08:00
parent ed851f3e43
commit e62cee0192
2 changed files with 16 additions and 0 deletions

View File

@ -51,6 +51,16 @@ class AccessTokenServeService extends HttpService
*/
protected $apiHost = 'http://sms.crmeb.net/api/';
/**
* @var string
*/
protected $sandBoxApi = 'https://api_v2.crmeb.net/';
/**
* @var bool
*/
protected $sandBox = true;
/**
* 登录接口
*/
@ -166,6 +176,9 @@ class AccessTokenServeService extends HttpService
*/
public function get(string $apiUrl = '')
{
if ($this->sandBox) {
return $this->sandBoxApi . $apiUrl;
}
return $this->apiHost . $apiUrl;
}
}

View File

@ -165,6 +165,9 @@ class Express extends BaseExpress
if ($expressData['check_man'] == 1) $param['checkMan'] = $expressData['courier_name'];
if ($expressData['partner_name'] == 1) $param['partnerName'] = $expressData['customer_name'];
if ($expressData['is_code'] == 1) $param['code'] = $expressData['code_name'];
if (!$data['siid']) {
$param['print_type'] = 'IMAGE';
}
return $this->accessToken->httpRequest(self::EXPRESS_DUMP, $param, 'POST');
}