Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
0eb1491101e6cd28d1e98159fd0918d8bc971571
1 parent
36df31e4
remove the IndexData.php and Index.php
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
87 deletions
library/LibModels/Wap/Index/IndexData.php
yohobuy/m.yohobuy.com/application/models/Index/Index.php
library/LibModels/Wap/Index/IndexData.php
deleted
100644 → 0
View file @
36df31e
<?php
namespace
LibModels\Wap\Index
;
use
Api\Sign
;
use
Api\Yohobuy
;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of IndexChannel
*
* @author Administrator
*/
class
IndexData
{
public
static
function
channelData
()
{
$param
=
Yohobuy
::
param
();
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
return
Yohobuy
::
get
(
Yohobuy
::
SERVICE_URL
.
'operations/api/v5/entrance/getEntrance'
,
$param
);
}
}
yohobuy/m.yohobuy.com/application/models/Index/Index.php
deleted
100644 → 0
View file @
36df31e
<?php
namespace
Index
;
use
LibModels\Wap\Index\IndexData
;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of Index
*
* @author Administrator
*/
class
IndexModel
{
public
static
function
getChannel
(){
$result
=
array
();
$result
[
'showYohood'
]
=
false
;
$data
=
IndexData
::
channelData
();
$channelList
=
array
();
if
(
$data
[
'code'
]
==
200
&&
isset
(
$data
[
'data'
][
'list'
])){
foreach
(
$data
[
'data'
][
'list'
]
as
$key
=>
$value
){
switch
(
$value
[
'channel_id'
])
{
case
5
:
$result
[
'showYohood'
]
=
true
;
$result
[
'yohoodHref'
]
=
'/yohood'
;
break
;
case
1
:
$channelList
[
$key
][
'href'
]
=
'/boys'
;
$channelList
[
$key
][
'title'
]
=
'男生'
;
$channelList
[
$key
][
'entitle'
]
=
'BOYS'
;
break
;
case
2
:
$channelList
[
$key
][
'href'
]
=
'/girls'
;
$channelList
[
$key
][
'title'
]
=
'女生'
;
$channelList
[
$key
][
'entitle'
]
=
'GIRLS'
;
break
;
case
3
:
$channelList
[
$key
][
'href'
]
=
'/kids'
;
$channelList
[
$key
][
'title'
]
=
'潮童'
;
$channelList
[
$key
][
'entitle'
]
=
'KIDS'
;
break
;
case
4
:
$channelList
[
$key
][
'href'
]
=
'/lifestyle'
;
$channelList
[
$key
][
'title'
]
=
'创意生活'
;
$channelList
[
$key
][
'entitle'
]
=
'LIFESTYLE'
;
break
;
default
:
break
;
}
}
$result
[
'channelList'
]
=
$channelList
;
}
return
$result
;
}
}
Please
register
or
login
to post a comment