文件
mashangyoujiu/Application/SmallProgramApi/Controller/ResetUserController.class.php

23 行
571 B
PHP
可执行文件

<?php
namespace SmallProgramApi\Controller;
header("Content-Type: text/html;charset=utf-8");
class ResetUserController extends \Think\Controller
{
public function resetXcxUser()
{
$uid = I('get.uid');
if (empty($uid)) {
echo '缺少uid';
exit;
}
$update = M('retail_xcxvip')->where(array('id' => $uid))->save(array('vid' => 0, 'user_type' => 1));
if ($update) {
echo "修改成功";
exit;
} else {
echo "修改失败";
exit;
}
}
}