正在显示
1 个修改的文件
包含
10 行增加
和
10 行删除
@@ -43,16 +43,16 @@ class Order extends Api | @@ -43,16 +43,16 @@ class Order extends Api | ||
43 | public function InsertOrder() | 43 | public function InsertOrder() |
44 | { | 44 | { |
45 | $UserId = $this->is_token($this->request->header()); | 45 | $UserId = $this->is_token($this->request->header()); |
46 | - //是否首次下单 | ||
47 | - $FirstPay = Db::name('order')->where('user_id', $UserId)->where('status', 'IN', '1,2,3,4,5')->find(); | ||
48 | - if (empty($FirstPay)) { | ||
49 | - Db::name('user')->where('id', $UserId)->update( | ||
50 | - [ | ||
51 | - 'is_new' => 1, | ||
52 | - 'updatetime' => time() | ||
53 | - ] | ||
54 | - ); | ||
55 | - } | 46 | +// //是否首次下单 |
47 | +// $FirstPay = Db::name('order')->where('user_id', $UserId)->where('status', 'IN', '1,2,3,4,5')->find(); | ||
48 | +// if (empty($FirstPay)) { | ||
49 | +// Db::name('user')->where('id', $UserId)->update( | ||
50 | +// [ | ||
51 | +// 'is_new' => 1, | ||
52 | +// 'updatetime' => time() | ||
53 | +// ] | ||
54 | +// ); | ||
55 | +// } | ||
56 | $params = $this->request->param(); | 56 | $params = $this->request->param(); |
57 | //Json 转 Array | 57 | //Json 转 Array |
58 | $JsonArray = json_decode(htmlspecialchars_decode($params['json']), true); | 58 | $JsonArray = json_decode(htmlspecialchars_decode($params['json']), true); |
-
请 注册 或 登录 后发表评论