quguofeng 1 gadu atpakaļ
vecāks
revīzija
75f74e4316
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      application/api/controller/Index.php

+ 3 - 1
application/api/controller/Index.php

@@ -208,7 +208,9 @@ class Index extends Api
                 ];
                 Apply::insert($apply);
                 user::money(-$cost,$uid,'申请认识支出');
-                Apply::wxMessage(input('nid'),Date('Y-m-d H:i:s'));
+                //Apply::wxMessage(input('nid'),Date('Y-m-d H:i:s'));
+                //发送微信模板消息
+                Apply::wxKnowMessage($this->auth->id,input('nid'),Date('Y-m-d H:i:s'));
                 Db::commit();
                 $this->success('解锁成功');
             }catch (Exception $e){