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
ee684618
Commit
ee684618
authored
Apr 21, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Plain Diff
dd
parents
daedb63e
2f806950
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
13 deletions
+20
-13
xgg-saas-merchant/app/base/controller/impl/saas/invoice2Ctl.js
+0
-0
xgg-saas-merchant/app/base/controller/impl/saas/invoiceCtl.js
+0
-0
xgg-saas-merchant/app/base/controller/impl/uc/userCtl.js
+3
-3
xgg-saas-merchant/app/base/service/impl/saas/invoiceSve.js
+5
-0
xgg-saas-merchant/app/base/system.js
+9
-2
xgg-saas-merchant/app/config/settings.js
+3
-8
No files found.
xgg-saas-merchant/app/base/controller/impl/saas/invoice2Ctl.js
deleted
100644 → 0
View file @
daedb63e
This diff is collapsed.
Click to expand it.
xgg-saas-merchant/app/base/controller/impl/saas/invoiceCtl.js
View file @
ee684618
This diff is collapsed.
Click to expand it.
xgg-saas-merchant/app/base/controller/impl/uc/userCtl.js
View file @
ee684618
...
...
@@ -43,9 +43,9 @@ class UserCtl extends CtlBase {
async
setLogin
(
user
)
{
let
loginsid
=
"saasmcth_"
+
uuidv4
();
if
(
settings
.
env
=
"dev"
)
{
loginsid
=
"saasmcth_"
+
"2cb49932-fa02-44f0-90db-9f06fe02e5c7"
;
}
//
if (settings.env = "dev") {
//
loginsid = "saasmcth_" + "2cb49932-fa02-44f0-90db-9f06fe02e5c7";
//
}
await
this
.
redisClient
.
setWithEx
(
loginsid
,
JSON
.
stringify
(
user
),
60
*
60
*
5
);
return
loginsid
;
}
...
...
xgg-saas-merchant/app/base/service/impl/saas/invoiceSve.js
View file @
ee684618
...
...
@@ -31,6 +31,11 @@ class InvoiceService extends ServiceBase {
return
rs
;
}
async
applyBulkSave
(
params
)
{
let
rs
=
await
this
.
callms
(
"invoice"
,
"invoiceapplyBulkSave"
,
params
);
return
rs
;
}
transOrderField
(
rows
)
{
if
(
!
rows
||
rows
.
length
==
0
)
{
return
;
...
...
xgg-saas-merchant/app/base/system.js
View file @
ee684618
...
...
@@ -121,6 +121,13 @@ class System {
}
return
(
Number
(
y
)
*
100
).
toFixed
(
0
);
}
static
toFloat
(
f
,
digits
)
{
digits
=
digits
||
2
;
if
(
!
f
)
{
return
0
;
}
return
parseFloat
((
Number
(
f
)).
toFixed
(
digits
));
}
static
f2y
(
f
)
{
if
(
!
f
)
{
...
...
@@ -187,10 +194,10 @@ class System {
merchant
:
dev
+
":3101"
+
path
,
// 订单服务
order
:
local
+
":3103"
+
path
,
order
:
dev
+
":3103"
+
path
,
// 发票服务
invoice
:
local
+
":3105"
+
path
,
invoice
:
dev
+
":3105"
+
path
,
// 用户服务
uc
:
dev
+
":3106"
+
path
,
...
...
xgg-saas-merchant/app/config/settings.js
View file @
ee684618
...
...
@@ -128,18 +128,13 @@ var settings = {
deliverSysApi
:
function
()
{
let
domain
=
""
;
if
(
this
.
env
==
"dev"
)
{
// domain = "http://39.107.234.14:3002";
domain
=
"http://127.0.0.1:3002"
;
domain
=
"http://39.107.234.14:3002"
;
}
else
{
domain
=
"https://xggadmin.gongsibao.com"
;
}
return
{
// 推送订单s
orderPushApi
:
domain
+
"/web/order/orderCtl/addSourceOrder"
,
// 获取个体工商户信息
info
:
domain
+
"/web/business/businessmenCtl/info"
,
//获取工商户列表
businessmenPage
:
"/web/business/businessmenCtl/businessmenPage"
,
//发票是试算
calcInvoice
:
domain
+
"/web/invoice/invoiceCtl/calcInvoice"
,
}
},
redis
:
function
()
{
...
...
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