瀏覽代碼

分享图片

Silent 6 年之前
父節點
當前提交
35e929c336
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Admin/OrderController.php

+ 1 - 1
app/Http/Controllers/Admin/OrderController.php

@@ -91,7 +91,7 @@ class OrderController extends Controller
             return $this->showWarning('找不到订单');
             return $this->showWarning('找不到订单');
         }
         }
         $item->remark = $request->input('remark', '');
         $item->remark = $request->input('remark', '');
-        if(!$item->remark) {
+        if(!$item->save()) {
             return $this->showWarning('保存失败');
             return $this->showWarning('保存失败');
         }
         }
         return $this->showMessage('操作成功');
         return $this->showMessage('操作成功');