Commit bc35965c by dzhang

Merge branch 'master' of http://git.dev.2b3.cn/tencent/services

parents 9c9b4186 22810693
# 1.0.72
- User实体增加判断是否是托管小程序授权的方法
# 1.0.71
- 买家关系vip统计接口
......
......@@ -179,6 +179,20 @@ class User
return $this->getValue('scope');
}
/**
* 是否是通过托管的小程序授权
*
* @return boolean 如果是托管 返回true
*/
public function isEntrusted()
{
$ent = $this->getValue('entrusted');
if($ent == 1) {
return true;
}
return false;
}
public function initUser($token)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment