订单查询(https://partner.open-douyin.com/docs/resource/zh-CN/local-life/develop/OpenAPI/order.query/query)接口返回的留资联系电话(加密提供)。
加密字段解密方法(https://partner.open-douyin.com/docs/resource/zh-CN/local-life/develop/preparation/decrypt)
/**
* 字节抖音php解密留资的手机号
*
*
* @param string $data
* @param string $key
* @param string $iv
* @return string
*/
private function _decryptWithOpenssl($data, $key, $iv)
{
return openssl_decrypt(base64_decode($data), "AES-256-CBC", ($key), OPENSSL_RAW_DATA, ($iv));
}
参考文章:
标签:string,解密,param,留资,抖音,key,php
From: https://www.cnblogs.com/imzhi/p/17512047.html