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
whb
9 years ago
Commit
4ba70e190f7aa6ddc699ef3345c5bc0f1c823402
1 parent
62656e36
修改搜索
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
yohobuy/www.yohobuy.com/application/models/Index/Home.php
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Register.php
yohobuy/www.yohobuy.com/application/models/Index/Home.php
View file @
4ba70e1
...
...
@@ -235,6 +235,15 @@ class HomeModel
if
(
$val
[
'price'
]
==
false
)
{
$val
[
'price'
]
=
$val
[
'salePrice'
];
}
//TODO 字段要调整
$val
[
'tags'
][
'isFew'
]
=
$val
[
'is_soon_sold_out'
];
$val
[
'tags'
][
'isLimit'
]
=
$val
[
'tags'
][
'is_discount'
];
$val
[
'tags'
][
'is_discount'
]
=
$val
[
'is_soon_sold_out'
];
$val
[
'tags'
][
'isNew'
]
=
$val
[
'tags'
][
'is_new'
];
$val
[
'tags'
][
'isYearMidPromotion'
]
=
$val
[
'tags'
][
'midYear'
];
$val
[
'tags'
][
'isYearEndPromotion'
]
=
$val
[
'tags'
][
'yearEnd'
];
unset
(
$val
[
'tags'
][
'is_advance'
],
$val
[
'tags'
][
'is_discount'
],
$val
[
'tags'
][
'is_limited'
],
$val
[
'tags'
][
'is_new'
],
$val
[
'tags'
][
'is_yohood'
],
$val
[
'tags'
][
'midYear'
],
$val
[
'tags'
][
'yearEnd'
]);
if
(
!
empty
(
$val
))
{
$result
[]
=
$val
;
}
...
...
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Register.php
View file @
4ba70e1
...
...
@@ -154,11 +154,11 @@ class RegisterController extends WebAction
*/
public
function
mobileregisterAction
()
{
$mobile
=
trim
(
$this
->
post
(
'phoneNum'
),
' '
);
//mobile
$area
=
intval
(
trim
(
$this
->
post
(
'region'
),
' '
));
//area
$mobile
=
trim
(
$this
->
post
(
'mobile'
),
' '
);
//mobile
$area
=
intval
(
trim
(
$this
->
post
(
'area'
),
' '
));
//area
$verifyCode
=
strtolower
(
trim
(
$this
->
post
(
'captcha'
),
' '
));
//captcha
$code
=
trim
(
$this
->
post
(
'msgCaptcha'
),
''
);
//code
$password
=
$this
->
post
(
'pwd'
);
$code
=
trim
(
$this
->
post
(
'code'
),
''
);
//code
$password
=
$this
->
post
(
'password'
);
$url
=
'/passport/register/index'
;
$refer
=
$this
->
getCookie
(
'refer'
);
$data
=
array
(
'code'
=>
400
,
'message'
=>
''
,
'data'
=>
''
);
...
...
Please
register
or
login
to post a comment