quguofeng 1 year ago
parent
commit
7db918e7ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Index.php

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

@@ -307,7 +307,7 @@ class Index extends Api
         }
         Apply::get(['nid'=>$recommenduser['id'],'uid'=>$this->auth->id])?$recommenduser['is_user_wx']=1:$recommenduser['is_user_wx']=0;
         //发送微信模板消息
-        Apply::wxVisitorMessage($u_user['name'],input('nid'),Date('Y-m-d H:i:s'));
+        Apply::wxVisitorMessage($u_user['username'],input('nid'),Date('Y-m-d H:i:s'));
         $this->success('',$recommenduser);
     }
     /**