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
hf
10 years ago
Commit
7b3347d4f4471a122584c9427fd99152afee5116
1 parent
493f9afc
do maylike and guang opt
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
framework
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Opt.php
framework
@
75bbc3b0
Subproject commit
119c247f5cf929aa1e059e40609bb16dd6b58f05
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
...
...
yohobuy/m.yohobuy.com/application/modules/Guang/controllers/Opt.php
View file @
7b3347d
...
...
@@ -26,13 +26,13 @@ class OptController extends AbstractAction
}
/* 判断参数是否有效 */
$id
=
$this
->
ge
t
(
'id'
);
$id
=
$this
->
pos
t
(
'id'
);
if
(
!
is_numeric
(
$id
))
{
break
;
}
/* 执行点赞或取消操作 */
$opt
=
$this
->
ge
t
(
'opt'
,
'ok'
);
$opt
=
$this
->
pos
t
(
'opt'
,
'ok'
);
$udid
=
$this
->
getUdid
();
$result
=
OptData
::
praiseArticle
(
$udid
,
$id
,
$opt
);
}
...
...
@@ -59,7 +59,7 @@ class OptController extends AbstractAction
}
/* 判断参数是否有效 */
$id
=
$this
->
ge
t
(
'id'
);
$id
=
$this
->
pos
t
(
'id'
);
if
(
!
is_numeric
(
$id
))
{
break
;
}
...
...
@@ -71,7 +71,7 @@ class OptController extends AbstractAction
}
/* 执行点赞或取消操作 */
$opt
=
$this
->
ge
t
(
'opt'
,
'ok'
);
$opt
=
$this
->
pos
t
(
'opt'
,
'ok'
);
$status
=
OptData
::
favoriteBrand
(
$uid
,
$id
,
$opt
);
if
(
!
$status
)
{
break
;
...
...
Please
register
or
login
to post a comment