table = 'yz_users_permission'; } } final function addUserPermission($userId) { return $this->insert([ 'uniacid' => \YunShop::app()->uniacid, 'uid' => $userId, 'type' => 'yun_shop', 'permission' => 'all', 'url' => '' ]); } }