作者 chencheng

kaquana-1

@@ -279,7 +279,7 @@ class Client extends Base @@ -279,7 +279,7 @@ class Client extends Base
279 //每个微信用户只能购买一次一个活动 279 //每个微信用户只能购买一次一个活动
280 $count = Db::name('verification_order')->where(['user_id'=>$this->auth->id,'type'=>['<>','0']])->count(); 280 $count = Db::name('verification_order')->where(['user_id'=>$this->auth->id,'type'=>['<>','0']])->count();
281 if($count >=1){ 281 if($count >=1){
282 - //$this->error("该活动仅限购买1次!"); 282 + $this->error("该活动仅限购买1次!");
283 } 283 }
284 $phone=$this->postParam['phone']; 284 $phone=$this->postParam['phone'];
285 $name=$this->postParam['name']; 285 $name=$this->postParam['name'];
@@ -320,7 +320,7 @@ class Wechat extends Api @@ -320,7 +320,7 @@ class Wechat extends Api
320 $out_trade_no = $order_no; 320 $out_trade_no = $order_no;
321 $total_fee = $order_info['price'] * 100; 321 $total_fee = $order_info['price'] * 100;
322 //测试支付 322 //测试支付
323 - $total_fee = mt_rand(1,10);//测试支付1分钱 323 + //$total_fee = mt_rand(1,10);//测试支付1分钱
324 //测试结束 324 //测试结束
325 $app = WehcatModule::getInstance($order_info['verification_store_id'])->initWechatPay(); 325 $app = WehcatModule::getInstance($order_info['verification_store_id'])->initWechatPay();
326 $result = $app->order->unify([ 326 $result = $app->order->unify([