Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
a79066d1
Commit
a79066d1
authored
Aug 31, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存用户个人信息
parent
a84597b9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
Member.php
application/controllers/Member.php
+2
-2
AdvMobile.php
application/models/DAO/Adv/AdvMobile.php
+0
-1
Member.php
application/models/DAO/Member.php
+8
-8
Store.php
application/models/DAO/Store.php
+0
-1
No files found.
application/controllers/Member.php
View file @
a79066d1
...
@@ -34,10 +34,10 @@ class MemberController extends \Our\Controller_AbstractApi {
...
@@ -34,10 +34,10 @@ class MemberController extends \Our\Controller_AbstractApi {
public
function
saveMemberInfoAction
(){
public
function
saveMemberInfoAction
(){
$data
=
$this
->
req
[
\Our\NameConst
::
data
];
$data
=
$this
->
req
[
\Our\NameConst
::
data
];
$result
=
$this
->
memberService
->
saveMemberInfo
(
$data
,
$this
->
memberId
);
$result
=
$this
->
memberService
->
saveMemberInfo
(
$data
,
$this
->
memberId
);
if
(
!
$result
){
if
(
$result
===
false
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
saveMemberFailed
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
saveMemberFailed
);
}
}
$this
->
success
(
array
(
'sql'
=>
$result
),
\Our\DescribeConst
::
saveMemberSuccess
,
\Our\DescribeConst
::
saveMemberSuccess
);
$this
->
success
(
new
stdClass
(
),
\Our\DescribeConst
::
saveMemberSuccess
,
\Our\DescribeConst
::
saveMemberSuccess
);
}
}
/**
/**
...
...
application/models/DAO/Adv/AdvMobile.php
View file @
a79066d1
...
@@ -43,7 +43,6 @@ class AdvMobileModel extends \DAO\AbstractModel{
...
@@ -43,7 +43,6 @@ class AdvMobileModel extends \DAO\AbstractModel{
}
}
}
}
$result
=
$this
->
db
->
fetchAll
();
$result
=
$this
->
db
->
fetchAll
();
//echo $this->db->getLastSql();
return
$result
;
return
$result
;
}
}
...
...
application/models/DAO/Member.php
View file @
a79066d1
...
@@ -269,14 +269,14 @@ class MemberModel extends \DAO\AbstractModel
...
@@ -269,14 +269,14 @@ class MemberModel extends \DAO\AbstractModel
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
memberNameLengthLimit
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
memberNameLengthLimit
);
}
}
}
}
if
(
$where
[
'memberBirthday'
])
{
/*
if ($where['memberBirthday']) {
if (!\Our\Validate::checkDateStr($where['memberBirthday'])) {
if (!\Our\Validate::checkDateStr($where['memberBirthday'])) {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::memberBirthdayError);
\Error\ErrorModel::throwException(\Error\CodeConfigModel::memberBirthdayError);
}
}
if (strtotime($where['memberBirthday']) > strtotime(date('Y-m-d'))) {
if (strtotime($where['memberBirthday']) > strtotime(date('Y-m-d'))) {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::illegalMemberBirthday);
\Error\ErrorModel::throwException(\Error\CodeConfigModel::illegalMemberBirthday);
}
}
}
}
*/
if
(
!
(
$where
[
'memberSex'
]
&&
in_array
(
$where
[
'memberSex'
],
array
(
\Our\ApiConst
::
woman
,
\Our\ApiConst
::
man
))))
{
if
(
!
(
$where
[
'memberSex'
]
&&
in_array
(
$where
[
'memberSex'
],
array
(
\Our\ApiConst
::
woman
,
\Our\ApiConst
::
man
))))
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
wrongMemberSex
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
wrongMemberSex
);
}
}
...
@@ -552,12 +552,12 @@ class MemberModel extends \DAO\AbstractModel
...
@@ -552,12 +552,12 @@ class MemberModel extends \DAO\AbstractModel
$this
->
_changeNum
(
$type
,
$memberId
,
$num
);
$this
->
_changeNum
(
$type
,
$memberId
,
$num
);
}
}
}
}
public
function
getListMemberUrl
(
$list
){
public
function
getListMemberUrl
(
$list
){
foreach
(
$list
as
&
$li
){
foreach
(
$list
as
&
$li
){
$li
[
'memberAvatar'
]
=
$this
->
getMemberAvatarUrl
(
$li
[
'memberId'
],
$li
[
'memberAvatar'
]);
$li
[
'memberAvatar'
]
=
$this
->
getMemberAvatarUrl
(
$li
[
'memberId'
],
$li
[
'memberAvatar'
]);
}
}
return
$list
;
return
$list
;
}
}
//删除统计缓存
//删除统计缓存
public
function
deleteTotalCache
(
$memberId
,
$type
=
FALSE
){
public
function
deleteTotalCache
(
$memberId
,
$type
=
FALSE
){
...
...
application/models/DAO/Store.php
View file @
a79066d1
...
@@ -200,7 +200,6 @@ class StoreModel extends \DAO\AbstractModel
...
@@ -200,7 +200,6 @@ class StoreModel extends \DAO\AbstractModel
}
else
{
}
else
{
$result
=
$this
->
db
->
select
(
$field
)
->
from
(
$this
->
_tableName
)
->
where
(
$where
)
->
fetchAll
();
$result
=
$this
->
db
->
select
(
$field
)
->
from
(
$this
->
_tableName
)
->
where
(
$where
)
->
fetchAll
();
}
}
//echo $this->db->getLastSql();
return
$result
;
return
$result
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment