推广员管理后台首页修改

master
zhengchanglong 5 years ago
parent dc65aa0766
commit 8bbf1f8df4

@ -213,7 +213,18 @@ class PromoteController extends BaseController
->order("sv.start_time desc")
//->page(1, 20)
->select();;
foreach ($open_server_list as $key => $server){
$open_server_list[$key]['icon']=get_cover($server['icon'],'path');
if($server['pay_type']==1){
$open_server_list[$key]['pay_type']='安卓';
}elseif ($server['pay_type']==1){
$open_server_list[$key]['pay_type']='iOS';
}else{
$open_server_list[$key]['pay_type']='安卓、iOS';
}
$open_server_list[$key]['pay_type'];
$open_server_list[$key]['start_time'] = date('Y-m-s h:i',$server['start_time']);
}
$this->ajaxReturn(['status'=>1,'info'=>'调用成功','data'=>$open_server_list],"JSON");
}

@ -125,8 +125,8 @@
<tr>
<td><img src="{$data.icon|get_cover='path'}"></td>
<td>{$data.game_name}</td>
<td><if condition="$data.pay_type eq 0">安卓、IOS<elseif condition="$data.pay_type eq 1">安卓<else />IOS</if></td>
<td>{$data.start_time|date="m-d H:i",###}}</td>
<td><if condition="$data.pay_type eq 0">安卓、iOS<elseif condition="$data.pay_type eq 1">安卓<else />iOS</if></td>
<td>{$data.start_time|date="m-d H:i",###}</td>
<td>{$data.server_name}</td>
</tr>
</volist>

@ -26,7 +26,7 @@
<else />
<volist name="data_list" id="data">
<tr>
<td>{$data.icon}</td>
<td><img src="{$data.icon|get_cover='path'}"></td>
<td>{$data.name}</td>
<td><if condition="$data.exist_id neq ''">已添加<else/>未添加</if></td>
<td><a href="javascript:operation('{$data.id}')"><if condition="$data.exist_id neq ''">移除<else/>添加</if></a></td>

@ -21,9 +21,9 @@ class SsgController extends BaseController {
public function login(){
$user = session("user_auth");
if ($user) {
/*if ($user) {
redirect(U("ssg/index"));
}
}*/
$this->display();
}
@ -146,6 +146,11 @@ class SsgController extends BaseController {
$this->display();
}
public function clear(){
\Think\Log::record('缓存清理业务触发');
session(null);
}
public function timediffs($begin_time, $end_time) {
if ($begin_time < $end_time) {
$starttime = $begin_time;

Loading…
Cancel
Save