feat: 修改用户控制器的短信发送、添加、详情、会员设置和充值列表等功能
This commit is contained in:
parent
f91110ccc5
commit
25e85e7cbd
@ -9,6 +9,7 @@ use app\store\controller\BaseAdminController;
|
|||||||
use app\store\lists\user\UserLists;
|
use app\store\lists\user\UserLists;
|
||||||
use app\admin\logic\user\UserLogic;
|
use app\admin\logic\user\UserLogic;
|
||||||
use app\admin\validate\user\UserValidate;
|
use app\admin\validate\user\UserValidate;
|
||||||
|
use app\api\controller\user\UserRechargeController;
|
||||||
use app\common\model\user\User;
|
use app\common\model\user\User;
|
||||||
use support\Cache;
|
use support\Cache;
|
||||||
|
|
||||||
@ -34,7 +35,6 @@ class UserController extends BaseAdminController
|
|||||||
return $this->success('发送成功');
|
return $this->success('发送成功');
|
||||||
}
|
}
|
||||||
return $this->fail('发送失败');
|
return $this->fail('发送失败');
|
||||||
|
|
||||||
}
|
}
|
||||||
public function add()
|
public function add()
|
||||||
{
|
{
|
||||||
@ -55,7 +55,6 @@ class UserController extends BaseAdminController
|
|||||||
return $this->fail(UserLogic::getError());
|
return $this->fail(UserLogic::getError());
|
||||||
}
|
}
|
||||||
return $this->success('添加成功', [], 1, 1);
|
return $this->success('添加成功', [], 1, 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function detail()
|
public function detail()
|
||||||
@ -65,7 +64,8 @@ class UserController extends BaseAdminController
|
|||||||
return $this->success('', $detail);
|
return $this->success('', $detail);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function user_ship(){
|
public function user_ship()
|
||||||
|
{
|
||||||
$user_ship = $this->request->post('user_ship', 0);
|
$user_ship = $this->request->post('user_ship', 0);
|
||||||
$id = $this->request->post('id', 0);
|
$id = $this->request->post('id', 0);
|
||||||
if ($user_ship == 1) {
|
if ($user_ship == 1) {
|
||||||
@ -75,7 +75,8 @@ class UserController extends BaseAdminController
|
|||||||
return $this->success('设置成功');
|
return $this->success('设置成功');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function user_label(){
|
public function user_label()
|
||||||
|
{
|
||||||
$label_id = $this->request->post('label_id', 0);
|
$label_id = $this->request->post('label_id', 0);
|
||||||
$id = $this->request->post('id', 0);
|
$id = $this->request->post('id', 0);
|
||||||
|
|
||||||
@ -85,37 +86,6 @@ class UserController extends BaseAdminController
|
|||||||
|
|
||||||
public function recharge_list()
|
public function recharge_list()
|
||||||
{
|
{
|
||||||
$buy_bar = "元采购包";
|
return (new UserRechargeController())->recharge_list();
|
||||||
$send_bar = "品牌礼品券";
|
|
||||||
$arr = [
|
|
||||||
[
|
|
||||||
'money'=>1,//采购包
|
|
||||||
'send'=>249,//礼品券
|
|
||||||
'money_string'=>$buy_bar,
|
|
||||||
'send_string'=>$send_bar,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'money'=>2,//采购包
|
|
||||||
'send'=>560,//礼品券
|
|
||||||
'money_string'=>$buy_bar,
|
|
||||||
'send_string'=>$send_bar,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'money'=>5,//采购包
|
|
||||||
'send'=>1550,//礼品券
|
|
||||||
'money_string'=>$buy_bar,
|
|
||||||
'send_string'=>$send_bar,
|
|
||||||
],
|
|
||||||
[
|
|
||||||
'money'=>10,//采购包
|
|
||||||
'send'=>3500,//礼品券
|
|
||||||
'money_string'=>$buy_bar,
|
|
||||||
'send_string'=>$send_bar,
|
|
||||||
]
|
|
||||||
];
|
|
||||||
return $this->success('ok',$arr);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user