Commit 53652d51 by mushishixian

审核转正

parent 1859d837
......@@ -6,6 +6,7 @@ namespace App\Http\Services;
//后台用户相关信息服务
use App\Http\Transformers\SupplierShareApplyTransformer;
use App\Model\SupplierChannelModel;
use App\Model\SupplierShareApplyModel;
//用于判断是否已经查看的服务
......@@ -140,6 +141,11 @@ class SupplierShareApplyService
if ($statusName == 'pass') {
$contactService = new SupplierContactService();
$contactService->createContactByChannelUid($apply['supplier_id'], $apply['apply_code_id']);
//然后自动转正
$supplierModel = new SupplierChannelModel();
$supplier = $supplierModel->where('supplier_id', $apply['supplier_id'])->first()->toArray();
$supplierService = new SupplierService();
$supplierService->autoChangeIsType($supplier);
}
}
return $applyModel->where('id', $id)->update($apply);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment