抖音小店对接
Listest
这个作者很懒,什么都没留下…
展开
-
通用接口调用
抖音小店对接//通用接口调用 private function APi($method,$m,$shopid):string{ $accessToken = $this->getDYAccessToken($shopid); $timestamp = time(); // 序列化参数 $paramJson = $this->marshal($m); // 计算签名 $signVal =原创 2021-12-05 22:39:56 · 283 阅读 · 0 评论 -
抖音小店-捉取订单取消消息 --php
1.代码如下 //解析保存消息--订单取消 private function saveMsgDataCancel($data,$tag) { $s_ids = $data['s_ids']; $ids = json_encode($s_ids,JSON_FORCE_OBJECT); //数组转string 子订单 $msg = json_encode($data,JSON_FORCE_OBJECT); //数组转string原创 2021-12-05 22:37:43 · 574 阅读 · 0 评论 -
抖音订单捉取-php
public function savexsbilldd() { $data = request()->param(); $p_id = $data['p_id']; $s_ids = $data['s_ids']; $shopid = $data['shop_id']; //遍历所有单据 $s_count = count($s_ids); //子单个数 for.原创 2021-12-04 19:13:39 · 942 阅读 · 0 评论 -
抖音小店消息推送验证-php
代码如下: // 抖音yinzheng public function dyvalid(){ // 收集参数 $param = request()->param(); // 推送过来的消息 // $msg_id = isset($param['msg_id'])?$param['msg_id']:""; // $res = isset($param['data'])?$param['data']:"";原创 2021-12-02 09:37:31 · 776 阅读 · 0 评论 -
抖音小店获取accessToken-php实现
1.appkey,appSecret,shopid要根据入驻教程去获取设置 //获取Access_Token 参考 https://op.jinritemai.com/docs/guide-docs/138/21 private function getDYAccessToken($shopid){ $res = json_decode(cache($shopid),true);//获取缓存 if($res !== null && $r原创 2021-12-02 09:31:44 · 1792 阅读 · 0 评论