|
|
|
@ -160,6 +160,13 @@ class ExpressTplService extends AbstractService {
|
|
|
|
|
CheckClient::checkEmpty($tplId, null, '模板id不能为空');
|
|
|
|
|
$expressTpl = $this->expressTplRepository->getUserExpressTplById($mallId, $tplId);
|
|
|
|
|
CheckClient::checkEmpty($expressTpl, null, '模板不存在');
|
|
|
|
|
|
|
|
|
|
$account = $this->buildWaybillAccount($expressTpl, $params);
|
|
|
|
|
|
|
|
|
|
CheckClient::checkAnyEmpty('保存账号数据,参数错误', $tplId, $account);
|
|
|
|
|
$affRow = $this->expressTplRepository->saveExpressWaybillAccount($mallId, $tplId, $account);
|
|
|
|
|
|
|
|
|
|
CheckClient::checkIsFalse($affRow, '修改网点信息失败');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private function buildWaybillAccount($expressTpl, $data) {
|
|
|
|
@ -191,12 +198,7 @@ class ExpressTplService extends AbstractService {
|
|
|
|
|
|
|
|
|
|
private function buildPddCloudWaybillAccount($params) {
|
|
|
|
|
return [
|
|
|
|
|
'branchCode' => $params['branchCode'],
|
|
|
|
|
'branchName' => $params['branchName'],
|
|
|
|
|
'customerCode' => $params['customerCode'],
|
|
|
|
|
'branchAddress' => $params['branchAddress'],
|
|
|
|
|
'orderType' => $params['orderType'],
|
|
|
|
|
'payType' => $params['payType'],
|
|
|
|
|
'serviceList' => $params['serviceList'],
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|