Commit d2096a09 by 杨树贤

优化调试

parent 753e5143
...@@ -54,7 +54,6 @@ class SupplierSyncController extends BaseSyncController ...@@ -54,7 +54,6 @@ class SupplierSyncController extends BaseSyncController
public function receiveEntityResult(Request $request) public function receiveEntityResult(Request $request)
{ {
$resultData = $request->all(); $resultData = $request->all();
Log::error(json_encode($resultData)); Log::error(json_encode($resultData));
//$resultData['result_map'] = !empty($resultData['result_map']) ? json_decode($resultData['result_map'], true) : []; //$resultData['result_map'] = !empty($resultData['result_map']) ? json_decode($resultData['result_map'], true) : [];
...@@ -92,7 +91,6 @@ class SupplierSyncController extends BaseSyncController ...@@ -92,7 +91,6 @@ class SupplierSyncController extends BaseSyncController
->update($data); ->update($data);
$this->syncResponse(0, '获取审核结果广播成功'); $this->syncResponse(0, '获取审核结果广播成功');
} }
(new SyncSupplierService())->receiveEntityResult($resultData); (new SyncSupplierService())->receiveEntityResult($resultData);
$this->syncResponse(0, '获取审核结果广播成功'); $this->syncResponse(0, '获取审核结果广播成功');
......
...@@ -275,7 +275,6 @@ class SyncSupplierService ...@@ -275,7 +275,6 @@ class SyncSupplierService
$logContent = $reason = "被驳回供应商,系统自动拉入禁止交易,请联系“风控部门”进行确认. 风险类型 : $warningType 风险词 : $warningKeyword 风险数据 : $warningData"; $logContent = $reason = "被驳回供应商,系统自动拉入禁止交易,请联系“风控部门”进行确认. 风险类型 : $warningType 风险词 : $warningKeyword 风险数据 : $warningData";
} }
} }
//去修改供应商入驻相关的数据 //去修改供应商入驻相关的数据
(new ChainService())->changeChainIsEntity($supplierName, $isEntityResult); (new ChainService())->changeChainIsEntity($supplierName, $isEntityResult);
...@@ -283,13 +282,13 @@ class SyncSupplierService ...@@ -283,13 +282,13 @@ class SyncSupplierService
$supplier = SupplierChannelModel::where('supplier_name', $supplierName) $supplier = SupplierChannelModel::where('supplier_name', $supplierName)
->where('status', '!=', SupplierChannelModel::STATUS_PENDING)->first(); ->where('status', '!=', SupplierChannelModel::STATUS_PENDING)->first();
if (empty($supplier)) { if (empty($supplier)) {
Log::error('供应商不存在');
return true; return true;
} }
$supplier = $supplier->toArray(); $supplier = $supplier->toArray();
$supplierId = $supplier['supplier_id']; $supplierId = $supplier['supplier_id'];
//先把修改之前的状态给记录下来 //先把修改之前的状态给记录下来
$status = $supplier['status']; $status = $supplier['status'];
$preStatus = null; $preStatus = null;
$redis = new RedisModel(); $redis = new RedisModel();
if ($isEntity) { if ($isEntity) {
......
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