Kaynağa Gözat

发送发货短信

abiao 5 yıl önce
ebeveyn
işleme
015385151b

+ 4 - 4
go/gopath/src/fohow.com/apps/helpers/sms_helper.go

@@ -19,10 +19,10 @@ func DispathSendSms(tels []string, expressNo string) {
 	params := fmt.Sprintf(`{"tel":"%s","expressNo":"%s"}`, kefuTel, expressNo)
 	/*	ok, resp := alidayu.SendSMS(mobile, sign, template, params)*/
 	dysms.HTTPDebugEnable = true
-	dysms.SetACLClient(beego.AppConfig.String("AliOssAccessId"), beego.AppConfig.String("AliOssAccessSecret")) // dysms.New(ACCESSID, ACCESSKEY)
-	//sign := "FOHOW商城售后"
-	sign := "凤凰玖玖"
-	template := "SMS_200713946"
+	dysms.SetACLClient(beego.AppConfig.String("AliSmsAccessId"), beego.AppConfig.String("AliSmsAccessSecret")) // dysms.New(ACCESSID, ACCESSKEY)
+	sign := "FOHOW商城售后"
+	//sign := "凤凰玖玖"
+	template := "SMS_200694500"
 	// 短信发送
 	respSendSms, err := dysms.SendSms(uuid.New(), mobile, sign, template, params).DoActionWithException()
 	if err != nil {

+ 4 - 0
go/gopath/src/fohow.com/conf/app.conf

@@ -56,6 +56,8 @@ PcHost = "http://testwww.labitumall.com"
 ##短信服务(阿里大于)相关
 AliDaYuAppKey = "23531135"
 AliDaYuAppSecret = "089035706ec0ea30c065ef42a1b07bb7"
+AliSmsAccessId = "LTAI4G53r9fk8UtmWo7P9Qxy"
+AliSmsAccessSecret = "jTjeHIaZ6cei0ZOfmuSxQKdlRRlxh7"
 
 MysqlMaster = root:fohow123!@#@tcp(127.0.0.1:3306)/test_fohow?charset=utf8&parseTime=true
 
@@ -141,6 +143,8 @@ PcHost = "https://www.hiwavo.com"
 ##短信服务(阿里大于)相关
 AliDaYuAppKey = "23531135"
 AliDaYuAppSecret = "089035706ec0ea30c065ef42a1b07bb7"
+AliSmsAccessId = "LTAI4G53r9fk8UtmWo7P9Qxy"
+AliSmsAccessSecret = "jTjeHIaZ6cei0ZOfmuSxQKdlRRlxh7"
 
 #MysqlMaster = root:Ud56Ur&fad@tcp(127.0.0.1:3306)/fohow_org?charset=utf8&parseTime=true
 MysqlMaster = vx99mall:fohow123!@#@tcp(rm-wz9pd3e23k8d32t99.mysql.rds.aliyuncs.com:3306)/fohow_org?charset=utf8&parseTime=true