WIN-2308041133\Administrator 4 months ago
parent
commit
871a5fb532
2 changed files with 3 additions and 3 deletions
  1. 1 1
      app/models/user/UserSpread.php
  2. 2 2
      crmeb/services/WechatTemplateService.php

+ 1 - 1
app/models/user/UserSpread.php

@@ -102,7 +102,7 @@ class UserSpread extends BaseModel
 
 
             @file_put_contents('quanju.txt',  $openid."-openid\r\n", 8);
             @file_put_contents('quanju.txt',  $openid."-openid\r\n", 8);
             @file_put_contents('quanju.txt',  json_encode($group)."-模版消息3\r\n", 8);
             @file_put_contents('quanju.txt',  json_encode($group)."-模版消息3\r\n", 8);
-            $res= WechatTemplateService::sendTemplate($openid, WechatTemplateService::BARGAIN_SUCCESS, $group);
+            $res= WechatTemplateService::sendTemplate($openid, intval(WechatTemplateService::BARGAIN_SUCCESS), $group);
             @file_put_contents('quanju.txt',  json_encode($res)."-模版消息返回3\r\n", 8);
             @file_put_contents('quanju.txt',  json_encode($res)."-模版消息返回3\r\n", 8);
 
 
         }
         }

+ 2 - 2
crmeb/services/WechatTemplateService.php

@@ -53,10 +53,10 @@ class WechatTemplateService implements ProviderInterface
     const OPEN_PINK_SUCCESS = 'OPENTM414349441';
     const OPEN_PINK_SUCCESS = 'OPENTM414349441';
 
 
     //砍价成功
     //砍价成功
-    const BARGAIN_SUCCESS = '60720';
+    const BARGAIN_SUCCESS = 60720;
 
 
 //    下级用户绑定
 //    下级用户绑定
-    const SUBORDINATE_BINDING = '60720';
+    const SUBORDINATE_BINDING = 60720;
     public static function getConstants($code = '')
     public static function getConstants($code = '')
     {
     {
         $oClass = new \ReflectionClass(__CLASS__);
         $oClass = new \ReflectionClass(__CLASS__);