Files
OMS/app/erpapi/lib/system/response/msg.php
2025-12-28 23:13:25 +08:00

36 lines
903 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Copyright © ShopeX http://www.shopex.cn. All rights reserved.
* See LICENSE file for license details.
*/
class erpapi_system_response_msg extends erpapi_system_response_abstract
{
/**
* 消息类通知
*
* @return void
* @author
*/
public function notify($params)
{
$this->__apilog['title'] = '系统消息类通知';
$this->__apilog['original_bn'] = $params['to_node_id'];
if (!$params['data']) {
$this->__apilog['result']['msg'] = '消息内容不能为空';
return false;
}
$content = json_decode($params['data'],true);
$content['node_id'] = $params['to_node_id'];
$sdf = array(
'node_id' => $params['node_id'],
'date' => $params['date'],
'content' => $content,
);
return $sdf;
}
}