更新
This commit is contained in:
parent
8c99d97ae5
commit
0fdfa7daa3
@ -68,8 +68,6 @@ class MerchantIntention extends BaseController
|
||||
$adminRepository = app()->make(MerchantAdminRepository::class);
|
||||
if ($adminRepository->fieldExists('account', $data['phone']))
|
||||
throw new ValidateException('手机号已是管理员,不可申请');
|
||||
// 数据表的village_id为int型,前端传的是village_code,可能超过11位,int最大可存储11位,导致sql报错。 转换为主键id存储
|
||||
$data['village_id'] = Db::name('geo_village')->where('village_code', $data['village_id'])->value('village_id');
|
||||
$intention = $this->repository->create($data);
|
||||
SwooleTaskService::admin('notice', [
|
||||
'type' => 'new_intention',
|
||||
|
Loading…
x
Reference in New Issue
Block a user