Commit 3b4afffc by 杨树贤

加入更多判断

parent c83402a1
...@@ -57,6 +57,7 @@ class SupplierAuditService ...@@ -57,6 +57,7 @@ class SupplierAuditService
]); ]);
} }
} else { } else {
SupplierAccountService::autoCreateYunxinAccount($supplierId);
//剩下的就是普通的审核 //剩下的就是普通的审核
$result = $model->where('supplier_id', $supplierId)->update([ $result = $model->where('supplier_id', $supplierId)->update([
'update_time' => time(), 'update_time' => time(),
......
...@@ -96,21 +96,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function () ...@@ -96,21 +96,7 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
}); });
Route::match(['get', 'post'], '/test', function () { Route::match(['get', 'post'], '/test', function () {
$updateData = [ SupplierAccountService::autoCreateYunxinAccount(18708);
'波斯尼亚和黑塞哥维那' => 'BA',
'中非共和国' => 'CF',
'民主刚果' => 'CD',
'马其顿' => 'MK',
'几内亚(比绍)' => 'GW',
'密克罗尼西亚' => 'FM',
'俄罗斯' => 'RU',
'南苏丹' => 'SS',
'阿拉伯联合酋长国' => 'AE',
];
foreach ($updateData as $chineseName => $englishCode) {
NationModel::where('name_cn', $chineseName)->update(['international_code' => $englishCode]);
}
// DataService::initSupplierNationId(); // DataService::initSupplierNationId();
// DataService::initSupplierReceiptNationId(); // DataService::initSupplierReceiptNationId();
// SupplierAccountService::initYunxinAccountName(); // SupplierAccountService::initYunxinAccountName();
......
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