细节优化

This commit is contained in:
devil 2020-02-01 13:45:57 +08:00
parent 3b26ca74ed
commit c5e0a096f4
2 changed files with 2 additions and 2 deletions

View File

@ -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']]))
{

View File

@ -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);