mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-02 11:59:16 +08:00
细节优化
This commit is contained in:
parent
3b26ca74ed
commit
c5e0a096f4
@ -1671,7 +1671,7 @@ class BuyService
|
||||
|
||||
// 选中地址处理
|
||||
$default = null;
|
||||
if(isset($params['address_id']) && $params['address_id'] != null && !empty($address['data']) && is_array($address['data']))
|
||||
if(isset($params['address_id']) && $params['address_id'] !== null && !empty($address['data']) && is_array($address['data']))
|
||||
{
|
||||
if(isset($address['data'][$params['address_id']]))
|
||||
{
|
||||
|
@ -1775,7 +1775,7 @@ class UserService
|
||||
public static function AppUserInfoHandle($user_id = null, $where_field = null, $where_value = null, $user = [])
|
||||
{
|
||||
// 获取用户信息
|
||||
$field = 'id,username,nickname,mobile,email,avatar,alipay_openid,weixin_openid,weixin_unionid,weixin_web_openid,baidu_openid,toutiao_openid,qq_openid,qq_unionid,integral,locking_integral,add_time';
|
||||
$field = 'id,username,nickname,mobile,email,avatar,alipay_openid,weixin_openid,weixin_unionid,weixin_web_openid,baidu_openid,toutiao_openid,qq_openid,qq_unionid,integral,locking_integral,referrer,add_time';
|
||||
if(!empty($user_id))
|
||||
{
|
||||
$user = self::UserInfo('id', $user_id, $field);
|
||||
|
Loading…
Reference in New Issue
Block a user