瀏覽代碼

新增自定义字段接口

chenxiqiang 6 年之前
父節點
當前提交
393817dda1
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      manage-server/app/Http/Controllers/CommonController.php

+ 6
- 0
manage-server/app/Http/Controllers/CommonController.php 查看文件

@@ -120,6 +120,12 @@ class CommonController extends Controller
120 120
             $comment->show = 0;
121 121
             $comment->wechat_id = $wechat_id;
122 122
             $comment->save();
123
+
124
+            $record = $this->getRecord($order_type, $order_id);
125
+            $record->comment_id = $comment->id;
126
+            $record->status = 4;
127
+            $record->save();
128
+
123 129
             return Response()->json([
124 130
                 "status" => 0,
125 131
                 "message" => "保存成功!"

Loading…
取消
儲存