'微信支付', // self::METHOD_ALIPAY => '支付宝', self::METHOD_DOUYIN => '抖音支付', // self::METHOD_BALANCE => '余额支付', // self::METHOD_OFFLINE => '线下支付', // self::METHOD_CASH => '现金支付', // self::METHOD_BANK_CARD => '银行卡支付', ]; // 商户类型 const MERCHANT_TYPE_NORMAL = 0; // 服务商商户 const MERCHANT_TYPE_SERVICE = 1; const MERCHANT_TYPE_MAP = [ self::MERCHANT_TYPE_NORMAL => '普通商户', self::MERCHANT_TYPE_SERVICE => '服务商商户', ]; public static function getMerchantTypeList() { return self::MERCHANT_TYPE_MAP; } public static function getMerchantTypeText($type){ return self::MERCHANT_TYPE_MAP[$type] ?? '未知'; } public static function getPayMethodList() { return self::METHOD_TEXT_MAP; } public static function getPayMethodText($method) { return self::METHOD_TEXT_MAP[$method] ?? '未知'; } }