这个问题,有在排期解决吗?今天看日志,又出现这样的问题~
不
不忘初心2016
@不忘初心2016
-
控制台输出,有乱码 -
控制台输出,有乱码补充说明:
代码例子
<?php $data1 = [ "data" => [ "id" => 0, //私信留资ID "type" => 0,//类型 0:新增 1:更新内容 2:更新归因数据(计划 id/单元 id/创意 id/笔记) 3:同时更新内容和归因数据 "time" => "2023-08-2813:00:00",//私信线索创建时间 "red_id" => "100563573",//小红书 id "nick_name" => "薯队长",//用户昵称 "area" => "上海",//省份地区 "leads_tag" => "无意向",//线索标签,跟进中/留客资/高潜成交/己成单/无意向 "phone_num" => "13900000000",//电话号码 "wechat" => "wx12345",//微信号 "remark" => "备注",//备注信息 "source" => "客服链路",//标注客服,专业号后台/留资组件/账户客服名称/- "ad_account" => "测试账户",//投放账户名 "info_status" => "测试账户",//是否留资,未留资/己留资 "auto_recognize" => "否",//是否自动识别,否/是 "note_link" => "https://www.xiaohongshu.com/explore/646f620b00000000130379bf",//笔记链接 "campaign_id" => -1,//广告计划ID,广告未归因完成时,默认值为 -1 "campaign_name" => "测试计划",//广告计划名称, 广告未归因完成时,默认值为"" "unit_id" => -1,//广告单元 ID,广告未非广告来源时,默认值为 -1 "unit_name" => "测试单元",//广告单元名称,非广告来源时,默认值为"" "creativity_id" => -1,//广告创意ID,非广告来源时,默认值为 -1 "creativity_name" => "测试创意",//创意名称,非广告来源时,默认值为 "" "msg_receive_name" => "私信接待账号",//私信接待账号 "msg_receive_id" => "私信接待 id",//私信接待id "link_id" => "获客链接id",//获客链接 id,默认值为 "" "link_name" => "获客链接名称",//获客链接名称,默认值为 "" "open_talk" => "是",//是否开口,默认值为 "" "staff_name" => "张三",//私信接待人姓名 "staff_labels" => [ "123", "456" ],//私信接待人标签,默认值为 [] "staff_country" => "中国",//私信接待人所属国家,默认值为"" "staff_province " => "甘肃",//私信接待人所属省,默认值为"" "staff_city" => "酒泉",//私信接待人所属城市,默认值为"" "ext_info" => "{\"name\":\"张三\"}"//补充信息【服务卡线索】默认值为"" ], "timestamp" => 1693833456007, "source" => "小红书" ]; $data2 = [ "data" => [ "id" => 21428903, "type" => 3, "time" => "2024-08-02 16:21:44", "red_id" => "xxxxxxxx", "nick_name" => "林子", "area" => "湖北省", "city" => "武汉市", "leads_tag" => "留客资", "phone_num" => "三十都是多", "wechat" => "傻傻的发生", "remark" => "-", "source" => "xxxxxxxx", "msg_receive_name" => "xxxxxxxx", "msg_receive_id" => "xxxxxxxx", "ad_account" => "xxxxxxxx", "info_status" => "已留资", "auto_recognize" => "是", ] ]; //todo:我尝试了一下,注释掉$data1中的timestamp就正常,无规律 echo json_encode($data1, JSON_UNESCAPED_UNICODE) . PHP_EOL; echo json_encode($data2, JSON_UNESCAPED_UNICODE) . PHP_EOL;
-
控制台输出,有乱码XTerminal用php执行脚本,输出有乱码!
SecureCRT 用php执行脚本,输出正常!