'inform', 'informWay' => 'wx', 'userType' => 'admin', 'id' => 6, 'mobile' => '15280215347']; $data = array_merge($data, $respond); $producer = Yii::$app->rabbitmq->getProducer('producerInform'); echo '
';
		print_r($data);
		$msg = serialize($data);
		$r = $producer->publish($msg, 'exInform', 'routeInform');
		var_dump($r);
	}
	
	public static function incomeInform($params, $admin, $TMList)
	{
		$totalFee = 199;
		$orderSn = '2051229823132466';
		$orderName = '商品';
		$userName = '石头';
		$data['briefContent'] = "客户" . $userName . "付款" . $totalFee . '元';
		//收入提醒
		$openId = $admin['openId'];
		$shortTempId = 'OPENTM207422813';
		$tempId = isset($TMList[$shortTempId]) ? $TMList[$shortTempId] : '';
		$tMessage = ["touser" => $openId, "template_id" => $tempId, "url" => Yii::$app->params['adminUrl'] . '/order/detail?id=' . $orderSn, "data" => [
			"first" => ["value" => '您有宝贝售出哦!', "color" => "#173177"],
			"keyword1" => ["value" => (string)$orderSn, "color" => "#173177"],
			"keyword2" => ["value" => $orderName, "color" => "#173177"],
			"keyword3" => ["value" => number_format($totalFee, 2) . '元', "color" => "#173177"],
			"keyword4" => ["value" => number_format($totalFee, 2) . '元', "color" => "#173177"],
			"keyword5" => ["value" => $userName, "color" => "#173177"],
			"remark" => ["value" => '点此查看详细、编辑收花人信息。', "color" => "#173177"]]];
		$data['tMessage'] = json_encode($tMessage);
		$msg = "客户" . $userName . "付款" . $totalFee . '元';
		$data['content'] = $msg;
		return $data;
	}
	
	//添加通知内容 shish 2020.1.8
	public static function addData($data)
	{
		self::add($data);
	}
	
}