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