Commit 25534aec by 杨树贤

防止更新时间问题

parent a43ca413
...@@ -76,11 +76,9 @@ class SupplierSyncController extends BaseSyncController ...@@ -76,11 +76,9 @@ class SupplierSyncController extends BaseSyncController
$data['block_reason'] = '一体化系统黑名单供应商'; $data['block_reason'] = '一体化系统黑名单供应商';
$data['is_entity'] = -1; $data['is_entity'] = -1;
$data['update_time'] = time(); $data['update_time'] = time();
$result = SupplierChannelModel::where('supplier_name', $resultData['company_name']) SupplierChannelModel::where('supplier_name', $resultData['company_name'])
->update($data); ->update($data);
if ($result) { $this->syncResponse(0, '获取审核结果广播成功');
$this->syncResponse(0, '获取审核结果广播成功');
}
} }
(new SyncSupplierService())->receiveEntityResult($resultData['company_name'], $resultData['result']); (new SyncSupplierService())->receiveEntityResult($resultData['company_name'], $resultData['result']);
......
...@@ -82,5 +82,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function () ...@@ -82,5 +82,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
}); });
Route::match(['get', 'post'], '/test', function () { Route::match(['get', 'post'], '/test', function () {
(new \App\Http\Services\SyncSupplierService())->receiveEntityResult('深圳市嘉洛兴实业发展有限公司',1); (new \App\Http\Services\SyncSupplierService())->receiveEntityResult('中山市汉仁电子有限公司',-2);
}); });
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