Explorar el Código

Merge branch 'master' of http://git.shengws.com/csx/XT_New

csx hace 5 años
padre
commit
c53ad679df
Se han modificado 1 ficheros con 14 adiciones y 14 borrados
  1. 14 14
      controllers/new_mobile_api_controllers/new_login_api_controller.go

+ 14 - 14
controllers/new_mobile_api_controllers/new_login_api_controller.go Ver fichero

517
 		return
517
 		return
518
 	}
518
 	}
519
 
519
 
520
-	this.Data["json"] = enums.MakeSuccessResponseJSON(map[string]interface{}{
521
-		"msg": "短信发送成功,有效期为10分钟",
522
-	})
523
-	this.ServeJSON()
524
-
525
-	//if err := service.SendVerificationCodeSMS(mobile, aespass); err != nil {
526
-	//	this.Data["json"] = enums.MakeFailResponseJSON(err.Error(), 600)
527
-	//	this.ServeJSON()
528
-	//} else {
529
-	//	this.Data["json"] = enums.MakeSuccessResponseJSON(map[string]interface{}{
530
-	//		"msg": "短信发送成功,有效期为10分钟",
531
-	//	})
532
-	//	this.ServeJSON()
533
-	//}
520
+	//this.Data["json"] = enums.MakeSuccessResponseJSON(map[string]interface{}{
521
+	//	"msg": "短信发送成功,有效期为10分钟",
522
+	//})
523
+	//this.ServeJSON()
524
+
525
+	if err := service.SendVerificationCodeSMS(mobile, aespass); err != nil {
526
+		this.Data["json"] = enums.MakeFailResponseJSON(err.Error(), 600)
527
+		this.ServeJSON()
528
+	} else {
529
+		this.Data["json"] = enums.MakeSuccessResponseJSON(map[string]interface{}{
530
+			"msg": "短信发送成功,有效期为10分钟",
531
+		})
532
+		this.ServeJSON()
533
+	}
534
 
534
 
535
 }
535
 }