@@ -60,6 +60,9 @@ class User extends Backend
return $this->view->fetch();
}
+ /**
+ * 增加积分
+ */
public function scoreadd(){
$id = input('id',0);
if($this->request->isAjax()){
@@ -26,7 +26,7 @@ class Auth
//默认配置
protected $config = [];
protected $options = [];
- protected $allowFields = ['id', 'username', 'nickname','mobile', 'avatar','mini_openid'];
+ protected $allowFields = ['id', 'username', 'nickname','mobile', 'avatar','mini_openid','introcode'];
public function __construct($options = [])
{