|
@@ -6,10 +6,12 @@ import ( |
|
|
"applet/consume/md" |
|
|
"applet/consume/md" |
|
|
"encoding/json" |
|
|
"encoding/json" |
|
|
"errors" |
|
|
"errors" |
|
|
|
|
|
"time" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
// CurlSendRedPackage 发送专属红包 |
|
|
// CurlSendRedPackage 发送专属红包 |
|
|
func CurlSendRedPackage(args md.SendRedPackageReq, masterId, userId string) (error, map[string]interface{}) { |
|
|
func CurlSendRedPackage(args md.SendRedPackageReq, masterId, userId string) (error, map[string]interface{}) { |
|
|
|
|
|
time.Sleep(time.Duration(10) * time.Second) |
|
|
url := cfg.AppComm.URL + "/api/v1/comm/pay/balance_pay/im_send_red_package" |
|
|
url := cfg.AppComm.URL + "/api/v1/comm/pay/balance_pay/im_send_red_package" |
|
|
utils.FilePutContents("CurlSendRedPackage", utils.SerializeStr(map[string]interface{}{ |
|
|
utils.FilePutContents("CurlSendRedPackage", utils.SerializeStr(map[string]interface{}{ |
|
|
"data": args, |
|
|
"data": args, |
|
|