作者 杨育虎

覆盖远程分支

... ... @@ -141,18 +141,19 @@ class Common extends Api
}
}
//定时任务创建模板
public function moban()
{
$arr = Db::name('moban')->where(['status' => 1])->order('id desc')->select();
$arr = Db::name('moban')->order('id desc')->select();
foreach ($arr as $k => $v) {
$data = [
'type_id' => $v['type_id'],
'status' => 1,
'status' => $v['status'],
'cloud_type' => $v['cloud_type'],
'plane_type' => $v['plane_type'],
'createtime' => time() + 60 + 86400 * 14,
'updatetime' => time() + 60 + 86400 * 14
'createtime' => time() + 60 + 86400 * 14,
'updatetime' => time() + 60 + 86400 * 14
];
$res= Db::name('sun')->insert($data);
if(!$res){
... ...
... ... @@ -45,7 +45,7 @@ class Index extends Api
$id = input('id');
$vip = Db::name('user')->where(['id' => $user_id])->value('vip');
// //拦截预约当天
// $this->is_day($id);
$this->is_day($id);
//vip等级拦截
$this->is_vip($vip, $id);
//超过最大次数拦截
... ...