Commit 15787512 authored by 734642908@qq.com's avatar 734642908@qq.com

修改图片路径

parent 0884fcd3
......@@ -20,5 +20,5 @@ return array(
),
'MD_KEY' => '$5dfjr$%dsadsfdsii',
'img_path'=> 'https://res.g.llewan.com/zuiqiangyoulechang/'
);
\ No newline at end of file
......@@ -19,5 +19,5 @@ return array(
'DB_DEBUG'=>true
),
'MYNAME' => 'Index',
'img_path'=> 'http://ylc.test.llewan.com/uploadfile/'
);
\ No newline at end of file
......@@ -21,16 +21,16 @@ class AuctionController extends BaseController
array(
'id'=>'hezijp001'
,'name'=>'【抖音爆款】会唱歌的妖娆花'
,'icon'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/1/icon.jpg'
,'cover'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/1/head.jpg'
,'icon'=>'auction/1/icon.jpg'
,'cover'=>'auction/1/head.jpg'
,'desc'=>array(
'https://res.g.llewan.com/zuiqiangyoulechang/auction/1/desc1.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/1/desc2.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/1/desc3.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/1/desc4.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/1/desc5.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/1/desc6.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/1/desc7.jpg'
'auction/1/desc1.jpg'
,'auction/1/desc2.jpg'
,'auction/1/desc3.jpg'
,'auction/1/desc4.jpg'
,'auction/1/desc5.jpg'
,'auction/1/desc6.jpg'
,'auction/1/desc7.jpg'
)
,'original_price'=>10000
,'range_price'=>2
......@@ -44,13 +44,13 @@ class AuctionController extends BaseController
,array(
'id'=>'hezijp002'
,'name'=>'【妈妈最爱】BB锅'
,'icon'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/2/icon.jpg'
,'cover'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/2/head.jpg'
,'icon'=>'auction/2/icon.jpg'
,'cover'=>'auction/2/head.jpg'
,'desc'=>array(
'https://res.g.llewan.com/zuiqiangyoulechang/auction/2/desc1.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/2/desc2.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/2/desc3.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/2/desc4.jpg'
'auction/2/desc1.jpg'
,'auction/2/desc2.jpg'
,'auction/2/desc3.jpg'
,'auction/2/desc4.jpg'
)
,'original_price'=>10000
,'range_price'=>2
......@@ -64,14 +64,14 @@ class AuctionController extends BaseController
,array(
'id'=>'hezijp003'
,'name'=>'【爱的牵引】防走失背包'
,'icon'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/3/icon.jpg'
,'cover'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/3/head.jpg'
,'icon'=>'auction/3/icon.jpg'
,'cover'=>'auction/3/head.jpg'
,'desc'=>array(
'https://res.g.llewan.com/zuiqiangyoulechang/auction/3/desc1.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/3/desc2.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/3/desc3.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/3/desc4.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/3/desc5.jpg'
'auction/3/desc1.jpg'
,'auction/3/desc2.jpg'
,'auction/3/desc3.jpg'
,'auction/3/desc4.jpg'
,'auction/3/desc5.jpg'
)
,'original_price'=>10000
,'range_price'=>2
......@@ -91,14 +91,14 @@ class AuctionController extends BaseController
array(
'id'=>'hezijp004'
,'name'=>'【明星同款】会学人说话的火烈鸟'
,'icon'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/4/icon.jpg'
,'cover'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/4/head.jpg'
,'icon'=>'auction/4/icon.jpg'
,'cover'=>'auction/4/head.jpg'
,'desc'=>array(
'https://res.g.llewan.com/zuiqiangyoulechang/auction/4/desc1.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/4/desc2.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/4/desc3.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/4/desc4.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/4/desc5.jpg'
'auction/4/desc1.jpg'
,'auction/4/desc2.jpg'
,'auction/4/desc3.jpg'
,'auction/4/desc4.jpg'
,'auction/4/desc5.jpg'
)
,'original_price'=>10000
,'range_price'=>2
......@@ -112,12 +112,12 @@ class AuctionController extends BaseController
,array(
'id'=>'hezijp005'
,'name'=>'【陪玩神器】面包超人跳跳球'
,'icon'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/5/icon.jpg'
,'cover'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/5/head.jpg'
,'icon'=>'auction/5/icon.jpg'
,'cover'=>'auction/5/head.jpg'
,'desc'=>array(
'https://res.g.llewan.com/zuiqiangyoulechang/auction/5/desc1.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/5/desc2.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/5/desc3.jpg'
'auction/5/desc1.jpg'
,'auction/5/desc2.jpg'
,'auction/5/desc3.jpg'
)
,'original_price'=>10000
,'range_price'=>2
......@@ -137,14 +137,14 @@ class AuctionController extends BaseController
array(
'id'=>'hezijp006'
,'name'=>'【童年回忆】mini游戏掌机'
,'icon'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/6/icon.jpg'
,'cover'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/6/head.jpg'
,'icon'=>'auction/6/icon.jpg'
,'cover'=>'auction/6/head.jpg'
,'desc'=>array(
'https://res.g.llewan.com/zuiqiangyoulechang/auction/6/desc1.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/6/desc2.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/6/desc3.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/6/desc4.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/6/desc5.jpg'
'auction/6/desc1.jpg'
,'auction/6/desc2.jpg'
,'auction/6/desc3.jpg'
,'auction/6/desc4.jpg'
,'auction/6/desc5.jpg'
)
,'original_price'=>10000
,'range_price'=>2
......@@ -158,15 +158,15 @@ class AuctionController extends BaseController
,array(
'id'=>'hezijp007'
,'name'=>'【抖音同款】不会倒的蜘蛛侠'
,'icon'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/7/icon.jpg'
,'cover'=>'https://res.g.llewan.com/zuiqiangyoulechang/auction/7/head.jpg'
,'icon'=>'auction/7/icon.jpg'
,'cover'=>'auction/7/head.jpg'
,'desc'=>array(
'https://res.g.llewan.com/zuiqiangyoulechang/auction/7/desc1.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/7/desc2.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/7/desc3.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/7/desc4.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/7/desc5.jpg'
,'https://res.g.llewan.com/zuiqiangyoulechang/auction/7/desc6.jpg'
'auction/7/desc1.jpg'
,'auction/7/desc2.jpg'
,'auction/7/desc3.jpg'
,'auction/7/desc4.jpg'
,'auction/7/desc5.jpg'
,'auction/7/desc6.jpg'
)
,'original_price'=>10000
,'range_price'=>2
......@@ -198,6 +198,7 @@ class AuctionController extends BaseController
$leftArray = array();
$rightArray = array();
foreach($goodsList as $key=>$val) {
$lleftArray = array();
$lrightArray = array();
foreach($val['list'] as $lkey=>$lval) {
......@@ -223,8 +224,8 @@ class AuctionController extends BaseController
$redis->set($goodsInfo['id'],$goodsJson);
} else if(!empty($goodsInfo['bid_time']) && (intval(strtotime($goodsInfo['bid_time']))+$this->countdown) <= time()) {
//竞拍胜出
$model= new \Home\Model\AuctionModel($goodsInfo);
$model->awardSave();
$model= new \Home\Model\AuctionModel();
$model->awardSave($goodsInfo);
} else {
//没有用户参与报名竞拍
// $enrollNum = $GLOBALS["conn"]->NumRows($GLOBALS["conn"]->Query("select sysid from ".get_table("game_auction_enroll")." where game_code='hezi' and goods_id='".$goodsInfo['id']."'"));
......@@ -245,13 +246,16 @@ class AuctionController extends BaseController
$redis->set($lval['id'],json_encode($lval));
}
//$lmid = strtotime($lval['start_time'])-time(); //获取一个用于分割的关键字,一般是首个元素
$lval['icon'] = C('img_path').$lval['icon'];
$lval['cover'] = C('img_path').$lval['cover'];
if($goodsInfo['status'] > 2) {
$lrightArray[] = $lval;
} else {
$lleftArray[] = $lval;
}
$goodsList[$key]['list'] = array_merge($lleftArray,$lrightArray); //组合两个结果
}
$mid = strtotime($val['date'])-strtotime(date('Y-m-d')); //获取一个用于分割的关键字,一般是首个元素
if($mid >= 0) {
......@@ -342,6 +346,12 @@ class AuctionController extends BaseController
}
}
$goodsInfo['icon'] = C('img_path').$goodsInfo['icon'];
$goodsInfo['cover'] = C('img_path').$goodsInfo['cover'];
foreach($goodsInfo['desc'] as $dkey=>$dval) {
$goodsInfo['desc'][$dkey] = C('img_path').$dval;
}
$result = array(
'c'=>1
,'msg'=>'获取成功'
......@@ -549,6 +559,8 @@ class AuctionController extends BaseController
foreach($auctionArr as $key=>$val) {
//获取竞拍商品详情信息
$goodsInfo = S(C('REDIS'))->get($val['goods_id']);
$goodsInfo['icon'] = C('img_path').$goodsInfo['icon'];
$goodsInfo['cover'] = C('img_path').$goodsInfo['cover'];
$goodsInfo['auction_status'] = 0;//用户竞拍状态 0-竞拍失败 1-竞拍成功
$goodsInfo['receive_status'] = 0;//奖品领取状态 0-未领取 1-已领取
......
......@@ -16,7 +16,7 @@ class BaseController extends Controller {
'click_game'=>array(
'title'=>'玩游戏赚玩币'
,'type'=>'click_game'
,'icon'=>'https://res.g.llewan.com/zuiqiangyoulechang/task/click_game.png'
,'icon'=>'task/click_game.png'
,'list'=>array(
array(
'ch_name'=>'玩任意1款游戏'
......@@ -47,7 +47,7 @@ class BaseController extends Controller {
,'invite_user'=>array(
'title'=>'邀请新伙伴'
,'type'=>'invite_user'
,'icon'=>'https://res.g.llewan.com/zuiqiangyoulechang/task/invite_user.png'
,'icon'=>'task/invite_user.png'
,'list'=>array(
array(
'ch_name'=>'邀请1位新伙伴'
......
......@@ -139,6 +139,7 @@ class UserController extends BaseController
if(!empty($taskArr)) {
foreach($taskList as $key=>$val) {
$taskList[$key]['icon'] = C('img_path').$val['icon'];
$userTask = '';
foreach($taskArr as $tkey=>$tval) {
//判断用户是否有做相应任务
......
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