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
332ee839
Commit
332ee839
authored
Jul 28, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
f2c78b80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
bpo-web/app/base/api/impl/bpoSDPJApi.js
+3
-0
bpo-web/app/base/utils/qrClient.js
+1
-1
No files found.
bpo-web/app/base/api/impl/bpoSDPJApi.js
View file @
332ee839
...
@@ -249,6 +249,9 @@ class BpoSDPJApi {
...
@@ -249,6 +249,9 @@ class BpoSDPJApi {
await
this
.
doSign3
(
ccashinfo
);
await
this
.
doSign3
(
ccashinfo
);
}
}
//异步推送信息
//异步推送信息
pushAsync
(
obj
);
pushAsync
(
obj
);
...
...
bpo-web/app/base/utils/qrClient.js
View file @
332ee839
...
@@ -17,7 +17,7 @@ class QrClient{
...
@@ -17,7 +17,7 @@ class QrClient{
if
(
!
text
){
if
(
!
text
){
return
null
;
return
null
;
}
}
let
key
=
"_"
+
new
Date
().
getTime
(),
filePath
=
settings
.
localPath
();
let
key
=
Math
.
random
().
toString
(
36
).
substr
(
2
,
6
)
+
"_"
+
new
Date
().
getTime
(),
filePath
=
settings
.
localPath
();
var
qr_png
=
qr
.
image
(
text
,
{
size
:
10
});
var
qr_png
=
qr
.
image
(
text
,
{
size
:
10
});
let
_r
=
await
qr_png
.
pipe
(
require
(
'fs'
).
createWriteStream
(
`
${
filePath
}${
key
}
.png`
));
let
_r
=
await
qr_png
.
pipe
(
require
(
'fs'
).
createWriteStream
(
`
${
filePath
}${
key
}
.png`
));
console
.
log
(
_r
);
console
.
log
(
_r
);
...
...
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