代理显示
This commit is contained in:
@@ -238,6 +238,30 @@ class Agent extends Controller
|
||||
die;
|
||||
}
|
||||
|
||||
//修改代理商
|
||||
public function updateAgent()
|
||||
{
|
||||
$data = json_decode(file_get_contents("php://input"), true);
|
||||
$data['password'] = cToMd5($data['password']);
|
||||
$agent_user_model = new AgentUser;
|
||||
|
||||
$update_data = [
|
||||
'password'=>cToMd5($data['password']),
|
||||
'phone'=>$data['phone'],
|
||||
'qq'=>$data['qq'],
|
||||
'realname'=>$data['realname'],
|
||||
];
|
||||
|
||||
$agent_user_model->updateOne(['id'=>$data['id']],$update_data);
|
||||
|
||||
$retuen_data = [
|
||||
'Code' => 10000,
|
||||
'Message' => '操作成功',
|
||||
];
|
||||
echo json_encode($retuen_data);
|
||||
die;
|
||||
}
|
||||
|
||||
//代理商充值扣款
|
||||
public function account()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user