pull/5/head
wanghousheng 7 months ago
parent 6623cc1d2e
commit 28caa20851
  1. 1
      app/api/controller/Wholesaler.php
  2. 1
      app/api/controller/dealer/Apply.php

@ -254,6 +254,7 @@ class Wholesaler extends Controller
$data = compact('company_name', 'credit_code', 'city_id', 'province_id', 'door_img_id', 'business', 'card_no', 'avatar_id'); $data = compact('company_name', 'credit_code', 'city_id', 'province_id', 'door_img_id', 'business', 'card_no', 'avatar_id');
$data = array_merge($data, compact('username', 'mobile', 'card_back_img_id', 'card_front_img_id', 'license_img_id')); $data = array_merge($data, compact('username', 'mobile', 'card_back_img_id', 'card_front_img_id', 'license_img_id'));
$data['status'] = WholesalerEnum::AUDITING; $data['status'] = WholesalerEnum::AUDITING;
$data['remake'] = null;
if ((new Apply())->edit($data)) { if ((new Apply())->edit($data)) {
return $this->renderSuccess('操作成功'); return $this->renderSuccess('操作成功');
} }

@ -136,6 +136,7 @@ class Apply extends Controller
} }
$data = compact('business', 'city', 'real_name', 'mobile', 'shop_type', 'shop_name', 'business', 'city'); $data = compact('business', 'city', 'real_name', 'mobile', 'shop_type', 'shop_name', 'business', 'city');
$data['apply_status'] = ApplyStatusEnum::WAIT; $data['apply_status'] = ApplyStatusEnum::WAIT;
$data['reject_reason'] = null;
$model = new DealerApplyModel; $model = new DealerApplyModel;
if ($model->editApplyServiceProviders($data)) { if ($model->editApplyServiceProviders($data)) {
return $this->renderSuccess('更新成功'); return $this->renderSuccess('更新成功');

Loading…
Cancel
Save