add:记录商户入驻日志
This commit is contained in:
parent
460e1b9fff
commit
f8a0a098f3
@ -362,6 +362,7 @@ class CompanyController extends BaseAdminController
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$params = $this->request->param();
|
$params = $this->request->param();
|
||||||
|
Log::info(['商户入驻请求', $params]);
|
||||||
if (empty($params['company_name'])) {
|
if (empty($params['company_name'])) {
|
||||||
throw new Exception('商户名称不能为空');
|
throw new Exception('商户名称不能为空');
|
||||||
}
|
}
|
||||||
@ -403,6 +404,7 @@ class CompanyController extends BaseAdminController
|
|||||||
}
|
}
|
||||||
return $this->success('成功', [], 1, 1);
|
return $this->success('成功', [], 1, 1);
|
||||||
} catch (Exception $exception) {
|
} catch (Exception $exception) {
|
||||||
|
Log::error(['商户入驻请求失败', $exception->getMessage()]);
|
||||||
return $this->fail($exception->getMessage());
|
return $this->fail($exception->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user