Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ec930826
authored
Jan 14, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整post参数
parent
9cd1d6b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
order/sendPurchaseEmail/sendEmail/sendEmail.go
order/sendPurchaseEmail/sendEmail/sendEmail.go
View file @
ec930826
...
...
@@ -66,7 +66,9 @@ func SendPurchaseEmail(data string) (err error) {
// 推送ERP
api_url
:=
util
.
Configs
.
Api_domain
.
ApiUrl
+
"order/sysiteminfo"
params
:=
"order_id="
+
strconv
.
Itoa
(
order_id
)
api_header_map
:=
make
(
map
[
string
]
string
,
0
)
api_header_map
:=
map
[
string
]
string
{
"Content-Type"
:
"application/x-www-form-urlencoded"
,
}
err
=
http_post
(
api_url
,
params
,
api_header_map
)
...
...
@@ -108,6 +110,10 @@ func http_post(url string, data string, header map[string]string) (err error) {
return
err
}
if
res
.
Errcode
!=
0
{
logger
.
Info
(
res
.
Errmsg
)
// 记录错误信息
}
return
}
...
...
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