This commit is contained in:
Jerry Yan 2020-12-17 11:13:00 +08:00
parent 92236b085a
commit f04c2452c3
2 changed files with 5 additions and 5 deletions
hyhproject/app/controller

@ -6,9 +6,6 @@ use wstmart\app\model\Index as M;
* 默认控制器 * 默认控制器
*/ */
class Index extends Base{ class Index extends Base{
protected $beforeActionList = [
'checkAuth' => ['except'=>'startGiveVouchers,startRevokeVouchers']
];
public function tmp(){ public function tmp(){
//$orderId = 80; //$orderId = 80;
// model('common/Settlements')->speedySettlement($orderId); // model('common/Settlements')->speedySettlement($orderId);

@ -9,7 +9,7 @@ use wstmart\admin\model\CashDraws as CM;
class Uservouchers extends Base{ class Uservouchers extends Base{
// 前置方法执行列表 // 前置方法执行列表
protected $beforeActionList = [ protected $beforeActionList = [
'checkAuth' => ['except'=>'startgivevouchers,savedaymoney']// 访问这些except下的方法不需要执行前置操作 'checkAuth' => ['except'=>'startgivevouchers,savedaymoney','startrevokevouchers']// 访问这些except下的方法不需要执行前置操作
]; ];
/** /**
* 保存每日券值 * 保存每日券值
@ -25,7 +25,10 @@ class Uservouchers extends Base{
* @return [type] [description] * @return [type] [description]
*/ */
public function startGiveVouchers(){ public function startGiveVouchers(){
Model('UserVouchers')->startGiveVouchers(); return Model('UserVouchers')->startGiveVouchers();
}
public function startRevokeVouchers(){
return Model('UserVouchers')->startRevokeVouchers();
} }
//获取券值 //获取券值
public function getVouchers(){ public function getVouchers(){