Commit cad59330 by 杨树贤

取消禁用逻辑

parent e78f1734
......@@ -706,14 +706,14 @@ class SupplierApiController extends Controller
$channelModel = new SupplierChannelModel();
//先找出原来的状态
$redis = new RedisModel();
$previousStatus = $redis->hget('supplier_status_before_disable', $supplierId);
// $previousStatus = $redis->hget('supplier_status_before_disable', $supplierId);
$result = $channelModel->where('supplier_id', $supplierId)->update([
'status' => $previousStatus,
'status' => SupplierChannelModel::STATUS_PENDING,
'update_time' => time(),
]);
if ($result) {
//删除redis状态
$redis->hdel('supplier_status_before_disable', $supplierId);
// $redis->hdel('supplier_status_before_disable', $supplierId);
$logService = new LogService();
SupplierChannelModel::where('supplier_id', $supplierId)->update([
'disable_reason' => '',
......
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