代码如下:
// 抖音yinzheng
public function dyvalid(){
// 收集参数
$param = request()->param();
// 推送过来的消息
// $msg_id = isset($param['msg_id'])?$param['msg_id']:"";
// $res = isset($param['data'])?$param['data']:"";
$accessToken = $this->getDYAccessToken($this->shop_id); // 替换成你的access_token 'cb21cf80-e19f-4cd0-b26e-c992f7b50b31'
$method = 'order.batchEncrypt';
$timestamp = time();
$m = array(
'batch_encrypt_list' => array(
0 => array(
'plain_text' => "&<>='/ô汉😀",//附加符号、中日韩、Emoji都不转义
'auth_id' => '1234',
'is_support_index' => false,
'sensitive_type' &#