Commit c69a3a44 authored by hujun's avatar hujun

评价经纪人推送

parent d569088c
......@@ -9,6 +9,7 @@
namespace app\api\service;
use app\api\untils\GeTuiUtils;
use app\model\AAgents;
use app\model\ChatUser;
use app\model\ChatUserExt;
use app\model\OPushMessageModel;
......@@ -40,6 +41,12 @@ class PushClientService
$report = new OReportModel();
$user_id = $report->getFieldValue('user_id', $report_id);
if (empty($message)) {
$m_agent = new AAgents();
$name = $m_agent->getAgentsById(58, 'name');
$message = '同联商业邀请您评价经纪人'.$name.'对商铺的带看服务';
}
$data['message'] = $message;
$data['order_id'] = $order_id;
$data['house_id'] = $house_id;
......
......@@ -132,7 +132,7 @@ class OrderLog extends Basic
//评价经纪人
$push_client = new PushClientService();
$push_client->record((int)$params["report_id"], (int)$params["order_id"], 0, '评价经纪人', $this->agentId);
$push_client->record((int)$params["report_id"], (int)$params["order_id"], 0, '', (int)$this->agentId);
return $this->response("200", "request success", []);
} else {
return $this->response("101", "request faild");
......
......@@ -13,7 +13,7 @@ use think\Db;
class OPushMessageModel
{
protected $table = "o_push_message";
protected $table = "u_push_message";
private $db_;
public function __construct()
......
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