作者 王智

222

@@ -156,10 +156,14 @@ class Order extends Api @@ -156,10 +156,14 @@ 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 != 0) { 158 if ($quota != 0) {
159 - if ($param['total'] > $quota) {  
160 - $this->error('下单金额大于总额度');  
161 - die;  
162 - } 159 + echo '1';
  160 + }else{
  161 + echo '1';
  162 + }
  163 +die;
  164 + if ($param['total'] > $quota) {
  165 + $this->error('下单金额大于总额度');
  166 + die;
163 } 167 }
164 $arr = json_decode(htmlspecialchars_decode($param['data']), true); 168 $arr = json_decode(htmlspecialchars_decode($param['data']), true);
165 foreach ($arr as $k => $v) { 169 foreach ($arr as $k => $v) {