Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
7617fcda
Commit
7617fcda
authored
Nov 21, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
6466add5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
UserService.php
application/index/service/UserService.php
+1
-3
Users.php
application/model/Users.php
+3
-3
No files found.
application/index/service/UserService.php
View file @
7617fcda
...
@@ -448,11 +448,9 @@ class UserService
...
@@ -448,11 +448,9 @@ class UserService
return
false
;
return
false
;
}
}
$param
[
'wx_
ope
n_id'
]
=
$open_id
;
$param
[
'wx_
unio
n_id'
]
=
$open_id
;
$fields
=
'a.user_phone'
;
$fields
=
'a.user_phone'
;
$result
=
$this
->
user
->
getUserInfoByOpenId
(
$param
,
$fields
);
$result
=
$this
->
user
->
getUserInfoByOpenId
(
$param
,
$fields
);
dump
(
$param
);
dump
(
$result
);
if
(
$result
)
{
if
(
$result
)
{
return
true
;
return
true
;
...
...
application/model/Users.php
View file @
7617fcda
...
@@ -973,8 +973,8 @@ class Users extends Model
...
@@ -973,8 +973,8 @@ class Users extends Model
public
function
getUserInfoByOpenId
(
$param
,
$fields
)
public
function
getUserInfoByOpenId
(
$param
,
$fields
)
{
{
$where_
=
[];
$where_
=
[];
if
(
isset
(
$param
[
"wx_
ope
n_id"
]))
{
if
(
isset
(
$param
[
"wx_
unio
n_id"
]))
{
$where_
[
"b.wx_
open_id"
]
=
$param
[
"wx_ope
n_id"
];
$where_
[
"b.wx_
union_id"
]
=
$param
[
"wx_unio
n_id"
];
}
}
$data
=
$this
$data
=
$this
->
field
(
$fields
)
->
field
(
$fields
)
...
@@ -982,7 +982,7 @@ class Users extends Model
...
@@ -982,7 +982,7 @@ class Users extends Model
->
join
(
"u_wx_info b"
,
"a.buyer_id=b.id"
,
"left"
)
->
join
(
"u_wx_info b"
,
"a.buyer_id=b.id"
,
"left"
)
->
where
(
$where_
)
->
where
(
$where_
)
->
select
();
->
select
();
dump
(
$this
->
getLastSql
());
//
dump($this->getLastSql());
return
$data
;
return
$data
;
}
}
}
}
...
...
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