Apply .gitignore rules

This commit is contained in:
皮蛋13361098506
2025-01-06 16:21:36 +08:00
parent 1b77f62820
commit ccd2c530cf
580 changed files with 69806 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package qirui
import (
"fmt"
"goutil/webUtil"
)
const (
SEND_MESSAGE_URL = "http://api.qirui.com:7891/mt"
)
func SendMessage(apiKey, apiSecret, mobile, message string) (bool, error) {
smsUrl := fmt.Sprintf("%s?dc=15&un=%s&pw=%s&da=%s&sm=%s&tf=3&rf=2&rd=1", SEND_MESSAGE_URL, apiKey, apiSecret, mobile, message)
status, resp, err := webUtil.GetWebData3(smsUrl, "", webUtil.GetJsonHeader(), nil)
if err != nil {
return false, err
}
if status != 200 {
return false, fmt.Errorf("StatusCode is %d", status)
}
fmt.Printf("qirui.SendMessage:%s, %s, %s\n", mobile, message, string(resp))
return true, nil
}