作者 黎建湛

云控台的底层代码修改完善

@@ -100,10 +100,6 @@ class KafkaSend extends BaseController @@ -100,10 +100,6 @@ class KafkaSend extends BaseController
100 return $result; 100 return $result;
101 } 101 }
102 102
103 - //$url = Config::get('app.facebook_url').'api/fb/is_online_cache';  
104 - //$postdata = ['email' => $res['wxid']];  
105 - //$code = $this->postCurl($url, json_encode($postdata));  
106 -  
107 // 类型 103 // 类型
108 if ($res['type'] == 'uploadMsgImg') { 104 if ($res['type'] == 'uploadMsgImg') {
109 $typeMsg = 'image'; 105 $typeMsg = 'image';
@@ -148,7 +144,7 @@ class KafkaSend extends BaseController @@ -148,7 +144,7 @@ class KafkaSend extends BaseController
148 'msg_platform' => $res['msg_platform'], 144 'msg_platform' => $res['msg_platform'],
149 'softname' => $res['softname'] 145 'softname' => $res['softname']
150 ]; 146 ];
151 - trace('postdata 数组 end: '.json_encode($postdata, JSON_UNESCAPED_UNICODE),'test_consumer'); 147 + // trace('postdata 数组 end: '.json_encode($postdata, JSON_UNESCAPED_UNICODE),'test_consumer');
152 $code = $this->postCurl($url, json_encode($postdata)); 148 $code = $this->postCurl($url, json_encode($postdata));
153 149
154 if ($code == 200) { 150 if ($code == 200) {
@@ -102,10 +102,6 @@ class TestKafkaSend extends BaseController @@ -102,10 +102,6 @@ class TestKafkaSend extends BaseController
102 return $result; 102 return $result;
103 } 103 }
104 104
105 - //$url = Config::get('app.facebook_test_url').'api/fb/is_online_cache';  
106 - //$postdata = ['email' => $res['wxid']];  
107 - //$code = $this->postCurl($url, json_encode($postdata));  
108 -  
109 // 类型 105 // 类型
110 if ($res['type'] == 'uploadMsgImg') { 106 if ($res['type'] == 'uploadMsgImg') {
111 $typeMsg = 'image'; 107 $typeMsg = 'image';
@@ -150,7 +146,7 @@ class TestKafkaSend extends BaseController @@ -150,7 +146,7 @@ class TestKafkaSend extends BaseController
150 'msg_platform' => $res['msg_platform'], 146 'msg_platform' => $res['msg_platform'],
151 'softname' => $res['softname'] 147 'softname' => $res['softname']
152 ]; 148 ];
153 - trace('postdata 数组 end: '.json_encode($postdata, JSON_UNESCAPED_UNICODE),'test_consumer'); 149 + // trace('postdata 数组 end: '.json_encode($postdata, JSON_UNESCAPED_UNICODE),'test_consumer');
154 $code = $this->postCurl($url, json_encode($postdata)); 150 $code = $this->postCurl($url, json_encode($postdata));
155 151
156 if ($code == 200) { 152 if ($code == 200) {