作者 chencheng

kaquana-1

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