<commit_before><?php
namespace Sanyc\WxPay\sdk;

/**
 * 
 * 接口调用结果类
 * @author widyhu
 *
 */
class WxPayResults extends WxPayDataBase
{
    /**
     * 
     * 检测签名
     */
    public function CheckSign()
    {
        //fix异常
        if(!$this->IsSignSet()){
            throw new WxPayException("签名错误！");
        }
        
        $sign = $this->MakeSign();
        if($this->GetSign() == $sign){
            return true;
        }
        throw new WxPayException("签名错误！");
    }
    
    /**
     * 
     * 使用数组初始化
     * @param array $array
     */
    public function FromArray($array)
    {<commit_msg>签名错误提示<commit_after><?php
namespace Sanyc\WxPay\sdk;

/**
 * 
 * 接口调用结果类
 * @author widyhu
 *
 */
class WxPayResults extends WxPayDataBase
{
    /**
     * 
     * 检测签名
     */
    public function CheckSign()
    {
        //fix异常
        if(!$this->IsSignSet()){
            throw new WxPayException("签名错误a！");
        }
        
        $sign = $this->MakeSign();
        if($this->GetSign() == $sign){
            return true;
        }
        throw new WxPayException("签名错误b！");
    }
    
    /**
     * 
     * 使用数组初始化
     * @param array $array
     */
    public function FromArray($array)
    {
{'fraction_non_alphanumeric': 0.14674361088211046, 'fraction_numerical': 0.0, 'mean_word_length': 1.5665961945031712, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5491395', 'n_tokens_mistral': 450, 'n_tokens_neox': 468, 'n_words': 70}