Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
ppt_server
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Li Feifei
ppt_server
Commits
00424b4d
Commit
00424b4d
authored
Jul 28, 2021
by
Li Feifei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
dccfaf2d
Pipeline
#15691
passed with stages
in 34 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
config.toml
config/config.toml
+1
-1
http_client.go
library/http/http_client.go
+0
-2
file_notify.go
packed/file/file_notify.go
+2
-2
No files found.
config/config.toml
View file @
00424b4d
...
...
@@ -29,7 +29,7 @@
# Database.
[database]
link
=
"mysql:video:vlty&AxMwT$lmLv6bN8dkDuBYlh%N5pe@tcp(rm-2zevlk47ul0ovuci80o.mysql.rds.aliyuncs.com:3306)/xyu"
debug
=
tru
e
debug
=
fals
e
# Database logger.
[database.logger]
Path
=
"/tmp/log/gf-app/sql"
...
...
library/http/http_client.go
View file @
00424b4d
...
...
@@ -23,8 +23,6 @@ func handle(response *ghttp.ClientResponse, err error) ([]byte, error) {
// 下载文件
func
Download
(
file
string
,
path
string
)
error
{
g
.
Log
()
.
Async
()
.
Infof
(
"Download url: %s "
,
file
)
resp
,
err
:=
g
.
Client
()
.
Get
(
file
)
if
err
!=
nil
{
...
...
packed/file/file_notify.go
View file @
00424b4d
...
...
@@ -2,6 +2,7 @@ package file
import
(
"encoding/json"
"fmt"
"os"
"ppt_server/app/model"
...
...
@@ -30,17 +31,16 @@ func newNotify() *notify {
//回调验权
func
(
n
*
notify
)
verify
(
url
string
,
data
g
.
Map
)
error
{
res
,
err
:=
n
.
client
.
Post
(
url
,
data
)
if
err
!=
nil
{
return
err
}
fmt
.
Println
(
"res === "
,
string
(
res
))
var
notifyResponse
model
.
NotifyResponse
if
err
=
json
.
Unmarshal
(
res
,
&
notifyResponse
);
err
!=
nil
{
return
err
}
if
notifyResponse
.
Code
!=
200
{
return
gerror
.
New
(
notifyResponse
.
Msg
)
}
...
...
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