作者 王智

xiugai

@@ -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);