Browse Source

调整参数

master v0.1.1
guzeng 3 years ago
parent
commit
25c5190d69
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      wo.client.go

+ 10
- 1
wo.client.go View File

@ -6,7 +6,16 @@ import (
"log" "log"
) )
func SendWoSms(cpcode, key string, msg, mobiles string, excode, templetId string, url ...string) (map[string]interface{}, error) {
/**
* 发送联通融合通信短信
* @cpcode 商户编号
* @key accessKey
* @excode 扩展码
* @mobiles 手机号多个用逗号隔开
* @templetId 模板id
* @msg 模板中变量的值如果包含多个参数以半角英文逗号分隔
*/
func SendWoSms(cpcode, key string, excode, mobiles string, templetId, msg string, url ...string) (map[string]interface{}, error) {
if cpcode == "" || key == "" { if cpcode == "" || key == "" {
return nil, errors.New("参数错误") return nil, errors.New("参数错误")


Loading…
Cancel
Save