优化登录
This commit is contained in:
parent
a42b118376
commit
3a3deec1b1
File diff suppressed because it is too large
Load Diff
|
|
@ -15,9 +15,11 @@ use think\facade\Route;
|
||||||
#============================
|
#============================
|
||||||
#Login.php登录
|
#Login.php登录
|
||||||
#============================
|
#============================
|
||||||
Route::any('login', 'Login/login');
|
Route::any('login', 'Login/wxMplogin');
|
||||||
Route::any('mobileLogin', 'Login/mobileLogin');
|
Route::any('mobileLogin', 'Login/mobileLogin');
|
||||||
Route::any('login_bind_mobile', 'Login/login_bind_mobile');
|
Route::any('login_bind_mobile', 'Login/login_bind_mobile');
|
||||||
|
Route::any('wx_app_login', 'Login/wxAppLogin');
|
||||||
|
Route::any('bindMobile', 'Login/bindMobile');
|
||||||
|
|
||||||
#Index.php首页
|
#Index.php首页
|
||||||
#============================
|
#============================
|
||||||
|
|
@ -267,7 +269,7 @@ Route::any('get_order_statistics', 'FFOrdersController/getOrderStatistics');
|
||||||
|
|
||||||
|
|
||||||
#============================APP使用的路由 ============================#
|
#============================APP使用的路由 ============================#
|
||||||
Route::any('V5Vx6qHOM5Ks9HqH', 'Login/login');
|
Route::any('V5Vx6qHOM5Ks9HqH', 'Login/wxMplogin');
|
||||||
Route::any('jaqXJ27mqJMfwT7X', 'Login/mobileLogin');
|
Route::any('jaqXJ27mqJMfwT7X', 'Login/mobileLogin');
|
||||||
Route::any('UaMT0s7a6Tcp68ES', 'Login/login_bind_mobile');
|
Route::any('UaMT0s7a6Tcp68ES', 'Login/login_bind_mobile');
|
||||||
Route::any('uzkXfi3aqrPxOwVx', 'Index/index');
|
Route::any('uzkXfi3aqrPxOwVx', 'Index/index');
|
||||||
|
|
|
||||||
|
|
@ -36,18 +36,20 @@ class AppPlatform extends BasePlatform
|
||||||
$config = [
|
$config = [
|
||||||
'isWebPay' => false,
|
'isWebPay' => false,
|
||||||
'buildVersion' => '106',
|
'buildVersion' => '106',
|
||||||
'version' => '1.0.1',
|
'version' => '1.0.2',
|
||||||
'userAgreement' => "https://zfunbox.cn?_p=cb20xad0e35094521ae46a1d1fb0ddd1&time=" . time()
|
'userAgreement' => "https://zfunbox.cn?_p=cb20xad0e35094521ae46a1d1fb0ddd1&time=" . time()
|
||||||
];
|
];
|
||||||
$is_env_test = EnvHelper::getIsTest();
|
$is_env_test = EnvHelper::getIsTest();
|
||||||
if ($is_env_test) {
|
if ($is_env_test) {
|
||||||
$config['userAgreement'] = "https://testweb.zfunbox.cn?_p=cb20xad0e35094521ae46a1d1fb0ddd1&time=" . time();
|
$config['userAgreement'] = "https://testweb.zfunbox.cn?_p=cb20xad0e35094521ae46a1d1fb0ddd1&time=" . time();
|
||||||
}
|
}
|
||||||
|
$config['userAgreement'] = " https://192.168.1.21:3001?_p=cb20xad0e35094521ae46a1d1fb0ddd1&time=" . time();
|
||||||
$configVersion = (int) preg_replace('/[^0-9]/', '', $config['version']);
|
$configVersion = (int) preg_replace('/[^0-9]/', '', $config['version']);
|
||||||
if ($versionNumber >= $configVersion) {
|
if ($versionNumber >= $configVersion) {
|
||||||
$config['buildVersion'] = '105';
|
$config['buildVersion'] = '105';
|
||||||
// $config['isCheck'] = true;
|
// $config['isCheck'] = true;
|
||||||
$config['userAgreement'] = "https://zfunbox.cn/pages/guize/guize?type=4";
|
$config['userAgreement'] = "https://zfunbox.cn/pages/guize/guize?type=4";
|
||||||
|
|
||||||
}
|
}
|
||||||
return $config;
|
return $config;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user