98 lines
3.6 KiB
PHP
98 lines
3.6 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @author Any
|
|
* @description kiss
|
|
* @date 2021年5月6日
|
|
* @version 1.0.0
|
|
*
|
|
* _____LOG_____
|
|
*
|
|
*/
|
|
|
|
namespace app\components;
|
|
|
|
class SysConst
|
|
{
|
|
/** ----- PLATFORM START ----- */
|
|
|
|
public static $cxPlatformWxmp = 'wxmp'; //微信小程序
|
|
public static $cxPlatformWxoa = 'wxoa'; //微信微信公众平台
|
|
public static $cxPlatformApp = 'app'; //App
|
|
public static $cxPlatformH5 = 'h5'; //H5
|
|
public static $cxPlatformAlimp = 'alimp'; //支付宝小程序
|
|
public static $cxPlatformAndroid = 'android'; //安卓
|
|
public static $cxPlatformIos = 'ios'; //苹果IOS
|
|
|
|
public static function platformLabels()
|
|
{
|
|
return [
|
|
'wxmp' => '微信小程序',
|
|
'wxoa' => '微信公众号',
|
|
'app' => 'APP',
|
|
'h5' => 'H5',
|
|
'alimp' => '支付宝小程序',
|
|
'android' => '安卓',
|
|
'ios' => '苹果IOS',
|
|
];
|
|
}
|
|
|
|
public static function getPlatformByKey($platform)
|
|
{
|
|
$labels = self::platformLabels();
|
|
return isset($labels[$platform]) ? $labels[$platform] : '未知';
|
|
}
|
|
|
|
|
|
/** ----- PLATFORM END ----- */
|
|
|
|
|
|
/** ----- OAUTH PROVIDER START ----- */
|
|
|
|
public static $cxOauthProviderWxmp = 'wxmp'; //微信小程序
|
|
public static $cxOauthProviderWxoa = 'wxoa'; //微信公众号
|
|
public static $cxOauthProviderWxapp = 'wxapp'; //微信APP
|
|
public static $cxOauthProviderQqapp = 'qqapp'; //QQAPP
|
|
public static $cxOauthProviderWbapp = 'wbapp'; //微博APP
|
|
|
|
/** ----- OAUTH PROVIDER END ----- */
|
|
|
|
|
|
/** ----- PAY TYPE START ----- */
|
|
|
|
public static $cxPayTypeBalance = 0; //余额支付
|
|
public static $cxPayTypeWxpay = 1; //微信支付
|
|
public static $cxPayTypeAlipay = 2; //支付宝支付
|
|
public static $cxPayTypeBank = 3; //银行卡支付
|
|
public static $cxPayTypeIntegral = 4; //积分支付
|
|
public static $cxPayTypeUnionpay = 5; //银联支付
|
|
public static $cxPayTypeWxpayPoints = 6; //微信支付分
|
|
public static $cxPayTypeCoupon = 7; //优惠券
|
|
public static $cxPayTypeEnBalance = 'balance'; //余额支付
|
|
public static $cxPayTypeEnWxpay = 'wxpay'; //微信支付
|
|
public static $cxPayTypeEnAlipay = 'alipay'; //支付宝支付
|
|
public static $cxPayTypeEnBank = 'bank'; //银行卡支付
|
|
public static $cxPayTypeEnIntegral = 'integral'; //积分支付
|
|
public static $cxPayTypeEnUnionpay = 'unionpay'; //银联支付
|
|
public static $cxPayTypeEnWxpayPoints = 'wxpay_points'; //微信支付分
|
|
|
|
|
|
/** ----- PAY TYPE END ----- */
|
|
|
|
/** ----- PLUGIN SCENE START ----- */
|
|
|
|
public static $cxPluginSceneMall = 'mall'; //商城
|
|
public static $cxPluginSceneIntegralMall = 'integralmall'; //积分商城
|
|
public static $cxPluginSceneBallArmMall = 'ball_arm'; //购买球杆
|
|
public static $cxPluginSceneHitBallMall = 'hit_ball'; //击球检测
|
|
public static $cxPluginSceneMemberMall = 'member'; //会员购买
|
|
public static $cxPluginSceneDeposit = 'deposit'; //押金
|
|
|
|
|
|
public static $cxPluginSceneBallCart = 'box_book'; //预定包厢
|
|
public static $cxPluginSceneGoods = 'goods'; //货柜商品
|
|
/** ----- PLUGIN SCENE END ----- */
|
|
|
|
|
|
}
|