问题: 多商户电子面单预览模板为空
修复:
修改路径:
app\controller\admin\system\serve\Export.php
修改代码:
public function getExportTemp(CrmebServeServices $services){
$com = $this->request->param('com');
if (!$com) return app('json')->fail('请输入快递公司编号');
$data['is_shipment'] = merchantConfig($this->request->merId(),'mer_dump_type') ? 0 : 1;
return app('json')->success($services->express()->expr_dump($data));
}
增加代码
修改路径:
crmeb\services\express\storage\Express.php
增加方法:
public function expr_dump(array $params){
return $this->accessToken->httpRequest(self::EXPRESS_TEMP_V2, $params,'get');
}