Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
Rock Zhang
2016-02-01 10:57:35 +0800
Commit
3fecba21a9784ae64408112426cc92d387dad28b
1 parent
da924005
修复在线客服获取不到数据时会报错的bug
Code Review By Rock Zhang
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Home/Online.php
yohobuy/m.yohobuy.com/application/models/Home/Online.php
View file @
3fecba2
...
...
@@ -19,10 +19,10 @@ class OnlineModel
{
//调用接口获取数据
$res
=
OnlineData
::
getOnlineServiceInfo
(
$clientType
);
$cateInfo
=
$res
[
'data'
];
$question
=
array
();
$tab
=
array
();
if
(
$cateInfo
)
{
if
(
isset
(
$res
[
'data'
]))
{
$cateInfo
=
$res
[
'data'
];
foreach
(
$cateInfo
as
$key
=>
$value
)
{
//强制截成3个tab
if
(
$key
>
2
)
{
...
...
Please
register
or
login
to post a comment