feat: 支付调试
							parent
							
								
									9579abbb20
								
							
						
					
					
						commit
						bbc8fc976c
					
				|  | @ -29,6 +29,7 @@ class Client_ | ||||||
|     const android = 4; |     const android = 4; | ||||||
|     const pc = 5; |     const pc = 5; | ||||||
|     const h5 = 6;//h5(非微信环境h5)
 |     const h5 = 6;//h5(非微信环境h5)
 | ||||||
|  |     const api = 8;//api请求 也算是pc
 | ||||||
| 
 | 
 | ||||||
|     function getName($value) |     function getName($value) | ||||||
|     { |     { | ||||||
|  | @ -61,6 +62,7 @@ class Client_ | ||||||
|             self::mnp     => '小程序商城', |             self::mnp     => '小程序商城', | ||||||
|             self::ios     => '苹果APP商城', |             self::ios     => '苹果APP商城', | ||||||
|             self::android => '安卓APP商城', |             self::android => '安卓APP商城', | ||||||
|  |             self::api     => 'API商城', | ||||||
|         ]; |         ]; | ||||||
|         if ($type === true) { |         if ($type === true) { | ||||||
|             return $desc; |             return $desc; | ||||||
|  |  | ||||||
|  | @ -168,6 +168,7 @@ class WeChatServer | ||||||
|             case Client_::oa: |             case Client_::oa: | ||||||
|             case Client_::h5: |             case Client_::h5: | ||||||
|             case Client_::pc: |             case Client_::pc: | ||||||
|  |             case Client_::api: | ||||||
|                 $appid = ConfigServer::get('oa', 'app_id'); |                 $appid = ConfigServer::get('oa', 'app_id'); | ||||||
|                 $secret = ConfigServer::get('oa', 'secret'); |                 $secret = ConfigServer::get('oa', 'secret'); | ||||||
|                 break; |                 break; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue