日常更新
This commit is contained in:
@@ -22,7 +22,8 @@ class Ad extends Admin{
|
||||
$res = $adp->paginate(25, false, array(
|
||||
'query' => $this->request->param()
|
||||
));
|
||||
$data = $res->toArray();
|
||||
|
||||
$data = $res->append(['show_type_text', 'status_text'])->toArray();
|
||||
$this->data['data'] = $data;
|
||||
return $this->data;
|
||||
}
|
||||
@@ -44,6 +45,7 @@ class Ad extends Admin{
|
||||
$info['appid'] = rand_string(10, 1); //八位数字appid
|
||||
$info['appsecret'] = rand_string(32); //32位数字加字母秘钥
|
||||
$this->data['data'] = array(
|
||||
'show_type' => $adp->show_type,
|
||||
'info' => $info
|
||||
);
|
||||
|
||||
@@ -71,6 +73,7 @@ class Ad extends Admin{
|
||||
$info = $adp->where('id', $this->request->param('id'))->find();
|
||||
$this->data['template'] = "add";
|
||||
$this->data['data'] = array(
|
||||
'show_type' => $adp->show_type,
|
||||
'info' => $info
|
||||
);
|
||||
return $this->data;
|
||||
@@ -104,7 +107,7 @@ class Ad extends Admin{
|
||||
$res = $ad->paginate(25, false, array(
|
||||
'query' => $this->request->param()
|
||||
));
|
||||
$data = $res->toArray();
|
||||
$data = $res->append(['cover','status_text'])->toArray();
|
||||
$this->data['data'] = $data;
|
||||
return $this->data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user