fuyu 6 years ago
parent
commit
c603f5163f
1 changed files with 19 additions and 0 deletions
  1. 19 0
      application/common/library/send_message.php

+ 19 - 0
application/common/library/send_message.php

@@ -38,4 +38,23 @@ class send_message extends AliyunSms{
         return self::sendSms($phone,"中世康恺","SMS_153325903",array("t" => $type, "c" => $content));
     }
 
+    /*
+    * 发送[登录短信验证码]短信
+    * 通知: 类型:${code} 验证码
+    * @param {string} phone 手机号码
+    * @param {string} code 验证码
+    */
+    public static function sendSms2Login($phone,$code) {
+        return self::sendSms($phone,"中世康恺","SMS_163620994",array("code" => $codo));
+    }
+
+    /*
+    * 发送[修改短信验证码]短信
+    * 通知: 类型:${code} 验证码
+    * @param {string} phone 手机号码
+    * @param {string} code 验证码
+    */
+    public static function sendSms2UpDate($phone,$code) {
+        return self::sendSms($phone,"中世康恺","SMS_163620994",array("code" => $codo));
+    }
 }