作者 王智

222

@@ -155,12 +155,12 @@ class Order extends Api @@ -155,12 +155,12 @@ class Order extends Api
155 $user_id = $this->is_token($this->request->header()); 155 $user_id = $this->is_token($this->request->header());
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.00) { 158 + if ($quota != null) {
159 echo '1'; 159 echo '1';
160 - }else{ 160 + } else {
161 echo '1'; 161 echo '1';
162 } 162 }
163 -die; 163 + die;
164 if ($param['total'] > $quota) { 164 if ($param['total'] > $quota) {
165 $this->error('下单金额大于总额度'); 165 $this->error('下单金额大于总额度');
166 die; 166 die;