ennnnny / tbk Goto Github PK
View Code? Open in Web Editor NEW可能是最优雅、简易的淘宝客SDK
License: MIT License
可能是最优雅、简易的淘宝客SDK
License: MIT License
现在是先签名再加的session,看官方规则是要先拼接session排序后再签名,所以现在带session的API会报异常"code":25,"msg":"Invalid signature"
taobao.tbk.activity.info.get
更新版接口
您好,目前开发需要taobao.tbk.sc.publisher.info.save( 淘宝客渠道信息备案 - 社交 )用到这个接口,接口需要传入“参数”,“sessionKey”,目前看来只能传入"参数",请问怎么解决?
在项目的/tbk/src/Kernel/Support/Helpers.php 的第99行-101行
使用了php5.6不兼容的??双问号写法
发现的来源是这样的,我项目运行环境是7.0,但是脚本运行是5.6,结果出现了异常
"pimple/pimple": "3.0",版本号写死了,在别的项目引进时会和别的项目冲突,建议修改为 "pimple/pimple": "^3.0"
{
"code": 0,
"msg": "substr() expects parameter 1 to be string, array given",
"time": "1578582475",
"data": null
}
$params = [
'requests' => [
'url' => $url
]
];
恳求作者帮忙说明下,谢谢
$return = $app->order->getRefund(['search_option'=>json_encode($param)]);
使用这种方式 报错信息为
{"code":40,"msg":"Missing required arguments:search_option.biz_type","request_id":"10eoe5pe8w1z3"}
使用下面的方式
$return = $app->order->getRefund(['search_option'=>$param]);
sdk会报错
[2019-12-07T12:24:21+08:00][ error ] substr() expects parameter 1 to be string, array given
error
[2019-12-07T12:24:21+08:00][ error ] #0 [internal function]: think\Error::appError(2, 'substr() expect...', '/Users/hainuo/s...', 139, Array)
#1 /Users/hainuo/vendor/ennnnny/tbk/src/Kernel/BaseClient.php(139): substr(Array, 0, 1)
#2 /Users/hainuo/vendor/ennnnny/tbk/src/Kernel/BaseClient.php(97): ETaobao\Kernel\BaseClient->curl('https://eco.tao...', Array)
#3 /Users/hainuo/vendor/ennnnny/tbk/src/Tbk/Order/Client.php(44): ETaobao\Kernel\BaseClient->httpPost('taobao.tbk.rela...', Array)
#4 /Users/hainuo/application/api/job/GetTbkOrder.php(489): ETaobao\Tbk\Order\Client->getRefund(Array)
感觉在判断的时候没有处理好对多维数组的处理
php执行方式为 命令行模式下执行
php版本号为
PHP 7.3.11 (cli) (built: Oct 24 2019 11:29:00) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.11, Copyright (c) 1999-2018, by Zend Technologies
淘宝客获取订单接口更新了 有空了加上去呗
https://open.taobao.com/api.htm?docId=43328&docType=2&scopeId=16175
获取订单接口无法调用。。。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.