Commit 00424b4d by Li Feifei

debug

parent dccfaf2d
Pipeline #15691 passed with stages
in 34 seconds
......@@ -29,7 +29,7 @@
# Database.
[database]
link = "mysql:video:vlty&AxMwT$lmLv6bN8dkDuBYlh%N5pe@tcp(rm-2zevlk47ul0ovuci80o.mysql.rds.aliyuncs.com:3306)/xyu"
debug = true
debug = false
# Database logger.
[database.logger]
Path = "/tmp/log/gf-app/sql"
......
......@@ -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 {
......
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment