Commit 7039b93d authored by houdong's avatar houdong

更多大赛

parent 672162bd
...@@ -45,13 +45,14 @@ class NiuModel extends Model{ ...@@ -45,13 +45,14 @@ class NiuModel extends Model{
$g['introduction'] = msubstr($g['introduction'],0,$len,'utf-8').'...'; $g['introduction'] = msubstr($g['introduction'],0,$len,'utf-8').'...';
} }
$endTime=$g["endTime"]; $endTime=$g["endTime"];
$g["startTime"] = date('Y-m-d',$g["startTime"]); $startTime=$g["startTime"];
$g["endTime"] = $endTime? date('Y-m-d',$g["endTime"]) : '长期'; $g["startTime"] = date('Y-m-d',$startTime);
$g["endTime"] = $endTime? date('Y-m-d',$endTime) : '长期';
$g["cover"]=str_replace('http://image.cofool.com/',IMAGE_URL,$g["cover"]); $g["cover"]=str_replace('http://image.cofool.com/',IMAGE_URL,$g["cover"]);
//进入交易需要的参数 //进入交易需要的参数
$gStatus=is_end($g['endTime'])?3:($g['startTime']>time()?1:2); $gStatus=is_end($endTime)?3:($startTime>time()?1:2);
$gotoTrade =['group_id' => $gid, 'web_id'=>$g['web_id'],'name'=>$g['name'],'groupStatus' => $gStatus, 'viewPage' => 2, 'statusInt' => $gStatus, $gotoTrade =['group_id' => $gid, 'web_id'=>$g['web_id'],'name'=>$g['name'],'groupStatus' => $gStatus, 'viewPage' => 2, 'statusInt' => $gStatus,
'userID' => $userId, 'zhuangtai' => $STATUS_TXT[$gStatus]]; 'userID' => $userId, 'zhuangtai' => $STATUS_TXT[$gStatus]];
$g["gotoTrade"]=json_encode($gotoTrade); $g["gotoTrade"]=json_encode($gotoTrade);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment