Переглянути джерело

新增自定义字段接口

chenxiqiang 6 роки тому
джерело
коміт
393817dda1

+ 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…
Відмінити
Зберегти