...
|
...
|
@@ -99,6 +99,34 @@ class AdminIndexController extends AdminBaseController |
|
|
return $this->fetch();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 积分管理
|
|
|
* @adminMenu(
|
|
|
* 'name' => '积分管理',
|
|
|
* 'parent' => 'default1',
|
|
|
* 'display'=> true,
|
|
|
* 'hasView'=> true,
|
|
|
* 'order' => 10000,
|
|
|
* 'icon' => '',
|
|
|
* 'remark' => '用户积分管理',
|
|
|
* 'param' => ''
|
|
|
* )
|
|
|
*/
|
|
|
public function scorePost(){
|
|
|
$data=input();
|
|
|
if ($data['num']<=0){
|
|
|
$this->error('积分输入有误');
|
|
|
}
|
|
|
$result=addScore($data['user_id'],$data['num'],'后台积分发放');
|
|
|
if ($result==1){
|
|
|
$this->success('积分发送成功!');
|
|
|
}else{
|
|
|
$this->error('积分发放失败!');
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 本站用户拉黑
|
...
|
...
|
|