skycaiji/SkycaijiApp/admin/model/Release.php

32 lines
911 B
PHP
Raw Normal View History

2019-02-19 09:52:13 +00:00
<?php
/*
|--------------------------------------------------------------------------
| SkyCaiji (蓝天采集器)
|--------------------------------------------------------------------------
2019-06-23 02:20:58 +00:00
| Copyright (c) 2018 https://www.skycaiji.com All rights reserved.
2019-02-19 09:52:13 +00:00
|--------------------------------------------------------------------------
2019-06-23 02:20:58 +00:00
| 使用协议 https://www.skycaiji.com/licenses
2019-02-19 09:52:13 +00:00
|--------------------------------------------------------------------------
*/
namespace skycaiji\admin\model;
class Release extends BaseModel{
public function getByTaskid($taskId){
static $dataList=array();
if(empty($taskId)){
return null;
}
if(!isset($dataList[$taskId])){
$taskData=$this->where(array('task_id'=>$taskId))->find();
if(!empty($taskData)){
$dataList[$taskId]=$taskData->toArray();
}else{
$dataList[$taskId]=array();
}
}
return $dataList[$taskId];
}
}
?>