动态表格支持自定义字段和顺序

This commit is contained in:
devil
2020-10-09 22:11:25 +08:00
parent bfdc457533
commit 296ea2d4e9
21 changed files with 707 additions and 43 deletions

View File

@ -286,7 +286,10 @@ class Behavior
*/
public function GetUserCookie()
{
if(!empty($_COOKIE['behavior_user_cookie'])) return $_COOKIE['behavior_user_cookie'];
if(!empty($_COOKIE['behavior_user_cookie']))
{
return $_COOKIE['behavior_user_cookie'];
}
$user_cookie = $this->GetUserNumberRand();
setcookie('behavior_user_cookie', $user_cookie);

View File

@ -165,7 +165,7 @@ class Weixin
$client_type = ApplicationClientType();
// 微信中打开
if($client_type == 'h5' && IsWeixinEnv())
if($client_type == 'h5' && IsWeixinEnv() && (empty($params['user']) || empty($params['user']['weixin_web_openid'])))
{
exit(header('location:'.PluginsHomeUrl('weixinwebauthorization', 'pay', 'index', input())));
}
@ -436,7 +436,7 @@ class Weixin
// 微信中打开
if($client_type == 'h5' && IsWeixinEnv())
{
$type_all['pc'] = $type_all['weixin'];
$type_all['h5'] = $type_all['weixin'];
}
return isset($type_all[$client_type]) ? $type_all[$client_type] : '';