saasKey = longbing_get_auth_prefix($saasKey) ; parent::__construct($uniacid, self::tabbarKey, self::adminMenuKey, $this->saasKey, self::apiPaths , $infoConfigOptions); } /** * 返回saas端授权结果 * @return bool */ public function sAuth(): bool { return $this->sassValue == 1 ? true : false; } /** * 返回p端授权结果 * @return bool */ public function pAuth(): bool { if (!$this->sAuth()) { return false; }; return true; } /** * 返回c端授权结果 * * @param int $user_id * @return bool * @author ArtizanZhang * @DataTime: 2019/12/9 17:13 */ public function cAuth(int $user_id): bool { return true; } /** * 添加商品数量 * * @author shuixian * @DataTime: 2019/12/19 19:02 */ public function getCityNumber(){ return $this->getAuthVaule( longbing_get_auth_prefix('CITY') , 1); } /** * 添加商品数量 * * @author shuixian * @DataTime: 2019/12/19 19:02 */ public function getAuthPhone(){ return $this->getAuthVaule( longbing_get_auth_prefix('PHONE') , 0,1); } /** * 添加商品数量 * * @author shuixian * @DataTime: 2019/12/19 19:02 */ public function getAuthPhoneAuth(){ return $this->getAuthVaule( longbing_get_auth_prefix('PHONE_AUTH') , 0,1); } }