|
|
@ -163,21 +163,22 @@ class PartnerController extends ThinkController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$value['has_server_fee'] = $value['has_server_fee'] ? '是' : '否';
|
|
|
|
$value['has_server_fee'] = $value['has_server_fee'] ? '是' : '否';
|
|
|
|
$value['cooperation_status'] = $value['cooperation_status'] ? '合作中' : '暂停合作';
|
|
|
|
$value['cooperation_status'] = $value['cooperation_status'] ? '合作中' : '暂停合作';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$value['company_type'] = $value['company_type'] == 2 ? '个人' : '公司';
|
|
|
|
$value['company_type'] = $value['company_type'] == 2 ? '个人' : '公司';
|
|
|
|
$contract_start_time = $value['contract_start_time'] ?
|
|
|
|
|
|
|
|
time_format($value['contract_start_time'], 'Y/m/d') : '-';
|
|
|
|
$contract_start_time = $value['contract_start_time'] ? time_format($value['contract_start_time'], 'Y/m/d') : '-';
|
|
|
|
$contract_end_time = $value['contract_end_time'] ?
|
|
|
|
if($value['contract_start_time']){
|
|
|
|
time_format($value['contract_end_time'], 'Y/m/d') : '-';
|
|
|
|
$contract_end_time = $value['contract_end_time'] ? date('Y/m/d', $value['contract_end_time']) : '永久';
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$contract_end_time = $value['contract_end_time'] ? time_format($value['contract_end_time'], 'Y/m/d') : '-';
|
|
|
|
|
|
|
|
}
|
|
|
|
$value['contract_time'] = $contract_start_time . '-' . $contract_end_time;
|
|
|
|
$value['contract_time'] = $contract_start_time . '-' . $contract_end_time;
|
|
|
|
|
|
|
|
|
|
|
|
$validity_start_time = $value['validity_start_time'] ?
|
|
|
|
$validity_start_time = $value['validity_start_time'] ? time_format($value['validity_start_time'], 'Y/m/d') : '-';
|
|
|
|
time_format($value['validity_start_time'], 'Y/m/d') : '-';
|
|
|
|
if($value['validity_start_time']){
|
|
|
|
$validity_end_time = $value['validity_end_time'] ?
|
|
|
|
$validity_end_time = $value['validity_end_time'] ? date('Y/m/d', $value['validity_end_time']) : '永久';
|
|
|
|
time_format($value['validity_end_time'], 'Y/m/d') : '-';
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$validity_end_time = $value['validity_end_time'] ? time_format($value['validity_end_time'], 'Y/m/d') : '-';
|
|
|
|
|
|
|
|
}
|
|
|
|
$value['validity_time'] = $validity_start_time . '-' . $validity_end_time;
|
|
|
|
$value['validity_time'] = $validity_start_time . '-' . $validity_end_time;
|
|
|
|
|
|
|
|
|
|
|
|
$row2 = array_sum(array_column($value['game'], 'row')) ;
|
|
|
|
$row2 = array_sum(array_column($value['game'], 'row')) ;
|
|
|
@ -192,7 +193,6 @@ class PartnerController extends ThinkController
|
|
|
|
$this->display("export");
|
|
|
|
$this->display("export");
|
|
|
|
die();
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* 查询记录总数 */
|
|
|
|
/* 查询记录总数 */
|
|
|
|
$count = $model
|
|
|
|
$count = $model
|
|
|
|
->where($map)
|
|
|
|
->where($map)
|
|
|
@ -261,17 +261,25 @@ class PartnerController extends ThinkController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$v['partner_info']['company_type'] = $v['partner_info']['company_type'] == 2 ? '个人' : '公司';
|
|
|
|
$v['partner_info']['company_type'] = $v['partner_info']['company_type'] == 2 ? '个人' : '公司';
|
|
|
|
|
|
|
|
|
|
|
|
$contract_start_time = $v['partner_info']['contract_start_time'] ?
|
|
|
|
|
|
|
|
time_format($v['partner_info']['contract_start_time'], 'Y/m/d') : '-';
|
|
|
|
$contract_start_time = $v['partner_info']['contract_start_time'] ? time_format($v['partner_info']['contract_start_time'], 'Y/m/d') : '-';
|
|
|
|
$contract_end_time = $v['partner_info']['contract_end_time'] ?
|
|
|
|
if($v['partner_info']['contract_start_time']){
|
|
|
|
time_format($v['partner_info']['contract_end_time'], 'Y/m/d') : '-';
|
|
|
|
$contract_end_time = $v['partner_info']['contract_end_time'] ? date('Y/m/d', $v['partner_info']['contract_end_time']) : '永久';
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$contract_end_time = $v['partner_info']['contract_end_time'] ? time_format($v['partner_info']['contract_end_time'], 'Y/m/d') : '-';
|
|
|
|
|
|
|
|
}
|
|
|
|
$v['contract_time'] = $contract_start_time . '-' . $contract_end_time;
|
|
|
|
$v['contract_time'] = $contract_start_time . '-' . $contract_end_time;
|
|
|
|
|
|
|
|
|
|
|
|
$validity_start_time = $v['partner_info']['validity_start_time'] ?
|
|
|
|
$validity_start_time = $v['partner_info']['validity_start_time'] ?
|
|
|
|
time_format($v['partner_info']['validity_start_time'], 'Y/m/d') : '-';
|
|
|
|
time_format($v['partner_info']['validity_start_time'], 'Y/m/d') : '-';
|
|
|
|
$validity_end_time = $v['partner_info']['validity_end_time'] ?
|
|
|
|
|
|
|
|
time_format($v['partner_info']['validity_end_time'], 'Y/m/d') : '-';
|
|
|
|
if($v['partner_info']['validity_start_time']){
|
|
|
|
|
|
|
|
$validity_end_time = $v['partner_info']['validity_end_time'] ? date('Y/m/d', $v['partner_info']['validity_end_time']) : '永久';
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
$validity_end_time = $v['partner_info']['validity_end_time'] ? time_format($v['partner_info']['validity_end_time'], 'Y/m/d') : '-';
|
|
|
|
|
|
|
|
}
|
|
|
|
$v['validity_time'] = $validity_start_time . '-' . $validity_end_time;
|
|
|
|
$v['validity_time'] = $validity_start_time . '-' . $validity_end_time;
|
|
|
|
|
|
|
|
|
|
|
|
$create_time = date("Y-m-d H:i:s",$v["create_time"]);
|
|
|
|
$create_time = date("Y-m-d H:i:s",$v["create_time"]);
|
|
|
|
|
|
|
|
|
|
|
|
$v['verify_log'] = json_decode($v['verify_log'], true);
|
|
|
|
$v['verify_log'] = json_decode($v['verify_log'], true);
|
|
|
|