Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
goods
Project
Project
Details
Activity
Releases
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
bp
goods
Commits
e868f921
Commit
e868f921
authored
Nov 04, 2021
by
顾文旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
890113af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
UserService.php
application/services/user/UserService.php
+5
-3
No files found.
application/services/user/UserService.php
View file @
e868f921
...
@@ -68,6 +68,8 @@ class UserService
...
@@ -68,6 +68,8 @@ class UserService
$end
=
microtime
(
true
);
$end
=
microtime
(
true
);
$totalTime
=
round
((
$end
-
$begin
),
4
)
*
1000
;
$totalTime
=
round
((
$end
-
$begin
),
4
)
*
1000
;
echo
"111111"
.
$response
[
response
][
errcode
];
echo
"222222"
.
$response
[
response
][
errmsg
]
;
if
(
$response
[
'code'
]
==
0
)
{
if
(
$response
[
'code'
]
==
0
)
{
$response
=
$response
[
'response'
];
$response
=
$response
[
'response'
];
}
}
...
@@ -171,14 +173,14 @@ class UserService
...
@@ -171,14 +173,14 @@ class UserService
$errCode
=
$wXBizDataCrypt
->
decryptData
(
$encryptedData
,
$iv
,
$decryptData
);
$errCode
=
$wXBizDataCrypt
->
decryptData
(
$encryptedData
,
$iv
,
$decryptData
);
if
(
$errCode
)
{
if
(
$errCode
)
{
FileLog
::
error
(
"bindPhone:解密失败"
,
json_encode
(
$params
,
JSON_UNESCAPED_UNICODE
),
''
,
'
jianghaiming@yidian-inc.com
'
);
FileLog
::
error
(
"bindPhone:解密失败"
,
json_encode
(
$params
,
JSON_UNESCAPED_UNICODE
),
''
,
''
);
throw
new
UserException
([
'cus'
=>
6
]);
throw
new
UserException
([
'cus'
=>
6
]);
}
}
// 手机号解密失败
// 手机号解密失败
if
(
empty
(
$decryptData
[
'phoneNumber'
]))
{
if
(
empty
(
$decryptData
[
'phoneNumber'
]))
{
FileLog
::
error
(
"bindPhone:手机号解密失败"
,
json_encode
(
$params
,
JSON_UNESCAPED_UNICODE
),
''
,
'
jianghaiming@yidian-inc.com
'
);
FileLog
::
error
(
"bindPhone:手机号解密失败"
,
json_encode
(
$params
,
JSON_UNESCAPED_UNICODE
),
''
,
''
);
FileLog
::
error
(
"bindPhone:手机号解密失败--decryptData"
,
json_encode
(
$decryptData
,
JSON_UNESCAPED_UNICODE
),
''
,
'
jianghaiming@yidian-inc.com
'
);
FileLog
::
error
(
"bindPhone:手机号解密失败--decryptData"
,
json_encode
(
$decryptData
,
JSON_UNESCAPED_UNICODE
),
''
,
''
);
throw
new
UserException
([
'cus'
=>
7
]);
throw
new
UserException
([
'cus'
=>
7
]);
}
}
...
...
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