Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang_asynctask
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
5e2bb0c3
authored
May 07, 2021
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
6966cf56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
app/service/crm/cron_sendmsg/cron_sendmsg_service.go
cmd/crm/cron_sendmsg/main.go
config/prod/config.toml
app/service/crm/cron_sendmsg/cron_sendmsg_service.go
View file @
5e2bb0c3
...
...
@@ -2,14 +2,13 @@ package cron_sendmsg
import
(
"errors"
"fmt
"
cfg
"github.com/ichunt2019/cfg/lib
"
"github.com/tidwall/gjson"
"golang-asynctask/app/dao/crm/cron_sendmsg"
comfunc
"golang-asynctask/util/lib"
"net/http"
"net/url"
"time"
cfg
"github.com/ichunt2019/cfg/lib"
comfunc
"golang-asynctask/util/lib"
)
func
SendMsg
()
(
err
error
){
...
...
@@ -23,7 +22,7 @@ func SendMsg() (err error){
if
err
!=
nil
{
return
err
}
fmt
.
Println
(
res
)
//
fmt.Println(res)
if
(
len
(
res
)
<=
0
){
return
...
...
cmd/crm/cron_sendmsg/main.go
View file @
5e2bb0c3
...
...
@@ -18,6 +18,5 @@ func main(){
flag
.
StringVar
(
&
logPath
,
"logdir"
,
"./logs/"
,
"日志文件存储目录"
)
flag
.
Parse
()
boot
.
Init
(
configPath
,
logPath
)
cron_sendmsg
.
SendMsg
()
}
config/prod/config.toml
View file @
5e2bb0c3
...
...
@@ -3,6 +3,8 @@ title = "TOML 例子"
viewpath
=
"/home/www/templates/"
pushErpDomain
=
"http://crm.ichunt.net/api/pushComUserRelationToErp"
crmSendMsgByconflictSale
=
"http://crm.ichunt.net/api/sendMsgByconflictSale"
sendMsgByChangeInvoiceCom
=
"http://crm.ichunt.net/api/sendMsgByChangeInvoiceCom"
apiKey
=
"crm a1b2c3d4e5f6g7h8i9jk"
[rabbitmq_crm_comuser_fenfa]
...
...
@@ -19,4 +21,12 @@ queue_name="crm_pushcomuser_toerp"
routing_key=
"crm_pushcomuser_toerp"
exchange=
""
type=
"direct"
dns=
"amqp://WmsQue:EizM9I1TAxoO0tmzoOm@172.18.137.33:5672/"
[rabbitmq_crm_invoice_com_apply]
queue_name=
"crm_invoice_com_apply"
routing_key=
"crm_invoice_com_apply"
exchange=
""
type=
"direct"
dns=
"amqp://WmsQue:EizM9I1TAxoO0tmzoOm@172.18.137.33:5672/"
\ No newline at end of file
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