You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
42
hyhproject/admin/controller/Userscores.php
Executable file
42
hyhproject/admin/controller/Userscores.php
Executable file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
namespace wstmart\admin\controller;
|
||||
use wstmart\admin\model\UserScores as M;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 积分日志控制器
|
||||
*/
|
||||
class Userscores extends Base{
|
||||
|
||||
public function toUserScores(){
|
||||
$m = new M();
|
||||
$object = $m->getUserInfo();
|
||||
$this->assign("object",$object);
|
||||
return $this->fetch("list");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取分页
|
||||
*/
|
||||
public function pageQuery(){
|
||||
$m = new M();
|
||||
return WSTGrid($m->pageQuery());
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳去新增界面
|
||||
*/
|
||||
public function toAdd(){
|
||||
$m = new M();
|
||||
$object = $m->getUserInfo();
|
||||
$this->assign("object",$object);
|
||||
return $this->fetch("box");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
public function add(){
|
||||
$m = new M();
|
||||
return $m->addByAdmin();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user