php+极光推送(厂商通道) jpush推送
此方法可放到common.php内调用
if (!function_exists("push")) {
/**
* Notes:
* User: 任性不起来了
* Date: 2024/6/28 16:44
* @param $accept_id 用户ID
* @param $message 消息内容
* @param int $orderrecording_id 商机ID
*/
function push($accept_id, $message,$orderrecording_id=0)
{
//记录日志---接收参数
error_log(date('Y-m-d H:i:s').' $message ==='.json_encode($message,320).PHP_EOL,3,'../runtime/push.log');
$push = addons_action('Jiguang', 'JPush', 'getClient', 'push');
//获取保存的设备ID
$id = Db::name('user')->where(