Ver código fonte

发短信逻辑

shish 6 anos atrás
pai
commit
fb80e22430
1 arquivos alterados com 11 adições e 5 exclusões
  1. 11 5
      common/components/sms.php

+ 11 - 5
common/components/sms.php

@@ -10,10 +10,9 @@ use Yii;
  * 短信接口
  *
 
-平台发短信
-
+平台系统发短信
 考虑短信总数是否足够
-
+平台客户发短信需要限制IP和数量(user_id)
 
 商家发短信
 考虑总条数
@@ -23,7 +22,9 @@ use Yii;
 
 商家的客户发短信需要限制IP和数量
 
- *
+ * 如果平台余额充值,分不限制和根据ip数量限制二种
+ * 如果商家余额充值,分不限制和根据ip数量限制二种
+ * 如果不足就记录一下
  */
 class sms
 {
@@ -33,7 +34,12 @@ class sms
 	const PASSWORD = 'abc178c7';
 	//一个用户一天同个IP申请的短信条数
 	const LIMIT = 10;
-	
+
+	public static function platformFreeSend()
+	{
+
+	}
+
 	//商家发短信 shish 2019.12.24
 	public static function merchantSend($mobile, $msg, $merchant)
 	{