|
|
|
@ -16,6 +16,7 @@ use app\api\controller\Controller; |
|
|
|
|
use app\api\model\dealer\Apply as DealerApplyModel; |
|
|
|
|
use app\api\model\dealer\User as DealerUserModel; |
|
|
|
|
use app\api\service\User as UserService; |
|
|
|
|
use app\common\enum\dealer\apply\ApplyStatus as ApplyStatusEnum; |
|
|
|
|
use cores\exception\BaseException; |
|
|
|
|
use think\db\exception\DataNotFoundException; |
|
|
|
|
use think\db\exception\DbException; |
|
|
|
@ -134,6 +135,7 @@ class Apply extends Controller |
|
|
|
|
return $this->renderError('所在城市不能为空'); |
|
|
|
|
} |
|
|
|
|
$data = compact('business', 'city', 'real_name', 'mobile', 'shop_type', 'shop_name', 'business', 'city'); |
|
|
|
|
$data['apply_status'] = ApplyStatusEnum::WAIT; |
|
|
|
|
$model = new DealerApplyModel; |
|
|
|
|
if ($model->editApplyServiceProviders($data)) { |
|
|
|
|
return $this->renderSuccess('更新成功'); |
|
|
|
|