Commit 884e3544 by 王召彬

User实体类增加校验是否是托管的方法

parent 7bcae8d8
......@@ -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