员工可以设置是否代理

This commit is contained in:
“wanyongkang”
2023-11-08 17:15:20 +08:00
parent 4e5316b9c9
commit 66c7101b11

View File

@@ -192,6 +192,24 @@ class User extends Controller
];
echo json_encode($info);
}
//一毛钱天卡
public function isagent()
{
$data = json_decode(file_get_contents("php://input"), true);
$id = $data['Id'];
$user_model = new UserModel;
$user_update['is_agent'] = $data['is_agent'];
$user_model->updateOne(['Id'=>$id],$user_update);
$info = [
'Code' => 10000,
'Data' => '',
'Message' => '',
];
echo json_encode($info);
}
//资金转移
public function moneyChange()