where("id", $ssid)->find(); if (!$super_sign) { exit(include_once IN_ROOT . "source/pack/error/404.php"); } $item = db("item")->where("type=4")->order("id")->find(); $link = SafeRequest("link", "get"); if ($link) { setcookie("downlink", $link, time() + 3600); } elseif (isset($_COOKIE["downlink"])) { $link = $_COOKIE["downlink"]; } $buylist = db("super_code")->where("udid='" . $super_sign["udid"] . "' and user_id=" . $super_sign["user_id"])->order("id desc")->select(); ?> 超级签下载码购买 -<?php echo IN_NAME;?> ">
< 返回下载 超级签下载码购买

使用说明:一个下载码对应一个手机,验证使用后,其它手机不能再使用此下载码。

选择支付方式
立即支付
您的购买记录:
$v) { $use_status = $v["use_time"] ? "已使用" : "未使用"; if ($v["use_time"] && $v["cert_iss"]) { $cert_st = db("super_cert")->where("iss", $v["cert_iss"])->value("status"); if (!$cert_st || $cert_st == -1) { $use_status = "已失效"; } } ?>
where("pay_id", $trade_id)->find(); $gourl = "/index/super_buy?ssid=" . $ssid; if (!$payinfo || !$pay_type || !in_array($pay_type, json_decode(IN_PAY, true))) { exit(include_once IN_ROOT . "source/pack/error/404.php"); } $ssl = is_ssl() ? "https://" : "http://"; if ($pay_type == "1") { include_once IN_ROOT . "source/pack/pay/alipay/alipay.class.php"; $returnUrl = $ssl . $_SERVER["HTTP_HOST"] . IN_PATH . "index/super_buy?ssid=" . $ssid; $notifyUrl = $ssl . $_SERVER["HTTP_HOST"] . IN_PATH . "pay/index/alipay_notify"; $outTradeNo = $payinfo["pay_id"]; $payAmount = $payinfo["pay_money"]; $orderName = $payinfo["pay_tag"]; $signType = "MD5"; $pid = IN_ALIPAYID; $privateKey = IN_ALIPAYKEY; $aliPay = new \AlipayService($pid, $returnUrl, $notifyUrl, $signType, $privateKey); $sHtml = $aliPay->doPay($payAmount, $outTradeNo, $orderName, $returnUrl, $notifyUrl, 1); echo $sHtml; exit; } if ($pay_type == "2") { define("IN_WXUID", $this->userid); include_once IN_ROOT . "source/pack/pay/weixin/WxPay.Api.php"; include_once IN_ROOT . "source/pack/pay/weixin/WxPay.NativePay.php"; $input = new \WxPayUnifiedOrder(); $input->SetBody($payinfo["pay_tag"]); $input->SetOut_trade_no($payinfo["pay_id"]); $input->SetTotal_fee($payinfo["pay_money"] * 100); $input->SetTime_start(date("YmdHis")); $input->SetTime_expire(date("YmdHis", time() + 600)); $input->SetNotify_url($ssl . $_SERVER["HTTP_HOST"] . IN_PATH . "pay/index/wxpay_notify"); $input->SetTrade_type("NATIVE"); $input->SetProduct_id($payinfo["in_id"]); $notify = new \NativePay(); $result = $notify->GetPayUrl($input); if ($result["return_code"] == "FAIL") { $err = $result["return_msg"]; exit(include_once IN_ROOT . "source/pack/error/404.php"); } else { $code_url = $result["code_url"]; } } if ($pay_type == "3" || $pay_type == "4") { $type = $pay_type == "3" ? 'alipaywap' : 'wxh5'; $codepay_id = IN_CODEPAYID; $codepay_key = IN_CODEPAYKEY; $returnUrl = $ssl . $_SERVER["HTTP_HOST"] . IN_PATH . "pay/index/codepay_return"; $notifyUrl = $ssl . $_SERVER["HTTP_HOST"] . IN_PATH . "pay/index/codepay_notify"; $data = array("id" => $codepay_id, "pay_id" => $payinfo["pay_id"], "type" => $type, "price" => $payinfo["pay_money"], "param" => "", "notify_url" => $notifyUrl, "return_url" => $returnUrl); $userid=$codepay_id; $userkey=$codepay_key; $version='1.0'; $customerid=$userid; $sdorderno=$payinfo["pay_id"]; $total_fee=number_format($payinfo["pay_money"],2,'.',''); $paytype=$type; $bankcode=''; $notifyurl = $notifyUrl; $returnurl = $returnUrl; $remark=''; $get_code=''; $sign=md5('version='.$version.'&customerid='.$customerid.'&total_fee='.$total_fee.'&sdorderno='.$sdorderno.'¬ifyurl='.$notifyurl.'&returnurl='.$returnurl.'&'.$userkey); $native = array( "version" => $version, "customerid" => $customerid, "sdorderno" => $sdorderno, "total_fee" => $total_fee, "paytype" => $paytype, "notifyurl" => $notifyurl, "returnurl" => $returnurl, "remark" => $remark, "bankcode" => $bankcode, "sign" => $sign, "get_code" => $get_code, ); $html = '
'; foreach ($native as $key => $val) { $html .= ''; } $html .= '
'; $html .= ''; echo $html;die; var_dump($notifyUrl);die; redirect($url); } if ($pay_type == "5") { include_once IN_ROOT . "source/pack/pay/f2fpay/alipay.class.php"; $notifyUrl = $ssl . $_SERVER["HTTP_HOST"] . IN_PATH . "pay/index/f2fpay_notify"; $orderName = $payinfo["pay_tag"]; $config = ["appId" => IN_F2FPAYID, "signType" => IN_F2FPAY_STYPE, "privateKey" => IN_F2FPAY_MKEY, "publicKey" => IN_F2FPAY_AKEY, "notifyUrl" => $notifyUrl]; $data = ["body" => $orderName, "subject" => $payinfo["pay_tag"], "out_trade_no" => $payinfo["pay_id"], "total_amount" => $payinfo["pay_money"]]; $aliPay = new \AlipayService($config); $result = $aliPay->qrpay($data); if ($result["code"] != "10000") { $err = $result["msg"]; exit(include_once IN_ROOT . "source/pack/error/404.php"); } else { $code_url = $result["qr_code"]; } } if ($pay_type == "7") { $api = "https://admin.zhanzhangfu.com/order/createOrder"; $postDatas = array("price" => $payinfo["pay_money"], "name" => $payinfo["pay_tag"], "thirduid" => $payinfo["pay_id"], "remarks" => $payinfo["pay_tag"], "callbackurl" => $ssl . $_SERVER["HTTP_HOST"] . IN_PATH . "pay/index/zzpay_notify"); $headers = array("Payment-Key:" . IN_ZZPAY_AppKey, "Payment-Secret:" . IN_ZZPAY_AppSecret); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $api); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, $postDatas); $output = curl_exec($ch); $zzpaydata = json_decode($output, true); curl_close($ch); if ($zzpaydata["code"] != 10001) { $err = $zzpaydata["msg"]; exit(include_once IN_ROOT . "source/pack/error/404.php"); } } ?> 超级签下载码购买 -<?php echo IN_NAME;?> ">
< 返回超级签下载码购买

支付说明:请保存支付二维码扫手机,然后扫码选择相册中二维码进行支付,支付完成后,会自动跳转到购买记录页面。

* 请您尽快完成支付

"> ">

订单名称:

订单号:

" id="orderId">
订单支付有效期
20秒后自动获取支付结果

打开支付宝或微信[扫一扫]