作者 王智

222

@@ -156,14 +156,10 @@ class Order extends Api @@ -156,14 +156,10 @@ class Order extends Api
156 $param = $this->request->param(); 156 $param = $this->request->param();
157 $quota = Db::name('user')->where('id', $user_id)->value('sy_quota'); 157 $quota = Db::name('user')->where('id', $user_id)->value('sy_quota');
158 if ($quota != null) { 158 if ($quota != null) {
159 - echo '1';  
160 - } else {  
161 - echo '2';  
162 - }  
163 - die;  
164 - if ($param['total'] > $quota) {  
165 - $this->error('下单金额大于总额度');  
166 - die; 159 + if ($param['total'] > $quota) {
  160 + $this->error('下单金额大于总额度');
  161 + die;
  162 + }
167 } 163 }
168 $arr = json_decode(htmlspecialchars_decode($param['data']), true); 164 $arr = json_decode(htmlspecialchars_decode($param['data']), true);
169 foreach ($arr as $k => $v) { 165 foreach ($arr as $k => $v) {