20240120-ljl-routeConfig
ljl 10 months ago
parent 3aa22dc8cc
commit 3560132b27

@ -523,7 +523,7 @@ class PrintSettingController extends AbstractApiController {
* @param int change * 是否刷新(0/1)
*/
public function getUserExpressTplAuthCode() {
$authCode = $this->expressTplService->getUserExpressTplAuthCode($this->mallId, $_GET['authCode'], !empty($_GET['change']));
$authCode = $this->expressTplService->getUserExpressTplAuthCode($this->mallId, $_GET['tplId'], !empty($_GET['change']));
return $this->renderSuccess(['authCode' => $authCode]);
}

@ -666,7 +666,7 @@ class ExpressTplService extends AbstractService {
private function generateUserExpressTplAuthCode($mallId, $tplId) {
if(CommonTool::anyEmpty($mallId, $tplId)){
return new CheckClientException('参数错误');
throw new CheckClientException('参数错误');
}
$uuid = CommonTool::getUuidName();
@ -688,7 +688,7 @@ class ExpressTplService extends AbstractService {
public function getUserExpressTplAuthCode($mallId, $tplId, $isChange = false) {
if(CommonTool::anyEmpty($mallId, $tplId)){
return new CheckClientException('参数错误');
throw new CheckClientException('参数错误');
}
if ($isChange) {
return $this->generateUserExpressTplAuthCode($mallId, $tplId);

Loading…
Cancel
Save