代理显示

This commit is contained in:
“wanyongkang”
2021-02-23 17:49:15 +08:00
parent 17e4a692a4
commit 3ec73a419d
3 changed files with 42 additions and 2 deletions

View File

@@ -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()
{