一毛钱活动

This commit is contained in:
“wanyongkang”
2021-02-05 16:07:54 +08:00
parent 92f172b345
commit 84e259b594

View File

@@ -141,4 +141,23 @@ class User extends Controller
echo json_encode($info);
die;
}
//一毛钱天卡
public function setDay()
{
$data = json_decode(file_get_contents("php://input"), true);
$id = $data['Id'];
$user_model = new UserModel;
$user_update['ProductAccountCount'] = $data['ProductAccountCount'];
$user_model->updateOne(['Id'=>$id],$user_update);
$info = [
'Code' => 10000,
'Data' => '',
'Message' => '',
];
echo json_encode($info);
}
}