瀏覽代碼

新增自定义字段接口

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
             $comment->show = 0;
120
             $comment->show = 0;
121
             $comment->wechat_id = $wechat_id;
121
             $comment->wechat_id = $wechat_id;
122
             $comment->save();
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
             return Response()->json([
129
             return Response()->json([
124
                 "status" => 0,
130
                 "status" => 0,
125
                 "message" => "保存成功!"
131
                 "message" => "保存成功!"

Loading…
取消
儲存