app/controller/checkout.php

(开头部分) 22KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
namespace WY\app\controller;

use WY\app\libs\Controller;
use WY\app\libs\Http;
use WY\app\model\Pushorder;
use WY\app\model\Checkacc;
if (!defined('WY_ROOT')) {
    exit;
}
class checkout extends Controller
{
    public $paytpe = '';
    public $bankcode = '';
    public $sign = '';
    public $orders = '';
    function __construct()
    {
        parent::__construct();
        if ($this->config['is_checkout_state'] == 1) {
            $this->put('retmsg.php', array('msg' => '收银台暂时关闭,请联系客服!'));
            exit;
        }
        if ($this->config['is_checkout_jump'] && $this->config['checkout_jump_url'] && $this->config['checkout_jump_url'] != $this->req->server('HTTP_HOST') && isset($_REQUEST)) {
            $urlstr = '';
            foreach ($_REQUEST as $key => $val) {
                $urlstr .= $urlstr ? '&' : '';
                $urlstr .= $key . '=' . $val;
            }
            header('location:http://' . $this->config['checkout_jump_url'] . '/checkout?' . $urlstr);
            exit;
        }
        $this->checkacc = new Checkacc();
    }
    public function index()
    {
        $version = '1.0';
        $customerid = $this->req->request('customerid');
        $sdorderno = $this->req->request('sdorderno');
        $total_fee = $this->req->request('total_fee');
        $notifyurl = $this->req->request('notifyurl');
        $returnurl = $this->req->request('returnurl');
        $remark = $this->req->request('remark');
        $sign = $this->req->request('sign');
        if ($version == '' || $customerid == '' || $sdorderno == '' || $total_fee == '' || $notifyurl == '' || $returnurl == '' || $sign == '') {
            $ret['code'] = '200';
            $ret['msg'] = $this->setConfig->retMsg($ret['code']);
            $this->put('retmsg.php', $ret);
            exit;
        }
        if (strlen($sdorderno) > 50) {
            $ret['code'] = '203';
            $ret['msg'] = $this->setConfig->retMsg($ret['code']);
            $this->put('retmsg.php', $ret);
            exit;
        }
//        if ($total_fee > 5000) {
//            $ret['code'] = '207';
//            $ret['msg'] = $this->setConfig->retMsg($ret['code']);
//            $this->put('retmsg.php', $ret);
后面还有 375 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。