mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 22:40:48 +00:00
调整电子面单打印
This commit is contained in:
parent
e28589635c
commit
74f69f8cbf
@ -146,15 +146,14 @@ class AccessTokenServeService extends HttpService
|
||||
* @param bool $isHeader
|
||||
* @return array|mixed
|
||||
*/
|
||||
public function httpRequest(string $url, array $data = [], string $method = 'POST', bool $isHeader = true)
|
||||
public function httpRequest(string $url, array $data = [], string $method = 'POST', bool $isHeader = true, array $header = [])
|
||||
{
|
||||
$header = [];
|
||||
if ($isHeader) {
|
||||
$this->getToken();
|
||||
if (!$this->accessToken) {
|
||||
throw new ApiException(410086);
|
||||
}
|
||||
$header = ['Authorization:Bearer-' . $this->accessToken];
|
||||
$header = array_merge($header, ['Authorization:Bearer-' . $this->accessToken]);
|
||||
}
|
||||
|
||||
$res = $this->request($this->get($url), $method, $data, $header);
|
||||
|
||||
@ -168,7 +168,7 @@ class Express extends BaseExpress
|
||||
if (!$data['siid']) {
|
||||
$param['print_type'] = 'IMAGE';
|
||||
}
|
||||
return $this->accessToken->httpRequest(self::EXPRESS_DUMP, $param, 'POST');
|
||||
return $this->accessToken->httpRequest(self::EXPRESS_DUMP, $param, 'POST', true, ['version:v1.1']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -28223,6 +28223,9 @@ CREATE TABLE IF NOT EXISTS `eb_store_order` (
|
||||
`delivery_code` varchar(50) NOT NULL DEFAULT '' COMMENT '快递公司编码',
|
||||
`delivery_type` varchar(32) NOT NULL DEFAULT '' COMMENT '发货类型',
|
||||
`delivery_id` varchar(64) NOT NULL DEFAULT '' COMMENT '快递单号/手机号',
|
||||
`kuaidi_label` varchar(255) NOT NULL DEFAULT '' COMMENT '快递单号图片',
|
||||
`kuaidi_task_id` varchar(64) NOT NULL DEFAULT '' COMMENT '快递单任务id',
|
||||
`kuaidi_order_id` varchar(64) NOT NULL DEFAULT '' COMMENT '快递单订单号',
|
||||
`fictitious_content` varchar(500) NOT NULL DEFAULT '' COMMENT '虚拟发货内容',
|
||||
`delivery_uid` int(11) NOT NULL DEFAULT '0' COMMENT '配送员id',
|
||||
`gain_integral` decimal(8,2) UNSIGNED NOT NULL DEFAULT '0.00' COMMENT '消费赚取积分',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user