20240120-ljl-routeConfig
ljl 10 months ago
parent a8298cbb28
commit 36ad9ac841

@ -291,6 +291,14 @@ class PrintSettingController extends AbstractApiController {
return $this->renderSuccess();
}
/**
* @api GET 获取平多多面单账户
*/
public function getPddWayBillUserMap() {
$userMap = $this->expressTplService->getPddWayBillUserMap($this->mallId);
return $this->renderSuccess(['userMap' => $userMap]);
}
/**
* @api POST 设置默认模板
* @param string tplId * 模板id

@ -252,6 +252,5 @@ class ExpressTplRepository extends AbstractRepository {
'waybill_account' => serialize($account),
'gmt_modified' => \ZcDbEval::now()
], 'op_user_express_tpl_id = %i and `mall_id` = %s', $expressTplId, $mallId);
}
}

@ -707,7 +707,7 @@ class ExpressTplService extends AbstractService {
$userList = $this->wbUserMallDao->getListByMallId($mallId);
$mallInfo = $this->mallRepository->getMallInfo($mallId);
$userMap = [
0 => $mallInfo['mallName']
'' => $mallInfo['mallName']
];
foreach ($userList as $user) {
$userMap[$user['wbUserId']] = $user['userName'].'(站外授权)';

Loading…
Cancel
Save