<commit_before><?php

/**
 * 支付接口
 *
 * @copyright: lltao.com
 * @author   : weelion <<EMAIL>>
 * @version  : 1.0
 */
namespace Classes;

class Payment {

    private static $config = [
                    'notifyUrl' => 'http://www.lltao.com/payment/notify',
                    'returnUrl' => 'http://www.lltao.com/payment/return',
                    'type' => [
                        'alipay' => ['id' => '2088411000022006','key' => '<KEY>'],
                    ],
                ];

    public static function Instance($type) {

        $types = array_keys(self::$config['type']);


        if(!in_array($type, $types)) {
            throw new Exception ($type . '支付类型不存在');
        }

        $class = ucfirst($type);

        return new $class(self::$config['notifyUrl'], self::$config['returnUrl'], self::$config['type'][$type]);
    }
}



?><commit_msg>修复支付错误<commit_after><?php

/**
 * 支付接口
 *
 * @copyright: lltao.com
 * @author   : weelion <<EMAIL>>
 * @version  : 1.0
 */
namespace Classes;

class Payment {

    private static $config = [
                    'notifyUrl' => 'http://www.lltao.com/payment/notify',
                    'returnUrl' => 'http://www.lltao.com/payment/return',
                    'type' => [
                        'alipay' => ['id' => '2088411000022006','key' => '<KEY>'],
                    ],
                ];

    public static function Instance($type) {

        $types = array_keys(self::$config['type']);


        if(!in_array($type, $types)) {
            throw new Exception ($type . '支付类型不存在');
        }

        $class = ucfirst($type);

        return new \Classes\$class(self::$config['notifyUrl'], self::$config['returnUrl'], self::$config['type'][$type]);
    }
}



?>
{'fraction_non_alphanumeric': 0.19009216589861752, 'fraction_numerical': 0.020737327188940093, 'mean_word_length': 1.919327731092437, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7469658', 'n_tokens_mistral': 591, 'n_tokens_neox': 554, 'n_words': 90}