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
702d90f7
Commit
702d90f7
authored
Jun 01, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
2d4a1b6a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
5 deletions
+49
-5
xgg-saas-merchant/app/base/controller/impl/saas/merchantCtl.js
+26
-0
xgg-saas-merchant/app/base/controller/impl/uc/userCtl.js
+12
-0
xgg-saas-merchant/app/base/system.js
+5
-5
xgg-saas-merchant/app/config/localsettings.js
+6
-0
No files found.
xgg-saas-merchant/app/base/controller/impl/saas/merchantCtl.js
View file @
702d90f7
...
@@ -119,5 +119,31 @@ class MerchantCtl extends CtlBase {
...
@@ -119,5 +119,31 @@ class MerchantCtl extends CtlBase {
return
system
.
getResult
({
type
:
res
});
return
system
.
getResult
({
type
:
res
});
}
}
/**
* fn:获取商户交付信息
* @param params
* @param pobj2
* @param req
* @returns {Promise<{msg: string, data: (*|null), bizmsg: string, status: number}|*>}
*/
async
delvierInfo
(
params
,
pobj2
,
req
)
{
try
{
if
(
!
params
.
saas_merchant_id
){
system
.
getResult
(
null
,
`登录失效,请重新登录`
);
}
let
user
=
req
.
loginUser
;
let
rs
=
{
contact_man
:
user
.
contact_man
,
contact_mobile
:
user
.
contact_mobile
,
contact_email
:
user
.
contact_email
,
contact_addr
:
user
.
contact_addr
,
};
return
system
.
getResult
(
rs
);
}
catch
(
error
)
{
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
}
}
module
.
exports
=
MerchantCtl
;
module
.
exports
=
MerchantCtl
;
xgg-saas-merchant/app/base/controller/impl/uc/userCtl.js
View file @
702d90f7
...
@@ -12,6 +12,7 @@ class UserCtl extends CtlBase {
...
@@ -12,6 +12,7 @@ class UserCtl extends CtlBase {
this
.
redisClient
=
system
.
getObject
(
"util.redisClient"
);
this
.
redisClient
=
system
.
getObject
(
"util.redisClient"
);
this
.
captchaSve
=
system
.
getObject
(
"service.common.captchaSve"
);
this
.
captchaSve
=
system
.
getObject
(
"service.common.captchaSve"
);
this
.
deliverSve
=
system
.
getObject
(
"service.common.deliverSve"
);
this
.
deliverSve
=
system
.
getObject
(
"service.common.deliverSve"
);
this
.
merchantCtl
=
system
.
getObject
(
"service.saas.merchantSve"
);
}
}
async
login
(
pobj
,
pobj2
,
req
,
res
)
{
async
login
(
pobj
,
pobj2
,
req
,
res
)
{
...
@@ -27,6 +28,17 @@ class UserCtl extends CtlBase {
...
@@ -27,6 +28,17 @@ class UserCtl extends CtlBase {
}
}
loginUser
=
loginUser
.
data
;
loginUser
=
loginUser
.
data
;
let
channel
=
await
this
.
merchantCtl
.
info
({
id
:
loginUser
.
saas_merchant_id
});
if
(
channel
.
status
!=
0
)
{
return
system
.
getResult
(
null
,
`渠道【
${
loginName
}
】不存在`
);
}
channel
=
channel
.
data
;
loginUser
.
contact_man
=
channel
.
contact_man
;
loginUser
.
contact_mobile
=
channel
.
contact_mobile
;
loginUser
.
contact_email
=
channel
.
contact_email
;
loginUser
.
contact_addr
=
channel
.
contact_addr
;
var
loginsid
=
await
this
.
setLogin
(
loginUser
);
var
loginsid
=
await
this
.
setLogin
(
loginUser
);
let
rs
=
{
let
rs
=
{
key
:
loginsid
,
key
:
loginsid
,
...
...
xgg-saas-merchant/app/base/system.js
View file @
702d90f7
...
@@ -188,22 +188,22 @@ class System {
...
@@ -188,22 +188,22 @@ class System {
let
dev
=
"http://39.107.234.14"
;
let
dev
=
"http://39.107.234.14"
;
return
{
return
{
// 公共服务
// 公共服务
common
:
dev
+
":3102"
+
path
,
common
:
local
+
":3102"
+
path
,
// 商户服务
// 商户服务
merchant
:
dev
+
":3101"
+
path
,
merchant
:
local
+
":3101"
+
path
,
// 订单服务
// 订单服务
order
:
dev
+
":3103"
+
path
,
order
:
local
+
":3103"
+
path
,
// 发票服务
// 发票服务
invoice
:
dev
+
":3105"
+
path
,
invoice
:
dev
+
":3105"
+
path
,
// 用户服务
// 用户服务
uc
:
dev
+
":3106"
+
path
,
uc
:
local
+
":3106"
+
path
,
// 交易
// 交易
trade
:
dev
+
":3107"
+
path
,
trade
:
local
+
":3107"
+
path
,
}
}
}
else
{
}
else
{
return
{
return
{
...
...
xgg-saas-merchant/app/config/localsettings.js
View file @
702d90f7
...
@@ -5,6 +5,12 @@ var settings={
...
@@ -5,6 +5,12 @@ var settings={
password
:
"Gongsibao2018"
,
password
:
"Gongsibao2018"
,
db
:
10
,
db
:
10
,
},
},
// redis:{
// host: "127.0.0.1",
// port: 6379,
// password: "",
// db:10,
// },
database
:{
database
:{
dbname
:
"xgg"
,
dbname
:
"xgg"
,
user
:
"write"
,
user
:
"write"
,
...
...
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