浏览代码

7-9阿里短信回调处理优化

Home 5 年之前
父节点
当前提交
b10b4fd316
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/common/lib/sms/AliSms.php

+ 4 - 1
app/common/lib/sms/AliSms.php

@@ -66,6 +66,9 @@ class AliSms
 //            echo $e->getErrorMessage() . PHP_EOL;
         }
 
-        return true;
+        if (isset($result['Code']) && $result['Code'] === 'OK') {
+            return true;
+        }
+        return false;
     }
 }