getRow("select * from pre_user where uid='$uid' limit 1"); if(!$userrow || $userrow['status']==0 || $userrow['pay']==0)showerror('当前商户不存在或已被封禁'); if($conf['cert_force']==1 && $userrow['cert']==0){ showerror('当前商户未完成实名认证,无法收款'); } $_SESSION['paypage_uid'] = $uid; $direct = '0'; $type = check_paytype(); if($type){ $submitData = \lib\Channel::submit($type, $userrow['gid']); $apptype = explode(',',$submitData['apptype']); if($type == 'alipay' && in_array('4',$apptype)){ $openId = alipayOpenId($submitData['channel']); $direct = '1'; }elseif($type == 'wxpay' && in_array('2',$apptype)){ $openId = weixinOpenId($submitData['channel']); $direct = '1'; }elseif($type == 'qqpay' && in_array('2',$apptype)){ $direct = '1'; } $_SESSION['paypage_typeid'] = $submitData['typeid']; $_SESSION['paypage_channel'] = $submitData['channel']; $_SESSION['paypage_rate'] = $submitData['rate']; } $codename = !empty($userrow['codename'])?$userrow['codename']:$userrow['username']; $csrf_token = md5(mt_rand(0,999).time()); $_SESSION['paypage_token'] = $csrf_token; ?>
| 1 | 2 | 3 | |
| 4 | 5 | 6 | 确认支付 |
| 7 | 8 | 9 | |
| 0 | . | ||