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

View File

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

View File

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