6.0 保存银联参数出错:Unable to open file

6.0 保存银联参数出错:Unable to open file_第1张图片

保存出错:Unable to open file!

6.0版本与5版的路径已经不同,这个原因就是路径造成的

路径:\app\system\pay\admin      admin_pay.class.php

6.0 保存银联参数出错:Unable to open file_第2张图片

    /**
     * 【银联】重写配置文件
     */
    protected function CreatUnionPayConfig($unionpay_config) {
        global $_M;
        $log_level = $unionpay_config['log_level'] ? 'PhpLog::DEBUG' : 'PhpLog::OFF';
        //$file = PATH_WEB . $this->ChangeStrType('app/system/web/pay/unionpay/SDKConfig.php');
		$file = PATH_WEB . $this->ChangeStrType('app/system/pay/web/unionpay/SDKConfig.php');
        makefile($file);
        $myfile = fopen($file, "w") or die("Unable to open file!");
        $code = "";
        fwrite($myfile, $code);
        fclose($myfile);
    }

app/system/web/pay/  改成  app/system/pay/web/



同时修改pay.class.php文件

路径:\app\system\pay\web

6.0 保存银联参数出错:Unable to open file_第3张图片

    /**
      * 重写web类的load_url_unique方法,获取前台特有URL
      */
    protected function load_url_unique() {
        global $_M;
        parent::load_url_unique();
        $_M['url']['own_func'] = $_M['url']['site'].'app/system/pay/web/include/function/';
        $_M['url']['own_class'] = $_M['url']['site'].'app/system/pay/web/include/class/';
//        $_M['url']['own_func'] = $_M['url']['site'].'app/system/web/pay/include/function/';
//        $_M['url']['own_class'] = $_M['url']['site'].'app/system/web/pay/include/class/';
        $_M['url']['pay_notify'] = $_M['url']['site'].'pay/notify.php';
        $_M['url']['pay_return'] = $_M['url']['site'].'pay/return.php';
        
		$_M['url']['tem'] = $_M['url']['site'].'app/system/pay/web/templates/met/';
        //$_M['url']['tem'] = $_M['url']['site'].'app/system/web/pay/templates/met/';
        if($_M['lang'] != $_M['config']['met_index_type']){
            $lang = "?lang={$_M['lang']}";
        }
        $lang = "?lang={$_M['lang']}";
        $_M['url']['login'] = $_M['url']['site']."member/login.php{$lang}";
        $_M['url']['register'] = $_M['url']['site']."member/register_include.php{$lang}";
        $_M['url']['register_userok'] = $_M['url']['site']."member/register_include.php?lang={$_M['lang']}&a=douserok";
        $_M['url']['getpassword'] = $_M['url']['site']."member/getpassword.php";
        $_M['url']['profile'] = $_M['url']['site']."member/basic.php{$lang}"; 
        $_M['url']['profile_safety'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=dosafety"; 
        $_M['url']['pass_save'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=dopasssave"; 
        $_M['url']['mailedit'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=doemailedit"; 
        $_M['url']['maileditok'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=doemailok"; 
        $_M['url']['profile_safety_emailadd'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=dosafety_emailadd"; 
        $_M['url']['profile_safety_telok'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=dosafety_telok"; 
        $_M['url']['profile_safety_telvalid'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=dosafety_telvalid"; 
        $_M['url']['profile_safety_teladd'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=dosafety_teladd"; 
        $_M['url']['profile_safety_teledit'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=dosafety_teledit"; 
        $_M['url']['info_save'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=doinfosave";
        $_M['url']['valid_email_repeat'] = $_M['url']['site']."member/basic.php?lang={$_M['lang']}&a=dovalid_email"; 
        $_M['url']['valid_email'] = $_M['url']['site']."member/register_include.php?lang={$_M['lang']}&a=doemailvild"; 
        $_M['url']['valid_phone'] = $_M['url']['site']."member/register_include.php?lang={$_M['lang']}&a=dophonecode"; 
        $_M['url']['login_check'] = $_M['url']['site']."member/login.php?lang={$_M['lang']}&a=dologin";	
        $_M['url']['register_save'] = $_M['url']['site']."member/register_include.php?lang={$_M['lang']}&a=dosave";	
        $_M['url']['password_email'] = $_M['url']['site']."member/getpassword.php?lang={$_M['lang']}&a=doemail";
        $_M['url']['password_valid'] = $_M['url']['site']."member/getpassword.php?lang={$_M['lang']}&a=dovalid";
        $_M['url']['password_telvalid'] = $_M['url']['site']."member/getpassword.php?lang={$_M['lang']}&a=dotelvalid";
        $_M['url']['password_valid_phone'] = $_M['url']['site']."member/getpassword.php?lang={$_M['lang']}&a=dophonecode";
        $_M['url']['login_out'] = $_M['url']['site']."member/login.php?lang={$_M['lang']}&a=dologout";	
        $_M['url']['login_other'] = $_M['url']['site']."member/login.php?lang={$_M['lang']}&a=doother";	
        $_M['url']['login_other_register'] = $_M['url']['site']."member/login.php?lang={$_M['lang']}&a=dologin_other_register";	
        $_M['url']['login_other_info'] = $_M['url']['site']."member/login.php?lang={$_M['lang']}&a=dologin_other_info";	
    }

你可能感兴趣的:(MetInfo系统)