浏览代码

修改评价管理的认证

ChenWuJie 4 年之前
父节点
当前提交
bc7d86d78d
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      app/Admin/Actions/backstage/Evaluate/Ignore.php
  2. 1 1
      app/Admin/Actions/backstage/Evaluate/Pass.php

+ 1 - 1
app/Admin/Actions/backstage/Evaluate/Ignore.php

xqd
@@ -13,7 +13,7 @@ class Ignore extends RowAction
     public function handle(Model $model)
     {
         // $model ...
-        Evaluate::where('order_id',$model->order_id)->update(['status'=>3]);
+        Evaluate::where('id',$model->id)->update(['status'=>3]);
         return $this->response()->success('忽略成功')->refresh();
     }
 

+ 1 - 1
app/Admin/Actions/backstage/Evaluate/Pass.php

xqd
@@ -13,7 +13,7 @@ class Pass extends RowAction
     public function handle(Model $model)
     {
         // $model ...
-        Evaluate::where('order_id',$model->order_id)->update(['status'=>2]);
+        Evaluate::where('id',$model->id)->update(['status'=>2]);
         return $this->response()->success('审核通过.')->refresh();
     }