将官方渠道修改为江息网络

master
zhengyongxing 4 years ago
parent 4ff957d0f1
commit 4352b0c733

@ -110,6 +110,8 @@ class TestResourceController extends ThinkController
foreach ($data as $key => $value) {
$data[$key]['create_time'] = date('Y-m-d H:i:s',$value['create_time']);
($data[$key]['promote_account']=='官方渠道')?($data[$key]['promote_account']=C('OFFICIEL_CHANNEL')):'';
}
$count = M('test_resource','tab_')
@ -371,6 +373,10 @@ class TestResourceController extends ThinkController
}
M('protect_log_read', 'tab_')->commit(); //提交事物
foreach($data as $key => $value) {
($data[$key]['promote_account']=='官方渠道')?($data[$key]['promote_account']=C('OFFICIEL_CHANNEL')):'';
}
$count = count($count);
$page = set_pagination($count,$row);
$this->meta_title = '日志管理';
@ -427,6 +433,9 @@ class TestResourceController extends ThinkController
}
//
$res = D("test_resource")->getResourceCout($map,$page,$row);
foreach ($res['list'] as $key=>&$value) {
($value['promote_account']=='官方渠道')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
}
// dump($res);
$parameter =I('get.');
$parameter['p']=I('get.p',1);
@ -831,6 +840,10 @@ class TestResourceController extends ThinkController
$parameter['p']=I('get.p',1);
$parameter['row']=I('get.row');
foreach ($data as $key=>&$value) {
($value['promote_account']=='官方渠道')?($value['promote_account']=C('OFFICIEL_CHANNEL')):'';
}
$page = set_pagination($count,$row,$parameter);
if($page) {$this->assign('_page', $page);}

Loading…
Cancel
Save