- Contract.php: 返回合约账户余额(balance_contract) - My.php: 地址管理增加BTC/ETH - AppContract.php: 一键平仓(closeall) - AppProxy.php: 代理专属注册链接 + 分级权限(L1/L2) - site.php: 手续费减半(0.018→0.009) - agent_permission_setup.sql: 代理权限SQL - crypto_news_crawler.py: 新闻自动采集脚本
37 lines
1.2 KiB
PHP
Executable File
37 lines
1.2 KiB
PHP
Executable File
<?php
|
|
|
|
namespace addons\kefu\library\WechatCrypto;
|
|
|
|
/**
|
|
* error code 说明.
|
|
* <ul>
|
|
* <li>-40001: 签名验证错误</li>
|
|
* <li>-40002: xml解析失败</li>
|
|
* <li>-40003: sha加密生成签名失败</li>
|
|
* <li>-40004: encodingAesKey 非法</li>
|
|
* <li>-40005: appid 校验错误</li>
|
|
* <li>-40006: aes 加密失败</li>
|
|
* <li>-40007: aes 解密失败</li>
|
|
* <li>-40008: 解密后得到的buffer非法</li>
|
|
* <li>-40009: base64加密失败</li>
|
|
* <li>-40010: base64解密失败</li>
|
|
* <li>-40011: 生成xml失败</li>
|
|
* </ul>
|
|
*/
|
|
class ErrorCode
|
|
{
|
|
public static $OK = 0;
|
|
public static $ValidateSignatureError = -40001;
|
|
public static $ParseXmlError = -40002;
|
|
public static $ComputeSignatureError = -40003;
|
|
public static $IllegalAesKey = -40004;
|
|
public static $ValidateAppidError = -40005;
|
|
public static $EncryptAESError = -40006;
|
|
public static $DecryptAESError = -40007;
|
|
public static $IllegalBuffer = -40008;
|
|
public static $EncodeBase64Error = -40009;
|
|
public static $DecodeBase64Error = -40010;
|
|
public static $GenReturnXmlError = -40011;
|
|
}
|
|
|
|
?>
|