mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-07-08 22:40:43 +08:00
动态表格支持自定义字段和顺序
This commit is contained in:
@ -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);
|
||||
|
||||
@ -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] : '';
|
||||
|
||||
Reference in New Issue
Block a user