Commit 2f8c4a15 authored by clone's avatar clone

bug

parent 550b3b4d
......@@ -148,7 +148,7 @@ class AppChat extends Basic
{
$params = $this->params;
$params = array(
/* $params = array(
'user_name' => 'cesh',
'msg_content' => 'ceshi666',
'target_type' => 'users',
......@@ -157,7 +157,7 @@ class AppChat extends Basic
'type' => '1',
'is_user' => '0',
'target' => 'agent_5739',
);
);*/
if (!isset($params['target_type']) || !isset($params['target']) || !isset($params['type'])
|| !isset($params['msg_content']) || !isset($params['source']) || !isset($params['is_user']) || !isset($params['from'])) {
return $this->response(ErrorCodeConst::ERROR_CODE_PARAM_NOT_EXIST, "请求参数错误");
......
......@@ -70,9 +70,9 @@ class GeTuiUtils
$result = [];
foreach ($push_id as $k => $v) {
echo $v;
//echo $v;
$target->set_clientId($v);
dump($target);
// dump($target);
$res = $igt->pushMessageToSingle($message, $target);
if ($res['result'] == 'ok') {
......
......@@ -49,7 +49,8 @@ class RPush
}
/** curl参数拼凑
/**
* @param $user_name
* @param $target_type users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息
* @param $target 注意这里需要用数组,数组长度建议不大于20,即使只有一个用户,也要用数组 ['u1'],给用户发送时数组元素是用户名,
......@@ -58,7 +59,7 @@ class RPush
* @param $msg_content
* @param $from
* @param $access_token
* @return \app\chat\utils\CurlResponse|bool
* @return array
*/
public function sendRequestByCurl($user_name, $target_type, $target, $msg_content, $from, $type, $access_token)
{
......@@ -91,7 +92,7 @@ class RPush
$response = $pushMessageToIgt->pushMessageToIgt($push_arr, $title, $payload);
return $pushMessageToIgt->pushMessageToIgt($push_arr, $title, $payload);
/* $curl = new \app\chat\utils\CurlUtil();
$curl->headers = [
"Accept" => "application/json",
......
......@@ -835,6 +835,7 @@ class GHouses extends BaseModel
->field($field)
->alias("a")
->join("o_order b", "a.id = b.house_id", "left")
->join("g_houses_follow_up c", "a.id = c.house_id", "left")
->where($where_)
->group("a.id ")
->select();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment