Commit fa0389e9 by 杨树贤

修复生成账号luoji

parent a1b9107d
...@@ -82,6 +82,7 @@ class SupplierAccountService ...@@ -82,6 +82,7 @@ class SupplierAccountService
if (strpos($supplier->stockup_type, (string)SupplierChannelModel::SUPPLIER_STOCKUP_TYPE_XINLIAN) === false) { if (strpos($supplier->stockup_type, (string)SupplierChannelModel::SUPPLIER_STOCKUP_TYPE_XINLIAN) === false) {
return; return;
} }
//新建账号 //新建账号
SupplierAccountModel::insert([ SupplierAccountModel::insert([
'supplier_id' => $supplierId, 'supplier_id' => $supplierId,
......
...@@ -34,8 +34,8 @@ class SupplierAuditService ...@@ -34,8 +34,8 @@ class SupplierAuditService
'reject_reason' => $rejectReason, 'reject_reason' => $rejectReason,
]; ];
//自动创建芯链账号 //自动创建芯链账号
SupplierAccountService::autoCreateYunxinAccount($supplierId);
$result = $model->where('supplier_id', $supplierId)->update($update); $result = $model->where('supplier_id', $supplierId)->update($update);
SupplierAccountService::autoCreateYunxinAccount($supplierId);
//如果是待复审状态,通过的话还要将是否需要复审状态置为0 //如果是待复审状态,通过的话还要将是否需要复审状态置为0
} elseif ($supplier['status'] === SupplierChannelModel::STATUS_NEED_REVIEW) { } elseif ($supplier['status'] === SupplierChannelModel::STATUS_NEED_REVIEW) {
......
...@@ -96,7 +96,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function () ...@@ -96,7 +96,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
}); });
Route::match(['get', 'post'], '/test', function () { Route::match(['get', 'post'], '/test', function () {
SupplierChannelModel::where('supplier_id', '18715')->delete(); SupplierAccountService::autoCreateYunxinAccount(18780);
// DataService::initSupplierReceiptNationId(); // DataService::initSupplierReceiptNationId();
// SupplierAccountService::initYunxinAccountName(); // SupplierAccountService::initYunxinAccountName();
// DataService::syncSupplierToErp(); // DataService::syncSupplierToErp();
......
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