Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
8099682c
Commit
8099682c
authored
Jun 11, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
12745049
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
xgg-saas-merchant/app/base/api/impl/h5/merchantApi.js
+3
-3
xgg-saas-merchant/app/base/system.js
+1
-1
No files found.
xgg-saas-merchant/app/base/api/impl/h5/merchantApi.js
View file @
8099682c
...
...
@@ -75,9 +75,9 @@ class TestAPI extends APIBase {
if
(
vcode
!=
noteCode
)
{
return
this
.
returnFail
(
"短信验证码错误,请重新填写"
);
}
let
openID
=
"gtbh5_"
+
obj
.
mobile
;
let
merchant_id
=
system
.
decryption
(
obj
.
merchant_id
);
let
merchant_id
=
system
.
decryption
(
decodeURIComponent
(
obj
.
merchant_id
));
let
params
=
{
saas_merchant_id
:
merchant_id
,
saas_id
:
null
,
...
...
@@ -103,7 +103,7 @@ class TestAPI extends APIBase {
//验证登录
async
loginUser
(
obj
)
{
// let merchant_id = decodeURIComponent(obj.merchant_id);
let
merchant_id
=
system
.
decryption
(
obj
.
merchant_id
);
let
merchant_id
=
system
.
decryption
(
decodeURIComponent
(
obj
.
merchant_id
)
);
let
user
=
await
this
.
getLoginUser
(
merchant_id
,
obj
.
openid
);
return
this
.
returnSuccess
(
user
);
}
...
...
xgg-saas-merchant/app/base/system.js
View file @
8099682c
var
fs
=
require
(
"fs"
);
var
objsettings
=
require
(
"../config/objsettings"
);
var
settings
=
require
(
"../config/settings"
);
const
crypto
=
require
(
"crypto"
);
class
System
{
static
declare
(
ns
)
{
var
ar
=
ns
.
split
(
'.'
);
...
...
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