cqpCow 2 years ago
parent
commit
2476f26665
1 changed files with 11 additions and 6 deletions
  1. 11 6
      app/Service/CodeService.php

+ 11 - 6
app/Service/CodeService.php

@@ -29,14 +29,19 @@ class CodeService extends Service
     }
 
     public function sendCode($code){
-        $serivce = new WxService();
-        list($status,$msg) = $serivce->getToken();
-        if(! $status) return [false,$msg];
-
-        list($status,$msg) = $serivce->sendToWx($msg,$code);
-        return [$status,$msg];
+        return [true,''];
     }
 
+    //微信公众号发送 目前发现不行
+//    public function sendCode($code){
+//        $serivce = new WxService();
+//        list($status,$msg) = $serivce->getToken();
+//        if(! $status) return [false,$msg];
+//
+//        list($status,$msg) = $serivce->sendToWx($msg,$code);
+//        return [$status,$msg];
+//    }
+
     public function isSubmitlimitation($cacheKey){
         if(Cache::has($cacheKey)){
             return false;