feat: 支付调试

master
yin5th 2023-09-26 16:25:19 +08:00
parent 9579abbb20
commit bbc8fc976c
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@ class Client_
const android = 4;
const pc = 5;
const h5 = 6;//h5(非微信环境h5)
const api = 8;//api请求 也算是pc
function getName($value)
{
@ -61,6 +62,7 @@ class Client_
self::mnp => '小程序商城',
self::ios => '苹果APP商城',
self::android => '安卓APP商城',
self::api => 'API商城',
];
if ($type === true) {
return $desc;

View File

@ -168,6 +168,7 @@ class WeChatServer
case Client_::oa:
case Client_::h5:
case Client_::pc:
case Client_::api:
$appid = ConfigServer::get('oa', 'app_id');
$secret = ConfigServer::get('oa', 'secret');
break;