DengTao 8 years ago
parent
commit
30278ba490

+ 1 - 3
www/protected/components/QyWechat.php

@@ -1983,9 +1983,7 @@ class QyWechat
         if (ENVIRONMENT != 'product') {
             // 测试账号列表检索
             $test_userid_list = [
-                'chengyuanyuan',
-                '   ',
-                'liliang',
+                'dengtao',
             ];
             if (!in_array($data['touser'], $test_userid_list)) {
                 return false;

+ 1 - 2
www/protected/controllers/ROrderController.php

@@ -358,7 +358,7 @@ class ROrderController extends AdminController{
                     $wechat_data = array(
                         'touser' => $technician_obj->weixin_userid,
                         'msgtype' => 'news',
-                        'agentid' => '1',
+                        'agentid' => 1,
                         'news' => array(
                             'articles' => array(
                                 array(
@@ -369,7 +369,6 @@ class ROrderController extends AdminController{
                             ),
                         ),
                     );
-
                     $char = $wechat->sendMessage($wechat_data);
                 }
             }