diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd37157 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.env +.git +.svn +.idea +.vscode +.log \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dc8fc5..db4006e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,202 +1,202 @@ -## v6.0.132 / 2021-05-29 -- 更新 We found potential security vulnerabilities in your dependencies.【phpoffice/phpspreadsheet】 - -## v6.0.131 / 2020-12-03 -- 增加卡券网服务 - -## v6.0.130 / 2020-11-26 -- 优化服务 - -## v6.0.129 / 2020-11-26 -- 优化服务 - -## v6.0.128 / 2020-11-26 -- 优化服务 - -## v6.0.127 / 2020-11-25 -- 修复腾讯云存储 -- 数组门面增加方法 - -## v6.0.126 / 2020-11-19 -- 优化淘宝官方SDK - -## v6.0.125 / 2020-11-19 -- 优化淘宝服务协议 - -## v6.0.124 / 2020-11-19 -- 小范围测试淘宝官方SDK - -## v6.0.123 / 2020-11-19 -- 测试淘宝官方SDK - -## v6.0.122 / 2020-11-18 -- 增加订单侠开放平台接口 - -## v6.0.121 / 2020-11-12 -- 修复缴费平台接口 - -## v6.0.120 / 2020-11-03 -- 京东联盟、淘宝联盟、拼多多联盟支持自定义接口 - -## v6.0.119 / 2020-10-10 -- 暂时指定phpoffice/phpspreadsheet的版本 - -## v6.0.118 / 2020-10-10 -- 小数门面的四舍五入方法优化 -- IP信息文件调整回旧的方法 -- 增加表格服务 - -## v6.0.117 / 2020-09-25 -- 淘宝联盟接口增加 -- 小数门面增加函数 - -## v6.0.116 / 2020-09-22 -- 拼多多接口增加 -- 优化京东接口 - -## v6.0.115 / 2020-09-21 -- 微信小程序接口增加直播 - -## v6.0.114 / 2020-09-16 -- 优化鼎信缴费平台充值接口 - -## v6.0.113 / 2020-09-08 -- 增加腾讯地图Api接口 -- 增加鼎信缴费平台充值接口 - -## v6.0.112 / 2020-09-08 -- 优化接口 - -## v6.0.111 / 2020-09-08 -- 更新微信公众平台的分享接口 - -## v6.0.110 / 2020-09-06 -- 更新拼多多 多客接口 - -## v6.0.109 / 2020-09-04 -- 修复公众号获取access_token问题 - -## v6.0.108 / 2020-09-03 -- 修复数组 - -## v6.0.107 / 2020-08-15 -- 优化 - -## v6.0.106 / 2020-08-08 -- 修复数组门面增加数组删除空格函数问题 - -## v6.0.105 / 2020-08-08 -- 修复数组门面增加数组删除空格函数问题 - -## v6.0.104 / 2020-08-05 -- 修复数组门面增加数组删除空格函数问题 - -## v6.0.103 / 2020-08-05 -- 链接门面增加获取URL文件格式 - -## v6.0.102 / 2020-08-05 -- 数组门面增加数组删除空格 - -## v6.0.101 / 2020-07-25 -- 优化代码 - -## v6.0.100 / 2020-07-25 -- 优化淘宝客 - -## v6.0.99 / 2020-07-25 -- 优化时间门面,增加参数 - -## v6.0.98 / 2020-07-25 -- 优化时间门面 - -## v6.0.97 / 2020-07-23 -- 增加小数门面 - -## v6.0.96 / 2020-07-23 -- 网址管理增加删除协议和判断是否为Url方法 - -## v6.0.95 / 2020-07-20 -- 优化cache和session服务 - -## v6.0.94 / 2020-07-20 -- 优化cache和session服务 - -## v6.0.93 / 2020-07-20 -- 修复请求门面的判断微信和微信小程序环境函数名错误问题 - -## v6.0.92 / 2020-07-18 -- 优化Api加密解密 - -## v6.0.91 / 2020-07-18 -- 修复请求门面手机设备类型 - -## v6.0.90 / 2020-07-18 -- 优化代码 - -## v6.0.89 / 2020-07-18 -- 修复获取配置问题 - -## v6.0.88 / 2020-07-18 -- 优化代码 -- 优化Api控制器的加密相关参数 -- 请求门面增加获取客户端类型和获取手机设备类型 - -## v6.0.87 / 2020-07-17 -- 优化代码 - -## v6.0.86 / 2020-07-17 -- 优化代码 - -## v6.0.85 / 2020-07-17 -- 扩展包不再包含数据库文件,允许通过配置文件路径的方式 - -## v6.0.84 / 2020-07-16 -- 删除服务器签名验证(js和php方式不一致导致) - -## v6.0.83 / 2020-07-16 -- 通知签名规则和加密方法,使用aes方式 -- 更新IP数据库 - -## v6.0.82 / 2020-07-13 -- 优化标准Api控制器基类 -- 优化标准Api控制器基类签名 - -## v6.0.81 / 2020-07-12 -- 优化代码质量 -- 文件门面增加文件和目录判断 - -## v6.0.80 / 2020-07-12 -- 优化描述 - -## v6.0.79 / 2020-07-12 -- 优化标准Api控制器基类 -- 优化描述 - -## v6.0.78 / 2020-07-12 -- 增加标准Api控制器基类 - -## v6.0.77 / 2020-07-11 -- 更新请求门面 -- 增加判断是否为微信小程序访问 - -## v6.0.76 / 2020-07-11 -- 淘宝客服务增加api接口 - -## v6.0.75 / 2020-07-10 -- 更新IP数据库 - -## v6.0.74 / 2020-07-10 -- 优化路由服务 - -## v6.0.73 / 2020-07-09 -- 增加路由服务 - -## v6.0.72 / 2020-07-09 -- 删除网易云服务 - -## v6.0.71 / 2020-07-09 -- 更新请求门面 - -## v6.0.70 / 2020-07-08 -- 更新联盟 -- 更新数据库 +## v6.0.132 / 2021-05-29 +- 更新 We found potential security vulnerabilities in your dependencies.【phpoffice/phpspreadsheet】 + +## v6.0.131 / 2020-12-03 +- 增加卡券网服务 + +## v6.0.130 / 2020-11-26 +- 优化服务 + +## v6.0.129 / 2020-11-26 +- 优化服务 + +## v6.0.128 / 2020-11-26 +- 优化服务 + +## v6.0.127 / 2020-11-25 +- 修复腾讯云存储 +- 数组门面增加方法 + +## v6.0.126 / 2020-11-19 +- 优化淘宝官方SDK + +## v6.0.125 / 2020-11-19 +- 优化淘宝服务协议 + +## v6.0.124 / 2020-11-19 +- 小范围测试淘宝官方SDK + +## v6.0.123 / 2020-11-19 +- 测试淘宝官方SDK + +## v6.0.122 / 2020-11-18 +- 增加订单侠开放平台接口 + +## v6.0.121 / 2020-11-12 +- 修复缴费平台接口 + +## v6.0.120 / 2020-11-03 +- 京东联盟、淘宝联盟、拼多多联盟支持自定义接口 + +## v6.0.119 / 2020-10-10 +- 暂时指定phpoffice/phpspreadsheet的版本 + +## v6.0.118 / 2020-10-10 +- 小数门面的四舍五入方法优化 +- IP信息文件调整回旧的方法 +- 增加表格服务 + +## v6.0.117 / 2020-09-25 +- 淘宝联盟接口增加 +- 小数门面增加函数 + +## v6.0.116 / 2020-09-22 +- 拼多多接口增加 +- 优化京东接口 + +## v6.0.115 / 2020-09-21 +- 微信小程序接口增加直播 + +## v6.0.114 / 2020-09-16 +- 优化鼎信缴费平台充值接口 + +## v6.0.113 / 2020-09-08 +- 增加腾讯地图Api接口 +- 增加鼎信缴费平台充值接口 + +## v6.0.112 / 2020-09-08 +- 优化接口 + +## v6.0.111 / 2020-09-08 +- 更新微信公众平台的分享接口 + +## v6.0.110 / 2020-09-06 +- 更新拼多多 多客接口 + +## v6.0.109 / 2020-09-04 +- 修复公众号获取access_token问题 + +## v6.0.108 / 2020-09-03 +- 修复数组 + +## v6.0.107 / 2020-08-15 +- 优化 + +## v6.0.106 / 2020-08-08 +- 修复数组门面增加数组删除空格函数问题 + +## v6.0.105 / 2020-08-08 +- 修复数组门面增加数组删除空格函数问题 + +## v6.0.104 / 2020-08-05 +- 修复数组门面增加数组删除空格函数问题 + +## v6.0.103 / 2020-08-05 +- 链接门面增加获取URL文件格式 + +## v6.0.102 / 2020-08-05 +- 数组门面增加数组删除空格 + +## v6.0.101 / 2020-07-25 +- 优化代码 + +## v6.0.100 / 2020-07-25 +- 优化淘宝客 + +## v6.0.99 / 2020-07-25 +- 优化时间门面,增加参数 + +## v6.0.98 / 2020-07-25 +- 优化时间门面 + +## v6.0.97 / 2020-07-23 +- 增加小数门面 + +## v6.0.96 / 2020-07-23 +- 网址管理增加删除协议和判断是否为Url方法 + +## v6.0.95 / 2020-07-20 +- 优化cache和session服务 + +## v6.0.94 / 2020-07-20 +- 优化cache和session服务 + +## v6.0.93 / 2020-07-20 +- 修复请求门面的判断微信和微信小程序环境函数名错误问题 + +## v6.0.92 / 2020-07-18 +- 优化Api加密解密 + +## v6.0.91 / 2020-07-18 +- 修复请求门面手机设备类型 + +## v6.0.90 / 2020-07-18 +- 优化代码 + +## v6.0.89 / 2020-07-18 +- 修复获取配置问题 + +## v6.0.88 / 2020-07-18 +- 优化代码 +- 优化Api控制器的加密相关参数 +- 请求门面增加获取客户端类型和获取手机设备类型 + +## v6.0.87 / 2020-07-17 +- 优化代码 + +## v6.0.86 / 2020-07-17 +- 优化代码 + +## v6.0.85 / 2020-07-17 +- 扩展包不再包含数据库文件,允许通过配置文件路径的方式 + +## v6.0.84 / 2020-07-16 +- 删除服务器签名验证(js和php方式不一致导致) + +## v6.0.83 / 2020-07-16 +- 通知签名规则和加密方法,使用aes方式 +- 更新IP数据库 + +## v6.0.82 / 2020-07-13 +- 优化标准Api控制器基类 +- 优化标准Api控制器基类签名 + +## v6.0.81 / 2020-07-12 +- 优化代码质量 +- 文件门面增加文件和目录判断 + +## v6.0.80 / 2020-07-12 +- 优化描述 + +## v6.0.79 / 2020-07-12 +- 优化标准Api控制器基类 +- 优化描述 + +## v6.0.78 / 2020-07-12 +- 增加标准Api控制器基类 + +## v6.0.77 / 2020-07-11 +- 更新请求门面 +- 增加判断是否为微信小程序访问 + +## v6.0.76 / 2020-07-11 +- 淘宝客服务增加api接口 + +## v6.0.75 / 2020-07-10 +- 更新IP数据库 + +## v6.0.74 / 2020-07-10 +- 优化路由服务 + +## v6.0.73 / 2020-07-09 +- 增加路由服务 + +## v6.0.72 / 2020-07-09 +- 删除网易云服务 + +## v6.0.71 / 2020-07-09 +- 更新请求门面 + +## v6.0.70 / 2020-07-08 +- 更新联盟 +- 更新数据库 diff --git a/LICENSE b/LICENSE index 2566d8e..c76ad5d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2020 李光春 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2020 李光春 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index ec9ad5f..e71eda9 100644 --- a/README.md +++ b/README.md @@ -1,145 +1,145 @@ -www.dtapp.net - -

ThinkPHP6扩展包

- -📦 ThinkPHP6扩展包 - -[![Latest Stable Version](https://poser.pugx.org/liguangchun/think-library/v/stable)](https://packagist.org/packages/liguangchun/think-library) -[![Latest Unstable Version](https://poser.pugx.org/liguangchun/think-library/v/unstable)](https://packagist.org/packages/liguangchun/think-library) -[![Total Downloads](https://poser.pugx.org/liguangchun/think-library/downloads)](https://packagist.org/packages/liguangchun/think-library) -[![License](https://poser.pugx.org/liguangchun/think-library/license)](https://packagist.org/packages/liguangchun/think-library) -[![PHP Version](https://img.shields.io/badge/php-%3E%3D7.1-8892BF.svg)](http://www.php.net/) -[![Build Status](https://travis-ci.org/GC0202/ThinkLibrary.svg?branch=6.0)](https://travis-ci.org/GC0202/ThinkLibrary) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/GC0202/ThinkLibrary/badges/quality-score.png?b=6.0)](https://scrutinizer-ci.com/g/GC0202/ThinkLibrary/?branch=6.0) -[![Code Coverage](https://scrutinizer-ci.com/g/GC0202/ThinkLibrary/badges/coverage.png?b=6.0)](https://scrutinizer-ci.com/g/GC0202/ThinkLibrary/?branch=6.0) - -## 依赖环境 - -1. PHP7.1 版本及以上 - -## 托管 - -- 国外仓库地址:[https://github.com/GC0202/ThinkLibrary](https://github.com/GC0202/ThinkLibrary) -- 国内仓库地址:[https://gitee.com/liguangchun/ThinkLibrary](https://gitee.com/liguangchun/ThinkLibrary) -- Packagist - 地址:[https://packagist.org/packages/liguangchun/think-library](https://packagist.org/packages/liguangchun/think-library) - -### 开发版 - -```text -composer require liguangchun/think-library ^6.x-dev -vvv -``` - -### 稳定版 - -```text -composer require liguangchun/think-library ^6.0.* -vvv -``` - -## 更新 - -```text -composer update liguangchun/think-library -vvv -``` - -## 删除 - -```text -composer remove liguangchun/think-library -vvv -``` - -## 获取电脑Mac地址服务使用示例 - -```php -use DtApp\ThinkLibrary\service\SystemService; - -dump(SystemService::instance() -->mac()); -``` - -## 百度地图服务使用示例 - -```php -use DtApp\ThinkLibrary\service\baidu\LbsYunService; - -dump(LbsYunService::instance() - ->ak("") - ->weather()); -``` - -## 高德地图服务使用示例 - -```php -use DtApp\ThinkLibrary\service\amap\AmApService; - -dump(AmApService::instance() - ->key("") - ->weather()); -``` - -## 抖音服务使用示例 - -```php -use DtApp\ThinkLibrary\exception\DtaException; -use DtApp\ThinkLibrary\service\douyin\WatermarkService; - -try { - // 方法一之网址 - dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') -->getAll() -->toArray()); - // 方法一之粘贴 - dump(WatermarkService::instance()->url('#在抖音,记录美好生活#美丽电白欢迎您 https://v.douyin.com/vPGAdM/ 复制此链接,打开【抖音短视频】,直接观看视频!')->getAll()->toArray()); - // 方法二之网址 - $dy = WatermarkService::instance()->url('https://v.douyin.com/vPafcr/'); - dump($dy->getAll()->toArray()); - // 方法二之粘贴 - $dy = WatermarkService::instance()->url('#在抖音,记录美好生活#2020茂名加油,广州加油,武汉加油!中国加油,众志成城!#航拍 #茂名#武汉 #广州 #旅拍 @抖音小助手 https://v.douyin.com/vPafcr/ 复制此链接,打开【抖音短视频】,直接观看视频!'); - dump($dy->getAll()->toArray()); - // 获取全部信息 - dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') -->getAll() -->toArray()); - // 获取原全部信息 - dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') -->getApi() -->toArray()); - // 获取视频信息 - dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') -->getVideoInfo() -->toArray()); - // 获取音频信息 - dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') -->getMusicInfo() -->toArray()); - // 获取分享信息 - dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') -->getShareInfo() -->toArray()); - // 获取作者信息 - dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') -->getAuthorInfo() -->toArray()); - // 返回数组数据方法 - dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') -->getAll() -->toArray()); - // 返回Object数据方法 - dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') -->getAll() -->toObject()); -} catch (DtaException $e) { - // 错误提示 - dump($e->getMessage()); -} -``` - -## 纯真数据库 - -```php -use DtApp\ThinkLibrary\service\QqWryService; - -// 获取IP信息 -dump(QqWryService::instance() - ->getLocation()); -``` +www.dtapp.net + +

ThinkPHP6扩展包

+ +📦 ThinkPHP6扩展包 + +[![Latest Stable Version](https://poser.pugx.org/liguangchun/think-library/v/stable)](https://packagist.org/packages/liguangchun/think-library) +[![Latest Unstable Version](https://poser.pugx.org/liguangchun/think-library/v/unstable)](https://packagist.org/packages/liguangchun/think-library) +[![Total Downloads](https://poser.pugx.org/liguangchun/think-library/downloads)](https://packagist.org/packages/liguangchun/think-library) +[![License](https://poser.pugx.org/liguangchun/think-library/license)](https://packagist.org/packages/liguangchun/think-library) +[![PHP Version](https://img.shields.io/badge/php-%3E%3D7.1-8892BF.svg)](http://www.php.net/) +[![Build Status](https://travis-ci.org/GC0202/ThinkLibrary.svg?branch=6.0)](https://travis-ci.org/GC0202/ThinkLibrary) +[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/GC0202/ThinkLibrary/badges/quality-score.png?b=6.0)](https://scrutinizer-ci.com/g/GC0202/ThinkLibrary/?branch=6.0) +[![Code Coverage](https://scrutinizer-ci.com/g/GC0202/ThinkLibrary/badges/coverage.png?b=6.0)](https://scrutinizer-ci.com/g/GC0202/ThinkLibrary/?branch=6.0) + +## 依赖环境 + +1. PHP7.1 版本及以上 + +## 托管 + +- 国外仓库地址:[https://github.com/GC0202/ThinkLibrary](https://github.com/GC0202/ThinkLibrary) +- 国内仓库地址:[https://gitee.com/liguangchun/ThinkLibrary](https://gitee.com/liguangchun/ThinkLibrary) +- Packagist + 地址:[https://packagist.org/packages/liguangchun/think-library](https://packagist.org/packages/liguangchun/think-library) + +### 开发版 + +```text +composer require liguangchun/think-library ^6.x-dev -vvv +``` + +### 稳定版 + +```text +composer require liguangchun/think-library ^6.0.* -vvv +``` + +## 更新 + +```text +composer update liguangchun/think-library -vvv +``` + +## 删除 + +```text +composer remove liguangchun/think-library -vvv +``` + +## 获取电脑Mac地址服务使用示例 + +```php +use DtApp\ThinkLibrary\service\SystemService; + +dump(SystemService::instance() +->mac()); +``` + +## 百度地图服务使用示例 + +```php +use DtApp\ThinkLibrary\service\baidu\LbsYunService; + +dump(LbsYunService::instance() + ->ak("") + ->weather()); +``` + +## 高德地图服务使用示例 + +```php +use DtApp\ThinkLibrary\service\amap\AmApService; + +dump(AmApService::instance() + ->key("") + ->weather()); +``` + +## 抖音服务使用示例 + +```php +use DtApp\ThinkLibrary\exception\DtaException; +use DtApp\ThinkLibrary\service\douyin\WatermarkService; + +try { + // 方法一之网址 + dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') +->getAll() +->toArray()); + // 方法一之粘贴 + dump(WatermarkService::instance()->url('#在抖音,记录美好生活#美丽电白欢迎您 https://v.douyin.com/vPGAdM/ 复制此链接,打开【抖音短视频】,直接观看视频!')->getAll()->toArray()); + // 方法二之网址 + $dy = WatermarkService::instance()->url('https://v.douyin.com/vPafcr/'); + dump($dy->getAll()->toArray()); + // 方法二之粘贴 + $dy = WatermarkService::instance()->url('#在抖音,记录美好生活#2020茂名加油,广州加油,武汉加油!中国加油,众志成城!#航拍 #茂名#武汉 #广州 #旅拍 @抖音小助手 https://v.douyin.com/vPafcr/ 复制此链接,打开【抖音短视频】,直接观看视频!'); + dump($dy->getAll()->toArray()); + // 获取全部信息 + dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') +->getAll() +->toArray()); + // 获取原全部信息 + dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') +->getApi() +->toArray()); + // 获取视频信息 + dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') +->getVideoInfo() +->toArray()); + // 获取音频信息 + dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') +->getMusicInfo() +->toArray()); + // 获取分享信息 + dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') +->getShareInfo() +->toArray()); + // 获取作者信息 + dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') +->getAuthorInfo() +->toArray()); + // 返回数组数据方法 + dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') +->getAll() +->toArray()); + // 返回Object数据方法 + dump(WatermarkService::instance()->url('https://v.douyin.com/vPGAdM/') +->getAll() +->toObject()); +} catch (DtaException $e) { + // 错误提示 + dump($e->getMessage()); +} +``` + +## 纯真数据库 + +```php +use DtApp\ThinkLibrary\service\QqWryService; + +// 获取IP信息 +dump(QqWryService::instance() + ->getLocation()); +``` diff --git a/composer.json b/composer.json index 5cd6627..9e5733f 100644 --- a/composer.json +++ b/composer.json @@ -1,72 +1,72 @@ -{ - "name": "dtapps/think-library", - "description": "ThinkPhP扩展包", - "keywords": [ - "dtapps", - "think-library", - "think", - "thinkphp", - "library" - ], - "time": "2020-04-13", - "type": "library", - "license": "MIT", - "authors": [ - { - "name": "Chaim", - "email": "li.gc@icoud.com", - "homepage": "https://api.dtapp.net" - } - ], - "homepage": "https://www.dtapp.net", - "require": { - "php": ">=7.1", - "ext-gd": "*", - "ext-libxml": "*", - "ext-json": "*", - "ext-simplexml": "*", - "ext-zip": "*", - "ext-openssl": "*", - "ext-iconv": "*", - "ext-curl": "*", - "ext-dom": "*", - "topthink/framework": "^6.0.0", - "topthink/think-orm": "^2.0", - "aliyuncs/oss-sdk-php": "^2.3", - "obs/esdk-obs-php": "^3.19", - "baidubce/bce-sdk-php": "^0.8.22", - "qcloud/cos-sdk-v5": "^2.0", - "qiniu/php-sdk": "^7.2", - "upyun/sdk": "^3.4", - "phpoffice/phpspreadsheet": "1.17.1", - "alibabacloud/dysmsapi-20170525": "^1.0" - }, - "require-dev": { - "symfony/var-dumper": "^4.2" - }, - "autoload": { - "files": [ - "src/common.php", - "src/service/taobao/bin/TopSdk.php" - ], - "psr-4": { - "DtApp\\ThinkLibrary\\": "src" - } - }, - "extra": { - "think": { - "services": [ - "DtApp\\ThinkLibrary\\Library" - ], - "config": { - "dtapp": "src/config.php" - } - } - }, - "repositories": { - "packagist": { - "type": "composer", - "url": "https://mirrors.aliyun.com/composer/" - } - } -} +{ + "name": "dtapps/think-library", + "description": "ThinkPhP扩展包", + "keywords": [ + "dtapps", + "think-library", + "think", + "thinkphp", + "library" + ], + "time": "2020-04-13", + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Chaim", + "email": "li.gc@icoud.com", + "homepage": "https://api.dtapp.net" + } + ], + "homepage": "https://www.dtapp.net", + "require": { + "php": ">=7.1", + "ext-gd": "*", + "ext-libxml": "*", + "ext-json": "*", + "ext-simplexml": "*", + "ext-zip": "*", + "ext-openssl": "*", + "ext-iconv": "*", + "ext-curl": "*", + "ext-dom": "*", + "topthink/framework": "^6.0.0", + "topthink/think-orm": "^2.0", + "aliyuncs/oss-sdk-php": "^2.3", + "obs/esdk-obs-php": "^3.19", + "baidubce/bce-sdk-php": "^0.8.22", + "qcloud/cos-sdk-v5": "^2.0", + "qiniu/php-sdk": "^7.2", + "upyun/sdk": "^3.4", + "phpoffice/phpspreadsheet": "1.17.1", + "alibabacloud/dysmsapi-20170525": "^1.0" + }, + "require-dev": { + "symfony/var-dumper": "^4.2" + }, + "autoload": { + "files": [ + "src/common.php", + "src/service/taobao/bin/TopSdk.php" + ], + "psr-4": { + "DtApp\\ThinkLibrary\\": "src" + } + }, + "extra": { + "think": { + "services": [ + "DtApp\\ThinkLibrary\\Library" + ], + "config": { + "dtapp": "src/config.php" + } + } + }, + "repositories": { + "packagist": { + "type": "composer", + "url": "https://mirrors.aliyun.com/composer/" + } + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..d1f4333 --- /dev/null +++ b/composer.lock @@ -0,0 +1,3168 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "c3527ae42dbfd1760a7c6152a9e6416a", + "packages": [ + { + "name": "adbario/php-dot-notation", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/adbario/php-dot-notation.git", + "reference": "eee4fc81296531e6aafba4c2bbccfc5adab1676e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/adbario/php-dot-notation/zipball/eee4fc81296531e6aafba4c2bbccfc5adab1676e", + "reference": "eee4fc81296531e6aafba4c2bbccfc5adab1676e", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-json": "*", + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.0|^5.0|^6.0", + "squizlabs/php_codesniffer": "^3.0" + }, + "type": "library", + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Adbar\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Riku Särkinen", + "email": "riku@adbar.io" + } + ], + "description": "PHP dot notation access to arrays", + "homepage": "https://github.com/adbario/php-dot-notation", + "keywords": [ + "ArrayAccess", + "dotnotation" + ], + "support": { + "issues": "https://github.com/adbario/php-dot-notation/issues", + "source": "https://github.com/adbario/php-dot-notation/tree/2.x" + }, + "time": "2019-01-01T23:59:15+00:00" + }, + { + "name": "alibabacloud/credentials", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/aliyun/credentials-php.git", + "reference": "e79d4151ad8924c0cf79d4fe0ec151b8d7663a25" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/aliyun/credentials-php/zipball/e79d4151ad8924c0cf79d4fe0ec151b8d7663a25", + "reference": "e79d4151ad8924c0cf79d4fe0ec151b8d7663a25", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "adbario/php-dot-notation": "^2.2", + "alibabacloud/tea": "^3.0", + "ext-curl": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-simplexml": "*", + "ext-xmlwriter": "*", + "guzzlehttp/guzzle": "^6.3|^7.0", + "php": ">=5.6" + }, + "require-dev": { + "composer/composer": "^1.8", + "drupal/coder": "^8.3", + "ext-dom": "*", + "ext-pcre": "*", + "ext-sockets": "*", + "ext-spl": "*", + "mikey179/vfsstream": "^1.6", + "monolog/monolog": "^1.24", + "phpunit/phpunit": "^4.8.35|^5.4.3", + "psr/cache": "^1.0", + "symfony/dotenv": "^3.4", + "symfony/var-dumper": "^3.4" + }, + "suggest": { + "ext-sockets": "To use client-side monitoring" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\Credentials\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com", + "homepage": "http://www.alibabacloud.com" + } + ], + "description": "Alibaba Cloud Credentials for PHP", + "homepage": "https://www.alibabacloud.com/", + "keywords": [ + "alibaba", + "alibabacloud", + "aliyun", + "client", + "cloud", + "credentials", + "library", + "sdk", + "tool" + ], + "support": { + "issues": "https://github.com/aliyun/credentials-php/issues", + "source": "https://github.com/aliyun/credentials-php" + }, + "time": "2021-06-08T10:49:34+00:00" + }, + { + "name": "alibabacloud/darabonba-openapi", + "version": "0.1.9", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/darabonba-openapi.git", + "reference": "6f03803394ab48ef54a498e079a3575881e7fc34" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/darabonba-openapi/zipball/6f03803394ab48ef54a498e079a3575881e7fc34", + "reference": "6f03803394ab48ef54a498e079a3575881e7fc34", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/credentials": "^1.1", + "alibabacloud/openapi-util": "^0.1.7", + "alibabacloud/tea-utils": "^0.2.0", + "php": ">5.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "Darabonba\\OpenApi\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud OpenApi Client", + "support": { + "issues": "https://github.com/alibabacloud-sdk-php/darabonba-openapi/issues", + "source": "https://github.com/alibabacloud-sdk-php/darabonba-openapi/tree/0.1.9" + }, + "time": "2021-09-07T09:37:46+00:00" + }, + { + "name": "alibabacloud/dysmsapi-20170525", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/Dysmsapi-20170525.git", + "reference": "37bc85289a407fe4523932f31d9ab79faf617e9b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/Dysmsapi-20170525/zipball/37bc85289a407fe4523932f31d9ab79faf617e9b", + "reference": "37bc85289a407fe4523932f31d9ab79faf617e9b", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/darabonba-openapi": "^0.1.8", + "alibabacloud/endpoint-util": "^0.1.0", + "alibabacloud/tea-utils": "^0.2.0", + "php": ">5.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud Dysmsapi (20170525) SDK Library for PHP", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/Dysmsapi-20170525/tree/1.0.3" + }, + "time": "2021-09-01T02:42:20+00:00" + }, + { + "name": "alibabacloud/endpoint-util", + "version": "0.1.1", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/endpoint-util.git", + "reference": "f3fe88a25d8df4faa3b0ae14ff202a9cc094e6c5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/endpoint-util/zipball/f3fe88a25d8df4faa3b0ae14ff202a9cc094e6c5", + "reference": "f3fe88a25d8df4faa3b0ae14ff202a9cc094e6c5", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.4.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\Endpoint\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud Endpoint Library for PHP", + "support": { + "source": "https://github.com/alibabacloud-sdk-php/endpoint-util/tree/0.1.1" + }, + "time": "2020-06-04T10:57:15+00:00" + }, + { + "name": "alibabacloud/openapi-util", + "version": "0.1.11", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/openapi-util.git", + "reference": "61ee137955a25c9f5f33170babb6071d4bccf12c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/openapi-util/zipball/61ee137955a25c9f5f33170babb6071d4bccf12c", + "reference": "61ee137955a25c9f5f33170babb6071d4bccf12c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/tea": "^3.1", + "alibabacloud/tea-utils": "^0.2", + "lizhichao/one-sm": "^1.5", + "php": ">5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.4.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\OpenApiUtil\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud OpenApi Util", + "support": { + "issues": "https://github.com/alibabacloud-sdk-php/openapi-util/issues", + "source": "https://github.com/alibabacloud-sdk-php/openapi-util/tree/0.1.11" + }, + "time": "2021-12-28T07:57:21+00:00" + }, + { + "name": "alibabacloud/tea", + "version": "3.1.23", + "source": { + "type": "git", + "url": "https://github.com/aliyun/tea-php.git", + "reference": "61fce993274edf6e7131af07256ed7723d97a85f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/aliyun/tea-php/zipball/61fce993274edf6e7131af07256ed7723d97a85f", + "reference": "61fce993274edf6e7131af07256ed7723d97a85f", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "adbario/php-dot-notation": "^2.2", + "ext-curl": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-simplexml": "*", + "ext-xmlwriter": "*", + "guzzlehttp/guzzle": "^6.3|^7.0", + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "*", + "symfony/dotenv": "^3.4", + "symfony/var-dumper": "^3.4" + }, + "suggest": { + "ext-sockets": "To use client-side monitoring" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\Tea\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com", + "homepage": "http://www.alibabacloud.com" + } + ], + "description": "Client of Tea for PHP", + "homepage": "https://www.alibabacloud.com/", + "keywords": [ + "alibabacloud", + "client", + "cloud", + "tea" + ], + "support": { + "issues": "https://github.com/aliyun/tea-php/issues", + "source": "https://github.com/aliyun/tea-php" + }, + "time": "2021-12-20T02:32:43+00:00" + }, + { + "name": "alibabacloud/tea-utils", + "version": "0.2.14", + "source": { + "type": "git", + "url": "https://github.com/alibabacloud-sdk-php/tea-utils.git", + "reference": "381df15cb4bdb58dbf596f94869ffd2ef680eddd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/tea-utils/zipball/381df15cb4bdb58dbf596f94869ffd2ef680eddd", + "reference": "381df15cb4bdb58dbf596f94869ffd2ef680eddd", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "alibabacloud/tea": "^3.1", + "php": ">5.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "AlibabaCloud\\Tea\\Utils\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Alibaba Cloud SDK", + "email": "sdk-team@alibabacloud.com" + } + ], + "description": "Alibaba Cloud Tea Utils for PHP", + "support": { + "issues": "https://github.com/aliyun/tea-util/issues", + "source": "https://github.com/aliyun/tea-util" + }, + "time": "2021-02-02T10:10:58+00:00" + }, + { + "name": "aliyuncs/oss-sdk-php", + "version": "v2.5.0", + "source": { + "type": "git", + "url": "https://github.com/aliyun/aliyun-oss-php-sdk.git", + "reference": "f0413667d765855eb0aaa728b596801464ffdb06" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/aliyun/aliyun-oss-php-sdk/zipball/f0413667d765855eb0aaa728b596801464ffdb06", + "reference": "f0413667d765855eb0aaa728b596801464ffdb06", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3" + }, + "require-dev": { + "phpunit/phpunit": "*", + "satooshi/php-coveralls": "*" + }, + "type": "library", + "autoload": { + "psr-4": { + "OSS\\": "src/OSS" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Aliyuncs", + "homepage": "http://www.aliyun.com" + } + ], + "description": "Aliyun OSS SDK for PHP", + "homepage": "http://www.aliyun.com/product/oss/", + "support": { + "issues": "https://github.com/aliyun/aliyun-oss-php-sdk/issues", + "source": "https://github.com/aliyun/aliyun-oss-php-sdk/tree/v2.5.0" + }, + "time": "2022-05-13T07:41:28+00:00" + }, + { + "name": "baidubce/bce-sdk-php", + "version": "0.8.22", + "source": { + "type": "git", + "url": "https://github.com/baidubce/bce-sdk-php.git", + "reference": "c3164434c8f0fe53b6ffe4479def893465137282" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/baidubce/bce-sdk-php/zipball/c3164434c8f0fe53b6ffe4479def893465137282", + "reference": "c3164434c8f0fe53b6ffe4479def893465137282", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "guzzle/guzzle": "~3.9", + "php": ">=5.3.3", + "psr/log": "^1.0.0" + }, + "require-dev": { + "monolog/monolog": "~1.4" + }, + "suggest": { + "monolog/monolog": "Adds support for logging HTTP requests and responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.8.22-dev" + } + }, + "autoload": { + "psr-0": { + "BaiduBce": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Baidu BCE", + "homepage": "http://bce.baidu.com" + } + ], + "description": "BCE SDK for PHP", + "homepage": "http://bce.baidu.com/sdkforphp", + "keywords": [ + "BCE", + "baidu", + "sdk" + ], + "support": { + "issues": "https://github.com/baidubce/bce-sdk-php/issues", + "source": "https://github.com/baidubce/bce-sdk-php/tree/master" + }, + "time": "2017-03-03T04:28:13+00:00" + }, + { + "name": "ezyang/htmlpurifier", + "version": "v4.14.0", + "source": { + "type": "git", + "url": "https://github.com/ezyang/htmlpurifier.git", + "reference": "12ab42bd6e742c70c0a52f7b82477fcd44e64b75" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/12ab42bd6e742c70c0a52f7b82477fcd44e64b75", + "reference": "12ab42bd6e742c70c0a52f7b82477fcd44e64b75", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.2" + }, + "type": "library", + "autoload": { + "files": [ + "library/HTMLPurifier.composer.php" + ], + "psr-0": { + "HTMLPurifier": "library/" + }, + "exclude-from-classmap": [ + "/library/HTMLPurifier/Language/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1-or-later" + ], + "authors": [ + { + "name": "Edward Z. Yang", + "email": "admin@htmlpurifier.org", + "homepage": "http://ezyang.com" + } + ], + "description": "Standards compliant HTML filter written in PHP", + "homepage": "http://htmlpurifier.org/", + "keywords": [ + "html" + ], + "support": { + "issues": "https://github.com/ezyang/htmlpurifier/issues", + "source": "https://github.com/ezyang/htmlpurifier/tree/v4.14.0" + }, + "time": "2021-12-25T01:21:49+00:00" + }, + { + "name": "guzzle/guzzle", + "version": "v3.9.3", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle3.git", + "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle3/zipball/0645b70d953bc1c067bbc8d5bc53194706b628d9", + "reference": "0645b70d953bc1c067bbc8d5bc53194706b628d9", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-curl": "*", + "php": ">=5.3.3", + "symfony/event-dispatcher": "~2.1" + }, + "replace": { + "guzzle/batch": "self.version", + "guzzle/cache": "self.version", + "guzzle/common": "self.version", + "guzzle/http": "self.version", + "guzzle/inflection": "self.version", + "guzzle/iterator": "self.version", + "guzzle/log": "self.version", + "guzzle/parser": "self.version", + "guzzle/plugin": "self.version", + "guzzle/plugin-async": "self.version", + "guzzle/plugin-backoff": "self.version", + "guzzle/plugin-cache": "self.version", + "guzzle/plugin-cookie": "self.version", + "guzzle/plugin-curlauth": "self.version", + "guzzle/plugin-error-response": "self.version", + "guzzle/plugin-history": "self.version", + "guzzle/plugin-log": "self.version", + "guzzle/plugin-md5": "self.version", + "guzzle/plugin-mock": "self.version", + "guzzle/plugin-oauth": "self.version", + "guzzle/service": "self.version", + "guzzle/stream": "self.version" + }, + "require-dev": { + "doctrine/cache": "~1.3", + "monolog/monolog": "~1.0", + "phpunit/phpunit": "3.7.*", + "psr/log": "~1.0", + "symfony/class-loader": "~2.1", + "zendframework/zend-cache": "2.*,<2.3", + "zendframework/zend-log": "2.*,<2.3" + }, + "suggest": { + "guzzlehttp/guzzle": "Guzzle 5 has moved to a new package name. The package you have installed, Guzzle 3, is deprecated." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.9-dev" + } + }, + "autoload": { + "psr-0": { + "Guzzle": "src/", + "Guzzle\\Tests": "tests/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Guzzle Community", + "homepage": "https://github.com/guzzle/guzzle/contributors" + } + ], + "description": "PHP HTTP client. This library is deprecated in favor of https://packagist.org/packages/guzzlehttp/guzzle", + "homepage": "http://guzzlephp.org/", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle3/issues", + "source": "https://github.com/guzzle/guzzle3/tree/master" + }, + "abandoned": "guzzlehttp/guzzle", + "time": "2015-03-18T18:23:50+00:00" + }, + { + "name": "guzzlehttp/command", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/command.git", + "reference": "2aaa2521a8f8269d6f5dfc13fe2af12c76921034" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/command/zipball/2aaa2521a8f8269d6f5dfc13fe2af12c76921034", + "reference": "2aaa2521a8f8269d6f5dfc13fe2af12c76921034", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "guzzlehttp/guzzle": "^6.2", + "guzzlehttp/promises": "~1.3", + "guzzlehttp/psr7": "~1.0", + "php": ">=5.5.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0|~5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.9-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Command\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + } + ], + "description": "Provides the foundation for building command-based web service clients", + "support": { + "issues": "https://github.com/guzzle/command/issues", + "source": "https://github.com/guzzle/command/tree/1.0.0" + }, + "time": "2016-11-24T13:34:15+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "6.3.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/f4db5a78a5ea468d4831de7f0bf9d9415e348699", + "reference": "f4db5a78a5ea468d4831de7f0bf9d9415e348699", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "guzzlehttp/promises": "^1.0", + "guzzlehttp/psr7": "^1.4", + "php": ">=5.5" + }, + "require-dev": { + "ext-curl": "*", + "phpunit/phpunit": "^4.0 || ^5.0", + "psr/log": "^1.0" + }, + "suggest": { + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "6.2-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "homepage": "http://guzzlephp.org/", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/master" + }, + "time": "2017-06-22T18:50:49+00:00" + }, + { + "name": "guzzlehttp/guzzle-services", + "version": "1.1.3", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle-services.git", + "reference": "9e3abf20161cbf662d616cbb995f2811771759f7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle-services/zipball/9e3abf20161cbf662d616cbb995f2811771759f7", + "reference": "9e3abf20161cbf662d616cbb995f2811771759f7", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "guzzlehttp/command": "~1.0", + "guzzlehttp/guzzle": "^6.2", + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "suggest": { + "gimler/guzzle-description-loader": "^0.0.4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Command\\Guzzle\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "Stefano Kowalke", + "email": "blueduck@mail.org", + "homepage": "https://github.com/konafets" + } + ], + "description": "Provides an implementation of the Guzzle Command library that uses Guzzle service descriptions to describe web services, serialize requests, and parse responses into easy to use model structures.", + "support": { + "issues": "https://github.com/guzzle/guzzle-services/issues", + "source": "https://github.com/guzzle/guzzle-services/tree/1.1.3" + }, + "time": "2017-10-06T14:32:02+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "v1.3.1", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/a59da6cf61d80060647ff4d3eb2c03a2bc694646", + "reference": "a59da6cf61d80060647ff4d3eb2c03a2bc694646", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.5.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/master" + }, + "time": "2016-12-20T10:07:11+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "1.4.2", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/f5b8a8512e2b58b0071a7280e39f14f72e05d87c", + "reference": "f5b8a8512e2b58b0071a7280e39f14f72e05d87c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.4.0", + "psr/http-message": "~1.0" + }, + "provide": { + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Schultze", + "homepage": "https://github.com/Tobion" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/1.4.2" + }, + "time": "2017-03-20T17:10:46+00:00" + }, + { + "name": "league/flysystem", + "version": "1.1.9", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "094defdb4a7001845300334e7c1ee2335925ef99" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/094defdb4a7001845300334e7c1ee2335925ef99", + "reference": "094defdb4a7001845300334e7c1ee2335925ef99", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-fileinfo": "*", + "league/mime-type-detection": "^1.3", + "php": "^7.2.5 || ^8.0" + }, + "conflict": { + "league/flysystem-sftp": "<1.0.6" + }, + "require-dev": { + "phpspec/prophecy": "^1.11.1", + "phpunit/phpunit": "^8.5.8" + }, + "suggest": { + "ext-ftp": "Allows you to use FTP server storage", + "ext-openssl": "Allows you to use FTPS server storage", + "league/flysystem-aws-s3-v2": "Allows you to use S3 storage with AWS SDK v2", + "league/flysystem-aws-s3-v3": "Allows you to use S3 storage with AWS SDK v3", + "league/flysystem-azure": "Allows you to use Windows Azure Blob storage", + "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching", + "league/flysystem-eventable-filesystem": "Allows you to use EventableFilesystem", + "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files", + "league/flysystem-sftp": "Allows you to use SFTP server storage via phpseclib", + "league/flysystem-webdav": "Allows you to use WebDAV storage", + "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter", + "spatie/flysystem-dropbox": "Allows you to use Dropbox storage", + "srmklive/flysystem-dropbox-v2": "Allows you to use Dropbox storage for PHP 5 applications" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frenky.net" + } + ], + "description": "Filesystem abstraction: Many filesystems, one API.", + "keywords": [ + "Cloud Files", + "WebDAV", + "abstraction", + "aws", + "cloud", + "copy.com", + "dropbox", + "file systems", + "files", + "filesystem", + "filesystems", + "ftp", + "rackspace", + "remote", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/1.1.9" + }, + "funding": [ + { + "url": "https://offset.earth/frankdejonge", + "type": "other" + } + ], + "time": "2021-12-09T09:40:50+00:00" + }, + { + "name": "league/flysystem-cached-adapter", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-cached-adapter.git", + "reference": "d1925efb2207ac4be3ad0c40b8277175f99ffaff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-cached-adapter/zipball/d1925efb2207ac4be3ad0c40b8277175f99ffaff", + "reference": "d1925efb2207ac4be3ad0c40b8277175f99ffaff", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "league/flysystem": "~1.0", + "psr/cache": "^1.0.0" + }, + "require-dev": { + "mockery/mockery": "~0.9", + "phpspec/phpspec": "^3.4", + "phpunit/phpunit": "^5.7", + "predis/predis": "~1.0", + "tedivm/stash": "~0.12" + }, + "suggest": { + "ext-phpredis": "Pure C implemented extension for PHP" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\Cached\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "frankdejonge", + "email": "info@frenky.net" + } + ], + "description": "An adapter decorator to enable meta-data caching.", + "support": { + "issues": "https://github.com/thephpleague/flysystem-cached-adapter/issues", + "source": "https://github.com/thephpleague/flysystem-cached-adapter/tree/master" + }, + "time": "2020-07-25T15:56:04+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.11.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ff6248ea87a9f116e78edd6002e39e5128a0d4dd", + "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.11.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2022-04-17T13:12:02+00:00" + }, + { + "name": "lizhichao/one-sm", + "version": "1.10", + "source": { + "type": "git", + "url": "https://github.com/lizhichao/sm.git", + "reference": "687a012a44a5bfd4d9143a0234e1060543be455a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/lizhichao/sm/zipball/687a012a44a5bfd4d9143a0234e1060543be455a", + "reference": "687a012a44a5bfd4d9143a0234e1060543be455a", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.6" + }, + "type": "library", + "autoload": { + "psr-4": { + "OneSm\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "tanszhe", + "email": "1018595261@qq.com" + } + ], + "description": "国密sm3", + "keywords": [ + "php", + "sm3" + ], + "support": { + "issues": "https://github.com/lizhichao/sm/issues", + "source": "https://github.com/lizhichao/sm/tree/1.10" + }, + "funding": [ + { + "url": "https://www.vicsdf.com/img/w.jpg", + "type": "custom" + }, + { + "url": "https://www.vicsdf.com/img/z.jpg", + "type": "custom" + } + ], + "time": "2021-05-26T06:19:22+00:00" + }, + { + "name": "maennchen/zipstream-php", + "version": "2.2.1", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "211e9ba1530ea5260b45d90c9ea252f56ec52729" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/211e9ba1530ea5260b45d90c9ea252f56ec52729", + "reference": "211e9ba1530ea5260b45d90c9ea252f56ec52729", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "myclabs/php-enum": "^1.5", + "php": "^7.4 || ^8.0", + "psr/http-message": "^1.0", + "symfony/polyfill-mbstring": "^1.0" + }, + "require-dev": { + "ext-zip": "*", + "guzzlehttp/guzzle": "^6.5.3 || ^7.2.0", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.4", + "phpunit/phpunit": "^8.5.8 || ^9.4.2", + "vimeo/psalm": "^4.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": [ + "stream", + "zip" + ], + "support": { + "issues": "https://github.com/maennchen/ZipStream-PHP/issues", + "source": "https://github.com/maennchen/ZipStream-PHP/tree/2.2.1" + }, + "funding": [ + { + "url": "https://opencollective.com/zipstream", + "type": "open_collective" + } + ], + "time": "2022-05-18T15:52:06+00:00" + }, + { + "name": "markbaker/complex", + "version": "2.0.3", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPComplex.git", + "reference": "6f724d7e04606fd8adaa4e3bb381c3e9db09c946" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPComplex/zipball/6f724d7e04606fd8adaa4e3bb381c3e9db09c946", + "reference": "6f724d7e04606fd8adaa4e3bb381c3e9db09c946", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "phpcompatibility/php-compatibility": "^9.0", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.3", + "squizlabs/php_codesniffer": "^3.4" + }, + "type": "library", + "autoload": { + "files": [ + "classes/src/functions/abs.php", + "classes/src/functions/acos.php", + "classes/src/functions/acosh.php", + "classes/src/functions/acot.php", + "classes/src/functions/acoth.php", + "classes/src/functions/acsc.php", + "classes/src/functions/acsch.php", + "classes/src/functions/argument.php", + "classes/src/functions/asec.php", + "classes/src/functions/asech.php", + "classes/src/functions/asin.php", + "classes/src/functions/asinh.php", + "classes/src/functions/atan.php", + "classes/src/functions/atanh.php", + "classes/src/functions/conjugate.php", + "classes/src/functions/cos.php", + "classes/src/functions/cosh.php", + "classes/src/functions/cot.php", + "classes/src/functions/coth.php", + "classes/src/functions/csc.php", + "classes/src/functions/csch.php", + "classes/src/functions/exp.php", + "classes/src/functions/inverse.php", + "classes/src/functions/ln.php", + "classes/src/functions/log2.php", + "classes/src/functions/log10.php", + "classes/src/functions/negative.php", + "classes/src/functions/pow.php", + "classes/src/functions/rho.php", + "classes/src/functions/sec.php", + "classes/src/functions/sech.php", + "classes/src/functions/sin.php", + "classes/src/functions/sinh.php", + "classes/src/functions/sqrt.php", + "classes/src/functions/tan.php", + "classes/src/functions/tanh.php", + "classes/src/functions/theta.php", + "classes/src/operations/add.php", + "classes/src/operations/subtract.php", + "classes/src/operations/multiply.php", + "classes/src/operations/divideby.php", + "classes/src/operations/divideinto.php" + ], + "psr-4": { + "Complex\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@lange.demon.co.uk" + } + ], + "description": "PHP Class for working with complex numbers", + "homepage": "https://github.com/MarkBaker/PHPComplex", + "keywords": [ + "complex", + "mathematics" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPComplex/issues", + "source": "https://github.com/MarkBaker/PHPComplex/tree/2.0.3" + }, + "time": "2021-06-02T09:44:11+00:00" + }, + { + "name": "markbaker/matrix", + "version": "2.1.3", + "source": { + "type": "git", + "url": "https://github.com/MarkBaker/PHPMatrix.git", + "reference": "174395a901b5ba0925f1d790fa91bab531074b61" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/MarkBaker/PHPMatrix/zipball/174395a901b5ba0925f1d790fa91bab531074b61", + "reference": "174395a901b5ba0925f1d790fa91bab531074b61", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", + "phpcompatibility/php-compatibility": "^9.0", + "phpdocumentor/phpdocumentor": "2.*", + "phploc/phploc": "^4.0", + "phpmd/phpmd": "2.*", + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.3", + "sebastian/phpcpd": "^4.0", + "squizlabs/php_codesniffer": "^3.4" + }, + "type": "library", + "autoload": { + "files": [ + "classes/src/Functions/adjoint.php", + "classes/src/Functions/antidiagonal.php", + "classes/src/Functions/cofactors.php", + "classes/src/Functions/determinant.php", + "classes/src/Functions/diagonal.php", + "classes/src/Functions/identity.php", + "classes/src/Functions/inverse.php", + "classes/src/Functions/minors.php", + "classes/src/Functions/trace.php", + "classes/src/Functions/transpose.php", + "classes/src/Operations/add.php", + "classes/src/Operations/directsum.php", + "classes/src/Operations/subtract.php", + "classes/src/Operations/multiply.php", + "classes/src/Operations/divideby.php", + "classes/src/Operations/divideinto.php" + ], + "psr-4": { + "Matrix\\": "classes/src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mark Baker", + "email": "mark@demon-angel.eu" + } + ], + "description": "PHP Class for working with matrices", + "homepage": "https://github.com/MarkBaker/PHPMatrix", + "keywords": [ + "mathematics", + "matrix", + "vector" + ], + "support": { + "issues": "https://github.com/MarkBaker/PHPMatrix/issues", + "source": "https://github.com/MarkBaker/PHPMatrix/tree/2.1.3" + }, + "time": "2021-05-25T15:42:17+00:00" + }, + { + "name": "monolog/monolog", + "version": "1.23.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/fd8c787753b3a2ad11bc60c063cff1358a32a3b4", + "reference": "fd8c787753b3a2ad11bc60c063cff1358a32a3b4", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3.0", + "psr/log": "~1.0" + }, + "provide": { + "psr/log-implementation": "1.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^2.4.9 || ^3.0", + "doctrine/couchdb": "~1.0@dev", + "graylog2/gelf-php": "~1.0", + "jakub-onderka/php-parallel-lint": "0.9", + "php-amqplib/php-amqplib": "~2.4", + "php-console/php-console": "^3.1.3", + "phpunit/phpunit": "~4.5", + "phpunit/phpunit-mock-objects": "2.3.0", + "ruflin/elastica": ">=0.90 <3.0", + "sentry/sentry": "^0.13", + "swiftmailer/swiftmailer": "^5.3|^6.0" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-mongo": "Allow sending log messages to a MongoDB server", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server via PHP Driver", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "php-console/php-console": "Allow sending log messages to Google Chrome", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server", + "sentry/sentry": "Allow sending log messages to a Sentry server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "http://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/1.23.0" + }, + "time": "2017-06-19T01:22:40+00:00" + }, + { + "name": "myclabs/php-enum", + "version": "1.6.6", + "source": { + "type": "git", + "url": "https://github.com/myclabs/php-enum.git", + "reference": "32c4202886c51fbe5cc3a7c34ec5c9a4a790345e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/php-enum/zipball/32c4202886c51fbe5cc3a7c34ec5c9a4a790345e", + "reference": "32c4202886c51fbe5cc3a7c34ec5c9a4a790345e", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-json": "*", + "php": ">=5.4" + }, + "require-dev": { + "phpunit/phpunit": "^4.8.35|^5.7|^6.0", + "squizlabs/php_codesniffer": "1.*" + }, + "type": "library", + "autoload": { + "psr-4": { + "MyCLabs\\Enum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP Enum contributors", + "homepage": "https://github.com/myclabs/php-enum/graphs/contributors" + } + ], + "description": "PHP Enum implementation", + "homepage": "http://github.com/myclabs/php-enum", + "keywords": [ + "enum" + ], + "support": { + "issues": "https://github.com/myclabs/php-enum/issues", + "source": "https://github.com/myclabs/php-enum/tree/master" + }, + "time": "2019-02-04T21:18:49+00:00" + }, + { + "name": "obs/esdk-obs-php", + "version": "3.21.6", + "source": { + "type": "git", + "url": "https://github.com/huaweicloud/huaweicloud-sdk-php-obs.git", + "reference": "690ea452f1dfdfbf867e279e6ee8afe25f422c6f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/huaweicloud/huaweicloud-sdk-php-obs/zipball/690ea452f1dfdfbf867e279e6ee8afe25f422c6f", + "reference": "690ea452f1dfdfbf867e279e6ee8afe25f422c6f", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "guzzlehttp/guzzle": "6.3.0", + "guzzlehttp/promises": "1.3.1", + "guzzlehttp/psr7": "1.4.2", + "monolog/monolog": "1.23.0", + "php": ">=5.6.0", + "psr/http-message": "1.0.1", + "psr/log": "~1.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Obs\\": "Obs/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "description": "OBS PHP SDK", + "keywords": [ + "OBS", + "php" + ], + "support": { + "source": "https://github.com/huaweicloud/huaweicloud-sdk-php-obs/tree/v3.21.6" + }, + "time": "2021-07-22T08:52:54+00:00" + }, + { + "name": "phpoffice/phpspreadsheet", + "version": "1.17.1", + "source": { + "type": "git", + "url": "https://github.com/PHPOffice/PhpSpreadsheet.git", + "reference": "c55269cb06911575a126dc225a05c0e4626e5fb4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/c55269cb06911575a126dc225a05c0e4626e5fb4", + "reference": "c55269cb06911575a126dc225a05c0e4626e5fb4", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-ctype": "*", + "ext-dom": "*", + "ext-fileinfo": "*", + "ext-gd": "*", + "ext-iconv": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-simplexml": "*", + "ext-xml": "*", + "ext-xmlreader": "*", + "ext-xmlwriter": "*", + "ext-zip": "*", + "ext-zlib": "*", + "ezyang/htmlpurifier": "^4.13", + "maennchen/zipstream-php": "^2.1", + "markbaker/complex": "^1.5||^2.0", + "markbaker/matrix": "^1.2||^2.0", + "php": "^7.2||^8.0", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0", + "psr/simple-cache": "^1.0" + }, + "require-dev": { + "dompdf/dompdf": "^0.8.5", + "friendsofphp/php-cs-fixer": "^2.18", + "jpgraph/jpgraph": "^4.0", + "mpdf/mpdf": "^8.0", + "phpcompatibility/php-compatibility": "^9.3", + "phpunit/phpunit": "^8.5||^9.3", + "squizlabs/php_codesniffer": "^3.5", + "tecnickcom/tcpdf": "^6.3" + }, + "suggest": { + "dompdf/dompdf": "Option for rendering PDF with PDF Writer (doesn't yet support PHP8)", + "jpgraph/jpgraph": "Option for rendering charts, or including charts with PDF or HTML Writers", + "mpdf/mpdf": "Option for rendering PDF with PDF Writer", + "tecnickcom/tcpdf": "Option for rendering PDF with PDF Writer (doesn't yet support PHP8)" + }, + "type": "library", + "autoload": { + "psr-4": { + "PhpOffice\\PhpSpreadsheet\\": "src/PhpSpreadsheet" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Maarten Balliauw", + "homepage": "https://blog.maartenballiauw.be" + }, + { + "name": "Mark Baker", + "homepage": "https://markbakeruk.net" + }, + { + "name": "Franck Lefevre", + "homepage": "https://rootslabs.net" + }, + { + "name": "Erik Tilt" + }, + { + "name": "Adrien Crivelli" + } + ], + "description": "PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", + "homepage": "https://github.com/PHPOffice/PhpSpreadsheet", + "keywords": [ + "OpenXML", + "excel", + "gnumeric", + "ods", + "php", + "spreadsheet", + "xls", + "xlsx" + ], + "support": { + "issues": "https://github.com/PHPOffice/PhpSpreadsheet/issues", + "source": "https://github.com/PHPOffice/PhpSpreadsheet/tree/1.17.1" + }, + "time": "2021-03-02T17:54:11+00:00" + }, + { + "name": "psr/cache", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/cache.git", + "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/cache/zipball/d11b50ad223250cf17b86e38383413f5a6764bf8", + "reference": "d11b50ad223250cf17b86e38383413f5a6764bf8", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for caching libraries", + "keywords": [ + "cache", + "psr", + "psr-6" + ], + "support": { + "source": "https://github.com/php-fig/cache/tree/master" + }, + "time": "2016-08-06T20:24:11+00:00" + }, + { + "name": "psr/container", + "version": "1.1.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/1.1.2" + }, + "time": "2021-11-05T16:50:12+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "reference": "2dfb5f6c5eff0e91e20e913f8c5452ed95b86621", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client/tree/master" + }, + "time": "2020-06-29T06:28:15+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "reference": "12ac7fcd07e5b077433f5f2bee95b3a771bf61be", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.0.0", + "psr/http-message": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/master" + }, + "time": "2019-04-30T12:38:16+00:00" + }, + { + "name": "psr/http-message", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363", + "reference": "f6561bf28d520154e4b0ec72be95418abe6d9363", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/master" + }, + "time": "2016-08-06T14:39:51+00:00" + }, + { + "name": "psr/log", + "version": "1.1.4", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", + "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "Psr/Log/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/1.1.4" + }, + "time": "2021-05-03T11:20:27+00:00" + }, + { + "name": "psr/simple-cache", + "version": "1.0.1", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", + "reference": "408d5eafb83c57f6365a3ca330ff23aa4a5fa39b", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/master" + }, + "time": "2017-10-23T01:57:42+00:00" + }, + { + "name": "qcloud/cos-sdk-v5", + "version": "v2.5.5", + "source": { + "type": "git", + "url": "https://github.com/tencentyun/cos-php-sdk-v5.git", + "reference": "40e51efc05d5addeb9029db7840846809bd666c4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tencentyun/cos-php-sdk-v5/zipball/40e51efc05d5addeb9029db7840846809bd666c4", + "reference": "40e51efc05d5addeb9029db7840846809bd666c4", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-curl": "*", + "ext-json": "*", + "ext-simplexml": "*", + "guzzlehttp/guzzle": "^6.2.1 || ^7.0", + "guzzlehttp/guzzle-services": "^1.1", + "guzzlehttp/psr7": "^1.3.1 || ^2.0", + "php": ">=5.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + }, + "autoload": { + "files": [ + "src/Common.php" + ], + "psr-4": { + "Qcloud\\Cos\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "yaozongyou", + "email": "yaozongyou@vip.qq.com" + }, + { + "name": "lewzylu", + "email": "327874225@qq.com" + }, + { + "name": "tuunalai", + "email": "550566181@qq.com" + } + ], + "description": "PHP SDK for QCloud COS", + "keywords": [ + "cos", + "php", + "qcloud" + ], + "support": { + "issues": "https://github.com/tencentyun/cos-php-sdk-v5/issues", + "source": "https://github.com/tencentyun/cos-php-sdk-v5/tree/v2.5.5" + }, + "time": "2022-04-27T06:20:21+00:00" + }, + { + "name": "qiniu/php-sdk", + "version": "v7.5.0", + "source": { + "type": "git", + "url": "https://github.com/qiniu/php-sdk.git", + "reference": "0cc46e4206002d1a736dbb4abb1424b0b7fc3f22" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/qiniu/php-sdk/zipball/0cc46e4206002d1a736dbb4abb1424b0b7fc3f22", + "reference": "0cc46e4206002d1a736dbb4abb1424b0b7fc3f22", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "myclabs/php-enum": "1.6.6", + "php": ">=5.3.3" + }, + "require-dev": { + "paragonie/random_compat": ">=2", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~3.6" + }, + "type": "library", + "autoload": { + "files": [ + "src/Qiniu/functions.php" + ], + "psr-4": { + "Qiniu\\": "src/Qiniu" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Qiniu", + "email": "sdk@qiniu.com", + "homepage": "http://www.qiniu.com" + } + ], + "description": "Qiniu Resource (Cloud) Storage SDK for PHP", + "homepage": "http://developer.qiniu.com/", + "keywords": [ + "cloud", + "qiniu", + "sdk", + "storage" + ], + "support": { + "issues": "https://github.com/qiniu/php-sdk/issues", + "source": "https://github.com/qiniu/php-sdk/tree/v7.5.0" + }, + "time": "2022-04-18T10:49:54+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v2.8.52", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/a77e974a5fecb4398833b0709210e3d5e334ffb0", + "reference": "a77e974a5fecb4398833b0709210e3d5e334ffb0", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=5.3.9" + }, + "require-dev": { + "psr/log": "~1.0", + "symfony/config": "^2.0.5|~3.0.0", + "symfony/dependency-injection": "~2.6|~3.0.0", + "symfony/expression-language": "~2.6|~3.0.0", + "symfony/stopwatch": "~2.3|~3.0.0" + }, + "suggest": { + "symfony/dependency-injection": "", + "symfony/http-kernel": "" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.8-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony EventDispatcher Component", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v2.8.50" + }, + "time": "2018-11-21T14:20:20+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.25.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825", + "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.1" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.25.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-11-30T18:21:41+00:00" + }, + { + "name": "topthink/framework", + "version": "v6.0.12", + "source": { + "type": "git", + "url": "https://github.com/top-think/framework.git", + "reference": "e478316ac843c1a884a3b3a7a94db17c4001ff5c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/framework/zipball/e478316ac843c1a884a3b3a7a94db17c4001ff5c", + "reference": "e478316ac843c1a884a3b3a7a94db17c4001ff5c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "league/flysystem": "^1.1.4", + "league/flysystem-cached-adapter": "^1.0", + "php": ">=7.2.5", + "psr/container": "~1.0", + "psr/http-message": "^1.0", + "psr/log": "~1.0", + "psr/simple-cache": "^1.0", + "topthink/think-helper": "^3.1.1", + "topthink/think-orm": "^2.0" + }, + "require-dev": { + "guzzlehttp/psr7": "^2.1.0", + "mikey179/vfsstream": "^1.6", + "mockery/mockery": "^1.2", + "phpunit/phpunit": "^7.0" + }, + "type": "library", + "autoload": { + "files": [], + "psr-4": { + "think\\": "src/think/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" + }, + { + "name": "yunwuxin", + "email": "448901948@qq.com" + } + ], + "description": "The ThinkPHP Framework.", + "homepage": "http://thinkphp.cn/", + "keywords": [ + "framework", + "orm", + "thinkphp" + ], + "support": { + "issues": "https://github.com/top-think/framework/issues", + "source": "https://github.com/top-think/framework/tree/v6.0.12" + }, + "time": "2022-01-21T06:31:07+00:00" + }, + { + "name": "topthink/think-helper", + "version": "v3.1.6", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-helper.git", + "reference": "769acbe50a4274327162f9c68ec2e89a38eb2aff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-helper/zipball/769acbe50a4274327162f9c68ec2e89a38eb2aff", + "reference": "769acbe50a4274327162f9c68ec2e89a38eb2aff", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.1.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/helper.php" + ], + "psr-4": { + "think\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "yunwuxin", + "email": "448901948@qq.com" + } + ], + "description": "The ThinkPHP6 Helper Package", + "support": { + "issues": "https://github.com/top-think/think-helper/issues", + "source": "https://github.com/top-think/think-helper/tree/v3.1.6" + }, + "time": "2021-12-15T04:27:55+00:00" + }, + { + "name": "topthink/think-orm", + "version": "v2.0.52", + "source": { + "type": "git", + "url": "https://github.com/top-think/think-orm.git", + "reference": "407a60658f37fc57422ab95a9922c6f69af90f46" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/top-think/think-orm/zipball/407a60658f37fc57422ab95a9922c6f69af90f46", + "reference": "407a60658f37fc57422ab95a9922c6f69af90f46", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-json": "*", + "ext-pdo": "*", + "php": ">=7.1.0", + "psr/log": "~1.0", + "psr/simple-cache": "^1.0", + "topthink/think-helper": "^3.1" + }, + "require-dev": { + "phpunit/phpunit": "^7|^8|^9.5" + }, + "type": "library", + "autoload": { + "files": [ + "stubs/load_stubs.php" + ], + "psr-4": { + "think\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "liu21st", + "email": "liu21st@gmail.com" + } + ], + "description": "think orm", + "keywords": [ + "database", + "orm" + ], + "support": { + "issues": "https://github.com/top-think/think-orm/issues", + "source": "https://github.com/top-think/think-orm/tree/v2.0.52" + }, + "time": "2022-01-25T06:00:05+00:00" + }, + { + "name": "upyun/sdk", + "version": "3.5.0", + "source": { + "type": "git", + "url": "https://github.com/upyun/php-sdk.git", + "reference": "c9f824626552c32b987de4ac7f136e0e21cca962" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/upyun/php-sdk/zipball/c9f824626552c32b987de4ac7f136e0e21cca962", + "reference": "c9f824626552c32b987de4ac7f136e0e21cca962", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-curl": "*", + "guzzlehttp/guzzle": "~6.0", + "php": ">=5.5.0" + }, + "require-dev": { + "consolidation/robo": "^1.0", + "phpdocumentor/phpdocumentor": "^2.9", + "phpunit/phpunit": "~4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Upyun\\": "src/Upyun/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "lfeng", + "email": "bonevv@gmail.com" + }, + { + "name": "lvtongda", + "email": "riyao.lyu@gmail.com" + }, + { + "name": "totoleo", + "email": "totoleo@163.com" + }, + { + "name": "sabakugaara", + "email": "senellise@gmail.com" + } + ], + "description": "UPYUN sdk for php", + "homepage": "https://github.com/upyun/php-sdk/", + "keywords": [ + "sdk", + "upyun" + ], + "support": { + "issues": "https://github.com/upyun/php-sdk/issues", + "source": "https://github.com/upyun/php-sdk/tree/master" + }, + "time": "2020-04-22T06:08:39+00:00" + } + ], + "packages-dev": [ + { + "name": "symfony/polyfill-php72", + "version": "v1.25.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "9a142215a36a3888e30d0a9eeea9766764e96976" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/9a142215a36a3888e30d0a9eeea9766764e96976", + "reference": "9a142215a36a3888e30d0a9eeea9766764e96976", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php72/tree/v1.25.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2021-05-27T09:17:38+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.25.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/4407588e0d3f1f52efb65fbe92babe41f37fe50c", + "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.23-dev" + }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.25.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-03-04T08:16:47+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v4.4.41", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "58eb36075c04aaf92a7a9f38ee9a8b97e24eb481" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/58eb36075c04aaf92a7a9f38ee9a8b97e24eb481", + "reference": "58eb36075c04aaf92a7a9f38ee9a8b97e24eb481", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": ">=7.1.3", + "symfony/polyfill-mbstring": "~1.0", + "symfony/polyfill-php72": "~1.5", + "symfony/polyfill-php80": "^1.16" + }, + "conflict": { + "phpunit/phpunit": "<4.8.35|<5.4.3,>=5.0", + "symfony/console": "<3.4" + }, + "require-dev": { + "ext-iconv": "*", + "symfony/console": "^3.4|^4.0|^5.0", + "symfony/process": "^4.4|^5.0", + "twig/twig": "^1.43|^2.13|^3.0.4" + }, + "suggest": { + "ext-iconv": "To convert non-UTF-8 strings to UTF-8 (or symfony/polyfill-iconv in case ext-iconv cannot be used).", + "ext-intl": "To show region name in time zone dump", + "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v4.4.41" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-04-25T21:15:06+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=7.1", + "ext-gd": "*", + "ext-libxml": "*", + "ext-json": "*", + "ext-simplexml": "*", + "ext-zip": "*", + "ext-openssl": "*", + "ext-iconv": "*", + "ext-curl": "*", + "ext-dom": "*" + }, + "platform-dev": [], + "plugin-api-version": "2.1.0" +} diff --git a/src/ApiController.php b/src/ApiController.php index b03036e..a7da516 100644 --- a/src/ApiController.php +++ b/src/ApiController.php @@ -1,256 +1,256 @@ -app = $app; - $this->request = $app->request; - $this->app->bind('DtApp\ThinkLibrary\ApiController', $this); - if (in_array($this->request->action(), get_class_methods(__CLASS__))) { - $this->error('Access without permission.'); - } - $this->initialize(); - } - - /** - * 控制器初始化 - */ - protected function initialize() - { - } - - /** - * 返回失败的操作 - * @param mixed $msg 消息内容 - * @param mixed $data 返回数据 - * @param integer $code 返回代码 - */ - public function error($msg = 'error', $code = 1, $data = []): void - { - throw new HttpResponseException(json([ - 'code' => $code, - 'msg' => $msg, - 'timestamp' => time(), - 'data' => $data, - ])); - } - - /** - * 返回成功的操作 - * @param mixed $msg 消息内容 - * @param mixed $data 返回数据 - * @param integer $code 返回代码 - */ - public function success($data = [], $msg = 'success', $code = 0): void - { - throw new HttpResponseException(json([ - 'code' => $code, - 'msg' => $msg, - 'timestamp' => time(), - 'data' => $data, - ])); - } - - /** - * key - * @param string $name 参数名 - * @return $this - */ - public function setAesMd5($name = 'sniff_h5'): self - { - $value = config("dtapp.md5.{$name}"); - $this->aes_md5 = $value; - return $this; - } - - /** - * iv - * @return $this - */ - private function setAesMd5Iv(): self - { - $value = config("dtapp.md5.bcw"); - $this->aes_md5_iv = $value; - return $this; - } - - /** - * 返回成功的操作 - * @param mixed $data 返回数据 - * @param mixed $msg 消息内容 - * @param integer $code 返回代码 - */ - public function aesSuccess($data = [], $msg = 'success', $code = 0) - { - $timestamp = time(); - throw new HttpResponseException(json([ - 'code' => $code, - 'msg' => $msg, - 'timestamp' => $timestamp, - 'data' => [ - 'aes' => $this->encrypt($data, $timestamp) - ], - ])); - } - - /** - * URL重定向 - * @param string $url 跳转链接 - * @param integer $code 跳转代码 - */ - public function redirect($url, $code = 301): void - { - throw new HttpResponseException(redirect($url, $code)); - } - - /** - * @param array $rules - * @param string $type - * @return mixed - */ - protected function _vali(array $rules, $type = '') - { - return ValidateHelper::instance() - ->init($rules, $type); - } - - /** - * 获取解密后的数据 - * @param string $name - * @param null $default - * @return mixed - */ - public function getAesDecryptData(string $name = '', $default = null) - { - if (empty($name)) { - return $this->aes_decrypt_data; - } - - return $this->aes_decrypt_data[$name] ?? $default; - } - - /** - * 验证接口签名 - */ - public function _judgeSign() - { - // 加密的数据参数 - $aes = $this->request->post('aes', ''); - if (empty($aes)) { - $this->error('数据未签名!', 104); - } - // 获取时间数据 - $timestamp = $this->request->get('timestamp', 0); - // 判断是否有时间 - if (empty($timestamp)) { - $this->error('数据异常!', 105); - } - // 解密 - $aes_decode = $this->decrypt($aes, $timestamp); - if (empty($aes_decode)) { - $this->error('解密失败', 106); - } - $data = json_decode($aes_decode, true); - // 判断是不是小于服务器时间 - $before = strtotime('-2minute'); - $rear = strtotime('+2minute'); - if ($timestamp <= $rear && $timestamp >= $before) { - $this->aes_decrypt_data = $data; - } else { - $this->error('已超时,请重新尝试!'); - } - } - - /** - * 加密 - * @param $data - * @param int $timestamp - * @return bool|string - */ - private function encrypt($data, int $timestamp) - { - if (empty($this->aes_md5)) { - $this->setAesMd5(); - } - if (empty($this->aes_md5_iv)) { - $this->setAesMd5Iv(); - } - if (!empty(is_array($data))) { - $data = json_encode($data); - } - return urlencode(base64_encode(openssl_encrypt($data, 'AES-128-CBC', $this->aes_md5, 1, $this->aes_md5_iv . $timestamp))); - } - - /** - * 解密 - * @param string $data - * @param int $timestamp - * @return bool|false|string - */ - private function decrypt(string $data, int $timestamp) - { - if (empty($this->aes_md5)) { - $this->setAesMd5(); - } - if (empty($this->aes_md5_iv)) { - $this->setAesMd5Iv(); - } - return openssl_decrypt(base64_decode(urldecode($data)), "AES-128-CBC", $this->aes_md5, true, $this->aes_md5_iv . $timestamp); - } -} +app = $app; + $this->request = $app->request; + $this->app->bind('DtApp\ThinkLibrary\ApiController', $this); + if (in_array($this->request->action(), get_class_methods(__CLASS__))) { + $this->error('Access without permission.'); + } + $this->initialize(); + } + + /** + * 控制器初始化 + */ + protected function initialize() + { + } + + /** + * 返回失败的操作 + * @param mixed $msg 消息内容 + * @param mixed $data 返回数据 + * @param integer $code 返回代码 + */ + public function error($msg = 'error', $code = 1, $data = []): void + { + throw new HttpResponseException(json([ + 'code' => $code, + 'msg' => $msg, + 'timestamp' => time(), + 'data' => $data, + ])); + } + + /** + * 返回成功的操作 + * @param mixed $msg 消息内容 + * @param mixed $data 返回数据 + * @param integer $code 返回代码 + */ + public function success($data = [], $msg = 'success', $code = 0): void + { + throw new HttpResponseException(json([ + 'code' => $code, + 'msg' => $msg, + 'timestamp' => time(), + 'data' => $data, + ])); + } + + /** + * key + * @param string $name 参数名 + * @return $this + */ + public function setAesMd5($name = 'sniff_h5'): self + { + $value = config("dtapp.md5.{$name}"); + $this->aes_md5 = $value; + return $this; + } + + /** + * iv + * @return $this + */ + private function setAesMd5Iv(): self + { + $value = config("dtapp.md5.bcw"); + $this->aes_md5_iv = $value; + return $this; + } + + /** + * 返回成功的操作 + * @param mixed $data 返回数据 + * @param mixed $msg 消息内容 + * @param integer $code 返回代码 + */ + public function aesSuccess($data = [], $msg = 'success', $code = 0) + { + $timestamp = time(); + throw new HttpResponseException(json([ + 'code' => $code, + 'msg' => $msg, + 'timestamp' => $timestamp, + 'data' => [ + 'aes' => $this->encrypt($data, $timestamp) + ], + ])); + } + + /** + * URL重定向 + * @param string $url 跳转链接 + * @param integer $code 跳转代码 + */ + public function redirect($url, $code = 301): void + { + throw new HttpResponseException(redirect($url, $code)); + } + + /** + * @param array $rules + * @param string $type + * @return mixed + */ + protected function _vali(array $rules, $type = '') + { + return ValidateHelper::instance() + ->init($rules, $type); + } + + /** + * 获取解密后的数据 + * @param string $name + * @param null $default + * @return mixed + */ + public function getAesDecryptData(string $name = '', $default = null) + { + if (empty($name)) { + return $this->aes_decrypt_data; + } + + return $this->aes_decrypt_data[$name] ?? $default; + } + + /** + * 验证接口签名 + */ + public function _judgeSign() + { + // 加密的数据参数 + $aes = $this->request->post('aes', ''); + if (empty($aes)) { + $this->error('数据未签名!', 104); + } + // 获取时间数据 + $timestamp = $this->request->get('timestamp', 0); + // 判断是否有时间 + if (empty($timestamp)) { + $this->error('数据异常!', 105); + } + // 解密 + $aes_decode = $this->decrypt($aes, $timestamp); + if (empty($aes_decode)) { + $this->error('解密失败', 106); + } + $data = json_decode($aes_decode, true); + // 判断是不是小于服务器时间 + $before = strtotime('-2minute'); + $rear = strtotime('+2minute'); + if ($timestamp <= $rear && $timestamp >= $before) { + $this->aes_decrypt_data = $data; + } else { + $this->error('已超时,请重新尝试!'); + } + } + + /** + * 加密 + * @param $data + * @param int $timestamp + * @return bool|string + */ + private function encrypt($data, int $timestamp) + { + if (empty($this->aes_md5)) { + $this->setAesMd5(); + } + if (empty($this->aes_md5_iv)) { + $this->setAesMd5Iv(); + } + if (!empty(is_array($data))) { + $data = json_encode($data); + } + return urlencode(base64_encode(openssl_encrypt($data, 'AES-128-CBC', $this->aes_md5, 1, $this->aes_md5_iv . $timestamp))); + } + + /** + * 解密 + * @param string $data + * @param int $timestamp + * @return bool|false|string + */ + private function decrypt(string $data, int $timestamp) + { + if (empty($this->aes_md5)) { + $this->setAesMd5(); + } + if (empty($this->aes_md5_iv)) { + $this->setAesMd5Iv(); + } + return openssl_decrypt(base64_decode(urldecode($data)), "AES-128-CBC", $this->aes_md5, true, $this->aes_md5_iv . $timestamp); + } +} diff --git a/src/Controller.php b/src/Controller.php index 99e9113..3b95ce3 100644 --- a/src/Controller.php +++ b/src/Controller.php @@ -1,159 +1,159 @@ -app = $app; - $this->request = $app->request; - $this->app->bind('DtApp\ThinkLibrary\Controller', $this); - if (in_array($this->request->action(), get_class_methods(__CLASS__))) { - $this->error('Access without permission.'); - } - $this->initialize(); - } - - /** - * 控制器初始化 - */ - protected function initialize() - { - } - - /** - * 返回失败的操作 - * @param mixed $info 消息内容 - * @param mixed $data 返回数据 - * @param integer $code 返回代码 - */ - public function error($info, $data = '{-null-}', $code = 0): void - { - if ($data === '{-null-}') { - $data = new stdClass(); - } - throw new HttpResponseException(json([ - 'code' => $code, 'info' => $info, 'data' => $data, - ])); - } - - /** - * 返回成功的操作 - * @param mixed $info 消息内容 - * @param mixed $data 返回数据 - * @param integer $code 返回代码 - */ - public function success($info, $data = '{-null-}', $code = 1): void - { - if ($data === '{-null-}') { - $data = new stdClass(); - } - throw new HttpResponseException(json([ - 'code' => $code, 'info' => $info, 'data' => $data, - ])); - } - - /** - * URL重定向 - * @param string $url 跳转链接 - * @param integer $code 跳转代码 - */ - public function redirect($url, $code = 301): void - { - throw new HttpResponseException(redirect($url, $code)); - } - - /** - * 返回视图内容 - * @param string $tpl 模板名称 - * @param array $vars 模板变量 - */ - public function fetch($tpl = '', $vars = []): void - { - foreach ($this as $name => $value) { - $vars[$name] = $value; - } - throw new HttpResponseException(view($tpl, $vars)); - } - - /** - * 模板变量赋值 - * @param mixed $name 要显示的模板变量 - * @param mixed $value 变量的值 - * @return $this - */ - public function assign($name, $value = ''): self - { - if (is_string($name)) { - $this->$name = $value; - } elseif (is_array($name)) { - foreach ($name as $k => $v) { - if (is_string($k)) { - $this->$k = $v; - } - } - } - return $this; - } - - /** - * 数据回调处理机制 - * @param string $name 回调方法名称 - * @param mixed $one 回调引用参数1 - * @param mixed $two 回调引用参数2 - * @return boolean - */ - public function callback($name, &$one = [], &$two = []): bool - { - if (is_callable($name)) { - return $name($this, $one, $two); - } - foreach ([$name, "_{$this->app->request->action()}{$name}"] as $method) { - if (method_exists($this, $method) && false === $this->$method($one, $two)) { - return false; - } - } - return true; - } -} +app = $app; + $this->request = $app->request; + $this->app->bind('DtApp\ThinkLibrary\Controller', $this); + if (in_array($this->request->action(), get_class_methods(__CLASS__))) { + $this->error('Access without permission.'); + } + $this->initialize(); + } + + /** + * 控制器初始化 + */ + protected function initialize() + { + } + + /** + * 返回失败的操作 + * @param mixed $info 消息内容 + * @param mixed $data 返回数据 + * @param integer $code 返回代码 + */ + public function error($info, $data = '{-null-}', $code = 0): void + { + if ($data === '{-null-}') { + $data = new stdClass(); + } + throw new HttpResponseException(json([ + 'code' => $code, 'info' => $info, 'data' => $data, + ])); + } + + /** + * 返回成功的操作 + * @param mixed $info 消息内容 + * @param mixed $data 返回数据 + * @param integer $code 返回代码 + */ + public function success($info, $data = '{-null-}', $code = 1): void + { + if ($data === '{-null-}') { + $data = new stdClass(); + } + throw new HttpResponseException(json([ + 'code' => $code, 'info' => $info, 'data' => $data, + ])); + } + + /** + * URL重定向 + * @param string $url 跳转链接 + * @param integer $code 跳转代码 + */ + public function redirect($url, $code = 301): void + { + throw new HttpResponseException(redirect($url, $code)); + } + + /** + * 返回视图内容 + * @param string $tpl 模板名称 + * @param array $vars 模板变量 + */ + public function fetch($tpl = '', $vars = []): void + { + foreach ($this as $name => $value) { + $vars[$name] = $value; + } + throw new HttpResponseException(view($tpl, $vars)); + } + + /** + * 模板变量赋值 + * @param mixed $name 要显示的模板变量 + * @param mixed $value 变量的值 + * @return $this + */ + public function assign($name, $value = ''): self + { + if (is_string($name)) { + $this->$name = $value; + } elseif (is_array($name)) { + foreach ($name as $k => $v) { + if (is_string($k)) { + $this->$k = $v; + } + } + } + return $this; + } + + /** + * 数据回调处理机制 + * @param string $name 回调方法名称 + * @param mixed $one 回调引用参数1 + * @param mixed $two 回调引用参数2 + * @return boolean + */ + public function callback($name, &$one = [], &$two = []): bool + { + if (is_callable($name)) { + return $name($this, $one, $two); + } + foreach ([$name, "_{$this->app->request->action()}{$name}"] as $method) { + if (method_exists($this, $method) && false === $this->$method($one, $two)) { + return false; + } + } + return true; + } +} diff --git a/src/Helper.php b/src/Helper.php index 2e557c2..c2f8f81 100644 --- a/src/Helper.php +++ b/src/Helper.php @@ -1,80 +1,80 @@ -app = $app; - $this->class = $class; - } - - /** - * 获取数据库对象 - * @param $dbQuery - * @return Db - */ - protected function buildQuery($dbQuery) - { - return is_string($dbQuery) ? $this->app->db->name($dbQuery) : $dbQuery; - } - - /** - * 实例对象反射 - * @param mixed ...$args - * @return Helper - */ - public static function instance(...$args): Helper - { - return Container::getInstance()->invokeClass(static::class, $args); - } +app = $app; + $this->class = $class; + } + + /** + * 获取数据库对象 + * @param $dbQuery + * @return Db + */ + protected function buildQuery($dbQuery) + { + return is_string($dbQuery) ? $this->app->db->name($dbQuery) : $dbQuery; + } + + /** + * 实例对象反射 + * @param mixed ...$args + * @return Helper + */ + public static function instance(...$args): Helper + { + return Container::getInstance()->invokeClass(static::class, $args); + } } \ No newline at end of file diff --git a/src/Library.php b/src/Library.php index 8972d67..d597c93 100644 --- a/src/Library.php +++ b/src/Library.php @@ -1,69 +1,69 @@ -app->request->filter(['trim']); - // 判断访问模式,兼容 CLI 访问控制器 - if (!$this->app->request->isCli()) { - // 注册访问处理中间键 - $this->app->middleware->add(function (Request $request) { - $header = []; - if (($origin = $request->header('origin', '*')) !== '*') { - $header['Access-Control-Allow-Origin'] = $origin; - $header['Access-Control-Allow-Methods'] = 'GET,PUT,POST,PATCH,DELETE'; - $header['Access-Control-Allow-Headers'] = 'Authorization,Content-Type,If-Match,If-Modified-Since,If-None-Match,If-Unmodified-Since,X-Requested-With,User-Form-Token,User-Token,Token'; - $header['Access-Control-Expose-Headers'] = 'User-Form-Token,User-Token,Token'; - $header['Access-Control-Allow-Credentials'] = 'true'; - } - // 访问模式及访问权限检查 - if ($request->isOptions()) { - return response()->code(204)->header($header); - } - }, 'route'); - } - } -} +app->request->filter(['trim']); + // 判断访问模式,兼容 CLI 访问控制器 + if (!$this->app->request->isCli()) { + // 注册访问处理中间键 + $this->app->middleware->add(function (Request $request) { + $header = []; + if (($origin = $request->header('origin', '*')) !== '*') { + $header['Access-Control-Allow-Origin'] = $origin; + $header['Access-Control-Allow-Methods'] = 'GET,PUT,POST,PATCH,DELETE'; + $header['Access-Control-Allow-Headers'] = 'Authorization,Content-Type,If-Match,If-Modified-Since,If-None-Match,If-Unmodified-Since,X-Requested-With,User-Form-Token,User-Token,Token'; + $header['Access-Control-Expose-Headers'] = 'User-Form-Token,User-Token,Token'; + $header['Access-Control-Allow-Credentials'] = 'true'; + } + // 访问模式及访问权限检查 + if ($request->isOptions()) { + return response()->code(204)->header($header); + } + }, 'route'); + } + } +} diff --git a/src/Service.php b/src/Service.php index 2b7fea4..784d8d3 100644 --- a/src/Service.php +++ b/src/Service.php @@ -1,64 +1,64 @@ -app = $app; - $this->initialize(); - } - - /** - * 初始化服务 - * @return $this - */ - protected function initialize(): Service - { - return $this; - } - - /** - * 静态实例对象 - * @param array $args - * @return static - */ - public static function instance(...$args): Service - { - return Container::getInstance() - ->make(static::class, $args); - } -} +app = $app; + $this->initialize(); + } + + /** + * 初始化服务 + * @return $this + */ + protected function initialize(): Service + { + return $this; + } + + /** + * 静态实例对象 + * @param array $args + * @return static + */ + public static function instance(...$args): Service + { + return Container::getInstance() + ->make(static::class, $args); + } +} diff --git a/src/cache/Mysql.php b/src/cache/Mysql.php index 625adf0..3bb1ba9 100644 --- a/src/cache/Mysql.php +++ b/src/cache/Mysql.php @@ -1,167 +1,167 @@ -cache_name = $cache_name; - return $this; - } - - /** - * 过期时间 - * @param int $cache_expire - * @return $this - */ - public function expire(int $cache_expire): self - { - $this->cache_expire = $cache_expire; - return $this; - } - - /** - * 设置 - * @param $cache_value - * @return bool - * @throws DtaException - */ - public function set($cache_value): bool - { - $this->judge(); - $result = Db::table($this->table) - ->insert([ - 'cache_name' => $this->cache_name, - 'cache_value' => $cache_value, - 'cache_expire' => Times::dateRear("Y-m-d H:i:s", $this->cache_expire) - ]); - return $result ? true : false; - } - - /** - * 获取 - * @return mixed - * @throws DtaException - */ - public function get() - { - $this->judge(); - return Db::table($this->table) - ->where('cache_name', $this->cache_name) - ->whereTime('cache_expire', '>=', time()) - ->order('cache_expire desc') - ->value('cache_value', ''); - } - - /** - * 删除 - * @return bool - * @throws DtaException - * @throws \think\db\exception\DbException - */ - public function delete(): bool - { - $this->judge(); - $result = Db::table($this->table) - ->where('cache_name', $this->cache_name) - ->delete(); - return $result ? true : false; - } - - /** - * 更新 - * @param $cache_value - * @return bool - * @throws DtaException - * @throws \think\db\exception\DbException - */ - public function update($cache_value): bool - { - $this->judge(); - $result = Db::table($this->table) - ->where('cache_name', $this->cache_name) - ->update([ - 'cache_value' => $cache_value, - 'cache_expire' => Times::dateRear("Y-m-d H:i:s", $this->cache_expire) - ]); - return $result ? true : false; - } - - /** - * 自增 - * @param int $int - * @return bool - * @throws DtaException - * @throws \think\db\exception\DbException - */ - public function inc(int $int = 1): bool - { - $cache_value = (int)$this->get(); - $result = Db::table($this->table) - ->where('cache_name', $this->cache_name) - ->update([ - 'cache_value' => $cache_value + $int - ]); - return $result ? true : false; - } - - /** - * 自减 - * @param int $int - * @return bool - * @throws DtaException - * @throws \think\db\exception\DbException - */ - public function dec(int $int = 1): bool - { - $cache_value = (int)$this->get(); - $result = Db::table($this->table) - ->where('cache_name', $this->cache_name) - ->update([ - 'cache_value' => $cache_value - $int - ]); - return $result ? true : false; - } - - /** - * @throws DtaException - */ - private function judge(): void - { - if (empty($this->cache_name)) { - throw new DtaException("名称未配置"); - } - } -} +cache_name = $cache_name; + return $this; + } + + /** + * 过期时间 + * @param int $cache_expire + * @return $this + */ + public function expire(int $cache_expire): self + { + $this->cache_expire = $cache_expire; + return $this; + } + + /** + * 设置 + * @param $cache_value + * @return bool + * @throws DtaException + */ + public function set($cache_value): bool + { + $this->judge(); + $result = Db::table($this->table) + ->insert([ + 'cache_name' => $this->cache_name, + 'cache_value' => $cache_value, + 'cache_expire' => Times::dateRear("Y-m-d H:i:s", $this->cache_expire) + ]); + return $result ? true : false; + } + + /** + * 获取 + * @return mixed + * @throws DtaException + */ + public function get() + { + $this->judge(); + return Db::table($this->table) + ->where('cache_name', $this->cache_name) + ->whereTime('cache_expire', '>=', time()) + ->order('cache_expire desc') + ->value('cache_value', ''); + } + + /** + * 删除 + * @return bool + * @throws DtaException + * @throws \think\db\exception\DbException + */ + public function delete(): bool + { + $this->judge(); + $result = Db::table($this->table) + ->where('cache_name', $this->cache_name) + ->delete(); + return $result ? true : false; + } + + /** + * 更新 + * @param $cache_value + * @return bool + * @throws DtaException + * @throws \think\db\exception\DbException + */ + public function update($cache_value): bool + { + $this->judge(); + $result = Db::table($this->table) + ->where('cache_name', $this->cache_name) + ->update([ + 'cache_value' => $cache_value, + 'cache_expire' => Times::dateRear("Y-m-d H:i:s", $this->cache_expire) + ]); + return $result ? true : false; + } + + /** + * 自增 + * @param int $int + * @return bool + * @throws DtaException + * @throws \think\db\exception\DbException + */ + public function inc(int $int = 1): bool + { + $cache_value = (int)$this->get(); + $result = Db::table($this->table) + ->where('cache_name', $this->cache_name) + ->update([ + 'cache_value' => $cache_value + $int + ]); + return $result ? true : false; + } + + /** + * 自减 + * @param int $int + * @return bool + * @throws DtaException + * @throws \think\db\exception\DbException + */ + public function dec(int $int = 1): bool + { + $cache_value = (int)$this->get(); + $result = Db::table($this->table) + ->where('cache_name', $this->cache_name) + ->update([ + 'cache_value' => $cache_value - $int + ]); + return $result ? true : false; + } + + /** + * @throws DtaException + */ + private function judge(): void + { + if (empty($this->cache_name)) { + throw new DtaException("名称未配置"); + } + } +} diff --git a/src/command/Install.php b/src/command/Install.php index ef4dfd2..3c89a5f 100644 --- a/src/command/Install.php +++ b/src/command/Install.php @@ -1,48 +1,48 @@ -setName('dta:install'); - $this->setDescription("Install or update dtapp"); - $this->addArgument('name', Argument::OPTIONAL, 'Name', ''); - } - - protected function execute(Input $input, Output $output) - { - $this->name = trim($input->getArgument('name')); - if (empty($this->name)) { - $this->output->writeln('name of online installation cannot be empty'); - } else { - $this->output->writeln("The specified module {$this->name} is not configured with installation rules"); - } - } -} +setName('dta:install'); + $this->setDescription("Install or update dtapp"); + $this->addArgument('name', Argument::OPTIONAL, 'Name', ''); + } + + protected function execute(Input $input, Output $output) + { + $this->name = trim($input->getArgument('name')); + if (empty($this->name)) { + $this->output->writeln('name of online installation cannot be empty'); + } else { + $this->output->writeln("The specified module {$this->name} is not configured with installation rules"); + } + } +} diff --git a/src/command/Version.php b/src/command/Version.php index 88d47c7..49f3f4f 100644 --- a/src/command/Version.php +++ b/src/command/Version.php @@ -1,36 +1,36 @@ -setName('dta:version'); - $this->setDescription("Query ThinkPHP framework version"); - } - - protected function execute(Input $input, Output $output) - { - $output->writeln('ThinkPHP ' . App::VERSION); - } -} +setName('dta:version'); + $this->setDescription("Query ThinkPHP framework version"); + } + + protected function execute(Input $input, Output $output) + { + $output->writeln('ThinkPHP ' . App::VERSION); + } +} diff --git a/src/common.php b/src/common.php index e223bc3..5d1f43c 100644 --- a/src/common.php +++ b/src/common.php @@ -1,108 +1,108 @@ -getLocation($ip); - } -} - -if (!function_exists('get_ip')) { - /** - * 获取请求IP - * @return string - */ - function get_ip() - { - if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { - //为了兼容百度的CDN,所以转成数组 - $arr = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); - return $arr[0]; - } - return $_SERVER['REMOTE_ADDR']; - } -} - -if (!function_exists('uri')) { - /** - * 生成最短 URL 地址 - * @param string $url 路由地址 - * @param array $vars PATH 变量 - * @param boolean|string $suffix 后缀 - * @param boolean|string $domain 域名 - * @param boolean|string $fillSuffix 补上后缀 - * @return string - */ - function uri($url = '', array $vars = [], $suffix = true, $domain = false, $fillSuffix = false) - { - return SystemService::instance()->uri($url, $vars, $suffix, $domain, $fillSuffix); - } -} - -if (!function_exists('dtacache')) { - /** - * 缓存 - * @param string $name - * @param array $value - * @param int $expire - * @return bool|int|string - * @throws DtaException - * @throws \think\db\exception\DbException - */ - function dtacache($name = '', $value = [], $expire = 6000) - { - $myc = new Mysql(); - if (empty($value)) { - return $myc->name($name) - ->get(); - } - - $judge = $myc->name($name) - ->get(); - if (empty($judge)) { - $myc->name($name) - ->expire($expire) - ->set($value); - } else { - $myc->name($name) - ->expire($expire) - ->update($value); - } - return $myc->name($name) - ->get(); - } -} +getLocation($ip); + } +} + +if (!function_exists('get_ip')) { + /** + * 获取请求IP + * @return string + */ + function get_ip() + { + if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { + //为了兼容百度的CDN,所以转成数组 + $arr = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']); + return $arr[0]; + } + return $_SERVER['REMOTE_ADDR']; + } +} + +if (!function_exists('uri')) { + /** + * 生成最短 URL 地址 + * @param string $url 路由地址 + * @param array $vars PATH 变量 + * @param boolean|string $suffix 后缀 + * @param boolean|string $domain 域名 + * @param boolean|string $fillSuffix 补上后缀 + * @return string + */ + function uri($url = '', array $vars = [], $suffix = true, $domain = false, $fillSuffix = false) + { + return SystemService::instance()->uri($url, $vars, $suffix, $domain, $fillSuffix); + } +} + +if (!function_exists('dtacache')) { + /** + * 缓存 + * @param string $name + * @param array $value + * @param int $expire + * @return bool|int|string + * @throws DtaException + * @throws \think\db\exception\DbException + */ + function dtacache($name = '', $value = [], $expire = 6000) + { + $myc = new Mysql(); + if (empty($value)) { + return $myc->name($name) + ->get(); + } + + $judge = $myc->name($name) + ->get(); + if (empty($judge)) { + $myc->name($name) + ->expire($expire) + ->set($value); + } else { + $myc->name($name) + ->expire($expire) + ->update($value); + } + return $myc->name($name) + ->get(); + } +} diff --git a/src/config.php b/src/config.php index 421de31..339e64f 100644 --- a/src/config.php +++ b/src/config.php @@ -1,183 +1,183 @@ - [ - // 淘宝客 - 'tbk' => [ - 'app_key' => '', - 'app_secret' => '', - ] - ], - // 拼多多 - 'pinduoduo' => [ - // 进宝 - 'jinbao' => [ - // 开放平台分配的clientId - 'client_id' => '', - // 开放平台分配的clientSecret - 'client_secret' => '', - ] - ], - // 京东 - 'jd' => [ - // 京东联盟 - 'union' => [ - // 联盟分配给应用的appkey - 'app_key' => '', - // 联盟分配给应用的secretkey - 'secret_key' => '', - ] - ], - // 宝塔 - 'bt' => [ - // 密钥 - 'key' => '', - // 网址 - 'panel' => '', - ], - // 百度 - 'baidu' => [ - // 地图 - 'lbs' => [ - 'ak' => '' - ], - // 百度云 - 'bos' => [ - 'access_key_id' => '', - 'secret_access_key' => '', - 'endpoint' => '', - 'bucket' => '', - 'url' => '', - ] - ], - // 高德地图 - 'amap' => [ - 'key' => '' - ], - // 微信 - 'wechat' => [ - // 公众号 - 'webapp' => [ - 'cache' => 'file', - 'app_id' => '', - 'app_secret' => '', - ], - // 小程序 - 'mini' => [ - 'cache' => 'file', - 'app_key' => '', - 'app_secret' => '', - ], - // 企业微信 - 'qy' => [ - - ] - ], - // 错误通知 - 'exception' => [ - 'type' => 'dingtalk', - // 钉钉 - 'dingtalk' => [ - 'access_token' => '' - ], - // 企业微信 - 'qyweixin' => [ - 'key' => '' - ], - // 微信 - 'wechat' => [ - // 通知微信 - 'openid' => '', - // 网站名称 - 'node' => '', - // 服务器IP(节点) - 'ip' => '' - ] - ], - // 阿里云 - 'aliyun' => [ - 'oss' => [ - 'access_key_id' => '', - 'access_key_secret' => '', - 'endpoint' => '', - 'bucket' => '', - 'url' => '', - ] - ], - // 腾讯云 - 'tencent' => [ - 'cos' => [ - 'secret_id' => '', - 'secret_key' => '', - 'region' => '', - 'bucket' => '', - 'url' => '', - ] - ], - // 华为云 - 'huaweicloud' => [ - 'obs' => [ - 'key' => '', - 'secret' => '', - 'endpoint' => '', - 'bucket' => '', - 'url' => '', - ] - ], - // 本地存储 - 'storage' => [ - 'path' => '', - 'domain_name' => '', - 'domain_list' => [] - ], - // 又拍云 - 'upyun' => [ - // 又拍云存储 - 'uss' => [ - 'service_name' => '', - 'operator_name' => '', - 'operator_password' => '', - 'url' => '', - ] - ], - // 七牛云 - 'qiniu' => [ - // 云存储 - 'kodo' => [ - 'access_key' => '', - 'secret_key' => '', - 'bucket' => '', - 'url' => '', - ] - ], - // 金山云 - 'ksyun' => [ - // 云存储 - 'ks3' => [ - 'access_key_iD' => '', - 'access_key_secret' => '', - 'endpoint' => '', - 'bucket' => '', - 'url' => '', - ] - ], - // 验证签名 - 'md5' => [ - - ] -]; + [ + // 淘宝客 + 'tbk' => [ + 'app_key' => '', + 'app_secret' => '', + ] + ], + // 拼多多 + 'pinduoduo' => [ + // 进宝 + 'jinbao' => [ + // 开放平台分配的clientId + 'client_id' => '', + // 开放平台分配的clientSecret + 'client_secret' => '', + ] + ], + // 京东 + 'jd' => [ + // 京东联盟 + 'union' => [ + // 联盟分配给应用的appkey + 'app_key' => '', + // 联盟分配给应用的secretkey + 'secret_key' => '', + ] + ], + // 宝塔 + 'bt' => [ + // 密钥 + 'key' => '', + // 网址 + 'panel' => '', + ], + // 百度 + 'baidu' => [ + // 地图 + 'lbs' => [ + 'ak' => '' + ], + // 百度云 + 'bos' => [ + 'access_key_id' => '', + 'secret_access_key' => '', + 'endpoint' => '', + 'bucket' => '', + 'url' => '', + ] + ], + // 高德地图 + 'amap' => [ + 'key' => '' + ], + // 微信 + 'wechat' => [ + // 公众号 + 'webapp' => [ + 'cache' => 'file', + 'app_id' => '', + 'app_secret' => '', + ], + // 小程序 + 'mini' => [ + 'cache' => 'file', + 'app_key' => '', + 'app_secret' => '', + ], + // 企业微信 + 'qy' => [ + + ] + ], + // 错误通知 + 'exception' => [ + 'type' => 'dingtalk', + // 钉钉 + 'dingtalk' => [ + 'access_token' => '' + ], + // 企业微信 + 'qyweixin' => [ + 'key' => '' + ], + // 微信 + 'wechat' => [ + // 通知微信 + 'openid' => '', + // 网站名称 + 'node' => '', + // 服务器IP(节点) + 'ip' => '' + ] + ], + // 阿里云 + 'aliyun' => [ + 'oss' => [ + 'access_key_id' => '', + 'access_key_secret' => '', + 'endpoint' => '', + 'bucket' => '', + 'url' => '', + ] + ], + // 腾讯云 + 'tencent' => [ + 'cos' => [ + 'secret_id' => '', + 'secret_key' => '', + 'region' => '', + 'bucket' => '', + 'url' => '', + ] + ], + // 华为云 + 'huaweicloud' => [ + 'obs' => [ + 'key' => '', + 'secret' => '', + 'endpoint' => '', + 'bucket' => '', + 'url' => '', + ] + ], + // 本地存储 + 'storage' => [ + 'path' => '', + 'domain_name' => '', + 'domain_list' => [] + ], + // 又拍云 + 'upyun' => [ + // 又拍云存储 + 'uss' => [ + 'service_name' => '', + 'operator_name' => '', + 'operator_password' => '', + 'url' => '', + ] + ], + // 七牛云 + 'qiniu' => [ + // 云存储 + 'kodo' => [ + 'access_key' => '', + 'secret_key' => '', + 'bucket' => '', + 'url' => '', + ] + ], + // 金山云 + 'ksyun' => [ + // 云存储 + 'ks3' => [ + 'access_key_iD' => '', + 'access_key_secret' => '', + 'endpoint' => '', + 'bucket' => '', + 'url' => '', + ] + ], + // 验证签名 + 'md5' => [ + + ] +]; diff --git a/src/exception/DtaException.php b/src/exception/DtaException.php index eff2d87..b3bf079 100644 --- a/src/exception/DtaException.php +++ b/src/exception/DtaException.php @@ -1,35 +1,35 @@ -getMessage(); - } -} +getMessage(); + } +} diff --git a/src/exception/ThinkException.php b/src/exception/ThinkException.php index bc41b98..3bb656f 100644 --- a/src/exception/ThinkException.php +++ b/src/exception/ThinkException.php @@ -1,114 +1,114 @@ -getError(), 422); - } - - // 请求异常 - if ($e instanceof HttpException && $request->isAjax()) { - return response($e->getMessage(), $e->getStatusCode()); - } - - $this->show($e->getMessage()); - - // 其他错误交给系统处理 - return parent::render($request, $e); - } - - /** - * @param $msg - * @return bool - * @throws DtaException - */ - private function show($msg): bool - { - if (empty($msg)) { - return true; - } - $nt = config('dtapp.exception.type', ''); - if (!empty($nt) && $nt === 'dingtalk') { - $access_token = config('dtapp.exception.dingtalk.access_token', ''); - if (!empty($access_token)) { - return DingTalkService::instance() - ->accessToken($access_token) - ->text($msg); - } - } - if (!empty($nt) && $nt === 'qyweixin') { - $key = config('dtapp.exception.qyweixin.key', ''); - if (!empty($key)) { - return QyService::instance() - ->key($key) - ->text($msg); - } - } - if (!empty($nt) && $nt === 'wechat') { - $openid = config('dtapp.exception.wechat.openid', ''); - $ip = config('dtapp.exception.wechat.ip', '未配置'); - $seip = get_ip(); - $ipinfo = QqWryService::instance()->getLocation($seip); - if (!isset($ipinfo['location_all'])) { - $ipinfo['location_all'] = ''; - } - if (!empty($openid)) { - return HttpService::instance() - ->url("https://api.dtapp.net/v1/wechatmp/tmplmsgWebError/openid/{$openid}") - ->post() - ->data([ - 'domain' => request()->domain(), - 'url' => request()->url(), - 'node' => config('dtapp.exception.wechat.node', ''), - 'info' => "ServerIp:" . $ip . ";CdnIp:" . $_SERVER['REMOTE_ADDR'] . ";ClientIp:" . get_ip(), - 'ip' => $ipinfo['location_all'], - 'error' => base64_encode($msg) - ]) - ->toArray(); - } - } - return true; - } -} +getError(), 422); + } + + // 请求异常 + if ($e instanceof HttpException && $request->isAjax()) { + return response($e->getMessage(), $e->getStatusCode()); + } + + $this->show($e->getMessage()); + + // 其他错误交给系统处理 + return parent::render($request, $e); + } + + /** + * @param $msg + * @return bool + * @throws DtaException + */ + private function show($msg): bool + { + if (empty($msg)) { + return true; + } + $nt = config('dtapp.exception.type', ''); + if (!empty($nt) && $nt === 'dingtalk') { + $access_token = config('dtapp.exception.dingtalk.access_token', ''); + if (!empty($access_token)) { + return DingTalkService::instance() + ->accessToken($access_token) + ->text($msg); + } + } + if (!empty($nt) && $nt === 'qyweixin') { + $key = config('dtapp.exception.qyweixin.key', ''); + if (!empty($key)) { + return QyService::instance() + ->key($key) + ->text($msg); + } + } + if (!empty($nt) && $nt === 'wechat') { + $openid = config('dtapp.exception.wechat.openid', ''); + $ip = config('dtapp.exception.wechat.ip', '未配置'); + $seip = get_ip(); + $ipinfo = QqWryService::instance()->getLocation($seip); + if (!isset($ipinfo['location_all'])) { + $ipinfo['location_all'] = ''; + } + if (!empty($openid)) { + return HttpService::instance() + ->url("https://api.dtapp.net/v1/wechatmp/tmplmsgWebError/openid/{$openid}") + ->post() + ->data([ + 'domain' => request()->domain(), + 'url' => request()->url(), + 'node' => config('dtapp.exception.wechat.node', ''), + 'info' => "ServerIp:" . $ip . ";CdnIp:" . $_SERVER['REMOTE_ADDR'] . ";ClientIp:" . get_ip(), + 'ip' => $ipinfo['location_all'], + 'error' => base64_encode($msg) + ]) + ->toArray(); + } + } + return true; + } +} diff --git a/src/extend/ArraysExtend.php b/src/extend/ArraysExtend.php index aa4f300..f1e3ffc 100644 --- a/src/extend/ArraysExtend.php +++ b/src/extend/ArraysExtend.php @@ -1,188 +1,188 @@ - $value) { - if (!in_array($value, $out, true)) { - $out[$key] = $value; - } - } - $out = array_values($out); - return $out; - } - - /** - * 二维数组根据某个键排序 - * @param array $arrays - * @param string $sort_key - * @param int $sort_order - * @param int $sort_type - * @return array - */ - public static function sort(array $arrays, string $sort_key, $sort_order = SORT_ASC, $sort_type = SORT_NUMERIC): array - { - $key_arrays = array(); - if (is_array($arrays)) { - foreach ($arrays as $array) { - if (is_array($array)) { - $key_arrays[] = $array[$sort_key]; - } else { - return []; - } - } - } else { - return []; - } - array_multisort($key_arrays, $sort_order, $sort_type, $arrays); - return $arrays; - } - - /** - * 数组删除空格 - * @param array $arr - * @return array - */ - public static function trimArray(array $arr) - { - if (!is_array($arr)) { - return $arr; - } - foreach ($arr as $key => $value) { - if (is_array($value)) { - $arr[$key] = self::TrimArray($value); - } else { - $arr[$key] = self::trimAll($value); - } - } - return $arr; - } - - /** - * 字符串删除空格 - * @param $str - * @return string|string[] - */ - private static function trimAll($str) - { - $oldchar = array(" ", " ", "\t", "\n", "\r"); - $newchar = array("", "", "", "", ""); - return str_replace($oldchar, $newchar, $str); - } - - /** - * 把json字符串或json对象转json数组 - * @param $output - * @return array - */ - public static function toArray($output): array - { - if (is_array($output)) { - return $output; - } - if (is_object($output)) { - $output = json_encode($output, JSON_UNESCAPED_UNICODE); - } - return json_decode($output, true); - } - - /** - * @param $array - * @param $name - * @return array - */ - public static function valChunk($array, $name): array - { - $result = array(); - $ar2 = []; - foreach ($array as $key => $value) { - foreach ($array as $k => $val) { - if ($value[(string)($name)] == $val[(string)($name)]) { - $ar2[] = $val; - } - } - $result[$value[(string)($name)]] = $ar2; - $ar2 = []; - } - return $result; - } -} + $value) { + if (!in_array($value, $out, true)) { + $out[$key] = $value; + } + } + $out = array_values($out); + return $out; + } + + /** + * 二维数组根据某个键排序 + * @param array $arrays + * @param string $sort_key + * @param int $sort_order + * @param int $sort_type + * @return array + */ + public static function sort(array $arrays, string $sort_key, $sort_order = SORT_ASC, $sort_type = SORT_NUMERIC): array + { + $key_arrays = array(); + if (is_array($arrays)) { + foreach ($arrays as $array) { + if (is_array($array)) { + $key_arrays[] = $array[$sort_key]; + } else { + return []; + } + } + } else { + return []; + } + array_multisort($key_arrays, $sort_order, $sort_type, $arrays); + return $arrays; + } + + /** + * 数组删除空格 + * @param array $arr + * @return array + */ + public static function trimArray(array $arr) + { + if (!is_array($arr)) { + return $arr; + } + foreach ($arr as $key => $value) { + if (is_array($value)) { + $arr[$key] = self::TrimArray($value); + } else { + $arr[$key] = self::trimAll($value); + } + } + return $arr; + } + + /** + * 字符串删除空格 + * @param $str + * @return string|string[] + */ + private static function trimAll($str) + { + $oldchar = array(" ", " ", "\t", "\n", "\r"); + $newchar = array("", "", "", "", ""); + return str_replace($oldchar, $newchar, $str); + } + + /** + * 把json字符串或json对象转json数组 + * @param $output + * @return array + */ + public static function toArray($output): array + { + if (is_array($output)) { + return $output; + } + if (is_object($output)) { + $output = json_encode($output, JSON_UNESCAPED_UNICODE); + } + return json_decode($output, true); + } + + /** + * @param $array + * @param $name + * @return array + */ + public static function valChunk($array, $name): array + { + $result = array(); + $ar2 = []; + foreach ($array as $key => $value) { + foreach ($array as $k => $val) { + if ($value[(string)($name)] == $val[(string)($name)]) { + $ar2[] = $val; + } + } + $result[$value[(string)($name)]] = $ar2; + $ar2 = []; + } + return $result; + } +} diff --git a/src/extend/CodeExtend.php b/src/extend/CodeExtend.php index 3c9558b..4d4aa46 100644 --- a/src/extend/CodeExtend.php +++ b/src/extend/CodeExtend.php @@ -1,91 +1,91 @@ - $value) { - if (!in_array($value, $out)) { - $out[$key] = $value; - } - } - $out = array_values($out); - return $out; - } - - /** - * 二维数组根据某个键排序 - * @param array $arrays - * @param string $sort_key - * @param int $sort_order - * @param int $sort_type - * @return array - */ - public function sort(array $arrays, string $sort_key, $sort_order = SORT_ASC, $sort_type = SORT_NUMERIC): array - { - $key_arrays = array(); - if (is_array($arrays)) { - foreach ($arrays as $array) { - if (is_array($array)) { - $key_arrays[] = $array[$sort_key]; - } else { - return []; - } - } - } else { - return []; - } - array_multisort($key_arrays, $sort_order, $sort_type, $arrays); - return $arrays; - } - - /** - * 数组删除空格 - * @param array $arr - * @return array - */ - public function trimArray(array $arr) - { - if (!is_array($arr)) { - return $arr; - } - foreach ($arr as $key => $value) { - if (is_array($value)) { - $arr[$key] = $this->TrimArray($value); - } else { - $arr[$key] = $this->trimAll($value); - } - } - return $arr; - } - - /** - * 字符串删除空格 - * @param $str - * @return string|string[] - */ - private function trimAll($str) - { - $oldchar = array(" ", " ", "\t", "\n", "\r"); - $newchar = array("", "", "", "", ""); - return str_replace($oldchar, $newchar, $str); - } - - /** - * 把json字符串或json对象转json数组 - * @param $output - * @return array - */ - public function toArray($output): array - { - if (is_array($output)) { - return $output; - } - if (is_object($output)) { - $output = json_encode($output, JSON_UNESCAPED_UNICODE); - } - return json_decode($output, true); - } - - /** - * @param $array - * @return array - */ - public function valChunk($array,$name): array - { - $result = array(); - $ar2 = []; - foreach ($array as $key => $value) { - foreach ($array as $k => $val) { - if ($value["{$name}"] == $val["{$name}"]) { - $ar2[] = $val; - } - } - $result[$value["{$name}"]] = $ar2; - $ar2 = []; - } - return $result; - } -} + $value) { + if (!in_array($value, $out)) { + $out[$key] = $value; + } + } + $out = array_values($out); + return $out; + } + + /** + * 二维数组根据某个键排序 + * @param array $arrays + * @param string $sort_key + * @param int $sort_order + * @param int $sort_type + * @return array + */ + public function sort(array $arrays, string $sort_key, $sort_order = SORT_ASC, $sort_type = SORT_NUMERIC): array + { + $key_arrays = array(); + if (is_array($arrays)) { + foreach ($arrays as $array) { + if (is_array($array)) { + $key_arrays[] = $array[$sort_key]; + } else { + return []; + } + } + } else { + return []; + } + array_multisort($key_arrays, $sort_order, $sort_type, $arrays); + return $arrays; + } + + /** + * 数组删除空格 + * @param array $arr + * @return array + */ + public function trimArray(array $arr) + { + if (!is_array($arr)) { + return $arr; + } + foreach ($arr as $key => $value) { + if (is_array($value)) { + $arr[$key] = $this->TrimArray($value); + } else { + $arr[$key] = $this->trimAll($value); + } + } + return $arr; + } + + /** + * 字符串删除空格 + * @param $str + * @return string|string[] + */ + private function trimAll($str) + { + $oldchar = array(" ", " ", "\t", "\n", "\r"); + $newchar = array("", "", "", "", ""); + return str_replace($oldchar, $newchar, $str); + } + + /** + * 把json字符串或json对象转json数组 + * @param $output + * @return array + */ + public function toArray($output): array + { + if (is_array($output)) { + return $output; + } + if (is_object($output)) { + $output = json_encode($output, JSON_UNESCAPED_UNICODE); + } + return json_decode($output, true); + } + + /** + * @param $array + * @return array + */ + public function valChunk($array,$name): array + { + $result = array(); + $ar2 = []; + foreach ($array as $key => $value) { + foreach ($array as $k => $val) { + if ($value["{$name}"] == $val["{$name}"]) { + $ar2[] = $val; + } + } + $result[$value["{$name}"]] = $ar2; + $ar2 = []; + } + return $result; + } +} diff --git a/src/helper/Dates.php b/src/helper/Dates.php index 8438344..43e0fab 100644 --- a/src/helper/Dates.php +++ b/src/helper/Dates.php @@ -1,38 +1,38 @@ -deletes($fullpath); - } - } - } - closedir($dh); - //删除当前文件夹: - if (rmdir($name)) { - return true; - } - - return false; - } - - /** - * 把文件夹里面的文件打包成zip文件 - * @param string $name 路径 - * @param string $suffix_name 需要打包的后缀名,默认.png - * @param string $file_name 文件名,默认全部名 - * @return bool - * @throws DtaException - */ - public function folderZip(string $name, string $suffix_name = '.png', string $file_name = '*'): bool - { - if (empty($name)) { - throw new DtaException('请检查需要打包的路径名称'); - } - $list = glob($name . "{$file_name}.{$suffix_name}"); - $fileList = $list; - $zip = new ZipArchive(); - // 打开压缩包 - $zip->open($name, ZipArchive::CREATE); - //向压缩包中添加文件 - foreach ($fileList as $file) { - $zip->addFile($file, basename($file)); - } - //关闭压缩包 - $zip->close(); - return true; - } - - /** - * 获取目录下的所有文件和目录 - * @param string $path - * @return array - */ - public function getFiles(string $path): array - { - $files = []; - if (is_dir($path)) { - $path = dirname($path) . '/' . basename($path) . '/'; - $file = dir($path); - while (false !== ($entry = $file->read())) { - if ($entry !== '.' && $entry !== '..') { - $cur = $path . $entry; - if (is_dir($cur)) { - $subPath = $cur . '/'; - $this->getFiles($subPath); - } - $files[] = $cur; - } - } - $file->close(); - return $files; - } - - return []; - } - - /** - * 删除目录下的文件 - * @param string $path - * @return bool - */ - public function rmFiles(string $path): bool - { - $files = $this->getFiles($path); - if (!is_array($files)) { - return false; - } - - if (empty($files)) { - return false; - } - - foreach ($files as $item => $file) { - if (is_dir($file)) { - rmdir($file); - } elseif (is_file($file)) { - unlink($file); - } - } - return true; - } - - /** - * 判断文件是否存在 - * @param string $path - * @return bool - */ - public function judgeFile(string $path): bool - { - if (file_exists($path)) { - return true; - } - return false; - } - - /** - * 判断目录是否存在 - * @param string $path - * @return bool - */ - public function judgeContents(string $path): bool - { - if (is_dir($path)) { - return true; - } - return false; - } -} +deletes($fullpath); + } + } + } + closedir($dh); + //删除当前文件夹: + if (rmdir($name)) { + return true; + } + + return false; + } + + /** + * 把文件夹里面的文件打包成zip文件 + * @param string $name 路径 + * @param string $suffix_name 需要打包的后缀名,默认.png + * @param string $file_name 文件名,默认全部名 + * @return bool + * @throws DtaException + */ + public function folderZip(string $name, string $suffix_name = '.png', string $file_name = '*'): bool + { + if (empty($name)) { + throw new DtaException('请检查需要打包的路径名称'); + } + $list = glob($name . "{$file_name}.{$suffix_name}"); + $fileList = $list; + $zip = new ZipArchive(); + // 打开压缩包 + $zip->open($name, ZipArchive::CREATE); + //向压缩包中添加文件 + foreach ($fileList as $file) { + $zip->addFile($file, basename($file)); + } + //关闭压缩包 + $zip->close(); + return true; + } + + /** + * 获取目录下的所有文件和目录 + * @param string $path + * @return array + */ + public function getFiles(string $path): array + { + $files = []; + if (is_dir($path)) { + $path = dirname($path) . '/' . basename($path) . '/'; + $file = dir($path); + while (false !== ($entry = $file->read())) { + if ($entry !== '.' && $entry !== '..') { + $cur = $path . $entry; + if (is_dir($cur)) { + $subPath = $cur . '/'; + $this->getFiles($subPath); + } + $files[] = $cur; + } + } + $file->close(); + return $files; + } + + return []; + } + + /** + * 删除目录下的文件 + * @param string $path + * @return bool + */ + public function rmFiles(string $path): bool + { + $files = $this->getFiles($path); + if (!is_array($files)) { + return false; + } + + if (empty($files)) { + return false; + } + + foreach ($files as $item => $file) { + if (is_dir($file)) { + rmdir($file); + } elseif (is_file($file)) { + unlink($file); + } + } + return true; + } + + /** + * 判断文件是否存在 + * @param string $path + * @return bool + */ + public function judgeFile(string $path): bool + { + if (file_exists($path)) { + return true; + } + return false; + } + + /** + * 判断目录是否存在 + * @param string $path + * @return bool + */ + public function judgeContents(string $path): bool + { + if (is_dir($path)) { + return true; + } + return false; + } +} diff --git a/src/helper/Ints.php b/src/helper/Ints.php index 7cd9be5..4b2ba91 100644 --- a/src/helper/Ints.php +++ b/src/helper/Ints.php @@ -1,47 +1,47 @@ -= 2) { - if (!preg_match('/\d+/', $str) || !preg_match('/[a-z]+/', $str)) { - $str = substr($str, 0, -1); - --$i; - } - } - if ($type === 5 && strlen($str) >= 2) { - if (!preg_match('/\d+/', $str) || !preg_match('/[A-Z]+/', $str)) { - $str = substr($str, 0, -1); - --$i; - } - } - if ($type === 6 && strlen($str) >= 2) { - if (!preg_match('/[a-z]+/', $str) || !preg_match('/[A-Z]+/', $str)) { - $str = substr($str, 0, -1); - --$i; - } - } - if ($type === 7 && strlen($str) >= 3) { - if (!preg_match('/\d+/', $str) || !preg_match('/[a-z]+/', $str) || !preg_match('/[A-Z]+/', $str)) { - $str = substr($str, 0, -2); - $i -= 2; - } - } - } - return $str; - } -} += 2) { + if (!preg_match('/\d+/', $str) || !preg_match('/[a-z]+/', $str)) { + $str = substr($str, 0, -1); + --$i; + } + } + if ($type === 5 && strlen($str) >= 2) { + if (!preg_match('/\d+/', $str) || !preg_match('/[A-Z]+/', $str)) { + $str = substr($str, 0, -1); + --$i; + } + } + if ($type === 6 && strlen($str) >= 2) { + if (!preg_match('/[a-z]+/', $str) || !preg_match('/[A-Z]+/', $str)) { + $str = substr($str, 0, -1); + --$i; + } + } + if ($type === 7 && strlen($str) >= 3) { + if (!preg_match('/\d+/', $str) || !preg_match('/[a-z]+/', $str) || !preg_match('/[A-Z]+/', $str)) { + $str = substr($str, 0, -2); + $i -= 2; + } + } + } + return $str; + } +} diff --git a/src/helper/Requests.php b/src/helper/Requests.php index 2242318..38c06bc 100644 --- a/src/helper/Requests.php +++ b/src/helper/Requests.php @@ -1,228 +1,228 @@ - $v) { - if (empty($data[(string)$v] ?? '')) { - return []; - } - } - return $data; - } - - /** - * 判断输入的参数为空就返回Json错误 - * @param array $data - * @param array $arr - * @return array - */ - public function isEmptyRet(array $data, array $arr): array - { - foreach ($arr as $k => $v) { - if (empty($data[(string)$v] ?? '')) { - (new Returns)->jsonError('请检查参数', 102); - } - } - return $data; - } - - /** - * 判断是否为GET方式 - * @return bool - */ - public function isGet(): bool - { - return request()->isGet(); - } - - /** - * 判断是否为POST方式 - * @return bool - */ - public function isPost(): bool - { - return request()->isPost(); - } - - /** - * 判断是否为PUT方式 - * @return boolean - */ - public function isPut(): bool - { - return request()->isPut(); - } - - /** - * 判断是否为DELETE方式 - * @return boolean - */ - public function isDelete(): bool - { - return request()->isDelete(); - } - - /** - * 判断是否为Ajax方式 - * @return bool - */ - public function isAjax(): bool - { - return request()->isAjax(); - } - - /** - * 判断是否为移动端访问 - * @return bool - */ - public function isMobile(): bool - { - // 如果有HTTP_X_WAP_PROFILE则一定是移动设备 - if (isset($_SERVER['HTTP_X_WAP_PROFILE'])) { - return true; - } - //如果via信息含有wap则一定是移动设备,部分服务商会屏蔽该信息 - //找不到为flase,否则为true - if (isset($_SERVER['HTTP_VIA'])) { - return stripos(request()->server('HTTP_VIA'), "wap") !== false; - } - //判断手机发送的客户端标志 - if (isset($_SERVER['HTTP_USER_AGENT'])) { - $clientkeywords = [ - 'nokia', 'sony', 'ericsson', 'mot', 'samsung', 'htc', 'sgh', 'lg', 'sharp', - 'sie-', 'philips', 'panasonic', 'alcatel', 'lenovo', 'iphone', 'ipod', 'blackberry', 'meizu', - 'android', 'netfront', 'symbian', 'ucweb', 'windowsce', 'palm', 'operamini', 'operamobi', - 'openwave', 'nexusone', 'cldc', 'midp', 'wap', 'mobile', 'alipay' - ]; - // 从HTTP_USER_AGENT中查找手机浏览器的关键字 - if (preg_match("/(" . implode('|', $clientkeywords) . ")/i", strtolower(request()->server('HTTP_USER_AGENT')))) { - return true; - } - } - //协议法,因为有可能不准确,放到最后判断 - // 如果只支持wml并且不支持html那一定是移动设备 - // 如果支持wml和html但是wml在html之前则是移动设备 - return isset($_SERVER['HTTP_ACCEPT']) && (strpos(request()->server('HTTP_ACCEPT'), 'vnd.wap.wml') !== false) && (strpos(request()->server('HTTP_ACCEPT'), 'text/html') === false || (strpos(request()->server('HTTP_ACCEPT'), 'vnd.wap.wml') < strpos(request()->server('HTTP_ACCEPT'), 'text/html'))); - } - - /** - * 判断是否微信内置浏览器访问 - * @return bool - */ - public function isWeiXin(): bool - { - return strpos(request()->server('HTTP_USER_AGENT'), 'MicroMessenger') !== false; - } - - /** - * 判断是否为微信小程序访问 - * @return bool - */ - public function isWeiXinMp(): bool - { - return strpos(request()->server('HTTP_USER_AGENT'), 'miniProgram') !== false; - } - - /** - * 判断是否支付宝内置浏览器访问 - * @return bool - */ - public function isAliPay(): bool - { - return strpos(request()->server('HTTP_USER_AGENT'), 'Alipay') !== false; - } - - /** - * 判断是否QQ内置浏览器访问 - * @return bool - */ - public function isQQ(): bool - { - return (strpos(request()->server('HTTP_USER_AGENT'), 'QQ') !== false) && strpos(request()->server('HTTP_USER_AGENT'), '_SQ_') !== false; - } - - /** - * 判断是否QQ浏览器访问 - * @return bool - */ - public function isQQBrowser(): bool - { - if (strpos(request()->server('HTTP_USER_AGENT'), 'QQ') !== false) { - return !(strpos(request()->server('HTTP_USER_AGENT'), '_SQ_') !== false); - } - return false; - } - - /** - * 获取客户端类型 - * @return string - */ - public function getDeviceType() - { - $agent = strtolower(request()->server('HTTP_USER_AGENT')); - if (strpos($agent, 'iphone') || strpos($agent, 'ipad') || strpos($agent, 'android')) { - $type = 'mobile'; - } else { - $type = 'computer'; - } - return $type; - } - - /** - * 获取手机设备类型 - * @return string - */ - public function getMobileType() - { - $agent = strtolower(request()->server('HTTP_USER_AGENT')); - $type = 'other'; - if (strpos($agent, 'iphone') || strpos($agent, 'ipad')) { - $type = 'ios'; - } - if (strpos($agent, 'android')) { - $type = 'android'; - } - return $type; - } - - /** - * 获取域名地址 - * @return string - */ - public function getWebsiteAddress(): string - { - $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')) ? 'https://' : 'http://'; - return $http_type . $_SERVER['HTTP_HOST'] . "/"; - } -} + $v) { + if (empty($data[(string)$v] ?? '')) { + return []; + } + } + return $data; + } + + /** + * 判断输入的参数为空就返回Json错误 + * @param array $data + * @param array $arr + * @return array + */ + public function isEmptyRet(array $data, array $arr): array + { + foreach ($arr as $k => $v) { + if (empty($data[(string)$v] ?? '')) { + (new Returns)->jsonError('请检查参数', 102); + } + } + return $data; + } + + /** + * 判断是否为GET方式 + * @return bool + */ + public function isGet(): bool + { + return request()->isGet(); + } + + /** + * 判断是否为POST方式 + * @return bool + */ + public function isPost(): bool + { + return request()->isPost(); + } + + /** + * 判断是否为PUT方式 + * @return boolean + */ + public function isPut(): bool + { + return request()->isPut(); + } + + /** + * 判断是否为DELETE方式 + * @return boolean + */ + public function isDelete(): bool + { + return request()->isDelete(); + } + + /** + * 判断是否为Ajax方式 + * @return bool + */ + public function isAjax(): bool + { + return request()->isAjax(); + } + + /** + * 判断是否为移动端访问 + * @return bool + */ + public function isMobile(): bool + { + // 如果有HTTP_X_WAP_PROFILE则一定是移动设备 + if (isset($_SERVER['HTTP_X_WAP_PROFILE'])) { + return true; + } + //如果via信息含有wap则一定是移动设备,部分服务商会屏蔽该信息 + //找不到为flase,否则为true + if (isset($_SERVER['HTTP_VIA'])) { + return stripos(request()->server('HTTP_VIA'), "wap") !== false; + } + //判断手机发送的客户端标志 + if (isset($_SERVER['HTTP_USER_AGENT'])) { + $clientkeywords = [ + 'nokia', 'sony', 'ericsson', 'mot', 'samsung', 'htc', 'sgh', 'lg', 'sharp', + 'sie-', 'philips', 'panasonic', 'alcatel', 'lenovo', 'iphone', 'ipod', 'blackberry', 'meizu', + 'android', 'netfront', 'symbian', 'ucweb', 'windowsce', 'palm', 'operamini', 'operamobi', + 'openwave', 'nexusone', 'cldc', 'midp', 'wap', 'mobile', 'alipay' + ]; + // 从HTTP_USER_AGENT中查找手机浏览器的关键字 + if (preg_match("/(" . implode('|', $clientkeywords) . ")/i", strtolower(request()->server('HTTP_USER_AGENT')))) { + return true; + } + } + //协议法,因为有可能不准确,放到最后判断 + // 如果只支持wml并且不支持html那一定是移动设备 + // 如果支持wml和html但是wml在html之前则是移动设备 + return isset($_SERVER['HTTP_ACCEPT']) && (strpos(request()->server('HTTP_ACCEPT'), 'vnd.wap.wml') !== false) && (strpos(request()->server('HTTP_ACCEPT'), 'text/html') === false || (strpos(request()->server('HTTP_ACCEPT'), 'vnd.wap.wml') < strpos(request()->server('HTTP_ACCEPT'), 'text/html'))); + } + + /** + * 判断是否微信内置浏览器访问 + * @return bool + */ + public function isWeiXin(): bool + { + return strpos(request()->server('HTTP_USER_AGENT'), 'MicroMessenger') !== false; + } + + /** + * 判断是否为微信小程序访问 + * @return bool + */ + public function isWeiXinMp(): bool + { + return strpos(request()->server('HTTP_USER_AGENT'), 'miniProgram') !== false; + } + + /** + * 判断是否支付宝内置浏览器访问 + * @return bool + */ + public function isAliPay(): bool + { + return strpos(request()->server('HTTP_USER_AGENT'), 'Alipay') !== false; + } + + /** + * 判断是否QQ内置浏览器访问 + * @return bool + */ + public function isQQ(): bool + { + return (strpos(request()->server('HTTP_USER_AGENT'), 'QQ') !== false) && strpos(request()->server('HTTP_USER_AGENT'), '_SQ_') !== false; + } + + /** + * 判断是否QQ浏览器访问 + * @return bool + */ + public function isQQBrowser(): bool + { + if (strpos(request()->server('HTTP_USER_AGENT'), 'QQ') !== false) { + return !(strpos(request()->server('HTTP_USER_AGENT'), '_SQ_') !== false); + } + return false; + } + + /** + * 获取客户端类型 + * @return string + */ + public function getDeviceType() + { + $agent = strtolower(request()->server('HTTP_USER_AGENT')); + if (strpos($agent, 'iphone') || strpos($agent, 'ipad') || strpos($agent, 'android')) { + $type = 'mobile'; + } else { + $type = 'computer'; + } + return $type; + } + + /** + * 获取手机设备类型 + * @return string + */ + public function getMobileType() + { + $agent = strtolower(request()->server('HTTP_USER_AGENT')); + $type = 'other'; + if (strpos($agent, 'iphone') || strpos($agent, 'ipad')) { + $type = 'ios'; + } + if (strpos($agent, 'android')) { + $type = 'android'; + } + return $type; + } + + /** + * 获取域名地址 + * @return string + */ + public function getWebsiteAddress(): string + { + $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')) ? 'https://' : 'http://'; + return $http_type . $_SERVER['HTTP_HOST'] . "/"; + } +} diff --git a/src/helper/Returns.php b/src/helper/Returns.php index 48fe83c..7f2dab2 100644 --- a/src/helper/Returns.php +++ b/src/helper/Returns.php @@ -1,87 +1,87 @@ - $code, - 'msg' => $msg, - 'time' => time(), - 'data' => $data - ], $ext))); - } - - throw new HttpResponseException(json([ - 'code' => $code, - 'msg' => $msg, - 'time' => time(), - 'data' => $data - ])); - } - - /** - * 返回Json-错误 - * @param string $msg 描述 - * @param int $code 状态码 - * @param array $data 数据 - * @param array $ext 扩展字段 - */ - public function jsonError(string $msg = 'error', int $code = 1, array $data = [], array $ext = []): void - { - if (!empty($ext) && is_array($ext)) { - throw new HttpResponseException(json(array_merge([ - 'code' => $code, - 'msg' => $msg, - 'time' => time(), - 'data' => $data - ], $ext))); - } - - throw new HttpResponseException(json([ - 'code' => $code, - 'msg' => $msg, - 'time' => time(), - 'data' => $data - ])); - } -} + $code, + 'msg' => $msg, + 'time' => time(), + 'data' => $data + ], $ext))); + } + + throw new HttpResponseException(json([ + 'code' => $code, + 'msg' => $msg, + 'time' => time(), + 'data' => $data + ])); + } + + /** + * 返回Json-错误 + * @param string $msg 描述 + * @param int $code 状态码 + * @param array $data 数据 + * @param array $ext 扩展字段 + */ + public function jsonError(string $msg = 'error', int $code = 1, array $data = [], array $ext = []): void + { + if (!empty($ext) && is_array($ext)) { + throw new HttpResponseException(json(array_merge([ + 'code' => $code, + 'msg' => $msg, + 'time' => time(), + 'data' => $data + ], $ext))); + } + + throw new HttpResponseException(json([ + 'code' => $code, + 'msg' => $msg, + 'time' => time(), + 'data' => $data + ])); + } +} diff --git a/src/helper/Strings.php b/src/helper/Strings.php index fd48375..4e72d37 100644 --- a/src/helper/Strings.php +++ b/src/helper/Strings.php @@ -1,124 +1,124 @@ -', '《', '》', '.', '。', '/', '、', '?', '?', '╮', '(', ')', 'r', 'ぷ', '〆', 'ゞ', 'ヤ', 'ゼ', 'ǎ', 'ǎ', '〆', 'む', '§', '上门'), '', $str); - return trim($str); - } - - /** - * 判断字符串是否包含某个字符 - * @param $str - * @param int $nee - * @param string $del - * @return bool - */ - public function exitContain(string $str, $nee = 3, $del = ','): bool - { - if (strpos($str, $del) !== false) { - $var = explode($del, $str); - foreach ($var as $v) { - if ($v === $nee) { - return true; - } - } - return false; - } - - return $str === $nee; - } - - /** - * 统计字符串长度 - * @param string $str 字符串 - * @return int - */ - public function len(string $str): int - { - return strlen($str); - } - - /** - * 字符串删除空格 - * @param $str - * @return string|string[] - */ - public function trimAll($str): string - { - $oldchar = array(" ", " ", "\t", "\n", "\r"); - $newchar = array("", "", "", "", ""); - return str_replace($oldchar, $newchar, $str); - } - - /** - * 替换字符串 - * @param string $search - * @param string $replace - * @param string $subject - * @return string|string[] - */ - public function replace(string $search, string $replace, string $subject) - { - return str_replace($search, $replace, $subject); - } -} +', '《', '》', '.', '。', '/', '、', '?', '?', '╮', '(', ')', 'r', 'ぷ', '〆', 'ゞ', 'ヤ', 'ゼ', 'ǎ', 'ǎ', '〆', 'む', '§', '上门'), '', $str); + return trim($str); + } + + /** + * 判断字符串是否包含某个字符 + * @param $str + * @param int $nee + * @param string $del + * @return bool + */ + public function exitContain(string $str, $nee = 3, $del = ','): bool + { + if (strpos($str, $del) !== false) { + $var = explode($del, $str); + foreach ($var as $v) { + if ($v === $nee) { + return true; + } + } + return false; + } + + return $str === $nee; + } + + /** + * 统计字符串长度 + * @param string $str 字符串 + * @return int + */ + public function len(string $str): int + { + return strlen($str); + } + + /** + * 字符串删除空格 + * @param $str + * @return string|string[] + */ + public function trimAll($str): string + { + $oldchar = array(" ", " ", "\t", "\n", "\r"); + $newchar = array("", "", "", "", ""); + return str_replace($oldchar, $newchar, $str); + } + + /** + * 替换字符串 + * @param string $search + * @param string $replace + * @param string $subject + * @return string|string[] + */ + public function replace(string $search, string $replace, string $subject) + { + return str_replace($search, $replace, $subject); + } +} diff --git a/src/helper/Times.php b/src/helper/Times.php index de536f8..a07a3de 100644 --- a/src/helper/Times.php +++ b/src/helper/Times.php @@ -1,150 +1,150 @@ - $assignTime1 && $curTime < $assignTime2) { - $result = true; - } - return $result; - } -} + $assignTime1 && $curTime < $assignTime2) { + $result = true; + } + return $result; + } +} diff --git a/src/helper/UnIqIds.php b/src/helper/UnIqIds.php index e736924..fcba3a0 100644 --- a/src/helper/UnIqIds.php +++ b/src/helper/UnIqIds.php @@ -1,98 +1,98 @@ - $v) { - if ($k !== "sign" && $v !== "" && !is_array($v)) { - $buff .= $k . "=" . $v . "&"; - } - } - $buff = trim($buff, "&"); - return $buff; - } - - /** - * 判断是否为Url - * @param string $url - * @return bool - */ - public function isUrl(string $url): bool - { - $pattern = "#(http|https)://(.*\.)?.*\..*#i"; - if (preg_match($pattern, $url)) { - return true; - } - - return false; - } - - /** - * 删除协议 - * @param string $url - * @return string - */ - public function deleteProtocol(string $url): string - { - if (empty($this->isUrl($url))) { - return $url; - } - if (strpos($url, 'https://') !== false) { - return str_replace("https://", "//", $url); - } - if (strpos($url, 'http://') !== false) { - return str_replace("http://", "//", $url); - } - return $url; - } - - /** - * 获取URL文件格式 - * @param string $url - * @return mixed|string - */ - public function retrieve(string $url) - { - $path = parse_url($url); - $str = explode('.', $path['path']); - return $str[1]; - } -} + $v) { + if ($k !== "sign" && $v !== "" && !is_array($v)) { + $buff .= $k . "=" . $v . "&"; + } + } + $buff = trim($buff, "&"); + return $buff; + } + + /** + * 判断是否为Url + * @param string $url + * @return bool + */ + public function isUrl(string $url): bool + { + $pattern = "#(http|https)://(.*\.)?.*\..*#i"; + if (preg_match($pattern, $url)) { + return true; + } + + return false; + } + + /** + * 删除协议 + * @param string $url + * @return string + */ + public function deleteProtocol(string $url): string + { + if (empty($this->isUrl($url))) { + return $url; + } + if (strpos($url, 'https://') !== false) { + return str_replace("https://", "//", $url); + } + if (strpos($url, 'http://') !== false) { + return str_replace("http://", "//", $url); + } + return $url; + } + + /** + * 获取URL文件格式 + * @param string $url + * @return mixed|string + */ + public function retrieve(string $url) + { + $path = parse_url($url); + $str = explode('.', $path['path']); + return $str[1]; + } +} diff --git a/src/helper/ValidateHelper.php b/src/helper/ValidateHelper.php index 7486632..66e0c2b 100644 --- a/src/helper/ValidateHelper.php +++ b/src/helper/ValidateHelper.php @@ -1,78 +1,78 @@ - message // 最大值限定 - * age.between:1,120 => message // 范围限定 - * name.require => message // 必填内容 - * name.default => 100 // 获取并设置默认值 - * region.value => value // 固定字段数值内容 - * 更多规则参照 ThinkPHP 官方的验证类 - * - * @param array $rules 验证规则( 验证信息数组 ) - * @param string $input 输入内容 ( post. 或 get. ) - * @param callable|null $callable 异常处理操作 - * @return array - */ - public function init(array $rules, $input = '', ?callable $callable = null): array - { - if (is_string($input)) { - $type = trim($input, '.') ?: 'request'; - $input = $this->app->request->$type(); - } - [$data, $rule, $info] = [[], [], []]; - foreach ($rules as $name => $message) { - if (is_numeric($name)) { - [$name, $alias] = explode('#', $message . '#'); - $data[$name] = $input[($alias ?: $name)] ?? null; - } elseif (strpos($name, '.') === false) { - $data[$name] = $message; - } elseif (preg_match('|^(.*?)\.(.*?)#(.*?)#?$|', $name . '#', $matches)) { - [, $_key, $_rule, $alias] = $matches; - if (in_array($_rule, ['value', 'default'])) { - if ($_rule === 'value') { - $data[$_key] = $message; - } elseif ($_rule === 'default') { - $data[$_key] = $input[($alias ?: $_key)] ?? $message; - } - } else { - $info[explode(':', $name)[0]] = $message; - $data[$_key] = $data[$_key] ?? ($input[($alias ?: $_key)] ?? null); - $rule[$_key] = isset($rule[$_key]) ? ($rule[$_key] . '|' . $_rule) : $_rule; - } - } - } - $validate = new Validate(); - if ($validate->rule($rule)->message($info)->check($data)) { - return $data; - } - - if (is_callable($callable)) { - return $callable($validate->getError()); - } - - $this->class->error($validate->getError()); - } + message // 最大值限定 + * age.between:1,120 => message // 范围限定 + * name.require => message // 必填内容 + * name.default => 100 // 获取并设置默认值 + * region.value => value // 固定字段数值内容 + * 更多规则参照 ThinkPHP 官方的验证类 + * + * @param array $rules 验证规则( 验证信息数组 ) + * @param string $input 输入内容 ( post. 或 get. ) + * @param callable|null $callable 异常处理操作 + * @return array + */ + public function init(array $rules, $input = '', ?callable $callable = null): array + { + if (is_string($input)) { + $type = trim($input, '.') ?: 'request'; + $input = $this->app->request->$type(); + } + [$data, $rule, $info] = [[], [], []]; + foreach ($rules as $name => $message) { + if (is_numeric($name)) { + [$name, $alias] = explode('#', $message . '#'); + $data[$name] = $input[($alias ?: $name)] ?? null; + } elseif (strpos($name, '.') === false) { + $data[$name] = $message; + } elseif (preg_match('|^(.*?)\.(.*?)#(.*?)#?$|', $name . '#', $matches)) { + [, $_key, $_rule, $alias] = $matches; + if (in_array($_rule, ['value', 'default'])) { + if ($_rule === 'value') { + $data[$_key] = $message; + } elseif ($_rule === 'default') { + $data[$_key] = $input[($alias ?: $_key)] ?? $message; + } + } else { + $info[explode(':', $name)[0]] = $message; + $data[$_key] = $data[$_key] ?? ($input[($alias ?: $_key)] ?? null); + $rule[$_key] = isset($rule[$_key]) ? ($rule[$_key] . '|' . $_rule) : $_rule; + } + } + } + $validate = new Validate(); + if ($validate->rule($rule)->message($info)->check($data)) { + return $data; + } + + if (is_callable($callable)) { + return $callable($validate->getError()); + } + + $this->class->error($validate->getError()); + } } \ No newline at end of file diff --git a/src/helper/Xmls.php b/src/helper/Xmls.php index a4de874..87236d1 100644 --- a/src/helper/Xmls.php +++ b/src/helper/Xmls.php @@ -1,69 +1,69 @@ -"; - foreach ($values as $key => $val) { - if (is_array($val)) { - $xml .= "<" . $key . ">" . $this->toXml($val) . ""; - } else if (is_numeric($val)) { - $xml .= "<" . $key . ">" . $val . ""; - } else { - $xml .= "<" . $key . ">"; - } - } - $xml .= ""; - return $xml; - } - - /** - * 将XML转为array - * @param string $xml - * @return mixed - * @throws DtaException - */ - public function toArray(string $xml) - { - if (!$xml) { - throw new DtaException('xml数据异常!'); - } - libxml_disable_entity_loader(true); - return json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true); - } -} +"; + foreach ($values as $key => $val) { + if (is_array($val)) { + $xml .= "<" . $key . ">" . $this->toXml($val) . ""; + } else if (is_numeric($val)) { + $xml .= "<" . $key . ">" . $val . ""; + } else { + $xml .= "<" . $key . ">"; + } + } + $xml .= ""; + return $xml; + } + + /** + * 将XML转为array + * @param string $xml + * @return mixed + * @throws DtaException + */ + public function toArray(string $xml) + { + if (!$xml) { + throw new DtaException('xml数据异常!'); + } + libxml_disable_entity_loader(true); + return json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true); + } +} diff --git a/src/service/BeAryChatService.php b/src/service/BeAryChatService.php index d7b3d6e..19a9718 100644 --- a/src/service/BeAryChatService.php +++ b/src/service/BeAryChatService.php @@ -1,57 +1,57 @@ -sendMsg($webhook, [ - 'text' => $content - ]); - } - - /** - * 组装发送消息 - * @param string $webhook - * @param array $data 消息内容数组 - * @return bool 发送结果 - */ - private function sendMsg(string $webhook, array $data): bool - { - - $result = HttpService::instance() - ->url($webhook) - ->data($data) - ->toArray(); - return $result['code'] !== 0; - } -} +sendMsg($webhook, [ + 'text' => $content + ]); + } + + /** + * 组装发送消息 + * @param string $webhook + * @param array $data 消息内容数组 + * @return bool 发送结果 + */ + private function sendMsg(string $webhook, array $data): bool + { + + $result = HttpService::instance() + ->url($webhook) + ->data($data) + ->toArray(); + return $result['code'] !== 0; + } +} diff --git a/src/service/DingTalkService.php b/src/service/DingTalkService.php index 4e4a24f..c101d23 100644 --- a/src/service/DingTalkService.php +++ b/src/service/DingTalkService.php @@ -1,98 +1,98 @@ -access_token = $str; - return $this; - } - - /** - * 发送文本消息 - * @param string $content 消息内容 - * @return bool 发送结果 - * @throws DtaException - */ - public function text(string $content): bool - { - $this->msg_type = 'text'; - return $this->sendMsg([ - 'text' => [ - 'content' => $content, - ], - ]); - } - - /** - * 组装发送消息 - * @param array $data 消息内容数组 - * @return bool 发送结果 - * @throws DtaException - */ - private function sendMsg(array $data): bool - { - if (empty($this->access_token)) { - throw new DtaException("请检查access_token"); - } - if (empty($data['msgtype'])) { - $data['msgtype'] = $this->msg_type; - } - $result = HttpService::instance() - ->url("{$this->oapi_url}robot/send?access_token=" . $this->access_token) - ->data($data) - ->post() - ->toArray(); - if ($result['errcode'] == 0) { - return $result['errmsg']; - } - throw new HttpException(404, json_encode($result, JSON_UNESCAPED_UNICODE)); - } -} +access_token = $str; + return $this; + } + + /** + * 发送文本消息 + * @param string $content 消息内容 + * @return bool 发送结果 + * @throws DtaException + */ + public function text(string $content): bool + { + $this->msg_type = 'text'; + return $this->sendMsg([ + 'text' => [ + 'content' => $content, + ], + ]); + } + + /** + * 组装发送消息 + * @param array $data 消息内容数组 + * @return bool 发送结果 + * @throws DtaException + */ + private function sendMsg(array $data): bool + { + if (empty($this->access_token)) { + throw new DtaException("请检查access_token"); + } + if (empty($data['msgtype'])) { + $data['msgtype'] = $this->msg_type; + } + $result = HttpService::instance() + ->url("{$this->oapi_url}robot/send?access_token=" . $this->access_token) + ->data($data) + ->post() + ->toArray(); + if ($result['errcode'] == 0) { + return $result['errmsg']; + } + throw new HttpException(404, json_encode($result, JSON_UNESCAPED_UNICODE)); + } +} diff --git a/src/service/ExcelService.php b/src/service/ExcelService.php index 2211d18..f110b00 100644 --- a/src/service/ExcelService.php +++ b/src/service/ExcelService.php @@ -1,180 +1,180 @@ - 1, - * 'value' => '标题' - * ], - * [ - * 'index' => 2, - * 'value' => '名称' - * ] - * ], - * [ - * [ - * 'index' => 1, - * 'value' => '标题2' - * ], - * [ - * 'index' => 2, - * 'value' => '名称2' - * ] - * ] - * ]; - * @param array $head - * @return ExcelService - */ - public function setHead(array $head = []): ExcelService - { - $this->head = $head; - return $this; - } - - /** - * 头部长度 - * @var array - */ - private $head_length = 0; - - /** - * 设置头部长度 - * @param int $length - * @return ExcelService - */ - public function setHeadLength(int $length = 0): ExcelService - { - $this->head_length = $length; - return $this; - } - - /** - * 内容 - * @var array - */ - private $content = []; - - /** - * 设置内容 - * [ - * [ - * [ - * 'index' => 1, - * 'value' => '标题' - * ], - * [ - * 'index' => 2, - * 'value' => '名称' - * ] - * ], - * [ - * [ - * 'index' => 1, - * 'value' => '标题2' - * ], - * [ - * 'index' => 2, - * 'value' => '名称2' - * ] - * ] - * ]; - * @param array $content - * @return ExcelService - */ - public function setContent(array $content = []): ExcelService - { - $this->content = $content; - return $this; - } - - /** - * 文件名 - * @var string - */ - private $file_name = ''; - - /** - * 设置文件名(不需要后缀名) - * @param string $file_name - * @return $this - */ - public function setFileName(string $file_name = ''): self - { - $this->file_name = $file_name; - return $this; - } - - /** - * 生成表格文件 - * @return string - * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception - * @throws Exception - */ - public function generate(): string - { - // 生成表格 - $spreadsheet = new Spreadsheet(); - $sheet = $spreadsheet->getActiveSheet(); - if (empty($this->head)) { - throw new Exception('头部内容未设置!'); - } - if (empty($this->head_length)) { - throw new Exception('头部长度未设置!'); - } - if (empty($this->file_name)) { - throw new Exception('文件保存路径未设置!'); - } - //设置工作表标题名称 - //设置单元格内容 - foreach ($this->head as $key => $value) { - foreach ($value as $k => $v) { - $sheet->setCellValueByColumnAndRow($v['index'], $key + 1, $v['value']); - } - } - foreach ($this->content as $key => $value) { - foreach ($value as $k => $v) { - $sheet->setCellValueByColumnAndRow($v['index'], $key + $this->head_length, $v['value']); - } - } - $writer = new Xlsx($spreadsheet); - $writer->save("{$this->file_name}.xlsx"); - - return "{$this->file_name}.xlsx"; - } + 1, + * 'value' => '标题' + * ], + * [ + * 'index' => 2, + * 'value' => '名称' + * ] + * ], + * [ + * [ + * 'index' => 1, + * 'value' => '标题2' + * ], + * [ + * 'index' => 2, + * 'value' => '名称2' + * ] + * ] + * ]; + * @param array $head + * @return ExcelService + */ + public function setHead(array $head = []): ExcelService + { + $this->head = $head; + return $this; + } + + /** + * 头部长度 + * @var array + */ + private $head_length = 0; + + /** + * 设置头部长度 + * @param int $length + * @return ExcelService + */ + public function setHeadLength(int $length = 0): ExcelService + { + $this->head_length = $length; + return $this; + } + + /** + * 内容 + * @var array + */ + private $content = []; + + /** + * 设置内容 + * [ + * [ + * [ + * 'index' => 1, + * 'value' => '标题' + * ], + * [ + * 'index' => 2, + * 'value' => '名称' + * ] + * ], + * [ + * [ + * 'index' => 1, + * 'value' => '标题2' + * ], + * [ + * 'index' => 2, + * 'value' => '名称2' + * ] + * ] + * ]; + * @param array $content + * @return ExcelService + */ + public function setContent(array $content = []): ExcelService + { + $this->content = $content; + return $this; + } + + /** + * 文件名 + * @var string + */ + private $file_name = ''; + + /** + * 设置文件名(不需要后缀名) + * @param string $file_name + * @return $this + */ + public function setFileName(string $file_name = ''): self + { + $this->file_name = $file_name; + return $this; + } + + /** + * 生成表格文件 + * @return string + * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception + * @throws Exception + */ + public function generate(): string + { + // 生成表格 + $spreadsheet = new Spreadsheet(); + $sheet = $spreadsheet->getActiveSheet(); + if (empty($this->head)) { + throw new Exception('头部内容未设置!'); + } + if (empty($this->head_length)) { + throw new Exception('头部长度未设置!'); + } + if (empty($this->file_name)) { + throw new Exception('文件保存路径未设置!'); + } + //设置工作表标题名称 + //设置单元格内容 + foreach ($this->head as $key => $value) { + foreach ($value as $k => $v) { + $sheet->setCellValueByColumnAndRow($v['index'], $key + 1, $v['value']); + } + } + foreach ($this->content as $key => $value) { + foreach ($value as $k => $v) { + $sheet->setCellValueByColumnAndRow($v['index'], $key + $this->head_length, $v['value']); + } + } + $writer = new Xlsx($spreadsheet); + $writer->save("{$this->file_name}.xlsx"); + + return "{$this->file_name}.xlsx"; + } } \ No newline at end of file diff --git a/src/service/Ip/IpIpDistrictInfo.php b/src/service/Ip/IpIpDistrictInfo.php index 6df6896..32051ba 100644 --- a/src/service/Ip/IpIpDistrictInfo.php +++ b/src/service/Ip/IpIpDistrictInfo.php @@ -1,45 +1,45 @@ - $value) { - $this->{$field} = $value; - } - } - - /** - * @param $name - * @return mixed - */ - public function __get($name) - { - return $this->{$name}; - } -} + $value) { + $this->{$field} = $value; + } + } + + /** + * @param $name + * @return mixed + */ + public function __get($name) + { + return $this->{$name}; + } +} diff --git a/src/service/Ip/IpIpReader.php b/src/service/Ip/IpIpReader.php index cf06f98..f931fef 100644 --- a/src/service/Ip/IpIpReader.php +++ b/src/service/Ip/IpIpReader.php @@ -1,307 +1,307 @@ -database = $database; - - $this->init(); - } - - /** - * @throws Exception - */ - private function init(): void - { - if (is_readable($this->database) === FALSE) { - throw new InvalidArgumentException("The IP Database file \"{$this->database}\" does not exist or is not readable."); - } - $this->file = @fopen($this->database, 'rb'); - if ($this->file === FALSE) { - throw new InvalidArgumentException("IP Database File opening \"{$this->database}\"."); - } - $this->fileSize = @filesize($this->database); - if ($this->fileSize === FALSE) { - throw new \UnexpectedValueException("Error determining the size of \"{$this->database}\"."); - } - - $metaLength = unpack('N', fread($this->file, 4))[1]; - $text = fread($this->file, $metaLength); - - $this->meta = json_decode($text, 1); - - if (isset($this->meta['fields']) === FALSE || isset($this->meta['languages']) === FALSE) { - throw new Exception('IP Database metadata error.'); - } - - $fileSize = 4 + $metaLength + $this->meta['total_size']; - if ($fileSize !== $this->fileSize) { - throw new Exception('IP Database size error.'); - } - - $this->nodeCount = $this->meta['node_count']; - $this->nodeOffset = 4 + $metaLength; - } - - /** - * @param $ip - * @param string $language - * @return array|NULL - */ - public function find($ip, $language): ?array - { - if (is_resource($this->file) === FALSE) { - throw new BadMethodCallException('IPIP DB closed.'); - } - - if (isset($this->meta['languages'][$language]) === FALSE) { - throw new InvalidArgumentException("language : {$language} not support."); - } - - if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_IPV6) === FALSE) { - throw new InvalidArgumentException("The value \"$ip\" is not a valid IP address."); - } - - if (strpos($ip, '.') !== FALSE && !$this->supportV4()) { - throw new InvalidArgumentException("The Database not support IPv4 address."); - } - - if (strpos($ip, ':') !== FALSE && !$this->supportV6()) { - throw new InvalidArgumentException("The Database not support IPv6 address."); - } - - try { - $node = $this->findNode($ip); - - if ($node > 0) { - $data = $this->resolve($node); - - $values = explode("\t", $data); - - return array_slice($values, $this->meta['languages'][$language], count($this->meta['fields'])); - } - } catch (Exception $e) { - return NULL; - } - - return NULL; - } - - /** - * @param $ip - * @param $language - * @return array|false|null - */ - public function findMap($ip, $language) - { - $array = $this->find($ip, $language); - if (NULL === $array) { - return NULL; - } - - return array_combine($this->meta['fields'], $array); - } - - /** - * @var int - */ - private $v4offset = 0; - - /** - * @var array - */ - private $v6offsetCache = []; - - /** - * @param $ip - * @return int - * @throws Exception - */ - private function findNode($ip): int - { - $binary = inet_pton($ip); - $bitCount = strlen($binary) * 8; // 32 | 128 - $key = substr($binary, 0, 2); - $node = 0; - $index = 0; - if ($bitCount === 32) { - if ($this->v4offset === 0) { - for ($i = 0; $i < 96 && $node < $this->nodeCount; $i++) { - if ($i >= 80) { - $idx = 1; - } else { - $idx = 0; - } - $node = $this->readNode($node, $idx); - if ($node > $this->nodeCount) { - return 0; - } - } - $this->v4offset = $node; - } else { - $node = $this->v4offset; - } - } else { - if (isset($this->v6offsetCache[$key])) { - $index = 16; - $node = $this->v6offsetCache[$key]; - } - } - - for ($i = $index; $i < $bitCount; $i++) { - if ($node >= $this->nodeCount) { - break; - } - - $node = $this->readNode($node, 1 & ((0xFF & ord($binary[$i >> 3])) >> 7 - ($i % 8))); - - if ($i == 15) { - $this->v6offsetCache[$key] = $node; - } - } - - if ($node === $this->nodeCount) { - return 0; - } - - if ($node > $this->nodeCount) { - return $node; - } - - throw new Exception("find node failed."); - } - - /** - * @param $node - * @param $index - * @return mixed - * @throws Exception - */ - private function readNode($node, $index) - { - return unpack('N', $this->read($this->file, $node * 8 + $index * 4, 4))[1]; - } - - /** - * @param $node - * @return mixed - * @throws Exception - */ - private function resolve($node) - { - $resolved = $node - $this->nodeCount + $this->nodeCount * 8; - if ($resolved >= $this->fileSize) { - return NULL; - } - - $bytes = $this->read($this->file, $resolved, 2); - $size = unpack('N', str_pad($bytes, 4, "\x00", STR_PAD_LEFT))[1]; - - $resolved += 2; - - return $this->read($this->file, $resolved, $size); - } - - /** - * - */ - public function close(): void - { - if (is_resource($this->file) === TRUE) { - fclose($this->file); - } - } - - /** - * @param $stream - * @param $offset - * @param $length - * @return bool|string - * @throws Exception - */ - private function read($stream, $offset, $length) - { - if ($length > 0) { - if (fseek($stream, $offset + $this->nodeOffset) === 0) { - $value = fread($stream, $length); - if (strlen($value) === $length) { - return $value; - } - } - - throw new Exception("The Database file read bad data."); - } - - return ''; - } - - /** - * @return bool - */ - public function supportV6(): bool - { - return ($this->meta['ip_version'] & self::IPV6) === self::IPV6; - } - - /** - * @return bool - */ - public function supportV4(): bool - { - return ($this->meta['ip_version'] & self::IPV4) === self::IPV4; - } - - /** - * @return array - */ - public function getMeta() - { - return $this->meta; - } - - /** - * @return int UTC Timestamp - */ - public function getBuildTime() - { - return $this->meta['build']; - } -} +database = $database; + + $this->init(); + } + + /** + * @throws Exception + */ + private function init(): void + { + if (is_readable($this->database) === FALSE) { + throw new InvalidArgumentException("The IP Database file \"{$this->database}\" does not exist or is not readable."); + } + $this->file = @fopen($this->database, 'rb'); + if ($this->file === FALSE) { + throw new InvalidArgumentException("IP Database File opening \"{$this->database}\"."); + } + $this->fileSize = @filesize($this->database); + if ($this->fileSize === FALSE) { + throw new \UnexpectedValueException("Error determining the size of \"{$this->database}\"."); + } + + $metaLength = unpack('N', fread($this->file, 4))[1]; + $text = fread($this->file, $metaLength); + + $this->meta = json_decode($text, 1); + + if (isset($this->meta['fields']) === FALSE || isset($this->meta['languages']) === FALSE) { + throw new Exception('IP Database metadata error.'); + } + + $fileSize = 4 + $metaLength + $this->meta['total_size']; + if ($fileSize !== $this->fileSize) { + throw new Exception('IP Database size error.'); + } + + $this->nodeCount = $this->meta['node_count']; + $this->nodeOffset = 4 + $metaLength; + } + + /** + * @param $ip + * @param string $language + * @return array|NULL + */ + public function find($ip, $language): ?array + { + if (is_resource($this->file) === FALSE) { + throw new BadMethodCallException('IPIP DB closed.'); + } + + if (isset($this->meta['languages'][$language]) === FALSE) { + throw new InvalidArgumentException("language : {$language} not support."); + } + + if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_IPV6) === FALSE) { + throw new InvalidArgumentException("The value \"$ip\" is not a valid IP address."); + } + + if (strpos($ip, '.') !== FALSE && !$this->supportV4()) { + throw new InvalidArgumentException("The Database not support IPv4 address."); + } + + if (strpos($ip, ':') !== FALSE && !$this->supportV6()) { + throw new InvalidArgumentException("The Database not support IPv6 address."); + } + + try { + $node = $this->findNode($ip); + + if ($node > 0) { + $data = $this->resolve($node); + + $values = explode("\t", $data); + + return array_slice($values, $this->meta['languages'][$language], count($this->meta['fields'])); + } + } catch (Exception $e) { + return NULL; + } + + return NULL; + } + + /** + * @param $ip + * @param $language + * @return array|false|null + */ + public function findMap($ip, $language) + { + $array = $this->find($ip, $language); + if (NULL === $array) { + return NULL; + } + + return array_combine($this->meta['fields'], $array); + } + + /** + * @var int + */ + private $v4offset = 0; + + /** + * @var array + */ + private $v6offsetCache = []; + + /** + * @param $ip + * @return int + * @throws Exception + */ + private function findNode($ip): int + { + $binary = inet_pton($ip); + $bitCount = strlen($binary) * 8; // 32 | 128 + $key = substr($binary, 0, 2); + $node = 0; + $index = 0; + if ($bitCount === 32) { + if ($this->v4offset === 0) { + for ($i = 0; $i < 96 && $node < $this->nodeCount; $i++) { + if ($i >= 80) { + $idx = 1; + } else { + $idx = 0; + } + $node = $this->readNode($node, $idx); + if ($node > $this->nodeCount) { + return 0; + } + } + $this->v4offset = $node; + } else { + $node = $this->v4offset; + } + } else { + if (isset($this->v6offsetCache[$key])) { + $index = 16; + $node = $this->v6offsetCache[$key]; + } + } + + for ($i = $index; $i < $bitCount; $i++) { + if ($node >= $this->nodeCount) { + break; + } + + $node = $this->readNode($node, 1 & ((0xFF & ord($binary[$i >> 3])) >> 7 - ($i % 8))); + + if ($i == 15) { + $this->v6offsetCache[$key] = $node; + } + } + + if ($node === $this->nodeCount) { + return 0; + } + + if ($node > $this->nodeCount) { + return $node; + } + + throw new Exception("find node failed."); + } + + /** + * @param $node + * @param $index + * @return mixed + * @throws Exception + */ + private function readNode($node, $index) + { + return unpack('N', $this->read($this->file, $node * 8 + $index * 4, 4))[1]; + } + + /** + * @param $node + * @return mixed + * @throws Exception + */ + private function resolve($node) + { + $resolved = $node - $this->nodeCount + $this->nodeCount * 8; + if ($resolved >= $this->fileSize) { + return NULL; + } + + $bytes = $this->read($this->file, $resolved, 2); + $size = unpack('N', str_pad($bytes, 4, "\x00", STR_PAD_LEFT))[1]; + + $resolved += 2; + + return $this->read($this->file, $resolved, $size); + } + + /** + * + */ + public function close(): void + { + if (is_resource($this->file) === TRUE) { + fclose($this->file); + } + } + + /** + * @param $stream + * @param $offset + * @param $length + * @return bool|string + * @throws Exception + */ + private function read($stream, $offset, $length) + { + if ($length > 0) { + if (fseek($stream, $offset + $this->nodeOffset) === 0) { + $value = fread($stream, $length); + if (strlen($value) === $length) { + return $value; + } + } + + throw new Exception("The Database file read bad data."); + } + + return ''; + } + + /** + * @return bool + */ + public function supportV6(): bool + { + return ($this->meta['ip_version'] & self::IPV6) === self::IPV6; + } + + /** + * @return bool + */ + public function supportV4(): bool + { + return ($this->meta['ip_version'] & self::IPV4) === self::IPV4; + } + + /** + * @return array + */ + public function getMeta() + { + return $this->meta; + } + + /** + * @return int UTC Timestamp + */ + public function getBuildTime() + { + return $this->meta['build']; + } +} diff --git a/src/service/Ip/IpIpService.php b/src/service/Ip/IpIpService.php index ce748e1..7a5f43b 100644 --- a/src/service/Ip/IpIpService.php +++ b/src/service/Ip/IpIpService.php @@ -1,88 +1,88 @@ -reader = new IpIpReader(__DIR__ . '../bin/ipipfree.ipdb'); - parent::__construct($app); - } - - /** - * @param $ip - * @param $language - * @return array|NULL - */ - public function getFind(string $ip = '', string $language = 'CN') - { - if (empty($ip)) { - $ip = get_ip(); - } - return $this->reader->find($ip, $language); - } - - /** - * @param $ip - * @param $language - * @return array|false|null - */ - public function getFindMap(string $ip = '', string $language = 'CN') - { - if (empty($ip)) { - $ip = get_ip(); - } - return $this->reader->findMap($ip, $language); - } - - /** - * @param $ip - * @param $language - * @return IpIpDistrictInfo|null - */ - public function getFindInfo(string $ip = '', string $language = 'CN') - { - if (empty($ip)) { - $ip = get_ip(); - } - $map = $this->getFindMap($ip, $language); - if (NULL === $map) { - return NUll; - } - return new IpIpDistrictInfo($map); - } -} +reader = new IpIpReader(__DIR__ . '../bin/ipipfree.ipdb'); + parent::__construct($app); + } + + /** + * @param $ip + * @param $language + * @return array|NULL + */ + public function getFind(string $ip = '', string $language = 'CN') + { + if (empty($ip)) { + $ip = get_ip(); + } + return $this->reader->find($ip, $language); + } + + /** + * @param $ip + * @param $language + * @return array|false|null + */ + public function getFindMap(string $ip = '', string $language = 'CN') + { + if (empty($ip)) { + $ip = get_ip(); + } + return $this->reader->findMap($ip, $language); + } + + /** + * @param $ip + * @param $language + * @return IpIpDistrictInfo|null + */ + public function getFindInfo(string $ip = '', string $language = 'CN') + { + if (empty($ip)) { + $ip = get_ip(); + } + $map = $this->getFindMap($ip, $language); + if (NULL === $map) { + return NUll; + } + return new IpIpDistrictInfo($map); + } +} diff --git a/src/service/Ip/MapService.php b/src/service/Ip/MapService.php index 8d7d4d0..026e8d3 100644 --- a/src/service/Ip/MapService.php +++ b/src/service/Ip/MapService.php @@ -1,152 +1,152 @@ -key = $str; - return $this; - } - - /** - * 配置百度地图ak - * @param $str - * @return $this - */ - public function ak(string $str): self - { - $this->ak = $str; - return $this; - } - - /** - * 查询指定IP - * @param string $str - * @return $this - */ - public function ip(string $str): self - { - $this->ip = $str; - return $this; - } - - /** - * 腾讯地图 - * https://lbs.qq.com/webservice_v1/guide-ip.html - * @param string $output - * @return array|bool|mixed|string - * @throws DtaException - */ - public function qq(string $output = 'JSON') - { - if (empty($this->key)) { - throw new DtaException('开发密钥不能为空'); - } - if (empty($this->ip)) { - $this->ip = get_ip(); - } - $url = "https://apis.map.qq.com/ws/location/v1/ip?key={$this->key}&output={$output}"; - if (!empty($this->ip)) { - $url = "https://apis.map.qq.com/ws/location/v1/ip?key={$this->key}&ip={$this->ip}&output={$output}"; - } - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 百度地图 - * http://lbsyun.baidu.com/index.php?title=webapi/ip-api - * @param string $coor - * @return array|bool|mixed|string - * @throws DtaException - */ - public function baidu(string $coor = 'bd09ll') - { - if (empty($this->ak)) { - throw new DtaException('开发者密钥不能为空'); - } - if (empty($this->ip)) { - $this->ip = get_ip(); - } - $url = "https://api.map.baidu.com/location/ip?ak={$this->ak}&coor={$coor}"; - if (!empty($this->ip)) { - $url = "https://api.map.baidu.com/location/ip?ak={$this->ak}&ip={$this->ip}&coor={$coor}"; - } - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 高德地图 - * https://lbs.amap.com/api/webservice/guide/api/ipconfig - * @param string $output - * @return array|bool|mixed|string - * @throws DtaException - */ - public function amap(string $output = 'JSON') - { - if (empty($this->key)) { - throw new DtaException('开发密钥不能为空'); - } - if (empty($this->ip)) { - $this->ip = get_ip(); - } - $url = "https://restapi.amap.com/v3/ip?parameters&key={$this->key}&output={$output}"; - if (!empty($this->ip)) { - $url = "https://restapi.amap.com/v3/ip?key={$this->key}&ip={$this->ip}&output={$output}"; - } - return HttpService::instance() - ->url($url) - ->toArray(); - } -} +key = $str; + return $this; + } + + /** + * 配置百度地图ak + * @param $str + * @return $this + */ + public function ak(string $str): self + { + $this->ak = $str; + return $this; + } + + /** + * 查询指定IP + * @param string $str + * @return $this + */ + public function ip(string $str): self + { + $this->ip = $str; + return $this; + } + + /** + * 腾讯地图 + * https://lbs.qq.com/webservice_v1/guide-ip.html + * @param string $output + * @return array|bool|mixed|string + * @throws DtaException + */ + public function qq(string $output = 'JSON') + { + if (empty($this->key)) { + throw new DtaException('开发密钥不能为空'); + } + if (empty($this->ip)) { + $this->ip = get_ip(); + } + $url = "https://apis.map.qq.com/ws/location/v1/ip?key={$this->key}&output={$output}"; + if (!empty($this->ip)) { + $url = "https://apis.map.qq.com/ws/location/v1/ip?key={$this->key}&ip={$this->ip}&output={$output}"; + } + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 百度地图 + * http://lbsyun.baidu.com/index.php?title=webapi/ip-api + * @param string $coor + * @return array|bool|mixed|string + * @throws DtaException + */ + public function baidu(string $coor = 'bd09ll') + { + if (empty($this->ak)) { + throw new DtaException('开发者密钥不能为空'); + } + if (empty($this->ip)) { + $this->ip = get_ip(); + } + $url = "https://api.map.baidu.com/location/ip?ak={$this->ak}&coor={$coor}"; + if (!empty($this->ip)) { + $url = "https://api.map.baidu.com/location/ip?ak={$this->ak}&ip={$this->ip}&coor={$coor}"; + } + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 高德地图 + * https://lbs.amap.com/api/webservice/guide/api/ipconfig + * @param string $output + * @return array|bool|mixed|string + * @throws DtaException + */ + public function amap(string $output = 'JSON') + { + if (empty($this->key)) { + throw new DtaException('开发密钥不能为空'); + } + if (empty($this->ip)) { + $this->ip = get_ip(); + } + $url = "https://restapi.amap.com/v3/ip?parameters&key={$this->key}&output={$output}"; + if (!empty($this->ip)) { + $url = "https://restapi.amap.com/v3/ip?key={$this->key}&ip={$this->ip}&output={$output}"; + } + return HttpService::instance() + ->url($url) + ->toArray(); + } +} diff --git a/src/service/Ip/OnlineService.php b/src/service/Ip/OnlineService.php index ca16899..a7cd241 100644 --- a/src/service/Ip/OnlineService.php +++ b/src/service/Ip/OnlineService.php @@ -1,240 +1,240 @@ -ip = $str; - return $this; - } - - /** - * 哔哩哔哩ip查询接口 - * @return array|bool|mixed|string - */ - public function biliBili() - { - $url = "https://api.bilibili.com/x/web-interface/zone"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * batch - * @param string $lang 语言 - * @return array|bool|mixed|string - */ - public function batch(string $lang = 'zh-CN') - { - $url = "http://ip-api.com/json/?lang={$lang}"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * lookup - * @return array|bool|mixed|string - */ - public function lookup() - { - $url = "https://extreme-ip-lookup.com/json/"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 网易IP查询接口 - * @return array|bool|mixed|string - */ - public function netEase() - { - $url = "https://ipservice.3g.163.com/ip"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 百度搜索 - * @return bool|false|mixed|string|string[] - */ - public function baidu() - { - if (empty($this->ip)) { - $this->ip = get_ip(); - } - $url = "https://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv/api.php?query={$this->ip}&co=&resource_id=6006&ie=utf8&oe=utf8&cb=json"; - $res = HttpService::instance() - ->url($url) - ->toArray(false); - $res = str_replace("/**/json", "", $res); - $res = substr($res, 1); - $res = substr($res, 0, -2); - $res = json_decode($res, true); - return $res; - } - - /** - * 太平洋 - * @return bool|false|mixed|string - */ - public function pConLine() - { - $url = "http://whois.pconline.com.cn/ipJson.jsp?json=true"; - if (!empty($this->ip)) { - $url = "http://whois.pconline.com.cn/ipJson.jsp?json=true&ip={$this->ip}"; - } - $res = HttpService::instance() - ->url($url) - ->toArray(false); - preg_match('/{.+}/', $res, $res); - $res = iconv('gbk', 'utf-8', $res[0]); - $res = json_decode($res, true); - return $res; - } - - /** - * 新浪 - * @return bool|false|mixed|string|string[] - */ - public function siNa() - { - if (empty($this->ip)) { - $this->ip = get_ip(); - } - $url = "http://ip.ws.126.net/ipquery?ip={$this->ip}"; - $res = HttpService::instance() - ->url($url) - ->toArray(false); - $res = iconv('gbk', 'utf-8', $res); - $res = substr($res, strpos($res, "{")); - $res = substr($res, 0, -2); - $res = str_replace(array("city", "province"), array('"city"', '"province"'), $res); - $res = json_decode($res, true); - return $res; - } - - /** - * 好搜 - * @return bool|mixed|string - */ - public function so() - { - if (empty($this->ip)) { - $this->ip = get_ip(); - } - $url = "https://open.onebox.so.com/dataApi?type=ip&src=onebox&tpl=0&num=1&query=ip&ip={$this->ip}&url=ip"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 搜狐 - */ - public function soHu() - { - $url = "http://pv.sohu.com/cityjson?ie=utf-8"; - $res = HttpService::instance() - ->url($url) - ->toArray(false); - $res = str_replace("var returnCitySN = ", "", $res); - $res = substr($res, 0, -1); - $res = json_decode($res, true); - return $res; - } - - /** - * 淘宝 - * @param string $ip IP地址 - * @return bool|mixed|string - */ - public function taoBao(string $ip = '') - { - if (empty($this->ip)) { - $this->ip = get_ip(); - } - $url = "http://ip.taobao.com/service/getIpInfo.php?ip={$this->ip}"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 阿里云 - * @param string $appcode - * @return bool|mixed|string - * @throws DtaException - */ - public function aliYun(string $appcode = '') - { - if (empty($this->ip)) { - $this->ip = get_ip(); - } - $host = "http://iploc.market.alicloudapi.com"; - $path = "/v3/ip"; - $method = "GET"; - if (empty($appcode)) { - throw new DtaException('请检查阿里-阿里云配置信息 appcode'); - } - $headers = array(); - $headers[] = "Authorization:APPCODE " . $appcode; - $querys = "ip={$this->ip}"; - $bodys = ""; - $url = $host . $path . "?" . $querys; - - $curl = curl_init(); - curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); - curl_setopt($curl, CURLOPT_URL, $url); - curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); - curl_setopt($curl, CURLOPT_FAILONERROR, false); - curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); - curl_setopt($curl, CURLOPT_HEADER, false); - if (1 == strpos("$" . $host, "https://")) { - curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); - } - $content = curl_exec($curl); - curl_close($curl); - return json_decode($content, true); - } -} +ip = $str; + return $this; + } + + /** + * 哔哩哔哩ip查询接口 + * @return array|bool|mixed|string + */ + public function biliBili() + { + $url = "https://api.bilibili.com/x/web-interface/zone"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * batch + * @param string $lang 语言 + * @return array|bool|mixed|string + */ + public function batch(string $lang = 'zh-CN') + { + $url = "http://ip-api.com/json/?lang={$lang}"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * lookup + * @return array|bool|mixed|string + */ + public function lookup() + { + $url = "https://extreme-ip-lookup.com/json/"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 网易IP查询接口 + * @return array|bool|mixed|string + */ + public function netEase() + { + $url = "https://ipservice.3g.163.com/ip"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 百度搜索 + * @return bool|false|mixed|string|string[] + */ + public function baidu() + { + if (empty($this->ip)) { + $this->ip = get_ip(); + } + $url = "https://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv/api.php?query={$this->ip}&co=&resource_id=6006&ie=utf8&oe=utf8&cb=json"; + $res = HttpService::instance() + ->url($url) + ->toArray(false); + $res = str_replace("/**/json", "", $res); + $res = substr($res, 1); + $res = substr($res, 0, -2); + $res = json_decode($res, true); + return $res; + } + + /** + * 太平洋 + * @return bool|false|mixed|string + */ + public function pConLine() + { + $url = "http://whois.pconline.com.cn/ipJson.jsp?json=true"; + if (!empty($this->ip)) { + $url = "http://whois.pconline.com.cn/ipJson.jsp?json=true&ip={$this->ip}"; + } + $res = HttpService::instance() + ->url($url) + ->toArray(false); + preg_match('/{.+}/', $res, $res); + $res = iconv('gbk', 'utf-8', $res[0]); + $res = json_decode($res, true); + return $res; + } + + /** + * 新浪 + * @return bool|false|mixed|string|string[] + */ + public function siNa() + { + if (empty($this->ip)) { + $this->ip = get_ip(); + } + $url = "http://ip.ws.126.net/ipquery?ip={$this->ip}"; + $res = HttpService::instance() + ->url($url) + ->toArray(false); + $res = iconv('gbk', 'utf-8', $res); + $res = substr($res, strpos($res, "{")); + $res = substr($res, 0, -2); + $res = str_replace(array("city", "province"), array('"city"', '"province"'), $res); + $res = json_decode($res, true); + return $res; + } + + /** + * 好搜 + * @return bool|mixed|string + */ + public function so() + { + if (empty($this->ip)) { + $this->ip = get_ip(); + } + $url = "https://open.onebox.so.com/dataApi?type=ip&src=onebox&tpl=0&num=1&query=ip&ip={$this->ip}&url=ip"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 搜狐 + */ + public function soHu() + { + $url = "http://pv.sohu.com/cityjson?ie=utf-8"; + $res = HttpService::instance() + ->url($url) + ->toArray(false); + $res = str_replace("var returnCitySN = ", "", $res); + $res = substr($res, 0, -1); + $res = json_decode($res, true); + return $res; + } + + /** + * 淘宝 + * @param string $ip IP地址 + * @return bool|mixed|string + */ + public function taoBao(string $ip = '') + { + if (empty($this->ip)) { + $this->ip = get_ip(); + } + $url = "http://ip.taobao.com/service/getIpInfo.php?ip={$this->ip}"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 阿里云 + * @param string $appcode + * @return bool|mixed|string + * @throws DtaException + */ + public function aliYun(string $appcode = '') + { + if (empty($this->ip)) { + $this->ip = get_ip(); + } + $host = "http://iploc.market.alicloudapi.com"; + $path = "/v3/ip"; + $method = "GET"; + if (empty($appcode)) { + throw new DtaException('请检查阿里-阿里云配置信息 appcode'); + } + $headers = array(); + $headers[] = "Authorization:APPCODE " . $appcode; + $querys = "ip={$this->ip}"; + $bodys = ""; + $url = $host . $path . "?" . $querys; + + $curl = curl_init(); + curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method); + curl_setopt($curl, CURLOPT_URL, $url); + curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); + curl_setopt($curl, CURLOPT_FAILONERROR, false); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); + curl_setopt($curl, CURLOPT_HEADER, false); + if (1 == strpos("$" . $host, "https://")) { + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); + } + $content = curl_exec($curl); + curl_close($curl); + return json_decode($content, true); + } +} diff --git a/src/service/KaShAngWl.php b/src/service/KaShAngWl.php index ee9af3d..6d85ad9 100644 --- a/src/service/KaShAngWl.php +++ b/src/service/KaShAngWl.php @@ -1,162 +1,162 @@ -customer_id = $customer_id; - return $this; - } - - /** - * 设置商家密钥 - * @param string $customer_key - * @return $this - */ - public function setCustomerKey(string $customer_key): self - { - $this->customer_key = $customer_key; - return $this; - } - - /** - * 待请求的链接 - * @var string - */ - private $method = ''; - - /** - * 设置接口 - * @param $method - * @return KaShAngWl - */ - public function setMethod($method): self - { - $this->method = "{$this->api_url}/$method"; - return $this; - } - - /** - * 需要发送的的参数 - * @var - */ - private $param; - - /** - * 入参 - * @param $param - * @return KaShAngWl - */ - public function param($param): self - { - $this->param = $param; - return $this; - } - - /** - * 响应内容 - * @var - */ - private $output; - - /** - * 时间戳 - * @var int - */ - private $time; - - public function __construct(App $app) - { - $this->time = time(); - parent::__construct($app); - } - - /** - * @return array|mixed - */ - public function toArray() - { - //首先检测是否支持curl - if (!extension_loaded("curl")) { - throw new HttpException(404, '请开启curl模块!'); - } - $this->http(); - // 正常 - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); - } - $this->output = json_decode($this->output, true); - return $this->output; - } - - /** - * 网络请求 - */ - private function http(): void - { - //生成签名 - $sign = $this->createSign(); - //组织参数 - $this->param['customer_id'] = $this->customer_id; - $this->param['timestamp'] = $this->time; - $this->param['sign'] = $sign; - $result = HttpService::instance() - ->url($this->method) - ->data($this->param) - ->post() - ->toArray(); - $this->output = $result; - } - - /** - * 签名 - * @return string - */ - private function createSign(): string - { - $sign = $this->customer_key; - $this->param['customer_id'] = $this->customer_id; - $this->param['timestamp'] = $this->time; - ksort($this->param); - foreach ($this->param as $key => $val) { - if ($key !== '' && $val !== '') { - $sign .= $key . $val; - } - } - $sign = strtolower(md5($sign)); - return $sign; - } +customer_id = $customer_id; + return $this; + } + + /** + * 设置商家密钥 + * @param string $customer_key + * @return $this + */ + public function setCustomerKey(string $customer_key): self + { + $this->customer_key = $customer_key; + return $this; + } + + /** + * 待请求的链接 + * @var string + */ + private $method = ''; + + /** + * 设置接口 + * @param $method + * @return KaShAngWl + */ + public function setMethod($method): self + { + $this->method = "{$this->api_url}/$method"; + return $this; + } + + /** + * 需要发送的的参数 + * @var + */ + private $param; + + /** + * 入参 + * @param $param + * @return KaShAngWl + */ + public function param($param): self + { + $this->param = $param; + return $this; + } + + /** + * 响应内容 + * @var + */ + private $output; + + /** + * 时间戳 + * @var int + */ + private $time; + + public function __construct(App $app) + { + $this->time = time(); + parent::__construct($app); + } + + /** + * @return array|mixed + */ + public function toArray() + { + //首先检测是否支持curl + if (!extension_loaded("curl")) { + throw new HttpException(404, '请开启curl模块!'); + } + $this->http(); + // 正常 + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); + } + $this->output = json_decode($this->output, true); + return $this->output; + } + + /** + * 网络请求 + */ + private function http(): void + { + //生成签名 + $sign = $this->createSign(); + //组织参数 + $this->param['customer_id'] = $this->customer_id; + $this->param['timestamp'] = $this->time; + $this->param['sign'] = $sign; + $result = HttpService::instance() + ->url($this->method) + ->data($this->param) + ->post() + ->toArray(); + $this->output = $result; + } + + /** + * 签名 + * @return string + */ + private function createSign(): string + { + $sign = $this->customer_key; + $this->param['customer_id'] = $this->customer_id; + $this->param['timestamp'] = $this->time; + ksort($this->param); + foreach ($this->param as $key => $val) { + if ($key !== '' && $val !== '') { + $sign .= $key . $val; + } + } + $sign = strtolower(md5($sign)); + return $sign; + } } \ No newline at end of file diff --git a/src/service/QqWryService.php b/src/service/QqWryService.php index ca5e37a..daa4c95 100644 --- a/src/service/QqWryService.php +++ b/src/service/QqWryService.php @@ -1,452 +1,452 @@ -fp = 0; - if (($this->fp = fopen(__DIR__ . '/bin/qqwry.dat', 'rb')) !== false) { - $this->firstIp = $this->getLong(); - $this->lastIp = $this->getLong(); - $this->totalIp = ($this->lastIp - $this->firstIp) / 7; - } - parent::__construct($app); - } - - /** - * 设置未知的返回字段 - * @param string $unknown - * @return QqWryService - */ - public function setUnknown(string $unknown = '未知') - { - $this->unknown = $unknown; - return $this; - } - - /** - * 获取省信息 - * @param string $ip - * @return mixed - * @throws DtaException - */ - public function getProvince(string $ip = '') - { - return $this->getLocation($ip)['state']; - } - - /** - * 获取城市信息 - * @param string $ip - * @return mixed - * @throws DtaException - */ - public function getCity(string $ip = '') - { - return $this->getLocation($ip)['city']; - } - - /** - * 获取地区信息 - * @param string $ip - * @return mixed - * @throws DtaException - */ - public function getArea(string $ip = '') - { - return $this->getLocation($ip)['area']; - } - - /** - * 获取运营商信息 - * @param string $ip - * @return mixed - * @throws DtaException - */ - public function getExtend(string $ip = '') - { - return $this->getLocation($ip)['extend']; - } - - /** - * 根据所给 IP 地址或域名返回所在地区信息 - * @param string $ip - * @return mixed|null - * @throws DtaException - */ - public function getLocation(string $ip = '') - { - if (empty($ip)) { - $ip = get_ip(); - } - if (strpos($ip, 'http://') === 0) { - $ip = substr($ip, 7); - $ip = gethostbyname($ip); - } - static $locationData = []; - if (!isset($locationData[$ip])) { - if (!$this->fp) { - // 如果数据文件没有被正确打开,则直接返回错误 - throw new DtaException('数据库文件不存在!'); - } - $location['ip'] = $ip; // 将输入的域名转化为IP地址 - $ip = $this->packIp($location['ip']); // 将输入的IP地址转化为可比较的IP地址 - // 不合法的IP地址会被转化为255.255.255.255 - // 对分搜索 - $l = 0; // 搜索的下边界 - $u = $this->totalIp; // 搜索的上边界 - $findip = $this->lastIp; // 如果没有找到就返回最后一条IP记录(QQWry.Dat的版本信息) - while ($l <= $u) { // 当上边界小于下边界时,查找失败 - $i = floor(($l + $u) / 2); // 计算近似中间记录 - fseek($this->fp, $this->firstIp + $i * 7); - $beginip = strrev(fread($this->fp, 4)); // 获取中间记录的开始IP地址 - // strrev函数在这里的作用是将little-endian的压缩IP地址转化为big-endian的格式 - // 以便用于比较,后面相同。 - if ($ip < $beginip) { // 用户的IP小于中间记录的开始IP地址时 - $u = $i - 1; // 将搜索的上边界修改为中间记录减一 - } else { - fseek($this->fp, $this->getLong3()); - $endip = strrev(fread($this->fp, 4)); // 获取中间记录的结束IP地址 - if ($ip > $endip) { // 用户的IP大于中间记录的结束IP地址时 - $l = $i + 1; // 将搜索的下边界修改为中间记录加一 - } else { // 用户的IP在中间记录的IP范围内时 - $findip = $this->firstIp + $i * 7; - break; // 则表示找到结果,退出循环 - } - } - } - //获取查找到的IP地理位置信息 - fseek($this->fp, $findip); - $location['beginip'] = long2ip($this->getLong()); // 用户IP所在范围的开始地址 - $offset = $this->getLong3(); - fseek($this->fp, $offset); - $location['endip'] = long2ip($this->getLong()); // 用户IP所在范围的结束地址 - $byte = fread($this->fp, 1); // 标志字节 - switch (ord($byte)) { - case 1: // 标志字节为1,表示国家和区域信息都被同时重定向 - $countryOffset = $this->getLong3(); // 重定向地址 - fseek($this->fp, $countryOffset); - $byte = fread($this->fp, 1); // 标志字节 - switch (ord($byte)) { - case 2: // 标志字节为2,表示国家信息又被重定向 - fseek($this->fp, $this->getLong3()); - $location['all'] = $this->getString(); - fseek($this->fp, $countryOffset + 4); - $location['extend'] = $this->getExtendString(); - break; - default: // 否则,表示国家信息没有被重定向 - $location['all'] = $this->getString($byte); - $location['extend'] = $this->getExtendString(); - break; - } - break; - case 2: // 标志字节为2,表示国家信息被重定向 - fseek($this->fp, $this->getLong3()); - $location['all'] = $this->getString(); - fseek($this->fp, $offset + 8); - $location['extend'] = $this->getExtendString(); - break; - default: // 否则,表示国家信息没有被重定向 - $location['all'] = $this->getString($byte); - $location['extend'] = $this->getExtendString(); - break; - } - // CZ88.NET表示没有有效信息 - if (trim($location['all']) === 'CZ88.NET') { - $location['all'] = $this->unknown; - } - if (trim($location['extend']) === 'CZ88.NET') { - $location['extend'] = ''; - } - $location['all'] = iconv("gb2312", "UTF-8//IGNORE", $location['all']); - $location['extend'] = iconv("gb2312", "UTF-8//IGNORE", $location['extend']); - $location['extend'] = $location['extend'] ?? ''; - $parseData = $this->parseLocation($location['all']); - $location['state'] = $parseData[0]; - $location['city'] = $parseData[1]; - $location['area'] = $parseData[2]; - - // 全部地址 - $res['location_all'] = $location['all']; - // 运营商 - $res['isp']['name'] = $location['extend']; - // IP - $res['ip']['ipv4'] = $location['ip']; - $res['ip']['beginip'] = $location['beginip']; - $res['ip']['endip'] = $location['endip']; - $res['ip']['trueip'] = ip2long($location['ip']); - $res['ip']['ipv6'] = $this->getNormalizedIP($location['ip']); - $getAdCodeLatLng = $this->getNameAdCodeLatLng($location['state'], $location['city'], $location['area']); - // 省份 - $res['province'] = $getAdCodeLatLng['province']; - // 城市 - $res['city'] = $getAdCodeLatLng['city']; - // 地区 - $res['district'] = $getAdCodeLatLng['district']; - $locationData[$ip] = $location; - } - return $res; - } - - /** - * 解析省市区县 - * @param $location - * @return array - * @example '江苏省苏州市吴江市' , '江苏省苏州市吴中区' , '江苏省苏州市昆山市' , '黑龙江省鸡西市' , '广西桂林市' , '陕西省西安市户县' , '河南省开封市通许县' ,'内蒙古呼伦贝尔市海拉尔区','甘肃省白银市平川区','孟加拉','上海市' , '北京市朝阳区' ,'美国' ,'香港' , 俄罗斯' ,'IANA' - */ - private function parseLocation($location) - { - $state = $city = $area = $this->unknown; - if (preg_match('/^(.+省)?(新疆|内蒙古|宁夏|西藏|广西|香港|澳门)?(.+市)?(.+市)?(.+(县|区))?/', $location, $preg)) { - if (count($preg) == 4) { //匹配 "浙江省杭州市" - $state = $preg[1] ? $preg[1] : ($preg[2] ? $preg[2] : $preg[3]); - $city = $preg[3]; - } else if (count($preg) == 7) { //匹配 "浙江省杭州市江干区" - $state = $preg[1] ? $preg[1] : ($preg[2] ? $preg[2] : $preg[3]); - $city = $preg[3]; - $area = $preg[5]; - } else if (count($preg) == 3) { //匹配 "香港" - $state = $preg[1] ? $preg[1] : $preg[2]; - $city = $state; - } else if (count($preg) == 2) { //匹配 "浙江省" - $state = $preg[1] ? $preg[1] : $this->unknown; - } - } - return [$state, $city, $area]; - } - - /** - * 返回读取的长整型数 - * @return mixed - */ - private function getLong() - { - //将读取的little-endian编码的4个字节转化为长整型数 - $result = unpack('Vlong', fread($this->fp, 4)); - return $result['long']; - } - - /** - * 返回读取的3个字节的长整型数 - * @return mixed - */ - private function getLong3() - { - //将读取的little-endian编码的3个字节转化为长整型数 - $result = unpack('Vlong', fread($this->fp, 3) . chr(0)); - return $result['long']; - } - - /** - * 返回压缩后可进行比较的IP地址 - * @param $ip - * @return false|string - */ - private function packIp($ip) - { - // 将IP地址转化为长整型数,如果在PHP5中,IP地址错误,则返回False, - // 这时intval将Flase转化为整数-1,之后压缩成big-endian编码的字符串 - return pack('N', intval(ip2long($ip))); - } - - /** - * 返回读取的字符串 - * - * @access private - * @param string $data - * @return string - */ - private function getString($data = "") - { - $char = fread($this->fp, 1); - while (ord($char) > 0) { // 字符串按照C格式保存,以\0结束 - $data .= $char; // 将读取的字符连接到给定字符串之后 - $char = fread($this->fp, 1); - } - return $data; - } - - /** - * 返回地区信息 - * @return string - */ - private function getExtendString() - { - $byte = fread($this->fp, 1); // 标志字节 - switch (ord($byte)) { - case 0: // 没有区域信息 - $area = ""; - break; - case 1: - case 2: // 标志字节为1或2,表示区域信息被重定向 - fseek($this->fp, $this->getLong3()); - $area = $this->getString(); - break; - default: // 否则,表示区域信息没有被重定向 - $area = $this->getString($byte); - break; - } - return $area; - } - - /** - * 析构函数,用于在页面执行结束后自动关闭打开的文件。 - */ - public function __destruct() - { - if ($this->fp) { - fclose($this->fp); - } - $this->fp = 0; - } - - /** - * ipv4转换ipv6 - * @param $ip - * @return bool|false|string|string[]|null - */ - protected function getNormalizedIP($ip) - { - if (!is_string($ip)) { - return ''; - } - if (preg_match('%^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$%', $ip, $match)) { - $IPParts = array(); - for ($i = 1; $i <= 4; $i++) { - $IPPart = (int)$match[$i]; - if ($IPPart > 255) { - return ''; - } - $IPParts[$i] = str_pad(decHex($IPPart), 2, '0', STR_PAD_LEFT); - } - return '0000:0000:0000:0000:0000:ffff:' . $IPParts[1] . $IPParts[2] . ':' . $IPParts[3] . $IPParts[4]; - } - return ''; - } - - /** - * 解析CODE - * @param $province_name - * @param $city_name - * @param $district_name - * @return array - */ - private function getNameAdCodeLatLng($province_name, $city_name, $district_name) - { - // 名称 - $province['name'] = $province_name; - $city['name'] = $city_name; - $district['name'] = $district_name; - // adcode - $province['adcode'] = ''; - $city['adcode'] = ''; - $district['adcode'] = ''; - // lat - $province['lat'] = ''; - $city['lat'] = ''; - $district['lat'] = ''; - // lng - $province['lng'] = ''; - $city['lng'] = ''; - $district['lng'] = ''; - - if (!empty($province_name)) { - $json_province = json_decode(file_get_contents(__DIR__ . '/bin/province.json'), true); - foreach ($json_province['rows'] as $key => $value) { - if ($value['name'] == $province_name) { - $province['name'] = $value['name']; - $province['adcode'] = $value['adcode']; - $province['lat'] = $value['lat']; - $province['lng'] = $value['lng']; - } - } - } - if (!empty($city_name)) { - $json_city = json_decode(file_get_contents(__DIR__ . '/bin/city.json'), true); - foreach ($json_city['rows'] as $key => $value) { - if ($value['name'] == $city_name) { - $city['name'] = $value['name']; - $city['adcode'] = $value['adcode']; - $city['lat'] = $value['lat']; - $city['lng'] = $value['lng']; - } - } - } - if (!empty($district_name)) { - $json_district = json_decode(file_get_contents(__DIR__ . '/bin/district.json'), true); - foreach ($json_district['rows'] as $key => $value) { - if ($value['name'] == $district_name) { - $district['name'] = $value['name']; - $district['adcode'] = $value['adcode']; - $district['lat'] = $value['lat']; - $district['lng'] = $value['lng']; - } - } - } - return [ - 'province' => $province, - 'city' => $city, - 'district' => $district - ]; - } -} +fp = 0; + if (($this->fp = fopen(__DIR__ . '/bin/qqwry.dat', 'rb')) !== false) { + $this->firstIp = $this->getLong(); + $this->lastIp = $this->getLong(); + $this->totalIp = ($this->lastIp - $this->firstIp) / 7; + } + parent::__construct($app); + } + + /** + * 设置未知的返回字段 + * @param string $unknown + * @return QqWryService + */ + public function setUnknown(string $unknown = '未知') + { + $this->unknown = $unknown; + return $this; + } + + /** + * 获取省信息 + * @param string $ip + * @return mixed + * @throws DtaException + */ + public function getProvince(string $ip = '') + { + return $this->getLocation($ip)['state']; + } + + /** + * 获取城市信息 + * @param string $ip + * @return mixed + * @throws DtaException + */ + public function getCity(string $ip = '') + { + return $this->getLocation($ip)['city']; + } + + /** + * 获取地区信息 + * @param string $ip + * @return mixed + * @throws DtaException + */ + public function getArea(string $ip = '') + { + return $this->getLocation($ip)['area']; + } + + /** + * 获取运营商信息 + * @param string $ip + * @return mixed + * @throws DtaException + */ + public function getExtend(string $ip = '') + { + return $this->getLocation($ip)['extend']; + } + + /** + * 根据所给 IP 地址或域名返回所在地区信息 + * @param string $ip + * @return mixed|null + * @throws DtaException + */ + public function getLocation(string $ip = '') + { + if (empty($ip)) { + $ip = get_ip(); + } + if (strpos($ip, 'http://') === 0) { + $ip = substr($ip, 7); + $ip = gethostbyname($ip); + } + static $locationData = []; + if (!isset($locationData[$ip])) { + if (!$this->fp) { + // 如果数据文件没有被正确打开,则直接返回错误 + throw new DtaException('数据库文件不存在!'); + } + $location['ip'] = $ip; // 将输入的域名转化为IP地址 + $ip = $this->packIp($location['ip']); // 将输入的IP地址转化为可比较的IP地址 + // 不合法的IP地址会被转化为255.255.255.255 + // 对分搜索 + $l = 0; // 搜索的下边界 + $u = $this->totalIp; // 搜索的上边界 + $findip = $this->lastIp; // 如果没有找到就返回最后一条IP记录(QQWry.Dat的版本信息) + while ($l <= $u) { // 当上边界小于下边界时,查找失败 + $i = floor(($l + $u) / 2); // 计算近似中间记录 + fseek($this->fp, $this->firstIp + $i * 7); + $beginip = strrev(fread($this->fp, 4)); // 获取中间记录的开始IP地址 + // strrev函数在这里的作用是将little-endian的压缩IP地址转化为big-endian的格式 + // 以便用于比较,后面相同。 + if ($ip < $beginip) { // 用户的IP小于中间记录的开始IP地址时 + $u = $i - 1; // 将搜索的上边界修改为中间记录减一 + } else { + fseek($this->fp, $this->getLong3()); + $endip = strrev(fread($this->fp, 4)); // 获取中间记录的结束IP地址 + if ($ip > $endip) { // 用户的IP大于中间记录的结束IP地址时 + $l = $i + 1; // 将搜索的下边界修改为中间记录加一 + } else { // 用户的IP在中间记录的IP范围内时 + $findip = $this->firstIp + $i * 7; + break; // 则表示找到结果,退出循环 + } + } + } + //获取查找到的IP地理位置信息 + fseek($this->fp, $findip); + $location['beginip'] = long2ip($this->getLong()); // 用户IP所在范围的开始地址 + $offset = $this->getLong3(); + fseek($this->fp, $offset); + $location['endip'] = long2ip($this->getLong()); // 用户IP所在范围的结束地址 + $byte = fread($this->fp, 1); // 标志字节 + switch (ord($byte)) { + case 1: // 标志字节为1,表示国家和区域信息都被同时重定向 + $countryOffset = $this->getLong3(); // 重定向地址 + fseek($this->fp, $countryOffset); + $byte = fread($this->fp, 1); // 标志字节 + switch (ord($byte)) { + case 2: // 标志字节为2,表示国家信息又被重定向 + fseek($this->fp, $this->getLong3()); + $location['all'] = $this->getString(); + fseek($this->fp, $countryOffset + 4); + $location['extend'] = $this->getExtendString(); + break; + default: // 否则,表示国家信息没有被重定向 + $location['all'] = $this->getString($byte); + $location['extend'] = $this->getExtendString(); + break; + } + break; + case 2: // 标志字节为2,表示国家信息被重定向 + fseek($this->fp, $this->getLong3()); + $location['all'] = $this->getString(); + fseek($this->fp, $offset + 8); + $location['extend'] = $this->getExtendString(); + break; + default: // 否则,表示国家信息没有被重定向 + $location['all'] = $this->getString($byte); + $location['extend'] = $this->getExtendString(); + break; + } + // CZ88.NET表示没有有效信息 + if (trim($location['all']) === 'CZ88.NET') { + $location['all'] = $this->unknown; + } + if (trim($location['extend']) === 'CZ88.NET') { + $location['extend'] = ''; + } + $location['all'] = iconv("gb2312", "UTF-8//IGNORE", $location['all']); + $location['extend'] = iconv("gb2312", "UTF-8//IGNORE", $location['extend']); + $location['extend'] = $location['extend'] ?? ''; + $parseData = $this->parseLocation($location['all']); + $location['state'] = $parseData[0]; + $location['city'] = $parseData[1]; + $location['area'] = $parseData[2]; + + // 全部地址 + $res['location_all'] = $location['all']; + // 运营商 + $res['isp']['name'] = $location['extend']; + // IP + $res['ip']['ipv4'] = $location['ip']; + $res['ip']['beginip'] = $location['beginip']; + $res['ip']['endip'] = $location['endip']; + $res['ip']['trueip'] = ip2long($location['ip']); + $res['ip']['ipv6'] = $this->getNormalizedIP($location['ip']); + $getAdCodeLatLng = $this->getNameAdCodeLatLng($location['state'], $location['city'], $location['area']); + // 省份 + $res['province'] = $getAdCodeLatLng['province']; + // 城市 + $res['city'] = $getAdCodeLatLng['city']; + // 地区 + $res['district'] = $getAdCodeLatLng['district']; + $locationData[$ip] = $location; + } + return $res; + } + + /** + * 解析省市区县 + * @param $location + * @return array + * @example '江苏省苏州市吴江市' , '江苏省苏州市吴中区' , '江苏省苏州市昆山市' , '黑龙江省鸡西市' , '广西桂林市' , '陕西省西安市户县' , '河南省开封市通许县' ,'内蒙古呼伦贝尔市海拉尔区','甘肃省白银市平川区','孟加拉','上海市' , '北京市朝阳区' ,'美国' ,'香港' , 俄罗斯' ,'IANA' + */ + private function parseLocation($location) + { + $state = $city = $area = $this->unknown; + if (preg_match('/^(.+省)?(新疆|内蒙古|宁夏|西藏|广西|香港|澳门)?(.+市)?(.+市)?(.+(县|区))?/', $location, $preg)) { + if (count($preg) == 4) { //匹配 "浙江省杭州市" + $state = $preg[1] ? $preg[1] : ($preg[2] ? $preg[2] : $preg[3]); + $city = $preg[3]; + } else if (count($preg) == 7) { //匹配 "浙江省杭州市江干区" + $state = $preg[1] ? $preg[1] : ($preg[2] ? $preg[2] : $preg[3]); + $city = $preg[3]; + $area = $preg[5]; + } else if (count($preg) == 3) { //匹配 "香港" + $state = $preg[1] ? $preg[1] : $preg[2]; + $city = $state; + } else if (count($preg) == 2) { //匹配 "浙江省" + $state = $preg[1] ? $preg[1] : $this->unknown; + } + } + return [$state, $city, $area]; + } + + /** + * 返回读取的长整型数 + * @return mixed + */ + private function getLong() + { + //将读取的little-endian编码的4个字节转化为长整型数 + $result = unpack('Vlong', fread($this->fp, 4)); + return $result['long']; + } + + /** + * 返回读取的3个字节的长整型数 + * @return mixed + */ + private function getLong3() + { + //将读取的little-endian编码的3个字节转化为长整型数 + $result = unpack('Vlong', fread($this->fp, 3) . chr(0)); + return $result['long']; + } + + /** + * 返回压缩后可进行比较的IP地址 + * @param $ip + * @return false|string + */ + private function packIp($ip) + { + // 将IP地址转化为长整型数,如果在PHP5中,IP地址错误,则返回False, + // 这时intval将Flase转化为整数-1,之后压缩成big-endian编码的字符串 + return pack('N', intval(ip2long($ip))); + } + + /** + * 返回读取的字符串 + * + * @access private + * @param string $data + * @return string + */ + private function getString($data = "") + { + $char = fread($this->fp, 1); + while (ord($char) > 0) { // 字符串按照C格式保存,以\0结束 + $data .= $char; // 将读取的字符连接到给定字符串之后 + $char = fread($this->fp, 1); + } + return $data; + } + + /** + * 返回地区信息 + * @return string + */ + private function getExtendString() + { + $byte = fread($this->fp, 1); // 标志字节 + switch (ord($byte)) { + case 0: // 没有区域信息 + $area = ""; + break; + case 1: + case 2: // 标志字节为1或2,表示区域信息被重定向 + fseek($this->fp, $this->getLong3()); + $area = $this->getString(); + break; + default: // 否则,表示区域信息没有被重定向 + $area = $this->getString($byte); + break; + } + return $area; + } + + /** + * 析构函数,用于在页面执行结束后自动关闭打开的文件。 + */ + public function __destruct() + { + if ($this->fp) { + fclose($this->fp); + } + $this->fp = 0; + } + + /** + * ipv4转换ipv6 + * @param $ip + * @return bool|false|string|string[]|null + */ + protected function getNormalizedIP($ip) + { + if (!is_string($ip)) { + return ''; + } + if (preg_match('%^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$%', $ip, $match)) { + $IPParts = array(); + for ($i = 1; $i <= 4; $i++) { + $IPPart = (int)$match[$i]; + if ($IPPart > 255) { + return ''; + } + $IPParts[$i] = str_pad(decHex($IPPart), 2, '0', STR_PAD_LEFT); + } + return '0000:0000:0000:0000:0000:ffff:' . $IPParts[1] . $IPParts[2] . ':' . $IPParts[3] . $IPParts[4]; + } + return ''; + } + + /** + * 解析CODE + * @param $province_name + * @param $city_name + * @param $district_name + * @return array + */ + private function getNameAdCodeLatLng($province_name, $city_name, $district_name) + { + // 名称 + $province['name'] = $province_name; + $city['name'] = $city_name; + $district['name'] = $district_name; + // adcode + $province['adcode'] = ''; + $city['adcode'] = ''; + $district['adcode'] = ''; + // lat + $province['lat'] = ''; + $city['lat'] = ''; + $district['lat'] = ''; + // lng + $province['lng'] = ''; + $city['lng'] = ''; + $district['lng'] = ''; + + if (!empty($province_name)) { + $json_province = json_decode(file_get_contents(__DIR__ . '/bin/province.json'), true); + foreach ($json_province['rows'] as $key => $value) { + if ($value['name'] == $province_name) { + $province['name'] = $value['name']; + $province['adcode'] = $value['adcode']; + $province['lat'] = $value['lat']; + $province['lng'] = $value['lng']; + } + } + } + if (!empty($city_name)) { + $json_city = json_decode(file_get_contents(__DIR__ . '/bin/city.json'), true); + foreach ($json_city['rows'] as $key => $value) { + if ($value['name'] == $city_name) { + $city['name'] = $value['name']; + $city['adcode'] = $value['adcode']; + $city['lat'] = $value['lat']; + $city['lng'] = $value['lng']; + } + } + } + if (!empty($district_name)) { + $json_district = json_decode(file_get_contents(__DIR__ . '/bin/district.json'), true); + foreach ($json_district['rows'] as $key => $value) { + if ($value['name'] == $district_name) { + $district['name'] = $value['name']; + $district['adcode'] = $value['adcode']; + $district['lat'] = $value['lat']; + $district['lng'] = $value['lng']; + } + } + } + return [ + 'province' => $province, + 'city' => $city, + 'district' => $district + ]; + } +} diff --git a/src/service/RouteService.php b/src/service/RouteService.php index d17a6dd..624861c 100644 --- a/src/service/RouteService.php +++ b/src/service/RouteService.php @@ -1,52 +1,52 @@ -scheme() . "://" . request()->host(); - } - $param = http_build_query(request()->param()); - if ($status === 301) { - header('HTTP/1.1 301 Moved Permanently'); - } - if (empty($parameter)) { - header("Location: {$url}"); - } elseif (empty($parameter) === false && empty($param) === true) { - header("Location: {$url}"); - } else { - header("Location: {$url}?{$param}"); - } - exit; - } -} +scheme() . "://" . request()->host(); + } + $param = http_build_query(request()->param()); + if ($status === 301) { + header('HTTP/1.1 301 Moved Permanently'); + } + if (empty($parameter)) { + header("Location: {$url}"); + } elseif (empty($parameter) === false && empty($param) === true) { + header("Location: {$url}"); + } else { + header("Location: {$url}?{$param}"); + } + exit; + } +} diff --git a/src/service/StorageService.php b/src/service/StorageService.php index f000c5f..f6c53a2 100644 --- a/src/service/StorageService.php +++ b/src/service/StorageService.php @@ -1,159 +1,159 @@ -path = $path; - return $this; - } - - /** - * 需要保存的远程文件 - * @param string $remotely - * @return $this - */ - public function remotely(string $remotely): self - { - $this->remotely = $remotely; - return $this; - } - - /** - * 获取配置信息 - * @return $this - */ - private function getConfig(): self - { - $this->path = config('dtapp.storage.path'); - return $this; - } - - /** - * 保存文件 - * @param string $name 保存的文件名 - * @return array - */ - public function save(string $name): array - { - if (empty($this->path)) { - $this->getConfig(); - } - // 判断文件夹是否存在 - is_dir($this->path) || mkdir($concurrentDirectory = $this->path, 0777, true) || is_dir($concurrentDirectory); - $return_content = $this->http_get_data($this->remotely); - $fp = @fopen("{$this->path}{$name}", "a"); //将文件绑定到流 - fwrite($fp, $return_content); //写入文件 - return [ - 'file_name' => $name, - 'path' => $this->path, - 'remotely' => $this->remotely, - 'save_path' => "{$this->path}{$name}", - 'size' => $this->bytes($name) - ]; - } - - /** - * 下载 - * @param $url - * @return false|string - */ - private function http_get_data($url) - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET'); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_URL, $url); - ob_start(); - curl_exec($ch); - $return_content = ob_get_clean(); - $return_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); - return $return_content; - } - - /** - * 删除文件 - * @param string $name - * @return bool - */ - public function delete(string $name) - { - if (empty($this->path)) { - $this->getConfig(); - } - if (file_exists($name)) { - if (unlink($name)) { - return true; - } - } - return false; - } - - /** - * 统计文件大小 - * @param string $name - * @return string - */ - public function bytes(string $name) - { - if (empty($this->path)) { - $this->getConfig(); - } - $bytes = filesize($this->path . $name); - if ($bytes >= 1073741824) { - $bytes = round($bytes / 1073741824 * 100) / 100 . 'GB'; - } elseif ($bytes >= 1048576) { - $bytes = round($bytes / 1048576 * 100) / 100 . 'MB'; - } elseif ($bytes >= 1024) { - $bytes = round($bytes / 1024 * 100) / 100 . 'KB'; - } else { - $bytes .= 'Bytes'; - } - return $bytes; - } - - /** - * 获取文件路径 - * @return string - */ - public function getPath(): string - { - if (empty($this->path)) { - $this->getConfig(); - } - return $this->path; - } -} +path = $path; + return $this; + } + + /** + * 需要保存的远程文件 + * @param string $remotely + * @return $this + */ + public function remotely(string $remotely): self + { + $this->remotely = $remotely; + return $this; + } + + /** + * 获取配置信息 + * @return $this + */ + private function getConfig(): self + { + $this->path = config('dtapp.storage.path'); + return $this; + } + + /** + * 保存文件 + * @param string $name 保存的文件名 + * @return array + */ + public function save(string $name): array + { + if (empty($this->path)) { + $this->getConfig(); + } + // 判断文件夹是否存在 + is_dir($this->path) || mkdir($concurrentDirectory = $this->path, 0777, true) || is_dir($concurrentDirectory); + $return_content = $this->http_get_data($this->remotely); + $fp = @fopen("{$this->path}{$name}", "a"); //将文件绑定到流 + fwrite($fp, $return_content); //写入文件 + return [ + 'file_name' => $name, + 'path' => $this->path, + 'remotely' => $this->remotely, + 'save_path' => "{$this->path}{$name}", + 'size' => $this->bytes($name) + ]; + } + + /** + * 下载 + * @param $url + * @return false|string + */ + private function http_get_data($url) + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET'); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_URL, $url); + ob_start(); + curl_exec($ch); + $return_content = ob_get_clean(); + $return_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); + return $return_content; + } + + /** + * 删除文件 + * @param string $name + * @return bool + */ + public function delete(string $name) + { + if (empty($this->path)) { + $this->getConfig(); + } + if (file_exists($name)) { + if (unlink($name)) { + return true; + } + } + return false; + } + + /** + * 统计文件大小 + * @param string $name + * @return string + */ + public function bytes(string $name) + { + if (empty($this->path)) { + $this->getConfig(); + } + $bytes = filesize($this->path . $name); + if ($bytes >= 1073741824) { + $bytes = round($bytes / 1073741824 * 100) / 100 . 'GB'; + } elseif ($bytes >= 1048576) { + $bytes = round($bytes / 1048576 * 100) / 100 . 'MB'; + } elseif ($bytes >= 1024) { + $bytes = round($bytes / 1024 * 100) / 100 . 'KB'; + } else { + $bytes .= 'Bytes'; + } + return $bytes; + } + + /** + * 获取文件路径 + * @return string + */ + public function getPath(): string + { + if (empty($this->path)) { + $this->getConfig(); + } + return $this->path; + } +} diff --git a/src/service/SystemService.php b/src/service/SystemService.php index 244544f..92ddbf9 100644 --- a/src/service/SystemService.php +++ b/src/service/SystemService.php @@ -1,165 +1,165 @@ -app->route->buildUrl($url, $vars)->suffix($suffix)->domain($domain)->build(); - } else { - $location = $this->app->route->buildUrl($url, [])->suffix($suffix)->domain($domain)->build(); - } - if (empty($vars)) { - $location = substr($location . ($pathinfo_depr) . $this->arr_to_str($vars, $pathinfo_depr), 0, -1) . ".{$url_html_suffix}"; - } else { - $location .= ($pathinfo_depr) . $this->arr_to_str($vars, $pathinfo_depr) . ".{$url_html_suffix}"; - } - } else { - $location = $this->app->route->buildUrl($url, $vars)->suffix($suffix)->domain($domain)->build(); - } - return $location; - } - - /** - * 二维数组转化为字符串,中间用,隔开 - * @param $arr - * @param string $glue - * @return false|string - */ - private function arr_to_str($arr, $glue = "/") - { - $t = ''; - foreach ($arr as $k => $v) { - $t .= $k . $glue . $v . $glue; - } - // 利用字符串截取函数消除最后一个 - return substr($t, 0, -1); - } - - /** - * @var array - */ - private $result = []; - - /** - * 第一个mac地址 - * @var - */ - private $macAddr; - - /** - * 获取电脑MAC地址 - * @return mixed - */ - public function mac() - { - switch (strtolower(PHP_OS)) { - case "solaris": - case "aix": - case 'unix': - break; - case "linux": - $this->getLinux(); - break; - default: - $this->getWindows(); - break; - } - $tem = array(); - foreach ($this->result as $val) { - if (preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $val, $tem)) { - $this->macAddr = $tem[0];//多个网卡时,会返回第一个网卡的mac地址,一般够用。 - break; - //$this->macAddrs[] = $temp_array[0];//返回所有的mac地址 - } - } - unset($temp_array); - return $this->macAddr; - } - - /** - * Linux系统 - * @return array - */ - private function getLinux(): array - { - @exec("ifconfig -a", $this->result); - return $this->result; - } - - /** - * Windows系统 - */ - private function getWindows(): void - { - @exec("ipconfig /all", $this->result); - if ($this->result) { - return; - } - - $ipconfig = $_SERVER["WINDIR"] . "\system32\ipconfig.exe"; - if (is_file($ipconfig)) { - @exec($ipconfig . " /all", $this->result); - return; - } - - @exec($_SERVER["WINDIR"] . "\system\ipconfig.exe /all", $this->result); - } - - /** - * 获取Linux服务器IP - * @return string - */ - public function linuxIp() - { - try { - $ip_cmd = "ifconfig eth0 | sed -n '/inet addr/p' | awk '{print $2}' | awk -F ':' '{print $2}'"; - return trim(exec($ip_cmd)); - } catch (Exception $e) { - return "0.0.0.0"; - } - } -} +app->route->buildUrl($url, $vars)->suffix($suffix)->domain($domain)->build(); + } else { + $location = $this->app->route->buildUrl($url, [])->suffix($suffix)->domain($domain)->build(); + } + if (empty($vars)) { + $location = substr($location . ($pathinfo_depr) . $this->arr_to_str($vars, $pathinfo_depr), 0, -1) . ".{$url_html_suffix}"; + } else { + $location .= ($pathinfo_depr) . $this->arr_to_str($vars, $pathinfo_depr) . ".{$url_html_suffix}"; + } + } else { + $location = $this->app->route->buildUrl($url, $vars)->suffix($suffix)->domain($domain)->build(); + } + return $location; + } + + /** + * 二维数组转化为字符串,中间用,隔开 + * @param $arr + * @param string $glue + * @return false|string + */ + private function arr_to_str($arr, $glue = "/") + { + $t = ''; + foreach ($arr as $k => $v) { + $t .= $k . $glue . $v . $glue; + } + // 利用字符串截取函数消除最后一个 + return substr($t, 0, -1); + } + + /** + * @var array + */ + private $result = []; + + /** + * 第一个mac地址 + * @var + */ + private $macAddr; + + /** + * 获取电脑MAC地址 + * @return mixed + */ + public function mac() + { + switch (strtolower(PHP_OS)) { + case "solaris": + case "aix": + case 'unix': + break; + case "linux": + $this->getLinux(); + break; + default: + $this->getWindows(); + break; + } + $tem = array(); + foreach ($this->result as $val) { + if (preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $val, $tem)) { + $this->macAddr = $tem[0];//多个网卡时,会返回第一个网卡的mac地址,一般够用。 + break; + //$this->macAddrs[] = $temp_array[0];//返回所有的mac地址 + } + } + unset($temp_array); + return $this->macAddr; + } + + /** + * Linux系统 + * @return array + */ + private function getLinux(): array + { + @exec("ifconfig -a", $this->result); + return $this->result; + } + + /** + * Windows系统 + */ + private function getWindows(): void + { + @exec("ipconfig /all", $this->result); + if ($this->result) { + return; + } + + $ipconfig = $_SERVER["WINDIR"] . "\system32\ipconfig.exe"; + if (is_file($ipconfig)) { + @exec($ipconfig . " /all", $this->result); + return; + } + + @exec($_SERVER["WINDIR"] . "\system\ipconfig.exe /all", $this->result); + } + + /** + * 获取Linux服务器IP + * @return string + */ + public function linuxIp() + { + try { + $ip_cmd = "ifconfig eth0 | sed -n '/inet addr/p' | awk '{print $2}' | awk -F ':' '{print $2}'"; + return trim(exec($ip_cmd)); + } catch (Exception $e) { + return "0.0.0.0"; + } + } +} diff --git a/src/service/WorkKileService.php b/src/service/WorkKileService.php index 807e009..08dc927 100644 --- a/src/service/WorkKileService.php +++ b/src/service/WorkKileService.php @@ -1,58 +1,58 @@ -sendMsg($webhook, [ - 'user' => $user, - 'text' => $content - ]); - } - - /** - * 组装发送消息 - * @param string $webhook - * @param array $data 消息内容数组 - * @return bool 发送结果 - */ - private function sendMsg(string $webhook, array $data): bool - { - $result = HttpService::instance() - ->url($webhook) - ->data($data) - ->toArray(); - return $result['code'] === 200; - } -} +sendMsg($webhook, [ + 'user' => $user, + 'text' => $content + ]); + } + + /** + * 组装发送消息 + * @param string $webhook + * @param array $data 消息内容数组 + * @return bool 发送结果 + */ + private function sendMsg(string $webhook, array $data): bool + { + $result = HttpService::instance() + ->url($webhook) + ->data($data) + ->toArray(); + return $result['code'] === 200; + } +} diff --git a/src/service/aliyun/OssService.php b/src/service/aliyun/OssService.php index a6ccc56..0985a9d 100644 --- a/src/service/aliyun/OssService.php +++ b/src/service/aliyun/OssService.php @@ -1,91 +1,91 @@ -accessKeyId = $accessKeyId; - return $this; - } - - /** - * @param string $accessKeySecret - * @return $this - */ - public function accessKeySecret(string $accessKeySecret) - { - $this->accessKeySecret = $accessKeySecret; - return $this; - } - - /** - * @param string $endpoint - * @return $this - */ - public function endpoint(string $endpoint): self - { - $this->endpoint = $endpoint; - return $this; - } - - /** - * @param string $bucket - * @return $this - */ - public function bucket(string $bucket): self - { - $this->bucket = $bucket; - return $this; - } - - /** - * @param string $object - * @param string $filePath - * @return bool - */ - public function upload(string $object, string $filePath): bool - { - try { - $ossClient = new OssClient($this->accessKeyId, $this->accessKeySecret, $this->endpoint); - $ossClient->uploadFile($this->bucket, $object, $filePath); - return true; - } catch (OssException $e) { - return false; - } - } -} +accessKeyId = $accessKeyId; + return $this; + } + + /** + * @param string $accessKeySecret + * @return $this + */ + public function accessKeySecret(string $accessKeySecret) + { + $this->accessKeySecret = $accessKeySecret; + return $this; + } + + /** + * @param string $endpoint + * @return $this + */ + public function endpoint(string $endpoint): self + { + $this->endpoint = $endpoint; + return $this; + } + + /** + * @param string $bucket + * @return $this + */ + public function bucket(string $bucket): self + { + $this->bucket = $bucket; + return $this; + } + + /** + * @param string $object + * @param string $filePath + * @return bool + */ + public function upload(string $object, string $filePath): bool + { + try { + $ossClient = new OssClient($this->accessKeyId, $this->accessKeySecret, $this->endpoint); + $ossClient->uploadFile($this->bucket, $object, $filePath); + return true; + } catch (OssException $e) { + return false; + } + } +} diff --git a/src/service/amap/AmApService.php b/src/service/amap/AmApService.php index ac1c9ab..40f6761 100644 --- a/src/service/amap/AmApService.php +++ b/src/service/amap/AmApService.php @@ -1,112 +1,112 @@ -key = $key; - return $this; - } - - /** - * 天气查询 - * https://lbs.amap.com/api/webservice/guide/api/weatherinfo - * @param string $city - * @param string $extensions - * @return array|bool|mixed|string - */ - public function weather($city = "110101", $extensions = "base") - { - $data = http_build_query([ - "city" => $city, - "extensions" => $extensions, - "key" => $this->key, - "output" => $this->output, - ]); - return HttpService::instance() - ->url("{$this->url}weather/weatherInfo?{$data}") - ->toArray(); - } - - /** - * 地理编码 - * https://lbs.amap.com/api/webservice/guide/api/georegeo#geo - * @param $address - * @param string $city - * @return array|bool|mixed|string - */ - public function gCoderGeo($address, $city = '') - { - $data = http_build_query([ - "city" => $city, - "address" => $address, - "key" => $this->key, - "output" => $this->output, - ]); - return HttpService::instance() - ->url("{$this->url}geocode/geo?{$data}") - ->toArray(); - } - - /** - * 逆地理编码 - * https://lbs.amap.com/api/webservice/guide/api/georegeo#regeo - * @param $location - * @return array|bool|mixed|string - */ - public function gCoderReGeo($location) - { - $data = http_build_query([ - "location" => $location, - "key" => $this->key, - "output" => $this->output, - ]); - return HttpService::instance() - ->url("{$this->url}geocode/regeo?{$data}") - ->toArray(); - } -} +key = $key; + return $this; + } + + /** + * 天气查询 + * https://lbs.amap.com/api/webservice/guide/api/weatherinfo + * @param string $city + * @param string $extensions + * @return array|bool|mixed|string + */ + public function weather($city = "110101", $extensions = "base") + { + $data = http_build_query([ + "city" => $city, + "extensions" => $extensions, + "key" => $this->key, + "output" => $this->output, + ]); + return HttpService::instance() + ->url("{$this->url}weather/weatherInfo?{$data}") + ->toArray(); + } + + /** + * 地理编码 + * https://lbs.amap.com/api/webservice/guide/api/georegeo#geo + * @param $address + * @param string $city + * @return array|bool|mixed|string + */ + public function gCoderGeo($address, $city = '') + { + $data = http_build_query([ + "city" => $city, + "address" => $address, + "key" => $this->key, + "output" => $this->output, + ]); + return HttpService::instance() + ->url("{$this->url}geocode/geo?{$data}") + ->toArray(); + } + + /** + * 逆地理编码 + * https://lbs.amap.com/api/webservice/guide/api/georegeo#regeo + * @param $location + * @return array|bool|mixed|string + */ + public function gCoderReGeo($location) + { + $data = http_build_query([ + "location" => $location, + "key" => $this->key, + "output" => $this->output, + ]); + return HttpService::instance() + ->url("{$this->url}geocode/regeo?{$data}") + ->toArray(); + } +} diff --git a/src/service/baidu/BosService.php b/src/service/baidu/BosService.php index b769646..7d84d6c 100644 --- a/src/service/baidu/BosService.php +++ b/src/service/baidu/BosService.php @@ -1,97 +1,97 @@ -accessKeyId = $accessKeyId; - return $this; - } - - /** - * @param string $secretAccessKey - * @return $this - */ - public function secretAccessKey(string $secretAccessKey) - { - $this->secretAccessKey = $secretAccessKey; - return $this; - } - - /** - * @param string $endpoint - * @return $this - */ - public function endpoint(string $endpoint) - { - $this->endpoint = $endpoint; - return $this; - } - - /** - * @param string $bucket - * @return $this - */ - public function bucket(string $bucket) - { - $this->bucket = $bucket; - return $this; - } - - /** - * @param string $object - * @param string $filePath - * @return bool - * @throws Exception - */ - public function upload(string $object, string $filePath): bool - { - // 设置BosClient的Access Key ID、Secret Access Key和ENDPOINT - $BOS_TEST_CONFIG = array( - 'credentials' => array( - 'accessKeyId' => $this->accessKeyId, - 'secretAccessKey' => $this->secretAccessKey, - ), - 'endpoint' => $this->endpoint, - ); - $client = new BosClient($BOS_TEST_CONFIG); - // 从文件中直接上传Object - $client->putObjectFromFile($this->bucket, $object, $filePath); - return true; - } -} +accessKeyId = $accessKeyId; + return $this; + } + + /** + * @param string $secretAccessKey + * @return $this + */ + public function secretAccessKey(string $secretAccessKey) + { + $this->secretAccessKey = $secretAccessKey; + return $this; + } + + /** + * @param string $endpoint + * @return $this + */ + public function endpoint(string $endpoint) + { + $this->endpoint = $endpoint; + return $this; + } + + /** + * @param string $bucket + * @return $this + */ + public function bucket(string $bucket) + { + $this->bucket = $bucket; + return $this; + } + + /** + * @param string $object + * @param string $filePath + * @return bool + * @throws Exception + */ + public function upload(string $object, string $filePath): bool + { + // 设置BosClient的Access Key ID、Secret Access Key和ENDPOINT + $BOS_TEST_CONFIG = array( + 'credentials' => array( + 'accessKeyId' => $this->accessKeyId, + 'secretAccessKey' => $this->secretAccessKey, + ), + 'endpoint' => $this->endpoint, + ); + $client = new BosClient($BOS_TEST_CONFIG); + // 从文件中直接上传Object + $client->putObjectFromFile($this->bucket, $object, $filePath); + return true; + } +} diff --git a/src/service/baidu/LbsYunService.php b/src/service/baidu/LbsYunService.php index b057837..0d8ab8b 100644 --- a/src/service/baidu/LbsYunService.php +++ b/src/service/baidu/LbsYunService.php @@ -1,106 +1,106 @@ -ak = $ak; - return $this; - } - - /** - * 国内天气查询 - * http://lbsyun.baidu.com/index.php?title=webapi/weather - * @param int $district_id - * @param string $coordtype - * @param string $location - * @return array|bool|mixed|string - * @throws DtaException - */ - public function weather($district_id = 110100, string $coordtype = "bd09ll", string $location = "") - { - if (empty($this->ak)) { - throw new DtaException('请检查ak参数'); - } - $data = http_build_query([ - "district_id" => $district_id, - "coordtype" => $coordtype, - "ak" => $this->ak, - "location" => $location, - "data_type" => 'all', - "output" => $this->output, - ]); - return HttpService::instance() - ->url("http://api.map.baidu.com/weather/v1/?{$data}") - ->toArray(); - } - - /** - * 国外天气查询 - * http://lbsyun.baidu.com/index.php?title=webapi/weather-abroad - * @param int $district_id - * @param string $coordtype - * @param string $location - * @param string $language - * @return array|bool|mixed|string - * @throws DtaException - */ - public function weatherAbroad($district_id = 110100, string $coordtype = "bd09ll", string $location = "", string $language = "cn") - { - if (empty($this->ak)) { - throw new DtaException('请检查ak参数'); - } - $data = http_build_query([ - "district_id" => $district_id, - "coordtype" => $coordtype, - "ak" => $this->ak, - "location" => $location, - "data_type" => 'all', - "language" => $language, - "output" => $this->output, - ]); - return HttpService::instance() - ->url("http://api.map.baidu.com/weather_abroad/v1/?{$data}") - ->toArray(); - } -} +ak = $ak; + return $this; + } + + /** + * 国内天气查询 + * http://lbsyun.baidu.com/index.php?title=webapi/weather + * @param int $district_id + * @param string $coordtype + * @param string $location + * @return array|bool|mixed|string + * @throws DtaException + */ + public function weather($district_id = 110100, string $coordtype = "bd09ll", string $location = "") + { + if (empty($this->ak)) { + throw new DtaException('请检查ak参数'); + } + $data = http_build_query([ + "district_id" => $district_id, + "coordtype" => $coordtype, + "ak" => $this->ak, + "location" => $location, + "data_type" => 'all', + "output" => $this->output, + ]); + return HttpService::instance() + ->url("http://api.map.baidu.com/weather/v1/?{$data}") + ->toArray(); + } + + /** + * 国外天气查询 + * http://lbsyun.baidu.com/index.php?title=webapi/weather-abroad + * @param int $district_id + * @param string $coordtype + * @param string $location + * @param string $language + * @return array|bool|mixed|string + * @throws DtaException + */ + public function weatherAbroad($district_id = 110100, string $coordtype = "bd09ll", string $location = "", string $language = "cn") + { + if (empty($this->ak)) { + throw new DtaException('请检查ak参数'); + } + $data = http_build_query([ + "district_id" => $district_id, + "coordtype" => $coordtype, + "ak" => $this->ak, + "location" => $location, + "data_type" => 'all', + "language" => $language, + "output" => $this->output, + ]); + return HttpService::instance() + ->url("http://api.map.baidu.com/weather_abroad/v1/?{$data}") + ->toArray(); + } +} diff --git a/src/service/bin/city.json b/src/service/bin/city.json index 707573c..2443894 100644 --- a/src/service/bin/city.json +++ b/src/service/bin/city.json @@ -1,3326 +1,3326 @@ -{ - "rows": [ - { - "adcode": "370400", - "people_count_2010": 3189966, - "lat": 34.856424, - "lng": 117.557964, - "name": "枣庄市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "411500", - "people_count_2010": 6085177, - "lat": 32.123274, - "lng": 114.075031, - "name": "信阳市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "411200", - "people_count_2010": 2181802, - "lat": 34.777338, - "lng": 111.194099, - "name": "三门峡市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "310100", - "people_count_2010": 20431439, - "lat": 31.231706, - "lng": 121.472644, - "name": "上海市市辖区", - "level": "city", - "parent": "上海市" - }, - { - "adcode": "141100", - "people_count_2010": 3727068, - "lat": 37.524366, - "lng": 111.134335, - "name": "吕梁市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "410300", - "people_count_2010": 6727880, - "lat": 34.663041, - "lng": 112.434468, - "name": "洛阳市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "520300", - "people_count_2010": 6127082, - "lat": 27.706626, - "lng": 106.937265, - "name": "遵义市", - "level": "city", - "parent": "贵州省" - }, - { - "adcode": "640500", - "people_count_2010": 1080832, - "lat": 37.514951, - "lng": 105.189568, - "name": "中卫市", - "level": "city", - "parent": "宁夏回族自治区" - }, - { - "adcode": "410800", - "people_count_2010": 4215858, - "lat": 35.23904, - "lng": 113.238266, - "name": "焦作市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "410700", - "people_count_2010": 5699625, - "lat": 35.302616, - "lng": 113.883991, - "name": "新乡市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "650200", - "people_count_2010": 391008, - "lat": 45.595886, - "lng": 84.873946, - "name": "克拉玛依市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "220400", - "people_count_2010": 1176239, - "lat": 42.902692, - "lng": 125.145349, - "name": "辽源市", - "level": "city", - "parent": "吉林省" - }, - { - "adcode": "220200", - "people_count_2010": 4413157, - "lat": 43.843577, - "lng": 126.55302, - "name": "吉林市", - "level": "city", - "parent": "吉林省" - }, - { - "adcode": "220500", - "people_count_2010": 2324439, - "lat": 41.721177, - "lng": 125.936501, - "name": "通化市", - "level": "city", - "parent": "吉林省" - }, - { - "adcode": "450400", - "people_count_2010": 2882200, - "lat": 23.474803, - "lng": 111.297604, - "name": "梧州市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "341100", - "people_count_2010": 3937868, - "lat": 32.303627, - "lng": 118.316264, - "name": "滁州市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "441500", - "people_count_2010": 2484942, - "lat": 22.774485, - "lng": 115.364238, - "name": "汕尾市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "130100", - "people_count_2010": 9388002, - "lat": 38.045474, - "lng": 114.502461, - "name": "石家庄市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "654300", - "people_count_2010": 603283, - "lat": 47.848393, - "lng": 88.13963, - "name": "阿勒泰地区", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "411700", - "people_count_2010": 7895662, - "lat": 32.980169, - "lng": 114.024736, - "name": "驻马店市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "411300", - "people_count_2010": 10313241, - "lat": 32.999082, - "lng": 112.540918, - "name": "南阳市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "370100", - "people_count_2010": 6774701, - "lat": 36.675807, - "lng": 117.000923, - "name": "济南市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "450800", - "people_count_2010": 4093874, - "lat": 23.0936, - "lng": 109.602146, - "name": "贵港市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "341700", - "people_count_2010": 1402518, - "lat": 30.656037, - "lng": 117.489157, - "name": "池州市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "321100", - "people_count_2010": 3114105, - "lat": 32.204402, - "lng": 119.452753, - "name": "镇江市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "320500", - "people_count_2010": 10963914, - "lat": 31.299379, - "lng": 120.619585, - "name": "苏州市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "620300", - "people_count_2010": 464050, - "lat": 38.514238, - "lng": 102.187888, - "name": "金昌市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "632200", - "people_count_2010": 382310, - "lat": 36.959435, - "lng": 100.901059, - "name": "海北藏族自治州", - "level": "city", - "parent": "青海省" - }, - { - "adcode": "630200", - "people_count_2010": null, - "lat": 36.502916, - "lng": 102.10327, - "name": "海东市", - "level": "city", - "parent": "青海省" - }, - { - "adcode": "411100", - "people_count_2010": 3294974, - "lat": 33.575855, - "lng": 114.026405, - "name": "漯河市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "330700", - "people_count_2010": 5327557, - "lat": 29.089524, - "lng": 119.649506, - "name": "金华市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "640400", - "people_count_2010": 1228156, - "lat": 36.004561, - "lng": 106.285241, - "name": "固原市", - "level": "city", - "parent": "宁夏回族自治区" - }, - { - "adcode": "511800", - "people_count_2010": 1507258, - "lat": 29.987722, - "lng": 103.001033, - "name": "雅安市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "370700", - "people_count_2010": 9060565, - "lat": 36.70925, - "lng": 119.107078, - "name": "潍坊市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "371100", - "people_count_2010": 2801013, - "lat": 35.428588, - "lng": 119.461208, - "name": "日照市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "331000", - "people_count_2010": 5973231, - "lat": 28.661378, - "lng": 121.428599, - "name": "台州市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "220300", - "people_count_2010": 2778595, - "lat": 43.170344, - "lng": 124.370785, - "name": "四平市", - "level": "city", - "parent": "吉林省" - }, - { - "adcode": "360400", - "people_count_2010": 4728778, - "lat": 29.712034, - "lng": 115.992811, - "name": "九江市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "321300", - "people_count_2010": 4678095, - "lat": 33.963008, - "lng": 118.275162, - "name": "宿迁市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "410900", - "people_count_2010": 3552086, - "lat": 35.768234, - "lng": 115.041299, - "name": "濮阳市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "533100", - "people_count_2010": 1745777, - "lat": 24.436694, - "lng": 98.578363, - "name": "德宏傣族景颇族自治州", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "440100", - "people_count_2010": 12728106, - "lat": 23.125178, - "lng": 113.280637, - "name": "广州市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "440700", - "people_count_2010": 4450703, - "lat": 22.590431, - "lng": 113.094942, - "name": "江门市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "533300", - "people_count_2010": 1184835, - "lat": 25.850949, - "lng": 98.854304, - "name": "怒江傈僳族自治州", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "441200", - "people_count_2010": 3916467, - "lat": 23.051546, - "lng": 112.472529, - "name": "肇庆市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "469022", - "people_count_2010": 5939907, - "lat": 19.362916, - "lng": 110.102773, - "name": "屯昌县", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "130800", - "people_count_2010": 3473201, - "lat": 40.976204, - "lng": 117.939152, - "name": "承德市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "130900", - "people_count_2010": 7698958, - "lat": 38.310582, - "lng": 116.857461, - "name": "沧州市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "330600", - "people_count_2010": 4923454, - "lat": 29.997117, - "lng": 120.582112, - "name": "绍兴市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "130200", - "people_count_2010": 7577289, - "lat": 39.635113, - "lng": 118.175393, - "name": "唐山市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "231000", - "people_count_2010": 2549232, - "lat": 44.582962, - "lng": 129.618602, - "name": "牡丹江市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "210400", - "people_count_2010": 2138090, - "lat": 41.875956, - "lng": 123.921109, - "name": "抚顺市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "210500", - "people_count_2010": 1709538, - "lat": 41.297909, - "lng": 123.770519, - "name": "本溪市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "210900", - "people_count_2010": 1779628, - "lat": 42.011796, - "lng": 121.648962, - "name": "阜新市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "330900", - "people_count_2010": 742456, - "lat": 30.016028, - "lng": 122.106863, - "name": "舟山市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "370900", - "people_count_2010": 5478265, - "lat": 36.194968, - "lng": 117.129063, - "name": "泰安市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "210700", - "people_count_2010": 3126463, - "lat": 41.119269, - "lng": 121.135742, - "name": "锦州市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "520200", - "people_count_2010": 2815987, - "lat": 26.584643, - "lng": 104.846743, - "name": "六盘水市", - "level": "city", - "parent": "贵州省" - }, - { - "adcode": "522600", - "people_count_2010": 3481891, - "lat": 26.583352, - "lng": 107.977488, - "name": "黔东南苗族侗族自治州", - "level": "city", - "parent": "贵州省" - }, - { - "adcode": "370300", - "people_count_2010": 4530597, - "lat": 36.814939, - "lng": 118.047648, - "name": "淄博市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "620900", - "people_count_2010": 1106492, - "lat": 39.744023, - "lng": 98.510795, - "name": "酒泉市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "542500", - "people_count_2010": 95465, - "lat": 32.503187, - "lng": 80.105498, - "name": "阿里地区", - "level": "city", - "parent": "西藏自治区" - }, - { - "adcode": "530300", - "people_count_2010": 5852164, - "lat": 25.501557, - "lng": 103.797851, - "name": "曲靖市", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "530500", - "people_count_2010": 2506491, - "lat": 25.111802, - "lng": 99.167133, - "name": "保山市", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "532900", - "people_count_2010": 5274343, - "lat": 25.589449, - "lng": 100.225668, - "name": "大理白族自治州", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "341300", - "people_count_2010": 6974366, - "lat": 33.633891, - "lng": 116.984084, - "name": "宿州市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "530600", - "people_count_2010": 5185150, - "lat": 27.336999, - "lng": 103.717216, - "name": "昭通市", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "530900", - "people_count_2010": 5801192, - "lat": 23.886567, - "lng": 100.08697, - "name": "临沧市", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "640100", - "people_count_2010": 1993088, - "lat": 38.46637, - "lng": 106.278179, - "name": "银川市", - "level": "city", - "parent": "宁夏回族自治区" - }, - { - "adcode": "330100", - "people_count_2010": 8402597, - "lat": 30.287459, - "lng": 120.153576, - "name": "杭州市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "532600", - "people_count_2010": 4610409, - "lat": 23.36951, - "lng": 104.24401, - "name": "文山壮族苗族自治州", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "211400", - "people_count_2010": 2623541, - "lat": 40.755572, - "lng": 120.856394, - "name": "葫芦岛市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "451100", - "people_count_2010": 2348582, - "lat": 24.414141, - "lng": 111.552056, - "name": "贺州市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "440200", - "people_count_2010": 2826246, - "lat": 24.801322, - "lng": 113.591544, - "name": "韶关市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "140800", - "people_count_2010": 5134779, - "lat": 35.022778, - "lng": 111.003957, - "name": "运城市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "140600", - "people_count_2010": 1714857, - "lat": 39.331261, - "lng": 112.433387, - "name": "朔州市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "659006", - "people_count_2010": 770886, - "lat": 41.827251, - "lng": 85.501218, - "name": "铁门关市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "141000", - "people_count_2010": 4316610, - "lat": 36.08415, - "lng": 111.517973, - "name": "临汾市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "350200", - "people_count_2010": 3531347, - "lat": 24.490474, - "lng": 118.11022, - "name": "厦门市", - "level": "city", - "parent": "福建省" - }, - { - "adcode": "371400", - "people_count_2010": 5568235, - "lat": 37.453968, - "lng": 116.307428, - "name": "德州市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "310200", - "people_count_2010": 703722, - "lat": 31.623587, - "lng": 121.397417, - "name": "上海市郊县", - "level": "city", - "parent": "上海市" - }, - { - "adcode": "632300", - "people_count_2010": 737781, - "lat": 35.517744, - "lng": 102.019988, - "name": "黄南藏族自治州", - "level": "city", - "parent": "青海省" - }, - { - "adcode": "632500", - "people_count_2010": 623373, - "lat": 36.280353, - "lng": 100.619542, - "name": "海南藏族自治州", - "level": "city", - "parent": "青海省" - }, - { - "adcode": "211300", - "people_count_2010": 3044641, - "lat": 41.576758, - "lng": 120.451176, - "name": "朝阳市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "511900", - "people_count_2010": 3256981, - "lat": 31.858809, - "lng": 106.753669, - "name": "巴中市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "620400", - "people_count_2010": 1708752, - "lat": 36.54568, - "lng": 104.173606, - "name": "白银市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "532500", - "people_count_2010": 8575364, - "lat": 23.366775, - "lng": 103.384182, - "name": "红河哈尼族彝族自治州", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "420900", - "people_count_2010": 4799035, - "lat": 30.926423, - "lng": 113.926655, - "name": "孝感市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "130500", - "people_count_2010": 6433949, - "lat": 37.0682, - "lng": 114.508851, - "name": "邢台市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "350600", - "people_count_2010": 4809983, - "lat": 24.510897, - "lng": 117.661801, - "name": "漳州市", - "level": "city", - "parent": "福建省" - }, - { - "adcode": "511000", - "people_count_2010": 3209502, - "lat": 29.58708, - "lng": 105.066138, - "name": "内江市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "510700", - "people_count_2010": 4571807, - "lat": 31.46402, - "lng": 104.741722, - "name": "绵阳市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "140500", - "people_count_2010": 1802201, - "lat": 35.497553, - "lng": 112.851274, - "name": "晋城市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "511100", - "people_count_2010": 2572945, - "lat": 29.582024, - "lng": 103.761263, - "name": "乐山市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "511400", - "people_count_2010": 2917471, - "lat": 30.048318, - "lng": 103.831788, - "name": "眉山市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "512000", - "people_count_2010": 4552496, - "lat": 30.122211, - "lng": 104.641917, - "name": "资阳市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "420300", - "people_count_2010": 3340841, - "lat": 32.646907, - "lng": 110.787916, - "name": "十堰市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "513200", - "people_count_2010": 898708, - "lat": 31.899792, - "lng": 102.221374, - "name": "阿坝藏族羌族自治州", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "640200", - "people_count_2010": 725482, - "lat": 39.01333, - "lng": 106.376173, - "name": "石嘴山市", - "level": "city", - "parent": "宁夏回族自治区" - }, - { - "adcode": "469006", - "people_count_2010": 545597, - "lat": 18.796216, - "lng": 110.388793, - "name": "万宁市", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "450300", - "people_count_2010": 5374183, - "lat": 25.274215, - "lng": 110.299121, - "name": "桂林市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "520600", - "people_count_2010": null, - "lat": 27.718346, - "lng": 109.191555, - "name": "铜仁市", - "level": "city", - "parent": "贵州省" - }, - { - "adcode": "340500", - "people_count_2010": 1366302, - "lat": 31.689362, - "lng": 118.507906, - "name": "马鞍山市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "341600", - "people_count_2010": 4900000, - "lat": 33.869338, - "lng": 115.782939, - "name": "亳州市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "220700", - "people_count_2010": 2880086, - "lat": 45.118243, - "lng": 124.823608, - "name": "松原市", - "level": "city", - "parent": "吉林省" - }, - { - "adcode": "150100", - "people_count_2010": 3218484, - "lat": 40.818311, - "lng": 111.670801, - "name": "呼和浩特市", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "500200", - "people_count_2010": 13563221, - "lat": 29.291965, - "lng": 108.170255, - "name": "重庆市郊县", - "level": "city", - "parent": "重庆市" - }, - { - "adcode": "659001", - "people_count_2010": 380130, - "lat": 44.305886, - "lng": 86.041075, - "name": "石河子市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "150700", - "people_count_2010": 2607496, - "lat": 49.215333, - "lng": 119.758168, - "name": "呼伦贝尔市", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "360800", - "people_count_2010": 4810339, - "lat": 27.111699, - "lng": 114.986373, - "name": "吉安市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "632700", - "people_count_2010": 867777, - "lat": 33.004049, - "lng": 97.008522, - "name": "玉树藏族自治州", - "level": "city", - "parent": "青海省" - }, - { - "adcode": "410500", - "people_count_2010": 5209899, - "lat": 36.103442, - "lng": 114.352482, - "name": "安阳市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "152500", - "people_count_2010": 1028022, - "lat": 43.944018, - "lng": 116.090996, - "name": "锡林郭勒盟", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "152200", - "people_count_2010": 2193640, - "lat": 46.076268, - "lng": 122.070317, - "name": "兴安盟", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "152900", - "people_count_2010": 231334, - "lat": 38.844814, - "lng": 105.706422, - "name": "阿拉善盟", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "540200", - "people_count_2010": null, - "lat": 29.267519, - "lng": 88.885148, - "name": "日喀则市", - "level": "city", - "parent": "西藏自治区" - }, - { - "adcode": "430600", - "people_count_2010": 6136430, - "lat": 29.37029, - "lng": 113.132855, - "name": "岳阳市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "130400", - "people_count_2010": 9174683, - "lat": 36.612273, - "lng": 114.490686, - "name": "邯郸市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "429005", - "people_count_2010": 946277, - "lat": 30.421215, - "lng": 112.896866, - "name": "潜江市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "430400", - "people_count_2010": 7193113, - "lat": 26.900358, - "lng": 112.607693, - "name": "衡阳市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "361000", - "people_count_2010": 3922419, - "lat": 27.98385, - "lng": 116.358351, - "name": "抚州市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "522300", - "people_count_2010": 2804612, - "lat": 25.08812, - "lng": 104.897971, - "name": "黔西南布依族苗族自治州", - "level": "city", - "parent": "贵州省" - }, - { - "adcode": "230500", - "people_count_2010": 3232812, - "lat": 46.643442, - "lng": 131.157304, - "name": "双鸭山市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "411600", - "people_count_2010": 8953534, - "lat": 33.620357, - "lng": 114.649653, - "name": "周口市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "659005", - "people_count_2010": 770886, - "lat": 47.353177, - "lng": 87.824932, - "name": "北屯市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "230800", - "people_count_2010": 2003656, - "lat": 46.809606, - "lng": 130.361634, - "name": "佳木斯市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "220800", - "people_count_2010": 2032356, - "lat": 45.619026, - "lng": 122.841114, - "name": "白城市", - "level": "city", - "parent": "吉林省" - }, - { - "adcode": "530800", - "people_count_2010": null, - "lat": 22.777321, - "lng": 100.972344, - "name": "普洱市", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "533400", - "people_count_2010": 560787, - "lat": 27.826853, - "lng": 99.706463, - "name": "迪庆藏族自治州", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "211000", - "people_count_2010": 1858768, - "lat": 41.269402, - "lng": 123.18152, - "name": "辽阳市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "460200", - "people_count_2010": 6600000, - "lat": 18.247872, - "lng": 109.508268, - "name": "三亚市", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "469024", - "people_count_2010": 5939907, - "lat": 19.908293, - "lng": 109.687697, - "name": "临高县", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "441700", - "people_count_2010": 2421748, - "lat": 21.859222, - "lng": 111.975107, - "name": "阳江市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "440800", - "people_count_2010": 8512201, - "lat": 21.274898, - "lng": 110.364977, - "name": "湛江市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "653000", - "people_count_2010": 525570, - "lat": 39.713431, - "lng": 76.172825, - "name": "克孜勒苏柯尔克孜自治州", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "620800", - "people_count_2010": 2068033, - "lat": 35.54279, - "lng": 106.684691, - "name": "平凉市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "140700", - "people_count_2010": 3228744, - "lat": 37.696495, - "lng": 112.736465, - "name": "晋中市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "140900", - "people_count_2010": 3067503, - "lat": 38.41769, - "lng": 112.733538, - "name": "忻州市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "620200", - "people_count_2010": 231853, - "lat": 39.786529, - "lng": 98.277304, - "name": "嘉峪关市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "140100", - "people_count_2010": 4997055, - "lat": 37.857014, - "lng": 112.549248, - "name": "太原市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "140200", - "people_count_2010": 2595041, - "lat": 40.09031, - "lng": 113.295259, - "name": "大同市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "140300", - "people_count_2010": 1210910, - "lat": 37.861188, - "lng": 113.583285, - "name": "阳泉市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "420800", - "people_count_2010": 2851173, - "lat": 31.03542, - "lng": 112.204251, - "name": "荆门市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "540400", - "people_count_2010": null, - "lat": 29.654693, - "lng": 94.362348, - "name": "林芝市", - "level": "city", - "parent": "西藏自治区" - }, - { - "adcode": "513400", - "people_count_2010": 4747214, - "lat": 27.886762, - "lng": 102.258746, - "name": "凉山彝族自治州", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "350500", - "people_count_2010": 8123635, - "lat": 24.908853, - "lng": 118.589421, - "name": "泉州市", - "level": "city", - "parent": "福建省" - }, - { - "adcode": "500100", - "people_count_2010": 14894880, - "lat": 29.533155, - "lng": 106.504962, - "name": "重庆市市辖区", - "level": "city", - "parent": "重庆市" - }, - { - "adcode": "231100", - "people_count_2010": 1673899, - "lat": 50.249585, - "lng": 127.499023, - "name": "黑河市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "420500", - "people_count_2010": 4059686, - "lat": 30.702636, - "lng": 111.290843, - "name": "宜昌市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "429004", - "people_count_2010": 1200000, - "lat": 30.364953, - "lng": 113.453974, - "name": "仙桃市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "210600", - "people_count_2010": 2444697, - "lat": 40.124296, - "lng": 124.383044, - "name": "丹东市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "530700", - "people_count_2010": 9332569, - "lat": 26.872108, - "lng": 100.233026, - "name": "丽江市", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "532300", - "people_count_2010": 7161399, - "lat": 25.041988, - "lng": 101.546046, - "name": "楚雄彝族自治州", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "420700", - "people_count_2010": 1191276, - "lat": 30.396536, - "lng": 114.890593, - "name": "鄂州市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "371000", - "people_count_2010": 2804771, - "lat": 37.509691, - "lng": 122.116394, - "name": "威海市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "341200", - "people_count_2010": 7630903, - "lat": 32.896969, - "lng": 115.819729, - "name": "阜阳市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "421100", - "people_count_2010": 6162069, - "lat": 30.447711, - "lng": 114.879365, - "name": "黄冈市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "131000", - "people_count_2010": 4358839, - "lat": 39.523927, - "lng": 116.704441, - "name": "廊坊市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "140400", - "people_count_2010": 2569724, - "lat": 36.191112, - "lng": 113.113556, - "name": "长治市", - "level": "city", - "parent": "山西省" - }, - { - "adcode": "620100", - "people_count_2010": 2712348, - "lat": 36.058039, - "lng": 103.823557, - "name": "兰州市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "370500", - "people_count_2010": 2035338, - "lat": 37.434564, - "lng": 118.66471, - "name": "东营市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "371200", - "people_count_2010": 1298529, - "lat": 36.214397, - "lng": 117.677736, - "name": "莱芜市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "442000", - "people_count_2010": 3100000, - "lat": 22.521113, - "lng": 113.382391, - "name": "中山市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "340200", - "people_count_2010": 2263123, - "lat": 31.326319, - "lng": 118.376451, - "name": "芜湖市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "621100", - "people_count_2010": 2698624, - "lat": 35.579578, - "lng": 104.626294, - "name": "定西市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "620500", - "people_count_2010": 3539218, - "lat": 34.578529, - "lng": 105.724998, - "name": "天水市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "469002", - "people_count_2010": 483217, - "lat": 19.246011, - "lng": 110.466785, - "name": "琼海市", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "350400", - "people_count_2010": 2503388, - "lat": 26.265444, - "lng": 117.635001, - "name": "三明市", - "level": "city", - "parent": "福建省" - }, - { - "adcode": "610100", - "people_count_2010": 6816285, - "lat": 34.263161, - "lng": 108.948024, - "name": "西安市", - "level": "city", - "parent": "陕西省" - }, - { - "adcode": "222400", - "people_count_2010": 2270816, - "lat": 42.904823, - "lng": 129.513228, - "name": "延边朝鲜族自治州", - "level": "city", - "parent": "吉林省" - }, - { - "adcode": "451300", - "people_count_2010": 2099711, - "lat": 23.733766, - "lng": 109.229772, - "name": "来宾市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "340700", - "people_count_2010": 651657, - "lat": 30.929935, - "lng": 117.816576, - "name": "铜陵市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "520100", - "people_count_2010": 4058115, - "lat": 26.578343, - "lng": 106.713478, - "name": "贵阳市", - "level": "city", - "parent": "贵州省" - }, - { - "adcode": "522700", - "people_count_2010": 3232714, - "lat": 26.258219, - "lng": 107.517156, - "name": "黔南布依族苗族自治州", - "level": "city", - "parent": "贵州省" - }, - { - "adcode": "429006", - "people_count_2010": 1400000, - "lat": 30.653061, - "lng": 113.165862, - "name": "天门市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "520500", - "people_count_2010": null, - "lat": 27.301693, - "lng": 105.28501, - "name": "毕节市", - "level": "city", - "parent": "贵州省" - }, - { - "adcode": "530400", - "people_count_2010": 2960834, - "lat": 24.350461, - "lng": 102.543907, - "name": "玉溪市", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "210100", - "people_count_2010": 7131923, - "lat": 41.796767, - "lng": 123.429096, - "name": "沈阳市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "360200", - "people_count_2010": 1587477, - "lat": 29.29256, - "lng": 117.214664, - "name": "景德镇市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "460300", - "people_count_2010": null, - "lat": 16.831039, - "lng": 112.34882, - "name": "三沙市", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "350700", - "people_count_2010": 2645548, - "lat": 26.635627, - "lng": 118.178459, - "name": "南平市", - "level": "city", - "parent": "福建省" - }, - { - "adcode": "511600", - "people_count_2010": 3205476, - "lat": 30.456398, - "lng": 106.633369, - "name": "广安市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "650100", - "people_count_2010": 2715928, - "lat": 43.792818, - "lng": 87.617733, - "name": "乌鲁木齐市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "361100", - "people_count_2010": 6582990, - "lat": 28.44442, - "lng": 117.971185, - "name": "上饶市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "469005", - "people_count_2010": 537426, - "lat": 19.612986, - "lng": 110.753975, - "name": "文昌市", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "210200", - "people_count_2010": 6665881, - "lat": 38.91459, - "lng": 121.618622, - "name": "大连市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "530100", - "people_count_2010": 7537860, - "lat": 25.040609, - "lng": 102.712251, - "name": "昆明市", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "410100", - "people_count_2010": 8638373, - "lat": 34.757975, - "lng": 113.665412, - "name": "郑州市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "360500", - "people_count_2010": 1138874, - "lat": 27.810834, - "lng": 114.930835, - "name": "新余市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "321200", - "people_count_2010": 4691468, - "lat": 32.484882, - "lng": 119.915176, - "name": "泰州市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "210300", - "people_count_2010": 3647670, - "lat": 41.110626, - "lng": 122.995632, - "name": "鞍山市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "320800", - "people_count_2010": 4271650, - "lat": 33.597506, - "lng": 119.021265, - "name": "淮安市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "350900", - "people_count_2010": 2821996, - "lat": 26.65924, - "lng": 119.527082, - "name": "宁德市", - "level": "city", - "parent": "福建省" - }, - { - "adcode": "640300", - "people_count_2010": 1438808, - "lat": 37.986165, - "lng": 106.199409, - "name": "吴忠市", - "level": "city", - "parent": "宁夏回族自治区" - }, - { - "adcode": "411400", - "people_count_2010": 7322593, - "lat": 34.437054, - "lng": 115.650497, - "name": "商丘市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "510400", - "people_count_2010": 1787238, - "lat": 26.580446, - "lng": 101.716007, - "name": "攀枝花市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "150600", - "people_count_2010": 1940653, - "lat": 39.817179, - "lng": 109.99029, - "name": "鄂尔多斯市", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "510500", - "people_count_2010": 4218427, - "lat": 28.889138, - "lng": 105.443348, - "name": "泸州市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "510600", - "people_count_2010": 3628996, - "lat": 31.127991, - "lng": 104.398651, - "name": "德阳市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "510800", - "people_count_2010": 2967698, - "lat": 32.433668, - "lng": 105.829757, - "name": "广元市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "510300", - "people_count_2010": 2678899, - "lat": 29.352765, - "lng": 104.773447, - "name": "自贡市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "510900", - "people_count_2010": 3252619, - "lat": 30.513311, - "lng": 105.571331, - "name": "遂宁市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "450600", - "people_count_2010": 866927, - "lat": 21.614631, - "lng": 108.345478, - "name": "防城港市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "511300", - "people_count_2010": 6278614, - "lat": 30.795281, - "lng": 106.082974, - "name": "南充市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "622900", - "people_count_2010": 2826472, - "lat": 35.599446, - "lng": 103.212006, - "name": "临夏回族自治州", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "511700", - "people_count_2010": 5493631, - "lat": 31.209484, - "lng": 107.502262, - "name": "达州市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "320900", - "people_count_2010": 7262200, - "lat": 33.377631, - "lng": 120.139998, - "name": "盐城市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "230200", - "people_count_2010": 5367003, - "lat": 47.342081, - "lng": 123.95792, - "name": "齐齐哈尔市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "422800", - "people_count_2010": 6890402, - "lat": 30.283114, - "lng": 109.48699, - "name": "恩施土家族苗族自治州", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "654000", - "people_count_2010": 2662336, - "lat": 43.92186, - "lng": 81.317946, - "name": "伊犁哈萨克自治州", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "441400", - "people_count_2010": 4287933, - "lat": 24.299112, - "lng": 116.117582, - "name": "梅州市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "232700", - "people_count_2010": 665919, - "lat": 52.335262, - "lng": 124.711526, - "name": "大兴安岭地区", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "420200", - "people_count_2010": 2429318, - "lat": 30.220074, - "lng": 115.077048, - "name": "黄石市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "410200", - "people_count_2010": 4765604, - "lat": 34.797049, - "lng": 114.341447, - "name": "开封市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "520400", - "people_count_2010": 2598975, - "lat": 26.245544, - "lng": 105.932188, - "name": "安顺市", - "level": "city", - "parent": "贵州省" - }, - { - "adcode": "610200", - "people_count_2010": 834437, - "lat": 34.916582, - "lng": 108.979608, - "name": "铜川市", - "level": "city", - "parent": "陕西省" - }, - { - "adcode": "659007", - "people_count_2010": 770886, - "lat": 44.840524, - "lng": 82.353656, - "name": "双河市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "540100", - "people_count_2010": 1632598, - "lat": 29.660361, - "lng": 91.132212, - "name": "拉萨市", - "level": "city", - "parent": "西藏自治区" - }, - { - "adcode": "230300", - "people_count_2010": 1862165, - "lat": 45.300046, - "lng": 130.975966, - "name": "鸡西市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "654200", - "people_count_2010": 1219369, - "lat": 46.746301, - "lng": 82.985732, - "name": "塔城地区", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "440300", - "people_count_2010": 9232781, - "lat": 22.547, - "lng": 114.085947, - "name": "深圳市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "440500", - "people_count_2010": 5374806, - "lat": 23.37102, - "lng": 116.708463, - "name": "汕头市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "610400", - "people_count_2010": 5297173, - "lat": 34.333439, - "lng": 108.705117, - "name": "咸阳市", - "level": "city", - "parent": "陕西省" - }, - { - "adcode": "350100", - "people_count_2010": 6392826, - "lat": 26.075302, - "lng": 119.306239, - "name": "福州市", - "level": "city", - "parent": "福建省" - }, - { - "adcode": "410400", - "people_count_2010": 5785938, - "lat": 33.735241, - "lng": 113.307718, - "name": "平顶山市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "211200", - "people_count_2010": 3157747, - "lat": 42.290585, - "lng": 123.844279, - "name": "铁岭市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "330500", - "people_count_2010": 2893542, - "lat": 30.867198, - "lng": 120.102398, - "name": "湖州市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "330800", - "people_count_2010": 2122661, - "lat": 28.941708, - "lng": 118.87263, - "name": "衢州市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "330200", - "people_count_2010": 7673449, - "lat": 29.868388, - "lng": 121.549792, - "name": "宁波市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "430100", - "people_count_2010": 7095345, - "lat": 28.19409, - "lng": 112.982279, - "name": "长沙市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "430700", - "people_count_2010": 5714623, - "lat": 29.040225, - "lng": 111.691347, - "name": "常德市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "433100", - "people_count_2010": 2549558, - "lat": 28.314296, - "lng": 109.739735, - "name": "湘西土家族苗族自治州", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "340600", - "people_count_2010": 2113321, - "lat": 33.971707, - "lng": 116.794664, - "name": "淮北市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "421200", - "people_count_2010": 2462583, - "lat": 29.832798, - "lng": 114.328963, - "name": "咸宁市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "430300", - "people_count_2010": 2752171, - "lat": 27.82973, - "lng": 112.944052, - "name": "湘潭市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "320700", - "people_count_2010": 4162436, - "lat": 34.600018, - "lng": 119.178821, - "name": "连云港市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "632600", - "people_count_2010": 560121, - "lat": 34.4736, - "lng": 100.242143, - "name": "果洛藏族自治州", - "level": "city", - "parent": "青海省" - }, - { - "adcode": "440400", - "people_count_2010": 1562530, - "lat": 22.224979, - "lng": 113.553986, - "name": "珠海市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "430900", - "people_count_2010": 4307933, - "lat": 28.570066, - "lng": 112.355042, - "name": "益阳市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "620700", - "people_count_2010": 1199515, - "lat": 38.932897, - "lng": 100.455472, - "name": "张掖市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "610600", - "people_count_2010": 2187009, - "lat": 36.596537, - "lng": 109.49081, - "name": "延安市", - "level": "city", - "parent": "陕西省" - }, - { - "adcode": "441600", - "people_count_2010": 2950195, - "lat": 23.746266, - "lng": 114.697802, - "name": "河源市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "450100", - "people_count_2010": 6705437, - "lat": 22.82402, - "lng": 108.320004, - "name": "南宁市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "441900", - "people_count_2010": 8200000, - "lat": 23.046237, - "lng": 113.746262, - "name": "东莞市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "445300", - "people_count_2010": 2367154, - "lat": 22.929801, - "lng": 112.044439, - "name": "云浮市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "450500", - "people_count_2010": 1539251, - "lat": 21.473343, - "lng": 109.119254, - "name": "北海市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "371700", - "people_count_2010": 8271368, - "lat": 35.246531, - "lng": 115.469381, - "name": "菏泽市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "440600", - "people_count_2010": 7242689, - "lat": 23.028762, - "lng": 113.122717, - "name": "佛山市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "220600", - "people_count_2010": 1660850, - "lat": 41.942505, - "lng": 126.427839, - "name": "白山市", - "level": "city", - "parent": "吉林省" - }, - { - "adcode": "350800", - "people_count_2010": 5419351, - "lat": 25.091603, - "lng": 117.02978, - "name": "龙岩市", - "level": "city", - "parent": "福建省" - }, - { - "adcode": "450700", - "people_count_2010": 3127047, - "lat": 21.967127, - "lng": 108.624175, - "name": "钦州市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "469027", - "people_count_2010": 467161, - "lat": 18.74758, - "lng": 109.175444, - "name": "乐东黎族自治县", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "542200", - "people_count_2010": 364463, - "lat": 29.236023, - "lng": 91.766529, - "name": "山南地区", - "level": "city", - "parent": "西藏自治区" - }, - { - "adcode": "131100", - "people_count_2010": 39774686, - "lat": 37.735097, - "lng": 115.665993, - "name": "衡水市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "511500", - "people_count_2010": 4471896, - "lat": 28.760189, - "lng": 104.630825, - "name": "宜宾市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "130600", - "people_count_2010": 11496109, - "lat": 38.867657, - "lng": 115.482331, - "name": "保定市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "120100", - "people_count_2010": 13450226, - "lat": 39.125596, - "lng": 117.190182, - "name": "天津市市辖区", - "level": "city", - "parent": "天津市" - }, - { - "adcode": "120200", - "people_count_2010": 1847910, - "lat": 39.330613, - "lng": 117.824898, - "name": "天津市郊县", - "level": "city", - "parent": "天津市" - }, - { - "adcode": "429021", - "people_count_2010": 76140, - "lat": 31.744449, - "lng": 110.671525, - "name": "神农架林区", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "542400", - "people_count_2010": 462381, - "lat": 31.476004, - "lng": 92.060214, - "name": "那曲地区", - "level": "city", - "parent": "西藏自治区" - }, - { - "adcode": "623000", - "people_count_2010": 689132, - "lat": 34.986354, - "lng": 102.911008, - "name": "甘南藏族自治州", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "621000", - "people_count_2010": 2211191, - "lat": 35.734218, - "lng": 107.638372, - "name": "庆阳市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "430500", - "people_count_2010": 7076343, - "lat": 27.237842, - "lng": 111.46923, - "name": "邵阳市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "130300", - "people_count_2010": 3722351, - "lat": 39.942531, - "lng": 119.586579, - "name": "秦皇岛市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "130700", - "people_count_2010": 3718213, - "lat": 40.811901, - "lng": 114.884091, - "name": "张家口市", - "level": "city", - "parent": "河北省" - }, - { - "adcode": "652700", - "people_count_2010": 443680, - "lat": 44.903258, - "lng": 82.074778, - "name": "博尔塔拉蒙古自治州", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "653100", - "people_count_2010": 4017164, - "lat": 39.467664, - "lng": 75.989138, - "name": "喀什地区", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "652900", - "people_count_2010": 2896379, - "lat": 41.170712, - "lng": 80.265068, - "name": "阿克苏地区", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "653200", - "people_count_2010": 4480430, - "lat": 37.110687, - "lng": 79.92533, - "name": "和田地区", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "659004", - "people_count_2010": 96436, - "lat": 44.167401, - "lng": 87.526884, - "name": "五家渠市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "659008", - "people_count_2010": 770886, - "lat": 43.6832, - "lng": 80.63579, - "name": "可克达拉市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "652300", - "people_count_2010": 1731864, - "lat": 44.014577, - "lng": 87.304012, - "name": "昌吉回族自治州", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "430200", - "people_count_2010": 3857100, - "lat": 27.835806, - "lng": 113.151737, - "name": "株洲市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "411000", - "people_count_2010": 4275430, - "lat": 34.022956, - "lng": 113.826063, - "name": "许昌市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "513300", - "people_count_2010": 5665663, - "lat": 30.050663, - "lng": 101.963815, - "name": "甘孜藏族自治州", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "220100", - "people_count_2010": 6886682, - "lat": 43.886841, - "lng": 125.3245, - "name": "长春市", - "level": "city", - "parent": "吉林省" - }, - { - "adcode": "340300", - "people_count_2010": 3136401, - "lat": 32.939667, - "lng": 117.363228, - "name": "蚌埠市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "150900", - "people_count_2010": 2293073, - "lat": 41.034126, - "lng": 113.114543, - "name": "乌兰察布市", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "469026", - "people_count_2010": 256931, - "lat": 19.260968, - "lng": 109.053351, - "name": "昌江黎族自治县", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "211100", - "people_count_2010": 1392493, - "lat": 41.124484, - "lng": 122.06957, - "name": "盘锦市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "610900", - "people_count_2010": 2629906, - "lat": 32.6903, - "lng": 109.029273, - "name": "安康市", - "level": "city", - "parent": "陕西省" - }, - { - "adcode": "632800", - "people_count_2010": 536460, - "lat": 37.374663, - "lng": 97.370785, - "name": "海西蒙古族藏族自治州", - "level": "city", - "parent": "青海省" - }, - { - "adcode": "110100", - "people_count_2010": 18934592, - "lat": 39.904989, - "lng": 116.405285, - "name": "北京市市辖区", - "level": "city", - "parent": "北京市" - }, - { - "adcode": "659003", - "people_count_2010": 135727, - "lat": 39.867316, - "lng": 79.077978, - "name": "图木舒克市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "340400", - "people_count_2010": 2333896, - "lat": 32.647574, - "lng": 117.018329, - "name": "淮南市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "460400", - "people_count_2010": null, - "lat": 19.517486, - "lng": 109.576782, - "name": "儋州市", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "150200", - "people_count_2010": 2751850, - "lat": 40.658168, - "lng": 109.840405, - "name": "包头市", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "331100", - "people_count_2010": 2116957, - "lat": 28.451993, - "lng": 119.921786, - "name": "丽水市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "330300", - "people_count_2010": 9130194, - "lat": 28.000575, - "lng": 120.672111, - "name": "温州市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "150400", - "people_count_2010": 4341245, - "lat": 42.275317, - "lng": 118.956806, - "name": "赤峰市", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "150300", - "people_count_2010": 532902, - "lat": 39.673734, - "lng": 106.825563, - "name": "乌海市", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "360600", - "people_count_2010": 1125156, - "lat": 28.238638, - "lng": 117.033838, - "name": "鹰潭市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "330400", - "people_count_2010": 4501657, - "lat": 30.762653, - "lng": 120.750865, - "name": "嘉兴市", - "level": "city", - "parent": "浙江省" - }, - { - "adcode": "340800", - "people_count_2010": 5311379, - "lat": 30.50883, - "lng": 117.043551, - "name": "安庆市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "420100", - "people_count_2010": 10171553, - "lat": 30.584355, - "lng": 114.298572, - "name": "武汉市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "341800", - "people_count_2010": 2532938, - "lat": 30.945667, - "lng": 118.757995, - "name": "宣城市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "421300", - "people_count_2010": 2955910, - "lat": 31.717497, - "lng": 113.37377, - "name": "随州市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "150800", - "people_count_2010": 1669915, - "lat": 40.757402, - "lng": 107.416959, - "name": "巴彦淖尔市", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "150500", - "people_count_2010": 3545175, - "lat": 43.617429, - "lng": 122.263119, - "name": "通辽市", - "level": "city", - "parent": "内蒙古自治区" - }, - { - "adcode": "469030", - "people_count_2010": 167918, - "lat": 19.03557, - "lng": 109.839996, - "name": "琼中黎族苗族自治县", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "469023", - "people_count_2010": 5939907, - "lat": 19.737095, - "lng": 110.007147, - "name": "澄迈县", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "340100", - "people_count_2010": 5680145, - "lat": 31.86119, - "lng": 117.283042, - "name": "合肥市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "341500", - "people_count_2010": 5623217, - "lat": 31.752889, - "lng": 116.507676, - "name": "六安市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "341000", - "people_count_2010": 1358980, - "lat": 29.709239, - "lng": 118.317325, - "name": "黄山市", - "level": "city", - "parent": "安徽省" - }, - { - "adcode": "230700", - "people_count_2010": 1148126, - "lat": 47.724775, - "lng": 128.899396, - "name": "伊春市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "421000", - "people_count_2010": 5728937, - "lat": 30.326857, - "lng": 112.23813, - "name": "荆州市", - "level": "city", - "parent": "湖北省" - }, - { - "adcode": "469001", - "people_count_2010": 104119, - "lat": 18.776921, - "lng": 109.516662, - "name": "五指山市", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "469021", - "people_count_2010": 5939907, - "lat": 19.684966, - "lng": 110.349235, - "name": "定安县", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "659002", - "people_count_2010": 158593, - "lat": 40.541914, - "lng": 81.285884, - "name": "阿拉尔市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "469025", - "people_count_2010": 284614, - "lat": 19.224584, - "lng": 109.452606, - "name": "白沙黎族自治县", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "630100", - "people_count_2010": 1911721, - "lat": 36.623178, - "lng": 101.778916, - "name": "西宁市", - "level": "city", - "parent": "青海省" - }, - { - "adcode": "469028", - "people_count_2010": 427873, - "lat": 18.505006, - "lng": 110.037218, - "name": "陵水黎族自治县", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "445100", - "people_count_2010": 5300000, - "lat": 23.661701, - "lng": 116.632301, - "name": "潮州市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "610300", - "people_count_2010": 3716737, - "lat": 34.369315, - "lng": 107.14487, - "name": "宝鸡市", - "level": "city", - "parent": "陕西省" - }, - { - "adcode": "610500", - "people_count_2010": 5286077, - "lat": 34.499381, - "lng": 109.502882, - "name": "渭南市", - "level": "city", - "parent": "陕西省" - }, - { - "adcode": "230400", - "people_count_2010": 2162557, - "lat": 47.332085, - "lng": 130.277487, - "name": "鹤岗市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "610700", - "people_count_2010": 3416196, - "lat": 33.077668, - "lng": 107.028621, - "name": "汉中市", - "level": "city", - "parent": "陕西省" - }, - { - "adcode": "611000", - "people_count_2010": 2341742, - "lat": 33.868319, - "lng": 109.939776, - "name": "商洛市", - "level": "city", - "parent": "陕西省" - }, - { - "adcode": "469007", - "people_count_2010": 408309, - "lat": 19.10198, - "lng": 108.653789, - "name": "东方市", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "230100", - "people_count_2010": 10592114, - "lat": 45.756967, - "lng": 126.642464, - "name": "哈尔滨市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "460100", - "people_count_2010": 2046170, - "lat": 20.031971, - "lng": 110.33119, - "name": "海口市", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "621200", - "people_count_2010": 4522320, - "lat": 33.388598, - "lng": 104.929379, - "name": "陇南市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "360300", - "people_count_2010": 1854515, - "lat": 27.622946, - "lng": 113.852186, - "name": "萍乡市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "360100", - "people_count_2010": 4520070, - "lat": 28.676493, - "lng": 115.892151, - "name": "南昌市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "652800", - "people_count_2010": 1406114, - "lat": 41.768552, - "lng": 86.150969, - "name": "巴音郭楞蒙古自治州", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "610800", - "people_count_2010": 3351436, - "lat": 38.290162, - "lng": 109.741193, - "name": "榆林市", - "level": "city", - "parent": "陕西省" - }, - { - "adcode": "445200", - "people_count_2010": 5972081, - "lat": 23.543778, - "lng": 116.355733, - "name": "揭阳市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "650400", - "people_count_2010": null, - "lat": 42.947613, - "lng": 89.184078, - "name": "吐鲁番市", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "440900", - "people_count_2010": 5831304, - "lat": 21.659751, - "lng": 110.919229, - "name": "茂名市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "652200", - "people_count_2010": 2123059, - "lat": 42.833248, - "lng": 93.51316, - "name": "哈密地区", - "level": "city", - "parent": "新疆维吾尔自治区" - }, - { - "adcode": "410600", - "people_count_2010": 1569208, - "lat": 35.748236, - "lng": 114.295444, - "name": "鹤壁市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "431200", - "people_count_2010": 4986789, - "lat": 27.550082, - "lng": 109.97824, - "name": "怀化市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "430800", - "people_count_2010": 1478149, - "lat": 29.127401, - "lng": 110.479921, - "name": "张家界市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "431100", - "people_count_2010": 5653754, - "lat": 26.434516, - "lng": 111.608019, - "name": "永州市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "431300", - "people_count_2010": 3773474, - "lat": 27.728136, - "lng": 112.008497, - "name": "娄底市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "431000", - "people_count_2010": 4583531, - "lat": 25.793589, - "lng": 113.032067, - "name": "郴州市", - "level": "city", - "parent": "湖南省" - }, - { - "adcode": "230600", - "people_count_2010": 3138370, - "lat": 46.590734, - "lng": 125.11272, - "name": "大庆市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "231200", - "people_count_2010": 5418153, - "lat": 46.637393, - "lng": 126.99293, - "name": "绥化市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "419001", - "people_count_2010": null, - "lat": 35.090378, - "lng": 112.590047, - "name": "济源市", - "level": "city", - "parent": "河南省" - }, - { - "adcode": "320300", - "people_count_2010": 8060518, - "lat": 34.261792, - "lng": 117.184811, - "name": "徐州市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "320100", - "people_count_2010": 7958116, - "lat": 32.041544, - "lng": 118.767413, - "name": "南京市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "320200", - "people_count_2010": 6316878, - "lat": 31.574729, - "lng": 120.301663, - "name": "无锡市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "320600", - "people_count_2010": 8442973, - "lat": 32.016212, - "lng": 120.864608, - "name": "南通市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "321000", - "people_count_2010": 4453694, - "lat": 32.393159, - "lng": 119.421003, - "name": "扬州市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "230900", - "people_count_2010": 920471, - "lat": 45.771266, - "lng": 131.015584, - "name": "七台河市", - "level": "city", - "parent": "黑龙江省" - }, - { - "adcode": "350300", - "people_count_2010": 2778508, - "lat": 25.431011, - "lng": 119.007558, - "name": "莆田市", - "level": "city", - "parent": "福建省" - }, - { - "adcode": "441800", - "people_count_2010": 3788927, - "lat": 23.685022, - "lng": 113.051227, - "name": "清远市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "451000", - "people_count_2010": 3466758, - "lat": 23.897742, - "lng": 106.616285, - "name": "百色市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "469029", - "people_count_2010": 5939907, - "lat": 18.636371, - "lng": 109.70245, - "name": "保亭黎族苗族自治县", - "level": "city", - "parent": "海南省" - }, - { - "adcode": "360700", - "people_count_2010": 8368447, - "lat": 25.85097, - "lng": 114.940278, - "name": "赣州市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "360900", - "people_count_2010": 5337247, - "lat": 27.8043, - "lng": 114.391136, - "name": "宜春市", - "level": "city", - "parent": "江西省" - }, - { - "adcode": "450900", - "people_count_2010": 5455905, - "lat": 22.63136, - "lng": 110.154393, - "name": "玉林市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "371500", - "people_count_2010": 5760095, - "lat": 36.456013, - "lng": 115.980367, - "name": "聊城市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "451200", - "people_count_2010": 3369251, - "lat": 24.695899, - "lng": 108.062105, - "name": "河池市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "620600", - "people_count_2010": 1979557, - "lat": 37.929996, - "lng": 102.634697, - "name": "武威市", - "level": "city", - "parent": "甘肃省" - }, - { - "adcode": "370800", - "people_count_2010": 8090844, - "lat": 35.415393, - "lng": 116.587245, - "name": "济宁市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "370200", - "people_count_2010": 8780462, - "lat": 36.082982, - "lng": 120.355173, - "name": "青岛市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "371600", - "people_count_2010": 3748474, - "lat": 37.383542, - "lng": 118.016974, - "name": "滨州市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "451400", - "people_count_2010": 1994285, - "lat": 22.404108, - "lng": 107.353926, - "name": "崇左市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "450200", - "people_count_2010": 3758704, - "lat": 24.314617, - "lng": 109.411703, - "name": "柳州市", - "level": "city", - "parent": "广西壮族自治区" - }, - { - "adcode": "320400", - "people_count_2010": 4728581, - "lat": 31.772752, - "lng": 119.946973, - "name": "常州市", - "level": "city", - "parent": "江苏省" - }, - { - "adcode": "441300", - "people_count_2010": 4580386, - "lat": 23.079404, - "lng": 114.412599, - "name": "惠州市", - "level": "city", - "parent": "广东省" - }, - { - "adcode": "540300", - "people_count_2010": null, - "lat": 31.136875, - "lng": 97.178452, - "name": "昌都市", - "level": "city", - "parent": "西藏自治区" - }, - { - "adcode": "532800", - "people_count_2010": 4551785, - "lat": 22.001724, - "lng": 100.797941, - "name": "西双版纳傣族自治州", - "level": "city", - "parent": "云南省" - }, - { - "adcode": "371300", - "people_count_2010": 9484805, - "lat": 35.065282, - "lng": 118.326443, - "name": "临沂市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "370600", - "people_count_2010": 6968202, - "lat": 37.539297, - "lng": 121.391382, - "name": "烟台市", - "level": "city", - "parent": "山东省" - }, - { - "adcode": "210800", - "people_count_2010": 2428534, - "lat": 40.667432, - "lng": 122.235151, - "name": "营口市", - "level": "city", - "parent": "辽宁省" - }, - { - "adcode": "510100", - "people_count_2010": 14091220, - "lat": 30.659462, - "lng": 104.065735, - "name": "成都市", - "level": "city", - "parent": "四川省" - }, - { - "adcode": "420600", - "people_count_2010": 5495566, - "lat": 32.042426, - "lng": 112.144146, - "name": "襄阳市", - "level": "city", - "parent": "湖北省" - } - ], - "total": 369 -} +{ + "rows": [ + { + "adcode": "370400", + "people_count_2010": 3189966, + "lat": 34.856424, + "lng": 117.557964, + "name": "枣庄市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "411500", + "people_count_2010": 6085177, + "lat": 32.123274, + "lng": 114.075031, + "name": "信阳市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "411200", + "people_count_2010": 2181802, + "lat": 34.777338, + "lng": 111.194099, + "name": "三门峡市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "310100", + "people_count_2010": 20431439, + "lat": 31.231706, + "lng": 121.472644, + "name": "上海市市辖区", + "level": "city", + "parent": "上海市" + }, + { + "adcode": "141100", + "people_count_2010": 3727068, + "lat": 37.524366, + "lng": 111.134335, + "name": "吕梁市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "410300", + "people_count_2010": 6727880, + "lat": 34.663041, + "lng": 112.434468, + "name": "洛阳市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "520300", + "people_count_2010": 6127082, + "lat": 27.706626, + "lng": 106.937265, + "name": "遵义市", + "level": "city", + "parent": "贵州省" + }, + { + "adcode": "640500", + "people_count_2010": 1080832, + "lat": 37.514951, + "lng": 105.189568, + "name": "中卫市", + "level": "city", + "parent": "宁夏回族自治区" + }, + { + "adcode": "410800", + "people_count_2010": 4215858, + "lat": 35.23904, + "lng": 113.238266, + "name": "焦作市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "410700", + "people_count_2010": 5699625, + "lat": 35.302616, + "lng": 113.883991, + "name": "新乡市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "650200", + "people_count_2010": 391008, + "lat": 45.595886, + "lng": 84.873946, + "name": "克拉玛依市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "220400", + "people_count_2010": 1176239, + "lat": 42.902692, + "lng": 125.145349, + "name": "辽源市", + "level": "city", + "parent": "吉林省" + }, + { + "adcode": "220200", + "people_count_2010": 4413157, + "lat": 43.843577, + "lng": 126.55302, + "name": "吉林市", + "level": "city", + "parent": "吉林省" + }, + { + "adcode": "220500", + "people_count_2010": 2324439, + "lat": 41.721177, + "lng": 125.936501, + "name": "通化市", + "level": "city", + "parent": "吉林省" + }, + { + "adcode": "450400", + "people_count_2010": 2882200, + "lat": 23.474803, + "lng": 111.297604, + "name": "梧州市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "341100", + "people_count_2010": 3937868, + "lat": 32.303627, + "lng": 118.316264, + "name": "滁州市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "441500", + "people_count_2010": 2484942, + "lat": 22.774485, + "lng": 115.364238, + "name": "汕尾市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "130100", + "people_count_2010": 9388002, + "lat": 38.045474, + "lng": 114.502461, + "name": "石家庄市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "654300", + "people_count_2010": 603283, + "lat": 47.848393, + "lng": 88.13963, + "name": "阿勒泰地区", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "411700", + "people_count_2010": 7895662, + "lat": 32.980169, + "lng": 114.024736, + "name": "驻马店市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "411300", + "people_count_2010": 10313241, + "lat": 32.999082, + "lng": 112.540918, + "name": "南阳市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "370100", + "people_count_2010": 6774701, + "lat": 36.675807, + "lng": 117.000923, + "name": "济南市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "450800", + "people_count_2010": 4093874, + "lat": 23.0936, + "lng": 109.602146, + "name": "贵港市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "341700", + "people_count_2010": 1402518, + "lat": 30.656037, + "lng": 117.489157, + "name": "池州市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "321100", + "people_count_2010": 3114105, + "lat": 32.204402, + "lng": 119.452753, + "name": "镇江市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "320500", + "people_count_2010": 10963914, + "lat": 31.299379, + "lng": 120.619585, + "name": "苏州市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "620300", + "people_count_2010": 464050, + "lat": 38.514238, + "lng": 102.187888, + "name": "金昌市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "632200", + "people_count_2010": 382310, + "lat": 36.959435, + "lng": 100.901059, + "name": "海北藏族自治州", + "level": "city", + "parent": "青海省" + }, + { + "adcode": "630200", + "people_count_2010": null, + "lat": 36.502916, + "lng": 102.10327, + "name": "海东市", + "level": "city", + "parent": "青海省" + }, + { + "adcode": "411100", + "people_count_2010": 3294974, + "lat": 33.575855, + "lng": 114.026405, + "name": "漯河市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "330700", + "people_count_2010": 5327557, + "lat": 29.089524, + "lng": 119.649506, + "name": "金华市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "640400", + "people_count_2010": 1228156, + "lat": 36.004561, + "lng": 106.285241, + "name": "固原市", + "level": "city", + "parent": "宁夏回族自治区" + }, + { + "adcode": "511800", + "people_count_2010": 1507258, + "lat": 29.987722, + "lng": 103.001033, + "name": "雅安市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "370700", + "people_count_2010": 9060565, + "lat": 36.70925, + "lng": 119.107078, + "name": "潍坊市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "371100", + "people_count_2010": 2801013, + "lat": 35.428588, + "lng": 119.461208, + "name": "日照市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "331000", + "people_count_2010": 5973231, + "lat": 28.661378, + "lng": 121.428599, + "name": "台州市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "220300", + "people_count_2010": 2778595, + "lat": 43.170344, + "lng": 124.370785, + "name": "四平市", + "level": "city", + "parent": "吉林省" + }, + { + "adcode": "360400", + "people_count_2010": 4728778, + "lat": 29.712034, + "lng": 115.992811, + "name": "九江市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "321300", + "people_count_2010": 4678095, + "lat": 33.963008, + "lng": 118.275162, + "name": "宿迁市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "410900", + "people_count_2010": 3552086, + "lat": 35.768234, + "lng": 115.041299, + "name": "濮阳市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "533100", + "people_count_2010": 1745777, + "lat": 24.436694, + "lng": 98.578363, + "name": "德宏傣族景颇族自治州", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "440100", + "people_count_2010": 12728106, + "lat": 23.125178, + "lng": 113.280637, + "name": "广州市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "440700", + "people_count_2010": 4450703, + "lat": 22.590431, + "lng": 113.094942, + "name": "江门市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "533300", + "people_count_2010": 1184835, + "lat": 25.850949, + "lng": 98.854304, + "name": "怒江傈僳族自治州", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "441200", + "people_count_2010": 3916467, + "lat": 23.051546, + "lng": 112.472529, + "name": "肇庆市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "469022", + "people_count_2010": 5939907, + "lat": 19.362916, + "lng": 110.102773, + "name": "屯昌县", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "130800", + "people_count_2010": 3473201, + "lat": 40.976204, + "lng": 117.939152, + "name": "承德市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "130900", + "people_count_2010": 7698958, + "lat": 38.310582, + "lng": 116.857461, + "name": "沧州市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "330600", + "people_count_2010": 4923454, + "lat": 29.997117, + "lng": 120.582112, + "name": "绍兴市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "130200", + "people_count_2010": 7577289, + "lat": 39.635113, + "lng": 118.175393, + "name": "唐山市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "231000", + "people_count_2010": 2549232, + "lat": 44.582962, + "lng": 129.618602, + "name": "牡丹江市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "210400", + "people_count_2010": 2138090, + "lat": 41.875956, + "lng": 123.921109, + "name": "抚顺市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "210500", + "people_count_2010": 1709538, + "lat": 41.297909, + "lng": 123.770519, + "name": "本溪市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "210900", + "people_count_2010": 1779628, + "lat": 42.011796, + "lng": 121.648962, + "name": "阜新市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "330900", + "people_count_2010": 742456, + "lat": 30.016028, + "lng": 122.106863, + "name": "舟山市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "370900", + "people_count_2010": 5478265, + "lat": 36.194968, + "lng": 117.129063, + "name": "泰安市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "210700", + "people_count_2010": 3126463, + "lat": 41.119269, + "lng": 121.135742, + "name": "锦州市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "520200", + "people_count_2010": 2815987, + "lat": 26.584643, + "lng": 104.846743, + "name": "六盘水市", + "level": "city", + "parent": "贵州省" + }, + { + "adcode": "522600", + "people_count_2010": 3481891, + "lat": 26.583352, + "lng": 107.977488, + "name": "黔东南苗族侗族自治州", + "level": "city", + "parent": "贵州省" + }, + { + "adcode": "370300", + "people_count_2010": 4530597, + "lat": 36.814939, + "lng": 118.047648, + "name": "淄博市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "620900", + "people_count_2010": 1106492, + "lat": 39.744023, + "lng": 98.510795, + "name": "酒泉市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "542500", + "people_count_2010": 95465, + "lat": 32.503187, + "lng": 80.105498, + "name": "阿里地区", + "level": "city", + "parent": "西藏自治区" + }, + { + "adcode": "530300", + "people_count_2010": 5852164, + "lat": 25.501557, + "lng": 103.797851, + "name": "曲靖市", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "530500", + "people_count_2010": 2506491, + "lat": 25.111802, + "lng": 99.167133, + "name": "保山市", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "532900", + "people_count_2010": 5274343, + "lat": 25.589449, + "lng": 100.225668, + "name": "大理白族自治州", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "341300", + "people_count_2010": 6974366, + "lat": 33.633891, + "lng": 116.984084, + "name": "宿州市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "530600", + "people_count_2010": 5185150, + "lat": 27.336999, + "lng": 103.717216, + "name": "昭通市", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "530900", + "people_count_2010": 5801192, + "lat": 23.886567, + "lng": 100.08697, + "name": "临沧市", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "640100", + "people_count_2010": 1993088, + "lat": 38.46637, + "lng": 106.278179, + "name": "银川市", + "level": "city", + "parent": "宁夏回族自治区" + }, + { + "adcode": "330100", + "people_count_2010": 8402597, + "lat": 30.287459, + "lng": 120.153576, + "name": "杭州市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "532600", + "people_count_2010": 4610409, + "lat": 23.36951, + "lng": 104.24401, + "name": "文山壮族苗族自治州", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "211400", + "people_count_2010": 2623541, + "lat": 40.755572, + "lng": 120.856394, + "name": "葫芦岛市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "451100", + "people_count_2010": 2348582, + "lat": 24.414141, + "lng": 111.552056, + "name": "贺州市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "440200", + "people_count_2010": 2826246, + "lat": 24.801322, + "lng": 113.591544, + "name": "韶关市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "140800", + "people_count_2010": 5134779, + "lat": 35.022778, + "lng": 111.003957, + "name": "运城市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "140600", + "people_count_2010": 1714857, + "lat": 39.331261, + "lng": 112.433387, + "name": "朔州市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "659006", + "people_count_2010": 770886, + "lat": 41.827251, + "lng": 85.501218, + "name": "铁门关市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "141000", + "people_count_2010": 4316610, + "lat": 36.08415, + "lng": 111.517973, + "name": "临汾市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "350200", + "people_count_2010": 3531347, + "lat": 24.490474, + "lng": 118.11022, + "name": "厦门市", + "level": "city", + "parent": "福建省" + }, + { + "adcode": "371400", + "people_count_2010": 5568235, + "lat": 37.453968, + "lng": 116.307428, + "name": "德州市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "310200", + "people_count_2010": 703722, + "lat": 31.623587, + "lng": 121.397417, + "name": "上海市郊县", + "level": "city", + "parent": "上海市" + }, + { + "adcode": "632300", + "people_count_2010": 737781, + "lat": 35.517744, + "lng": 102.019988, + "name": "黄南藏族自治州", + "level": "city", + "parent": "青海省" + }, + { + "adcode": "632500", + "people_count_2010": 623373, + "lat": 36.280353, + "lng": 100.619542, + "name": "海南藏族自治州", + "level": "city", + "parent": "青海省" + }, + { + "adcode": "211300", + "people_count_2010": 3044641, + "lat": 41.576758, + "lng": 120.451176, + "name": "朝阳市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "511900", + "people_count_2010": 3256981, + "lat": 31.858809, + "lng": 106.753669, + "name": "巴中市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "620400", + "people_count_2010": 1708752, + "lat": 36.54568, + "lng": 104.173606, + "name": "白银市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "532500", + "people_count_2010": 8575364, + "lat": 23.366775, + "lng": 103.384182, + "name": "红河哈尼族彝族自治州", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "420900", + "people_count_2010": 4799035, + "lat": 30.926423, + "lng": 113.926655, + "name": "孝感市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "130500", + "people_count_2010": 6433949, + "lat": 37.0682, + "lng": 114.508851, + "name": "邢台市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "350600", + "people_count_2010": 4809983, + "lat": 24.510897, + "lng": 117.661801, + "name": "漳州市", + "level": "city", + "parent": "福建省" + }, + { + "adcode": "511000", + "people_count_2010": 3209502, + "lat": 29.58708, + "lng": 105.066138, + "name": "内江市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "510700", + "people_count_2010": 4571807, + "lat": 31.46402, + "lng": 104.741722, + "name": "绵阳市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "140500", + "people_count_2010": 1802201, + "lat": 35.497553, + "lng": 112.851274, + "name": "晋城市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "511100", + "people_count_2010": 2572945, + "lat": 29.582024, + "lng": 103.761263, + "name": "乐山市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "511400", + "people_count_2010": 2917471, + "lat": 30.048318, + "lng": 103.831788, + "name": "眉山市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "512000", + "people_count_2010": 4552496, + "lat": 30.122211, + "lng": 104.641917, + "name": "资阳市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "420300", + "people_count_2010": 3340841, + "lat": 32.646907, + "lng": 110.787916, + "name": "十堰市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "513200", + "people_count_2010": 898708, + "lat": 31.899792, + "lng": 102.221374, + "name": "阿坝藏族羌族自治州", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "640200", + "people_count_2010": 725482, + "lat": 39.01333, + "lng": 106.376173, + "name": "石嘴山市", + "level": "city", + "parent": "宁夏回族自治区" + }, + { + "adcode": "469006", + "people_count_2010": 545597, + "lat": 18.796216, + "lng": 110.388793, + "name": "万宁市", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "450300", + "people_count_2010": 5374183, + "lat": 25.274215, + "lng": 110.299121, + "name": "桂林市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "520600", + "people_count_2010": null, + "lat": 27.718346, + "lng": 109.191555, + "name": "铜仁市", + "level": "city", + "parent": "贵州省" + }, + { + "adcode": "340500", + "people_count_2010": 1366302, + "lat": 31.689362, + "lng": 118.507906, + "name": "马鞍山市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "341600", + "people_count_2010": 4900000, + "lat": 33.869338, + "lng": 115.782939, + "name": "亳州市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "220700", + "people_count_2010": 2880086, + "lat": 45.118243, + "lng": 124.823608, + "name": "松原市", + "level": "city", + "parent": "吉林省" + }, + { + "adcode": "150100", + "people_count_2010": 3218484, + "lat": 40.818311, + "lng": 111.670801, + "name": "呼和浩特市", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "500200", + "people_count_2010": 13563221, + "lat": 29.291965, + "lng": 108.170255, + "name": "重庆市郊县", + "level": "city", + "parent": "重庆市" + }, + { + "adcode": "659001", + "people_count_2010": 380130, + "lat": 44.305886, + "lng": 86.041075, + "name": "石河子市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "150700", + "people_count_2010": 2607496, + "lat": 49.215333, + "lng": 119.758168, + "name": "呼伦贝尔市", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "360800", + "people_count_2010": 4810339, + "lat": 27.111699, + "lng": 114.986373, + "name": "吉安市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "632700", + "people_count_2010": 867777, + "lat": 33.004049, + "lng": 97.008522, + "name": "玉树藏族自治州", + "level": "city", + "parent": "青海省" + }, + { + "adcode": "410500", + "people_count_2010": 5209899, + "lat": 36.103442, + "lng": 114.352482, + "name": "安阳市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "152500", + "people_count_2010": 1028022, + "lat": 43.944018, + "lng": 116.090996, + "name": "锡林郭勒盟", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "152200", + "people_count_2010": 2193640, + "lat": 46.076268, + "lng": 122.070317, + "name": "兴安盟", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "152900", + "people_count_2010": 231334, + "lat": 38.844814, + "lng": 105.706422, + "name": "阿拉善盟", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "540200", + "people_count_2010": null, + "lat": 29.267519, + "lng": 88.885148, + "name": "日喀则市", + "level": "city", + "parent": "西藏自治区" + }, + { + "adcode": "430600", + "people_count_2010": 6136430, + "lat": 29.37029, + "lng": 113.132855, + "name": "岳阳市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "130400", + "people_count_2010": 9174683, + "lat": 36.612273, + "lng": 114.490686, + "name": "邯郸市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "429005", + "people_count_2010": 946277, + "lat": 30.421215, + "lng": 112.896866, + "name": "潜江市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "430400", + "people_count_2010": 7193113, + "lat": 26.900358, + "lng": 112.607693, + "name": "衡阳市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "361000", + "people_count_2010": 3922419, + "lat": 27.98385, + "lng": 116.358351, + "name": "抚州市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "522300", + "people_count_2010": 2804612, + "lat": 25.08812, + "lng": 104.897971, + "name": "黔西南布依族苗族自治州", + "level": "city", + "parent": "贵州省" + }, + { + "adcode": "230500", + "people_count_2010": 3232812, + "lat": 46.643442, + "lng": 131.157304, + "name": "双鸭山市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "411600", + "people_count_2010": 8953534, + "lat": 33.620357, + "lng": 114.649653, + "name": "周口市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "659005", + "people_count_2010": 770886, + "lat": 47.353177, + "lng": 87.824932, + "name": "北屯市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "230800", + "people_count_2010": 2003656, + "lat": 46.809606, + "lng": 130.361634, + "name": "佳木斯市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "220800", + "people_count_2010": 2032356, + "lat": 45.619026, + "lng": 122.841114, + "name": "白城市", + "level": "city", + "parent": "吉林省" + }, + { + "adcode": "530800", + "people_count_2010": null, + "lat": 22.777321, + "lng": 100.972344, + "name": "普洱市", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "533400", + "people_count_2010": 560787, + "lat": 27.826853, + "lng": 99.706463, + "name": "迪庆藏族自治州", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "211000", + "people_count_2010": 1858768, + "lat": 41.269402, + "lng": 123.18152, + "name": "辽阳市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "460200", + "people_count_2010": 6600000, + "lat": 18.247872, + "lng": 109.508268, + "name": "三亚市", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "469024", + "people_count_2010": 5939907, + "lat": 19.908293, + "lng": 109.687697, + "name": "临高县", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "441700", + "people_count_2010": 2421748, + "lat": 21.859222, + "lng": 111.975107, + "name": "阳江市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "440800", + "people_count_2010": 8512201, + "lat": 21.274898, + "lng": 110.364977, + "name": "湛江市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "653000", + "people_count_2010": 525570, + "lat": 39.713431, + "lng": 76.172825, + "name": "克孜勒苏柯尔克孜自治州", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "620800", + "people_count_2010": 2068033, + "lat": 35.54279, + "lng": 106.684691, + "name": "平凉市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "140700", + "people_count_2010": 3228744, + "lat": 37.696495, + "lng": 112.736465, + "name": "晋中市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "140900", + "people_count_2010": 3067503, + "lat": 38.41769, + "lng": 112.733538, + "name": "忻州市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "620200", + "people_count_2010": 231853, + "lat": 39.786529, + "lng": 98.277304, + "name": "嘉峪关市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "140100", + "people_count_2010": 4997055, + "lat": 37.857014, + "lng": 112.549248, + "name": "太原市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "140200", + "people_count_2010": 2595041, + "lat": 40.09031, + "lng": 113.295259, + "name": "大同市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "140300", + "people_count_2010": 1210910, + "lat": 37.861188, + "lng": 113.583285, + "name": "阳泉市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "420800", + "people_count_2010": 2851173, + "lat": 31.03542, + "lng": 112.204251, + "name": "荆门市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "540400", + "people_count_2010": null, + "lat": 29.654693, + "lng": 94.362348, + "name": "林芝市", + "level": "city", + "parent": "西藏自治区" + }, + { + "adcode": "513400", + "people_count_2010": 4747214, + "lat": 27.886762, + "lng": 102.258746, + "name": "凉山彝族自治州", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "350500", + "people_count_2010": 8123635, + "lat": 24.908853, + "lng": 118.589421, + "name": "泉州市", + "level": "city", + "parent": "福建省" + }, + { + "adcode": "500100", + "people_count_2010": 14894880, + "lat": 29.533155, + "lng": 106.504962, + "name": "重庆市市辖区", + "level": "city", + "parent": "重庆市" + }, + { + "adcode": "231100", + "people_count_2010": 1673899, + "lat": 50.249585, + "lng": 127.499023, + "name": "黑河市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "420500", + "people_count_2010": 4059686, + "lat": 30.702636, + "lng": 111.290843, + "name": "宜昌市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "429004", + "people_count_2010": 1200000, + "lat": 30.364953, + "lng": 113.453974, + "name": "仙桃市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "210600", + "people_count_2010": 2444697, + "lat": 40.124296, + "lng": 124.383044, + "name": "丹东市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "530700", + "people_count_2010": 9332569, + "lat": 26.872108, + "lng": 100.233026, + "name": "丽江市", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "532300", + "people_count_2010": 7161399, + "lat": 25.041988, + "lng": 101.546046, + "name": "楚雄彝族自治州", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "420700", + "people_count_2010": 1191276, + "lat": 30.396536, + "lng": 114.890593, + "name": "鄂州市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "371000", + "people_count_2010": 2804771, + "lat": 37.509691, + "lng": 122.116394, + "name": "威海市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "341200", + "people_count_2010": 7630903, + "lat": 32.896969, + "lng": 115.819729, + "name": "阜阳市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "421100", + "people_count_2010": 6162069, + "lat": 30.447711, + "lng": 114.879365, + "name": "黄冈市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "131000", + "people_count_2010": 4358839, + "lat": 39.523927, + "lng": 116.704441, + "name": "廊坊市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "140400", + "people_count_2010": 2569724, + "lat": 36.191112, + "lng": 113.113556, + "name": "长治市", + "level": "city", + "parent": "山西省" + }, + { + "adcode": "620100", + "people_count_2010": 2712348, + "lat": 36.058039, + "lng": 103.823557, + "name": "兰州市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "370500", + "people_count_2010": 2035338, + "lat": 37.434564, + "lng": 118.66471, + "name": "东营市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "371200", + "people_count_2010": 1298529, + "lat": 36.214397, + "lng": 117.677736, + "name": "莱芜市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "442000", + "people_count_2010": 3100000, + "lat": 22.521113, + "lng": 113.382391, + "name": "中山市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "340200", + "people_count_2010": 2263123, + "lat": 31.326319, + "lng": 118.376451, + "name": "芜湖市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "621100", + "people_count_2010": 2698624, + "lat": 35.579578, + "lng": 104.626294, + "name": "定西市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "620500", + "people_count_2010": 3539218, + "lat": 34.578529, + "lng": 105.724998, + "name": "天水市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "469002", + "people_count_2010": 483217, + "lat": 19.246011, + "lng": 110.466785, + "name": "琼海市", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "350400", + "people_count_2010": 2503388, + "lat": 26.265444, + "lng": 117.635001, + "name": "三明市", + "level": "city", + "parent": "福建省" + }, + { + "adcode": "610100", + "people_count_2010": 6816285, + "lat": 34.263161, + "lng": 108.948024, + "name": "西安市", + "level": "city", + "parent": "陕西省" + }, + { + "adcode": "222400", + "people_count_2010": 2270816, + "lat": 42.904823, + "lng": 129.513228, + "name": "延边朝鲜族自治州", + "level": "city", + "parent": "吉林省" + }, + { + "adcode": "451300", + "people_count_2010": 2099711, + "lat": 23.733766, + "lng": 109.229772, + "name": "来宾市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "340700", + "people_count_2010": 651657, + "lat": 30.929935, + "lng": 117.816576, + "name": "铜陵市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "520100", + "people_count_2010": 4058115, + "lat": 26.578343, + "lng": 106.713478, + "name": "贵阳市", + "level": "city", + "parent": "贵州省" + }, + { + "adcode": "522700", + "people_count_2010": 3232714, + "lat": 26.258219, + "lng": 107.517156, + "name": "黔南布依族苗族自治州", + "level": "city", + "parent": "贵州省" + }, + { + "adcode": "429006", + "people_count_2010": 1400000, + "lat": 30.653061, + "lng": 113.165862, + "name": "天门市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "520500", + "people_count_2010": null, + "lat": 27.301693, + "lng": 105.28501, + "name": "毕节市", + "level": "city", + "parent": "贵州省" + }, + { + "adcode": "530400", + "people_count_2010": 2960834, + "lat": 24.350461, + "lng": 102.543907, + "name": "玉溪市", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "210100", + "people_count_2010": 7131923, + "lat": 41.796767, + "lng": 123.429096, + "name": "沈阳市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "360200", + "people_count_2010": 1587477, + "lat": 29.29256, + "lng": 117.214664, + "name": "景德镇市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "460300", + "people_count_2010": null, + "lat": 16.831039, + "lng": 112.34882, + "name": "三沙市", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "350700", + "people_count_2010": 2645548, + "lat": 26.635627, + "lng": 118.178459, + "name": "南平市", + "level": "city", + "parent": "福建省" + }, + { + "adcode": "511600", + "people_count_2010": 3205476, + "lat": 30.456398, + "lng": 106.633369, + "name": "广安市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "650100", + "people_count_2010": 2715928, + "lat": 43.792818, + "lng": 87.617733, + "name": "乌鲁木齐市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "361100", + "people_count_2010": 6582990, + "lat": 28.44442, + "lng": 117.971185, + "name": "上饶市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "469005", + "people_count_2010": 537426, + "lat": 19.612986, + "lng": 110.753975, + "name": "文昌市", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "210200", + "people_count_2010": 6665881, + "lat": 38.91459, + "lng": 121.618622, + "name": "大连市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "530100", + "people_count_2010": 7537860, + "lat": 25.040609, + "lng": 102.712251, + "name": "昆明市", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "410100", + "people_count_2010": 8638373, + "lat": 34.757975, + "lng": 113.665412, + "name": "郑州市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "360500", + "people_count_2010": 1138874, + "lat": 27.810834, + "lng": 114.930835, + "name": "新余市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "321200", + "people_count_2010": 4691468, + "lat": 32.484882, + "lng": 119.915176, + "name": "泰州市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "210300", + "people_count_2010": 3647670, + "lat": 41.110626, + "lng": 122.995632, + "name": "鞍山市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "320800", + "people_count_2010": 4271650, + "lat": 33.597506, + "lng": 119.021265, + "name": "淮安市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "350900", + "people_count_2010": 2821996, + "lat": 26.65924, + "lng": 119.527082, + "name": "宁德市", + "level": "city", + "parent": "福建省" + }, + { + "adcode": "640300", + "people_count_2010": 1438808, + "lat": 37.986165, + "lng": 106.199409, + "name": "吴忠市", + "level": "city", + "parent": "宁夏回族自治区" + }, + { + "adcode": "411400", + "people_count_2010": 7322593, + "lat": 34.437054, + "lng": 115.650497, + "name": "商丘市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "510400", + "people_count_2010": 1787238, + "lat": 26.580446, + "lng": 101.716007, + "name": "攀枝花市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "150600", + "people_count_2010": 1940653, + "lat": 39.817179, + "lng": 109.99029, + "name": "鄂尔多斯市", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "510500", + "people_count_2010": 4218427, + "lat": 28.889138, + "lng": 105.443348, + "name": "泸州市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "510600", + "people_count_2010": 3628996, + "lat": 31.127991, + "lng": 104.398651, + "name": "德阳市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "510800", + "people_count_2010": 2967698, + "lat": 32.433668, + "lng": 105.829757, + "name": "广元市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "510300", + "people_count_2010": 2678899, + "lat": 29.352765, + "lng": 104.773447, + "name": "自贡市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "510900", + "people_count_2010": 3252619, + "lat": 30.513311, + "lng": 105.571331, + "name": "遂宁市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "450600", + "people_count_2010": 866927, + "lat": 21.614631, + "lng": 108.345478, + "name": "防城港市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "511300", + "people_count_2010": 6278614, + "lat": 30.795281, + "lng": 106.082974, + "name": "南充市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "622900", + "people_count_2010": 2826472, + "lat": 35.599446, + "lng": 103.212006, + "name": "临夏回族自治州", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "511700", + "people_count_2010": 5493631, + "lat": 31.209484, + "lng": 107.502262, + "name": "达州市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "320900", + "people_count_2010": 7262200, + "lat": 33.377631, + "lng": 120.139998, + "name": "盐城市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "230200", + "people_count_2010": 5367003, + "lat": 47.342081, + "lng": 123.95792, + "name": "齐齐哈尔市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "422800", + "people_count_2010": 6890402, + "lat": 30.283114, + "lng": 109.48699, + "name": "恩施土家族苗族自治州", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "654000", + "people_count_2010": 2662336, + "lat": 43.92186, + "lng": 81.317946, + "name": "伊犁哈萨克自治州", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "441400", + "people_count_2010": 4287933, + "lat": 24.299112, + "lng": 116.117582, + "name": "梅州市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "232700", + "people_count_2010": 665919, + "lat": 52.335262, + "lng": 124.711526, + "name": "大兴安岭地区", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "420200", + "people_count_2010": 2429318, + "lat": 30.220074, + "lng": 115.077048, + "name": "黄石市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "410200", + "people_count_2010": 4765604, + "lat": 34.797049, + "lng": 114.341447, + "name": "开封市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "520400", + "people_count_2010": 2598975, + "lat": 26.245544, + "lng": 105.932188, + "name": "安顺市", + "level": "city", + "parent": "贵州省" + }, + { + "adcode": "610200", + "people_count_2010": 834437, + "lat": 34.916582, + "lng": 108.979608, + "name": "铜川市", + "level": "city", + "parent": "陕西省" + }, + { + "adcode": "659007", + "people_count_2010": 770886, + "lat": 44.840524, + "lng": 82.353656, + "name": "双河市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "540100", + "people_count_2010": 1632598, + "lat": 29.660361, + "lng": 91.132212, + "name": "拉萨市", + "level": "city", + "parent": "西藏自治区" + }, + { + "adcode": "230300", + "people_count_2010": 1862165, + "lat": 45.300046, + "lng": 130.975966, + "name": "鸡西市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "654200", + "people_count_2010": 1219369, + "lat": 46.746301, + "lng": 82.985732, + "name": "塔城地区", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "440300", + "people_count_2010": 9232781, + "lat": 22.547, + "lng": 114.085947, + "name": "深圳市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "440500", + "people_count_2010": 5374806, + "lat": 23.37102, + "lng": 116.708463, + "name": "汕头市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "610400", + "people_count_2010": 5297173, + "lat": 34.333439, + "lng": 108.705117, + "name": "咸阳市", + "level": "city", + "parent": "陕西省" + }, + { + "adcode": "350100", + "people_count_2010": 6392826, + "lat": 26.075302, + "lng": 119.306239, + "name": "福州市", + "level": "city", + "parent": "福建省" + }, + { + "adcode": "410400", + "people_count_2010": 5785938, + "lat": 33.735241, + "lng": 113.307718, + "name": "平顶山市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "211200", + "people_count_2010": 3157747, + "lat": 42.290585, + "lng": 123.844279, + "name": "铁岭市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "330500", + "people_count_2010": 2893542, + "lat": 30.867198, + "lng": 120.102398, + "name": "湖州市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "330800", + "people_count_2010": 2122661, + "lat": 28.941708, + "lng": 118.87263, + "name": "衢州市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "330200", + "people_count_2010": 7673449, + "lat": 29.868388, + "lng": 121.549792, + "name": "宁波市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "430100", + "people_count_2010": 7095345, + "lat": 28.19409, + "lng": 112.982279, + "name": "长沙市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "430700", + "people_count_2010": 5714623, + "lat": 29.040225, + "lng": 111.691347, + "name": "常德市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "433100", + "people_count_2010": 2549558, + "lat": 28.314296, + "lng": 109.739735, + "name": "湘西土家族苗族自治州", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "340600", + "people_count_2010": 2113321, + "lat": 33.971707, + "lng": 116.794664, + "name": "淮北市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "421200", + "people_count_2010": 2462583, + "lat": 29.832798, + "lng": 114.328963, + "name": "咸宁市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "430300", + "people_count_2010": 2752171, + "lat": 27.82973, + "lng": 112.944052, + "name": "湘潭市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "320700", + "people_count_2010": 4162436, + "lat": 34.600018, + "lng": 119.178821, + "name": "连云港市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "632600", + "people_count_2010": 560121, + "lat": 34.4736, + "lng": 100.242143, + "name": "果洛藏族自治州", + "level": "city", + "parent": "青海省" + }, + { + "adcode": "440400", + "people_count_2010": 1562530, + "lat": 22.224979, + "lng": 113.553986, + "name": "珠海市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "430900", + "people_count_2010": 4307933, + "lat": 28.570066, + "lng": 112.355042, + "name": "益阳市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "620700", + "people_count_2010": 1199515, + "lat": 38.932897, + "lng": 100.455472, + "name": "张掖市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "610600", + "people_count_2010": 2187009, + "lat": 36.596537, + "lng": 109.49081, + "name": "延安市", + "level": "city", + "parent": "陕西省" + }, + { + "adcode": "441600", + "people_count_2010": 2950195, + "lat": 23.746266, + "lng": 114.697802, + "name": "河源市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "450100", + "people_count_2010": 6705437, + "lat": 22.82402, + "lng": 108.320004, + "name": "南宁市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "441900", + "people_count_2010": 8200000, + "lat": 23.046237, + "lng": 113.746262, + "name": "东莞市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "445300", + "people_count_2010": 2367154, + "lat": 22.929801, + "lng": 112.044439, + "name": "云浮市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "450500", + "people_count_2010": 1539251, + "lat": 21.473343, + "lng": 109.119254, + "name": "北海市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "371700", + "people_count_2010": 8271368, + "lat": 35.246531, + "lng": 115.469381, + "name": "菏泽市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "440600", + "people_count_2010": 7242689, + "lat": 23.028762, + "lng": 113.122717, + "name": "佛山市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "220600", + "people_count_2010": 1660850, + "lat": 41.942505, + "lng": 126.427839, + "name": "白山市", + "level": "city", + "parent": "吉林省" + }, + { + "adcode": "350800", + "people_count_2010": 5419351, + "lat": 25.091603, + "lng": 117.02978, + "name": "龙岩市", + "level": "city", + "parent": "福建省" + }, + { + "adcode": "450700", + "people_count_2010": 3127047, + "lat": 21.967127, + "lng": 108.624175, + "name": "钦州市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "469027", + "people_count_2010": 467161, + "lat": 18.74758, + "lng": 109.175444, + "name": "乐东黎族自治县", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "542200", + "people_count_2010": 364463, + "lat": 29.236023, + "lng": 91.766529, + "name": "山南地区", + "level": "city", + "parent": "西藏自治区" + }, + { + "adcode": "131100", + "people_count_2010": 39774686, + "lat": 37.735097, + "lng": 115.665993, + "name": "衡水市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "511500", + "people_count_2010": 4471896, + "lat": 28.760189, + "lng": 104.630825, + "name": "宜宾市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "130600", + "people_count_2010": 11496109, + "lat": 38.867657, + "lng": 115.482331, + "name": "保定市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "120100", + "people_count_2010": 13450226, + "lat": 39.125596, + "lng": 117.190182, + "name": "天津市市辖区", + "level": "city", + "parent": "天津市" + }, + { + "adcode": "120200", + "people_count_2010": 1847910, + "lat": 39.330613, + "lng": 117.824898, + "name": "天津市郊县", + "level": "city", + "parent": "天津市" + }, + { + "adcode": "429021", + "people_count_2010": 76140, + "lat": 31.744449, + "lng": 110.671525, + "name": "神农架林区", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "542400", + "people_count_2010": 462381, + "lat": 31.476004, + "lng": 92.060214, + "name": "那曲地区", + "level": "city", + "parent": "西藏自治区" + }, + { + "adcode": "623000", + "people_count_2010": 689132, + "lat": 34.986354, + "lng": 102.911008, + "name": "甘南藏族自治州", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "621000", + "people_count_2010": 2211191, + "lat": 35.734218, + "lng": 107.638372, + "name": "庆阳市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "430500", + "people_count_2010": 7076343, + "lat": 27.237842, + "lng": 111.46923, + "name": "邵阳市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "130300", + "people_count_2010": 3722351, + "lat": 39.942531, + "lng": 119.586579, + "name": "秦皇岛市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "130700", + "people_count_2010": 3718213, + "lat": 40.811901, + "lng": 114.884091, + "name": "张家口市", + "level": "city", + "parent": "河北省" + }, + { + "adcode": "652700", + "people_count_2010": 443680, + "lat": 44.903258, + "lng": 82.074778, + "name": "博尔塔拉蒙古自治州", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "653100", + "people_count_2010": 4017164, + "lat": 39.467664, + "lng": 75.989138, + "name": "喀什地区", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "652900", + "people_count_2010": 2896379, + "lat": 41.170712, + "lng": 80.265068, + "name": "阿克苏地区", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "653200", + "people_count_2010": 4480430, + "lat": 37.110687, + "lng": 79.92533, + "name": "和田地区", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "659004", + "people_count_2010": 96436, + "lat": 44.167401, + "lng": 87.526884, + "name": "五家渠市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "659008", + "people_count_2010": 770886, + "lat": 43.6832, + "lng": 80.63579, + "name": "可克达拉市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "652300", + "people_count_2010": 1731864, + "lat": 44.014577, + "lng": 87.304012, + "name": "昌吉回族自治州", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "430200", + "people_count_2010": 3857100, + "lat": 27.835806, + "lng": 113.151737, + "name": "株洲市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "411000", + "people_count_2010": 4275430, + "lat": 34.022956, + "lng": 113.826063, + "name": "许昌市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "513300", + "people_count_2010": 5665663, + "lat": 30.050663, + "lng": 101.963815, + "name": "甘孜藏族自治州", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "220100", + "people_count_2010": 6886682, + "lat": 43.886841, + "lng": 125.3245, + "name": "长春市", + "level": "city", + "parent": "吉林省" + }, + { + "adcode": "340300", + "people_count_2010": 3136401, + "lat": 32.939667, + "lng": 117.363228, + "name": "蚌埠市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "150900", + "people_count_2010": 2293073, + "lat": 41.034126, + "lng": 113.114543, + "name": "乌兰察布市", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "469026", + "people_count_2010": 256931, + "lat": 19.260968, + "lng": 109.053351, + "name": "昌江黎族自治县", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "211100", + "people_count_2010": 1392493, + "lat": 41.124484, + "lng": 122.06957, + "name": "盘锦市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "610900", + "people_count_2010": 2629906, + "lat": 32.6903, + "lng": 109.029273, + "name": "安康市", + "level": "city", + "parent": "陕西省" + }, + { + "adcode": "632800", + "people_count_2010": 536460, + "lat": 37.374663, + "lng": 97.370785, + "name": "海西蒙古族藏族自治州", + "level": "city", + "parent": "青海省" + }, + { + "adcode": "110100", + "people_count_2010": 18934592, + "lat": 39.904989, + "lng": 116.405285, + "name": "北京市市辖区", + "level": "city", + "parent": "北京市" + }, + { + "adcode": "659003", + "people_count_2010": 135727, + "lat": 39.867316, + "lng": 79.077978, + "name": "图木舒克市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "340400", + "people_count_2010": 2333896, + "lat": 32.647574, + "lng": 117.018329, + "name": "淮南市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "460400", + "people_count_2010": null, + "lat": 19.517486, + "lng": 109.576782, + "name": "儋州市", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "150200", + "people_count_2010": 2751850, + "lat": 40.658168, + "lng": 109.840405, + "name": "包头市", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "331100", + "people_count_2010": 2116957, + "lat": 28.451993, + "lng": 119.921786, + "name": "丽水市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "330300", + "people_count_2010": 9130194, + "lat": 28.000575, + "lng": 120.672111, + "name": "温州市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "150400", + "people_count_2010": 4341245, + "lat": 42.275317, + "lng": 118.956806, + "name": "赤峰市", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "150300", + "people_count_2010": 532902, + "lat": 39.673734, + "lng": 106.825563, + "name": "乌海市", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "360600", + "people_count_2010": 1125156, + "lat": 28.238638, + "lng": 117.033838, + "name": "鹰潭市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "330400", + "people_count_2010": 4501657, + "lat": 30.762653, + "lng": 120.750865, + "name": "嘉兴市", + "level": "city", + "parent": "浙江省" + }, + { + "adcode": "340800", + "people_count_2010": 5311379, + "lat": 30.50883, + "lng": 117.043551, + "name": "安庆市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "420100", + "people_count_2010": 10171553, + "lat": 30.584355, + "lng": 114.298572, + "name": "武汉市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "341800", + "people_count_2010": 2532938, + "lat": 30.945667, + "lng": 118.757995, + "name": "宣城市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "421300", + "people_count_2010": 2955910, + "lat": 31.717497, + "lng": 113.37377, + "name": "随州市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "150800", + "people_count_2010": 1669915, + "lat": 40.757402, + "lng": 107.416959, + "name": "巴彦淖尔市", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "150500", + "people_count_2010": 3545175, + "lat": 43.617429, + "lng": 122.263119, + "name": "通辽市", + "level": "city", + "parent": "内蒙古自治区" + }, + { + "adcode": "469030", + "people_count_2010": 167918, + "lat": 19.03557, + "lng": 109.839996, + "name": "琼中黎族苗族自治县", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "469023", + "people_count_2010": 5939907, + "lat": 19.737095, + "lng": 110.007147, + "name": "澄迈县", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "340100", + "people_count_2010": 5680145, + "lat": 31.86119, + "lng": 117.283042, + "name": "合肥市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "341500", + "people_count_2010": 5623217, + "lat": 31.752889, + "lng": 116.507676, + "name": "六安市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "341000", + "people_count_2010": 1358980, + "lat": 29.709239, + "lng": 118.317325, + "name": "黄山市", + "level": "city", + "parent": "安徽省" + }, + { + "adcode": "230700", + "people_count_2010": 1148126, + "lat": 47.724775, + "lng": 128.899396, + "name": "伊春市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "421000", + "people_count_2010": 5728937, + "lat": 30.326857, + "lng": 112.23813, + "name": "荆州市", + "level": "city", + "parent": "湖北省" + }, + { + "adcode": "469001", + "people_count_2010": 104119, + "lat": 18.776921, + "lng": 109.516662, + "name": "五指山市", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "469021", + "people_count_2010": 5939907, + "lat": 19.684966, + "lng": 110.349235, + "name": "定安县", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "659002", + "people_count_2010": 158593, + "lat": 40.541914, + "lng": 81.285884, + "name": "阿拉尔市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "469025", + "people_count_2010": 284614, + "lat": 19.224584, + "lng": 109.452606, + "name": "白沙黎族自治县", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "630100", + "people_count_2010": 1911721, + "lat": 36.623178, + "lng": 101.778916, + "name": "西宁市", + "level": "city", + "parent": "青海省" + }, + { + "adcode": "469028", + "people_count_2010": 427873, + "lat": 18.505006, + "lng": 110.037218, + "name": "陵水黎族自治县", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "445100", + "people_count_2010": 5300000, + "lat": 23.661701, + "lng": 116.632301, + "name": "潮州市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "610300", + "people_count_2010": 3716737, + "lat": 34.369315, + "lng": 107.14487, + "name": "宝鸡市", + "level": "city", + "parent": "陕西省" + }, + { + "adcode": "610500", + "people_count_2010": 5286077, + "lat": 34.499381, + "lng": 109.502882, + "name": "渭南市", + "level": "city", + "parent": "陕西省" + }, + { + "adcode": "230400", + "people_count_2010": 2162557, + "lat": 47.332085, + "lng": 130.277487, + "name": "鹤岗市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "610700", + "people_count_2010": 3416196, + "lat": 33.077668, + "lng": 107.028621, + "name": "汉中市", + "level": "city", + "parent": "陕西省" + }, + { + "adcode": "611000", + "people_count_2010": 2341742, + "lat": 33.868319, + "lng": 109.939776, + "name": "商洛市", + "level": "city", + "parent": "陕西省" + }, + { + "adcode": "469007", + "people_count_2010": 408309, + "lat": 19.10198, + "lng": 108.653789, + "name": "东方市", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "230100", + "people_count_2010": 10592114, + "lat": 45.756967, + "lng": 126.642464, + "name": "哈尔滨市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "460100", + "people_count_2010": 2046170, + "lat": 20.031971, + "lng": 110.33119, + "name": "海口市", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "621200", + "people_count_2010": 4522320, + "lat": 33.388598, + "lng": 104.929379, + "name": "陇南市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "360300", + "people_count_2010": 1854515, + "lat": 27.622946, + "lng": 113.852186, + "name": "萍乡市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "360100", + "people_count_2010": 4520070, + "lat": 28.676493, + "lng": 115.892151, + "name": "南昌市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "652800", + "people_count_2010": 1406114, + "lat": 41.768552, + "lng": 86.150969, + "name": "巴音郭楞蒙古自治州", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "610800", + "people_count_2010": 3351436, + "lat": 38.290162, + "lng": 109.741193, + "name": "榆林市", + "level": "city", + "parent": "陕西省" + }, + { + "adcode": "445200", + "people_count_2010": 5972081, + "lat": 23.543778, + "lng": 116.355733, + "name": "揭阳市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "650400", + "people_count_2010": null, + "lat": 42.947613, + "lng": 89.184078, + "name": "吐鲁番市", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "440900", + "people_count_2010": 5831304, + "lat": 21.659751, + "lng": 110.919229, + "name": "茂名市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "652200", + "people_count_2010": 2123059, + "lat": 42.833248, + "lng": 93.51316, + "name": "哈密地区", + "level": "city", + "parent": "新疆维吾尔自治区" + }, + { + "adcode": "410600", + "people_count_2010": 1569208, + "lat": 35.748236, + "lng": 114.295444, + "name": "鹤壁市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "431200", + "people_count_2010": 4986789, + "lat": 27.550082, + "lng": 109.97824, + "name": "怀化市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "430800", + "people_count_2010": 1478149, + "lat": 29.127401, + "lng": 110.479921, + "name": "张家界市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "431100", + "people_count_2010": 5653754, + "lat": 26.434516, + "lng": 111.608019, + "name": "永州市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "431300", + "people_count_2010": 3773474, + "lat": 27.728136, + "lng": 112.008497, + "name": "娄底市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "431000", + "people_count_2010": 4583531, + "lat": 25.793589, + "lng": 113.032067, + "name": "郴州市", + "level": "city", + "parent": "湖南省" + }, + { + "adcode": "230600", + "people_count_2010": 3138370, + "lat": 46.590734, + "lng": 125.11272, + "name": "大庆市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "231200", + "people_count_2010": 5418153, + "lat": 46.637393, + "lng": 126.99293, + "name": "绥化市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "419001", + "people_count_2010": null, + "lat": 35.090378, + "lng": 112.590047, + "name": "济源市", + "level": "city", + "parent": "河南省" + }, + { + "adcode": "320300", + "people_count_2010": 8060518, + "lat": 34.261792, + "lng": 117.184811, + "name": "徐州市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "320100", + "people_count_2010": 7958116, + "lat": 32.041544, + "lng": 118.767413, + "name": "南京市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "320200", + "people_count_2010": 6316878, + "lat": 31.574729, + "lng": 120.301663, + "name": "无锡市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "320600", + "people_count_2010": 8442973, + "lat": 32.016212, + "lng": 120.864608, + "name": "南通市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "321000", + "people_count_2010": 4453694, + "lat": 32.393159, + "lng": 119.421003, + "name": "扬州市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "230900", + "people_count_2010": 920471, + "lat": 45.771266, + "lng": 131.015584, + "name": "七台河市", + "level": "city", + "parent": "黑龙江省" + }, + { + "adcode": "350300", + "people_count_2010": 2778508, + "lat": 25.431011, + "lng": 119.007558, + "name": "莆田市", + "level": "city", + "parent": "福建省" + }, + { + "adcode": "441800", + "people_count_2010": 3788927, + "lat": 23.685022, + "lng": 113.051227, + "name": "清远市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "451000", + "people_count_2010": 3466758, + "lat": 23.897742, + "lng": 106.616285, + "name": "百色市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "469029", + "people_count_2010": 5939907, + "lat": 18.636371, + "lng": 109.70245, + "name": "保亭黎族苗族自治县", + "level": "city", + "parent": "海南省" + }, + { + "adcode": "360700", + "people_count_2010": 8368447, + "lat": 25.85097, + "lng": 114.940278, + "name": "赣州市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "360900", + "people_count_2010": 5337247, + "lat": 27.8043, + "lng": 114.391136, + "name": "宜春市", + "level": "city", + "parent": "江西省" + }, + { + "adcode": "450900", + "people_count_2010": 5455905, + "lat": 22.63136, + "lng": 110.154393, + "name": "玉林市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "371500", + "people_count_2010": 5760095, + "lat": 36.456013, + "lng": 115.980367, + "name": "聊城市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "451200", + "people_count_2010": 3369251, + "lat": 24.695899, + "lng": 108.062105, + "name": "河池市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "620600", + "people_count_2010": 1979557, + "lat": 37.929996, + "lng": 102.634697, + "name": "武威市", + "level": "city", + "parent": "甘肃省" + }, + { + "adcode": "370800", + "people_count_2010": 8090844, + "lat": 35.415393, + "lng": 116.587245, + "name": "济宁市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "370200", + "people_count_2010": 8780462, + "lat": 36.082982, + "lng": 120.355173, + "name": "青岛市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "371600", + "people_count_2010": 3748474, + "lat": 37.383542, + "lng": 118.016974, + "name": "滨州市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "451400", + "people_count_2010": 1994285, + "lat": 22.404108, + "lng": 107.353926, + "name": "崇左市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "450200", + "people_count_2010": 3758704, + "lat": 24.314617, + "lng": 109.411703, + "name": "柳州市", + "level": "city", + "parent": "广西壮族自治区" + }, + { + "adcode": "320400", + "people_count_2010": 4728581, + "lat": 31.772752, + "lng": 119.946973, + "name": "常州市", + "level": "city", + "parent": "江苏省" + }, + { + "adcode": "441300", + "people_count_2010": 4580386, + "lat": 23.079404, + "lng": 114.412599, + "name": "惠州市", + "level": "city", + "parent": "广东省" + }, + { + "adcode": "540300", + "people_count_2010": null, + "lat": 31.136875, + "lng": 97.178452, + "name": "昌都市", + "level": "city", + "parent": "西藏自治区" + }, + { + "adcode": "532800", + "people_count_2010": 4551785, + "lat": 22.001724, + "lng": 100.797941, + "name": "西双版纳傣族自治州", + "level": "city", + "parent": "云南省" + }, + { + "adcode": "371300", + "people_count_2010": 9484805, + "lat": 35.065282, + "lng": 118.326443, + "name": "临沂市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "370600", + "people_count_2010": 6968202, + "lat": 37.539297, + "lng": 121.391382, + "name": "烟台市", + "level": "city", + "parent": "山东省" + }, + { + "adcode": "210800", + "people_count_2010": 2428534, + "lat": 40.667432, + "lng": 122.235151, + "name": "营口市", + "level": "city", + "parent": "辽宁省" + }, + { + "adcode": "510100", + "people_count_2010": 14091220, + "lat": 30.659462, + "lng": 104.065735, + "name": "成都市", + "level": "city", + "parent": "四川省" + }, + { + "adcode": "420600", + "people_count_2010": 5495566, + "lat": 32.042426, + "lng": 112.144146, + "name": "襄阳市", + "level": "city", + "parent": "湖北省" + } + ], + "total": 369 +} diff --git a/src/service/bin/district.json b/src/service/bin/district.json index 475bff0..0e94d4a 100644 --- a/src/service/bin/district.json +++ b/src/service/bin/district.json @@ -1,25700 +1,25700 @@ -{ - "rows": [ - { - "adcode": "370783", - "people_count_2010": 1100000, - "lat": 36.874411, - "lng": 118.736451, - "name": "寿光市", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "361124", - "people_count_2010": 426998, - "lat": 28.310892, - "lng": 117.711906, - "name": "铅山县", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "450109", - "people_count_2010": 259721, - "lat": 22.756598, - "lng": 108.484251, - "name": "邕宁区", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "450127", - "people_count_2010": 863001, - "lat": 22.68743, - "lng": 109.270987, - "name": "横县", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "330421", - "people_count_2010": 574187, - "lat": 30.841352, - "lng": 120.921871, - "name": "嘉善县", - "level": "district", - "parent": "嘉兴市" - }, - { - "adcode": "610822", - "people_count_2010": 260585, - "lat": 39.029243, - "lng": 111.069645, - "name": "府谷县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "130827", - "people_count_2010": 250304, - "lat": 40.607981, - "lng": 118.488642, - "name": "宽城满族自治县", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "340122", - "people_count_2010": 861960, - "lat": 31.883992, - "lng": 117.463222, - "name": "肥东县", - "level": "district", - "parent": "合肥市" - }, - { - "adcode": "530724", - "people_count_2010": null, - "lat": 27.281109, - "lng": 100.852427, - "name": "宁蒗彝族自治县", - "level": "district", - "parent": "丽江市" - }, - { - "adcode": "450125", - "people_count_2010": 343590, - "lat": 23.431769, - "lng": 108.603937, - "name": "上林县", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "431003", - "people_count_2010": 402750, - "lat": 25.793157, - "lng": 113.038698, - "name": "苏仙区", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "120110", - "people_count_2010": 598966, - "lat": 39.087764, - "lng": 117.313967, - "name": "东丽区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "623023", - "people_count_2010": 132108, - "lat": 33.782964, - "lng": 104.370271, - "name": "舟曲县", - "level": "district", - "parent": "甘南藏族自治州" - }, - { - "adcode": "130132", - "people_count_2010": 418466, - "lat": 37.762514, - "lng": 114.52618, - "name": "元氏县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "150523", - "people_count_2010": 396166, - "lat": 43.602432, - "lng": 121.308797, - "name": "开鲁县", - "level": "district", - "parent": "通辽市" - }, - { - "adcode": "220602", - "people_count_2010": null, - "lat": 41.943065, - "lng": 126.428035, - "name": "浑江区", - "level": "district", - "parent": "白山市" - }, - { - "adcode": "451081", - "people_count_2010": null, - "lat": 23.134766, - "lng": 106.417549, - "name": "靖西市", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "370704", - "people_count_2010": 512161, - "lat": 36.654616, - "lng": 119.166326, - "name": "坊子区", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "530324", - "people_count_2010": 549680, - "lat": 24.885708, - "lng": 104.309263, - "name": "罗平县", - "level": "district", - "parent": "曲靖市" - }, - { - "adcode": "360521", - "people_count_2010": 299386, - "lat": 27.811301, - "lng": 114.675262, - "name": "分宜县", - "level": "district", - "parent": "新余市" - }, - { - "adcode": "330324", - "people_count_2010": 789154, - "lat": 28.153886, - "lng": 120.690968, - "name": "永嘉县", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "620725", - "people_count_2010": 161299, - "lat": 38.784839, - "lng": 101.088442, - "name": "山丹县", - "level": "district", - "parent": "张掖市" - }, - { - "adcode": "451226", - "people_count_2010": 272328, - "lat": 24.827628, - "lng": 108.258669, - "name": "环江毛南族自治县", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "620921", - "people_count_2010": 147460, - "lat": 39.983036, - "lng": 98.902959, - "name": "金塔县", - "level": "district", - "parent": "酒泉市" - }, - { - "adcode": "360112", - "people_count_2010": null, - "lat": 28.690788, - "lng": 115.820806, - "name": "新建区", - "level": "district", - "parent": "南昌市" - }, - { - "adcode": "410402", - "people_count_2010": null, - "lat": 33.737579, - "lng": 113.299061, - "name": "新华区", - "level": "district", - "parent": "平顶山市" - }, - { - "adcode": "130181", - "people_count_2010": 615919, - "lat": 37.92904, - "lng": 115.217451, - "name": "辛集市", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "610402", - "people_count_2010": 909437, - "lat": 34.329801, - "lng": 108.698636, - "name": "秦都区", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "320509", - "people_count_2010": null, - "lat": 31.160404, - "lng": 120.641601, - "name": "吴江区", - "level": "district", - "parent": "苏州市" - }, - { - "adcode": "610481", - "people_count_2010": 541554, - "lat": 34.297134, - "lng": 108.488493, - "name": "兴平市", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "620981", - "people_count_2010": 159792, - "lat": 40.28682, - "lng": 97.037206, - "name": "玉门市", - "level": "district", - "parent": "酒泉市" - }, - { - "adcode": "511324", - "people_count_2010": 930028, - "lat": 31.271261, - "lng": 106.297083, - "name": "仪陇县", - "level": "district", - "parent": "南充市" - }, - { - "adcode": "150922", - "people_count_2010": 123535, - "lat": 41.899335, - "lng": 114.01008, - "name": "化德县", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "411723", - "people_count_2010": 748398, - "lat": 32.955626, - "lng": 114.637105, - "name": "平舆县", - "level": "district", - "parent": "驻马店市" - }, - { - "adcode": "610426", - "people_count_2010": 184642, - "lat": 34.692619, - "lng": 108.143129, - "name": "永寿县", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "370112", - "people_count_2010": 1100000, - "lat": 36.681744, - "lng": 117.063744, - "name": "历城区", - "level": "district", - "parent": "济南市" - }, - { - "adcode": "150403", - "people_count_2010": 325170, - "lat": 42.041168, - "lng": 119.289877, - "name": "元宝山区", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "210403", - "people_count_2010": 320949, - "lat": 41.866829, - "lng": 124.047219, - "name": "东洲区", - "level": "district", - "parent": "抚顺市" - }, - { - "adcode": "430102", - "people_count_2010": 523997, - "lat": 28.193106, - "lng": 112.988094, - "name": "芙蓉区", - "level": "district", - "parent": "长沙市" - }, - { - "adcode": "410421", - "people_count_2010": 2000000, - "lat": 33.866359, - "lng": 113.066812, - "name": "宝丰县", - "level": "district", - "parent": "平顶山市" - }, - { - "adcode": "533423", - "people_count_2010": null, - "lat": 27.180948, - "lng": 99.286355, - "name": "维西傈僳族自治县", - "level": "district", - "parent": "迪庆藏族自治州" - }, - { - "adcode": "511421", - "people_count_2010": 1200000, - "lat": 29.996721, - "lng": 104.147646, - "name": "仁寿县", - "level": "district", - "parent": "眉山市" - }, - { - "adcode": "532927", - "people_count_2010": null, - "lat": 25.230909, - "lng": 100.30793, - "name": "巍山彝族回族自治县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "530823", - "people_count_2010": null, - "lat": 24.448523, - "lng": 100.840011, - "name": "景东彝族自治县", - "level": "district", - "parent": "普洱市" - }, - { - "adcode": "530825", - "people_count_2010": null, - "lat": 24.005712, - "lng": 101.108512, - "name": "镇沅彝族哈尼族拉祜族自治县", - "level": "district", - "parent": "普洱市" - }, - { - "adcode": "530827", - "people_count_2010": null, - "lat": 22.325924, - "lng": 99.585406, - "name": "孟连傣族拉祜族佤族自治县", - "level": "district", - "parent": "普洱市" - }, - { - "adcode": "530829", - "people_count_2010": null, - "lat": 22.644423, - "lng": 99.594372, - "name": "西盟佤族自治县", - "level": "district", - "parent": "普洱市" - }, - { - "adcode": "500116", - "people_count_2010": 1200000, - "lat": 29.283387, - "lng": 106.253156, - "name": "江津区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "532532", - "people_count_2010": null, - "lat": 22.507563, - "lng": 103.961593, - "name": "河口瑶族自治县", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "622922", - "people_count_2010": 233173, - "lat": 35.371906, - "lng": 103.709852, - "name": "康乐县", - "level": "district", - "parent": "临夏回族自治州" - }, - { - "adcode": "360402", - "people_count_2010": 302228, - "lat": 29.676175, - "lng": 115.99012, - "name": "庐山区", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "360427", - "people_count_2010": 245526, - "lat": 29.456169, - "lng": 116.043743, - "name": "星子县", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "640181", - "people_count_2010": 261677, - "lat": 38.094058, - "lng": 106.334701, - "name": "灵武市", - "level": "district", - "parent": "银川市" - }, - { - "adcode": "451202", - "people_count_2010": 330131, - "lat": 24.695625, - "lng": 108.062131, - "name": "金城江区", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "620722", - "people_count_2010": 219356, - "lat": 38.434454, - "lng": 100.816623, - "name": "民乐县", - "level": "district", - "parent": "张掖市" - }, - { - "adcode": "450124", - "people_count_2010": 390900, - "lat": 23.711758, - "lng": 108.172903, - "name": "马山县", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "652928", - "people_count_2010": 237562, - "lat": 40.638422, - "lng": 80.378426, - "name": "阿瓦提县", - "level": "district", - "parent": "阿克苏地区" - }, - { - "adcode": "220221", - "people_count_2010": 394486, - "lat": 43.667416, - "lng": 126.501622, - "name": "永吉县", - "level": "district", - "parent": "吉林市" - }, - { - "adcode": "360922", - "people_count_2010": 476856, - "lat": 28.104528, - "lng": 114.449012, - "name": "万载县", - "level": "district", - "parent": "宜春市" - }, - { - "adcode": "520321", - "people_count_2010": 942904, - "lat": 27.535288, - "lng": 106.831668, - "name": "遵义县", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "370103", - "people_count_2010": 662814, - "lat": 36.657354, - "lng": 116.99898, - "name": "市中区", - "level": "district", - "parent": "济南市" - }, - { - "adcode": "220723", - "people_count_2010": 301438, - "lat": 45.006846, - "lng": 124.024361, - "name": "乾安县", - "level": "district", - "parent": "松原市" - }, - { - "adcode": "500228", - "people_count_2010": 687525, - "lat": 30.672168, - "lng": 107.800034, - "name": "梁平县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "441624", - "people_count_2010": 374709, - "lat": 24.44318, - "lng": 114.941473, - "name": "和平县", - "level": "district", - "parent": "河源市" - }, - { - "adcode": "620103", - "people_count_2010": 1300000, - "lat": 36.06673, - "lng": 103.784326, - "name": "七里河区", - "level": "district", - "parent": "兰州市" - }, - { - "adcode": "522723", - "people_count_2010": 231118, - "lat": 26.580807, - "lng": 107.233588, - "name": "贵定县", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "150426", - "people_count_2010": 433298, - "lat": 42.937128, - "lng": 119.022619, - "name": "翁牛特旗", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "141124", - "people_count_2010": 579077, - "lat": 37.960806, - "lng": 110.995963, - "name": "临县", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "610424", - "people_count_2010": 527088, - "lat": 34.527261, - "lng": 108.247406, - "name": "乾县", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "450702", - "people_count_2010": 617047, - "lat": 21.966808, - "lng": 108.626629, - "name": "钦南区", - "level": "district", - "parent": "钦州市" - }, - { - "adcode": "520382", - "people_count_2010": 546477, - "lat": 27.803377, - "lng": 106.412476, - "name": "仁怀市", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "522722", - "people_count_2010": 144865, - "lat": 25.412239, - "lng": 107.8838, - "name": "荔波县", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "522732", - "people_count_2010": 283139, - "lat": 25.985183, - "lng": 107.87747, - "name": "三都水族自治县", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "220104", - "people_count_2010": null, - "lat": 43.86491, - "lng": 125.318042, - "name": "朝阳区", - "level": "district", - "parent": "长春市" - }, - { - "adcode": "510626", - "people_count_2010": 212185, - "lat": 31.303281, - "lng": 104.507126, - "name": "罗江县", - "level": "district", - "parent": "德阳市" - }, - { - "adcode": "520324", - "people_count_2010": 389634, - "lat": 28.550337, - "lng": 107.441872, - "name": "正安县", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "520330", - "people_count_2010": 523180, - "lat": 28.327826, - "lng": 106.200954, - "name": "习水县", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "520502", - "people_count_2010": null, - "lat": 27.302085, - "lng": 105.284852, - "name": "七星关区", - "level": "district", - "parent": "毕节市" - }, - { - "adcode": "222401", - "people_count_2010": 562959, - "lat": 42.906964, - "lng": 129.51579, - "name": "延吉市", - "level": "district", - "parent": "延边朝鲜族自治州" - }, - { - "adcode": "340181", - "people_count_2010": null, - "lat": 31.600518, - "lng": 117.874155, - "name": "巢湖市", - "level": "district", - "parent": "合肥市" - }, - { - "adcode": "500240", - "people_count_2010": null, - "lat": 29.99853, - "lng": 108.112448, - "name": "石柱土家族自治县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "500235", - "people_count_2010": 912912, - "lat": 30.930529, - "lng": 108.697698, - "name": "云阳县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "411527", - "people_count_2010": 570197, - "lat": 32.452639, - "lng": 115.415451, - "name": "淮滨县", - "level": "district", - "parent": "信阳市" - }, - { - "adcode": "411328", - "people_count_2010": 1300000, - "lat": 32.687892, - "lng": 112.838492, - "name": "唐河县", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "451321", - "people_count_2010": 312441, - "lat": 24.064779, - "lng": 108.667361, - "name": "忻城县", - "level": "district", - "parent": "来宾市" - }, - { - "adcode": "440825", - "people_count_2010": 698474, - "lat": 20.326083, - "lng": 110.175718, - "name": "徐闻县", - "level": "district", - "parent": "湛江市" - }, - { - "adcode": "411623", - "people_count_2010": 940792, - "lat": 33.543845, - "lng": 114.60927, - "name": "商水县", - "level": "district", - "parent": "周口市" - }, - { - "adcode": "410702", - "people_count_2010": 391290, - "lat": 35.302684, - "lng": 113.878158, - "name": "红旗区", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "632224", - "people_count_2010": 298049, - "lat": 37.326263, - "lng": 100.138417, - "name": "刚察县", - "level": "district", - "parent": "海北藏族自治州" - }, - { - "adcode": "510504", - "people_count_2010": 344601, - "lat": 28.897572, - "lng": 105.435228, - "name": "龙马潭区", - "level": "district", - "parent": "泸州市" - }, - { - "adcode": "510811", - "people_count_2010": 168489, - "lat": 32.322788, - "lng": 105.964121, - "name": "昭化区", - "level": "district", - "parent": "广元市" - }, - { - "adcode": "510824", - "people_count_2010": 559180, - "lat": 31.732251, - "lng": 105.939706, - "name": "苍溪县", - "level": "district", - "parent": "广元市" - }, - { - "adcode": "230302", - "people_count_2010": 365385, - "lat": 45.30034, - "lng": 130.974374, - "name": "鸡冠区", - "level": "district", - "parent": "鸡西市" - }, - { - "adcode": "440823", - "people_count_2010": 886452, - "lat": 21.376915, - "lng": 110.255321, - "name": "遂溪县", - "level": "district", - "parent": "湛江市" - }, - { - "adcode": "440883", - "people_count_2010": 927275, - "lat": 21.428453, - "lng": 110.780508, - "name": "吴川市", - "level": "district", - "parent": "湛江市" - }, - { - "adcode": "350211", - "people_count_2010": 580857, - "lat": 24.572874, - "lng": 118.100869, - "name": "集美区", - "level": "district", - "parent": "厦门市" - }, - { - "adcode": "441602", - "people_count_2010": 463907, - "lat": 23.746255, - "lng": 114.696828, - "name": "源城区", - "level": "district", - "parent": "河源市" - }, - { - "adcode": "222403", - "people_count_2010": 483464, - "lat": 43.366921, - "lng": 128.22986, - "name": "敦化市", - "level": "district", - "parent": "延边朝鲜族自治州" - }, - { - "adcode": "230304", - "people_count_2010": 103646, - "lat": 45.348812, - "lng": 130.846823, - "name": "滴道区", - "level": "district", - "parent": "鸡西市" - }, - { - "adcode": "370503", - "people_count_2010": 247595, - "lat": 37.886015, - "lng": 118.529613, - "name": "河口区", - "level": "district", - "parent": "东营市" - }, - { - "adcode": "371202", - "people_count_2010": 989535, - "lat": 36.213662, - "lng": 117.678351, - "name": "莱城区", - "level": "district", - "parent": "莱芜市" - }, - { - "adcode": "230306", - "people_count_2010": 127290, - "lat": 45.338248, - "lng": 131.010501, - "name": "城子河区", - "level": "district", - "parent": "鸡西市" - }, - { - "adcode": "230382", - "people_count_2010": 407451, - "lat": 45.54725, - "lng": 131.874137, - "name": "密山市", - "level": "district", - "parent": "鸡西市" - }, - { - "adcode": "510603", - "people_count_2010": 735070, - "lat": 31.130428, - "lng": 104.389648, - "name": "旌阳区", - "level": "district", - "parent": "德阳市" - }, - { - "adcode": "371723", - "people_count_2010": 612016, - "lat": 34.947366, - "lng": 115.897349, - "name": "成武县", - "level": "district", - "parent": "菏泽市" - }, - { - "adcode": "321281", - "people_count_2010": 1300000, - "lat": 32.938065, - "lng": 119.840162, - "name": "兴化市", - "level": "district", - "parent": "泰州市" - }, - { - "adcode": "410411", - "people_count_2010": 286661, - "lat": 33.725681, - "lng": 113.320873, - "name": "湛河区", - "level": "district", - "parent": "平顶山市" - }, - { - "adcode": "371725", - "people_count_2010": 1000000, - "lat": 35.594773, - "lng": 115.93885, - "name": "郓城县", - "level": "district", - "parent": "菏泽市" - }, - { - "adcode": "420528", - "people_count_2010": 388228, - "lat": 30.466534, - "lng": 111.198475, - "name": "长阳土家族自治县", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "231202", - "people_count_2010": 877114, - "lat": 46.634912, - "lng": 126.990665, - "name": "北林区", - "level": "district", - "parent": "绥化市" - }, - { - "adcode": "371722", - "people_count_2010": 1100000, - "lat": 34.790851, - "lng": 116.08262, - "name": "单县", - "level": "district", - "parent": "菏泽市" - }, - { - "adcode": "410804", - "people_count_2010": 139533, - "lat": 35.265453, - "lng": 113.321703, - "name": "马村区", - "level": "district", - "parent": "焦作市" - }, - { - "adcode": "231223", - "people_count_2010": 474422, - "lat": 46.686596, - "lng": 126.112268, - "name": "青冈县", - "level": "district", - "parent": "绥化市" - }, - { - "adcode": "520423", - "people_count_2010": 886789, - "lat": 26.056096, - "lng": 105.768656, - "name": "镇宁布依族苗族自治县", - "level": "district", - "parent": "安顺市" - }, - { - "adcode": "120225", - "people_count_2010": 784789, - "lat": 40.045342, - "lng": 117.407449, - "name": "蓟县", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "231226", - "people_count_2010": 331343, - "lat": 47.247195, - "lng": 127.111121, - "name": "绥棱县", - "level": "district", - "parent": "绥化市" - }, - { - "adcode": "231283", - "people_count_2010": 769437, - "lat": 47.460428, - "lng": 126.969383, - "name": "海伦市", - "level": "district", - "parent": "绥化市" - }, - { - "adcode": "411524", - "people_count_2010": 495526, - "lat": 31.799982, - "lng": 115.406297, - "name": "商城县", - "level": "district", - "parent": "信阳市" - }, - { - "adcode": "445222", - "people_count_2010": 825727, - "lat": 23.4273, - "lng": 115.838708, - "name": "揭西县", - "level": "district", - "parent": "揭阳市" - }, - { - "adcode": "450903", - "people_count_2010": null, - "lat": 22.58163, - "lng": 110.054155, - "name": "福绵区", - "level": "district", - "parent": "玉林市" - }, - { - "adcode": "441203", - "people_count_2010": 164690, - "lat": 23.155822, - "lng": 112.565249, - "name": "鼎湖区", - "level": "district", - "parent": "肇庆市" - }, - { - "adcode": "441223", - "people_count_2010": 423941, - "lat": 23.631486, - "lng": 112.440419, - "name": "广宁县", - "level": "district", - "parent": "肇庆市" - }, - { - "adcode": "441284", - "people_count_2010": 542873, - "lat": 23.340324, - "lng": 112.695028, - "name": "四会市", - "level": "district", - "parent": "肇庆市" - }, - { - "adcode": "420526", - "people_count_2010": 170630, - "lat": 31.34795, - "lng": 110.754499, - "name": "兴山县", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "420582", - "people_count_2010": 468293, - "lat": 30.824492, - "lng": 111.793419, - "name": "当阳市", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "445203", - "people_count_2010": null, - "lat": 23.569887, - "lng": 116.412947, - "name": "揭东区", - "level": "district", - "parent": "揭阳市" - }, - { - "adcode": "810015", - "people_count_2010": null, - "lat": 22.314203, - "lng": 114.264813, - "name": "西貢區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "522629", - "people_count_2010": 180624, - "lat": 26.727349, - "lng": 108.440499, - "name": "剑河县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "522633", - "people_count_2010": 290960, - "lat": 25.747058, - "lng": 108.912648, - "name": "从江县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "420303", - "people_count_2010": 368471, - "lat": 32.652516, - "lng": 110.772365, - "name": "张湾区", - "level": "district", - "parent": "十堰市" - }, - { - "adcode": "420581", - "people_count_2010": 384598, - "lat": 30.387234, - "lng": 111.454367, - "name": "宜都市", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "441702", - "people_count_2010": 676857, - "lat": 21.859182, - "lng": 111.968909, - "name": "江城区", - "level": "district", - "parent": "阳江市" - }, - { - "adcode": "330212", - "people_count_2010": 1400000, - "lat": 29.831662, - "lng": 121.558436, - "name": "鄞州区", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "420702", - "people_count_2010": null, - "lat": 30.098191, - "lng": 114.681967, - "name": "梁子湖区", - "level": "district", - "parent": "鄂州市" - }, - { - "adcode": "522627", - "people_count_2010": 263850, - "lat": 26.909684, - "lng": 109.212798, - "name": "天柱县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "231221", - "people_count_2010": 458525, - "lat": 46.83352, - "lng": 126.484191, - "name": "望奎县", - "level": "district", - "parent": "绥化市" - }, - { - "adcode": "420304", - "people_count_2010": null, - "lat": 32.838267, - "lng": 110.812099, - "name": "郧阳区", - "level": "district", - "parent": "十堰市" - }, - { - "adcode": "522632", - "people_count_2010": 286322, - "lat": 25.931085, - "lng": 108.521026, - "name": "榕江县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "420302", - "people_count_2010": 399449, - "lat": 32.644463, - "lng": 110.78621, - "name": "茅箭区", - "level": "district", - "parent": "十堰市" - }, - { - "adcode": "450921", - "people_count_2010": 633139, - "lat": 22.856435, - "lng": 110.552467, - "name": "容县", - "level": "district", - "parent": "玉林市" - }, - { - "adcode": "450981", - "people_count_2010": 1100000, - "lat": 22.701648, - "lng": 110.348052, - "name": "北流市", - "level": "district", - "parent": "玉林市" - }, - { - "adcode": "230112", - "people_count_2010": 596856, - "lat": 45.538372, - "lng": 126.972726, - "name": "阿城区", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "520425", - "people_count_2010": 270345, - "lat": 25.751567, - "lng": 106.084515, - "name": "紫云苗族布依族自治县", - "level": "district", - "parent": "安顺市" - }, - { - "adcode": "370684", - "people_count_2010": 451109, - "lat": 37.811168, - "lng": 120.762689, - "name": "蓬莱市", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "451121", - "people_count_2010": 340647, - "lat": 24.172958, - "lng": 110.810865, - "name": "昭平县", - "level": "district", - "parent": "贺州市" - }, - { - "adcode": "620723", - "people_count_2010": 134328, - "lat": 39.152151, - "lng": 100.166333, - "name": "临泽县", - "level": "district", - "parent": "张掖市" - }, - { - "adcode": "420325", - "people_count_2010": 390991, - "lat": 32.055002, - "lng": 110.741966, - "name": "房县", - "level": "district", - "parent": "十堰市" - }, - { - "adcode": "340322", - "people_count_2010": 621973, - "lat": 33.146202, - "lng": 117.888809, - "name": "五河县", - "level": "district", - "parent": "蚌埠市" - }, - { - "adcode": "230502", - "people_count_2010": 251368, - "lat": 46.642961, - "lng": 131.15896, - "name": "尖山区", - "level": "district", - "parent": "双鸭山市" - }, - { - "adcode": "230503", - "people_count_2010": 58012, - "lat": 46.591076, - "lng": 131.163675, - "name": "岭东区", - "level": "district", - "parent": "双鸭山市" - }, - { - "adcode": "230505", - "people_count_2010": 62633, - "lat": 46.594347, - "lng": 131.333181, - "name": "四方台区", - "level": "district", - "parent": "双鸭山市" - }, - { - "adcode": "230522", - "people_count_2010": 110790, - "lat": 46.775159, - "lng": 131.810622, - "name": "友谊县", - "level": "district", - "parent": "双鸭山市" - }, - { - "adcode": "230521", - "people_count_2010": 299890, - "lat": 46.72898, - "lng": 131.13933, - "name": "集贤县", - "level": "district", - "parent": "双鸭山市" - }, - { - "adcode": "230524", - "people_count_2010": 149632, - "lat": 46.801288, - "lng": 134.021162, - "name": "饶河县", - "level": "district", - "parent": "双鸭山市" - }, - { - "adcode": "210181", - "people_count_2010": 657763, - "lat": 41.996508, - "lng": 122.828868, - "name": "新民市", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "500107", - "people_count_2010": 1100000, - "lat": 29.523492, - "lng": 106.480989, - "name": "九龙坡区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "431121", - "people_count_2010": 852204, - "lat": 26.585929, - "lng": 111.85734, - "name": "祁阳县", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "431382", - "people_count_2010": 995515, - "lat": 27.692301, - "lng": 111.670847, - "name": "涟源市", - "level": "district", - "parent": "娄底市" - }, - { - "adcode": "370634", - "people_count_2010": 44025, - "lat": 37.916194, - "lng": 120.738345, - "name": "长岛县", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "420625", - "people_count_2010": 523607, - "lat": 32.262676, - "lng": 111.640147, - "name": "谷城县", - "level": "district", - "parent": "襄阳市" - }, - { - "adcode": "420682", - "people_count_2010": 471482, - "lat": 32.385438, - "lng": 111.675732, - "name": "老河口市", - "level": "district", - "parent": "襄阳市" - }, - { - "adcode": "422822", - "people_count_2010": 412038, - "lat": 30.601632, - "lng": 109.723822, - "name": "建始县", - "level": "district", - "parent": "恩施土家族苗族自治州" - }, - { - "adcode": "410481", - "people_count_2010": 313828, - "lat": 33.302082, - "lng": 113.52625, - "name": "舞钢市", - "level": "district", - "parent": "平顶山市" - }, - { - "adcode": "152221", - "people_count_2010": null, - "lat": 46.076497, - "lng": 121.957544, - "name": "科尔沁右翼前旗", - "level": "district", - "parent": "兴安盟" - }, - { - "adcode": "360424", - "people_count_2010": 739986, - "lat": 29.032729, - "lng": 114.573428, - "name": "修水县", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "652702", - "people_count_2010": null, - "lat": 45.16777, - "lng": 82.569389, - "name": "阿拉山口市", - "level": "district", - "parent": "博尔塔拉蒙古自治州" - }, - { - "adcode": "130205", - "people_count_2010": 262571, - "lat": 39.676171, - "lng": 118.264425, - "name": "开平区", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "421124", - "people_count_2010": 357296, - "lat": 30.735794, - "lng": 115.67753, - "name": "英山县", - "level": "district", - "parent": "黄冈市" - }, - { - "adcode": "522725", - "people_count_2010": 380318, - "lat": 27.066339, - "lng": 107.478417, - "name": "瓮安县", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "620724", - "people_count_2010": 143446, - "lat": 39.376308, - "lng": 99.81665, - "name": "高台县", - "level": "district", - "parent": "张掖市" - }, - { - "adcode": "450108", - "people_count_2010": 344768, - "lat": 22.75909, - "lng": 108.322102, - "name": "良庆区", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "620721", - "people_count_2010": 33653, - "lat": 38.837269, - "lng": 99.617086, - "name": "肃南裕固族自治县", - "level": "district", - "parent": "张掖市" - }, - { - "adcode": "451102", - "people_count_2010": 1400000, - "lat": 24.412446, - "lng": 111.551991, - "name": "八步区", - "level": "district", - "parent": "贺州市" - }, - { - "adcode": "451122", - "people_count_2010": 351124, - "lat": 24.528566, - "lng": 111.303629, - "name": "钟山县", - "level": "district", - "parent": "贺州市" - }, - { - "adcode": "420923", - "people_count_2010": 524799, - "lat": 31.021691, - "lng": 113.750616, - "name": "云梦县", - "level": "district", - "parent": "孝感市" - }, - { - "adcode": "513231", - "people_count_2010": 72391, - "lat": 32.904223, - "lng": 101.700985, - "name": "阿坝县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "632525", - "people_count_2010": 258242, - "lat": 35.587085, - "lng": 100.74792, - "name": "贵南县", - "level": "district", - "parent": "海南藏族自治州" - }, - { - "adcode": "652722", - "people_count_2010": 141593, - "lat": 44.605645, - "lng": 82.892938, - "name": "精河县", - "level": "district", - "parent": "博尔塔拉蒙古自治州" - }, - { - "adcode": "513227", - "people_count_2010": 77731, - "lat": 30.999016, - "lng": 102.363193, - "name": "小金县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "621124", - "people_count_2010": 507386, - "lat": 35.376233, - "lng": 103.862186, - "name": "临洮县", - "level": "district", - "parent": "定西市" - }, - { - "adcode": "530423", - "people_count_2010": 300800, - "lat": 24.112205, - "lng": 102.760039, - "name": "通海县", - "level": "district", - "parent": "玉溪市" - }, - { - "adcode": "650107", - "people_count_2010": 708009, - "lat": 43.36181, - "lng": 88.30994, - "name": "达坂城区", - "level": "district", - "parent": "乌鲁木齐市" - }, - { - "adcode": "320924", - "people_count_2010": 897073, - "lat": 33.773779, - "lng": 120.257444, - "name": "射阳县", - "level": "district", - "parent": "盐城市" - }, - { - "adcode": "653125", - "people_count_2010": 762385, - "lat": 38.414499, - "lng": 77.248884, - "name": "莎车县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "451021", - "people_count_2010": 313253, - "lat": 23.736079, - "lng": 106.904315, - "name": "田阳县", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "620525", - "people_count_2010": null, - "lat": 34.993237, - "lng": 106.212416, - "name": "张家川回族自治县", - "level": "district", - "parent": "天水市" - }, - { - "adcode": "650109", - "people_count_2010": null, - "lat": 43.960982, - "lng": 87.691801, - "name": "米东区", - "level": "district", - "parent": "乌鲁木齐市" - }, - { - "adcode": "320904", - "people_count_2010": null, - "lat": 33.199531, - "lng": 120.470324, - "name": "大丰区", - "level": "district", - "parent": "盐城市" - }, - { - "adcode": "421181", - "people_count_2010": 849090, - "lat": 31.177906, - "lng": 115.02541, - "name": "麻城市", - "level": "district", - "parent": "黄冈市" - }, - { - "adcode": "652223", - "people_count_2010": 1500000, - "lat": 43.252012, - "lng": 94.692773, - "name": "伊吾县", - "level": "district", - "parent": "哈密地区" - }, - { - "adcode": "650103", - "people_count_2010": 664716, - "lat": 43.788872, - "lng": 87.596639, - "name": "沙依巴克区", - "level": "district", - "parent": "乌鲁木齐市" - }, - { - "adcode": "321102", - "people_count_2010": 601876, - "lat": 32.206191, - "lng": 119.454571, - "name": "京口区", - "level": "district", - "parent": "镇江市" - }, - { - "adcode": "321183", - "people_count_2010": 617706, - "lat": 31.947355, - "lng": 119.167135, - "name": "句容市", - "level": "district", - "parent": "镇江市" - }, - { - "adcode": "210423", - "people_count_2010": 290370, - "lat": 42.10135, - "lng": 124.927192, - "name": "清原满族自治县", - "level": "district", - "parent": "抚顺市" - }, - { - "adcode": "532622", - "people_count_2010": 463261, - "lat": 23.612301, - "lng": 104.343989, - "name": "砚山县", - "level": "district", - "parent": "文山壮族苗族自治州" - }, - { - "adcode": "530927", - "people_count_2010": null, - "lat": 23.146887, - "lng": 99.2474, - "name": "沧源佤族自治县", - "level": "district", - "parent": "临沧市" - }, - { - "adcode": "430407", - "people_count_2010": 231592, - "lat": 26.903908, - "lng": 112.607635, - "name": "石鼓区", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "632825", - "people_count_2010": null, - "lat": 37.853631, - "lng": 95.357233, - "name": "海西蒙古族藏族自治州直辖", - "level": "district", - "parent": "海西蒙古族藏族自治州" - }, - { - "adcode": "230882", - "people_count_2010": 437165, - "lat": 47.250747, - "lng": 132.037951, - "name": "富锦市", - "level": "district", - "parent": "佳木斯市" - }, - { - "adcode": "610124", - "people_count_2010": 562768, - "lat": 34.161532, - "lng": 108.216465, - "name": "周至县", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "320921", - "people_count_2010": 509880, - "lat": 34.19996, - "lng": 119.579573, - "name": "响水县", - "level": "district", - "parent": "盐城市" - }, - { - "adcode": "320925", - "people_count_2010": 741764, - "lat": 33.472621, - "lng": 119.793105, - "name": "建湖县", - "level": "district", - "parent": "盐城市" - }, - { - "adcode": "610302", - "people_count_2010": 448189, - "lat": 34.371008, - "lng": 107.144467, - "name": "渭滨区", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "610521", - "people_count_2010": 322148, - "lat": 34.511958, - "lng": 109.76141, - "name": "华县", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "652201", - "people_count_2010": 623059, - "lat": 42.833888, - "lng": 93.509174, - "name": "哈密市", - "level": "district", - "parent": "哈密地区" - }, - { - "adcode": "321112", - "people_count_2010": 302345, - "lat": 32.128972, - "lng": 119.433883, - "name": "丹徒区", - "level": "district", - "parent": "镇江市" - }, - { - "adcode": "420281", - "people_count_2010": 909724, - "lat": 30.098804, - "lng": 114.974842, - "name": "大冶市", - "level": "district", - "parent": "黄石市" - }, - { - "adcode": "430611", - "people_count_2010": 240468, - "lat": 29.438062, - "lng": 113.004082, - "name": "君山区", - "level": "district", - "parent": "岳阳市" - }, - { - "adcode": "430624", - "people_count_2010": 680875, - "lat": 28.677498, - "lng": 112.889748, - "name": "湘阴县", - "level": "district", - "parent": "岳阳市" - }, - { - "adcode": "610581", - "people_count_2010": 391164, - "lat": 35.475238, - "lng": 110.452391, - "name": "韩城市", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "620623", - "people_count_2010": null, - "lat": 36.971678, - "lng": 103.142034, - "name": "天祝藏族自治县", - "level": "district", - "parent": "武威市" - }, - { - "adcode": "621027", - "people_count_2010": 415727, - "lat": 35.677806, - "lng": 107.195706, - "name": "镇原县", - "level": "district", - "parent": "庆阳市" - }, - { - "adcode": "451422", - "people_count_2010": 337133, - "lat": 22.131353, - "lng": 107.067616, - "name": "宁明县", - "level": "district", - "parent": "崇左市" - }, - { - "adcode": "451424", - "people_count_2010": 296555, - "lat": 22.833369, - "lng": 107.200803, - "name": "大新县", - "level": "district", - "parent": "崇左市" - }, - { - "adcode": "654323", - "people_count_2010": 81845, - "lat": 47.113128, - "lng": 87.494569, - "name": "福海县", - "level": "district", - "parent": "阿勒泰地区" - }, - { - "adcode": "610204", - "people_count_2010": 325537, - "lat": 34.910206, - "lng": 108.962538, - "name": "耀州区", - "level": "district", - "parent": "铜川市" - }, - { - "adcode": "620702", - "people_count_2010": 507433, - "lat": 38.931774, - "lng": 100.454862, - "name": "甘州区", - "level": "district", - "parent": "张掖市" - }, - { - "adcode": "431122", - "people_count_2010": 546744, - "lat": 26.397278, - "lng": 111.313035, - "name": "东安县", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "530902", - "people_count_2010": 323708, - "lat": 23.886562, - "lng": 100.086486, - "name": "临翔区", - "level": "district", - "parent": "临沧市" - }, - { - "adcode": "500237", - "people_count_2010": 495072, - "lat": 31.074843, - "lng": 109.878928, - "name": "巫山县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "610525", - "people_count_2010": 386150, - "lat": 35.184, - "lng": 109.937609, - "name": "澄城县", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "540223", - "people_count_2010": null, - "lat": 28.656667, - "lng": 87.123887, - "name": "定日县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "210421", - "people_count_2010": 162588, - "lat": 41.922644, - "lng": 124.097979, - "name": "抚顺县", - "level": "district", - "parent": "抚顺市" - }, - { - "adcode": "310113", - "people_count_2010": null, - "lat": 31.398896, - "lng": 121.489934, - "name": "宝山区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "460202", - "people_count_2010": null, - "lat": 18.407516, - "lng": 109.760778, - "name": "海棠区", - "level": "district", - "parent": "三亚市" - }, - { - "adcode": "350602", - "people_count_2010": 538186, - "lat": 24.509955, - "lng": 117.656461, - "name": "芗城区", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "511902", - "people_count_2010": 1100000, - "lat": 31.858366, - "lng": 106.753671, - "name": "巴州区", - "level": "district", - "parent": "巴中市" - }, - { - "adcode": "370902", - "people_count_2010": 760045, - "lat": 36.189313, - "lng": 117.129984, - "name": "泰山区", - "level": "district", - "parent": "泰安市" - }, - { - "adcode": "533123", - "people_count_2010": 305167, - "lat": 24.709541, - "lng": 97.93393, - "name": "盈江县", - "level": "district", - "parent": "德宏傣族景颇族自治州" - }, - { - "adcode": "610403", - "people_count_2010": null, - "lat": 34.27135, - "lng": 108.086348, - "name": "杨陵区", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "653122", - "people_count_2010": 312455, - "lat": 39.399461, - "lng": 76.053653, - "name": "疏勒县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "220105", - "people_count_2010": 619940, - "lat": 43.870824, - "lng": 125.384727, - "name": "二道区", - "level": "district", - "parent": "长春市" - }, - { - "adcode": "520302", - "people_count_2010": 656592, - "lat": 27.694395, - "lng": 106.943784, - "name": "红花岗区", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "411523", - "people_count_2010": 275304, - "lat": 31.63515, - "lng": 114.87705, - "name": "新县", - "level": "district", - "parent": "信阳市" - }, - { - "adcode": "652828", - "people_count_2010": 72556, - "lat": 42.268863, - "lng": 86.864947, - "name": "和硕县", - "level": "district", - "parent": "巴音郭楞蒙古自治州" - }, - { - "adcode": "410182", - "people_count_2010": 613804, - "lat": 34.789077, - "lng": 113.391523, - "name": "荥阳市", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "460203", - "people_count_2010": null, - "lat": 18.247436, - "lng": 109.512081, - "name": "吉阳区", - "level": "district", - "parent": "三亚市" - }, - { - "adcode": "610113", - "people_count_2010": 1200000, - "lat": 34.213389, - "lng": 108.926593, - "name": "雁塔区", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "450223", - "people_count_2010": 421019, - "lat": 24.483405, - "lng": 109.740805, - "name": "鹿寨县", - "level": "district", - "parent": "柳州市" - }, - { - "adcode": "310118", - "people_count_2010": 1100000, - "lat": 31.151209, - "lng": 121.113021, - "name": "青浦区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "441224", - "people_count_2010": 813032, - "lat": 23.913072, - "lng": 112.182466, - "name": "怀集县", - "level": "district", - "parent": "肇庆市" - }, - { - "adcode": "360203", - "people_count_2010": 281358, - "lat": 29.292812, - "lng": 117.214814, - "name": "珠山区", - "level": "district", - "parent": "景德镇市" - }, - { - "adcode": "653127", - "people_count_2010": 258978, - "lat": 38.903384, - "lng": 77.651538, - "name": "麦盖提县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "320903", - "people_count_2010": 711322, - "lat": 33.341288, - "lng": 120.139753, - "name": "盐都区", - "level": "district", - "parent": "盐城市" - }, - { - "adcode": "130729", - "people_count_2010": 211706, - "lat": 40.765136, - "lng": 114.736131, - "name": "万全县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "320826", - "people_count_2010": 859787, - "lat": 33.771308, - "lng": 119.266078, - "name": "涟水县", - "level": "district", - "parent": "淮安市" - }, - { - "adcode": "330723", - "people_count_2010": 349899, - "lat": 28.896563, - "lng": 119.819159, - "name": "武义县", - "level": "district", - "parent": "金华市" - }, - { - "adcode": "632222", - "people_count_2010": 46473, - "lat": 38.175409, - "lng": 100.249778, - "name": "祁连县", - "level": "district", - "parent": "海北藏族自治州" - }, - { - "adcode": "430725", - "people_count_2010": 853662, - "lat": 28.902734, - "lng": 111.484503, - "name": "桃源县", - "level": "district", - "parent": "常德市" - }, - { - "adcode": "411024", - "people_count_2010": 551611, - "lat": 34.100502, - "lng": 114.188507, - "name": "鄢陵县", - "level": "district", - "parent": "许昌市" - }, - { - "adcode": "411402", - "people_count_2010": 787984, - "lat": 34.436553, - "lng": 115.65459, - "name": "梁园区", - "level": "district", - "parent": "商丘市" - }, - { - "adcode": "411425", - "people_count_2010": 954785, - "lat": 34.399634, - "lng": 115.863811, - "name": "虞城县", - "level": "district", - "parent": "商丘市" - }, - { - "adcode": "230103", - "people_count_2010": 1300000, - "lat": 45.755971, - "lng": 126.652098, - "name": "南岗区", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "410821", - "people_count_2010": 287814, - "lat": 35.229923, - "lng": 113.447465, - "name": "修武县", - "level": "district", - "parent": "焦作市" - }, - { - "adcode": "540422", - "people_count_2010": null, - "lat": 29.213811, - "lng": 94.213679, - "name": "米林县", - "level": "district", - "parent": "林芝市" - }, - { - "adcode": "130208", - "people_count_2010": 916092, - "lat": 39.831363, - "lng": 118.155779, - "name": "丰润区", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "411121", - "people_count_2010": 2000000, - "lat": 33.436278, - "lng": 113.610565, - "name": "舞阳县", - "level": "district", - "parent": "漯河市" - }, - { - "adcode": "411321", - "people_count_2010": 557153, - "lat": 33.488617, - "lng": 112.435583, - "name": "南召县", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "411203", - "people_count_2010": null, - "lat": 34.720244, - "lng": 111.103851, - "name": "陕州区", - "level": "district", - "parent": "三门峡市" - }, - { - "adcode": "150222", - "people_count_2010": 378546, - "lat": 41.030004, - "lng": 110.063421, - "name": "固阳县", - "level": "district", - "parent": "包头市" - }, - { - "adcode": "445303", - "people_count_2010": null, - "lat": 23.073152, - "lng": 112.005609, - "name": "云安区", - "level": "district", - "parent": "云浮市" - }, - { - "adcode": "653201", - "people_count_2010": 322300, - "lat": 37.108944, - "lng": 79.927542, - "name": "和田市", - "level": "district", - "parent": "和田地区" - }, - { - "adcode": "653225", - "people_count_2010": 147050, - "lat": 37.001672, - "lng": 80.803572, - "name": "策勒县", - "level": "district", - "parent": "和田地区" - }, - { - "adcode": "652302", - "people_count_2010": 165006, - "lat": 44.152153, - "lng": 87.98384, - "name": "阜康市", - "level": "district", - "parent": "昌吉回族自治州" - }, - { - "adcode": "411729", - "people_count_2010": 1500000, - "lat": 32.749948, - "lng": 114.975246, - "name": "新蔡县", - "level": "district", - "parent": "驻马店市" - }, - { - "adcode": "652327", - "people_count_2010": 244722, - "lat": 43.997162, - "lng": 89.181288, - "name": "吉木萨尔县", - "level": "district", - "parent": "昌吉回族自治州" - }, - { - "adcode": "220284", - "people_count_2010": 505779, - "lat": 42.942476, - "lng": 126.059929, - "name": "磐石市", - "level": "district", - "parent": "吉林市" - }, - { - "adcode": "652823", - "people_count_2010": 96068, - "lat": 41.337428, - "lng": 86.263412, - "name": "尉犁县", - "level": "district", - "parent": "巴音郭楞蒙古自治州" - }, - { - "adcode": "511703", - "people_count_2010": null, - "lat": 31.199062, - "lng": 107.507926, - "name": "达川区", - "level": "district", - "parent": "达州市" - }, - { - "adcode": "511823", - "people_count_2010": 324408, - "lat": 29.349915, - "lng": 102.677145, - "name": "汉源县", - "level": "district", - "parent": "雅安市" - }, - { - "adcode": "120106", - "people_count_2010": 531526, - "lat": 39.175066, - "lng": 117.163301, - "name": "红桥区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "411303", - "people_count_2010": 924578, - "lat": 32.989877, - "lng": 112.528789, - "name": "卧龙区", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "150124", - "people_count_2010": 93887, - "lat": 39.912479, - "lng": 111.67222, - "name": "清水河县", - "level": "district", - "parent": "呼和浩特市" - }, - { - "adcode": "445302", - "people_count_2010": 318145, - "lat": 22.930827, - "lng": 112.04471, - "name": "云城区", - "level": "district", - "parent": "云浮市" - }, - { - "adcode": "513431", - "people_count_2010": 251836, - "lat": 28.010554, - "lng": 102.843991, - "name": "昭觉县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "131002", - "people_count_2010": 367670, - "lat": 39.502569, - "lng": 116.694544, - "name": "安次区", - "level": "district", - "parent": "廊坊市" - }, - { - "adcode": "130304", - "people_count_2010": 85647, - "lat": 39.825121, - "lng": 119.486286, - "name": "北戴河区", - "level": "district", - "parent": "秦皇岛市" - }, - { - "adcode": "652922", - "people_count_2010": 233933, - "lat": 41.272995, - "lng": 80.243273, - "name": "温宿县", - "level": "district", - "parent": "阿克苏地区" - }, - { - "adcode": "130121", - "people_count_2010": 309882, - "lat": 38.033614, - "lng": 114.144488, - "name": "井陉县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "330784", - "people_count_2010": 723490, - "lat": 28.895293, - "lng": 120.036328, - "name": "永康市", - "level": "district", - "parent": "金华市" - }, - { - "adcode": "341324", - "people_count_2010": 798650, - "lat": 33.47758, - "lng": 117.885443, - "name": "泗县", - "level": "district", - "parent": "宿州市" - }, - { - "adcode": "530627", - "people_count_2010": 1300000, - "lat": 27.436267, - "lng": 104.873055, - "name": "镇雄县", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "532930", - "people_count_2010": 268313, - "lat": 26.111184, - "lng": 99.951708, - "name": "洱源县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "622921", - "people_count_2010": 326123, - "lat": 35.49236, - "lng": 102.993873, - "name": "临夏县", - "level": "district", - "parent": "临夏回族自治州" - }, - { - "adcode": "130725", - "people_count_2010": 151639, - "lat": 41.080091, - "lng": 113.977713, - "name": "尚义县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "652923", - "people_count_2010": 462588, - "lat": 41.717141, - "lng": 82.96304, - "name": "库车县", - "level": "district", - "parent": "阿克苏地区" - }, - { - "adcode": "120101", - "people_count_2010": 273477, - "lat": 39.118327, - "lng": 117.195907, - "name": "和平区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "130522", - "people_count_2010": 204086, - "lat": 37.444009, - "lng": 114.506873, - "name": "临城县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "220882", - "people_count_2010": 431017, - "lat": 45.507648, - "lng": 124.291512, - "name": "大安市", - "level": "district", - "parent": "白城市" - }, - { - "adcode": "513423", - "people_count_2010": 778986, - "lat": 27.423415, - "lng": 101.508909, - "name": "盐源县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "131022", - "people_count_2010": 418689, - "lat": 39.436468, - "lng": 116.299894, - "name": "固安县", - "level": "district", - "parent": "廊坊市" - }, - { - "adcode": "131025", - "people_count_2010": 477773, - "lat": 38.699215, - "lng": 116.640735, - "name": "大城县", - "level": "district", - "parent": "廊坊市" - }, - { - "adcode": "120114", - "people_count_2010": 951078, - "lat": 39.376925, - "lng": 117.057959, - "name": "武清区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "513338", - "people_count_2010": 4600000, - "lat": 28.71134, - "lng": 99.288036, - "name": "得荣县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "630203", - "people_count_2010": null, - "lat": 36.502714, - "lng": 102.104295, - "name": "平安区", - "level": "district", - "parent": "海东市" - }, - { - "adcode": "630223", - "people_count_2010": null, - "lat": 36.83994, - "lng": 101.956734, - "name": "互助土族自治县", - "level": "district", - "parent": "海东市" - }, - { - "adcode": "350206", - "people_count_2010": 931291, - "lat": 24.512764, - "lng": 118.10943, - "name": "湖里区", - "level": "district", - "parent": "厦门市" - }, - { - "adcode": "150722", - "people_count_2010": 276912, - "lat": 48.478385, - "lng": 124.507401, - "name": "莫力达瓦达斡尔族自治旗", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "130223", - "people_count_2010": 554315, - "lat": 39.744851, - "lng": 118.699547, - "name": "滦县", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "130281", - "people_count_2010": 737011, - "lat": 40.188616, - "lng": 117.965875, - "name": "遵化市", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "130727", - "people_count_2010": 258086, - "lat": 40.113419, - "lng": 114.167343, - "name": "阳原县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "130730", - "people_count_2010": 352307, - "lat": 40.405405, - "lng": 115.520846, - "name": "怀来县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "150824", - "people_count_2010": 134204, - "lat": 41.57254, - "lng": 108.515255, - "name": "乌拉特中旗", - "level": "district", - "parent": "巴彦淖尔市" - }, - { - "adcode": "150121", - "people_count_2010": null, - "lat": 40.720416, - "lng": 111.133615, - "name": "土默特左旗", - "level": "district", - "parent": "呼和浩特市" - }, - { - "adcode": "130609", - "people_count_2010": null, - "lat": 39.020395, - "lng": 115.64941, - "name": "徐水区", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "150104", - "people_count_2010": 383365, - "lat": 40.799421, - "lng": 111.66543, - "name": "玉泉区", - "level": "district", - "parent": "呼和浩特市" - }, - { - "adcode": "150125", - "people_count_2010": 108726, - "lat": 41.094483, - "lng": 111.456563, - "name": "武川县", - "level": "district", - "parent": "呼和浩特市" - }, - { - "adcode": "130630", - "people_count_2010": 260678, - "lat": 39.35755, - "lng": 114.692567, - "name": "涞源县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "130726", - "people_count_2010": 450236, - "lat": 39.837181, - "lng": 114.582695, - "name": "蔚县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "150826", - "people_count_2010": 257943, - "lat": 40.888797, - "lng": 107.147682, - "name": "杭锦后旗", - "level": "district", - "parent": "巴彦淖尔市" - }, - { - "adcode": "150823", - "people_count_2010": 293269, - "lat": 40.725209, - "lng": 108.656816, - "name": "乌拉特前旗", - "level": "district", - "parent": "巴彦淖尔市" - }, - { - "adcode": "411122", - "people_count_2010": null, - "lat": 33.80609, - "lng": 113.938891, - "name": "临颍县", - "level": "district", - "parent": "漯河市" - }, - { - "adcode": "131127", - "people_count_2010": 528693, - "lat": 37.686622, - "lng": 116.258446, - "name": "景县", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "130627", - "people_count_2010": 529067, - "lat": 38.748542, - "lng": 114.981241, - "name": "唐县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "130706", - "people_count_2010": 62764, - "lat": 40.488645, - "lng": 115.281002, - "name": "下花园区", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "220183", - "people_count_2010": 748369, - "lat": 44.533909, - "lng": 125.703327, - "name": "德惠市", - "level": "district", - "parent": "长春市" - }, - { - "adcode": "130804", - "people_count_2010": 62454, - "lat": 40.546956, - "lng": 117.661154, - "name": "鹰手营子矿区", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "130823", - "people_count_2010": 446939, - "lat": 41.00561, - "lng": 118.690238, - "name": "平泉县", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "150923", - "people_count_2010": 234417, - "lat": 41.560163, - "lng": 113.560643, - "name": "商都县", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "150926", - "people_count_2010": 463400, - "lat": 40.786859, - "lng": 113.211958, - "name": "察哈尔右翼前旗", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "620104", - "people_count_2010": null, - "lat": 36.100369, - "lng": 103.622331, - "name": "西固区", - "level": "district", - "parent": "兰州市" - }, - { - "adcode": "620122", - "people_count_2010": 131785, - "lat": 36.331254, - "lng": 103.94933, - "name": "皋兰县", - "level": "district", - "parent": "兰州市" - }, - { - "adcode": "330483", - "people_count_2010": 815848, - "lat": 30.629065, - "lng": 120.551085, - "name": "桐乡市", - "level": "district", - "parent": "嘉兴市" - }, - { - "adcode": "150521", - "people_count_2010": 1300000, - "lat": 44.127166, - "lng": 123.313873, - "name": "科尔沁左翼中旗", - "level": "district", - "parent": "通辽市" - }, - { - "adcode": "150525", - "people_count_2010": 401509, - "lat": 42.84685, - "lng": 120.662543, - "name": "奈曼旗", - "level": "district", - "parent": "通辽市" - }, - { - "adcode": "130825", - "people_count_2010": 372030, - "lat": 41.316667, - "lng": 117.736343, - "name": "隆化县", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "630224", - "people_count_2010": null, - "lat": 36.098322, - "lng": 102.262329, - "name": "化隆回族自治县", - "level": "district", - "parent": "海东市" - }, - { - "adcode": "152922", - "people_count_2010": 25430, - "lat": 39.21159, - "lng": 101.671984, - "name": "阿拉善右旗", - "level": "district", - "parent": "阿拉善盟" - }, - { - "adcode": "152921", - "people_count_2010": 173494, - "lat": 38.847241, - "lng": 105.70192, - "name": "阿拉善左旗", - "level": "district", - "parent": "阿拉善盟" - }, - { - "adcode": "152923", - "people_count_2010": 32410, - "lat": 41.958813, - "lng": 101.06944, - "name": "额济纳旗", - "level": "district", - "parent": "阿拉善盟" - }, - { - "adcode": "152222", - "people_count_2010": null, - "lat": 45.059645, - "lng": 121.472818, - "name": "科尔沁右翼中旗", - "level": "district", - "parent": "兴安盟" - }, - { - "adcode": "360681", - "people_count_2010": 558451, - "lat": 28.283693, - "lng": 117.212103, - "name": "贵溪市", - "level": "district", - "parent": "鹰潭市" - }, - { - "adcode": "370781", - "people_count_2010": 940355, - "lat": 36.697855, - "lng": 118.484693, - "name": "青州市", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "371122", - "people_count_2010": 995552, - "lat": 35.588115, - "lng": 118.832859, - "name": "莒县", - "level": "district", - "parent": "日照市" - }, - { - "adcode": "152224", - "people_count_2010": 274213, - "lat": 45.380986, - "lng": 121.564856, - "name": "突泉县", - "level": "district", - "parent": "兴安盟" - }, - { - "adcode": "450326", - "people_count_2010": 233504, - "lat": 24.986692, - "lng": 109.989208, - "name": "永福县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "330205", - "people_count_2010": 361242, - "lat": 29.888361, - "lng": 121.559282, - "name": "江北区", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "360802", - "people_count_2010": 338523, - "lat": 27.112367, - "lng": 114.987331, - "name": "吉州区", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "152522", - "people_count_2010": 43574, - "lat": 44.022728, - "lng": 114.970618, - "name": "阿巴嘎旗", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "130426", - "people_count_2010": 413057, - "lat": 36.563143, - "lng": 113.673297, - "name": "涉县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "630202", - "people_count_2010": null, - "lat": 36.480291, - "lng": 102.402431, - "name": "乐都区", - "level": "district", - "parent": "海东市" - }, - { - "adcode": "150425", - "people_count_2010": 211155, - "lat": 43.256233, - "lng": 117.542465, - "name": "克什克腾旗", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "150430", - "people_count_2010": 547043, - "lat": 42.287012, - "lng": 119.906486, - "name": "敖汉旗", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "331121", - "people_count_2010": 336542, - "lat": 28.135247, - "lng": 120.291939, - "name": "青田县", - "level": "district", - "parent": "丽水市" - }, - { - "adcode": "330781", - "people_count_2010": 560514, - "lat": 29.210065, - "lng": 119.460521, - "name": "兰溪市", - "level": "district", - "parent": "金华市" - }, - { - "adcode": "350104", - "people_count_2010": 762746, - "lat": 26.038912, - "lng": 119.320988, - "name": "仓山区", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "440305", - "people_count_2010": null, - "lat": 22.531221, - "lng": 113.92943, - "name": "南山区", - "level": "district", - "parent": "深圳市" - }, - { - "adcode": "450327", - "people_count_2010": 233598, - "lat": 25.489098, - "lng": 111.160248, - "name": "灌阳县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "360724", - "people_count_2010": 257464, - "lat": 25.794284, - "lng": 114.540537, - "name": "上犹县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "540227", - "people_count_2010": null, - "lat": 29.431597, - "lng": 88.260517, - "name": "谢通门县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "430527", - "people_count_2010": 351139, - "lat": 26.580622, - "lng": 110.155075, - "name": "绥宁县", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "360722", - "people_count_2010": 664047, - "lat": 25.38023, - "lng": 114.930893, - "name": "信丰县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "360702", - "people_count_2010": 642653, - "lat": 25.851367, - "lng": 114.93872, - "name": "章贡区", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "230404", - "people_count_2010": 1100000, - "lat": 47.31324, - "lng": 130.275533, - "name": "南山区", - "level": "district", - "parent": "鹤岗市" - }, - { - "adcode": "371427", - "people_count_2010": 500514, - "lat": 36.950501, - "lng": 116.003816, - "name": "夏津县", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "630122", - "people_count_2010": 437835, - "lat": 36.500419, - "lng": 101.569475, - "name": "湟中县", - "level": "district", - "parent": "西宁市" - }, - { - "adcode": "330302", - "people_count_2010": 1300000, - "lat": 28.003352, - "lng": 120.674231, - "name": "鹿城区", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "540224", - "people_count_2010": null, - "lat": 28.901077, - "lng": 88.023007, - "name": "萨迦县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "350627", - "people_count_2010": 333969, - "lat": 24.516425, - "lng": 117.365462, - "name": "南靖县", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "371724", - "people_count_2010": 860581, - "lat": 35.390999, - "lng": 116.089341, - "name": "巨野县", - "level": "district", - "parent": "菏泽市" - }, - { - "adcode": "370827", - "people_count_2010": 437146, - "lat": 34.997706, - "lng": 116.650023, - "name": "鱼台县", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "371425", - "people_count_2010": 602042, - "lat": 36.795497, - "lng": 116.758394, - "name": "齐河县", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "370521", - "people_count_2010": 242292, - "lat": 37.588679, - "lng": 118.551314, - "name": "垦利县", - "level": "district", - "parent": "东营市" - }, - { - "adcode": "360502", - "people_count_2010": 839488, - "lat": 27.819171, - "lng": 114.923923, - "name": "渝水区", - "level": "district", - "parent": "新余市" - }, - { - "adcode": "542423", - "people_count_2010": 60179, - "lat": 31.479917, - "lng": 93.68044, - "name": "比如县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "431381", - "people_count_2010": 327146, - "lat": 27.685759, - "lng": 111.434674, - "name": "冷水江市", - "level": "district", - "parent": "娄底市" - }, - { - "adcode": "371502", - "people_count_2010": 1200000, - "lat": 36.45606, - "lng": 115.980023, - "name": "东昌府区", - "level": "district", - "parent": "聊城市" - }, - { - "adcode": "540327", - "people_count_2010": null, - "lat": 29.671335, - "lng": 97.840532, - "name": "左贡县", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "370523", - "people_count_2010": 507523, - "lat": 37.05161, - "lng": 118.407522, - "name": "广饶县", - "level": "district", - "parent": "东营市" - }, - { - "adcode": "371523", - "people_count_2010": 520016, - "lat": 36.591934, - "lng": 116.25335, - "name": "茌平县", - "level": "district", - "parent": "聊城市" - }, - { - "adcode": "371581", - "people_count_2010": 719611, - "lat": 36.842598, - "lng": 115.713462, - "name": "临清市", - "level": "district", - "parent": "聊城市" - }, - { - "adcode": "371728", - "people_count_2010": 711080, - "lat": 35.289637, - "lng": 115.098412, - "name": "东明县", - "level": "district", - "parent": "菏泽市" - }, - { - "adcode": "210113", - "people_count_2010": null, - "lat": 42.052312, - "lng": 123.521471, - "name": "沈北新区", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "421003", - "people_count_2010": 553756, - "lat": 30.350674, - "lng": 112.195354, - "name": "荆州区", - "level": "district", - "parent": "荆州市" - }, - { - "adcode": "431125", - "people_count_2010": 231898, - "lat": 25.268154, - "lng": 111.346803, - "name": "江永县", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "430225", - "people_count_2010": 202071, - "lat": 26.489459, - "lng": 113.776884, - "name": "炎陵县", - "level": "district", - "parent": "株洲市" - }, - { - "adcode": "371526", - "people_count_2010": 473422, - "lat": 36.859755, - "lng": 116.229662, - "name": "高唐县", - "level": "district", - "parent": "聊城市" - }, - { - "adcode": "330727", - "people_count_2010": 174665, - "lat": 29.052627, - "lng": 120.44513, - "name": "磐安县", - "level": "district", - "parent": "金华市" - }, - { - "adcode": "410822", - "people_count_2010": 436319, - "lat": 35.170351, - "lng": 113.069313, - "name": "博爱县", - "level": "district", - "parent": "焦作市" - }, - { - "adcode": "371522", - "people_count_2010": 958827, - "lat": 36.237597, - "lng": 115.667291, - "name": "莘县", - "level": "district", - "parent": "聊城市" - }, - { - "adcode": "530427", - "people_count_2010": null, - "lat": 24.0664, - "lng": 101.990903, - "name": "新平彝族傣族自治县", - "level": "district", - "parent": "玉溪市" - }, - { - "adcode": "530424", - "people_count_2010": 214650, - "lat": 24.189807, - "lng": 102.928982, - "name": "华宁县", - "level": "district", - "parent": "玉溪市" - }, - { - "adcode": "530322", - "people_count_2010": 622397, - "lat": 25.022878, - "lng": 103.655233, - "name": "陆良县", - "level": "district", - "parent": "曲靖市" - }, - { - "adcode": "530323", - "people_count_2010": 392361, - "lat": 24.825681, - "lng": 103.993808, - "name": "师宗县", - "level": "district", - "parent": "曲靖市" - }, - { - "adcode": "530422", - "people_count_2010": 169366, - "lat": 24.669679, - "lng": 102.916652, - "name": "澄江县", - "level": "district", - "parent": "玉溪市" - }, - { - "adcode": "530425", - "people_count_2010": 1500000, - "lat": 24.669598, - "lng": 102.16211, - "name": "易门县", - "level": "district", - "parent": "玉溪市" - }, - { - "adcode": "230714", - "people_count_2010": 21147, - "lat": 48.59112, - "lng": 129.437847, - "name": "乌伊岭区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "230711", - "people_count_2010": 31416, - "lat": 47.726961, - "lng": 128.802941, - "name": "乌马河区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "430503", - "people_count_2010": 340605, - "lat": 27.233593, - "lng": 111.462968, - "name": "大祥区", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "640422", - "people_count_2010": 354321, - "lat": 35.965384, - "lng": 105.731801, - "name": "西吉县", - "level": "district", - "parent": "固原市" - }, - { - "adcode": "230321", - "people_count_2010": 273871, - "lat": 45.250892, - "lng": 131.148907, - "name": "鸡东县", - "level": "district", - "parent": "鸡西市" - }, - { - "adcode": "632621", - "people_count_2010": 51245, - "lat": 34.473386, - "lng": 100.243531, - "name": "玛沁县", - "level": "district", - "parent": "果洛藏族自治州" - }, - { - "adcode": "632625", - "people_count_2010": 26081, - "lat": 33.430217, - "lng": 101.484884, - "name": "久治县", - "level": "district", - "parent": "果洛藏族自治州" - }, - { - "adcode": "130982", - "people_count_2010": null, - "lat": 38.706513, - "lng": 116.106764, - "name": "任丘市", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "320302", - "people_count_2010": null, - "lat": 34.269397, - "lng": 117.192941, - "name": "鼓楼区", - "level": "district", - "parent": "徐州市" - }, - { - "adcode": "632722", - "people_count_2010": 58268, - "lat": 32.891886, - "lng": 95.293423, - "name": "杂多县", - "level": "district", - "parent": "玉树藏族自治州" - }, - { - "adcode": "440224", - "people_count_2010": 200354, - "lat": 25.088226, - "lng": 113.748627, - "name": "仁化县", - "level": "district", - "parent": "韶关市" - }, - { - "adcode": "632623", - "people_count_2010": 34840, - "lat": 33.966987, - "lng": 99.902589, - "name": "甘德县", - "level": "district", - "parent": "果洛藏族自治州" - }, - { - "adcode": "632626", - "people_count_2010": 389775, - "lat": 34.91528, - "lng": 98.211343, - "name": "玛多县", - "level": "district", - "parent": "果洛藏族自治州" - }, - { - "adcode": "511526", - "people_count_2010": 379798, - "lat": 28.449041, - "lng": 104.712268, - "name": "珙县", - "level": "district", - "parent": "宜宾市" - }, - { - "adcode": "331082", - "people_count_2010": 1000000, - "lat": 28.845441, - "lng": 121.131229, - "name": "临海市", - "level": "district", - "parent": "台州市" - }, - { - "adcode": "331081", - "people_count_2010": 1400000, - "lat": 28.368781, - "lng": 121.373611, - "name": "温岭市", - "level": "district", - "parent": "台州市" - }, - { - "adcode": "130283", - "people_count_2010": 728160, - "lat": 40.012108, - "lng": 118.701933, - "name": "迁安市", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "522628", - "people_count_2010": 154869, - "lat": 26.680625, - "lng": 109.20252, - "name": "锦屏县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "210681", - "people_count_2010": 627475, - "lat": 39.883467, - "lng": 124.149437, - "name": "东港市", - "level": "district", - "parent": "丹东市" - }, - { - "adcode": "620502", - "people_count_2010": 643906, - "lat": 34.578645, - "lng": 105.724477, - "name": "秦州区", - "level": "district", - "parent": "天水市" - }, - { - "adcode": "510105", - "people_count_2010": 828140, - "lat": 30.667648, - "lng": 104.055731, - "name": "青羊区", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "512081", - "people_count_2010": 2000000, - "lat": 30.390666, - "lng": 104.550339, - "name": "简阳市", - "level": "district", - "parent": "资阳市" - }, - { - "adcode": "411725", - "people_count_2010": 406021, - "lat": 32.801538, - "lng": 114.026679, - "name": "确山县", - "level": "district", - "parent": "驻马店市" - }, - { - "adcode": "431102", - "people_count_2010": 532705, - "lat": 26.223347, - "lng": 111.626348, - "name": "零陵区", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "230224", - "people_count_2010": 302027, - "lat": 46.39233, - "lng": 123.41953, - "name": "泰来县", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "350322", - "people_count_2010": 824707, - "lat": 25.356529, - "lng": 118.694331, - "name": "仙游县", - "level": "district", - "parent": "莆田市" - }, - { - "adcode": "440514", - "people_count_2010": 1300000, - "lat": 23.249798, - "lng": 116.423607, - "name": "潮南区", - "level": "district", - "parent": "汕头市" - }, - { - "adcode": "430204", - "people_count_2010": 283179, - "lat": 27.871945, - "lng": 113.11295, - "name": "石峰区", - "level": "district", - "parent": "株洲市" - }, - { - "adcode": "360104", - "people_count_2010": 316723, - "lat": 28.635724, - "lng": 115.907292, - "name": "青云谱区", - "level": "district", - "parent": "南昌市" - }, - { - "adcode": "411502", - "people_count_2010": 594391, - "lat": 32.123274, - "lng": 114.075031, - "name": "浉河区", - "level": "district", - "parent": "信阳市" - }, - { - "adcode": "130528", - "people_count_2010": 764828, - "lat": 37.618956, - "lng": 114.921027, - "name": "宁晋县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "371321", - "people_count_2010": 822727, - "lat": 35.547002, - "lng": 118.455395, - "name": "沂南县", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "510724", - "people_count_2010": 366802, - "lat": 31.53894, - "lng": 104.560341, - "name": "安县", - "level": "district", - "parent": "绵阳市" - }, - { - "adcode": "360983", - "people_count_2010": 811633, - "lat": 28.420951, - "lng": 115.381527, - "name": "高安市", - "level": "district", - "parent": "宜春市" - }, - { - "adcode": "620123", - "people_count_2010": 437163, - "lat": 35.84443, - "lng": 104.114975, - "name": "榆中县", - "level": "district", - "parent": "兰州市" - }, - { - "adcode": "540221", - "people_count_2010": null, - "lat": 29.680459, - "lng": 89.099434, - "name": "南木林县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "211103", - "people_count_2010": 468080, - "lat": 41.122423, - "lng": 122.071624, - "name": "兴隆台区", - "level": "district", - "parent": "盘锦市" - }, - { - "adcode": "451481", - "people_count_2010": 112159, - "lat": 22.108882, - "lng": 106.759038, - "name": "凭祥市", - "level": "district", - "parent": "崇左市" - }, - { - "adcode": "511129", - "people_count_2010": 216737, - "lat": 28.956338, - "lng": 103.90211, - "name": "沐川县", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "620102", - "people_count_2010": null, - "lat": 36.049115, - "lng": 103.841032, - "name": "城关区", - "level": "district", - "parent": "兰州市" - }, - { - "adcode": "220403", - "people_count_2010": 177978, - "lat": 42.920415, - "lng": 125.151424, - "name": "西安区", - "level": "district", - "parent": "辽源市" - }, - { - "adcode": "621122", - "people_count_2010": 453259, - "lat": 35.003409, - "lng": 104.637554, - "name": "陇西县", - "level": "district", - "parent": "定西市" - }, - { - "adcode": "340123", - "people_count_2010": 858895, - "lat": 31.719646, - "lng": 117.166118, - "name": "肥西县", - "level": "district", - "parent": "合肥市" - }, - { - "adcode": "513430", - "people_count_2010": 165121, - "lat": 27.695916, - "lng": 103.248704, - "name": "金阳县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "420205", - "people_count_2010": 57327, - "lat": 30.20601, - "lng": 114.901366, - "name": "铁山区", - "level": "district", - "parent": "黄石市" - }, - { - "adcode": "513437", - "people_count_2010": 223885, - "lat": 28.262946, - "lng": 103.571584, - "name": "雷波县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "440304", - "people_count_2010": 1300000, - "lat": 22.541009, - "lng": 114.05096, - "name": "福田区", - "level": "district", - "parent": "深圳市" - }, - { - "adcode": "653222", - "people_count_2010": 500114, - "lat": 37.271511, - "lng": 79.736629, - "name": "墨玉县", - "level": "district", - "parent": "和田地区" - }, - { - "adcode": "513329", - "people_count_2010": 50393, - "lat": 30.93896, - "lng": 100.312094, - "name": "新龙县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "140725", - "people_count_2010": 211014, - "lat": 37.891136, - "lng": 113.177708, - "name": "寿阳县", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "450324", - "people_count_2010": 633174, - "lat": 25.929897, - "lng": 111.072989, - "name": "全州县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "140932", - "people_count_2010": 112111, - "lat": 39.442153, - "lng": 111.500477, - "name": "偏关县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "360423", - "people_count_2010": 360269, - "lat": 29.260182, - "lng": 115.105646, - "name": "武宁县", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "210881", - "people_count_2010": 691595, - "lat": 40.405234, - "lng": 122.355534, - "name": "盖州市", - "level": "district", - "parent": "营口市" - }, - { - "adcode": "130802", - "people_count_2010": 424897, - "lat": 40.976204, - "lng": 117.939152, - "name": "双桥区", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "420222", - "people_count_2010": 827631, - "lat": 29.841572, - "lng": 115.212883, - "name": "阳新县", - "level": "district", - "parent": "黄石市" - }, - { - "adcode": "320205", - "people_count_2010": 681413, - "lat": 31.585559, - "lng": 120.357298, - "name": "锡山区", - "level": "district", - "parent": "无锡市" - }, - { - "adcode": "320206", - "people_count_2010": 691077, - "lat": 31.681019, - "lng": 120.303543, - "name": "惠山区", - "level": "district", - "parent": "无锡市" - }, - { - "adcode": "320282", - "people_count_2010": 1200000, - "lat": 31.364384, - "lng": 119.820538, - "name": "宜兴市", - "level": "district", - "parent": "无锡市" - }, - { - "adcode": "512002", - "people_count_2010": 905729, - "lat": 30.121686, - "lng": 104.642338, - "name": "雁江区", - "level": "district", - "parent": "资阳市" - }, - { - "adcode": "341221", - "people_count_2010": 1500000, - "lat": 33.062698, - "lng": 115.261688, - "name": "临泉县", - "level": "district", - "parent": "阜阳市" - }, - { - "adcode": "341282", - "people_count_2010": 561956, - "lat": 33.26153, - "lng": 115.362117, - "name": "界首市", - "level": "district", - "parent": "阜阳市" - }, - { - "adcode": "320211", - "people_count_2010": 1200000, - "lat": 31.550228, - "lng": 120.266053, - "name": "滨湖区", - "level": "district", - "parent": "无锡市" - }, - { - "adcode": "341523", - "people_count_2010": 749273, - "lat": 31.462848, - "lng": 116.944088, - "name": "舒城县", - "level": "district", - "parent": "六安市" - }, - { - "adcode": "341525", - "people_count_2010": 315144, - "lat": 31.402456, - "lng": 116.333078, - "name": "霍山县", - "level": "district", - "parent": "六安市" - }, - { - "adcode": "210726", - "people_count_2010": 615085, - "lat": 41.691804, - "lng": 122.117915, - "name": "黑山县", - "level": "district", - "parent": "锦州市" - }, - { - "adcode": "210521", - "people_count_2010": 296218, - "lat": 41.300344, - "lng": 124.126156, - "name": "本溪满族自治县", - "level": "district", - "parent": "本溪市" - }, - { - "adcode": "430422", - "people_count_2010": 954619, - "lat": 26.739973, - "lng": 112.677459, - "name": "衡南县", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "610729", - "people_count_2010": 43398, - "lat": 33.61334, - "lng": 106.924377, - "name": "留坝县", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "320312", - "people_count_2010": null, - "lat": 34.19288, - "lng": 117.183894, - "name": "铜山区", - "level": "district", - "parent": "徐州市" - }, - { - "adcode": "450110", - "people_count_2010": null, - "lat": 23.157163, - "lng": 108.280717, - "name": "武鸣区", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "430423", - "people_count_2010": 384196, - "lat": 27.234808, - "lng": 112.86971, - "name": "衡山县", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "420322", - "people_count_2010": 447482, - "lat": 32.991457, - "lng": 110.426472, - "name": "郧西县", - "level": "district", - "parent": "十堰市" - }, - { - "adcode": "220702", - "people_count_2010": 612816, - "lat": 45.176498, - "lng": 124.827851, - "name": "宁江区", - "level": "district", - "parent": "松原市" - }, - { - "adcode": "230127", - "people_count_2010": 277685, - "lat": 45.949826, - "lng": 128.042675, - "name": "木兰县", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "130131", - "people_count_2010": 433429, - "lat": 38.259311, - "lng": 114.184144, - "name": "平山县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "532331", - "people_count_2010": 4900000, - "lat": 25.14327, - "lng": 102.075694, - "name": "禄丰县", - "level": "district", - "parent": "楚雄彝族自治州" - }, - { - "adcode": "421122", - "people_count_2010": 602148, - "lat": 31.284777, - "lng": 114.615095, - "name": "红安县", - "level": "district", - "parent": "黄冈市" - }, - { - "adcode": "621123", - "people_count_2010": 324215, - "lat": 35.133023, - "lng": 104.211742, - "name": "渭源县", - "level": "district", - "parent": "定西市" - }, - { - "adcode": "620521", - "people_count_2010": 266908, - "lat": 34.75287, - "lng": 106.139878, - "name": "清水县", - "level": "district", - "parent": "天水市" - }, - { - "adcode": "451024", - "people_count_2010": 297907, - "lat": 23.321464, - "lng": 106.618164, - "name": "德保县", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "210522", - "people_count_2010": 319026, - "lat": 41.268997, - "lng": 125.359195, - "name": "桓仁满族自治县", - "level": "district", - "parent": "本溪市" - }, - { - "adcode": "420982", - "people_count_2010": 568590, - "lat": 31.26174, - "lng": 113.690401, - "name": "安陆市", - "level": "district", - "parent": "孝感市" - }, - { - "adcode": "320585", - "people_count_2010": 711854, - "lat": 31.452568, - "lng": 121.112275, - "name": "太仓市", - "level": "district", - "parent": "苏州市" - }, - { - "adcode": "430722", - "people_count_2010": 800019, - "lat": 28.907319, - "lng": 111.968506, - "name": "汉寿县", - "level": "district", - "parent": "常德市" - }, - { - "adcode": "450123", - "people_count_2010": 300215, - "lat": 23.174763, - "lng": 107.688661, - "name": "隆安县", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "110105", - "people_count_2010": 3500000, - "lat": 39.921489, - "lng": 116.486409, - "name": "朝阳区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "320505", - "people_count_2010": null, - "lat": 31.294845, - "lng": 120.566833, - "name": "虎丘区", - "level": "district", - "parent": "苏州市" - }, - { - "adcode": "650104", - "people_count_2010": null, - "lat": 43.870882, - "lng": 87.560653, - "name": "新市区", - "level": "district", - "parent": "乌鲁木齐市" - }, - { - "adcode": "371203", - "people_count_2010": 308994, - "lat": 36.058038, - "lng": 117.82033, - "name": "钢城区", - "level": "district", - "parent": "莱芜市" - }, - { - "adcode": "411726", - "people_count_2010": 810409, - "lat": 32.725129, - "lng": 113.32605, - "name": "泌阳县", - "level": "district", - "parent": "驻马店市" - }, - { - "adcode": "341226", - "people_count_2010": 1200000, - "lat": 32.637065, - "lng": 116.259122, - "name": "颍上县", - "level": "district", - "parent": "阜阳市" - }, - { - "adcode": "540323", - "people_count_2010": null, - "lat": 31.213048, - "lng": 96.601259, - "name": "类乌齐县", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "430721", - "people_count_2010": 525844, - "lat": 29.414483, - "lng": 112.172289, - "name": "安乡县", - "level": "district", - "parent": "常德市" - }, - { - "adcode": "810018", - "people_count_2010": null, - "lat": 22.286371, - "lng": 113.946059, - "name": "離島區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "430221", - "people_count_2010": 383598, - "lat": 27.705844, - "lng": 113.146176, - "name": "株洲县", - "level": "district", - "parent": "株洲市" - }, - { - "adcode": "532327", - "people_count_2010": 109304, - "lat": 26.056316, - "lng": 101.671175, - "name": "永仁县", - "level": "district", - "parent": "楚雄彝族自治州" - }, - { - "adcode": "210281", - "people_count_2010": 942197, - "lat": 39.63065, - "lng": 122.002656, - "name": "瓦房店市", - "level": "district", - "parent": "大连市" - }, - { - "adcode": "210213", - "people_count_2010": 1100000, - "lat": 39.052745, - "lng": 121.789413, - "name": "金州区", - "level": "district", - "parent": "大连市" - }, - { - "adcode": "210283", - "people_count_2010": 841321, - "lat": 39.69829, - "lng": 122.970612, - "name": "庄河市", - "level": "district", - "parent": "大连市" - }, - { - "adcode": "430223", - "people_count_2010": 693458, - "lat": 27.000071, - "lng": 113.345774, - "name": "攸县", - "level": "district", - "parent": "株洲市" - }, - { - "adcode": "654226", - "people_count_2010": 62100, - "lat": 46.793001, - "lng": 85.733551, - "name": "和布克赛尔蒙古自治县", - "level": "district", - "parent": "塔城地区" - }, - { - "adcode": "610429", - "people_count_2010": 261566, - "lat": 35.112234, - "lng": 108.337231, - "name": "旬邑县", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "350203", - "people_count_2010": 929998, - "lat": 24.462059, - "lng": 118.087828, - "name": "思明区", - "level": "district", - "parent": "厦门市" - }, - { - "adcode": "230881", - "people_count_2010": 179791, - "lat": 47.651131, - "lng": 132.510119, - "name": "同江市", - "level": "district", - "parent": "佳木斯市" - }, - { - "adcode": "513334", - "people_count_2010": 69046, - "lat": 29.991807, - "lng": 100.269862, - "name": "理塘县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "620522", - "people_count_2010": 515423, - "lat": 34.862354, - "lng": 105.6733, - "name": "秦安县", - "level": "district", - "parent": "天水市" - }, - { - "adcode": "150928", - "people_count_2010": 150174, - "lat": 41.447213, - "lng": 113.1906, - "name": "察哈尔右翼后旗", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "611026", - "people_count_2010": 153398, - "lat": 33.682773, - "lng": 109.111249, - "name": "柞水县", - "level": "district", - "parent": "商洛市" - }, - { - "adcode": "650106", - "people_count_2010": 172796, - "lat": 43.876053, - "lng": 87.425823, - "name": "头屯河区", - "level": "district", - "parent": "乌鲁木齐市" - }, - { - "adcode": "450102", - "people_count_2010": 398789, - "lat": 22.819511, - "lng": 108.320189, - "name": "兴宁区", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "210503", - "people_count_2010": 252671, - "lat": 41.330056, - "lng": 123.765226, - "name": "溪湖区", - "level": "district", - "parent": "本溪市" - }, - { - "adcode": "350982", - "people_count_2010": 529534, - "lat": 27.318884, - "lng": 120.219761, - "name": "福鼎市", - "level": "district", - "parent": "宁德市" - }, - { - "adcode": "533324", - "people_count_2010": null, - "lat": 27.738054, - "lng": 98.666141, - "name": "贡山独龙族怒族自治县", - "level": "district", - "parent": "怒江傈僳族自治州" - }, - { - "adcode": "210402", - "people_count_2010": 252631, - "lat": 41.86082, - "lng": 123.902858, - "name": "新抚区", - "level": "district", - "parent": "抚顺市" - }, - { - "adcode": "650105", - "people_count_2010": 390943, - "lat": 43.816747, - "lng": 87.613093, - "name": "水磨沟区", - "level": "district", - "parent": "乌鲁木齐市" - }, - { - "adcode": "210203", - "people_count_2010": 305742, - "lat": 38.914266, - "lng": 121.616112, - "name": "西岗区", - "level": "district", - "parent": "大连市" - }, - { - "adcode": "130629", - "people_count_2010": 258179, - "lat": 39.05282, - "lng": 115.866247, - "name": "容城县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "654221", - "people_count_2010": 187112, - "lat": 46.522555, - "lng": 83.622118, - "name": "额敏县", - "level": "district", - "parent": "塔城地区" - }, - { - "adcode": "130632", - "people_count_2010": 437378, - "lat": 38.929912, - "lng": 115.931979, - "name": "安新县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "410302", - "people_count_2010": 163176, - "lat": 34.682945, - "lng": 112.477298, - "name": "老城区", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "610111", - "people_count_2010": 595124, - "lat": 34.267453, - "lng": 109.067261, - "name": "灞桥区", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "540230", - "people_count_2010": null, - "lat": 28.554719, - "lng": 89.683406, - "name": "康马县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "441422", - "people_count_2010": 374666, - "lat": 24.351587, - "lng": 116.69552, - "name": "大埔县", - "level": "district", - "parent": "梅州市" - }, - { - "adcode": "460108", - "people_count_2010": 623653, - "lat": 20.03074, - "lng": 110.356566, - "name": "美兰区", - "level": "district", - "parent": "海口市" - }, - { - "adcode": "410304", - "people_count_2010": null, - "lat": 34.684738, - "lng": 112.491625, - "name": "瀍河回族区", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "410325", - "people_count_2010": 507052, - "lat": 34.131563, - "lng": 112.087765, - "name": "嵩县", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "640521", - "people_count_2010": 312921, - "lat": 37.489736, - "lng": 105.675784, - "name": "中宁县", - "level": "district", - "parent": "中卫市" - }, - { - "adcode": "410303", - "people_count_2010": 728819, - "lat": 34.667847, - "lng": 112.443232, - "name": "西工区", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "350503", - "people_count_2010": 529640, - "lat": 24.896041, - "lng": 118.605147, - "name": "丰泽区", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "411522", - "people_count_2010": 585353, - "lat": 32.010398, - "lng": 114.903577, - "name": "光山县", - "level": "district", - "parent": "信阳市" - }, - { - "adcode": "650121", - "people_count_2010": 83187, - "lat": 43.982546, - "lng": 87.505603, - "name": "乌鲁木齐县", - "level": "district", - "parent": "乌鲁木齐市" - }, - { - "adcode": "511381", - "people_count_2010": 728935, - "lat": 31.580466, - "lng": 105.975266, - "name": "阆中市", - "level": "district", - "parent": "南充市" - }, - { - "adcode": "441426", - "people_count_2010": 230045, - "lat": 24.569651, - "lng": 115.891729, - "name": "平远县", - "level": "district", - "parent": "梅州市" - }, - { - "adcode": "610304", - "people_count_2010": 595075, - "lat": 34.352747, - "lng": 107.383645, - "name": "陈仓区", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "140921", - "people_count_2010": 217468, - "lat": 38.484948, - "lng": 112.963231, - "name": "定襄县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "533102", - "people_count_2010": 180627, - "lat": 24.010734, - "lng": 97.855883, - "name": "瑞丽市", - "level": "district", - "parent": "德宏傣族景颇族自治州" - }, - { - "adcode": "440205", - "people_count_2010": 303371, - "lat": 24.680195, - "lng": 113.605582, - "name": "曲江区", - "level": "district", - "parent": "韶关市" - }, - { - "adcode": "230603", - "people_count_2010": 352404, - "lat": 46.573948, - "lng": 125.145794, - "name": "龙凤区", - "level": "district", - "parent": "大庆市" - }, - { - "adcode": "520323", - "people_count_2010": 380083, - "lat": 27.951342, - "lng": 107.191024, - "name": "绥阳县", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "220503", - "people_count_2010": 146631, - "lat": 41.777564, - "lng": 126.045987, - "name": "二道江区", - "level": "district", - "parent": "通化市" - }, - { - "adcode": "530126", - "people_count_2010": null, - "lat": 24.754545, - "lng": 103.271962, - "name": "石林彝族自治县", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "420506", - "people_count_2010": 520186, - "lat": 30.770199, - "lng": 111.326747, - "name": "夷陵区", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "621022", - "people_count_2010": 302918, - "lat": 36.569322, - "lng": 107.308754, - "name": "环县", - "level": "district", - "parent": "庆阳市" - }, - { - "adcode": "640202", - "people_count_2010": 286669, - "lat": 39.014158, - "lng": 106.376651, - "name": "大武口区", - "level": "district", - "parent": "石嘴山市" - }, - { - "adcode": "610122", - "people_count_2010": 514026, - "lat": 34.156189, - "lng": 109.317634, - "name": "蓝田县", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "140922", - "people_count_2010": 299391, - "lat": 38.725711, - "lng": 113.259012, - "name": "五台县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "500105", - "people_count_2010": null, - "lat": 29.575352, - "lng": 106.532844, - "name": "江北区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "411330", - "people_count_2010": 393942, - "lat": 32.367153, - "lng": 113.406059, - "name": "桐柏县", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "220112", - "people_count_2010": 377803, - "lat": 43.525168, - "lng": 125.659018, - "name": "双阳区", - "level": "district", - "parent": "长春市" - }, - { - "adcode": "331122", - "people_count_2010": 358917, - "lat": 28.654208, - "lng": 120.078965, - "name": "缙云县", - "level": "district", - "parent": "丽水市" - }, - { - "adcode": "230921", - "people_count_2010": 299484, - "lat": 45.751573, - "lng": 130.575025, - "name": "勃利县", - "level": "district", - "parent": "七台河市" - }, - { - "adcode": "222424", - "people_count_2010": 255411, - "lat": 43.315426, - "lng": 129.766161, - "name": "汪清县", - "level": "district", - "parent": "延边朝鲜族自治州" - }, - { - "adcode": "350525", - "people_count_2010": 452217, - "lat": 25.320721, - "lng": 118.29503, - "name": "永春县", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "140926", - "people_count_2010": 156846, - "lat": 38.355947, - "lng": 111.940231, - "name": "静乐县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "320508", - "people_count_2010": null, - "lat": 31.311414, - "lng": 120.622249, - "name": "姑苏区", - "level": "district", - "parent": "苏州市" - }, - { - "adcode": "621102", - "people_count_2010": 420614, - "lat": 35.579764, - "lng": 104.62577, - "name": "安定区", - "level": "district", - "parent": "定西市" - }, - { - "adcode": "451028", - "people_count_2010": 148504, - "lat": 24.782204, - "lng": 106.559638, - "name": "乐业县", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "420607", - "people_count_2010": 904957, - "lat": 32.085517, - "lng": 112.197378, - "name": "襄州区", - "level": "district", - "parent": "襄阳市" - }, - { - "adcode": "513301", - "people_count_2010": null, - "lat": 30.050738, - "lng": 101.964057, - "name": "康定市", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "430104", - "people_count_2010": 801781, - "lat": 28.213044, - "lng": 112.911591, - "name": "岳麓区", - "level": "district", - "parent": "长沙市" - }, - { - "adcode": "620402", - "people_count_2010": 294400, - "lat": 36.545649, - "lng": 104.17425, - "name": "白银区", - "level": "district", - "parent": "白银市" - }, - { - "adcode": "130628", - "people_count_2010": 345160, - "lat": 38.690092, - "lng": 115.778878, - "name": "高阳县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "130631", - "people_count_2010": 250014, - "lat": 38.707448, - "lng": 115.154009, - "name": "望都县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "430724", - "people_count_2010": 400839, - "lat": 29.443217, - "lng": 111.645602, - "name": "临澧县", - "level": "district", - "parent": "常德市" - }, - { - "adcode": "431281", - "people_count_2010": 477996, - "lat": 27.201876, - "lng": 109.831765, - "name": "洪江市", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "451222", - "people_count_2010": 155017, - "lat": 24.985964, - "lng": 107.174939, - "name": "天峨县", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "210782", - "people_count_2010": 514898, - "lat": 41.598764, - "lng": 121.795962, - "name": "北镇市", - "level": "district", - "parent": "锦州市" - }, - { - "adcode": "321324", - "people_count_2010": 909298, - "lat": 33.456538, - "lng": 118.211824, - "name": "泗洪县", - "level": "district", - "parent": "宿迁市" - }, - { - "adcode": "420881", - "people_count_2010": 1000000, - "lat": 31.165573, - "lng": 112.587267, - "name": "钟祥市", - "level": "district", - "parent": "荆门市" - }, - { - "adcode": "500241", - "people_count_2010": 501590, - "lat": 28.444772, - "lng": 108.996043, - "name": "秀山土家族苗族自治县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "411702", - "people_count_2010": 721723, - "lat": 32.977559, - "lng": 114.029149, - "name": "驿城区", - "level": "district", - "parent": "驻马店市" - }, - { - "adcode": "411724", - "people_count_2010": 645034, - "lat": 32.601826, - "lng": 114.38948, - "name": "正阳县", - "level": "district", - "parent": "驻马店市" - }, - { - "adcode": "370502", - "people_count_2010": 756676, - "lat": 37.461567, - "lng": 118.507543, - "name": "东营区", - "level": "district", - "parent": "东营市" - }, - { - "adcode": "640205", - "people_count_2010": 185803, - "lat": 39.230094, - "lng": 106.775513, - "name": "惠农区", - "level": "district", - "parent": "石嘴山市" - }, - { - "adcode": "441621", - "people_count_2010": 640133, - "lat": 23.633744, - "lng": 115.184383, - "name": "紫金县", - "level": "district", - "parent": "河源市" - }, - { - "adcode": "330921", - "people_count_2010": 202164, - "lat": 30.242865, - "lng": 122.201132, - "name": "岱山县", - "level": "district", - "parent": "舟山市" - }, - { - "adcode": "220281", - "people_count_2010": 447226, - "lat": 43.720579, - "lng": 127.342739, - "name": "蛟河市", - "level": "district", - "parent": "吉林市" - }, - { - "adcode": "440229", - "people_count_2010": 331320, - "lat": 24.353887, - "lng": 114.131289, - "name": "翁源县", - "level": "district", - "parent": "韶关市" - }, - { - "adcode": "150402", - "people_count_2010": 434785, - "lat": 42.269732, - "lng": 118.961087, - "name": "红山区", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "220422", - "people_count_2010": 348905, - "lat": 42.927724, - "lng": 124.991995, - "name": "东辽县", - "level": "district", - "parent": "辽源市" - }, - { - "adcode": "330783", - "people_count_2010": 804398, - "lat": 29.262546, - "lng": 120.23334, - "name": "东阳市", - "level": "district", - "parent": "金华市" - }, - { - "adcode": "140830", - "people_count_2010": 394849, - "lat": 34.694769, - "lng": 110.69114, - "name": "芮城县", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "141028", - "people_count_2010": 106407, - "lat": 36.099355, - "lng": 110.682853, - "name": "吉县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "141122", - "people_count_2010": 230521, - "lat": 37.555155, - "lng": 112.159154, - "name": "交城县", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "341502", - "people_count_2010": 789699, - "lat": 31.754491, - "lng": 116.503288, - "name": "金安区", - "level": "district", - "parent": "六安市" - }, - { - "adcode": "341522", - "people_count_2010": 1400000, - "lat": 32.341305, - "lng": 116.278875, - "name": "霍邱县", - "level": "district", - "parent": "六安市" - }, - { - "adcode": "141130", - "people_count_2010": 119918, - "lat": 36.983068, - "lng": 111.183188, - "name": "交口县", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "410782", - "people_count_2010": 740435, - "lat": 35.461318, - "lng": 113.802518, - "name": "辉县市", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "140923", - "people_count_2010": 214091, - "lat": 39.065138, - "lng": 112.962519, - "name": "代县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "141022", - "people_count_2010": 311471, - "lat": 35.738621, - "lng": 111.713508, - "name": "翼城县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "340822", - "people_count_2010": 592750, - "lat": 30.734994, - "lng": 116.828664, - "name": "怀宁县", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "441481", - "people_count_2010": 962883, - "lat": 24.138077, - "lng": 115.731648, - "name": "兴宁市", - "level": "district", - "parent": "梅州市" - }, - { - "adcode": "440203", - "people_count_2010": 294708, - "lat": 24.80016, - "lng": 113.588289, - "name": "武江区", - "level": "district", - "parent": "韶关市" - }, - { - "adcode": "330122", - "people_count_2010": 406450, - "lat": 29.797437, - "lng": 119.685045, - "name": "桐庐县", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "623022", - "people_count_2010": 100522, - "lat": 34.588165, - "lng": 103.508508, - "name": "卓尼县", - "level": "district", - "parent": "甘南藏族自治州" - }, - { - "adcode": "411727", - "people_count_2010": 769995, - "lat": 33.004535, - "lng": 114.359495, - "name": "汝南县", - "level": "district", - "parent": "驻马店市" - }, - { - "adcode": "653227", - "people_count_2010": 2500000, - "lat": 37.064909, - "lng": 82.692354, - "name": "民丰县", - "level": "district", - "parent": "和田地区" - }, - { - "adcode": "370212", - "people_count_2010": 379469, - "lat": 36.102569, - "lng": 120.467393, - "name": "崂山区", - "level": "district", - "parent": "青岛市" - }, - { - "adcode": "211402", - "people_count_2010": 605186, - "lat": 40.755143, - "lng": 120.85937, - "name": "连山区", - "level": "district", - "parent": "葫芦岛市" - }, - { - "adcode": "140881", - "people_count_2010": 444724, - "lat": 34.865125, - "lng": 110.447984, - "name": "永济市", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "150927", - "people_count_2010": null, - "lat": 41.274212, - "lng": 112.633563, - "name": "察哈尔右翼中旗", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "130634", - "people_count_2010": 588559, - "lat": 38.619992, - "lng": 114.704055, - "name": "曲阳县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "542232", - "people_count_2010": 15124, - "lat": 27.991707, - "lng": 91.960132, - "name": "错那县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "130637", - "people_count_2010": 245504, - "lat": 38.458271, - "lng": 115.461798, - "name": "博野县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "441721", - "people_count_2010": 452625, - "lat": 21.75367, - "lng": 111.617556, - "name": "阳西县", - "level": "district", - "parent": "阳江市" - }, - { - "adcode": "420606", - "people_count_2010": 821531, - "lat": 32.058589, - "lng": 112.13957, - "name": "樊城区", - "level": "district", - "parent": "襄阳市" - }, - { - "adcode": "420624", - "people_count_2010": 533661, - "lat": 31.77692, - "lng": 111.844424, - "name": "南漳县", - "level": "district", - "parent": "襄阳市" - }, - { - "adcode": "420626", - "people_count_2010": 254596, - "lat": 31.873507, - "lng": 111.262235, - "name": "保康县", - "level": "district", - "parent": "襄阳市" - }, - { - "adcode": "211303", - "people_count_2010": 211102, - "lat": 41.576749, - "lng": 120.413376, - "name": "龙城区", - "level": "district", - "parent": "朝阳市" - }, - { - "adcode": "420684", - "people_count_2010": 512530, - "lat": 31.709203, - "lng": 112.261441, - "name": "宜城市", - "level": "district", - "parent": "襄阳市" - }, - { - "adcode": "450902", - "people_count_2010": 1100000, - "lat": 22.632132, - "lng": 110.154912, - "name": "玉州区", - "level": "district", - "parent": "玉林市" - }, - { - "adcode": "232722", - "people_count_2010": 92473, - "lat": 52.335229, - "lng": 124.710516, - "name": "塔河县", - "level": "district", - "parent": "大兴安岭地区" - }, - { - "adcode": "522727", - "people_count_2010": 228560, - "lat": 25.831803, - "lng": 107.32405, - "name": "平塘县", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "130636", - "people_count_2010": 295764, - "lat": 38.845127, - "lng": 115.132749, - "name": "顺平县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "621024", - "people_count_2010": 145722, - "lat": 35.819005, - "lng": 108.019865, - "name": "合水县", - "level": "district", - "parent": "庆阳市" - }, - { - "adcode": "610723", - "people_count_2010": 383981, - "lat": 33.223283, - "lng": 107.549962, - "name": "洋县", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "320621", - "people_count_2010": 2900000, - "lat": 32.540289, - "lng": 120.465995, - "name": "海安县", - "level": "district", - "parent": "南通市" - }, - { - "adcode": "530824", - "people_count_2010": null, - "lat": 23.500278, - "lng": 100.701425, - "name": "景谷傣族彝族自治县", - "level": "district", - "parent": "普洱市" - }, - { - "adcode": "210103", - "people_count_2010": 849267, - "lat": 41.795591, - "lng": 123.445696, - "name": "沈河区", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "430821", - "people_count_2010": 602736, - "lat": 29.423876, - "lng": 111.132702, - "name": "慈利县", - "level": "district", - "parent": "张家界市" - }, - { - "adcode": "451023", - "people_count_2010": 434289, - "lat": 23.320479, - "lng": 107.580403, - "name": "平果县", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "431302", - "people_count_2010": 496744, - "lat": 27.726643, - "lng": 112.008486, - "name": "娄星区", - "level": "district", - "parent": "娄底市" - }, - { - "adcode": "520403", - "people_count_2010": null, - "lat": 26.40608, - "lng": 106.259942, - "name": "平坝区", - "level": "district", - "parent": "安顺市" - }, - { - "adcode": "130683", - "people_count_2010": 370317, - "lat": 38.421367, - "lng": 115.33141, - "name": "安国市", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "231002", - "people_count_2010": 200160, - "lat": 44.582399, - "lng": 129.623292, - "name": "东安区", - "level": "district", - "parent": "牡丹江市" - }, - { - "adcode": "340121", - "people_count_2010": 671343, - "lat": 32.478548, - "lng": 117.164699, - "name": "长丰县", - "level": "district", - "parent": "合肥市" - }, - { - "adcode": "520113", - "people_count_2010": null, - "lat": 26.676849, - "lng": 106.633037, - "name": "白云区", - "level": "district", - "parent": "贵阳市" - }, - { - "adcode": "530428", - "people_count_2010": null, - "lat": 23.597618, - "lng": 101.999658, - "name": "元江哈尼族彝族傣族自治县", - "level": "district", - "parent": "玉溪市" - }, - { - "adcode": "610326", - "people_count_2010": 299990, - "lat": 34.272137, - "lng": 107.752371, - "name": "眉县", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "610329", - "people_count_2010": 90728, - "lat": 34.677714, - "lng": 107.796608, - "name": "麟游县", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "620821", - "people_count_2010": 281145, - "lat": 35.335283, - "lng": 107.365218, - "name": "泾川县", - "level": "district", - "parent": "平凉市" - }, - { - "adcode": "620825", - "people_count_2010": 382827, - "lat": 35.203428, - "lng": 106.041979, - "name": "庄浪县", - "level": "district", - "parent": "平凉市" - }, - { - "adcode": "520112", - "people_count_2010": 376971, - "lat": 26.630928, - "lng": 106.762123, - "name": "乌当区", - "level": "district", - "parent": "贵阳市" - }, - { - "adcode": "520111", - "people_count_2010": 358981, - "lat": 26.410464, - "lng": 106.670791, - "name": "花溪区", - "level": "district", - "parent": "贵阳市" - }, - { - "adcode": "520525", - "people_count_2010": null, - "lat": 26.769875, - "lng": 105.375322, - "name": "纳雍县", - "level": "district", - "parent": "毕节市" - }, - { - "adcode": "640381", - "people_count_2010": 264717, - "lat": 38.021509, - "lng": 106.075395, - "name": "青铜峡市", - "level": "district", - "parent": "吴忠市" - }, - { - "adcode": "640303", - "people_count_2010": null, - "lat": 37.421616, - "lng": 106.067315, - "name": "红寺堡区", - "level": "district", - "parent": "吴忠市" - }, - { - "adcode": "654224", - "people_count_2010": 93098, - "lat": 45.935863, - "lng": 83.60469, - "name": "托里县", - "level": "district", - "parent": "塔城地区" - }, - { - "adcode": "532328", - "people_count_2010": 215795, - "lat": 25.703313, - "lng": 101.870837, - "name": "元谋县", - "level": "district", - "parent": "楚雄彝族自治州" - }, - { - "adcode": "410106", - "people_count_2010": 131549, - "lat": 34.808689, - "lng": 113.298282, - "name": "上街区", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "520521", - "people_count_2010": null, - "lat": 27.143521, - "lng": 105.609254, - "name": "大方县", - "level": "district", - "parent": "毕节市" - }, - { - "adcode": "520522", - "people_count_2010": null, - "lat": 27.024923, - "lng": 106.038299, - "name": "黔西县", - "level": "district", - "parent": "毕节市" - }, - { - "adcode": "410181", - "people_count_2010": 807911, - "lat": 34.75218, - "lng": 112.98283, - "name": "巩义市", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "640324", - "people_count_2010": 318153, - "lat": 36.9829, - "lng": 105.914764, - "name": "同心县", - "level": "district", - "parent": "吴忠市" - }, - { - "adcode": "610623", - "people_count_2010": 216910, - "lat": 37.14207, - "lng": 109.675968, - "name": "子长县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "610427", - "people_count_2010": 323256, - "lat": 35.034233, - "lng": 108.083674, - "name": "彬县", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "610728", - "people_count_2010": 246817, - "lat": 32.535854, - "lng": 107.89531, - "name": "镇巴县", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "621222", - "people_count_2010": 218796, - "lat": 32.942171, - "lng": 104.682448, - "name": "文县", - "level": "district", - "parent": "陇南市" - }, - { - "adcode": "130984", - "people_count_2010": 810306, - "lat": 38.44149, - "lng": 116.089452, - "name": "河间市", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "654325", - "people_count_2010": 58858, - "lat": 46.672446, - "lng": 90.381561, - "name": "青河县", - "level": "district", - "parent": "阿勒泰地区" - }, - { - "adcode": "530623", - "people_count_2010": 369881, - "lat": 28.106923, - "lng": 104.23506, - "name": "盐津县", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "654321", - "people_count_2010": 66758, - "lat": 47.70453, - "lng": 86.86186, - "name": "布尔津县", - "level": "district", - "parent": "阿勒泰地区" - }, - { - "adcode": "320321", - "people_count_2010": 963531, - "lat": 34.696946, - "lng": 116.592888, - "name": "丰县", - "level": "district", - "parent": "徐州市" - }, - { - "adcode": "341823", - "people_count_2010": 299555, - "lat": 30.685975, - "lng": 118.412397, - "name": "泾县", - "level": "district", - "parent": "宣城市" - }, - { - "adcode": "450423", - "people_count_2010": 192953, - "lat": 24.199829, - "lng": 110.5226, - "name": "蒙山县", - "level": "district", - "parent": "梧州市" - }, - { - "adcode": "610423", - "people_count_2010": 487749, - "lat": 34.528493, - "lng": 108.83784, - "name": "泾阳县", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "610431", - "people_count_2010": 411312, - "lat": 34.259732, - "lng": 108.212857, - "name": "武功县", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "130981", - "people_count_2010": 2200000, - "lat": 38.073479, - "lng": 116.570163, - "name": "泊头市", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "340702", - "people_count_2010": 287765, - "lat": 30.93182, - "lng": 117.818427, - "name": "铜官山区", - "level": "district", - "parent": "铜陵市" - }, - { - "adcode": "340703", - "people_count_2010": 114297, - "lat": 30.946249, - "lng": 117.864094, - "name": "狮子山区", - "level": "district", - "parent": "铜陵市" - }, - { - "adcode": "520603", - "people_count_2010": null, - "lat": 27.51903, - "lng": 109.21199, - "name": "万山区", - "level": "district", - "parent": "铜仁市" - }, - { - "adcode": "520624", - "people_count_2010": null, - "lat": 27.941331, - "lng": 108.255827, - "name": "思南县", - "level": "district", - "parent": "铜仁市" - }, - { - "adcode": "340711", - "people_count_2010": null, - "lat": 30.908927, - "lng": 117.80707, - "name": "郊区", - "level": "district", - "parent": "铜陵市" - }, - { - "adcode": "421127", - "people_count_2010": 858806, - "lat": 30.075113, - "lng": 115.942548, - "name": "黄梅县", - "level": "district", - "parent": "黄冈市" - }, - { - "adcode": "511921", - "people_count_2010": 687369, - "lat": 31.91212, - "lng": 107.247621, - "name": "通江县", - "level": "district", - "parent": "巴中市" - }, - { - "adcode": "540328", - "people_count_2010": null, - "lat": 29.686615, - "lng": 98.596444, - "name": "芒康县", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "610631", - "people_count_2010": 49392, - "lat": 35.583276, - "lng": 109.83502, - "name": "黄龙县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "150424", - "people_count_2010": 200619, - "lat": 43.605326, - "lng": 118.05775, - "name": "林西县", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "350624", - "people_count_2010": 597798, - "lat": 23.710834, - "lng": 117.176083, - "name": "诏安县", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "654301", - "people_count_2010": 190064, - "lat": 47.848911, - "lng": 88.138743, - "name": "阿勒泰市", - "level": "district", - "parent": "阿勒泰地区" - }, - { - "adcode": "460204", - "people_count_2010": null, - "lat": 18.24734, - "lng": 109.506357, - "name": "天涯区", - "level": "district", - "parent": "三亚市" - }, - { - "adcode": "130638", - "people_count_2010": 359506, - "lat": 38.990819, - "lng": 116.107474, - "name": "雄县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "451026", - "people_count_2010": 153686, - "lat": 23.400785, - "lng": 105.833553, - "name": "那坡县", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "310108", - "people_count_2010": 830496, - "lat": 31.25318, - "lng": 121.465689, - "name": "闸北区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "411224", - "people_count_2010": 352449, - "lat": 34.053995, - "lng": 111.052649, - "name": "卢氏县", - "level": "district", - "parent": "三门峡市" - }, - { - "adcode": "321323", - "people_count_2010": 831112, - "lat": 33.711433, - "lng": 118.681284, - "name": "泗阳县", - "level": "district", - "parent": "宿迁市" - }, - { - "adcode": "130684", - "people_count_2010": 640280, - "lat": 39.327689, - "lng": 115.882704, - "name": "高碑店市", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "370283", - "people_count_2010": 1400000, - "lat": 36.788828, - "lng": 119.959012, - "name": "平度市", - "level": "district", - "parent": "青岛市" - }, - { - "adcode": "130929", - "people_count_2010": 579831, - "lat": 38.189661, - "lng": 116.123844, - "name": "献县", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "522701", - "people_count_2010": 443721, - "lat": 26.258205, - "lng": 107.517021, - "name": "都匀市", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "530621", - "people_count_2010": 390654, - "lat": 27.191637, - "lng": 103.549333, - "name": "鲁甸县", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "130733", - "people_count_2010": 106122, - "lat": 40.971302, - "lng": 115.281652, - "name": "崇礼县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "341322", - "people_count_2010": 1100000, - "lat": 34.183266, - "lng": 116.945399, - "name": "萧县", - "level": "district", - "parent": "宿州市" - }, - { - "adcode": "441704", - "people_count_2010": null, - "lat": 21.864728, - "lng": 112.011267, - "name": "阳东区", - "level": "district", - "parent": "阳江市" - }, - { - "adcode": "210921", - "people_count_2010": 664971, - "lat": 42.058607, - "lng": 121.743125, - "name": "阜新蒙古族自治县", - "level": "district", - "parent": "阜新市" - }, - { - "adcode": "370982", - "people_count_2010": 1300000, - "lat": 35.910387, - "lng": 117.766092, - "name": "新泰市", - "level": "district", - "parent": "泰安市" - }, - { - "adcode": "520181", - "people_count_2010": 467790, - "lat": 26.551289, - "lng": 106.470278, - "name": "清镇市", - "level": "district", - "parent": "贵阳市" - }, - { - "adcode": "150221", - "people_count_2010": 276453, - "lat": 40.566434, - "lng": 110.526766, - "name": "土默特右旗", - "level": "district", - "parent": "包头市" - }, - { - "adcode": "340221", - "people_count_2010": 294039, - "lat": 31.145262, - "lng": 118.572301, - "name": "芜湖县", - "level": "district", - "parent": "芜湖市" - }, - { - "adcode": "340223", - "people_count_2010": 404278, - "lat": 30.919638, - "lng": 118.337104, - "name": "南陵县", - "level": "district", - "parent": "芜湖市" - }, - { - "adcode": "330102", - "people_count_2010": 344594, - "lat": 30.250236, - "lng": 120.171465, - "name": "上城区", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "520526", - "people_count_2010": null, - "lat": 26.859099, - "lng": 104.286523, - "name": "威宁彝族回族苗族自治县", - "level": "district", - "parent": "毕节市" - }, - { - "adcode": "621226", - "people_count_2010": 458237, - "lat": 34.189387, - "lng": 105.181616, - "name": "礼县", - "level": "district", - "parent": "陇南市" - }, - { - "adcode": "371302", - "people_count_2010": 1200000, - "lat": 35.061631, - "lng": 118.327667, - "name": "兰山区", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "520527", - "people_count_2010": null, - "lat": 27.119243, - "lng": 104.726438, - "name": "赫章县", - "level": "district", - "parent": "毕节市" - }, - { - "adcode": "411002", - "people_count_2010": 497925, - "lat": 34.02711, - "lng": 113.828307, - "name": "魏都区", - "level": "district", - "parent": "许昌市" - }, - { - "adcode": "410223", - "people_count_2010": 879713, - "lat": 34.412256, - "lng": 114.193927, - "name": "尉氏县", - "level": "district", - "parent": "开封市" - }, - { - "adcode": "340621", - "people_count_2010": 1000000, - "lat": 33.916407, - "lng": 116.767435, - "name": "濉溪县", - "level": "district", - "parent": "淮北市" - }, - { - "adcode": "220605", - "people_count_2010": null, - "lat": 42.048109, - "lng": 126.584229, - "name": "江源区", - "level": "district", - "parent": "白山市" - }, - { - "adcode": "350625", - "people_count_2010": 206809, - "lat": 24.621475, - "lng": 117.755913, - "name": "长泰县", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "210105", - "people_count_2010": 925176, - "lat": 41.822336, - "lng": 123.405677, - "name": "皇姑区", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "210112", - "people_count_2010": 1300000, - "lat": 41.741946, - "lng": 123.458981, - "name": "浑南区", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "445224", - "people_count_2010": 1100000, - "lat": 23.029834, - "lng": 116.295832, - "name": "惠来县", - "level": "district", - "parent": "揭阳市" - }, - { - "adcode": "350681", - "people_count_2010": 877762, - "lat": 24.445341, - "lng": 117.817292, - "name": "龙海市", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "340104", - "people_count_2010": 1000000, - "lat": 31.855868, - "lng": 117.262072, - "name": "蜀山区", - "level": "district", - "parent": "合肥市" - }, - { - "adcode": "231123", - "people_count_2010": 101411, - "lat": 49.582974, - "lng": 128.476152, - "name": "逊克县", - "level": "district", - "parent": "黑河市" - }, - { - "adcode": "360323", - "people_count_2010": 257423, - "lat": 27.633633, - "lng": 114.041206, - "name": "芦溪县", - "level": "district", - "parent": "萍乡市" - }, - { - "adcode": "540222", - "people_count_2010": null, - "lat": 28.908845, - "lng": 89.605044, - "name": "江孜县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "350722", - "people_count_2010": 304583, - "lat": 27.920412, - "lng": 118.536822, - "name": "浦城县", - "level": "district", - "parent": "南平市" - }, - { - "adcode": "230110", - "people_count_2010": 916408, - "lat": 45.713067, - "lng": 126.667049, - "name": "香坊区", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "421381", - "people_count_2010": 755910, - "lat": 31.617731, - "lng": 113.826601, - "name": "广水市", - "level": "district", - "parent": "随州市" - }, - { - "adcode": "360425", - "people_count_2010": 376107, - "lat": 29.018212, - "lng": 115.809055, - "name": "永修县", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "330502", - "people_count_2010": 757165, - "lat": 30.867252, - "lng": 120.101416, - "name": "吴兴区", - "level": "district", - "parent": "湖州市" - }, - { - "adcode": "330881", - "people_count_2010": 467862, - "lat": 28.734674, - "lng": 118.627879, - "name": "江山市", - "level": "district", - "parent": "衢州市" - }, - { - "adcode": "360730", - "people_count_2010": 794806, - "lat": 26.472054, - "lng": 116.018782, - "name": "宁都县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "220521", - "people_count_2010": 247140, - "lat": 41.677918, - "lng": 125.753121, - "name": "通化县", - "level": "district", - "parent": "通化市" - }, - { - "adcode": "360803", - "people_count_2010": 200176, - "lat": 27.105879, - "lng": 115.016306, - "name": "青原区", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "360824", - "people_count_2010": 329830, - "lat": 27.755758, - "lng": 115.399294, - "name": "新干县", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "421125", - "people_count_2010": 872649, - "lat": 30.454837, - "lng": 115.26344, - "name": "浠水县", - "level": "district", - "parent": "黄冈市" - }, - { - "adcode": "130123", - "people_count_2010": 466807, - "lat": 38.147835, - "lng": 114.569887, - "name": "正定县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "120104", - "people_count_2010": 1000000, - "lat": 39.120474, - "lng": 117.164143, - "name": "南开区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "652827", - "people_count_2010": 160804, - "lat": 42.31716, - "lng": 86.391067, - "name": "和静县", - "level": "district", - "parent": "巴音郭楞蒙古自治州" - }, - { - "adcode": "110128", - "people_count_2010": null, - "lat": 40.377362, - "lng": 116.843352, - "name": "密云区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "361022", - "people_count_2010": 230086, - "lat": 27.292561, - "lng": 116.91457, - "name": "黎川县", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "361028", - "people_count_2010": 111983, - "lat": 27.70653, - "lng": 117.066095, - "name": "资溪县", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "361025", - "people_count_2010": 345766, - "lat": 27.420101, - "lng": 115.838432, - "name": "乐安县", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "341622", - "people_count_2010": 1100000, - "lat": 33.260814, - "lng": 116.560337, - "name": "蒙城县", - "level": "district", - "parent": "亳州市" - }, - { - "adcode": "542421", - "people_count_2010": 108781, - "lat": 31.475756, - "lng": 92.061862, - "name": "那曲县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "350629", - "people_count_2010": 159152, - "lat": 25.001416, - "lng": 117.53631, - "name": "华安县", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "350481", - "people_count_2010": 347042, - "lat": 25.974075, - "lng": 117.364447, - "name": "永安市", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "330782", - "people_count_2010": 1200000, - "lat": 29.306863, - "lng": 120.074911, - "name": "义乌市", - "level": "district", - "parent": "金华市" - }, - { - "adcode": "361103", - "people_count_2010": null, - "lat": 28.440285, - "lng": 118.189852, - "name": "广丰区", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "540121", - "people_count_2010": 50246, - "lat": 29.895754, - "lng": 91.261842, - "name": "林周县", - "level": "district", - "parent": "拉萨市" - }, - { - "adcode": "330521", - "people_count_2010": 491789, - "lat": 30.534927, - "lng": 119.967662, - "name": "德清县", - "level": "district", - "parent": "湖州市" - }, - { - "adcode": "350429", - "people_count_2010": 110278, - "lat": 26.897995, - "lng": 117.177522, - "name": "泰宁县", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "361029", - "people_count_2010": 438319, - "lat": 28.2325, - "lng": 116.605341, - "name": "东乡县", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "522731", - "people_count_2010": 342647, - "lat": 26.128637, - "lng": 106.657848, - "name": "惠水县", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "130183", - "people_count_2010": 537679, - "lat": 38.027478, - "lng": 115.044886, - "name": "晋州市", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "652924", - "people_count_2010": 257502, - "lat": 41.226268, - "lng": 82.78077, - "name": "沙雅县", - "level": "district", - "parent": "阿克苏地区" - }, - { - "adcode": "653223", - "people_count_2010": 258210, - "lat": 37.616332, - "lng": 78.282301, - "name": "皮山县", - "level": "district", - "parent": "和田地区" - }, - { - "adcode": "652301", - "people_count_2010": 426253, - "lat": 44.013183, - "lng": 87.304112, - "name": "昌吉市", - "level": "district", - "parent": "昌吉回族自治州" - }, - { - "adcode": "110116", - "people_count_2010": 372887, - "lat": 40.324272, - "lng": 116.637122, - "name": "怀柔区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "330127", - "people_count_2010": 336843, - "lat": 29.604177, - "lng": 119.044276, - "name": "淳安县", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "530722", - "people_count_2010": 392024, - "lat": 26.685623, - "lng": 100.750901, - "name": "永胜县", - "level": "district", - "parent": "丽江市" - }, - { - "adcode": "120112", - "people_count_2010": 593063, - "lat": 38.989577, - "lng": 117.382549, - "name": "津南区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "330328", - "people_count_2010": 212077, - "lat": 27.789133, - "lng": 120.09245, - "name": "文成县", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "370105", - "people_count_2010": 688415, - "lat": 36.693374, - "lng": 116.996086, - "name": "天桥区", - "level": "district", - "parent": "济南市" - }, - { - "adcode": "500152", - "people_count_2010": null, - "lat": 30.189554, - "lng": 105.841818, - "name": "潼南区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "500120", - "people_count_2010": null, - "lat": 29.593581, - "lng": 106.231126, - "name": "璧山区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "460321", - "people_count_2010": null, - "lat": 16.204546, - "lng": 111.792944, - "name": "西沙群岛", - "level": "district", - "parent": "三沙市" - }, - { - "adcode": "420112", - "people_count_2010": 452053, - "lat": 30.622467, - "lng": 114.142483, - "name": "东西湖区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "321322", - "people_count_2010": 1500000, - "lat": 34.129097, - "lng": 118.775889, - "name": "沭阳县", - "level": "district", - "parent": "宿迁市" - }, - { - "adcode": "540225", - "people_count_2010": null, - "lat": 29.085136, - "lng": 87.63743, - "name": "拉孜县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "410923", - "people_count_2010": 458487, - "lat": 36.075204, - "lng": 115.204336, - "name": "南乐县", - "level": "district", - "parent": "濮阳市" - }, - { - "adcode": "350423", - "people_count_2010": 136248, - "lat": 26.17761, - "lng": 116.815821, - "name": "清流县", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "530421", - "people_count_2010": 280889, - "lat": 24.291006, - "lng": 102.749839, - "name": "江川县", - "level": "district", - "parent": "玉溪市" - }, - { - "adcode": "330411", - "people_count_2010": 589219, - "lat": 30.763323, - "lng": 120.720431, - "name": "秀洲区", - "level": "district", - "parent": "嘉兴市" - }, - { - "adcode": "130229", - "people_count_2010": 684833, - "lat": 39.887323, - "lng": 117.753665, - "name": "玉田县", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "522323", - "people_count_2010": 254247, - "lat": 25.786404, - "lng": 104.955347, - "name": "普安县", - "level": "district", - "parent": "黔西南布依族苗族自治州" - }, - { - "adcode": "330402", - "people_count_2010": 612663, - "lat": 30.764652, - "lng": 120.749953, - "name": "南湖区", - "level": "district", - "parent": "嘉兴市" - }, - { - "adcode": "140521", - "people_count_2010": 213016, - "lat": 35.689472, - "lng": 112.187213, - "name": "沁水县", - "level": "district", - "parent": "晋城市" - }, - { - "adcode": "140781", - "people_count_2010": 406517, - "lat": 37.027616, - "lng": 111.913857, - "name": "介休市", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "150625", - "people_count_2010": 111102, - "lat": 39.831789, - "lng": 108.736324, - "name": "杭锦旗", - "level": "district", - "parent": "鄂尔多斯市" - }, - { - "adcode": "542424", - "people_count_2010": 32376, - "lat": 32.107855, - "lng": 92.303659, - "name": "聂荣县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "430603", - "people_count_2010": 176672, - "lat": 29.473395, - "lng": 113.27387, - "name": "云溪区", - "level": "district", - "parent": "岳阳市" - }, - { - "adcode": "341004", - "people_count_2010": 95529, - "lat": 29.825201, - "lng": 118.339743, - "name": "徽州区", - "level": "district", - "parent": "黄山市" - }, - { - "adcode": "350723", - "people_count_2010": 134113, - "lat": 27.542803, - "lng": 117.337897, - "name": "光泽县", - "level": "district", - "parent": "南平市" - }, - { - "adcode": "130530", - "people_count_2010": 169858, - "lat": 37.526216, - "lng": 115.247537, - "name": "新河县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "130534", - "people_count_2010": 386231, - "lat": 37.059991, - "lng": 115.668999, - "name": "清河县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "542427", - "people_count_2010": 43621, - "lat": 31.886173, - "lng": 93.784964, - "name": "索县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "411302", - "people_count_2010": 887234, - "lat": 32.994857, - "lng": 112.544591, - "name": "宛城区", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "360313", - "people_count_2010": 358990, - "lat": 27.639319, - "lng": 113.7456, - "name": "湘东区", - "level": "district", - "parent": "萍乡市" - }, - { - "adcode": "360733", - "people_count_2010": 445137, - "lat": 25.599125, - "lng": 115.791158, - "name": "会昌县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "210781", - "people_count_2010": 508079, - "lat": 41.171738, - "lng": 121.364236, - "name": "凌海市", - "level": "district", - "parent": "锦州市" - }, - { - "adcode": "632221", - "people_count_2010": null, - "lat": 37.376627, - "lng": 101.618461, - "name": "门源回族自治县", - "level": "district", - "parent": "海北藏族自治州" - }, - { - "adcode": "430602", - "people_count_2010": 814369, - "lat": 29.366784, - "lng": 113.120751, - "name": "岳阳楼区", - "level": "district", - "parent": "岳阳市" - }, - { - "adcode": "130126", - "people_count_2010": 333558, - "lat": 38.306546, - "lng": 114.37946, - "name": "灵寿县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "370181", - "people_count_2010": 1100000, - "lat": 36.71209, - "lng": 117.54069, - "name": "章丘市", - "level": "district", - "parent": "济南市" - }, - { - "adcode": "140931", - "people_count_2010": 160035, - "lat": 39.022576, - "lng": 111.085688, - "name": "保德县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "370724", - "people_count_2010": 834314, - "lat": 36.516371, - "lng": 118.539876, - "name": "临朐县", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "370782", - "people_count_2010": 1100000, - "lat": 35.997093, - "lng": 119.403182, - "name": "诸城市", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "451381", - "people_count_2010": 114496, - "lat": 23.81311, - "lng": 108.88858, - "name": "合山市", - "level": "district", - "parent": "来宾市" - }, - { - "adcode": "410183", - "people_count_2010": 797256, - "lat": 34.537846, - "lng": 113.380616, - "name": "新密市", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "510524", - "people_count_2010": 584299, - "lat": 28.167919, - "lng": 105.437775, - "name": "叙永县", - "level": "district", - "parent": "泸州市" - }, - { - "adcode": "460323", - "people_count_2010": null, - "lat": 15.112856, - "lng": 117.740071, - "name": "中沙群岛的岛礁及其海域", - "level": "district", - "parent": "三沙市" - }, - { - "adcode": "430903", - "people_count_2010": 836455, - "lat": 28.568327, - "lng": 112.360946, - "name": "赫山区", - "level": "district", - "parent": "益阳市" - }, - { - "adcode": "320114", - "people_count_2010": 391293, - "lat": 31.995946, - "lng": 118.77207, - "name": "雨花台区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "410611", - "people_count_2010": 272332, - "lat": 35.748382, - "lng": 114.293917, - "name": "淇滨区", - "level": "district", - "parent": "鹤壁市" - }, - { - "adcode": "320922", - "people_count_2010": 957215, - "lat": 33.989888, - "lng": 119.828434, - "name": "滨海县", - "level": "district", - "parent": "盐城市" - }, - { - "adcode": "350825", - "people_count_2010": 248645, - "lat": 25.708506, - "lng": 116.756687, - "name": "连城县", - "level": "district", - "parent": "龙岩市" - }, - { - "adcode": "350303", - "people_count_2010": 470097, - "lat": 25.459273, - "lng": 119.119102, - "name": "涵江区", - "level": "district", - "parent": "莆田市" - }, - { - "adcode": "350527", - "people_count_2010": null, - "lat": 24.436417, - "lng": 118.323221, - "name": "金门县", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "140702", - "people_count_2010": 635651, - "lat": 37.6976, - "lng": 112.740056, - "name": "榆次区", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "410526", - "people_count_2010": 1300000, - "lat": 35.574628, - "lng": 114.524, - "name": "滑县", - "level": "district", - "parent": "安阳市" - }, - { - "adcode": "411628", - "people_count_2010": 910251, - "lat": 33.861067, - "lng": 115.486386, - "name": "鹿邑县", - "level": "district", - "parent": "周口市" - }, - { - "adcode": "540226", - "people_count_2010": null, - "lat": 29.294758, - "lng": 87.23578, - "name": "昂仁县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "510322", - "people_count_2010": 826195, - "lat": 29.181282, - "lng": 104.984256, - "name": "富顺县", - "level": "district", - "parent": "自贡市" - }, - { - "adcode": "140822", - "people_count_2010": 439364, - "lat": 35.417042, - "lng": 110.843561, - "name": "万荣县", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "140829", - "people_count_2010": 258241, - "lat": 34.837256, - "lng": 111.212377, - "name": "平陆县", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "510681", - "people_count_2010": 591115, - "lat": 30.97715, - "lng": 104.281903, - "name": "广汉市", - "level": "district", - "parent": "德阳市" - }, - { - "adcode": "120118", - "people_count_2010": null, - "lat": 38.935671, - "lng": 116.925304, - "name": "静海区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "430181", - "people_count_2010": 1300000, - "lat": 28.141112, - "lng": 113.633301, - "name": "浏阳市", - "level": "district", - "parent": "长沙市" - }, - { - "adcode": "610825", - "people_count_2010": 319370, - "lat": 37.59523, - "lng": 107.601284, - "name": "定边县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "410527", - "people_count_2010": 693498, - "lat": 35.953702, - "lng": 114.904582, - "name": "内黄县", - "level": "district", - "parent": "安阳市" - }, - { - "adcode": "510682", - "people_count_2010": 412758, - "lat": 31.126881, - "lng": 104.173653, - "name": "什邡市", - "level": "district", - "parent": "德阳市" - }, - { - "adcode": "411082", - "people_count_2010": 687130, - "lat": 34.219257, - "lng": 113.768912, - "name": "长葛市", - "level": "district", - "parent": "许昌市" - }, - { - "adcode": "341822", - "people_count_2010": 487243, - "lat": 30.893116, - "lng": 119.417521, - "name": "广德县", - "level": "district", - "parent": "宣城市" - }, - { - "adcode": "360726", - "people_count_2010": 340740, - "lat": 25.134591, - "lng": 115.392328, - "name": "安远县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "360781", - "people_count_2010": 618885, - "lat": 25.875278, - "lng": 116.034854, - "name": "瑞金市", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "411624", - "people_count_2010": 983583, - "lat": 33.395514, - "lng": 115.078375, - "name": "沈丘县", - "level": "district", - "parent": "周口市" - }, - { - "adcode": "621121", - "people_count_2010": 349539, - "lat": 35.208922, - "lng": 105.250102, - "name": "通渭县", - "level": "district", - "parent": "定西市" - }, - { - "adcode": "410185", - "people_count_2010": 668637, - "lat": 34.459939, - "lng": 113.037768, - "name": "登封市", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "230206", - "people_count_2010": 256159, - "lat": 47.20697, - "lng": 123.638873, - "name": "富拉尔基区", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "150421", - "people_count_2010": 272205, - "lat": 43.87877, - "lng": 120.094969, - "name": "阿鲁科尔沁旗", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "150429", - "people_count_2010": 546845, - "lat": 41.598692, - "lng": 119.339242, - "name": "宁城县", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "150423", - "people_count_2010": 175543, - "lat": 43.528963, - "lng": 118.678347, - "name": "巴林右旗", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "321311", - "people_count_2010": 641059, - "lat": 33.941071, - "lng": 118.330012, - "name": "宿豫区", - "level": "district", - "parent": "宿迁市" - }, - { - "adcode": "511503", - "people_count_2010": null, - "lat": 28.839806, - "lng": 104.981133, - "name": "南溪区", - "level": "district", - "parent": "宜宾市" - }, - { - "adcode": "421321", - "people_count_2010": null, - "lat": 31.854246, - "lng": 113.301384, - "name": "随县", - "level": "district", - "parent": "随州市" - }, - { - "adcode": "350902", - "people_count_2010": 429260, - "lat": 26.659253, - "lng": 119.527225, - "name": "蕉城区", - "level": "district", - "parent": "宁德市" - }, - { - "adcode": "440606", - "people_count_2010": 2500000, - "lat": 22.75851, - "lng": 113.281826, - "name": "顺德区", - "level": "district", - "parent": "佛山市" - }, - { - "adcode": "511528", - "people_count_2010": 377166, - "lat": 28.302988, - "lng": 105.236549, - "name": "兴文县", - "level": "district", - "parent": "宜宾市" - }, - { - "adcode": "610831", - "people_count_2010": 173986, - "lat": 37.611573, - "lng": 110.03457, - "name": "子洲县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "120117", - "people_count_2010": null, - "lat": 39.328886, - "lng": 117.82828, - "name": "宁河区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "350981", - "people_count_2010": 563640, - "lat": 27.084246, - "lng": 119.650798, - "name": "福安市", - "level": "district", - "parent": "宁德市" - }, - { - "adcode": "440308", - "people_count_2010": 209360, - "lat": 22.555069, - "lng": 114.235366, - "name": "盐田区", - "level": "district", - "parent": "深圳市" - }, - { - "adcode": "610327", - "people_count_2010": 248901, - "lat": 34.893262, - "lng": 106.857066, - "name": "陇县", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "350922", - "people_count_2010": 323700, - "lat": 26.577491, - "lng": 118.743156, - "name": "古田县", - "level": "district", - "parent": "宁德市" - }, - { - "adcode": "653224", - "people_count_2010": 232916, - "lat": 37.074377, - "lng": 80.184038, - "name": "洛浦县", - "level": "district", - "parent": "和田地区" - }, - { - "adcode": "513324", - "people_count_2010": 62133, - "lat": 29.001975, - "lng": 101.506942, - "name": "九龙县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "513335", - "people_count_2010": 48649, - "lat": 30.005723, - "lng": 99.109037, - "name": "巴塘县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "610828", - "people_count_2010": 204666, - "lat": 38.021597, - "lng": 110.493367, - "name": "佳县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "430822", - "people_count_2010": 380885, - "lat": 29.399939, - "lng": 110.164039, - "name": "桑植县", - "level": "district", - "parent": "张家界市" - }, - { - "adcode": "532932", - "people_count_2010": 1500000, - "lat": 26.55839, - "lng": 100.173375, - "name": "鹤庆县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "230184", - "people_count_2010": 881224, - "lat": 44.919418, - "lng": 127.15759, - "name": "五常市", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "652822", - "people_count_2010": 116166, - "lat": 41.781266, - "lng": 84.248542, - "name": "轮台县", - "level": "district", - "parent": "巴音郭楞蒙古自治州" - }, - { - "adcode": "330110", - "people_count_2010": 1200000, - "lat": 30.421187, - "lng": 120.301737, - "name": "余杭区", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "331002", - "people_count_2010": 653765, - "lat": 28.67615, - "lng": 121.431049, - "name": "椒江区", - "level": "district", - "parent": "台州市" - }, - { - "adcode": "533321", - "people_count_2010": 184835, - "lat": 25.851142, - "lng": 98.854063, - "name": "泸水县", - "level": "district", - "parent": "怒江傈僳族自治州" - }, - { - "adcode": "513328", - "people_count_2010": 68523, - "lat": 31.61975, - "lng": 99.991753, - "name": "甘孜县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "610324", - "people_count_2010": 416402, - "lat": 34.375497, - "lng": 107.891419, - "name": "扶风县", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "420821", - "people_count_2010": 636776, - "lat": 31.022458, - "lng": 113.114595, - "name": "京山县", - "level": "district", - "parent": "荆门市" - }, - { - "adcode": "530128", - "people_count_2010": null, - "lat": 25.556533, - "lng": 102.46905, - "name": "禄劝彝族苗族自治县", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "653023", - "people_count_2010": 38876, - "lat": 40.937567, - "lng": 78.450164, - "name": "阿合奇县", - "level": "district", - "parent": "克孜勒苏柯尔克孜自治州" - }, - { - "adcode": "653024", - "people_count_2010": 47261, - "lat": 39.716633, - "lng": 75.25969, - "name": "乌恰县", - "level": "district", - "parent": "克孜勒苏柯尔克孜自治州" - }, - { - "adcode": "652801", - "people_count_2010": 549324, - "lat": 41.763122, - "lng": 86.145948, - "name": "库尔勒市", - "level": "district", - "parent": "巴音郭楞蒙古自治州" - }, - { - "adcode": "220502", - "people_count_2010": 360071, - "lat": 41.721233, - "lng": 125.936716, - "name": "东昌区", - "level": "district", - "parent": "通化市" - }, - { - "adcode": "530127", - "people_count_2010": 2000000, - "lat": 25.335087, - "lng": 103.038777, - "name": "嵩明县", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "610502", - "people_count_2010": 877142, - "lat": 34.501271, - "lng": 109.503299, - "name": "临渭区", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "621223", - "people_count_2010": 274313, - "lat": 34.042655, - "lng": 104.394475, - "name": "宕昌县", - "level": "district", - "parent": "陇南市" - }, - { - "adcode": "530630", - "people_count_2010": 102143, - "lat": 28.629688, - "lng": 104.415376, - "name": "水富县", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "522630", - "people_count_2010": 112319, - "lat": 26.669138, - "lng": 108.314637, - "name": "台江县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "451224", - "people_count_2010": 213028, - "lat": 24.509367, - "lng": 107.373696, - "name": "东兰县", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "330226", - "people_count_2010": 646074, - "lat": 29.299836, - "lng": 121.432606, - "name": "宁海县", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "610522", - "people_count_2010": 155463, - "lat": 34.544515, - "lng": 110.24726, - "name": "潼关县", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "522635", - "people_count_2010": 167641, - "lat": 26.494803, - "lng": 107.593172, - "name": "麻江县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "150721", - "people_count_2010": 278744, - "lat": 48.130503, - "lng": 123.464615, - "name": "阿荣旗", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "540236", - "people_count_2010": null, - "lat": 29.328194, - "lng": 85.234622, - "name": "萨嘎县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "150725", - "people_count_2010": null, - "lat": 49.328422, - "lng": 119.437609, - "name": "陈巴尔虎旗", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "450311", - "people_count_2010": 76193, - "lat": 25.077646, - "lng": 110.305667, - "name": "雁山区", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "152526", - "people_count_2010": 87614, - "lat": 44.586147, - "lng": 117.615249, - "name": "西乌珠穆沁旗", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "445322", - "people_count_2010": 388732, - "lat": 23.237709, - "lng": 111.535921, - "name": "郁南县", - "level": "district", - "parent": "云浮市" - }, - { - "adcode": "513336", - "people_count_2010": 33170, - "lat": 28.930855, - "lng": 99.799943, - "name": "乡城县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "150205", - "people_count_2010": 35803, - "lat": 40.672094, - "lng": 110.272565, - "name": "石拐区", - "level": "district", - "parent": "包头市" - }, - { - "adcode": "530122", - "people_count_2010": 283784, - "lat": 24.666944, - "lng": 102.594987, - "name": "晋宁县", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "522625", - "people_count_2010": 203622, - "lat": 27.050233, - "lng": 108.423656, - "name": "镇远县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "450421", - "people_count_2010": 550368, - "lat": 23.845097, - "lng": 111.544008, - "name": "苍梧县", - "level": "district", - "parent": "梧州市" - }, - { - "adcode": "522626", - "people_count_2010": 162444, - "lat": 27.173244, - "lng": 108.816459, - "name": "岑巩县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "220802", - "people_count_2010": 517434, - "lat": 45.619253, - "lng": 122.842499, - "name": "洮北区", - "level": "district", - "parent": "白城市" - }, - { - "adcode": "222406", - "people_count_2010": 189532, - "lat": 42.547004, - "lng": 129.008748, - "name": "和龙市", - "level": "district", - "parent": "延边朝鲜族自治州" - }, - { - "adcode": "620823", - "people_count_2010": 102116, - "lat": 35.304533, - "lng": 107.031253, - "name": "崇信县", - "level": "district", - "parent": "平凉市" - }, - { - "adcode": "513331", - "people_count_2010": 56290, - "lat": 31.208805, - "lng": 98.824343, - "name": "白玉县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "230123", - "people_count_2010": 388319, - "lat": 46.315105, - "lng": 129.565594, - "name": "依兰县", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "371121", - "people_count_2010": 484883, - "lat": 35.751936, - "lng": 119.206745, - "name": "五莲县", - "level": "district", - "parent": "日照市" - }, - { - "adcode": "411326", - "people_count_2010": 685683, - "lat": 33.136106, - "lng": 111.489026, - "name": "淅川县", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "230125", - "people_count_2010": 551271, - "lat": 45.759369, - "lng": 127.48594, - "name": "宾县", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "513326", - "people_count_2010": 55396, - "lat": 30.978767, - "lng": 101.123327, - "name": "道孚县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "150202", - "people_count_2010": 512045, - "lat": 40.587056, - "lng": 110.026895, - "name": "东河区", - "level": "district", - "parent": "包头市" - }, - { - "adcode": "140729", - "people_count_2010": 261402, - "lat": 36.847469, - "lng": 111.772759, - "name": "灵石县", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "410622", - "people_count_2010": 269149, - "lat": 35.609478, - "lng": 114.200379, - "name": "淇县", - "level": "district", - "parent": "鹤壁市" - }, - { - "adcode": "310104", - "people_count_2010": 1100000, - "lat": 31.179973, - "lng": 121.43752, - "name": "徐汇区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "410621", - "people_count_2010": 665338, - "lat": 35.671282, - "lng": 114.550162, - "name": "浚县", - "level": "district", - "parent": "鹤壁市" - }, - { - "adcode": "140927", - "people_count_2010": 106538, - "lat": 39.088467, - "lng": 112.200438, - "name": "神池县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "130521", - "people_count_2010": 466323, - "lat": 37.05073, - "lng": 114.561132, - "name": "邢台县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "420203", - "people_count_2010": 233708, - "lat": 30.205365, - "lng": 115.093354, - "name": "西塞山区", - "level": "district", - "parent": "黄石市" - }, - { - "adcode": "450105", - "people_count_2010": 567999, - "lat": 22.799593, - "lng": 108.310478, - "name": "江南区", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "450126", - "people_count_2010": 782255, - "lat": 23.216884, - "lng": 108.816735, - "name": "宾阳县", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "511126", - "people_count_2010": 338346, - "lat": 29.741019, - "lng": 103.578862, - "name": "夹江县", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "140727", - "people_count_2010": 265310, - "lat": 37.358739, - "lng": 112.330532, - "name": "祁县", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "421102", - "people_count_2010": 366769, - "lat": 30.447435, - "lng": 114.878934, - "name": "黄州区", - "level": "district", - "parent": "黄冈市" - }, - { - "adcode": "210903", - "people_count_2010": 81816, - "lat": 42.086603, - "lng": 121.790541, - "name": "新邱区", - "level": "district", - "parent": "阜新市" - }, - { - "adcode": "411528", - "people_count_2010": 793802, - "lat": 32.344744, - "lng": 114.740713, - "name": "息县", - "level": "district", - "parent": "信阳市" - }, - { - "adcode": "460106", - "people_count_2010": 593018, - "lat": 20.031026, - "lng": 110.330373, - "name": "龙华区", - "level": "district", - "parent": "海口市" - }, - { - "adcode": "420922", - "people_count_2010": 614902, - "lat": 31.565483, - "lng": 114.126249, - "name": "大悟县", - "level": "district", - "parent": "孝感市" - }, - { - "adcode": "433124", - "people_count_2010": 288581, - "lat": 28.581352, - "lng": 109.479063, - "name": "花垣县", - "level": "district", - "parent": "湘西土家族苗族自治州" - }, - { - "adcode": "310112", - "people_count_2010": 2400000, - "lat": 31.111658, - "lng": 121.375972, - "name": "闵行区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "310107", - "people_count_2010": 1300000, - "lat": 31.241701, - "lng": 121.392499, - "name": "普陀区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "340421", - "people_count_2010": 667070, - "lat": 32.705382, - "lng": 116.722769, - "name": "凤台县", - "level": "district", - "parent": "淮南市" - }, - { - "adcode": "520325", - "people_count_2010": 244159, - "lat": 28.880088, - "lng": 107.605342, - "name": "道真仡佬族苗族自治县", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "310105", - "people_count_2010": 690571, - "lat": 31.218123, - "lng": 121.4222, - "name": "长宁区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "411329", - "people_count_2010": 629210, - "lat": 32.524006, - "lng": 112.365624, - "name": "新野县", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "130302", - "people_count_2010": null, - "lat": 39.943458, - "lng": 119.596224, - "name": "海港区", - "level": "district", - "parent": "秦皇岛市" - }, - { - "adcode": "410122", - "people_count_2010": 727440, - "lat": 34.721976, - "lng": 114.022521, - "name": "中牟县", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "445122", - "people_count_2010": null, - "lat": 23.668171, - "lng": 117.00205, - "name": "饶平县", - "level": "district", - "parent": "潮州市" - }, - { - "adcode": "445202", - "people_count_2010": 746354, - "lat": 23.535524, - "lng": 116.357045, - "name": "榕城区", - "level": "district", - "parent": "揭阳市" - }, - { - "adcode": "340823", - "people_count_2010": 838712, - "lat": 30.700615, - "lng": 117.222027, - "name": "枞阳县", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "610727", - "people_count_2010": 201645, - "lat": 33.329638, - "lng": 106.153899, - "name": "略阳县", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "420323", - "people_count_2010": 417079, - "lat": 32.22586, - "lng": 110.2296, - "name": "竹山县", - "level": "district", - "parent": "十堰市" - }, - { - "adcode": "210702", - "people_count_2010": 287599, - "lat": 41.115719, - "lng": 121.130085, - "name": "古塔区", - "level": "district", - "parent": "锦州市" - }, - { - "adcode": "341225", - "people_count_2010": 1200000, - "lat": 32.638102, - "lng": 115.590534, - "name": "阜南县", - "level": "district", - "parent": "阜阳市" - }, - { - "adcode": "410423", - "people_count_2010": 1900000, - "lat": 33.740325, - "lng": 112.906703, - "name": "鲁山县", - "level": "district", - "parent": "平顶山市" - }, - { - "adcode": "350125", - "people_count_2010": 249455, - "lat": 25.864825, - "lng": 118.939089, - "name": "永泰县", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "140726", - "people_count_2010": 298783, - "lat": 37.424595, - "lng": 112.554103, - "name": "太谷县", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "130402", - "people_count_2010": 385626, - "lat": 36.603196, - "lng": 114.484989, - "name": "邯山区", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "420116", - "people_count_2010": 2600000, - "lat": 30.874155, - "lng": 114.374025, - "name": "黄陂区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "653131", - "people_count_2010": null, - "lat": 37.775437, - "lng": 75.228068, - "name": "塔什库尔干塔吉克自治县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "370682", - "people_count_2010": 878591, - "lat": 36.977037, - "lng": 120.711151, - "name": "莱阳市", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "371324", - "people_count_2010": 1200000, - "lat": 34.855573, - "lng": 118.049968, - "name": "兰陵县", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "621225", - "people_count_2010": 393272, - "lat": 34.013718, - "lng": 105.299737, - "name": "西和县", - "level": "district", - "parent": "陇南市" - }, - { - "adcode": "610824", - "people_count_2010": 355939, - "lat": 37.596084, - "lng": 108.80567, - "name": "靖边县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "510503", - "people_count_2010": 451401, - "lat": 28.77631, - "lng": 105.37721, - "name": "纳溪区", - "level": "district", - "parent": "泸州市" - }, - { - "adcode": "120111", - "people_count_2010": 713060, - "lat": 39.139446, - "lng": 117.012247, - "name": "西青区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "371428", - "people_count_2010": 376063, - "lat": 37.209527, - "lng": 116.078627, - "name": "武城县", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "610626", - "people_count_2010": 145061, - "lat": 36.924852, - "lng": 108.176976, - "name": "吴起县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "230406", - "people_count_2010": 175239, - "lat": 47.337385, - "lng": 130.31714, - "name": "东山区", - "level": "district", - "parent": "鹤岗市" - }, - { - "adcode": "350430", - "people_count_2010": 119979, - "lat": 26.831398, - "lng": 116.845832, - "name": "建宁县", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "150781", - "people_count_2010": 249472, - "lat": 49.590788, - "lng": 117.455561, - "name": "满洲里市", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "654322", - "people_count_2010": 87886, - "lat": 46.993106, - "lng": 89.524993, - "name": "富蕴县", - "level": "district", - "parent": "阿勒泰地区" - }, - { - "adcode": "320829", - "people_count_2010": 326459, - "lat": 33.294975, - "lng": 118.867875, - "name": "洪泽县", - "level": "district", - "parent": "淮安市" - }, - { - "adcode": "210224", - "people_count_2010": 77951, - "lat": 39.272399, - "lng": 122.587824, - "name": "长海县", - "level": "district", - "parent": "大连市" - }, - { - "adcode": "210282", - "people_count_2010": 741230, - "lat": 39.401555, - "lng": 121.9705, - "name": "普兰店市", - "level": "district", - "parent": "大连市" - }, - { - "adcode": "140828", - "people_count_2010": 352821, - "lat": 35.140441, - "lng": 111.223174, - "name": "夏县", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "140221", - "people_count_2010": 272488, - "lat": 40.364927, - "lng": 113.749871, - "name": "阳高县", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "350124", - "people_count_2010": 237643, - "lat": 26.223793, - "lng": 118.868416, - "name": "闽清县", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "110129", - "people_count_2010": null, - "lat": 40.465325, - "lng": 115.985006, - "name": "延庆区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "621021", - "people_count_2010": 261898, - "lat": 36.013504, - "lng": 107.885664, - "name": "庆城县", - "level": "district", - "parent": "庆阳市" - }, - { - "adcode": "360123", - "people_count_2010": 180194, - "lat": 28.841334, - "lng": 115.553109, - "name": "安义县", - "level": "district", - "parent": "南昌市" - }, - { - "adcode": "110108", - "people_count_2010": 3300000, - "lat": 39.956074, - "lng": 116.310316, - "name": "海淀区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "510726", - "people_count_2010": 197108, - "lat": 31.615863, - "lng": 104.468069, - "name": "北川羌族自治县", - "level": "district", - "parent": "绵阳市" - }, - { - "adcode": "370911", - "people_count_2010": null, - "lat": 36.1841, - "lng": 117.04353, - "name": "岱岳区", - "level": "district", - "parent": "泰安市" - }, - { - "adcode": "622925", - "people_count_2010": 185083, - "lat": 35.425971, - "lng": 103.350357, - "name": "和政县", - "level": "district", - "parent": "临夏回族自治州" - }, - { - "adcode": "610726", - "people_count_2010": 308885, - "lat": 32.830806, - "lng": 106.25739, - "name": "宁强县", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "140925", - "people_count_2010": 161164, - "lat": 39.001718, - "lng": 112.307936, - "name": "宁武县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "610722", - "people_count_2010": 464903, - "lat": 33.153098, - "lng": 107.329887, - "name": "城固县", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "420902", - "people_count_2010": 908266, - "lat": 30.925966, - "lng": 113.925849, - "name": "孝南区", - "level": "district", - "parent": "孝感市" - }, - { - "adcode": "130127", - "people_count_2010": 186478, - "lat": 37.605714, - "lng": 114.610699, - "name": "高邑县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "370923", - "people_count_2010": 741566, - "lat": 35.930467, - "lng": 116.461052, - "name": "东平县", - "level": "district", - "parent": "泰安市" - }, - { - "adcode": "440781", - "people_count_2010": 941095, - "lat": 22.250713, - "lng": 112.793414, - "name": "台山市", - "level": "district", - "parent": "江门市" - }, - { - "adcode": "330381", - "people_count_2010": 1400000, - "lat": 27.779321, - "lng": 120.646171, - "name": "瑞安市", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "511303", - "people_count_2010": 549313, - "lat": 30.781809, - "lng": 106.108996, - "name": "高坪区", - "level": "district", - "parent": "南充市" - }, - { - "adcode": "513424", - "people_count_2010": null, - "lat": 27.403827, - "lng": 102.178845, - "name": "德昌县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "130428", - "people_count_2010": 351690, - "lat": 36.555778, - "lng": 114.805154, - "name": "肥乡县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "652328", - "people_count_2010": null, - "lat": 43.832442, - "lng": 90.282833, - "name": "木垒哈萨克自治县", - "level": "district", - "parent": "昌吉回族自治州" - }, - { - "adcode": "140622", - "people_count_2010": 327973, - "lat": 39.559187, - "lng": 113.187505, - "name": "应县", - "level": "district", - "parent": "朔州市" - }, - { - "adcode": "130424", - "people_count_2010": 377398, - "lat": 36.443832, - "lng": 114.680356, - "name": "成安县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "420981", - "people_count_2010": 593812, - "lat": 30.939038, - "lng": 113.573842, - "name": "应城市", - "level": "district", - "parent": "孝感市" - }, - { - "adcode": "421303", - "people_count_2010": null, - "lat": 31.717521, - "lng": 113.374519, - "name": "曾都区", - "level": "district", - "parent": "随州市" - }, - { - "adcode": "321302", - "people_count_2010": 796626, - "lat": 33.937726, - "lng": 118.278984, - "name": "宿城区", - "level": "district", - "parent": "宿迁市" - }, - { - "adcode": "130821", - "people_count_2010": 388554, - "lat": 40.768637, - "lng": 118.172496, - "name": "承德县", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "441823", - "people_count_2010": 537125, - "lat": 24.470286, - "lng": 112.634019, - "name": "阳山县", - "level": "district", - "parent": "清远市" - }, - { - "adcode": "360729", - "people_count_2010": 180691, - "lat": 24.742651, - "lng": 114.531589, - "name": "全南县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "652325", - "people_count_2010": 210566, - "lat": 44.021996, - "lng": 89.591437, - "name": "奇台县", - "level": "district", - "parent": "昌吉回族自治州" - }, - { - "adcode": "522328", - "people_count_2010": 356255, - "lat": 25.108959, - "lng": 105.471498, - "name": "安龙县", - "level": "district", - "parent": "黔西南布依族苗族自治州" - }, - { - "adcode": "210911", - "people_count_2010": 211288, - "lat": 42.019218, - "lng": 121.654791, - "name": "细河区", - "level": "district", - "parent": "阜新市" - }, - { - "adcode": "210922", - "people_count_2010": 363712, - "lat": 42.384823, - "lng": 122.537444, - "name": "彰武县", - "level": "district", - "parent": "阜新市" - }, - { - "adcode": "420324", - "people_count_2010": 315259, - "lat": 32.315342, - "lng": 109.717196, - "name": "竹溪县", - "level": "district", - "parent": "十堰市" - }, - { - "adcode": "630123", - "people_count_2010": 136632, - "lat": 36.684818, - "lng": 101.263435, - "name": "湟源县", - "level": "district", - "parent": "西宁市" - }, - { - "adcode": "431221", - "people_count_2010": 236649, - "lat": 27.43736, - "lng": 109.948061, - "name": "中方县", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "450331", - "people_count_2010": null, - "lat": 24.497786, - "lng": 110.400149, - "name": "荔浦县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "360121", - "people_count_2010": 1000000, - "lat": 28.543781, - "lng": 115.942465, - "name": "南昌县", - "level": "district", - "parent": "南昌市" - }, - { - "adcode": "231222", - "people_count_2010": 424562, - "lat": 46.259037, - "lng": 126.289315, - "name": "兰西县", - "level": "district", - "parent": "绥化市" - }, - { - "adcode": "211381", - "people_count_2010": 496164, - "lat": 41.803286, - "lng": 120.766951, - "name": "北票市", - "level": "district", - "parent": "朝阳市" - }, - { - "adcode": "540426", - "people_count_2010": null, - "lat": 29.0446, - "lng": 93.073429, - "name": "朗县", - "level": "district", - "parent": "林芝市" - }, - { - "adcode": "350212", - "people_count_2010": 496129, - "lat": 24.729333, - "lng": 118.150455, - "name": "同安区", - "level": "district", - "parent": "厦门市" - }, - { - "adcode": "230833", - "people_count_2010": 126694, - "lat": 48.364707, - "lng": 134.294501, - "name": "抚远县", - "level": "district", - "parent": "佳木斯市" - }, - { - "adcode": "652723", - "people_count_2010": 66502, - "lat": 44.973751, - "lng": 81.03099, - "name": "温泉县", - "level": "district", - "parent": "博尔塔拉蒙古自治州" - }, - { - "adcode": "230828", - "people_count_2010": 255211, - "lat": 46.730048, - "lng": 129.904463, - "name": "汤原县", - "level": "district", - "parent": "佳木斯市" - }, - { - "adcode": "341203", - "people_count_2010": 519562, - "lat": 32.908861, - "lng": 115.858747, - "name": "颍东区", - "level": "district", - "parent": "阜阳市" - }, - { - "adcode": "610322", - "people_count_2010": 483471, - "lat": 34.521668, - "lng": 107.400577, - "name": "凤翔县", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "130535", - "people_count_2010": 343384, - "lat": 36.8642, - "lng": 115.498684, - "name": "临西县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "610116", - "people_count_2010": null, - "lat": 34.157097, - "lng": 108.941579, - "name": "长安区", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "370302", - "people_count_2010": 731848, - "lat": 36.647272, - "lng": 117.967696, - "name": "淄川区", - "level": "district", - "parent": "淄博市" - }, - { - "adcode": "320413", - "people_count_2010": null, - "lat": 31.744399, - "lng": 119.573395, - "name": "金坛区", - "level": "district", - "parent": "常州市" - }, - { - "adcode": "520402", - "people_count_2010": 765399, - "lat": 26.248323, - "lng": 105.946169, - "name": "西秀区", - "level": "district", - "parent": "安顺市" - }, - { - "adcode": "370687", - "people_count_2010": 638729, - "lat": 36.780657, - "lng": 121.168392, - "name": "海阳市", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "370321", - "people_count_2010": 504011, - "lat": 36.959773, - "lng": 118.101556, - "name": "桓台县", - "level": "district", - "parent": "淄博市" - }, - { - "adcode": "430224", - "people_count_2010": 575436, - "lat": 26.789534, - "lng": 113.546509, - "name": "茶陵县", - "level": "district", - "parent": "株洲市" - }, - { - "adcode": "420381", - "people_count_2010": 443755, - "lat": 32.538839, - "lng": 111.513793, - "name": "丹江口市", - "level": "district", - "parent": "十堰市" - }, - { - "adcode": "460205", - "people_count_2010": null, - "lat": 18.352192, - "lng": 109.174306, - "name": "崖州区", - "level": "district", - "parent": "三亚市" - }, - { - "adcode": "140481", - "people_count_2010": 226874, - "lat": 36.332233, - "lng": 113.223245, - "name": "潞城市", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "140502", - "people_count_2010": null, - "lat": 35.496641, - "lng": 112.853106, - "name": "城区", - "level": "district", - "parent": "晋城市" - }, - { - "adcode": "411421", - "people_count_2010": 703428, - "lat": 34.648455, - "lng": 115.148146, - "name": "民权县", - "level": "district", - "parent": "商丘市" - }, - { - "adcode": "500232", - "people_count_2010": 351038, - "lat": 29.32376, - "lng": 107.75655, - "name": "武隆县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "410728", - "people_count_2010": 809535, - "lat": 35.19615, - "lng": 114.673807, - "name": "长垣县", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "411221", - "people_count_2010": 346434, - "lat": 34.763487, - "lng": 111.762992, - "name": "渑池县", - "level": "district", - "parent": "三门峡市" - }, - { - "adcode": "152202", - "people_count_2010": 1200000, - "lat": 47.177, - "lng": 119.943656, - "name": "阿尔山市", - "level": "district", - "parent": "兴安盟" - }, - { - "adcode": "370406", - "people_count_2010": 464804, - "lat": 35.096077, - "lng": 117.458968, - "name": "山亭区", - "level": "district", - "parent": "枣庄市" - }, - { - "adcode": "350213", - "people_count_2010": 304333, - "lat": 24.637479, - "lng": 118.242811, - "name": "翔安区", - "level": "district", - "parent": "厦门市" - }, - { - "adcode": "350502", - "people_count_2010": 404817, - "lat": 24.907645, - "lng": 118.588929, - "name": "鲤城区", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "450521", - "people_count_2010": 871207, - "lat": 21.663554, - "lng": 109.200695, - "name": "合浦县", - "level": "district", - "parent": "北海市" - }, - { - "adcode": "420113", - "people_count_2010": 114970, - "lat": 30.309637, - "lng": 114.08124, - "name": "汉南区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "500229", - "people_count_2010": 192967, - "lat": 31.946293, - "lng": 108.6649, - "name": "城口县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "140411", - "people_count_2010": null, - "lat": 36.218388, - "lng": 113.101211, - "name": "郊区", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "500231", - "people_count_2010": 704458, - "lat": 30.330012, - "lng": 107.348692, - "name": "垫江县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "370811", - "people_count_2010": 1900000, - "lat": 35.414828, - "lng": 116.595261, - "name": "任城区", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "350505", - "people_count_2010": 313539, - "lat": 25.126859, - "lng": 118.912285, - "name": "泉港区", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "321182", - "people_count_2010": 334977, - "lat": 32.237266, - "lng": 119.828054, - "name": "扬中市", - "level": "district", - "parent": "镇江市" - }, - { - "adcode": "330304", - "people_count_2010": 996870, - "lat": 28.006444, - "lng": 120.637145, - "name": "瓯海区", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "210905", - "people_count_2010": 60751, - "lat": 41.780477, - "lng": 121.42018, - "name": "清河门区", - "level": "district", - "parent": "阜新市" - }, - { - "adcode": "370405", - "people_count_2010": 279474, - "lat": 34.564815, - "lng": 117.734747, - "name": "台儿庄区", - "level": "district", - "parent": "枣庄市" - }, - { - "adcode": "650102", - "people_count_2010": 696277, - "lat": 43.796428, - "lng": 87.620116, - "name": "天山区", - "level": "district", - "parent": "乌鲁木齐市" - }, - { - "adcode": "330326", - "people_count_2010": 761664, - "lat": 27.6693, - "lng": 120.564387, - "name": "平阳县", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "230506", - "people_count_2010": 1900000, - "lat": 46.573366, - "lng": 131.404294, - "name": "宝山区", - "level": "district", - "parent": "双鸭山市" - }, - { - "adcode": "371082", - "people_count_2010": 714355, - "lat": 37.160134, - "lng": 122.422896, - "name": "荣成市", - "level": "district", - "parent": "威海市" - }, - { - "adcode": "370602", - "people_count_2010": 830054, - "lat": 37.540925, - "lng": 121.385877, - "name": "芝罘区", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "370612", - "people_count_2010": 467907, - "lat": 37.388356, - "lng": 121.60151, - "name": "牟平区", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "371083", - "people_count_2010": 572481, - "lat": 36.919622, - "lng": 121.536346, - "name": "乳山市", - "level": "district", - "parent": "威海市" - }, - { - "adcode": "371003", - "people_count_2010": null, - "lat": 37.196211, - "lng": 122.057139, - "name": "文登区", - "level": "district", - "parent": "威海市" - }, - { - "adcode": "510302", - "people_count_2010": 346403, - "lat": 29.343231, - "lng": 104.778188, - "name": "自流井区", - "level": "district", - "parent": "自贡市" - }, - { - "adcode": "140902", - "people_count_2010": 544683, - "lat": 38.417743, - "lng": 112.734112, - "name": "忻府区", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "141029", - "people_count_2010": 233167, - "lat": 35.975402, - "lng": 110.857365, - "name": "乡宁县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "310109", - "people_count_2010": 852476, - "lat": 31.26097, - "lng": 121.491832, - "name": "虹口区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "450621", - "people_count_2010": 204094, - "lat": 22.151423, - "lng": 107.982139, - "name": "上思县", - "level": "district", - "parent": "防城港市" - }, - { - "adcode": "440605", - "people_count_2010": 2600000, - "lat": 23.031562, - "lng": 113.145577, - "name": "南海区", - "level": "district", - "parent": "佛山市" - }, - { - "adcode": "652927", - "people_count_2010": 197990, - "lat": 41.21587, - "lng": 79.230805, - "name": "乌什县", - "level": "district", - "parent": "阿克苏地区" - }, - { - "adcode": "610328", - "people_count_2010": 123959, - "lat": 34.642584, - "lng": 107.132987, - "name": "千阳县", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "611023", - "people_count_2010": 221569, - "lat": 33.526367, - "lng": 110.885437, - "name": "商南县", - "level": "district", - "parent": "商洛市" - }, - { - "adcode": "230124", - "people_count_2010": 203853, - "lat": 45.839536, - "lng": 128.836131, - "name": "方正县", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "230128", - "people_count_2010": 210650, - "lat": 45.977618, - "lng": 128.747786, - "name": "通河县", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "230129", - "people_count_2010": 242455, - "lat": 45.455648, - "lng": 128.331886, - "name": "延寿县", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "422826", - "people_count_2010": 300618, - "lat": 29.678967, - "lng": 109.15041, - "name": "咸丰县", - "level": "district", - "parent": "恩施土家族苗族自治州" - }, - { - "adcode": "130731", - "people_count_2010": 333932, - "lat": 40.378701, - "lng": 115.219246, - "name": "涿鹿县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "520602", - "people_count_2010": null, - "lat": 27.718745, - "lng": 109.192117, - "name": "碧江区", - "level": "district", - "parent": "铜仁市" - }, - { - "adcode": "411324", - "people_count_2010": 859564, - "lat": 33.036651, - "lng": 112.232722, - "name": "镇平县", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "210711", - "people_count_2010": 394594, - "lat": 41.105378, - "lng": 121.107297, - "name": "太和区", - "level": "district", - "parent": "锦州市" - }, - { - "adcode": "141127", - "people_count_2010": 174182, - "lat": 38.278654, - "lng": 111.671555, - "name": "岚县", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "451402", - "people_count_2010": 316738, - "lat": 22.40469, - "lng": 107.354443, - "name": "江州区", - "level": "district", - "parent": "崇左市" - }, - { - "adcode": "620802", - "people_count_2010": 504848, - "lat": 35.54173, - "lng": 106.684223, - "name": "崆峒区", - "level": "district", - "parent": "平凉市" - }, - { - "adcode": "540202", - "people_count_2010": null, - "lat": 29.267003, - "lng": 88.88667, - "name": "桑珠孜区", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "451421", - "people_count_2010": 379118, - "lat": 22.635821, - "lng": 107.911533, - "name": "扶绥县", - "level": "district", - "parent": "崇左市" - }, - { - "adcode": "420984", - "people_count_2010": 1000000, - "lat": 30.652165, - "lng": 113.835301, - "name": "汉川市", - "level": "district", - "parent": "孝感市" - }, - { - "adcode": "350582", - "people_count_2010": 2000000, - "lat": 24.807322, - "lng": 118.577338, - "name": "晋江市", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "150622", - "people_count_2010": 356501, - "lat": 39.865221, - "lng": 111.238332, - "name": "准格尔旗", - "level": "district", - "parent": "鄂尔多斯市" - }, - { - "adcode": "371325", - "people_count_2010": 923475, - "lat": 35.269174, - "lng": 117.968869, - "name": "费县", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "150621", - "people_count_2010": 322101, - "lat": 40.404076, - "lng": 110.040281, - "name": "达拉特旗", - "level": "district", - "parent": "鄂尔多斯市" - }, - { - "adcode": "422823", - "people_count_2010": 420840, - "lat": 31.041403, - "lng": 110.336665, - "name": "巴东县", - "level": "district", - "parent": "恩施土家族苗族自治州" - }, - { - "adcode": "230126", - "people_count_2010": 590555, - "lat": 46.081889, - "lng": 127.403602, - "name": "巴彦县", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "230183", - "people_count_2010": 585386, - "lat": 45.214953, - "lng": 127.968539, - "name": "尚志市", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "360105", - "people_count_2010": 63963, - "lat": 28.714803, - "lng": 115.731324, - "name": "湾里区", - "level": "district", - "parent": "南昌市" - }, - { - "adcode": "421123", - "people_count_2010": 544650, - "lat": 30.781679, - "lng": 115.398984, - "name": "罗田县", - "level": "district", - "parent": "黄冈市" - }, - { - "adcode": "152531", - "people_count_2010": 100893, - "lat": 42.197962, - "lng": 116.477288, - "name": "多伦县", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "341222", - "people_count_2010": 1400000, - "lat": 33.16229, - "lng": 115.627243, - "name": "太和县", - "level": "district", - "parent": "阜阳市" - }, - { - "adcode": "530326", - "people_count_2010": 908292, - "lat": 26.412861, - "lng": 103.300041, - "name": "会泽县", - "level": "district", - "parent": "曲靖市" - }, - { - "adcode": "231083", - "people_count_2010": 400859, - "lat": 44.574149, - "lng": 129.387902, - "name": "海林市", - "level": "district", - "parent": "牡丹江市" - }, - { - "adcode": "540229", - "people_count_2010": null, - "lat": 29.230299, - "lng": 89.843207, - "name": "仁布县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "532323", - "people_count_2010": 208726, - "lat": 25.312111, - "lng": 101.543044, - "name": "牟定县", - "level": "district", - "parent": "楚雄彝族自治州" - }, - { - "adcode": "320723", - "people_count_2010": 817509, - "lat": 34.298436, - "lng": 119.255741, - "name": "灌云县", - "level": "district", - "parent": "连云港市" - }, - { - "adcode": "140924", - "people_count_2010": 266800, - "lat": 39.188104, - "lng": 113.267707, - "name": "繁峙县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "530702", - "people_count_2010": 640545, - "lat": 26.872229, - "lng": 100.234412, - "name": "古城区", - "level": "district", - "parent": "丽江市" - }, - { - "adcode": "330523", - "people_count_2010": 466552, - "lat": 30.631974, - "lng": 119.687891, - "name": "安吉县", - "level": "district", - "parent": "湖州市" - }, - { - "adcode": "341321", - "people_count_2010": 800408, - "lat": 34.426247, - "lng": 116.351113, - "name": "砀山县", - "level": "district", - "parent": "宿州市" - }, - { - "adcode": "341323", - "people_count_2010": 975308, - "lat": 33.540629, - "lng": 117.551493, - "name": "灵璧县", - "level": "district", - "parent": "宿州市" - }, - { - "adcode": "360881", - "people_count_2010": 152310, - "lat": 26.745919, - "lng": 114.284421, - "name": "井冈山市", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "150784", - "people_count_2010": 76667, - "lat": 50.2439, - "lng": 120.178636, - "name": "额尔古纳市", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "232721", - "people_count_2010": 51861, - "lat": 51.726998, - "lng": 126.662105, - "name": "呼玛县", - "level": "district", - "parent": "大兴安岭地区" - }, - { - "adcode": "320831", - "people_count_2010": 321251, - "lat": 33.018162, - "lng": 119.016936, - "name": "金湖县", - "level": "district", - "parent": "淮安市" - }, - { - "adcode": "350427", - "people_count_2010": 226669, - "lat": 26.397361, - "lng": 117.789095, - "name": "沙县", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "530721", - "people_count_2010": null, - "lat": 26.830593, - "lng": 100.238312, - "name": "玉龙纳西族自治县", - "level": "district", - "parent": "丽江市" - }, - { - "adcode": "370611", - "people_count_2010": 600468, - "lat": 37.496875, - "lng": 121.264741, - "name": "福山区", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "653124", - "people_count_2010": 206936, - "lat": 38.191217, - "lng": 77.273593, - "name": "泽普县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "150422", - "people_count_2010": 327765, - "lat": 43.980715, - "lng": 119.391737, - "name": "巴林左旗", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "440303", - "people_count_2010": 923421, - "lat": 22.555341, - "lng": 114.123885, - "name": "罗湖区", - "level": "district", - "parent": "深圳市" - }, - { - "adcode": "341825", - "people_count_2010": 120039, - "lat": 30.288057, - "lng": 118.543081, - "name": "旌德县", - "level": "district", - "parent": "宣城市" - }, - { - "adcode": "441225", - "people_count_2010": 398258, - "lat": 23.434731, - "lng": 111.502973, - "name": "封开县", - "level": "district", - "parent": "肇庆市" - }, - { - "adcode": "530922", - "people_count_2010": 449460, - "lat": 24.439026, - "lng": 100.125637, - "name": "云县", - "level": "district", - "parent": "临沧市" - }, - { - "adcode": "350121", - "people_count_2010": 662118, - "lat": 26.148567, - "lng": 119.145117, - "name": "闽侯县", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "211202", - "people_count_2010": 363076, - "lat": 42.292278, - "lng": 123.844877, - "name": "银州区", - "level": "district", - "parent": "铁岭市" - }, - { - "adcode": "131028", - "people_count_2010": 118474, - "lat": 39.889266, - "lng": 116.986501, - "name": "大厂回族自治县", - "level": "district", - "parent": "廊坊市" - }, - { - "adcode": "110117", - "people_count_2010": 415958, - "lat": 40.144783, - "lng": 117.112335, - "name": "平谷区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "530921", - "people_count_2010": 458322, - "lat": 24.592738, - "lng": 99.91871, - "name": "凤庆县", - "level": "district", - "parent": "临沧市" - }, - { - "adcode": "330185", - "people_count_2010": 566665, - "lat": 30.231153, - "lng": 119.715101, - "name": "临安市", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "350128", - "people_count_2010": 357760, - "lat": 25.503672, - "lng": 119.791197, - "name": "平潭县", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "532624", - "people_count_2010": 277960, - "lat": 23.124202, - "lng": 104.701899, - "name": "麻栗坡县", - "level": "district", - "parent": "文山壮族苗族自治州" - }, - { - "adcode": "532627", - "people_count_2010": 787449, - "lat": 24.050272, - "lng": 105.056684, - "name": "广南县", - "level": "district", - "parent": "文山壮族苗族自治州" - }, - { - "adcode": "530629", - "people_count_2010": 385865, - "lat": 27.843381, - "lng": 105.04869, - "name": "威信县", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "530625", - "people_count_2010": 394267, - "lat": 28.231526, - "lng": 103.63732, - "name": "永善县", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "350581", - "people_count_2010": 636700, - "lat": 24.731978, - "lng": 118.628402, - "name": "石狮市", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "610115", - "people_count_2010": 655875, - "lat": 34.372065, - "lng": 109.213986, - "name": "临潼区", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "340504", - "people_count_2010": 309672, - "lat": 31.685912, - "lng": 118.493104, - "name": "雨山区", - "level": "district", - "parent": "马鞍山市" - }, - { - "adcode": "430426", - "people_count_2010": 979855, - "lat": 26.787109, - "lng": 112.111192, - "name": "祁东县", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "140211", - "people_count_2010": 405864, - "lat": 40.01802, - "lng": 113.16892, - "name": "南郊区", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "610523", - "people_count_2010": 693392, - "lat": 34.795011, - "lng": 109.943123, - "name": "大荔县", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "445321", - "people_count_2010": 431635, - "lat": 22.703204, - "lng": 112.23083, - "name": "新兴县", - "level": "district", - "parent": "云浮市" - }, - { - "adcode": "420802", - "people_count_2010": 360984, - "lat": 31.033461, - "lng": 112.204804, - "name": "东宝区", - "level": "district", - "parent": "荆门市" - }, - { - "adcode": "350182", - "people_count_2010": 682626, - "lat": 25.960583, - "lng": 119.510849, - "name": "长乐市", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "320113", - "people_count_2010": 644295, - "lat": 32.102147, - "lng": 118.808702, - "name": "栖霞区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "450103", - "people_count_2010": 709721, - "lat": 22.816614, - "lng": 108.346113, - "name": "青秀区", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "540402", - "people_count_2010": null, - "lat": 29.653732, - "lng": 94.360987, - "name": "巴宜区", - "level": "district", - "parent": "林芝市" - }, - { - "adcode": "520322", - "people_count_2010": 521840, - "lat": 28.131559, - "lng": 106.826591, - "name": "桐梓县", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "350703", - "people_count_2010": null, - "lat": 27.332067, - "lng": 118.12267, - "name": "建阳区", - "level": "district", - "parent": "南平市" - }, - { - "adcode": "140882", - "people_count_2010": 395527, - "lat": 35.59715, - "lng": 110.710268, - "name": "河津市", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "520422", - "people_count_2010": 378452, - "lat": 26.305794, - "lng": 105.745609, - "name": "普定县", - "level": "district", - "parent": "安顺市" - }, - { - "adcode": "520327", - "people_count_2010": 313128, - "lat": 27.960858, - "lng": 107.722021, - "name": "凤冈县", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "610628", - "people_count_2010": 149727, - "lat": 35.996495, - "lng": 109.384136, - "name": "富县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "110109", - "people_count_2010": 290476, - "lat": 39.937183, - "lng": 116.105381, - "name": "门头沟区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "530626", - "people_count_2010": 153091, - "lat": 28.599953, - "lng": 103.961095, - "name": "绥江县", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "532628", - "people_count_2010": 1500000, - "lat": 23.626494, - "lng": 105.62856, - "name": "富宁县", - "level": "district", - "parent": "文山壮族苗族自治州" - }, - { - "adcode": "532625", - "people_count_2010": 367507, - "lat": 23.011723, - "lng": 104.398619, - "name": "马关县", - "level": "district", - "parent": "文山壮族苗族自治州" - }, - { - "adcode": "530926", - "people_count_2010": null, - "lat": 23.534579, - "lng": 99.402495, - "name": "耿马傣族佤族自治县", - "level": "district", - "parent": "临沧市" - }, - { - "adcode": "411503", - "people_count_2010": 635651, - "lat": 32.098395, - "lng": 114.126027, - "name": "平桥区", - "level": "district", - "parent": "信阳市" - }, - { - "adcode": "530602", - "people_count_2010": 787837, - "lat": 27.336636, - "lng": 103.717267, - "name": "昭阳区", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "653128", - "people_count_2010": 147688, - "lat": 39.235248, - "lng": 76.7724, - "name": "岳普湖县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "440307", - "people_count_2010": 2300000, - "lat": 22.721511, - "lng": 114.251372, - "name": "龙岗区", - "level": "district", - "parent": "深圳市" - }, - { - "adcode": "340208", - "people_count_2010": 144378, - "lat": 31.225423, - "lng": 118.233987, - "name": "三山区", - "level": "district", - "parent": "芜湖市" - }, - { - "adcode": "620421", - "people_count_2010": 454925, - "lat": 36.561424, - "lng": 104.686972, - "name": "靖远县", - "level": "district", - "parent": "白银市" - }, - { - "adcode": "330104", - "people_count_2010": 998783, - "lat": 30.266603, - "lng": 120.202633, - "name": "江干区", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "420602", - "people_count_2010": 473202, - "lat": 32.015088, - "lng": 112.150327, - "name": "襄城区", - "level": "district", - "parent": "襄阳市" - }, - { - "adcode": "330602", - "people_count_2010": 883836, - "lat": 29.996993, - "lng": 120.585315, - "name": "越城区", - "level": "district", - "parent": "绍兴市" - }, - { - "adcode": "620422", - "people_count_2010": 541273, - "lat": 35.692486, - "lng": 105.054337, - "name": "会宁县", - "level": "district", - "parent": "白银市" - }, - { - "adcode": "510402", - "people_count_2010": null, - "lat": 26.580887, - "lng": 101.715134, - "name": "东区", - "level": "district", - "parent": "攀枝花市" - }, - { - "adcode": "231225", - "people_count_2010": 320695, - "lat": 47.183527, - "lng": 125.907544, - "name": "明水县", - "level": "district", - "parent": "绥化市" - }, - { - "adcode": "370522", - "people_count_2010": 281252, - "lat": 37.493365, - "lng": 118.248854, - "name": "利津县", - "level": "district", - "parent": "东营市" - }, - { - "adcode": "620121", - "people_count_2010": 418789, - "lat": 36.734428, - "lng": 103.262203, - "name": "永登县", - "level": "district", - "parent": "兰州市" - }, - { - "adcode": "520627", - "people_count_2010": null, - "lat": 28.560487, - "lng": 108.495746, - "name": "沿河土家族自治县", - "level": "district", - "parent": "铜仁市" - }, - { - "adcode": "330305", - "people_count_2010": null, - "lat": 27.836057, - "lng": 121.156181, - "name": "洞头区", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "540302", - "people_count_2010": null, - "lat": 31.137035, - "lng": 97.178255, - "name": "卡若区", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "231282", - "people_count_2010": 903067, - "lat": 46.069471, - "lng": 125.991402, - "name": "肇东市", - "level": "district", - "parent": "绥化市" - }, - { - "adcode": "371327", - "people_count_2010": 886376, - "lat": 35.175911, - "lng": 118.838322, - "name": "莒南县", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "230281", - "people_count_2010": 625892, - "lat": 48.481133, - "lng": 124.882172, - "name": "讷河市", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "653221", - "people_count_2010": 269941, - "lat": 37.120031, - "lng": 79.81907, - "name": "和田县", - "level": "district", - "parent": "和田地区" - }, - { - "adcode": "140981", - "people_count_2010": 491213, - "lat": 38.729186, - "lng": 112.713132, - "name": "原平市", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "530821", - "people_count_2010": null, - "lat": 23.062507, - "lng": 101.04524, - "name": "宁洱哈尼族彝族自治县", - "level": "district", - "parent": "普洱市" - }, - { - "adcode": "654002", - "people_count_2010": 515082, - "lat": 43.922209, - "lng": 81.316343, - "name": "伊宁市", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "330329", - "people_count_2010": 233443, - "lat": 27.557309, - "lng": 119.71624, - "name": "泰顺县", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "520222", - "people_count_2010": 1000000, - "lat": 25.706966, - "lng": 104.468367, - "name": "盘县", - "level": "district", - "parent": "六盘水市" - }, - { - "adcode": "430321", - "people_count_2010": 917616, - "lat": 27.778601, - "lng": 112.952829, - "name": "湘潭县", - "level": "district", - "parent": "湘潭市" - }, - { - "adcode": "370403", - "people_count_2010": 481450, - "lat": 34.79789, - "lng": 117.265293, - "name": "薛城区", - "level": "district", - "parent": "枣庄市" - }, - { - "adcode": "150929", - "people_count_2010": 176818, - "lat": 41.528114, - "lng": 111.70123, - "name": "四子王旗", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "320602", - "people_count_2010": 869049, - "lat": 32.015278, - "lng": 120.86635, - "name": "崇川区", - "level": "district", - "parent": "南通市" - }, - { - "adcode": "230407", - "people_count_2010": 44803, - "lat": 47.35997, - "lng": 130.30534, - "name": "兴山区", - "level": "district", - "parent": "鹤岗市" - }, - { - "adcode": "141181", - "people_count_2010": 468770, - "lat": 37.144474, - "lng": 111.781568, - "name": "孝义市", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "650203", - "people_count_2010": 261445, - "lat": 45.600477, - "lng": 84.868918, - "name": "克拉玛依区", - "level": "district", - "parent": "克拉玛依市" - }, - { - "adcode": "542523", - "people_count_2010": 16901, - "lat": 32.503373, - "lng": 80.105005, - "name": "噶尔县", - "level": "district", - "parent": "阿里地区" - }, - { - "adcode": "141030", - "people_count_2010": 64501, - "lat": 36.46383, - "lng": 110.751283, - "name": "大宁县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "533122", - "people_count_2010": 154175, - "lat": 24.80742, - "lng": 98.298196, - "name": "梁河县", - "level": "district", - "parent": "德宏傣族景颇族自治州" - }, - { - "adcode": "542422", - "people_count_2010": 32356, - "lat": 30.640846, - "lng": 93.232907, - "name": "嘉黎县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "610117", - "people_count_2010": null, - "lat": 34.535065, - "lng": 109.088896, - "name": "高陵区", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "411323", - "people_count_2010": 444414, - "lat": 33.302981, - "lng": 111.485772, - "name": "西峡县", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "350504", - "people_count_2010": 187189, - "lat": 24.941153, - "lng": 118.670312, - "name": "洛江区", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "532924", - "people_count_2010": 348754, - "lat": 25.825904, - "lng": 100.578957, - "name": "宾川县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "330702", - "people_count_2010": 761662, - "lat": 29.082607, - "lng": 119.652579, - "name": "婺城区", - "level": "district", - "parent": "金华市" - }, - { - "adcode": "411721", - "people_count_2010": 700152, - "lat": 33.382315, - "lng": 114.026864, - "name": "西平县", - "level": "district", - "parent": "驻马店市" - }, - { - "adcode": "371423", - "people_count_2010": 294684, - "lat": 37.777724, - "lng": 117.390507, - "name": "庆云县", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "451425", - "people_count_2010": 330814, - "lat": 23.082484, - "lng": 107.142441, - "name": "天等县", - "level": "district", - "parent": "崇左市" - }, - { - "adcode": "532301", - "people_count_2010": 588620, - "lat": 25.040912, - "lng": 101.546145, - "name": "楚雄市", - "level": "district", - "parent": "楚雄彝族自治州" - }, - { - "adcode": "330726", - "people_count_2010": 437346, - "lat": 29.451254, - "lng": 119.893363, - "name": "浦江县", - "level": "district", - "parent": "金华市" - }, - { - "adcode": "350205", - "people_count_2010": 288739, - "lat": 24.492512, - "lng": 118.036364, - "name": "海沧区", - "level": "district", - "parent": "厦门市" - }, - { - "adcode": "360827", - "people_count_2010": 535974, - "lat": 26.323705, - "lng": 114.51689, - "name": "遂川县", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "231224", - "people_count_2010": 386162, - "lat": 46.879203, - "lng": 127.510024, - "name": "庆安县", - "level": "district", - "parent": "绥化市" - }, - { - "adcode": "411526", - "people_count_2010": 630376, - "lat": 32.134024, - "lng": 115.050123, - "name": "潢川县", - "level": "district", - "parent": "信阳市" - }, - { - "adcode": "330282", - "people_count_2010": 1500000, - "lat": 30.177142, - "lng": 121.248052, - "name": "慈溪市", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "610923", - "people_count_2010": 70435, - "lat": 33.312184, - "lng": 108.313714, - "name": "宁陕县", - "level": "district", - "parent": "安康市" - }, - { - "adcode": "321203", - "people_count_2010": 283807, - "lat": 32.315701, - "lng": 119.88166, - "name": "高港区", - "level": "district", - "parent": "泰州市" - }, - { - "adcode": "150103", - "people_count_2010": 394555, - "lat": 40.815149, - "lng": 111.662162, - "name": "回民区", - "level": "district", - "parent": "呼和浩特市" - }, - { - "adcode": "211302", - "people_count_2010": 414085, - "lat": 41.579389, - "lng": 120.44877, - "name": "双塔区", - "level": "district", - "parent": "朝阳市" - }, - { - "adcode": "230305", - "people_count_2010": 76361, - "lat": 45.092195, - "lng": 130.697781, - "name": "梨树区", - "level": "district", - "parent": "鸡西市" - }, - { - "adcode": "820006", - "people_count_2010": null, - "lat": 22.154124, - "lng": 113.558783, - "name": "嘉模堂區", - "level": "district", - "parent": "澳門特別行政區" - }, - { - "adcode": "360926", - "people_count_2010": 135139, - "lat": 28.520956, - "lng": 114.37014, - "name": "铜鼓县", - "level": "district", - "parent": "宜春市" - }, - { - "adcode": "230381", - "people_count_2010": 317884, - "lat": 45.767985, - "lng": 132.973881, - "name": "虎林市", - "level": "district", - "parent": "鸡西市" - }, - { - "adcode": "542228", - "people_count_2010": 18453, - "lat": 28.385765, - "lng": 90.858243, - "name": "洛扎县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "420117", - "people_count_2010": null, - "lat": 30.842149, - "lng": 114.802108, - "name": "新洲区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "230902", - "people_count_2010": 236768, - "lat": 45.794258, - "lng": 130.889482, - "name": "新兴区", - "level": "district", - "parent": "七台河市" - }, - { - "adcode": "520626", - "people_count_2010": null, - "lat": 28.26094, - "lng": 108.117317, - "name": "德江县", - "level": "district", - "parent": "铜仁市" - }, - { - "adcode": "140928", - "people_count_2010": 107632, - "lat": 38.912761, - "lng": 111.841015, - "name": "五寨县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "341204", - "people_count_2010": 557687, - "lat": 32.924797, - "lng": 115.804525, - "name": "颍泉区", - "level": "district", - "parent": "阜阳市" - }, - { - "adcode": "542231", - "people_count_2010": 34141, - "lat": 28.408548, - "lng": 92.463309, - "name": "隆子县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "331125", - "people_count_2010": 111591, - "lat": 28.111077, - "lng": 119.569458, - "name": "云和县", - "level": "district", - "parent": "丽水市" - }, - { - "adcode": "330382", - "people_count_2010": 1400000, - "lat": 28.116083, - "lng": 120.967147, - "name": "乐清市", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "230109", - "people_count_2010": 236848, - "lat": 45.814656, - "lng": 126.563066, - "name": "松北区", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "350424", - "people_count_2010": 272443, - "lat": 26.259932, - "lng": 116.659725, - "name": "宁化县", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "540421", - "people_count_2010": null, - "lat": 29.88447, - "lng": 93.246515, - "name": "工布江达县", - "level": "district", - "parent": "林芝市" - }, - { - "adcode": "540424", - "people_count_2010": null, - "lat": 29.858771, - "lng": 95.768151, - "name": "波密县", - "level": "district", - "parent": "林芝市" - }, - { - "adcode": "361128", - "people_count_2010": 1300000, - "lat": 28.993374, - "lng": 116.673748, - "name": "鄱阳县", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "411023", - "people_count_2010": 767449, - "lat": 34.005018, - "lng": 113.842898, - "name": "许昌县", - "level": "district", - "parent": "许昌市" - }, - { - "adcode": "361027", - "people_count_2010": 294826, - "lat": 27.907387, - "lng": 116.778751, - "name": "金溪县", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "350583", - "people_count_2010": 1400000, - "lat": 24.959494, - "lng": 118.387031, - "name": "南安市", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "360732", - "people_count_2010": 719830, - "lat": 26.330489, - "lng": 115.351896, - "name": "兴国县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "360725", - "people_count_2010": 187234, - "lat": 25.687911, - "lng": 114.307348, - "name": "崇义县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "542525", - "people_count_2010": 15483, - "lat": 32.389192, - "lng": 81.142896, - "name": "革吉县", - "level": "district", - "parent": "阿里地区" - }, - { - "adcode": "140724", - "people_count_2010": 227896, - "lat": 37.60437, - "lng": 113.706166, - "name": "昔阳县", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "150783", - "people_count_2010": 366323, - "lat": 48.007412, - "lng": 122.744401, - "name": "扎兰屯市", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "150726", - "people_count_2010": 40258, - "lat": 48.216571, - "lng": 118.267454, - "name": "新巴尔虎左旗", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "610928", - "people_count_2010": 426677, - "lat": 32.833567, - "lng": 109.368149, - "name": "旬阳县", - "level": "district", - "parent": "安康市" - }, - { - "adcode": "130526", - "people_count_2010": 327926, - "lat": 37.129952, - "lng": 114.684469, - "name": "任县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "360281", - "people_count_2010": 810353, - "lat": 28.967361, - "lng": 117.129376, - "name": "乐平市", - "level": "district", - "parent": "景德镇市" - }, - { - "adcode": "340824", - "people_count_2010": 500292, - "lat": 30.638222, - "lng": 116.573666, - "name": "潜山县", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "522726", - "people_count_2010": 265212, - "lat": 25.826283, - "lng": 107.542757, - "name": "独山县", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "513327", - "people_count_2010": 46558, - "lat": 31.392674, - "lng": 100.679495, - "name": "炉霍县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "510411", - "people_count_2010": 260294, - "lat": 26.497185, - "lng": 101.737916, - "name": "仁和区", - "level": "district", - "parent": "攀枝花市" - }, - { - "adcode": "130826", - "people_count_2010": 357029, - "lat": 41.209903, - "lng": 116.65121, - "name": "丰宁满族自治县", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "532324", - "people_count_2010": 236133, - "lat": 25.192408, - "lng": 101.274991, - "name": "南华县", - "level": "district", - "parent": "楚雄彝族自治州" - }, - { - "adcode": "410184", - "people_count_2010": 758128, - "lat": 34.394219, - "lng": 113.73967, - "name": "新郑市", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "421182", - "people_count_2010": 644247, - "lat": 29.849342, - "lng": 115.56242, - "name": "武穴市", - "level": "district", - "parent": "黄冈市" - }, - { - "adcode": "522728", - "people_count_2010": 257236, - "lat": 25.429894, - "lng": 106.750006, - "name": "罗甸县", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "210106", - "people_count_2010": 278741, - "lat": 41.787808, - "lng": 123.350664, - "name": "铁西区", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "210122", - "people_count_2010": 476081, - "lat": 41.512725, - "lng": 122.731269, - "name": "辽中县", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "422802", - "people_count_2010": 654094, - "lat": 30.294247, - "lng": 108.943491, - "name": "利川市", - "level": "district", - "parent": "恩施土家族苗族自治州" - }, - { - "adcode": "520203", - "people_count_2010": 495162, - "lat": 26.210662, - "lng": 105.474235, - "name": "六枝特区", - "level": "district", - "parent": "六盘水市" - }, - { - "adcode": "654022", - "people_count_2010": null, - "lat": 43.838883, - "lng": 81.150874, - "name": "察布查尔锡伯自治县", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "140728", - "people_count_2010": 502712, - "lat": 37.195474, - "lng": 112.174059, - "name": "平遥县", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "360222", - "people_count_2010": 303563, - "lat": 29.352251, - "lng": 117.217611, - "name": "浮梁县", - "level": "district", - "parent": "景德镇市" - }, - { - "adcode": "150304", - "people_count_2010": 133370, - "lat": 39.502288, - "lng": 106.722711, - "name": "乌达区", - "level": "district", - "parent": "乌海市" - }, - { - "adcode": "230403", - "people_count_2010": 140070, - "lat": 47.331678, - "lng": 130.276652, - "name": "工农区", - "level": "district", - "parent": "鹤岗市" - }, - { - "adcode": "141032", - "people_count_2010": 63649, - "lat": 36.760614, - "lng": 110.631276, - "name": "永和县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "210104", - "people_count_2010": 782867, - "lat": 41.808503, - "lng": 123.469956, - "name": "大东区", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "211481", - "people_count_2010": 546176, - "lat": 40.619413, - "lng": 120.729365, - "name": "兴城市", - "level": "district", - "parent": "葫芦岛市" - }, - { - "adcode": "610104", - "people_count_2010": 698513, - "lat": 34.2656, - "lng": 108.933194, - "name": "莲湖区", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "450304", - "people_count_2010": 275284, - "lat": 25.261986, - "lng": 110.284882, - "name": "象山区", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "450330", - "people_count_2010": 1600000, - "lat": 24.632216, - "lng": 110.642821, - "name": "平乐县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "360728", - "people_count_2010": 172771, - "lat": 24.774277, - "lng": 115.03267, - "name": "定南县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "530111", - "people_count_2010": 853371, - "lat": 25.021211, - "lng": 102.723437, - "name": "官渡区", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "140621", - "people_count_2010": 238885, - "lat": 39.52677, - "lng": 112.816396, - "name": "山阴县", - "level": "district", - "parent": "朔州市" - }, - { - "adcode": "211382", - "people_count_2010": 570660, - "lat": 41.243086, - "lng": 119.404789, - "name": "凌源市", - "level": "district", - "parent": "朝阳市" - }, - { - "adcode": "450332", - "people_count_2010": null, - "lat": 24.833612, - "lng": 110.82952, - "name": "恭城瑶族自治县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "141021", - "people_count_2010": 237033, - "lat": 35.641387, - "lng": 111.475529, - "name": "曲沃县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "360727", - "people_count_2010": 300301, - "lat": 24.90476, - "lng": 114.792657, - "name": "龙南县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "360923", - "people_count_2010": 326697, - "lat": 28.234789, - "lng": 114.932653, - "name": "上高县", - "level": "district", - "parent": "宜春市" - }, - { - "adcode": "420921", - "people_count_2010": 588666, - "lat": 31.251618, - "lng": 113.988964, - "name": "孝昌县", - "level": "district", - "parent": "孝感市" - }, - { - "adcode": "360721", - "people_count_2010": 546964, - "lat": 25.865432, - "lng": 115.018461, - "name": "赣县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "360731", - "people_count_2010": 853457, - "lat": 25.955033, - "lng": 115.411198, - "name": "于都县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "360981", - "people_count_2010": 1300000, - "lat": 28.191584, - "lng": 115.786005, - "name": "丰城市", - "level": "district", - "parent": "宜春市" - }, - { - "adcode": "530826", - "people_count_2010": null, - "lat": 22.58336, - "lng": 101.859144, - "name": "江城哈尼族彝族自治县", - "level": "district", - "parent": "普洱市" - }, - { - "adcode": "210703", - "people_count_2010": 409606, - "lat": 41.114662, - "lng": 121.151304, - "name": "凌河区", - "level": "district", - "parent": "锦州市" - }, - { - "adcode": "431123", - "people_count_2010": 164947, - "lat": 25.959397, - "lng": 111.662146, - "name": "双牌县", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "341021", - "people_count_2010": 409247, - "lat": 29.867748, - "lng": 118.428025, - "name": "歙县", - "level": "district", - "parent": "黄山市" - }, - { - "adcode": "341024", - "people_count_2010": 157768, - "lat": 29.853472, - "lng": 117.717237, - "name": "祁门县", - "level": "district", - "parent": "黄山市" - }, - { - "adcode": "340521", - "people_count_2010": 624771, - "lat": 31.556167, - "lng": 118.489873, - "name": "当涂县", - "level": "district", - "parent": "马鞍山市" - }, - { - "adcode": "140827", - "people_count_2010": 231018, - "lat": 35.298293, - "lng": 111.67099, - "name": "垣曲县", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "640425", - "people_count_2010": 200201, - "lat": 35.849975, - "lng": 106.641512, - "name": "彭阳县", - "level": "district", - "parent": "固原市" - }, - { - "adcode": "450603", - "people_count_2010": 362888, - "lat": 21.764758, - "lng": 108.358426, - "name": "防城区", - "level": "district", - "parent": "防城港市" - }, - { - "adcode": "611024", - "people_count_2010": 422255, - "lat": 33.530411, - "lng": 109.880435, - "name": "山阳县", - "level": "district", - "parent": "商洛市" - }, - { - "adcode": "341302", - "people_count_2010": null, - "lat": 33.633853, - "lng": 116.983309, - "name": "埇桥区", - "level": "district", - "parent": "宿州市" - }, - { - "adcode": "340802", - "people_count_2010": 251080, - "lat": 30.506375, - "lng": 117.044965, - "name": "迎江区", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "211404", - "people_count_2010": 120969, - "lat": 41.098813, - "lng": 120.752314, - "name": "南票区", - "level": "district", - "parent": "葫芦岛市" - }, - { - "adcode": "500109", - "people_count_2010": 680360, - "lat": 29.82543, - "lng": 106.437868, - "name": "北碚区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "640423", - "people_count_2010": 160754, - "lat": 35.618234, - "lng": 106.12344, - "name": "隆德县", - "level": "district", - "parent": "固原市" - }, - { - "adcode": "500114", - "people_count_2010": 445012, - "lat": 29.527548, - "lng": 108.782577, - "name": "黔江区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "500112", - "people_count_2010": 1300000, - "lat": 29.601451, - "lng": 106.512851, - "name": "渝北区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "500104", - "people_count_2010": 301042, - "lat": 29.481002, - "lng": 106.48613, - "name": "大渡口区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "500102", - "people_count_2010": 1100000, - "lat": 29.703652, - "lng": 107.394905, - "name": "涪陵区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "500113", - "people_count_2010": 918692, - "lat": 29.381919, - "lng": 106.519423, - "name": "巴南区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "500110", - "people_count_2010": 255776, - "lat": 29.028091, - "lng": 106.651417, - "name": "綦江区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "510904", - "people_count_2010": 639125, - "lat": 30.346121, - "lng": 105.459383, - "name": "安居区", - "level": "district", - "parent": "遂宁市" - }, - { - "adcode": "500115", - "people_count_2010": 770009, - "lat": 29.833671, - "lng": 107.074854, - "name": "长寿区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "360982", - "people_count_2010": 555120, - "lat": 28.055898, - "lng": 115.543388, - "name": "樟树市", - "level": "district", - "parent": "宜春市" - }, - { - "adcode": "500101", - "people_count_2010": 1600000, - "lat": 30.807807, - "lng": 108.380246, - "name": "万州区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "500111", - "people_count_2010": null, - "lat": 29.700498, - "lng": 105.715319, - "name": "大足区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "500106", - "people_count_2010": 1000000, - "lat": 29.541224, - "lng": 106.4542, - "name": "沙坪坝区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "410311", - "people_count_2010": null, - "lat": 34.618557, - "lng": 112.456634, - "name": "洛龙区", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "370404", - "people_count_2010": 364238, - "lat": 34.767713, - "lng": 117.586316, - "name": "峄城区", - "level": "district", - "parent": "枣庄市" - }, - { - "adcode": "130133", - "people_count_2010": 571077, - "lat": 37.754341, - "lng": 114.775362, - "name": "赵县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "130108", - "people_count_2010": 628572, - "lat": 38.027696, - "lng": 114.533257, - "name": "裕华区", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "152524", - "people_count_2010": 71063, - "lat": 42.746662, - "lng": 112.65539, - "name": "苏尼特右旗", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "360924", - "people_count_2010": 274046, - "lat": 28.388289, - "lng": 114.787381, - "name": "宜丰县", - "level": "district", - "parent": "宜春市" - }, - { - "adcode": "320902", - "people_count_2010": 904514, - "lat": 33.383912, - "lng": 120.136078, - "name": "亭湖区", - "level": "district", - "parent": "盐城市" - }, - { - "adcode": "410108", - "people_count_2010": 269579, - "lat": 34.828591, - "lng": 113.61836, - "name": "惠济区", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "152502", - "people_count_2010": 245886, - "lat": 43.944301, - "lng": 116.091903, - "name": "锡林浩特市", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "152530", - "people_count_2010": 81967, - "lat": 42.245895, - "lng": 116.003311, - "name": "正蓝旗", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "130423", - "people_count_2010": 600600, - "lat": 36.337604, - "lng": 114.610703, - "name": "临漳县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "411327", - "people_count_2010": 633786, - "lat": 33.056126, - "lng": 112.938279, - "name": "社旗县", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "630222", - "people_count_2010": null, - "lat": 36.329451, - "lng": 102.804209, - "name": "民和回族土族自治县", - "level": "district", - "parent": "海东市" - }, - { - "adcode": "210411", - "people_count_2010": 472920, - "lat": 41.881132, - "lng": 123.917165, - "name": "顺城区", - "level": "district", - "parent": "抚顺市" - }, - { - "adcode": "152527", - "people_count_2010": 112339, - "lat": 41.895199, - "lng": 115.28728, - "name": "太仆寺旗", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "610428", - "people_count_2010": 167570, - "lat": 35.206122, - "lng": 107.795835, - "name": "长武县", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "650402", - "people_count_2010": null, - "lat": 42.947627, - "lng": 89.182324, - "name": "高昌区", - "level": "district", - "parent": "吐鲁番市" - }, - { - "adcode": "630225", - "people_count_2010": null, - "lat": 35.847247, - "lng": 102.486534, - "name": "循化撒拉族自治县", - "level": "district", - "parent": "海东市" - }, - { - "adcode": "370832", - "people_count_2010": 730652, - "lat": 35.801843, - "lng": 116.08963, - "name": "梁山县", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "230205", - "people_count_2010": 80109, - "lat": 47.156867, - "lng": 123.813181, - "name": "昂昂溪区", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "350821", - "people_count_2010": 393390, - "lat": 25.842278, - "lng": 116.361007, - "name": "长汀县", - "level": "district", - "parent": "龙岩市" - }, - { - "adcode": "110114", - "people_count_2010": 1700000, - "lat": 40.218085, - "lng": 116.235906, - "name": "昌平区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "431024", - "people_count_2010": 296811, - "lat": 25.587309, - "lng": 112.370618, - "name": "嘉禾县", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "370830", - "people_count_2010": 684617, - "lat": 35.721746, - "lng": 116.487146, - "name": "汶上县", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "371102", - "people_count_2010": 920511, - "lat": 35.426152, - "lng": 119.457703, - "name": "东港区", - "level": "district", - "parent": "日照市" - }, - { - "adcode": "370785", - "people_count_2010": 895582, - "lat": 36.37754, - "lng": 119.757033, - "name": "高密市", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "632725", - "people_count_2010": 85825, - "lat": 32.203206, - "lng": 96.479797, - "name": "囊谦县", - "level": "district", - "parent": "玉树藏族自治州" - }, - { - "adcode": "350123", - "people_count_2010": 207677, - "lat": 26.487234, - "lng": 119.552645, - "name": "罗源县", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "810017", - "people_count_2010": null, - "lat": 22.363908, - "lng": 114.13918, - "name": "葵青區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "141024", - "people_count_2010": 733420, - "lat": 36.255742, - "lng": 111.673692, - "name": "洪洞县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "320311", - "people_count_2010": 539693, - "lat": 34.262249, - "lng": 117.182225, - "name": "泉山区", - "level": "district", - "parent": "徐州市" - }, - { - "adcode": "450328", - "people_count_2010": 154889, - "lat": 25.796428, - "lng": 110.009423, - "name": "龙胜各族自治县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "320381", - "people_count_2010": 920628, - "lat": 34.368779, - "lng": 118.345828, - "name": "新沂市", - "level": "district", - "parent": "徐州市" - }, - { - "adcode": "130227", - "people_count_2010": 390128, - "lat": 40.146238, - "lng": 118.305139, - "name": "迁西县", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "513433", - "people_count_2010": 351245, - "lat": 28.550844, - "lng": 102.170046, - "name": "冕宁县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "130184", - "people_count_2010": 487652, - "lat": 38.344768, - "lng": 114.68578, - "name": "新乐市", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "512022", - "people_count_2010": 546767, - "lat": 30.275619, - "lng": 105.031142, - "name": "乐至县", - "level": "district", - "parent": "资阳市" - }, - { - "adcode": "131026", - "people_count_2010": 500967, - "lat": 38.866801, - "lng": 116.460107, - "name": "文安县", - "level": "district", - "parent": "廊坊市" - }, - { - "adcode": "130633", - "people_count_2010": 537564, - "lat": 39.35297, - "lng": 115.501146, - "name": "易县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "632701", - "people_count_2010": null, - "lat": 33.00393, - "lng": 97.008762, - "name": "玉树市", - "level": "district", - "parent": "玉树藏族自治州" - }, - { - "adcode": "431002", - "people_count_2010": 419784, - "lat": 25.792628, - "lng": 113.032208, - "name": "北湖区", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "361123", - "people_count_2010": 574369, - "lat": 28.673479, - "lng": 118.244408, - "name": "玉山县", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "210204", - "people_count_2010": 693140, - "lat": 38.912859, - "lng": 121.593702, - "name": "沙河口区", - "level": "district", - "parent": "大连市" - }, - { - "adcode": "210202", - "people_count_2010": 339527, - "lat": 38.921553, - "lng": 121.64376, - "name": "中山区", - "level": "district", - "parent": "大连市" - }, - { - "adcode": "410328", - "people_count_2010": 421262, - "lat": 34.387179, - "lng": 111.655399, - "name": "洛宁县", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "371721", - "people_count_2010": 1400000, - "lat": 34.823253, - "lng": 115.549482, - "name": "曹县", - "level": "district", - "parent": "菏泽市" - }, - { - "adcode": "140122", - "people_count_2010": 120228, - "lat": 38.058797, - "lng": 112.673818, - "name": "阳曲县", - "level": "district", - "parent": "太原市" - }, - { - "adcode": "130983", - "people_count_2010": 548507, - "lat": 38.369238, - "lng": 117.343803, - "name": "黄骅市", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "361130", - "people_count_2010": 334020, - "lat": 29.254015, - "lng": 117.86219, - "name": "婺源县", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "370812", - "people_count_2010": null, - "lat": 35.556445, - "lng": 116.828996, - "name": "兖州区", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "130624", - "people_count_2010": 205299, - "lat": 38.847276, - "lng": 114.198801, - "name": "阜平县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "130681", - "people_count_2010": 603535, - "lat": 39.485765, - "lng": 115.973409, - "name": "涿州市", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "130321", - "people_count_2010": 496726, - "lat": 40.406023, - "lng": 118.954555, - "name": "青龙满族自治县", - "level": "district", - "parent": "秦皇岛市" - }, - { - "adcode": "130324", - "people_count_2010": 384439, - "lat": 39.891639, - "lng": 118.881809, - "name": "卢龙县", - "level": "district", - "parent": "秦皇岛市" - }, - { - "adcode": "150723", - "people_count_2010": 223752, - "lat": 50.590177, - "lng": 123.725684, - "name": "鄂伦春自治旗", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "361181", - "people_count_2010": 293201, - "lat": 28.945034, - "lng": 117.578732, - "name": "德兴市", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "130303", - "people_count_2010": 178769, - "lat": 39.998023, - "lng": 119.753591, - "name": "山海关区", - "level": "district", - "parent": "秦皇岛市" - }, - { - "adcode": "130722", - "people_count_2010": 318669, - "lat": 41.151713, - "lng": 114.715951, - "name": "张北县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "150821", - "people_count_2010": 260480, - "lat": 41.097639, - "lng": 108.270658, - "name": "五原县", - "level": "district", - "parent": "巴彦淖尔市" - }, - { - "adcode": "370828", - "people_count_2010": 625262, - "lat": 35.06977, - "lng": 116.310364, - "name": "金乡县", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "320507", - "people_count_2010": 692947, - "lat": 31.396684, - "lng": 120.618956, - "name": "相城区", - "level": "district", - "parent": "苏州市" - }, - { - "adcode": "130721", - "people_count_2010": 273506, - "lat": 40.562211, - "lng": 115.03308, - "name": "宣化县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "130608", - "people_count_2010": null, - "lat": 38.771012, - "lng": 115.492221, - "name": "清苑区", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "130732", - "people_count_2010": 238169, - "lat": 40.912081, - "lng": 115.832708, - "name": "赤城县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "140121", - "people_count_2010": 343861, - "lat": 37.60729, - "lng": 112.357961, - "name": "清徐县", - "level": "district", - "parent": "太原市" - }, - { - "adcode": "150122", - "people_count_2010": 200840, - "lat": 40.276729, - "lng": 111.197317, - "name": "托克托县", - "level": "district", - "parent": "呼和浩特市" - }, - { - "adcode": "350426", - "people_count_2010": 352067, - "lat": 26.169261, - "lng": 118.188577, - "name": "尤溪县", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "411025", - "people_count_2010": 671315, - "lat": 33.855943, - "lng": 113.493166, - "name": "襄城县", - "level": "district", - "parent": "许昌市" - }, - { - "adcode": "371481", - "people_count_2010": 652415, - "lat": 37.729115, - "lng": 117.216657, - "name": "乐陵市", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "130306", - "people_count_2010": null, - "lat": 39.887053, - "lng": 119.240651, - "name": "抚宁区", - "level": "district", - "parent": "秦皇岛市" - }, - { - "adcode": "522324", - "people_count_2010": 246809, - "lat": 25.832881, - "lng": 105.218773, - "name": "晴隆县", - "level": "district", - "parent": "黔西南布依族苗族自治州" - }, - { - "adcode": "130481", - "people_count_2010": 819000, - "lat": 36.696115, - "lng": 114.194581, - "name": "武安市", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "522730", - "people_count_2010": 180865, - "lat": 26.448809, - "lng": 106.977733, - "name": "龙里县", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "330683", - "people_count_2010": 679762, - "lat": 29.586606, - "lng": 120.82888, - "name": "嵊州市", - "level": "district", - "parent": "绍兴市" - }, - { - "adcode": "330482", - "people_count_2010": 671834, - "lat": 30.698921, - "lng": 121.014666, - "name": "平湖市", - "level": "district", - "parent": "嘉兴市" - }, - { - "adcode": "150524", - "people_count_2010": 167020, - "lat": 42.734692, - "lng": 121.774886, - "name": "库伦旗", - "level": "district", - "parent": "通辽市" - }, - { - "adcode": "511102", - "people_count_2010": null, - "lat": 29.588327, - "lng": 103.75539, - "name": "市中区", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "330604", - "people_count_2010": null, - "lat": 30.016769, - "lng": 120.874185, - "name": "上虞区", - "level": "district", - "parent": "绍兴市" - }, - { - "adcode": "330481", - "people_count_2010": 806966, - "lat": 30.525544, - "lng": 120.688821, - "name": "海宁市", - "level": "district", - "parent": "嘉兴市" - }, - { - "adcode": "371622", - "people_count_2010": 427014, - "lat": 37.640492, - "lng": 117.581326, - "name": "阳信县", - "level": "district", - "parent": "滨州市" - }, - { - "adcode": "230602", - "people_count_2010": 328808, - "lat": 46.596356, - "lng": 125.114643, - "name": "萨尔图区", - "level": "district", - "parent": "大庆市" - }, - { - "adcode": "141034", - "people_count_2010": 144791, - "lat": 36.653368, - "lng": 111.563021, - "name": "汾西县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "130828", - "people_count_2010": 421400, - "lat": 41.949404, - "lng": 117.764086, - "name": "围场满族蒙古族自治县", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "350782", - "people_count_2010": 233554, - "lat": 27.751733, - "lng": 118.032796, - "name": "武夷山市", - "level": "district", - "parent": "南平市" - }, - { - "adcode": "330503", - "people_count_2010": 536054, - "lat": 30.872742, - "lng": 120.417195, - "name": "南浔区", - "level": "district", - "parent": "湖州市" - }, - { - "adcode": "330327", - "people_count_2010": 1200000, - "lat": 27.507743, - "lng": 120.406256, - "name": "苍南县", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "610527", - "people_count_2010": 279679, - "lat": 35.177291, - "lng": 109.594309, - "name": "白水县", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "340302", - "people_count_2010": 243123, - "lat": 32.950452, - "lng": 117.382312, - "name": "龙子湖区", - "level": "district", - "parent": "蚌埠市" - }, - { - "adcode": "421126", - "people_count_2010": 727805, - "lat": 30.234927, - "lng": 115.433964, - "name": "蕲春县", - "level": "district", - "parent": "黄冈市" - }, - { - "adcode": "371702", - "people_count_2010": 1300000, - "lat": 35.24311, - "lng": 115.470946, - "name": "牡丹区", - "level": "district", - "parent": "菏泽市" - }, - { - "adcode": "450405", - "people_count_2010": 185574, - "lat": 23.4777, - "lng": 111.275678, - "name": "长洲区", - "level": "district", - "parent": "梧州市" - }, - { - "adcode": "640522", - "people_count_2010": 389305, - "lat": 36.562007, - "lng": 105.647323, - "name": "海原县", - "level": "district", - "parent": "中卫市" - }, - { - "adcode": "140929", - "people_count_2010": 84395, - "lat": 38.705625, - "lng": 111.56981, - "name": "岢岚县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "420504", - "people_count_2010": 103696, - "lat": 30.692322, - "lng": 111.268163, - "name": "点军区", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "141182", - "people_count_2010": 416212, - "lat": 37.267742, - "lng": 111.785273, - "name": "汾阳市", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "320811", - "people_count_2010": 330664, - "lat": 33.58074, - "lng": 119.030498, - "name": "清浦区", - "level": "district", - "parent": "淮安市" - }, - { - "adcode": "532626", - "people_count_2010": 477441, - "lat": 24.040982, - "lng": 104.194366, - "name": "丘北县", - "level": "district", - "parent": "文山壮族苗族自治州" - }, - { - "adcode": "431022", - "people_count_2010": 579340, - "lat": 25.394345, - "lng": 112.947884, - "name": "宜章县", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "320322", - "people_count_2010": 1100000, - "lat": 34.729044, - "lng": 116.937182, - "name": "沛县", - "level": "district", - "parent": "徐州市" - }, - { - "adcode": "130529", - "people_count_2010": 374634, - "lat": 37.21768, - "lng": 115.038782, - "name": "巨鹿县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "500234", - "people_count_2010": 1200000, - "lat": 31.167735, - "lng": 108.413317, - "name": "开县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "320382", - "people_count_2010": 1500000, - "lat": 34.314708, - "lng": 117.963923, - "name": "邳州市", - "level": "district", - "parent": "徐州市" - }, - { - "adcode": "431129", - "people_count_2010": null, - "lat": 25.182596, - "lng": 111.577276, - "name": "江华瑶族自治县", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "232723", - "people_count_2010": 83414, - "lat": 52.972074, - "lng": 122.536256, - "name": "漠河县", - "level": "district", - "parent": "大兴安岭地区" - }, - { - "adcode": "610827", - "people_count_2010": 154953, - "lat": 37.759081, - "lng": 110.178683, - "name": "米脂县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "610830", - "people_count_2010": 128938, - "lat": 37.087702, - "lng": 110.12146, - "name": "清涧县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "340225", - "people_count_2010": null, - "lat": 31.303075, - "lng": 117.911432, - "name": "无为县", - "level": "district", - "parent": "芜湖市" - }, - { - "adcode": "542521", - "people_count_2010": 9657, - "lat": 30.291896, - "lng": 81.177588, - "name": "普兰县", - "level": "district", - "parent": "阿里地区" - }, - { - "adcode": "320105", - "people_count_2010": 427089, - "lat": 32.004538, - "lng": 118.732688, - "name": "建邺区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "330703", - "people_count_2010": 315583, - "lat": 29.095835, - "lng": 119.681264, - "name": "金东区", - "level": "district", - "parent": "金华市" - }, - { - "adcode": "230207", - "people_count_2010": 72151, - "lat": 47.51401, - "lng": 122.887972, - "name": "碾子山区", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "370323", - "people_count_2010": 549491, - "lat": 36.186282, - "lng": 118.166161, - "name": "沂源县", - "level": "district", - "parent": "淄博市" - }, - { - "adcode": "340828", - "people_count_2010": 321636, - "lat": 30.848502, - "lng": 116.360482, - "name": "岳西县", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "510108", - "people_count_2010": 938785, - "lat": 30.660275, - "lng": 104.103077, - "name": "成华区", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "370784", - "people_count_2010": 926894, - "lat": 36.427417, - "lng": 119.206886, - "name": "安丘市", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "230781", - "people_count_2010": 349369, - "lat": 46.985772, - "lng": 128.030561, - "name": "铁力市", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "445281", - "people_count_2010": 2100000, - "lat": 23.29788, - "lng": 116.165082, - "name": "普宁市", - "level": "district", - "parent": "揭阳市" - }, - { - "adcode": "152201", - "people_count_2010": 327081, - "lat": 46.077238, - "lng": 122.068975, - "name": "乌兰浩特市", - "level": "district", - "parent": "兴安盟" - }, - { - "adcode": "341824", - "people_count_2010": 156127, - "lat": 30.065267, - "lng": 118.594705, - "name": "绩溪县", - "level": "district", - "parent": "宣城市" - }, - { - "adcode": "500236", - "people_count_2010": 834259, - "lat": 31.019967, - "lng": 109.465774, - "name": "奉节县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "331127", - "people_count_2010": 107106, - "lat": 27.977247, - "lng": 119.634669, - "name": "景宁畲族自治县", - "level": "district", - "parent": "丽水市" - }, - { - "adcode": "131128", - "people_count_2010": 341087, - "lat": 37.869945, - "lng": 116.164727, - "name": "阜城县", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "810013", - "people_count_2010": null, - "lat": 22.496143, - "lng": 114.147404, - "name": "北區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "150921", - "people_count_2010": 136965, - "lat": 40.89576, - "lng": 112.577702, - "name": "卓资县", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "360622", - "people_count_2010": 352476, - "lat": 28.206177, - "lng": 116.822763, - "name": "余江县", - "level": "district", - "parent": "鹰潭市" - }, - { - "adcode": "331181", - "people_count_2010": 234626, - "lat": 28.069177, - "lng": 119.132319, - "name": "龙泉市", - "level": "district", - "parent": "丽水市" - }, - { - "adcode": "360124", - "people_count_2010": 690446, - "lat": 28.365681, - "lng": 116.267671, - "name": "进贤县", - "level": "district", - "parent": "南昌市" - }, - { - "adcode": "370725", - "people_count_2010": 615910, - "lat": 36.703253, - "lng": 118.839995, - "name": "昌乐县", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "451323", - "people_count_2010": 353253, - "lat": 23.604162, - "lng": 109.66287, - "name": "武宣县", - "level": "district", - "parent": "来宾市" - }, - { - "adcode": "330283", - "people_count_2010": 491697, - "lat": 29.662348, - "lng": 121.41089, - "name": "奉化市", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "220621", - "people_count_2010": 297960, - "lat": 42.332643, - "lng": 127.273796, - "name": "抚松县", - "level": "district", - "parent": "白山市" - }, - { - "adcode": "150924", - "people_count_2010": 220067, - "lat": 40.872437, - "lng": 113.834009, - "name": "兴和县", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "130433", - "people_count_2010": 309032, - "lat": 36.539461, - "lng": 115.289057, - "name": "馆陶县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "361102", - "people_count_2010": 416219, - "lat": 28.445378, - "lng": 117.970522, - "name": "信州区", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "810008", - "people_count_2010": null, - "lat": 22.336112, - "lng": 114.203985, - "name": "黃大仙區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "110115", - "people_count_2010": 1400000, - "lat": 39.728908, - "lng": 116.338033, - "name": "大兴区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "360429", - "people_count_2010": 275797, - "lat": 29.7263, - "lng": 116.244313, - "name": "湖口县", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "141031", - "people_count_2010": 103617, - "lat": 36.692675, - "lng": 110.935809, - "name": "隰县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "360830", - "people_count_2010": 475580, - "lat": 26.944721, - "lng": 114.242534, - "name": "永新县", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "220722", - "people_count_2010": 639205, - "lat": 44.276579, - "lng": 123.985184, - "name": "长岭县", - "level": "district", - "parent": "松原市" - }, - { - "adcode": "150404", - "people_count_2010": 573571, - "lat": 42.281046, - "lng": 118.938958, - "name": "松山区", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "210303", - "people_count_2010": null, - "lat": 41.11069, - "lng": 122.971834, - "name": "铁西区", - "level": "district", - "parent": "鞍山市" - }, - { - "adcode": "460107", - "people_count_2010": 479958, - "lat": 20.001051, - "lng": 110.354722, - "name": "琼山区", - "level": "district", - "parent": "海口市" - }, - { - "adcode": "411325", - "people_count_2010": 575210, - "lat": 33.046358, - "lng": 111.843801, - "name": "内乡县", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "360921", - "people_count_2010": 312956, - "lat": 28.700672, - "lng": 115.389899, - "name": "奉新县", - "level": "district", - "parent": "宜春市" - }, - { - "adcode": "371323", - "people_count_2010": 998331, - "lat": 35.787029, - "lng": 118.634543, - "name": "沂水县", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "360302", - "people_count_2010": 534560, - "lat": 27.625826, - "lng": 113.855044, - "name": "安源区", - "level": "district", - "parent": "萍乡市" - }, - { - "adcode": "211321", - "people_count_2010": 486774, - "lat": 41.526342, - "lng": 120.404217, - "name": "朝阳县", - "level": "district", - "parent": "朝阳市" - }, - { - "adcode": "410882", - "people_count_2010": 447701, - "lat": 35.08901, - "lng": 112.934538, - "name": "沁阳市", - "level": "district", - "parent": "焦作市" - }, - { - "adcode": "510502", - "people_count_2010": 575231, - "lat": 28.882889, - "lng": 105.445131, - "name": "江阳区", - "level": "district", - "parent": "泸州市" - }, - { - "adcode": "410811", - "people_count_2010": 324121, - "lat": 35.21476, - "lng": 113.26766, - "name": "山阳区", - "level": "district", - "parent": "焦作市" - }, - { - "adcode": "220381", - "people_count_2010": 1100000, - "lat": 43.509474, - "lng": 124.817588, - "name": "公主岭市", - "level": "district", - "parent": "四平市" - }, - { - "adcode": "211121", - "people_count_2010": 430913, - "lat": 40.994428, - "lng": 122.071708, - "name": "大洼县", - "level": "district", - "parent": "盘锦市" - }, - { - "adcode": "440982", - "people_count_2010": 1200000, - "lat": 21.654953, - "lng": 110.63839, - "name": "化州市", - "level": "district", - "parent": "茂名市" - }, - { - "adcode": "450403", - "people_count_2010": 138842, - "lat": 23.471318, - "lng": 111.315817, - "name": "万秀区", - "level": "district", - "parent": "梧州市" - }, - { - "adcode": "431124", - "people_count_2010": 606299, - "lat": 25.518444, - "lng": 111.591614, - "name": "道县", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "361026", - "people_count_2010": 224039, - "lat": 27.546512, - "lng": 116.223023, - "name": "宜黄县", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "340303", - "people_count_2010": 334426, - "lat": 32.938066, - "lng": 117.355789, - "name": "蚌山区", - "level": "district", - "parent": "蚌埠市" - }, - { - "adcode": "431202", - "people_count_2010": 552622, - "lat": 27.548474, - "lng": 109.982242, - "name": "鹤城区", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "360823", - "people_count_2010": 184483, - "lat": 27.580862, - "lng": 115.319331, - "name": "峡江县", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "510521", - "people_count_2010": 840336, - "lat": 29.151288, - "lng": 105.376335, - "name": "泸县", - "level": "district", - "parent": "泸州市" - }, - { - "adcode": "310230", - "people_count_2010": 703722, - "lat": 31.626946, - "lng": 121.397516, - "name": "崇明县", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "360321", - "people_count_2010": 236328, - "lat": 27.127807, - "lng": 113.955582, - "name": "莲花县", - "level": "district", - "parent": "萍乡市" - }, - { - "adcode": "431224", - "people_count_2010": 741014, - "lat": 27.903802, - "lng": 110.593373, - "name": "溆浦县", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "431227", - "people_count_2010": 244322, - "lat": 27.359897, - "lng": 109.174443, - "name": "新晃侗族自治县", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "320583", - "people_count_2010": 1600000, - "lat": 31.381925, - "lng": 120.958137, - "name": "昆山市", - "level": "district", - "parent": "苏州市" - }, - { - "adcode": "522636", - "people_count_2010": 122430, - "lat": 26.199497, - "lng": 107.794808, - "name": "丹寨县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "532931", - "people_count_2010": 169973, - "lat": 26.530066, - "lng": 99.905887, - "name": "剑川县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "360421", - "people_count_2010": 315219, - "lat": 29.610264, - "lng": 115.892977, - "name": "九江县", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "530181", - "people_count_2010": 341341, - "lat": 24.921785, - "lng": 102.485544, - "name": "安宁市", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "340825", - "people_count_2010": 515283, - "lat": 30.451869, - "lng": 116.305225, - "name": "太湖县", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "431229", - "people_count_2010": null, - "lat": 26.573511, - "lng": 109.691159, - "name": "靖州苗族侗族自治县", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "340881", - "people_count_2010": 664455, - "lat": 31.050576, - "lng": 116.959656, - "name": "桐城市", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "430424", - "people_count_2010": 630029, - "lat": 27.083531, - "lng": 112.950412, - "name": "衡东县", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "431222", - "people_count_2010": 582582, - "lat": 28.455554, - "lng": 110.399161, - "name": "沅陵县", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "530124", - "people_count_2010": 145554, - "lat": 25.219667, - "lng": 102.497888, - "name": "富民县", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "530321", - "people_count_2010": 184989, - "lat": 25.429451, - "lng": 103.578755, - "name": "马龙县", - "level": "district", - "parent": "曲靖市" - }, - { - "adcode": "532901", - "people_count_2010": 856655, - "lat": 25.593067, - "lng": 100.241369, - "name": "大理市", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "500108", - "people_count_2010": 759570, - "lat": 29.523992, - "lng": 106.560813, - "name": "南岸区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "421281", - "people_count_2010": 478410, - "lat": 29.716879, - "lng": 113.88366, - "name": "赤壁市", - "level": "district", - "parent": "咸宁市" - }, - { - "adcode": "211003", - "people_count_2010": 193414, - "lat": 41.266765, - "lng": 123.188227, - "name": "文圣区", - "level": "district", - "parent": "辽阳市" - }, - { - "adcode": "411728", - "people_count_2010": 493930, - "lat": 33.14698, - "lng": 114.00371, - "name": "遂平县", - "level": "district", - "parent": "驻马店市" - }, - { - "adcode": "320506", - "people_count_2010": 1200000, - "lat": 31.270839, - "lng": 120.624621, - "name": "吴中区", - "level": "district", - "parent": "苏州市" - }, - { - "adcode": "445381", - "people_count_2010": 959006, - "lat": 22.765415, - "lng": 111.578201, - "name": "罗定市", - "level": "district", - "parent": "云浮市" - }, - { - "adcode": "211021", - "people_count_2010": 573509, - "lat": 41.216479, - "lng": 123.079674, - "name": "辽阳县", - "level": "district", - "parent": "辽阳市" - }, - { - "adcode": "513322", - "people_count_2010": 83386, - "lat": 29.912482, - "lng": 102.233225, - "name": "泸定县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "522624", - "people_count_2010": 155735, - "lat": 26.959884, - "lng": 108.681121, - "name": "三穗县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "450303", - "people_count_2010": 170628, - "lat": 25.301334, - "lng": 110.300783, - "name": "叠彩区", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "410522", - "people_count_2010": 849057, - "lat": 36.130585, - "lng": 114.130207, - "name": "安阳县", - "level": "district", - "parent": "安阳市" - }, - { - "adcode": "542233", - "people_count_2010": 34767, - "lat": 28.96836, - "lng": 90.398747, - "name": "浪卡子县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "610323", - "people_count_2010": 459064, - "lat": 34.44296, - "lng": 107.624464, - "name": "岐山县", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "360430", - "people_count_2010": 353149, - "lat": 29.898865, - "lng": 116.55584, - "name": "彭泽县", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "810001", - "people_count_2010": null, - "lat": 22.281931, - "lng": 114.154334, - "name": "中西區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "220402", - "people_count_2010": 294278, - "lat": 42.902702, - "lng": 125.145164, - "name": "龙山区", - "level": "district", - "parent": "辽源市" - }, - { - "adcode": "360428", - "people_count_2010": 716370, - "lat": 29.275105, - "lng": 116.205114, - "name": "都昌县", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "371403", - "people_count_2010": null, - "lat": 37.332848, - "lng": 116.574929, - "name": "陵城区", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "510822", - "people_count_2010": 222253, - "lat": 32.585655, - "lng": 105.238847, - "name": "青川县", - "level": "district", - "parent": "广元市" - }, - { - "adcode": "340311", - "people_count_2010": 145874, - "lat": 32.963147, - "lng": 117.34709, - "name": "淮上区", - "level": "district", - "parent": "蚌埠市" - }, - { - "adcode": "130111", - "people_count_2010": null, - "lat": 37.886911, - "lng": 114.654281, - "name": "栾城区", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "431027", - "people_count_2010": 226562, - "lat": 26.073917, - "lng": 113.945879, - "name": "桂东县", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "152525", - "people_count_2010": 93962, - "lat": 45.510307, - "lng": 116.980022, - "name": "东乌珠穆沁旗", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "231025", - "people_count_2010": 368956, - "lat": 45.286645, - "lng": 130.268402, - "name": "林口县", - "level": "district", - "parent": "牡丹江市" - }, - { - "adcode": "511302", - "people_count_2010": 701927, - "lat": 30.795572, - "lng": 106.084091, - "name": "顺庆区", - "level": "district", - "parent": "南充市" - }, - { - "adcode": "230803", - "people_count_2010": null, - "lat": 46.809645, - "lng": 130.361786, - "name": "向阳区", - "level": "district", - "parent": "佳木斯市" - }, - { - "adcode": "441623", - "people_count_2010": 337002, - "lat": 24.364227, - "lng": 114.495952, - "name": "连平县", - "level": "district", - "parent": "河源市" - }, - { - "adcode": "220283", - "people_count_2010": 645702, - "lat": 44.410906, - "lng": 126.947813, - "name": "舒兰市", - "level": "district", - "parent": "吉林市" - }, - { - "adcode": "230621", - "people_count_2010": 387463, - "lat": 45.708685, - "lng": 125.273254, - "name": "肇州县", - "level": "district", - "parent": "大庆市" - }, - { - "adcode": "610203", - "people_count_2010": 217509, - "lat": 35.111927, - "lng": 109.100814, - "name": "印台区", - "level": "district", - "parent": "铜川市" - }, - { - "adcode": "230624", - "people_count_2010": null, - "lat": 46.865973, - "lng": 124.446259, - "name": "杜尔伯特蒙古族自治县", - "level": "district", - "parent": "大庆市" - }, - { - "adcode": "411621", - "people_count_2010": 625819, - "lat": 34.054061, - "lng": 114.392008, - "name": "扶沟县", - "level": "district", - "parent": "周口市" - }, - { - "adcode": "450302", - "people_count_2010": 156504, - "lat": 25.278544, - "lng": 110.292445, - "name": "秀峰区", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "230113", - "people_count_2010": null, - "lat": 45.377942, - "lng": 126.308784, - "name": "双城区", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "440523", - "people_count_2010": 60304, - "lat": 23.419562, - "lng": 117.027105, - "name": "南澳县", - "level": "district", - "parent": "汕头市" - }, - { - "adcode": "430211", - "people_count_2010": 215392, - "lat": 27.826909, - "lng": 113.136252, - "name": "天元区", - "level": "district", - "parent": "株洲市" - }, - { - "adcode": "141025", - "people_count_2010": 91798, - "lat": 36.26855, - "lng": 111.920207, - "name": "古县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "511723", - "people_count_2010": 430877, - "lat": 31.085537, - "lng": 107.864135, - "name": "开江县", - "level": "district", - "parent": "达州市" - }, - { - "adcode": "620824", - "people_count_2010": 189333, - "lat": 35.215342, - "lng": 106.649308, - "name": "华亭县", - "level": "district", - "parent": "平凉市" - }, - { - "adcode": "321283", - "people_count_2010": 1100000, - "lat": 32.168784, - "lng": 120.020228, - "name": "泰兴市", - "level": "district", - "parent": "泰州市" - }, - { - "adcode": "211102", - "people_count_2010": 208384, - "lat": 41.190365, - "lng": 122.055733, - "name": "双台子区", - "level": "district", - "parent": "盘锦市" - }, - { - "adcode": "152523", - "people_count_2010": 33652, - "lat": 43.854108, - "lng": 113.653412, - "name": "苏尼特左旗", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "451029", - "people_count_2010": 225043, - "lat": 24.290262, - "lng": 106.235047, - "name": "田林县", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "150981", - "people_count_2010": 245608, - "lat": 40.437534, - "lng": 113.163462, - "name": "丰镇市", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "150782", - "people_count_2010": 352173, - "lat": 49.287024, - "lng": 120.729005, - "name": "牙克石市", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "410703", - "people_count_2010": 193506, - "lat": 35.304905, - "lng": 113.866065, - "name": "卫滨区", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "152529", - "people_count_2010": 54443, - "lat": 42.286807, - "lng": 115.031423, - "name": "正镶白旗", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "451027", - "people_count_2010": 185869, - "lat": 24.345643, - "lng": 106.56487, - "name": "凌云县", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "350924", - "people_count_2010": 175874, - "lat": 27.457798, - "lng": 119.506733, - "name": "寿宁县", - "level": "district", - "parent": "宁德市" - }, - { - "adcode": "360826", - "people_count_2010": 512225, - "lat": 26.790164, - "lng": 114.901393, - "name": "泰和县", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "321111", - "people_count_2010": 296539, - "lat": 32.213501, - "lng": 119.414877, - "name": "润州区", - "level": "district", - "parent": "镇江市" - }, - { - "adcode": "360829", - "people_count_2010": 385631, - "lat": 27.382746, - "lng": 114.61384, - "name": "安福县", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "360828", - "people_count_2010": 301699, - "lat": 26.462085, - "lng": 114.784694, - "name": "万安县", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "231102", - "people_count_2010": 211313, - "lat": 50.249027, - "lng": 127.497639, - "name": "爱辉区", - "level": "district", - "parent": "黑河市" - }, - { - "adcode": "610921", - "people_count_2010": 246147, - "lat": 32.891121, - "lng": 108.510946, - "name": "汉阴县", - "level": "district", - "parent": "安康市" - }, - { - "adcode": "411602", - "people_count_2010": 505171, - "lat": 33.614836, - "lng": 114.652136, - "name": "川汇区", - "level": "district", - "parent": "周口市" - }, - { - "adcode": "511521", - "people_count_2010": 813053, - "lat": 28.695678, - "lng": 104.541489, - "name": "宜宾县", - "level": "district", - "parent": "宜宾市" - }, - { - "adcode": "350526", - "people_count_2010": 277867, - "lat": 25.489004, - "lng": 118.242986, - "name": "德化县", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "320111", - "people_count_2010": 710298, - "lat": 32.05839, - "lng": 118.625307, - "name": "浦口区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "610922", - "people_count_2010": 171097, - "lat": 33.038512, - "lng": 108.250512, - "name": "石泉县", - "level": "district", - "parent": "安康市" - }, - { - "adcode": "220322", - "people_count_2010": 782630, - "lat": 43.30831, - "lng": 124.335802, - "name": "梨树县", - "level": "district", - "parent": "四平市" - }, - { - "adcode": "610929", - "people_count_2010": 163395, - "lat": 32.809484, - "lng": 110.114186, - "name": "白河县", - "level": "district", - "parent": "安康市" - }, - { - "adcode": "350921", - "people_count_2010": 461176, - "lat": 26.882068, - "lng": 120.005214, - "name": "霞浦县", - "level": "district", - "parent": "宁德市" - }, - { - "adcode": "360822", - "people_count_2010": 501337, - "lat": 27.213445, - "lng": 115.134569, - "name": "吉水县", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "610926", - "people_count_2010": 192959, - "lat": 32.387933, - "lng": 109.361865, - "name": "平利县", - "level": "district", - "parent": "安康市" - }, - { - "adcode": "150522", - "people_count_2010": null, - "lat": 42.954564, - "lng": 122.355155, - "name": "科尔沁左翼后旗", - "level": "district", - "parent": "通辽市" - }, - { - "adcode": "420115", - "people_count_2010": 790117, - "lat": 30.349045, - "lng": 114.313961, - "name": "江夏区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "231003", - "people_count_2010": 240214, - "lat": 44.596328, - "lng": 129.634645, - "name": "阳明区", - "level": "district", - "parent": "牡丹江市" - }, - { - "adcode": "110102", - "people_count_2010": 674531, - "lat": 39.915309, - "lng": 116.366794, - "name": "西城区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "610724", - "people_count_2010": 341812, - "lat": 32.987961, - "lng": 107.765858, - "name": "西乡县", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "140226", - "people_count_2010": 156163, - "lat": 40.012873, - "lng": 112.70641, - "name": "左云县", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "130523", - "people_count_2010": 266620, - "lat": 37.287663, - "lng": 114.511523, - "name": "内丘县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "654023", - "people_count_2010": 352689, - "lat": 44.049912, - "lng": 80.872508, - "name": "霍城县", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "150626", - "people_count_2010": 124527, - "lat": 38.596611, - "lng": 108.842454, - "name": "乌审旗", - "level": "district", - "parent": "鄂尔多斯市" - }, - { - "adcode": "530581", - "people_count_2010": null, - "lat": 25.01757, - "lng": 98.497292, - "name": "腾冲市", - "level": "district", - "parent": "保山市" - }, - { - "adcode": "610927", - "people_count_2010": 50966, - "lat": 31.883395, - "lng": 109.526437, - "name": "镇坪县", - "level": "district", - "parent": "安康市" - }, - { - "adcode": "150727", - "people_count_2010": 36356, - "lat": 48.669134, - "lng": 116.825991, - "name": "新巴尔虎右旗", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "150702", - "people_count_2010": 344934, - "lat": 49.213889, - "lng": 119.764923, - "name": "海拉尔区", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "150206", - "people_count_2010": 26050, - "lat": 41.769246, - "lng": 109.97016, - "name": "白云鄂博矿区", - "level": "district", - "parent": "包头市" - }, - { - "adcode": "140524", - "people_count_2010": 231360, - "lat": 35.775614, - "lng": 113.278877, - "name": "陵川县", - "level": "district", - "parent": "晋城市" - }, - { - "adcode": "410523", - "people_count_2010": 430803, - "lat": 35.922349, - "lng": 114.362357, - "name": "汤阴县", - "level": "district", - "parent": "安阳市" - }, - { - "adcode": "130803", - "people_count_2010": 146878, - "lat": 40.959756, - "lng": 117.797485, - "name": "双滦区", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "150724", - "people_count_2010": 251467, - "lat": 49.143293, - "lng": 119.754041, - "name": "鄂温克族自治旗", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "510106", - "people_count_2010": 1200000, - "lat": 30.692058, - "lng": 104.043487, - "name": "金牛区", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "510112", - "people_count_2010": 767203, - "lat": 30.56065, - "lng": 104.269181, - "name": "龙泉驿区", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "510121", - "people_count_2010": 717227, - "lat": 30.858417, - "lng": 104.415604, - "name": "金堂县", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "150602", - "people_count_2010": 582544, - "lat": 39.81788, - "lng": 109.98945, - "name": "东胜区", - "level": "district", - "parent": "鄂尔多斯市" - }, - { - "adcode": "510184", - "people_count_2010": 661120, - "lat": 30.631478, - "lng": 103.671049, - "name": "崇州市", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "370126", - "people_count_2010": 564125, - "lat": 37.310544, - "lng": 117.156369, - "name": "商河县", - "level": "district", - "parent": "济南市" - }, - { - "adcode": "150623", - "people_count_2010": 68282, - "lat": 38.183257, - "lng": 107.48172, - "name": "鄂托克前旗", - "level": "district", - "parent": "鄂尔多斯市" - }, - { - "adcode": "410327", - "people_count_2010": 636491, - "lat": 34.516478, - "lng": 112.179989, - "name": "宜阳县", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "411322", - "people_count_2010": 922467, - "lat": 33.255138, - "lng": 113.010933, - "name": "方城县", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "410323", - "people_count_2010": 470198, - "lat": 34.728679, - "lng": 112.141403, - "name": "新安县", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "150627", - "people_count_2010": 226752, - "lat": 39.604312, - "lng": 109.787402, - "name": "伊金霍洛旗", - "level": "district", - "parent": "鄂尔多斯市" - }, - { - "adcode": "500117", - "people_count_2010": 1300000, - "lat": 29.990993, - "lng": 106.265554, - "name": "合川区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "610330", - "people_count_2010": 105492, - "lat": 33.912464, - "lng": 106.525212, - "name": "凤县", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "610524", - "people_count_2010": 436441, - "lat": 35.237098, - "lng": 110.147979, - "name": "合阳县", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "510113", - "people_count_2010": 381792, - "lat": 30.883438, - "lng": 104.25494, - "name": "青白江区", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "420202", - "people_count_2010": 224314, - "lat": 30.212086, - "lng": 115.090164, - "name": "黄石港区", - "level": "district", - "parent": "黄石市" - }, - { - "adcode": "510303", - "people_count_2010": 260607, - "lat": 29.345675, - "lng": 104.714372, - "name": "贡井区", - "level": "district", - "parent": "自贡市" - }, - { - "adcode": "510311", - "people_count_2010": 272809, - "lat": 29.272521, - "lng": 104.876417, - "name": "沿滩区", - "level": "district", - "parent": "自贡市" - }, - { - "adcode": "653130", - "people_count_2010": 411960, - "lat": 39.783479, - "lng": 78.55041, - "name": "巴楚县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "510114", - "people_count_2010": 775703, - "lat": 30.824223, - "lng": 104.16022, - "name": "新都区", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "510421", - "people_count_2010": 219227, - "lat": 26.887474, - "lng": 102.109877, - "name": "米易县", - "level": "district", - "parent": "攀枝花市" - }, - { - "adcode": "640221", - "people_count_2010": 253010, - "lat": 38.90674, - "lng": 106.54489, - "name": "平罗县", - "level": "district", - "parent": "石嘴山市" - }, - { - "adcode": "440783", - "people_count_2010": 699242, - "lat": 22.366286, - "lng": 112.692262, - "name": "开平市", - "level": "district", - "parent": "江门市" - }, - { - "adcode": "510422", - "people_count_2010": 207717, - "lat": 26.677619, - "lng": 101.851848, - "name": "盐边县", - "level": "district", - "parent": "攀枝花市" - }, - { - "adcode": "130225", - "people_count_2010": 526222, - "lat": 39.42813, - "lng": 118.905341, - "name": "乐亭县", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "620602", - "people_count_2010": 1000000, - "lat": 37.93025, - "lng": 102.634492, - "name": "凉州区", - "level": "district", - "parent": "武威市" - }, - { - "adcode": "810005", - "people_count_2010": null, - "lat": 22.311632, - "lng": 114.173347, - "name": "油尖旺區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "654201", - "people_count_2010": 161037, - "lat": 46.746281, - "lng": 82.983988, - "name": "塔城市", - "level": "district", - "parent": "塔城地区" - }, - { - "adcode": "130421", - "people_count_2010": 462012, - "lat": 36.593905, - "lng": 114.531083, - "name": "邯郸县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "431103", - "people_count_2010": 488010, - "lat": 26.434364, - "lng": 111.607156, - "name": "冷水滩区", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "130435", - "people_count_2010": 427610, - "lat": 36.773398, - "lng": 114.957588, - "name": "曲周县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "450923", - "people_count_2010": 1300000, - "lat": 22.271285, - "lng": 109.980004, - "name": "博白县", - "level": "district", - "parent": "玉林市" - }, - { - "adcode": "430581", - "people_count_2010": 734870, - "lat": 26.732086, - "lng": 110.636804, - "name": "武冈市", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "440902", - "people_count_2010": 820821, - "lat": 21.660425, - "lng": 110.920542, - "name": "茂南区", - "level": "district", - "parent": "茂名市" - }, - { - "adcode": "511402", - "people_count_2010": 821853, - "lat": 30.048128, - "lng": 103.831553, - "name": "东坡区", - "level": "district", - "parent": "眉山市" - }, - { - "adcode": "632523", - "people_count_2010": 101771, - "lat": 36.040456, - "lng": 101.431856, - "name": "贵德县", - "level": "district", - "parent": "海南藏族自治州" - }, - { - "adcode": "632324", - "people_count_2010": null, - "lat": 34.734522, - "lng": 101.611877, - "name": "河南蒙古族自治县", - "level": "district", - "parent": "黄南藏族自治州" - }, - { - "adcode": "441403", - "people_count_2010": null, - "lat": 24.267825, - "lng": 116.083482, - "name": "梅县区", - "level": "district", - "parent": "梅州市" - }, - { - "adcode": "441323", - "people_count_2010": 908390, - "lat": 22.983036, - "lng": 114.723092, - "name": "惠东县", - "level": "district", - "parent": "惠州市" - }, - { - "adcode": "220282", - "people_count_2010": 444843, - "lat": 42.972093, - "lng": 126.745445, - "name": "桦甸市", - "level": "district", - "parent": "吉林市" - }, - { - "adcode": "430412", - "people_count_2010": 59681, - "lat": 27.240536, - "lng": 112.734147, - "name": "南岳区", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "220323", - "people_count_2010": 475245, - "lat": 43.345464, - "lng": 125.303124, - "name": "伊通满族自治县", - "level": "district", - "parent": "四平市" - }, - { - "adcode": "130822", - "people_count_2010": 314730, - "lat": 40.418525, - "lng": 117.507098, - "name": "兴隆县", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "542431", - "people_count_2010": null, - "lat": 33.18698, - "lng": 88.838578, - "name": "双湖县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "220106", - "people_count_2010": 810551, - "lat": 43.892177, - "lng": 125.272467, - "name": "绿园区", - "level": "district", - "parent": "长春市" - }, - { - "adcode": "110106", - "people_count_2010": 2100000, - "lat": 39.863642, - "lng": 116.286968, - "name": "丰台区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "450803", - "people_count_2010": 507962, - "lat": 23.067516, - "lng": 109.604665, - "name": "港南区", - "level": "district", - "parent": "贵港市" - }, - { - "adcode": "532523", - "people_count_2010": null, - "lat": 22.987013, - "lng": 103.687229, - "name": "屏边苗族自治县", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "532502", - "people_count_2010": 322693, - "lat": 23.713832, - "lng": 103.258679, - "name": "开远市", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "210802", - "people_count_2010": 310634, - "lat": 40.669949, - "lng": 122.253235, - "name": "站前区", - "level": "district", - "parent": "营口市" - }, - { - "adcode": "370881", - "people_count_2010": 640498, - "lat": 35.592788, - "lng": 116.991885, - "name": "曲阜市", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "620403", - "people_count_2010": 192399, - "lat": 36.72921, - "lng": 104.819207, - "name": "平川区", - "level": "district", - "parent": "白银市" - }, - { - "adcode": "320981", - "people_count_2010": 990306, - "lat": 32.853174, - "lng": 120.314101, - "name": "东台市", - "level": "district", - "parent": "盐城市" - }, - { - "adcode": "620822", - "people_count_2010": 183937, - "lat": 35.064009, - "lng": 107.620587, - "name": "灵台县", - "level": "district", - "parent": "平凉市" - }, - { - "adcode": "620826", - "people_count_2010": 423827, - "lat": 35.525243, - "lng": 105.733489, - "name": "静宁县", - "level": "district", - "parent": "平凉市" - }, - { - "adcode": "441303", - "people_count_2010": 764816, - "lat": 22.78851, - "lng": 114.469444, - "name": "惠阳区", - "level": "district", - "parent": "惠州市" - }, - { - "adcode": "632622", - "people_count_2010": 27185, - "lat": 32.931589, - "lng": 100.737955, - "name": "班玛县", - "level": "district", - "parent": "果洛藏族自治州" - }, - { - "adcode": "110112", - "people_count_2010": 1200000, - "lat": 39.902486, - "lng": 116.658603, - "name": "通州区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "532503", - "people_count_2010": null, - "lat": 23.366843, - "lng": 103.385005, - "name": "蒙自市", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "411622", - "people_count_2010": 787918, - "lat": 33.784378, - "lng": 114.530067, - "name": "西华县", - "level": "district", - "parent": "周口市" - }, - { - "adcode": "430802", - "people_count_2010": 441804, - "lat": 29.125961, - "lng": 110.484559, - "name": "永定区", - "level": "district", - "parent": "张家界市" - }, - { - "adcode": "441324", - "people_count_2010": 307180, - "lat": 23.723894, - "lng": 114.259986, - "name": "龙门县", - "level": "district", - "parent": "惠州市" - }, - { - "adcode": "310117", - "people_count_2010": 1600000, - "lat": 31.03047, - "lng": 121.223543, - "name": "松江区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "110107", - "people_count_2010": 616083, - "lat": 39.914601, - "lng": 116.195445, - "name": "石景山区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "211122", - "people_count_2010": 285116, - "lat": 41.240701, - "lng": 121.98528, - "name": "盘山县", - "level": "district", - "parent": "盘锦市" - }, - { - "adcode": "360602", - "people_count_2010": 214229, - "lat": 28.239076, - "lng": 117.034112, - "name": "月湖区", - "level": "district", - "parent": "鹰潭市" - }, - { - "adcode": "350925", - "people_count_2010": 112701, - "lat": 27.103106, - "lng": 119.338239, - "name": "周宁县", - "level": "district", - "parent": "宁德市" - }, - { - "adcode": "450225", - "people_count_2010": 402054, - "lat": 25.068812, - "lng": 109.252744, - "name": "融水苗族自治县", - "level": "district", - "parent": "柳州市" - }, - { - "adcode": "450205", - "people_count_2010": 428043, - "lat": 24.359145, - "lng": 109.406577, - "name": "柳北区", - "level": "district", - "parent": "柳州市" - }, - { - "adcode": "450224", - "people_count_2010": 285641, - "lat": 25.214703, - "lng": 109.403621, - "name": "融安县", - "level": "district", - "parent": "柳州市" - }, - { - "adcode": "532501", - "people_count_2010": 459781, - "lat": 23.360383, - "lng": 103.154752, - "name": "个旧市", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "621023", - "people_count_2010": 120875, - "lat": 36.457304, - "lng": 107.986288, - "name": "华池县", - "level": "district", - "parent": "庆阳市" - }, - { - "adcode": "652323", - "people_count_2010": 685317, - "lat": 44.189342, - "lng": 86.888613, - "name": "呼图壁县", - "level": "district", - "parent": "昌吉回族自治州" - }, - { - "adcode": "610331", - "people_count_2010": 50928, - "lat": 34.059215, - "lng": 107.316533, - "name": "太白县", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "511523", - "people_count_2010": 399829, - "lat": 28.728102, - "lng": 105.068697, - "name": "江安县", - "level": "district", - "parent": "宜宾市" - }, - { - "adcode": "411282", - "people_count_2010": 668833, - "lat": 34.521264, - "lng": 110.88577, - "name": "灵宝市", - "level": "district", - "parent": "三门峡市" - }, - { - "adcode": "441826", - "people_count_2010": 129258, - "lat": 24.719097, - "lng": 112.290808, - "name": "连南瑶族自治县", - "level": "district", - "parent": "清远市" - }, - { - "adcode": "230811", - "people_count_2010": null, - "lat": 46.80712, - "lng": 130.351588, - "name": "郊区", - "level": "district", - "parent": "佳木斯市" - }, - { - "adcode": "640323", - "people_count_2010": 146560, - "lat": 37.784222, - "lng": 107.40541, - "name": "盐池县", - "level": "district", - "parent": "吴忠市" - }, - { - "adcode": "231182", - "people_count_2010": 326391, - "lat": 48.512688, - "lng": 126.197694, - "name": "五大连池市", - "level": "district", - "parent": "黑河市" - }, - { - "adcode": "340402", - "people_count_2010": 180917, - "lat": 32.632066, - "lng": 117.052927, - "name": "大通区", - "level": "district", - "parent": "淮南市" - }, - { - "adcode": "230421", - "people_count_2010": 220131, - "lat": 47.577577, - "lng": 130.829087, - "name": "萝北县", - "level": "district", - "parent": "鹤岗市" - }, - { - "adcode": "230606", - "people_count_2010": 234557, - "lat": 46.034304, - "lng": 124.818509, - "name": "大同区", - "level": "district", - "parent": "大庆市" - }, - { - "adcode": "141081", - "people_count_2010": 240005, - "lat": 35.620302, - "lng": 111.371272, - "name": "侯马市", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "532928", - "people_count_2010": 175163, - "lat": 25.461281, - "lng": 99.533536, - "name": "永平县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "640402", - "people_count_2010": 411854, - "lat": 36.005337, - "lng": 106.28477, - "name": "原州区", - "level": "district", - "parent": "固原市" - }, - { - "adcode": "340406", - "people_count_2010": 395684, - "lat": 32.782117, - "lng": 116.816879, - "name": "潘集区", - "level": "district", - "parent": "淮南市" - }, - { - "adcode": "640122", - "people_count_2010": 222981, - "lat": 38.554563, - "lng": 106.345904, - "name": "贺兰县", - "level": "district", - "parent": "银川市" - }, - { - "adcode": "511112", - "people_count_2010": 312086, - "lat": 29.406186, - "lng": 103.816837, - "name": "五通桥区", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "331004", - "people_count_2010": 616622, - "lat": 28.581799, - "lng": 121.37292, - "name": "路桥区", - "level": "district", - "parent": "台州市" - }, - { - "adcode": "140322", - "people_count_2010": 311082, - "lat": 38.086131, - "lng": 113.41223, - "name": "盂县", - "level": "district", - "parent": "阳泉市" - }, - { - "adcode": "140222", - "people_count_2010": 206009, - "lat": 40.421336, - "lng": 114.09112, - "name": "天镇县", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "522326", - "people_count_2010": 251966, - "lat": 25.166667, - "lng": 106.091563, - "name": "望谟县", - "level": "district", - "parent": "黔西南布依族苗族自治州" - }, - { - "adcode": "632726", - "people_count_2010": 517581, - "lat": 34.12654, - "lng": 95.800674, - "name": "曲麻莱县", - "level": "district", - "parent": "玉树藏族自治州" - }, - { - "adcode": "623021", - "people_count_2010": 137001, - "lat": 34.69164, - "lng": 103.353054, - "name": "临潭县", - "level": "district", - "parent": "甘南藏族自治州" - }, - { - "adcode": "623024", - "people_count_2010": 52166, - "lat": 34.055348, - "lng": 103.221009, - "name": "迭部县", - "level": "district", - "parent": "甘南藏族自治州" - }, - { - "adcode": "150802", - "people_count_2010": 541721, - "lat": 40.757092, - "lng": 107.417018, - "name": "临河区", - "level": "district", - "parent": "巴彦淖尔市" - }, - { - "adcode": "540231", - "people_count_2010": null, - "lat": 28.36409, - "lng": 87.767723, - "name": "定结县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "654004", - "people_count_2010": null, - "lat": 44.201669, - "lng": 80.420759, - "name": "霍尔果斯市", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "340403", - "people_count_2010": 593981, - "lat": 32.644342, - "lng": 117.018318, - "name": "田家庵区", - "level": "district", - "parent": "淮南市" - }, - { - "adcode": "150703", - "people_count_2010": null, - "lat": 49.456567, - "lng": 117.716373, - "name": "扎赉诺尔区", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "340404", - "people_count_2010": 320251, - "lat": 32.598289, - "lng": 116.865354, - "name": "谢家集区", - "level": "district", - "parent": "淮南市" - }, - { - "adcode": "140623", - "people_count_2010": 112063, - "lat": 39.988812, - "lng": 112.465588, - "name": "右玉县", - "level": "district", - "parent": "朔州市" - }, - { - "adcode": "430405", - "people_count_2010": 331094, - "lat": 26.891063, - "lng": 112.626324, - "name": "珠晖区", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "420103", - "people_count_2010": 685699, - "lat": 30.578771, - "lng": 114.283109, - "name": "江汉区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "340811", - "people_count_2010": 254431, - "lat": 30.541323, - "lng": 117.070003, - "name": "宜秀区", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "130102", - "people_count_2010": 479801, - "lat": 38.047501, - "lng": 114.548151, - "name": "长安区", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "520303", - "people_count_2010": 438279, - "lat": 27.706626, - "lng": 106.937265, - "name": "汇川区", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "130105", - "people_count_2010": 228341, - "lat": 38.067142, - "lng": 114.465974, - "name": "新华区", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "330681", - "people_count_2010": 1200000, - "lat": 29.713662, - "lng": 120.244326, - "name": "诸暨市", - "level": "district", - "parent": "绍兴市" - }, - { - "adcode": "410727", - "people_count_2010": 743837, - "lat": 35.04057, - "lng": 114.423405, - "name": "封丘县", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "220822", - "people_count_2010": 353482, - "lat": 44.80915, - "lng": 123.088543, - "name": "通榆县", - "level": "district", - "parent": "白城市" - }, - { - "adcode": "654223", - "people_count_2010": 365196, - "lat": 44.329544, - "lng": 85.622508, - "name": "沙湾县", - "level": "district", - "parent": "塔城地区" - }, - { - "adcode": "220182", - "people_count_2010": 1200000, - "lat": 44.827642, - "lng": 126.550107, - "name": "榆树市", - "level": "district", - "parent": "长春市" - }, - { - "adcode": "450406", - "people_count_2010": null, - "lat": 23.40996, - "lng": 111.246035, - "name": "龙圩区", - "level": "district", - "parent": "梧州市" - }, - { - "adcode": "350628", - "people_count_2010": 498533, - "lat": 24.366158, - "lng": 117.313549, - "name": "平和县", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "210604", - "people_count_2010": 183328, - "lat": 40.158557, - "lng": 124.427709, - "name": "振安区", - "level": "district", - "parent": "丹东市" - }, - { - "adcode": "440804", - "people_count_2010": null, - "lat": 21.24441, - "lng": 110.455632, - "name": "坡头区", - "level": "district", - "parent": "湛江市" - }, - { - "adcode": "451002", - "people_count_2010": 372825, - "lat": 23.897675, - "lng": 106.615727, - "name": "右江区", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "320412", - "people_count_2010": 1600000, - "lat": 31.718566, - "lng": 119.958773, - "name": "武进区", - "level": "district", - "parent": "常州市" - }, - { - "adcode": "451324", - "people_count_2010": 124037, - "lat": 24.134941, - "lng": 110.188556, - "name": "金秀瑶族自治县", - "level": "district", - "parent": "来宾市" - }, - { - "adcode": "330603", - "people_count_2010": null, - "lat": 30.078038, - "lng": 120.476075, - "name": "柯桥区", - "level": "district", - "parent": "绍兴市" - }, - { - "adcode": "152528", - "people_count_2010": 28450, - "lat": 42.239229, - "lng": 113.843869, - "name": "镶黄旗", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "420503", - "people_count_2010": 214194, - "lat": 30.679053, - "lng": 111.307215, - "name": "伍家岗区", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "370125", - "people_count_2010": 517948, - "lat": 36.976772, - "lng": 117.176035, - "name": "济阳县", - "level": "district", - "parent": "济南市" - }, - { - "adcode": "540326", - "people_count_2010": null, - "lat": 30.053408, - "lng": 96.917893, - "name": "八宿县", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "330424", - "people_count_2010": 430940, - "lat": 30.522223, - "lng": 120.942017, - "name": "海盐县", - "level": "district", - "parent": "嘉兴市" - }, - { - "adcode": "140302", - "people_count_2010": 492262, - "lat": 37.860938, - "lng": 113.586513, - "name": "城区", - "level": "district", - "parent": "阳泉市" - }, - { - "adcode": "430381", - "people_count_2010": 788216, - "lat": 27.734918, - "lng": 112.525217, - "name": "湘乡市", - "level": "district", - "parent": "湘潭市" - }, - { - "adcode": "131024", - "people_count_2010": 343372, - "lat": 39.757212, - "lng": 117.007161, - "name": "香河县", - "level": "district", - "parent": "廊坊市" - }, - { - "adcode": "370402", - "people_count_2010": null, - "lat": 34.856651, - "lng": 117.557281, - "name": "市中区", - "level": "district", - "parent": "枣庄市" - }, - { - "adcode": "610528", - "people_count_2010": 743385, - "lat": 34.746679, - "lng": 109.187174, - "name": "富平县", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "231281", - "people_count_2010": 472826, - "lat": 46.410614, - "lng": 125.329926, - "name": "安达市", - "level": "district", - "parent": "绥化市" - }, - { - "adcode": "410581", - "people_count_2010": 789702, - "lat": 36.063403, - "lng": 113.823767, - "name": "林州市", - "level": "district", - "parent": "安阳市" - }, - { - "adcode": "440114", - "people_count_2010": 945005, - "lat": 23.39205, - "lng": 113.211184, - "name": "花都区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "130425", - "people_count_2010": 767035, - "lat": 36.283316, - "lng": 115.152586, - "name": "大名县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "310120", - "people_count_2010": 1100000, - "lat": 30.912345, - "lng": 121.458472, - "name": "奉贤区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "130429", - "people_count_2010": 943935, - "lat": 36.776413, - "lng": 114.496162, - "name": "永年县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "330624", - "people_count_2010": 380444, - "lat": 29.501205, - "lng": 120.905665, - "name": "新昌县", - "level": "district", - "parent": "绍兴市" - }, - { - "adcode": "630121", - "people_count_2010": 435937, - "lat": 36.931343, - "lng": 101.684183, - "name": "大通回族土族自治县", - "level": "district", - "parent": "西宁市" - }, - { - "adcode": "130927", - "people_count_2010": 366232, - "lat": 38.042439, - "lng": 116.709171, - "name": "南皮县", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "230405", - "people_count_2010": 74396, - "lat": 47.252911, - "lng": 130.236169, - "name": "兴安区", - "level": "district", - "parent": "鹤岗市" - }, - { - "adcode": "370104", - "people_count_2010": 476811, - "lat": 36.668205, - "lng": 116.947921, - "name": "槐荫区", - "level": "district", - "parent": "济南市" - }, - { - "adcode": "340826", - "people_count_2010": 571025, - "lat": 30.158327, - "lng": 116.120204, - "name": "宿松县", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "370102", - "people_count_2010": 754136, - "lat": 36.664169, - "lng": 117.03862, - "name": "历下区", - "level": "district", - "parent": "济南市" - }, - { - "adcode": "621202", - "people_count_2010": 555004, - "lat": 33.388155, - "lng": 104.929866, - "name": "武都区", - "level": "district", - "parent": "陇南市" - }, - { - "adcode": "522322", - "people_count_2010": 417919, - "lat": 25.431378, - "lng": 105.192778, - "name": "兴仁县", - "level": "district", - "parent": "黔西南布依族苗族自治州" - }, - { - "adcode": "620902", - "people_count_2010": 428346, - "lat": 39.743858, - "lng": 98.511155, - "name": "肃州区", - "level": "district", - "parent": "酒泉市" - }, - { - "adcode": "422801", - "people_count_2010": 749574, - "lat": 30.282406, - "lng": 109.486761, - "name": "恩施市", - "level": "district", - "parent": "恩施土家族苗族自治州" - }, - { - "adcode": "654026", - "people_count_2010": 148187, - "lat": 43.157765, - "lng": 81.126029, - "name": "昭苏县", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "370124", - "people_count_2010": 331712, - "lat": 36.286923, - "lng": 116.455054, - "name": "平阴县", - "level": "district", - "parent": "济南市" - }, - { - "adcode": "321181", - "people_count_2010": 960662, - "lat": 31.991459, - "lng": 119.581911, - "name": "丹阳市", - "level": "district", - "parent": "镇江市" - }, - { - "adcode": "331021", - "people_count_2010": 616346, - "lat": 28.12842, - "lng": 121.232337, - "name": "玉环县", - "level": "district", - "parent": "台州市" - }, - { - "adcode": "220721", - "people_count_2010": 607640, - "lat": 45.116288, - "lng": 124.826808, - "name": "前郭尔罗斯蒙古族自治县", - "level": "district", - "parent": "松原市" - }, - { - "adcode": "620923", - "people_count_2010": 36069, - "lat": 39.51224, - "lng": 94.87728, - "name": "肃北蒙古族自治县", - "level": "district", - "parent": "酒泉市" - }, - { - "adcode": "231085", - "people_count_2010": 293271, - "lat": 44.91967, - "lng": 130.527085, - "name": "穆棱市", - "level": "district", - "parent": "牡丹江市" - }, - { - "adcode": "510704", - "people_count_2010": 488604, - "lat": 31.484772, - "lng": 104.770006, - "name": "游仙区", - "level": "district", - "parent": "绵阳市" - }, - { - "adcode": "440402", - "people_count_2010": 892685, - "lat": 22.271249, - "lng": 113.55027, - "name": "香洲区", - "level": "district", - "parent": "珠海市" - }, - { - "adcode": "320305", - "people_count_2010": 430712, - "lat": 34.441642, - "lng": 117.450212, - "name": "贾汪区", - "level": "district", - "parent": "徐州市" - }, - { - "adcode": "230712", - "people_count_2010": 30979, - "lat": 48.453651, - "lng": 129.57224, - "name": "汤旺河区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "140123", - "people_count_2010": 105841, - "lat": 38.066035, - "lng": 111.793798, - "name": "娄烦县", - "level": "district", - "parent": "太原市" - }, - { - "adcode": "220211", - "people_count_2010": 296822, - "lat": 43.816594, - "lng": 126.560759, - "name": "丰满区", - "level": "district", - "parent": "吉林市" - }, - { - "adcode": "370304", - "people_count_2010": 463013, - "lat": 36.497567, - "lng": 117.85823, - "name": "博山区", - "level": "district", - "parent": "淄博市" - }, - { - "adcode": "150223", - "people_count_2010": null, - "lat": 41.702836, - "lng": 110.438452, - "name": "达尔罕茂明安联合旗", - "level": "district", - "parent": "包头市" - }, - { - "adcode": "130403", - "people_count_2010": 363778, - "lat": 36.611082, - "lng": 114.494703, - "name": "丛台区", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "310115", - "people_count_2010": 5000000, - "lat": 31.245944, - "lng": 121.567706, - "name": "浦东新区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "140525", - "people_count_2010": 484174, - "lat": 35.617221, - "lng": 112.899137, - "name": "泽州县", - "level": "district", - "parent": "晋城市" - }, - { - "adcode": "211005", - "people_count_2010": 90785, - "lat": 41.157831, - "lng": 123.431633, - "name": "弓长岭区", - "level": "district", - "parent": "辽阳市" - }, - { - "adcode": "210404", - "people_count_2010": 384514, - "lat": 41.851803, - "lng": 123.801509, - "name": "望花区", - "level": "district", - "parent": "抚顺市" - }, - { - "adcode": "810006", - "people_count_2010": null, - "lat": 22.333775, - "lng": 114.163349, - "name": "深水埗區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "370113", - "people_count_2010": 578740, - "lat": 36.561049, - "lng": 116.74588, - "name": "长清区", - "level": "district", - "parent": "济南市" - }, - { - "adcode": "130202", - "people_count_2010": 311076, - "lat": 39.615162, - "lng": 118.210821, - "name": "路南区", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "340827", - "people_count_2010": 526712, - "lat": 30.12491, - "lng": 116.690927, - "name": "望江县", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "361127", - "people_count_2010": 887616, - "lat": 28.69173, - "lng": 116.691072, - "name": "余干县", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "361129", - "people_count_2010": 359098, - "lat": 28.692589, - "lng": 117.07015, - "name": "万年县", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "360902", - "people_count_2010": 1000000, - "lat": 27.800117, - "lng": 114.387379, - "name": "袁州区", - "level": "district", - "parent": "宜春市" - }, - { - "adcode": "360703", - "people_count_2010": null, - "lat": 25.661721, - "lng": 114.756933, - "name": "南康区", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "511002", - "people_count_2010": null, - "lat": 29.585265, - "lng": 105.065467, - "name": "市中区", - "level": "district", - "parent": "内江市" - }, - { - "adcode": "320104", - "people_count_2010": 405955, - "lat": 32.033818, - "lng": 118.786088, - "name": "秦淮区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "430523", - "people_count_2010": 915600, - "lat": 26.989713, - "lng": 111.2757, - "name": "邵阳县", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "611025", - "people_count_2010": 275862, - "lat": 33.423981, - "lng": 109.151075, - "name": "镇安县", - "level": "district", - "parent": "商洛市" - }, - { - "adcode": "422825", - "people_count_2010": 310368, - "lat": 29.98867, - "lng": 109.482819, - "name": "宣恩县", - "level": "district", - "parent": "恩施土家族苗族自治州" - }, - { - "adcode": "420107", - "people_count_2010": null, - "lat": 30.634215, - "lng": 114.39707, - "name": "青山区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "441424", - "people_count_2010": 1100000, - "lat": 23.925424, - "lng": 115.775004, - "name": "五华县", - "level": "district", - "parent": "梅州市" - }, - { - "adcode": "310116", - "people_count_2010": 732438, - "lat": 30.724697, - "lng": 121.330736, - "name": "金山区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "610630", - "people_count_2010": 117203, - "lat": 36.050391, - "lng": 110.175537, - "name": "宜川县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "210422", - "people_count_2010": 254118, - "lat": 41.732456, - "lng": 125.037547, - "name": "新宾满族自治县", - "level": "district", - "parent": "抚顺市" - }, - { - "adcode": "150526", - "people_count_2010": 279371, - "lat": 44.555294, - "lng": 120.905275, - "name": "扎鲁特旗", - "level": "district", - "parent": "通辽市" - }, - { - "adcode": "451227", - "people_count_2010": 224637, - "lat": 24.139538, - "lng": 107.253126, - "name": "巴马瑶族自治县", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "451229", - "people_count_2010": 360802, - "lat": 23.739596, - "lng": 107.9945, - "name": "大化瑶族自治县", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "130582", - "people_count_2010": 498416, - "lat": 36.861903, - "lng": 114.504902, - "name": "沙河市", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "130434", - "people_count_2010": 809193, - "lat": 36.354248, - "lng": 114.93411, - "name": "魏县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "341521", - "people_count_2010": 1000000, - "lat": 32.577304, - "lng": 116.785349, - "name": "寿县", - "level": "district", - "parent": "六安市" - }, - { - "adcode": "451031", - "people_count_2010": 341401, - "lat": 24.774318, - "lng": 105.342363, - "name": "隆林各族自治县", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "532529", - "people_count_2010": 1000000, - "lat": 23.369191, - "lng": 102.42121, - "name": "红河县", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "610430", - "people_count_2010": 193377, - "lat": 34.79797, - "lng": 108.581173, - "name": "淳化县", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "210304", - "people_count_2010": 437339, - "lat": 41.150622, - "lng": 123.024806, - "name": "立山区", - "level": "district", - "parent": "鞍山市" - }, - { - "adcode": "511028", - "people_count_2010": 633210, - "lat": 29.338162, - "lng": 105.288074, - "name": "隆昌县", - "level": "district", - "parent": "内江市" - }, - { - "adcode": "510812", - "people_count_2010": 174333, - "lat": 32.642632, - "lng": 105.88917, - "name": "朝天区", - "level": "district", - "parent": "广元市" - }, - { - "adcode": "510823", - "people_count_2010": 457656, - "lat": 32.286517, - "lng": 105.527035, - "name": "剑阁县", - "level": "district", - "parent": "广元市" - }, - { - "adcode": "511603", - "people_count_2010": null, - "lat": 30.4963, - "lng": 106.893277, - "name": "前锋区", - "level": "district", - "parent": "广安市" - }, - { - "adcode": "451225", - "people_count_2010": 298261, - "lat": 24.779327, - "lng": 108.902453, - "name": "罗城仫佬族自治县", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "620621", - "people_count_2010": 241251, - "lat": 38.624621, - "lng": 103.090654, - "name": "民勤县", - "level": "district", - "parent": "武威市" - }, - { - "adcode": "532524", - "people_count_2010": 531456, - "lat": 23.618387, - "lng": 102.820493, - "name": "建水县", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "211282", - "people_count_2010": 545624, - "lat": 42.542141, - "lng": 124.045551, - "name": "开原市", - "level": "district", - "parent": "铁岭市" - }, - { - "adcode": "140223", - "people_count_2010": 182613, - "lat": 39.763051, - "lng": 114.279252, - "name": "广灵县", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "540122", - "people_count_2010": 46463, - "lat": 30.474819, - "lng": 91.103551, - "name": "当雄县", - "level": "district", - "parent": "拉萨市" - }, - { - "adcode": "511622", - "people_count_2010": 585624, - "lat": 30.344291, - "lng": 106.292473, - "name": "武胜县", - "level": "district", - "parent": "广安市" - }, - { - "adcode": "440306", - "people_count_2010": 4500000, - "lat": 22.754741, - "lng": 113.828671, - "name": "宝安区", - "level": "district", - "parent": "深圳市" - }, - { - "adcode": "540125", - "people_count_2010": null, - "lat": 29.647347, - "lng": 91.002823, - "name": "堆龙德庆县", - "level": "district", - "parent": "拉萨市" - }, - { - "adcode": "211004", - "people_count_2010": 142734, - "lat": 41.205747, - "lng": 123.200461, - "name": "宏伟区", - "level": "district", - "parent": "辽阳市" - }, - { - "adcode": "520622", - "people_count_2010": null, - "lat": 27.238024, - "lng": 108.917882, - "name": "玉屏侗族自治县", - "level": "district", - "parent": "铜仁市" - }, - { - "adcode": "320684", - "people_count_2010": 907598, - "lat": 31.893528, - "lng": 121.176609, - "name": "海门市", - "level": "district", - "parent": "南通市" - }, - { - "adcode": "520625", - "people_count_2010": null, - "lat": 27.997976, - "lng": 108.405517, - "name": "印江土家族苗族自治县", - "level": "district", - "parent": "铜仁市" - }, - { - "adcode": "530328", - "people_count_2010": 431058, - "lat": 25.600878, - "lng": 103.819262, - "name": "沾益县", - "level": "district", - "parent": "曲靖市" - }, - { - "adcode": "230706", - "people_count_2010": 44960, - "lat": 47.726228, - "lng": 128.671746, - "name": "翠峦区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "330105", - "people_count_2010": 551874, - "lat": 30.314697, - "lng": 120.150053, - "name": "拱墅区", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "530502", - "people_count_2010": 935618, - "lat": 25.112144, - "lng": 99.165825, - "name": "隆阳区", - "level": "district", - "parent": "保山市" - }, - { - "adcode": "130824", - "people_count_2010": 287986, - "lat": 40.936644, - "lng": 117.337124, - "name": "滦平县", - "level": "district", - "parent": "承德市" - }, - { - "adcode": "320681", - "people_count_2010": 3500000, - "lat": 31.810158, - "lng": 121.659724, - "name": "启东市", - "level": "district", - "parent": "南通市" - }, - { - "adcode": "441803", - "people_count_2010": null, - "lat": 23.736949, - "lng": 113.015203, - "name": "清新区", - "level": "district", - "parent": "清远市" - }, - { - "adcode": "532528", - "people_count_2010": 396777, - "lat": 23.219773, - "lng": 102.837056, - "name": "元阳县", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "542522", - "people_count_2010": 6883, - "lat": 31.478587, - "lng": 79.803191, - "name": "札达县", - "level": "district", - "parent": "阿里地区" - }, - { - "adcode": "410422", - "people_count_2010": null, - "lat": 33.621252, - "lng": 113.358298, - "name": "叶县", - "level": "district", - "parent": "平顶山市" - }, - { - "adcode": "330108", - "people_count_2010": 319027, - "lat": 30.206615, - "lng": 120.21062, - "name": "滨江区", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "411626", - "people_count_2010": 1100000, - "lat": 33.732547, - "lng": 114.870166, - "name": "淮阳县", - "level": "district", - "parent": "周口市" - }, - { - "adcode": "211081", - "people_count_2010": 496122, - "lat": 41.427836, - "lng": 123.325864, - "name": "灯塔市", - "level": "district", - "parent": "辽阳市" - }, - { - "adcode": "520328", - "people_count_2010": 377358, - "lat": 27.765839, - "lng": 107.485723, - "name": "湄潭县", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "340503", - "people_count_2010": 303855, - "lat": 31.69902, - "lng": 118.511308, - "name": "花山区", - "level": "district", - "parent": "马鞍山市" - }, - { - "adcode": "530521", - "people_count_2010": 305223, - "lat": 24.730847, - "lng": 99.183758, - "name": "施甸县", - "level": "district", - "parent": "保山市" - }, - { - "adcode": "321023", - "people_count_2010": 752425, - "lat": 33.23694, - "lng": 119.321284, - "name": "宝应县", - "level": "district", - "parent": "扬州市" - }, - { - "adcode": "522634", - "people_count_2010": 117190, - "lat": 26.381027, - "lng": 108.079613, - "name": "雷山县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "540329", - "people_count_2010": null, - "lat": 30.741947, - "lng": 95.823418, - "name": "洛隆县", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "321002", - "people_count_2010": 341043, - "lat": 32.392154, - "lng": 119.442267, - "name": "广陵区", - "level": "district", - "parent": "扬州市" - }, - { - "adcode": "530524", - "people_count_2010": 343566, - "lat": 24.823662, - "lng": 99.612344, - "name": "昌宁县", - "level": "district", - "parent": "保山市" - }, - { - "adcode": "440513", - "people_count_2010": 1600000, - "lat": 23.262336, - "lng": 116.602602, - "name": "潮阳区", - "level": "district", - "parent": "汕头市" - }, - { - "adcode": "532325", - "people_count_2010": 197676, - "lat": 25.505403, - "lng": 101.238399, - "name": "姚安县", - "level": "district", - "parent": "楚雄彝族自治州" - }, - { - "adcode": "440232", - "people_count_2010": 177471, - "lat": 24.776109, - "lng": 113.278417, - "name": "乳源瑶族自治县", - "level": "district", - "parent": "韶关市" - }, - { - "adcode": "520381", - "people_count_2010": 237052, - "lat": 28.587057, - "lng": 105.698116, - "name": "赤水市", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "220821", - "people_count_2010": 298301, - "lat": 45.846089, - "lng": 123.202246, - "name": "镇赉县", - "level": "district", - "parent": "白城市" - }, - { - "adcode": "441825", - "people_count_2010": null, - "lat": 24.567271, - "lng": 112.086555, - "name": "连山壮族瑶族自治县", - "level": "district", - "parent": "清远市" - }, - { - "adcode": "210882", - "people_count_2010": 704891, - "lat": 40.633973, - "lng": 122.505894, - "name": "大石桥市", - "level": "district", - "parent": "营口市" - }, - { - "adcode": "450422", - "people_count_2010": 835470, - "lat": 23.373963, - "lng": 110.931826, - "name": "藤县", - "level": "district", - "parent": "梧州市" - }, - { - "adcode": "510403", - "people_count_2010": null, - "lat": 26.596776, - "lng": 101.637969, - "name": "西区", - "level": "district", - "parent": "攀枝花市" - }, - { - "adcode": "441802", - "people_count_2010": 811233, - "lat": 23.688976, - "lng": 113.048698, - "name": "清城区", - "level": "district", - "parent": "清远市" - }, - { - "adcode": "441881", - "people_count_2010": 941952, - "lat": 24.18612, - "lng": 113.405404, - "name": "英德市", - "level": "district", - "parent": "清远市" - }, - { - "adcode": "440233", - "people_count_2010": 206091, - "lat": 24.055412, - "lng": 114.207034, - "name": "新丰县", - "level": "district", - "parent": "韶关市" - }, - { - "adcode": "321003", - "people_count_2010": 576909, - "lat": 32.377899, - "lng": 119.397777, - "name": "邗江区", - "level": "district", - "parent": "扬州市" - }, - { - "adcode": "131126", - "people_count_2010": 487025, - "lat": 37.350981, - "lng": 115.966747, - "name": "故城县", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "530822", - "people_count_2010": null, - "lat": 23.428165, - "lng": 101.687606, - "name": "墨江哈尼族自治县", - "level": "district", - "parent": "普洱市" - }, - { - "adcode": "620423", - "people_count_2010": 225755, - "lat": 37.193519, - "lng": 104.066394, - "name": "景泰县", - "level": "district", - "parent": "白银市" - }, - { - "adcode": "211204", - "people_count_2010": 530012, - "lat": 42.542978, - "lng": 124.14896, - "name": "清河区", - "level": "district", - "parent": "铁岭市" - }, - { - "adcode": "460322", - "people_count_2010": null, - "lat": 11.471888, - "lng": 116.749998, - "name": "南沙群岛", - "level": "district", - "parent": "三沙市" - }, - { - "adcode": "622924", - "people_count_2010": 227466, - "lat": 35.481688, - "lng": 103.576188, - "name": "广河县", - "level": "district", - "parent": "临夏回族自治州" - }, - { - "adcode": "450329", - "people_count_2010": 146824, - "lat": 26.0342, - "lng": 110.642587, - "name": "资源县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "360403", - "people_count_2010": 402758, - "lat": 29.72465, - "lng": 115.995947, - "name": "浔阳区", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "341003", - "people_count_2010": 147620, - "lat": 30.294517, - "lng": 118.136639, - "name": "黄山区", - "level": "district", - "parent": "黄山市" - }, - { - "adcode": "532925", - "people_count_2010": 1300000, - "lat": 25.342594, - "lng": 100.490669, - "name": "弥渡县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "140109", - "people_count_2010": 749255, - "lat": 37.862653, - "lng": 112.522258, - "name": "万柏林区", - "level": "district", - "parent": "太原市" - }, - { - "adcode": "540322", - "people_count_2010": null, - "lat": 30.859206, - "lng": 98.271191, - "name": "贡觉县", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "330111", - "people_count_2010": null, - "lat": 30.049871, - "lng": 119.949869, - "name": "富阳区", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "622926", - "people_count_2010": 1400000, - "lat": 35.66383, - "lng": 103.389568, - "name": "东乡族自治县", - "level": "district", - "parent": "临夏回族自治州" - }, - { - "adcode": "211421", - "people_count_2010": 586620, - "lat": 40.328407, - "lng": 120.342112, - "name": "绥中县", - "level": "district", - "parent": "葫芦岛市" - }, - { - "adcode": "220623", - "people_count_2010": 72550, - "lat": 41.419361, - "lng": 128.203384, - "name": "长白朝鲜族自治县", - "level": "district", - "parent": "白山市" - }, - { - "adcode": "511824", - "people_count_2010": 123600, - "lat": 29.234063, - "lng": 102.35962, - "name": "石棉县", - "level": "district", - "parent": "雅安市" - }, - { - "adcode": "230903", - "people_count_2010": 230293, - "lat": 45.771217, - "lng": 131.015848, - "name": "桃山区", - "level": "district", - "parent": "七台河市" - }, - { - "adcode": "211422", - "people_count_2010": 520537, - "lat": 40.812871, - "lng": 119.807776, - "name": "建昌县", - "level": "district", - "parent": "葫芦岛市" - }, - { - "adcode": "320303", - "people_count_2010": 345393, - "lat": 34.254805, - "lng": 117.194589, - "name": "云龙区", - "level": "district", - "parent": "徐州市" - }, - { - "adcode": "350302", - "people_count_2010": 413853, - "lat": 25.433737, - "lng": 119.001028, - "name": "城厢区", - "level": "district", - "parent": "莆田市" - }, - { - "adcode": "513232", - "people_count_2010": 74619, - "lat": 33.575934, - "lng": 102.963726, - "name": "若尔盖县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "350304", - "people_count_2010": 499110, - "lat": 25.430047, - "lng": 119.020047, - "name": "荔城区", - "level": "district", - "parent": "莆田市" - }, - { - "adcode": "150203", - "people_count_2010": 726838, - "lat": 40.661345, - "lng": 109.822932, - "name": "昆都仑区", - "level": "district", - "parent": "包头市" - }, - { - "adcode": "360322", - "people_count_2010": 467214, - "lat": 27.877041, - "lng": 113.800525, - "name": "上栗县", - "level": "district", - "parent": "萍乡市" - }, - { - "adcode": "360111", - "people_count_2010": 897843, - "lat": 28.689292, - "lng": 115.949044, - "name": "青山湖区", - "level": "district", - "parent": "南昌市" - }, - { - "adcode": "130581", - "people_count_2010": 469030, - "lat": 37.359668, - "lng": 115.398102, - "name": "南宫市", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "451022", - "people_count_2010": 356810, - "lat": 23.600444, - "lng": 107.12426, - "name": "田东县", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "370705", - "people_count_2010": 692643, - "lat": 36.709494, - "lng": 119.137357, - "name": "奎文区", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "411627", - "people_count_2010": 1100000, - "lat": 34.065312, - "lng": 114.853834, - "name": "太康县", - "level": "district", - "parent": "周口市" - }, - { - "adcode": "211322", - "people_count_2010": 505437, - "lat": 41.402576, - "lng": 119.642363, - "name": "建平县", - "level": "district", - "parent": "朝阳市" - }, - { - "adcode": "130130", - "people_count_2010": 502662, - "lat": 38.176376, - "lng": 114.977845, - "name": "无极县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "230422", - "people_count_2010": 174063, - "lat": 47.289892, - "lng": 131.860526, - "name": "绥滨县", - "level": "district", - "parent": "鹤岗市" - }, - { - "adcode": "130322", - "people_count_2010": 559697, - "lat": 39.709729, - "lng": 119.164541, - "name": "昌黎县", - "level": "district", - "parent": "秦皇岛市" - }, - { - "adcode": "450203", - "people_count_2010": 356296, - "lat": 24.303848, - "lng": 109.415364, - "name": "鱼峰区", - "level": "district", - "parent": "柳州市" - }, - { - "adcode": "450204", - "people_count_2010": 492043, - "lat": 24.287013, - "lng": 109.395936, - "name": "柳南区", - "level": "district", - "parent": "柳州市" - }, - { - "adcode": "450924", - "people_count_2010": 560394, - "lat": 22.74187, - "lng": 109.877768, - "name": "兴业县", - "level": "district", - "parent": "玉林市" - }, - { - "adcode": "210682", - "people_count_2010": 543933, - "lat": 40.457567, - "lng": 124.071067, - "name": "凤城市", - "level": "district", - "parent": "丹东市" - }, - { - "adcode": "540127", - "people_count_2010": 44674, - "lat": 29.834657, - "lng": 91.731158, - "name": "墨竹工卡县", - "level": "district", - "parent": "拉萨市" - }, - { - "adcode": "420804", - "people_count_2010": 271970, - "lat": 30.980798, - "lng": 112.198413, - "name": "掇刀区", - "level": "district", - "parent": "荆门市" - }, - { - "adcode": "140224", - "people_count_2010": 234004, - "lat": 39.438867, - "lng": 114.23576, - "name": "灵丘县", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "371422", - "people_count_2010": 449891, - "lat": 37.649619, - "lng": 116.79372, - "name": "宁津县", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "540235", - "people_count_2010": null, - "lat": 28.15595, - "lng": 85.981953, - "name": "聂拉木县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "532801", - "people_count_2010": 519935, - "lat": 22.002087, - "lng": 100.797947, - "name": "景洪市", - "level": "district", - "parent": "西双版纳傣族自治州" - }, - { - "adcode": "150428", - "people_count_2010": 293246, - "lat": 41.92778, - "lng": 118.708572, - "name": "喀喇沁旗", - "level": "district", - "parent": "赤峰市" - }, - { - "adcode": "371311", - "people_count_2010": 510945, - "lat": 34.997204, - "lng": 118.284795, - "name": "罗庄区", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "520326", - "people_count_2010": 321657, - "lat": 28.521567, - "lng": 107.887857, - "name": "务川仡佬族苗族自治县", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "230225", - "people_count_2010": 368734, - "lat": 47.917838, - "lng": 123.506034, - "name": "甘南县", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "540237", - "people_count_2010": null, - "lat": 28.274371, - "lng": 88.518903, - "name": "岗巴县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "630103", - "people_count_2010": null, - "lat": 36.621181, - "lng": 101.784554, - "name": "城中区", - "level": "district", - "parent": "西宁市" - }, - { - "adcode": "540324", - "people_count_2010": null, - "lat": 31.410681, - "lng": 95.597748, - "name": "丁青县", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "370683", - "people_count_2010": 883896, - "lat": 37.182725, - "lng": 119.942135, - "name": "莱州市", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "150581", - "people_count_2010": 102214, - "lat": 45.532361, - "lng": 119.657862, - "name": "霍林郭勒市", - "level": "district", - "parent": "通辽市" - }, - { - "adcode": "320115", - "people_count_2010": 1100000, - "lat": 31.953418, - "lng": 118.850621, - "name": "江宁区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "652825", - "people_count_2010": 320828, - "lat": 38.138562, - "lng": 85.532629, - "name": "且末县", - "level": "district", - "parent": "巴音郭楞蒙古自治州" - }, - { - "adcode": "430921", - "people_count_2010": 725288, - "lat": 29.372181, - "lng": 112.410399, - "name": "南县", - "level": "district", - "parent": "益阳市" - }, - { - "adcode": "130525", - "people_count_2010": 506552, - "lat": 37.350925, - "lng": 114.776348, - "name": "隆尧县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "430406", - "people_count_2010": 212914, - "lat": 26.893694, - "lng": 112.612241, - "name": "雁峰区", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "370686", - "people_count_2010": 589620, - "lat": 37.305854, - "lng": 120.834097, - "name": "栖霞市", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "440113", - "people_count_2010": 1800000, - "lat": 22.938582, - "lng": 113.364619, - "name": "番禺区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "210502", - "people_count_2010": 349130, - "lat": 41.291581, - "lng": 123.761231, - "name": "平山区", - "level": "district", - "parent": "本溪市" - }, - { - "adcode": "340222", - "people_count_2010": 257764, - "lat": 31.080896, - "lng": 118.201349, - "name": "繁昌县", - "level": "district", - "parent": "芜湖市" - }, - { - "adcode": "140426", - "people_count_2010": 158541, - "lat": 36.502971, - "lng": 113.387366, - "name": "黎城县", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "610629", - "people_count_2010": 220684, - "lat": 35.762133, - "lng": 109.435712, - "name": "洛川县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "540232", - "people_count_2010": null, - "lat": 29.768336, - "lng": 84.032826, - "name": "仲巴县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "440105", - "people_count_2010": 1600000, - "lat": 23.103131, - "lng": 113.262008, - "name": "海珠区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "140581", - "people_count_2010": 484862, - "lat": 35.791355, - "lng": 112.930691, - "name": "高平市", - "level": "district", - "parent": "晋城市" - }, - { - "adcode": "370685", - "people_count_2010": 566244, - "lat": 37.364919, - "lng": 120.403142, - "name": "招远市", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "610602", - "people_count_2010": 475234, - "lat": 36.596291, - "lng": 109.49069, - "name": "宝塔区", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "440115", - "people_count_2010": 259900, - "lat": 22.794531, - "lng": 113.53738, - "name": "南沙区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "141026", - "people_count_2010": 82012, - "lat": 36.146032, - "lng": 112.251372, - "name": "安泽县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "610114", - "people_count_2010": 278604, - "lat": 34.662141, - "lng": 109.22802, - "name": "阎良区", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "620924", - "people_count_2010": null, - "lat": 39.631642, - "lng": 94.337642, - "name": "阿克塞哈萨克族自治县", - "level": "district", - "parent": "酒泉市" - }, - { - "adcode": "320623", - "people_count_2010": null, - "lat": 32.311832, - "lng": 121.186088, - "name": "如东县", - "level": "district", - "parent": "南通市" - }, - { - "adcode": "510304", - "people_count_2010": 382245, - "lat": 29.367136, - "lng": 104.783229, - "name": "大安区", - "level": "district", - "parent": "自贡市" - }, - { - "adcode": "410205", - "people_count_2010": 130604, - "lat": 34.779727, - "lng": 114.350246, - "name": "禹王台区", - "level": "district", - "parent": "开封市" - }, - { - "adcode": "150785", - "people_count_2010": 110438, - "lat": 50.780454, - "lng": 121.532724, - "name": "根河市", - "level": "district", - "parent": "呼伦贝尔市" - }, - { - "adcode": "511827", - "people_count_2010": 56060, - "lat": 30.369026, - "lng": 102.813377, - "name": "宝兴县", - "level": "district", - "parent": "雅安市" - }, - { - "adcode": "532823", - "people_count_2010": 3700000, - "lat": 21.479449, - "lng": 101.567051, - "name": "勐腊县", - "level": "district", - "parent": "西双版纳傣族自治州" - }, - { - "adcode": "140227", - "people_count_2010": 185777, - "lat": 40.039345, - "lng": 113.611306, - "name": "大同县", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "520628", - "people_count_2010": null, - "lat": 28.165419, - "lng": 109.202627, - "name": "松桃苗族自治县", - "level": "district", - "parent": "铜仁市" - }, - { - "adcode": "450323", - "people_count_2010": 350832, - "lat": 25.408541, - "lng": 110.325712, - "name": "灵川县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "611002", - "people_count_2010": 531696, - "lat": 33.869208, - "lng": 109.937685, - "name": "商州区", - "level": "district", - "parent": "商洛市" - }, - { - "adcode": "320682", - "people_count_2010": null, - "lat": 32.391591, - "lng": 120.566324, - "name": "如皋市", - "level": "district", - "parent": "南通市" - }, - { - "adcode": "320581", - "people_count_2010": 1500000, - "lat": 31.658156, - "lng": 120.74852, - "name": "常熟市", - "level": "district", - "parent": "苏州市" - }, - { - "adcode": "360821", - "people_count_2010": 464295, - "lat": 27.040042, - "lng": 114.905117, - "name": "吉安县", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "220781", - "people_count_2010": null, - "lat": 44.986199, - "lng": 126.042758, - "name": "扶余市", - "level": "district", - "parent": "松原市" - }, - { - "adcode": "321084", - "people_count_2010": 744685, - "lat": 32.785164, - "lng": 119.443842, - "name": "高邮市", - "level": "district", - "parent": "扬州市" - }, - { - "adcode": "653001", - "people_count_2010": 240368, - "lat": 39.712898, - "lng": 76.173939, - "name": "阿图什市", - "level": "district", - "parent": "克孜勒苏柯尔克孜自治州" - }, - { - "adcode": "411381", - "people_count_2010": 1500000, - "lat": 32.681642, - "lng": 112.092716, - "name": "邓州市", - "level": "district", - "parent": "南阳市" - }, - { - "adcode": "130406", - "people_count_2010": 503911, - "lat": 36.420487, - "lng": 114.209936, - "name": "峰峰矿区", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "450312", - "people_count_2010": null, - "lat": 25.246257, - "lng": 110.205487, - "name": "临桂区", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "140108", - "people_count_2010": 415705, - "lat": 37.939893, - "lng": 112.487122, - "name": "尖草坪区", - "level": "district", - "parent": "太原市" - }, - { - "adcode": "140181", - "people_count_2010": 205143, - "lat": 37.908534, - "lng": 112.174353, - "name": "古交市", - "level": "district", - "parent": "太原市" - }, - { - "adcode": "230202", - "people_count_2010": 354987, - "lat": 47.341736, - "lng": 123.957338, - "name": "龙沙区", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "140105", - "people_count_2010": null, - "lat": 37.817974, - "lng": 112.564273, - "name": "小店区", - "level": "district", - "parent": "太原市" - }, - { - "adcode": "230203", - "people_count_2010": 292579, - "lat": 47.354494, - "lng": 123.955888, - "name": "建华区", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "530523", - "people_count_2010": 277319, - "lat": 24.591912, - "lng": 98.693567, - "name": "龙陵县", - "level": "district", - "parent": "保山市" - }, - { - "adcode": "621025", - "people_count_2010": 180909, - "lat": 35.490642, - "lng": 108.361068, - "name": "正宁县", - "level": "district", - "parent": "庆阳市" - }, - { - "adcode": "321012", - "people_count_2010": null, - "lat": 32.426564, - "lng": 119.567481, - "name": "江都区", - "level": "district", - "parent": "扬州市" - }, - { - "adcode": "810011", - "people_count_2010": null, - "lat": 22.393896, - "lng": 113.976308, - "name": "屯門區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "431021", - "people_count_2010": 696922, - "lat": 25.737447, - "lng": 112.734466, - "name": "桂阳县", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "431225", - "people_count_2010": 318686, - "lat": 26.870789, - "lng": 109.720785, - "name": "会同县", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "640424", - "people_count_2010": 101026, - "lat": 35.49344, - "lng": 106.338674, - "name": "泾源县", - "level": "district", - "parent": "固原市" - }, - { - "adcode": "530426", - "people_count_2010": null, - "lat": 24.173256, - "lng": 102.404358, - "name": "峨山彝族自治县", - "level": "district", - "parent": "玉溪市" - }, - { - "adcode": "530129", - "people_count_2010": null, - "lat": 25.559474, - "lng": 103.257588, - "name": "寻甸回族彝族自治县", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "810004", - "people_count_2010": null, - "lat": 22.245811, - "lng": 114.160023, - "name": "南區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "140429", - "people_count_2010": 182549, - "lat": 36.834315, - "lng": 112.8653, - "name": "武乡县", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "810012", - "people_count_2010": null, - "lat": 22.44132, - "lng": 114.032528, - "name": "元朗區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "810010", - "people_count_2010": null, - "lat": 22.368458, - "lng": 114.121234, - "name": "荃灣區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "130502", - "people_count_2010": null, - "lat": 37.064125, - "lng": 114.507131, - "name": "桥东区", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "810016", - "people_count_2010": null, - "lat": 22.379715, - "lng": 114.195126, - "name": "沙田區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "622927", - "people_count_2010": null, - "lat": 35.712906, - "lng": 102.877473, - "name": "积石山保安族东乡族撒拉族自治县", - "level": "district", - "parent": "临夏回族自治州" - }, - { - "adcode": "361024", - "people_count_2010": 347837, - "lat": 27.760907, - "lng": 116.059109, - "name": "崇仁县", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "360102", - "people_count_2010": 575489, - "lat": 28.682988, - "lng": 115.889675, - "name": "东湖区", - "level": "district", - "parent": "南昌市" - }, - { - "adcode": "654202", - "people_count_2010": 298907, - "lat": 44.430115, - "lng": 84.677624, - "name": "乌苏市", - "level": "district", - "parent": "塔城地区" - }, - { - "adcode": "420583", - "people_count_2010": 495995, - "lat": 30.425364, - "lng": 111.751799, - "name": "枝江市", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "130903", - "people_count_2010": 308454, - "lat": 38.307405, - "lng": 116.840063, - "name": "运河区", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "360103", - "people_count_2010": null, - "lat": 28.662901, - "lng": 115.91065, - "name": "西湖区", - "level": "district", - "parent": "南昌市" - }, - { - "adcode": "371524", - "people_count_2010": 352630, - "lat": 36.336004, - "lng": 116.248855, - "name": "东阿县", - "level": "district", - "parent": "聊城市" - }, - { - "adcode": "130635", - "people_count_2010": 505572, - "lat": 38.496429, - "lng": 115.583631, - "name": "蠡县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "511525", - "people_count_2010": 411123, - "lat": 28.435676, - "lng": 104.519187, - "name": "高县", - "level": "district", - "parent": "宜宾市" - }, - { - "adcode": "120102", - "people_count_2010": 860852, - "lat": 39.122125, - "lng": 117.226568, - "name": "河东区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "340103", - "people_count_2010": 609239, - "lat": 31.869011, - "lng": 117.283776, - "name": "庐阳区", - "level": "district", - "parent": "合肥市" - }, - { - "adcode": "451030", - "people_count_2010": 138647, - "lat": 24.492041, - "lng": 105.095025, - "name": "西林县", - "level": "district", - "parent": "百色市" - }, - { - "adcode": "350402", - "people_count_2010": 176539, - "lat": 26.269208, - "lng": 117.63687, - "name": "梅列区", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "350305", - "people_count_2010": 570741, - "lat": 25.316141, - "lng": 119.092607, - "name": "秀屿区", - "level": "district", - "parent": "莆田市" - }, - { - "adcode": "231124", - "people_count_2010": 102821, - "lat": 49.423941, - "lng": 127.327315, - "name": "孙吴县", - "level": "district", - "parent": "黑河市" - }, - { - "adcode": "350105", - "people_count_2010": 231929, - "lat": 25.991975, - "lng": 119.458725, - "name": "马尾区", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "350181", - "people_count_2010": 1200000, - "lat": 25.720402, - "lng": 119.376992, - "name": "福清市", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "440802", - "people_count_2010": null, - "lat": 21.273365, - "lng": 110.361634, - "name": "赤坎区", - "level": "district", - "parent": "湛江市" - }, - { - "adcode": "440981", - "people_count_2010": 1300000, - "lat": 21.915153, - "lng": 110.853251, - "name": "高州市", - "level": "district", - "parent": "茂名市" - }, - { - "adcode": "230822", - "people_count_2010": 468698, - "lat": 46.240118, - "lng": 130.570112, - "name": "桦南县", - "level": "district", - "parent": "佳木斯市" - }, - { - "adcode": "510107", - "people_count_2010": 1400000, - "lat": 30.630862, - "lng": 104.05167, - "name": "武侯区", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "440204", - "people_count_2010": 393521, - "lat": 24.803977, - "lng": 113.599224, - "name": "浈江区", - "level": "district", - "parent": "韶关市" - }, - { - "adcode": "420525", - "people_count_2010": 184532, - "lat": 31.059626, - "lng": 111.64331, - "name": "远安县", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "341202", - "people_count_2010": 691698, - "lat": 32.891238, - "lng": 115.813914, - "name": "颍州区", - "level": "district", - "parent": "阜阳市" - }, - { - "adcode": "231024", - "people_count_2010": 200716, - "lat": 44.063578, - "lng": 131.125296, - "name": "东宁县", - "level": "district", - "parent": "牡丹江市" - }, - { - "adcode": "231084", - "people_count_2010": 437452, - "lat": 44.346836, - "lng": 129.470019, - "name": "宁安市", - "level": "district", - "parent": "牡丹江市" - }, - { - "adcode": "341821", - "people_count_2010": 320627, - "lat": 31.127834, - "lng": 119.185024, - "name": "郎溪县", - "level": "district", - "parent": "宣城市" - }, - { - "adcode": "410102", - "people_count_2010": 905491, - "lat": 34.748286, - "lng": 113.611576, - "name": "中原区", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "130926", - "people_count_2010": 334639, - "lat": 38.427102, - "lng": 115.835856, - "name": "肃宁县", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "441402", - "people_count_2010": 380771, - "lat": 24.302593, - "lng": 116.12116, - "name": "梅江区", - "level": "district", - "parent": "梅州市" - }, - { - "adcode": "140425", - "people_count_2010": 150955, - "lat": 36.200202, - "lng": 113.438791, - "name": "平顺县", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "320611", - "people_count_2010": 266326, - "lat": 32.040299, - "lng": 120.8339, - "name": "港闸区", - "level": "district", - "parent": "南通市" - }, - { - "adcode": "230804", - "people_count_2010": 171530, - "lat": 46.812345, - "lng": 130.377684, - "name": "前进区", - "level": "district", - "parent": "佳木斯市" - }, - { - "adcode": "130928", - "people_count_2010": 282410, - "lat": 37.628182, - "lng": 116.391512, - "name": "吴桥县", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "130925", - "people_count_2010": 436812, - "lat": 38.056141, - "lng": 117.229814, - "name": "盐山县", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "220523", - "people_count_2010": 359329, - "lat": 42.683459, - "lng": 126.042821, - "name": "辉南县", - "level": "district", - "parent": "通化市" - }, - { - "adcode": "130930", - "people_count_2010": 202571, - "lat": 38.057953, - "lng": 117.105104, - "name": "孟村回族自治县", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "440983", - "people_count_2010": 913708, - "lat": 22.352681, - "lng": 110.941656, - "name": "信宜市", - "level": "district", - "parent": "茂名市" - }, - { - "adcode": "231005", - "people_count_2010": null, - "lat": 44.581032, - "lng": 129.61311, - "name": "西安区", - "level": "district", - "parent": "牡丹江市" - }, - { - "adcode": "431023", - "people_count_2010": 572655, - "lat": 26.129392, - "lng": 113.114819, - "name": "永兴县", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "440608", - "people_count_2010": 420044, - "lat": 22.893855, - "lng": 112.882123, - "name": "高明区", - "level": "district", - "parent": "佛山市" - }, - { - "adcode": "542428", - "people_count_2010": 36842, - "lat": 31.394578, - "lng": 90.011822, - "name": "班戈县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "361021", - "people_count_2010": 306236, - "lat": 27.55531, - "lng": 116.63945, - "name": "南城县", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "341524", - "people_count_2010": 514456, - "lat": 31.681624, - "lng": 115.878514, - "name": "金寨县", - "level": "district", - "parent": "六安市" - }, - { - "adcode": "310101", - "people_count_2010": 429891, - "lat": 31.222771, - "lng": 121.490317, - "name": "黄浦区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "140311", - "people_count_2010": 72301, - "lat": 37.94096, - "lng": 113.58664, - "name": "郊区", - "level": "district", - "parent": "阳泉市" - }, - { - "adcode": "513432", - "people_count_2010": 165906, - "lat": 28.305486, - "lng": 102.412342, - "name": "喜德县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "331123", - "people_count_2010": 190165, - "lat": 28.5924, - "lng": 119.27589, - "name": "遂昌县", - "level": "district", - "parent": "丽水市" - }, - { - "adcode": "530103", - "people_count_2010": 809881, - "lat": 25.070239, - "lng": 102.729044, - "name": "盘龙区", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "440881", - "people_count_2010": 1400000, - "lat": 21.611281, - "lng": 110.284961, - "name": "廉江市", - "level": "district", - "parent": "湛江市" - }, - { - "adcode": "130527", - "people_count_2010": 325332, - "lat": 37.003812, - "lng": 114.691377, - "name": "南和县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "210321", - "people_count_2010": 1300000, - "lat": 41.38686, - "lng": 122.429736, - "name": "台安县", - "level": "district", - "parent": "鞍山市" - }, - { - "adcode": "450703", - "people_count_2010": 581381, - "lat": 22.132761, - "lng": 108.44911, - "name": "钦北区", - "level": "district", - "parent": "钦州市" - }, - { - "adcode": "120116", - "people_count_2010": null, - "lat": 39.032846, - "lng": 117.654173, - "name": "滨海新区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "511802", - "people_count_2010": 355572, - "lat": 29.981831, - "lng": 103.003398, - "name": "雨城区", - "level": "district", - "parent": "雅安市" - }, - { - "adcode": "131023", - "people_count_2010": 356481, - "lat": 39.319717, - "lng": 116.498089, - "name": "永清县", - "level": "district", - "parent": "廊坊市" - }, - { - "adcode": "220524", - "people_count_2010": 363836, - "lat": 42.281484, - "lng": 125.740536, - "name": "柳河县", - "level": "district", - "parent": "通化市" - }, - { - "adcode": "350881", - "people_count_2010": 3100000, - "lat": 25.291597, - "lng": 117.42073, - "name": "漳平市", - "level": "district", - "parent": "龙岩市" - }, - { - "adcode": "350521", - "people_count_2010": 944231, - "lat": 25.028718, - "lng": 118.798954, - "name": "惠安县", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "350823", - "people_count_2010": 374047, - "lat": 25.050019, - "lng": 116.424774, - "name": "上杭县", - "level": "district", - "parent": "龙岩市" - }, - { - "adcode": "620922", - "people_count_2010": 148798, - "lat": 40.516525, - "lng": 95.780591, - "name": "瓜州县", - "level": "district", - "parent": "酒泉市" - }, - { - "adcode": "350623", - "people_count_2010": 802971, - "lat": 24.117907, - "lng": 117.614023, - "name": "漳浦县", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "350421", - "people_count_2010": 102667, - "lat": 26.357375, - "lng": 117.201845, - "name": "明溪县", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "440785", - "people_count_2010": 492814, - "lat": 22.182956, - "lng": 112.314051, - "name": "恩平市", - "level": "district", - "parent": "江门市" - }, - { - "adcode": "350803", - "people_count_2010": null, - "lat": 24.720442, - "lng": 116.732691, - "name": "永定区", - "level": "district", - "parent": "龙岩市" - }, - { - "adcode": "511803", - "people_count_2010": null, - "lat": 30.084718, - "lng": 103.112214, - "name": "名山区", - "level": "district", - "parent": "雅安市" - }, - { - "adcode": "450722", - "people_count_2010": 728619, - "lat": 22.268335, - "lng": 109.556341, - "name": "浦北县", - "level": "district", - "parent": "钦州市" - }, - { - "adcode": "360482", - "people_count_2010": null, - "lat": 29.247884, - "lng": 115.805712, - "name": "共青城市", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "341125", - "people_count_2010": 779174, - "lat": 32.527105, - "lng": 117.683713, - "name": "定远县", - "level": "district", - "parent": "滁州市" - }, - { - "adcode": "500230", - "people_count_2010": 649182, - "lat": 29.866424, - "lng": 107.73248, - "name": "丰都县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "330281", - "people_count_2010": 1000000, - "lat": 30.045404, - "lng": 121.156294, - "name": "余姚市", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "810002", - "people_count_2010": null, - "lat": 22.276345, - "lng": 114.18299, - "name": "灣仔區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "341181", - "people_count_2010": 602840, - "lat": 32.6815, - "lng": 119.011212, - "name": "天长市", - "level": "district", - "parent": "滁州市" - }, - { - "adcode": "621002", - "people_count_2010": 377528, - "lat": 35.733713, - "lng": 107.638824, - "name": "西峰区", - "level": "district", - "parent": "庆阳市" - }, - { - "adcode": "632802", - "people_count_2010": 78184, - "lat": 37.374555, - "lng": 97.370143, - "name": "德令哈市", - "level": "district", - "parent": "海西蒙古族藏族自治州" - }, - { - "adcode": "632822", - "people_count_2010": 76623, - "lat": 36.298553, - "lng": 98.089161, - "name": "都兰县", - "level": "district", - "parent": "海西蒙古族藏族自治州" - }, - { - "adcode": "511903", - "people_count_2010": null, - "lat": 31.816336, - "lng": 106.486515, - "name": "恩阳区", - "level": "district", - "parent": "巴中市" - }, - { - "adcode": "511923", - "people_count_2010": 862620, - "lat": 31.562814, - "lng": 107.101937, - "name": "平昌县", - "level": "district", - "parent": "巴中市" - }, - { - "adcode": "371424", - "people_count_2010": 511105, - "lat": 37.192044, - "lng": 116.867028, - "name": "临邑县", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "532623", - "people_count_2010": 255286, - "lat": 23.437439, - "lng": 104.675711, - "name": "西畴县", - "level": "district", - "parent": "文山壮族苗族自治州" - }, - { - "adcode": "430811", - "people_count_2010": 52724, - "lat": 29.347827, - "lng": 110.54758, - "name": "武陵源区", - "level": "district", - "parent": "张家界市" - }, - { - "adcode": "441202", - "people_count_2010": 479342, - "lat": 23.052662, - "lng": 112.472329, - "name": "端州区", - "level": "district", - "parent": "肇庆市" - }, - { - "adcode": "440784", - "people_count_2010": 494938, - "lat": 22.768104, - "lng": 112.961795, - "name": "鹤山市", - "level": "district", - "parent": "江门市" - }, - { - "adcode": "411423", - "people_count_2010": 523403, - "lat": 34.449299, - "lng": 115.320055, - "name": "宁陵县", - "level": "district", - "parent": "商丘市" - }, - { - "adcode": "210504", - "people_count_2010": 409576, - "lat": 41.302429, - "lng": 123.763288, - "name": "明山区", - "level": "district", - "parent": "本溪市" - }, - { - "adcode": "500242", - "people_count_2010": 578058, - "lat": 28.839828, - "lng": 108.767201, - "name": "酉阳土家族苗族自治县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "410221", - "people_count_2010": 956533, - "lat": 34.554585, - "lng": 114.770472, - "name": "杞县", - "level": "district", - "parent": "开封市" - }, - { - "adcode": "410222", - "people_count_2010": 567495, - "lat": 34.477302, - "lng": 114.467734, - "name": "通许县", - "level": "district", - "parent": "开封市" - }, - { - "adcode": "500233", - "people_count_2010": 751424, - "lat": 30.291537, - "lng": 108.037518, - "name": "忠县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "110101", - "people_count_2010": 573180, - "lat": 39.917544, - "lng": 116.418757, - "name": "东城区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "341802", - "people_count_2010": 772490, - "lat": 30.946003, - "lng": 118.758412, - "name": "宣州区", - "level": "district", - "parent": "宣城市" - }, - { - "adcode": "411403", - "people_count_2010": 748408, - "lat": 34.390536, - "lng": 115.653813, - "name": "睢阳区", - "level": "district", - "parent": "商丘市" - }, - { - "adcode": "632624", - "people_count_2010": 30995, - "lat": 33.753259, - "lng": 99.651715, - "name": "达日县", - "level": "district", - "parent": "果洛藏族自治州" - }, - { - "adcode": "371322", - "people_count_2010": 936166, - "lat": 34.614741, - "lng": 118.342963, - "name": "郯城县", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "510683", - "people_count_2010": 477868, - "lat": 31.343084, - "lng": 104.200162, - "name": "绵竹市", - "level": "district", - "parent": "德阳市" - }, - { - "adcode": "632821", - "people_count_2010": 38272, - "lat": 36.930389, - "lng": 98.479852, - "name": "乌兰县", - "level": "district", - "parent": "海西蒙古族藏族自治州" - }, - { - "adcode": "350926", - "people_count_2010": 88387, - "lat": 27.236163, - "lng": 119.898226, - "name": "柘荣县", - "level": "district", - "parent": "宁德市" - }, - { - "adcode": "350923", - "people_count_2010": 137724, - "lat": 26.910826, - "lng": 118.987544, - "name": "屏南县", - "level": "district", - "parent": "宁德市" - }, - { - "adcode": "341621", - "people_count_2010": 1200000, - "lat": 33.502831, - "lng": 116.211551, - "name": "涡阳县", - "level": "district", - "parent": "亳州市" - }, - { - "adcode": "410721", - "people_count_2010": 339942, - "lat": 35.190021, - "lng": 113.806186, - "name": "新乡县", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "640502", - "people_count_2010": 378606, - "lat": 37.514564, - "lng": 105.190536, - "name": "沙坡头区", - "level": "district", - "parent": "中卫市" - }, - { - "adcode": "532922", - "people_count_2010": null, - "lat": 25.669543, - "lng": 99.95797, - "name": "漾濞彝族自治县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "141126", - "people_count_2010": 111815, - "lat": 36.999426, - "lng": 110.837119, - "name": "石楼县", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "341721", - "people_count_2010": 468280, - "lat": 30.096568, - "lng": 117.021476, - "name": "东至县", - "level": "district", - "parent": "池州市" - }, - { - "adcode": "511524", - "people_count_2010": 339972, - "lat": 28.577271, - "lng": 104.921116, - "name": "长宁县", - "level": "district", - "parent": "宜宾市" - }, - { - "adcode": "632801", - "people_count_2010": 215214, - "lat": 36.401541, - "lng": 94.905777, - "name": "格尔木市", - "level": "district", - "parent": "海西蒙古族藏族自治州" - }, - { - "adcode": "540233", - "people_count_2010": null, - "lat": 27.482772, - "lng": 88.906806, - "name": "亚东县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "411424", - "people_count_2010": 778158, - "lat": 34.075277, - "lng": 115.307433, - "name": "柘城县", - "level": "district", - "parent": "商丘市" - }, - { - "adcode": "610725", - "people_count_2010": 388123, - "lat": 33.155618, - "lng": 106.680175, - "name": "勉县", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "430408", - "people_count_2010": 298686, - "lat": 26.89087, - "lng": 112.570608, - "name": "蒸湘区", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "230703", - "people_count_2010": 118593, - "lat": 47.137314, - "lng": 129.28246, - "name": "南岔区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "211011", - "people_count_2010": 137852, - "lat": 41.251682, - "lng": 123.185336, - "name": "太子河区", - "level": "district", - "parent": "辽阳市" - }, - { - "adcode": "654324", - "people_count_2010": 82507, - "lat": 48.059284, - "lng": 86.418964, - "name": "哈巴河县", - "level": "district", - "parent": "阿勒泰地区" - }, - { - "adcode": "500118", - "people_count_2010": 1000000, - "lat": 29.348748, - "lng": 105.894714, - "name": "永川区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "341702", - "people_count_2010": 595268, - "lat": 30.657378, - "lng": 117.488342, - "name": "贵池区", - "level": "district", - "parent": "池州市" - }, - { - "adcode": "141129", - "people_count_2010": 141374, - "lat": 37.342054, - "lng": 111.193319, - "name": "中阳县", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "500119", - "people_count_2010": 534329, - "lat": 29.156646, - "lng": 107.098153, - "name": "南川区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "520523", - "people_count_2010": null, - "lat": 27.459693, - "lng": 106.222103, - "name": "金沙县", - "level": "district", - "parent": "毕节市" - }, - { - "adcode": "371426", - "people_count_2010": 442948, - "lat": 37.164465, - "lng": 116.433904, - "name": "平原县", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "152223", - "people_count_2010": 392346, - "lat": 46.725136, - "lng": 122.909332, - "name": "扎赉特旗", - "level": "district", - "parent": "兴安盟" - }, - { - "adcode": "211324", - "people_count_2010": 360419, - "lat": 41.125428, - "lng": 119.744883, - "name": "喀喇沁左翼蒙古族自治县", - "level": "district", - "parent": "朝阳市" - }, - { - "adcode": "230904", - "people_count_2010": 153926, - "lat": 45.776587, - "lng": 131.071561, - "name": "茄子河区", - "level": "district", - "parent": "七台河市" - }, - { - "adcode": "820001", - "people_count_2010": null, - "lat": 22.207882, - "lng": 113.552965, - "name": "花地瑪堂區", - "level": "district", - "parent": "澳門特別行政區" - }, - { - "adcode": "654225", - "people_count_2010": 51919, - "lat": 46.202781, - "lng": 82.982157, - "name": "裕民县", - "level": "district", - "parent": "塔城地区" - }, - { - "adcode": "361125", - "people_count_2010": 184870, - "lat": 28.415103, - "lng": 117.608247, - "name": "横峰县", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "632823", - "people_count_2010": 128167, - "lat": 37.29906, - "lng": 99.02078, - "name": "天峻县", - "level": "district", - "parent": "海西蒙古族藏族自治州" - }, - { - "adcode": "331102", - "people_count_2010": 451418, - "lat": 28.451103, - "lng": 119.922293, - "name": "莲都区", - "level": "district", - "parent": "丽水市" - }, - { - "adcode": "411422", - "people_count_2010": 711136, - "lat": 34.428433, - "lng": 115.070109, - "name": "睢县", - "level": "district", - "parent": "商丘市" - }, - { - "adcode": "430682", - "people_count_2010": 498319, - "lat": 29.471594, - "lng": 113.450809, - "name": "临湘市", - "level": "district", - "parent": "岳阳市" - }, - { - "adcode": "230622", - "people_count_2010": 388828, - "lat": 45.518832, - "lng": 125.081974, - "name": "肇源县", - "level": "district", - "parent": "大庆市" - }, - { - "adcode": "500243", - "people_count_2010": 545094, - "lat": 29.293856, - "lng": 108.166551, - "name": "彭水苗族土家族自治县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "820004", - "people_count_2010": null, - "lat": 22.188119, - "lng": 113.55374, - "name": "大堂區", - "level": "district", - "parent": "澳門特別行政區" - }, - { - "adcode": "530925", - "people_count_2010": null, - "lat": 23.477476, - "lng": 99.824419, - "name": "双江拉祜族佤族布朗族傣族自治县", - "level": "district", - "parent": "临沧市" - }, - { - "adcode": "371329", - "people_count_2010": 617081, - "lat": 34.917062, - "lng": 118.648379, - "name": "临沭县", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "370681", - "people_count_2010": 688255, - "lat": 37.648446, - "lng": 120.528328, - "name": "龙口市", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "513429", - "people_count_2010": 160151, - "lat": 27.709062, - "lng": 102.808801, - "name": "布拖县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "430626", - "people_count_2010": 2300000, - "lat": 28.701523, - "lng": 113.593751, - "name": "平江县", - "level": "district", - "parent": "岳阳市" - }, - { - "adcode": "370613", - "people_count_2010": 329304, - "lat": 37.473549, - "lng": 121.448866, - "name": "莱山区", - "level": "district", - "parent": "烟台市" - }, - { - "adcode": "130682", - "people_count_2010": 1200000, - "lat": 38.517602, - "lng": 114.991389, - "name": "定州市", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "540102", - "people_count_2010": 1300000, - "lat": 29.659472, - "lng": 91.132911, - "name": "城关区", - "level": "district", - "parent": "拉萨市" - }, - { - "adcode": "640106", - "people_count_2010": 282554, - "lat": 38.477353, - "lng": 106.228486, - "name": "金凤区", - "level": "district", - "parent": "银川市" - }, - { - "adcode": "522301", - "people_count_2010": 783120, - "lat": 25.088599, - "lng": 104.897982, - "name": "兴义市", - "level": "district", - "parent": "黔西南布依族苗族自治州" - }, - { - "adcode": "330211", - "people_count_2010": 418500, - "lat": 29.952107, - "lng": 121.713162, - "name": "镇海区", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "440403", - "people_count_2010": 415882, - "lat": 22.209117, - "lng": 113.297739, - "name": "斗门区", - "level": "district", - "parent": "珠海市" - }, - { - "adcode": "451123", - "people_count_2010": 256811, - "lat": 24.81896, - "lng": 111.277228, - "name": "富川瑶族自治县", - "level": "district", - "parent": "贺州市" - }, - { - "adcode": "632323", - "people_count_2010": 589855, - "lat": 35.036842, - "lng": 101.469343, - "name": "泽库县", - "level": "district", - "parent": "黄南藏族自治州" - }, - { - "adcode": "450681", - "people_count_2010": 144709, - "lat": 21.541172, - "lng": 107.97017, - "name": "东兴市", - "level": "district", - "parent": "防城港市" - }, - { - "adcode": "610829", - "people_count_2010": 75748, - "lat": 37.451925, - "lng": 110.739315, - "name": "吴堡县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "130531", - "people_count_2010": 283851, - "lat": 37.075548, - "lng": 115.142797, - "name": "广宗县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "441423", - "people_count_2010": 478974, - "lat": 23.752771, - "lng": 116.184419, - "name": "丰顺县", - "level": "district", - "parent": "梅州市" - }, - { - "adcode": "532525", - "people_count_2010": 299114, - "lat": 23.712569, - "lng": 102.484469, - "name": "石屏县", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "330225", - "people_count_2010": 503279, - "lat": 29.470206, - "lng": 121.877091, - "name": "象山县", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "610202", - "people_count_2010": 200231, - "lat": 35.069098, - "lng": 109.075862, - "name": "王益区", - "level": "district", - "parent": "铜川市" - }, - { - "adcode": "340602", - "people_count_2010": 324398, - "lat": 33.991218, - "lng": 116.833925, - "name": "杜集区", - "level": "district", - "parent": "淮北市" - }, - { - "adcode": "510132", - "people_count_2010": 302199, - "lat": 30.414284, - "lng": 103.812449, - "name": "新津县", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "350103", - "people_count_2010": 446891, - "lat": 26.058616, - "lng": 119.310156, - "name": "台江区", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "542430", - "people_count_2010": 41855, - "lat": 31.784979, - "lng": 87.236646, - "name": "尼玛县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "632522", - "people_count_2010": 64369, - "lat": 35.254492, - "lng": 100.579465, - "name": "同德县", - "level": "district", - "parent": "海南藏族自治州" - }, - { - "adcode": "632321", - "people_count_2010": 92601, - "lat": 35.516337, - "lng": 102.017604, - "name": "同仁县", - "level": "district", - "parent": "黄南藏族自治州" - }, - { - "adcode": "632524", - "people_count_2010": 76025, - "lat": 35.58909, - "lng": 99.986963, - "name": "兴海县", - "level": "district", - "parent": "海南藏族自治州" - }, - { - "adcode": "430203", - "people_count_2010": 247518, - "lat": 27.827246, - "lng": 113.155169, - "name": "芦淞区", - "level": "district", - "parent": "株洲市" - }, - { - "adcode": "141002", - "people_count_2010": 944050, - "lat": 36.080366, - "lng": 111.522945, - "name": "尧都区", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "320802", - "people_count_2010": null, - "lat": 33.603234, - "lng": 119.019454, - "name": "清河区", - "level": "district", - "parent": "淮安市" - }, - { - "adcode": "632521", - "people_count_2010": 122966, - "lat": 36.280286, - "lng": 100.619597, - "name": "共和县", - "level": "district", - "parent": "海南藏族自治州" - }, - { - "adcode": "632322", - "people_count_2010": 55325, - "lat": 35.938205, - "lng": 102.031953, - "name": "尖扎县", - "level": "district", - "parent": "黄南藏族自治州" - }, - { - "adcode": "220582", - "people_count_2010": 232278, - "lat": 41.126276, - "lng": 126.186204, - "name": "集安市", - "level": "district", - "parent": "通化市" - }, - { - "adcode": "532504", - "people_count_2010": null, - "lat": 24.40837, - "lng": 103.436988, - "name": "弥勒市", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "511124", - "people_count_2010": 282222, - "lat": 29.651645, - "lng": 104.06885, - "name": "井研县", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "532531", - "people_count_2010": 3900000, - "lat": 22.99352, - "lng": 102.39286, - "name": "绿春县", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "820005", - "people_count_2010": null, - "lat": 22.187778, - "lng": 113.54167, - "name": "風順堂區", - "level": "district", - "parent": "澳門特別行政區" - }, - { - "adcode": "440507", - "people_count_2010": 536356, - "lat": 23.373754, - "lng": 116.732015, - "name": "龙湖区", - "level": "district", - "parent": "汕头市" - }, - { - "adcode": "211221", - "people_count_2010": 339045, - "lat": 42.223316, - "lng": 123.725669, - "name": "铁岭县", - "level": "district", - "parent": "铁岭市" - }, - { - "adcode": "520201", - "people_count_2010": 616210, - "lat": 26.584805, - "lng": 104.846244, - "name": "钟山区", - "level": "district", - "parent": "六盘水市" - }, - { - "adcode": "532527", - "people_count_2010": 400734, - "lat": 24.532368, - "lng": 103.759622, - "name": "泸西县", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "532530", - "people_count_2010": null, - "lat": 22.779982, - "lng": 103.228359, - "name": "金平苗族瑶族傣族自治县", - "level": "district", - "parent": "红河哈尼族彝族自治州" - }, - { - "adcode": "520115", - "people_count_2010": null, - "lat": 26.646358, - "lng": 106.626323, - "name": "观山湖区", - "level": "district", - "parent": "贵阳市" - }, - { - "adcode": "232701", - "people_count_2010": null, - "lat": 50.424654, - "lng": 124.126716, - "name": "加格达奇区", - "level": "district", - "parent": "大兴安岭地区" - }, - { - "adcode": "410212", - "people_count_2010": null, - "lat": 34.756476, - "lng": 114.437622, - "name": "祥符区", - "level": "district", - "parent": "开封市" - }, - { - "adcode": "220881", - "people_count_2010": 432122, - "lat": 45.339113, - "lng": 122.783779, - "name": "洮南市", - "level": "district", - "parent": "白城市" - }, - { - "adcode": "341022", - "people_count_2010": 250457, - "lat": 29.788878, - "lng": 118.188531, - "name": "休宁县", - "level": "district", - "parent": "黄山市" - }, - { - "adcode": "330824", - "people_count_2010": 245088, - "lat": 29.136503, - "lng": 118.414435, - "name": "开化县", - "level": "district", - "parent": "衢州市" - }, - { - "adcode": "211224", - "people_count_2010": 847924, - "lat": 42.784441, - "lng": 124.11017, - "name": "昌图县", - "level": "district", - "parent": "铁岭市" - }, - { - "adcode": "370829", - "people_count_2010": 818188, - "lat": 35.398098, - "lng": 116.342885, - "name": "嘉祥县", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "370831", - "people_count_2010": 536087, - "lat": 35.653216, - "lng": 117.273605, - "name": "泗水县", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "513223", - "people_count_2010": 104829, - "lat": 31.680407, - "lng": 103.850684, - "name": "茂县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "410322", - "people_count_2010": 414637, - "lat": 34.826485, - "lng": 112.443892, - "name": "孟津县", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "411202", - "people_count_2010": 325628, - "lat": 34.77812, - "lng": 111.19487, - "name": "湖滨区", - "level": "district", - "parent": "三门峡市" - }, - { - "adcode": "330822", - "people_count_2010": 241368, - "lat": 28.900039, - "lng": 118.521654, - "name": "常山县", - "level": "district", - "parent": "衢州市" - }, - { - "adcode": "130224", - "people_count_2010": 584518, - "lat": 39.506201, - "lng": 118.681552, - "name": "滦南县", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "433122", - "people_count_2010": 275370, - "lat": 28.214516, - "lng": 110.214428, - "name": "泸溪县", - "level": "district", - "parent": "湘西土家族苗族自治州" - }, - { - "adcode": "211223", - "people_count_2010": 290635, - "lat": 42.738091, - "lng": 124.72332, - "name": "西丰县", - "level": "district", - "parent": "铁岭市" - }, - { - "adcode": "330522", - "people_count_2010": 641982, - "lat": 31.00475, - "lng": 119.910122, - "name": "长兴县", - "level": "district", - "parent": "湖州市" - }, - { - "adcode": "230805", - "people_count_2010": 161740, - "lat": 46.822476, - "lng": 130.403297, - "name": "东风区", - "level": "district", - "parent": "佳木斯市" - }, - { - "adcode": "441882", - "people_count_2010": 367642, - "lat": 24.783966, - "lng": 112.379271, - "name": "连州市", - "level": "district", - "parent": "清远市" - }, - { - "adcode": "211281", - "people_count_2010": 241431, - "lat": 42.450734, - "lng": 123.545366, - "name": "调兵山市", - "level": "district", - "parent": "铁岭市" - }, - { - "adcode": "330802", - "people_count_2010": 464527, - "lat": 28.944539, - "lng": 118.873041, - "name": "柯城区", - "level": "district", - "parent": "衢州市" - }, - { - "adcode": "370883", - "people_count_2010": 1100000, - "lat": 35.405259, - "lng": 116.96673, - "name": "邹城市", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "610627", - "people_count_2010": 77188, - "lat": 36.277729, - "lng": 109.34961, - "name": "甘泉县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "532326", - "people_count_2010": 273315, - "lat": 25.722348, - "lng": 101.323602, - "name": "大姚县", - "level": "district", - "parent": "楚雄彝族自治州" - }, - { - "adcode": "330206", - "people_count_2010": 612267, - "lat": 29.90944, - "lng": 121.831303, - "name": "北仑区", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "532329", - "people_count_2010": 271963, - "lat": 25.5301, - "lng": 102.406785, - "name": "武定县", - "level": "district", - "parent": "楚雄彝族自治州" - }, - { - "adcode": "451221", - "people_count_2010": 278350, - "lat": 24.983192, - "lng": 107.546605, - "name": "南丹县", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "131081", - "people_count_2010": 622975, - "lat": 39.117331, - "lng": 116.392021, - "name": "霸州市", - "level": "district", - "parent": "廊坊市" - }, - { - "adcode": "430481", - "people_count_2010": 1200000, - "lat": 26.414162, - "lng": 112.847215, - "name": "耒阳市", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "430421", - "people_count_2010": 1100000, - "lat": 26.962388, - "lng": 112.379643, - "name": "衡阳县", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "430103", - "people_count_2010": 475221, - "lat": 28.192375, - "lng": 112.97307, - "name": "天心区", - "level": "district", - "parent": "长沙市" - }, - { - "adcode": "230307", - "people_count_2010": 30097, - "lat": 45.209607, - "lng": 130.481126, - "name": "麻山区", - "level": "district", - "parent": "鸡西市" - }, - { - "adcode": "340321", - "people_count_2010": 1000000, - "lat": 32.956934, - "lng": 117.200171, - "name": "怀远县", - "level": "district", - "parent": "蚌埠市" - }, - { - "adcode": "340323", - "people_count_2010": 541644, - "lat": 33.318679, - "lng": 117.315962, - "name": "固镇县", - "level": "district", - "parent": "蚌埠市" - }, - { - "adcode": "141125", - "people_count_2010": 320676, - "lat": 37.431664, - "lng": 110.89613, - "name": "柳林县", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "530402", - "people_count_2010": 495129, - "lat": 24.350753, - "lng": 102.543468, - "name": "红塔区", - "level": "district", - "parent": "玉溪市" - }, - { - "adcode": "370481", - "people_count_2010": 1600000, - "lat": 35.088498, - "lng": 117.162098, - "name": "滕州市", - "level": "district", - "parent": "枣庄市" - }, - { - "adcode": "410404", - "people_count_2010": 54912, - "lat": 33.901538, - "lng": 112.889885, - "name": "石龙区", - "level": "district", - "parent": "平顶山市" - }, - { - "adcode": "511024", - "people_count_2010": 626482, - "lat": 29.52686, - "lng": 104.668327, - "name": "威远县", - "level": "district", - "parent": "内江市" - }, - { - "adcode": "410503", - "people_count_2010": 245624, - "lat": 36.10978, - "lng": 114.352646, - "name": "北关区", - "level": "district", - "parent": "安阳市" - }, - { - "adcode": "430482", - "people_count_2010": 810447, - "lat": 26.406773, - "lng": 112.396821, - "name": "常宁市", - "level": "district", - "parent": "衡阳市" - }, - { - "adcode": "430681", - "people_count_2010": null, - "lat": 28.803149, - "lng": 113.079419, - "name": "汨罗市", - "level": "district", - "parent": "岳阳市" - }, - { - "adcode": "513228", - "people_count_2010": 60704, - "lat": 32.061721, - "lng": 102.990805, - "name": "黑水县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "210123", - "people_count_2010": 316819, - "lat": 42.741533, - "lng": 123.352703, - "name": "康平县", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "510903", - "people_count_2010": 656760, - "lat": 30.502647, - "lng": 105.582215, - "name": "船山区", - "level": "district", - "parent": "遂宁市" - }, - { - "adcode": "511025", - "people_count_2010": 1200000, - "lat": 29.775295, - "lng": 104.852463, - "name": "资中县", - "level": "district", - "parent": "内江市" - }, - { - "adcode": "141102", - "people_count_2010": 320142, - "lat": 37.524037, - "lng": 111.134462, - "name": "离石区", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "510725", - "people_count_2010": 302246, - "lat": 31.635225, - "lng": 105.16353, - "name": "梓潼县", - "level": "district", - "parent": "绵阳市" - }, - { - "adcode": "540124", - "people_count_2010": 136358, - "lat": 29.349895, - "lng": 90.738051, - "name": "曲水县", - "level": "district", - "parent": "拉萨市" - }, - { - "adcode": "510923", - "people_count_2010": 478964, - "lat": 30.581571, - "lng": 105.252187, - "name": "大英县", - "level": "district", - "parent": "遂宁市" - }, - { - "adcode": "510802", - "people_count_2010": null, - "lat": 32.432276, - "lng": 105.826194, - "name": "利州区", - "level": "district", - "parent": "广元市" - }, - { - "adcode": "513434", - "people_count_2010": 269896, - "lat": 28.639632, - "lng": 102.508875, - "name": "越西县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "510921", - "people_count_2010": 553239, - "lat": 30.774883, - "lng": 105.713699, - "name": "蓬溪县", - "level": "district", - "parent": "遂宁市" - }, - { - "adcode": "511123", - "people_count_2010": 434409, - "lat": 29.209782, - "lng": 103.944266, - "name": "犍为县", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "450922", - "people_count_2010": 762372, - "lat": 22.321054, - "lng": 110.264842, - "name": "陆川县", - "level": "district", - "parent": "玉林市" - }, - { - "adcode": "450221", - "people_count_2010": 562351, - "lat": 24.257512, - "lng": 109.334503, - "name": "柳江县", - "level": "district", - "parent": "柳州市" - }, - { - "adcode": "450802", - "people_count_2010": 578365, - "lat": 23.107677, - "lng": 109.59481, - "name": "港北区", - "level": "district", - "parent": "贵港市" - }, - { - "adcode": "450821", - "people_count_2010": 1100000, - "lat": 23.544546, - "lng": 110.397485, - "name": "平南县", - "level": "district", - "parent": "贵港市" - }, - { - "adcode": "540123", - "people_count_2010": 28149, - "lat": 29.431346, - "lng": 90.165545, - "name": "尼木县", - "level": "district", - "parent": "拉萨市" - }, - { - "adcode": "371312", - "people_count_2010": null, - "lat": 35.085004, - "lng": 118.398296, - "name": "河东区", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "511133", - "people_count_2010": 176530, - "lat": 28.838933, - "lng": 103.546851, - "name": "马边彝族自治县", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "320923", - "people_count_2010": 843464, - "lat": 33.78573, - "lng": 119.805338, - "name": "阜宁县", - "level": "district", - "parent": "盐城市" - }, - { - "adcode": "130431", - "people_count_2010": 274328, - "lat": 36.914908, - "lng": 114.878517, - "name": "鸡泽县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "431226", - "people_count_2010": 343309, - "lat": 27.865991, - "lng": 109.802807, - "name": "麻阳苗族自治县", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "451281", - "people_count_2010": 558611, - "lat": 24.492193, - "lng": 108.653965, - "name": "宜州市", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "511132", - "people_count_2010": 139210, - "lat": 29.230271, - "lng": 103.262148, - "name": "峨边彝族自治县", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "511423", - "people_count_2010": 300217, - "lat": 29.904867, - "lng": 103.375006, - "name": "洪雅县", - "level": "district", - "parent": "眉山市" - }, - { - "adcode": "511323", - "people_count_2010": 567373, - "lat": 31.027978, - "lng": 106.413488, - "name": "蓬安县", - "level": "district", - "parent": "南充市" - }, - { - "adcode": "451223", - "people_count_2010": 161457, - "lat": 24.544561, - "lng": 107.044592, - "name": "凤山县", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "451228", - "people_count_2010": 516629, - "lat": 23.934964, - "lng": 108.102761, - "name": "都安瑶族自治县", - "level": "district", - "parent": "河池市" - }, - { - "adcode": "511181", - "people_count_2010": 437068, - "lat": 29.597478, - "lng": 103.492488, - "name": "峨眉山市", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "511425", - "people_count_2010": 167559, - "lat": 29.831469, - "lng": 103.846131, - "name": "青神县", - "level": "district", - "parent": "眉山市" - }, - { - "adcode": "511325", - "people_count_2010": 513746, - "lat": 30.994616, - "lng": 105.893021, - "name": "西充县", - "level": "district", - "parent": "南充市" - }, - { - "adcode": "511702", - "people_count_2010": 478276, - "lat": 31.213522, - "lng": 107.501062, - "name": "通川区", - "level": "district", - "parent": "达州市" - }, - { - "adcode": "511322", - "people_count_2010": 749734, - "lat": 31.075907, - "lng": 106.564893, - "name": "营山县", - "level": "district", - "parent": "南充市" - }, - { - "adcode": "511722", - "people_count_2010": 1000000, - "lat": 31.355025, - "lng": 107.722254, - "name": "宣汉县", - "level": "district", - "parent": "达州市" - }, - { - "adcode": "511725", - "people_count_2010": 1200000, - "lat": 30.836348, - "lng": 106.970746, - "name": "渠县", - "level": "district", - "parent": "达州市" - }, - { - "adcode": "450325", - "people_count_2010": 329507, - "lat": 25.609554, - "lng": 110.670783, - "name": "兴安县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "511922", - "people_count_2010": 606992, - "lat": 32.353164, - "lng": 106.843418, - "name": "南江县", - "level": "district", - "parent": "巴中市" - }, - { - "adcode": "513323", - "people_count_2010": 59696, - "lat": 30.877083, - "lng": 101.886125, - "name": "丹巴县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "513330", - "people_count_2010": 81503, - "lat": 31.806729, - "lng": 98.57999, - "name": "德格县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "511781", - "people_count_2010": 407594, - "lat": 32.06777, - "lng": 108.037548, - "name": "万源市", - "level": "district", - "parent": "达州市" - }, - { - "adcode": "610924", - "people_count_2010": 283947, - "lat": 32.520176, - "lng": 108.537788, - "name": "紫阳县", - "level": "district", - "parent": "安康市" - }, - { - "adcode": "371482", - "people_count_2010": 490031, - "lat": 36.934485, - "lng": 116.642554, - "name": "禹城市", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "210311", - "people_count_2010": 275447, - "lat": 41.068909, - "lng": 122.949298, - "name": "千山区", - "level": "district", - "parent": "鞍山市" - }, - { - "adcode": "610632", - "people_count_2010": 129803, - "lat": 35.580165, - "lng": 109.262469, - "name": "黄陵县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "632723", - "people_count_2010": 55619, - "lat": 33.367884, - "lng": 97.110893, - "name": "称多县", - "level": "district", - "parent": "玉树藏族自治州" - }, - { - "adcode": "513425", - "people_count_2010": 430066, - "lat": 26.658702, - "lng": 102.249548, - "name": "会理县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "610902", - "people_count_2010": 870126, - "lat": 32.690817, - "lng": 109.029098, - "name": "汉滨区", - "level": "district", - "parent": "安康市" - }, - { - "adcode": "610925", - "people_count_2010": 154157, - "lat": 32.31069, - "lng": 108.900663, - "name": "岚皋县", - "level": "district", - "parent": "安康市" - }, - { - "adcode": "450305", - "people_count_2010": 297029, - "lat": 25.254339, - "lng": 110.317577, - "name": "七星区", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "430522", - "people_count_2010": 743073, - "lat": 27.311429, - "lng": 111.459762, - "name": "新邵县", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "130104", - "people_count_2010": 287900, - "lat": 38.028383, - "lng": 114.462931, - "name": "桥西区", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "140402", - "people_count_2010": null, - "lat": 36.187896, - "lng": 113.114107, - "name": "城区", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "430525", - "people_count_2010": 770473, - "lat": 27.062286, - "lng": 110.579212, - "name": "洞口县", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "513230", - "people_count_2010": 39173, - "lat": 32.264887, - "lng": 100.979136, - "name": "壤塘县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "321081", - "people_count_2010": 564021, - "lat": 32.271965, - "lng": 119.182443, - "name": "仪征市", - "level": "district", - "parent": "扬州市" - }, - { - "adcode": "610622", - "people_count_2010": 168375, - "lat": 36.882066, - "lng": 110.190314, - "name": "延川县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "513426", - "people_count_2010": 362944, - "lat": 26.630713, - "lng": 102.578985, - "name": "会东县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "513229", - "people_count_2010": 58437, - "lat": 31.899761, - "lng": 102.221187, - "name": "马尔康县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "513226", - "people_count_2010": 65976, - "lat": 31.476356, - "lng": 102.064647, - "name": "金川县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "652824", - "people_count_2010": 35580, - "lat": 39.023807, - "lng": 88.168807, - "name": "若羌县", - "level": "district", - "parent": "巴音郭楞蒙古自治州" - }, - { - "adcode": "451423", - "people_count_2010": 221768, - "lat": 22.343716, - "lng": 106.857502, - "name": "龙州县", - "level": "district", - "parent": "崇左市" - }, - { - "adcode": "430304", - "people_count_2010": 458455, - "lat": 27.828854, - "lng": 112.927707, - "name": "岳塘区", - "level": "district", - "parent": "湘潭市" - }, - { - "adcode": "513436", - "people_count_2010": 221505, - "lat": 28.327946, - "lng": 103.132007, - "name": "美姑县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "513221", - "people_count_2010": 100771, - "lat": 31.47463, - "lng": 103.580675, - "name": "汶川县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "513224", - "people_count_2010": 72309, - "lat": 32.63838, - "lng": 103.599177, - "name": "松潘县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "350403", - "people_count_2010": 198958, - "lat": 26.234191, - "lng": 117.607418, - "name": "三元区", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "450107", - "people_count_2010": 1200000, - "lat": 22.832779, - "lng": 108.306903, - "name": "西乡塘区", - "level": "district", - "parent": "南宁市" - }, - { - "adcode": "513222", - "people_count_2010": 46556, - "lat": 31.436764, - "lng": 103.165486, - "name": "理县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "513225", - "people_count_2010": 81394, - "lat": 33.262097, - "lng": 104.236344, - "name": "九寨沟县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "513333", - "people_count_2010": 58606, - "lat": 32.268777, - "lng": 100.331657, - "name": "色达县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "652829", - "people_count_2010": 54788, - "lat": 41.980166, - "lng": 86.631576, - "name": "博湖县", - "level": "district", - "parent": "巴音郭楞蒙古自治州" - }, - { - "adcode": "513233", - "people_count_2010": 43818, - "lat": 32.793902, - "lng": 102.544906, - "name": "红原县", - "level": "district", - "parent": "阿坝藏族羌族自治州" - }, - { - "adcode": "430524", - "people_count_2010": 1100000, - "lat": 27.116002, - "lng": 111.038785, - "name": "隆回县", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "430528", - "people_count_2010": 560742, - "lat": 26.438912, - "lng": 110.859115, - "name": "新宁县", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "510781", - "people_count_2010": 762140, - "lat": 31.776386, - "lng": 104.744431, - "name": "江油市", - "level": "district", - "parent": "绵阳市" - }, - { - "adcode": "513337", - "people_count_2010": 31113, - "lat": 29.037544, - "lng": 100.296689, - "name": "稻城县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "511529", - "people_count_2010": 249751, - "lat": 28.64237, - "lng": 104.162617, - "name": "屏山县", - "level": "district", - "parent": "宜宾市" - }, - { - "adcode": "341602", - "people_count_2010": 1400000, - "lat": 33.869284, - "lng": 115.781214, - "name": "谯城区", - "level": "district", - "parent": "亳州市" - }, - { - "adcode": "421024", - "people_count_2010": 331344, - "lat": 30.033919, - "lng": 112.41735, - "name": "江陵县", - "level": "district", - "parent": "荆州市" - }, - { - "adcode": "511621", - "people_count_2010": 778639, - "lat": 30.533538, - "lng": 106.444451, - "name": "岳池县", - "level": "district", - "parent": "广安市" - }, - { - "adcode": "654027", - "people_count_2010": 142718, - "lat": 43.214861, - "lng": 81.840058, - "name": "特克斯县", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "654024", - "people_count_2010": 164860, - "lat": 43.481618, - "lng": 82.227044, - "name": "巩留县", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "654003", - "people_count_2010": 166261, - "lat": 44.423445, - "lng": 84.901602, - "name": "奎屯市", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "430529", - "people_count_2010": 250633, - "lat": 26.363575, - "lng": 110.313226, - "name": "城步苗族自治县", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "654021", - "people_count_2010": 732078, - "lat": 43.977876, - "lng": 81.524671, - "name": "伊宁县", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "131181", - "people_count_2010": 362013, - "lat": 37.542788, - "lng": 115.579173, - "name": "冀州市", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "141023", - "people_count_2010": 442614, - "lat": 35.876139, - "lng": 111.442932, - "name": "襄汾县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "140212", - "people_count_2010": 108482, - "lat": 40.258269, - "lng": 113.141044, - "name": "新荣区", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "511681", - "people_count_2010": 278359, - "lat": 30.380574, - "lng": 106.777882, - "name": "华蓥市", - "level": "district", - "parent": "广安市" - }, - { - "adcode": "450502", - "people_count_2010": 348544, - "lat": 21.468443, - "lng": 109.107529, - "name": "海城区", - "level": "district", - "parent": "北海市" - }, - { - "adcode": "610526", - "people_count_2010": 743000, - "lat": 34.956034, - "lng": 109.589653, - "name": "蒲城县", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "510722", - "people_count_2010": 1000000, - "lat": 31.090909, - "lng": 105.090316, - "name": "三台县", - "level": "district", - "parent": "绵阳市" - }, - { - "adcode": "140930", - "people_count_2010": 145136, - "lat": 39.381895, - "lng": 111.146609, - "name": "河曲县", - "level": "district", - "parent": "忻州市" - }, - { - "adcode": "610625", - "people_count_2010": 140489, - "lat": 36.823031, - "lng": 108.768898, - "name": "志丹县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "140826", - "people_count_2010": 281643, - "lat": 35.49045, - "lng": 111.576182, - "name": "绛县", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "230722", - "people_count_2010": 68579, - "lat": 48.891378, - "lng": 130.397684, - "name": "嘉荫县", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "410803", - "people_count_2010": 106064, - "lat": 35.236145, - "lng": 113.175485, - "name": "中站区", - "level": "district", - "parent": "焦作市" - }, - { - "adcode": "431026", - "people_count_2010": 330260, - "lat": 25.553759, - "lng": 113.685686, - "name": "汝城县", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "420527", - "people_count_2010": 367107, - "lat": 30.823908, - "lng": 110.976785, - "name": "秭归县", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "440705", - "people_count_2010": 849155, - "lat": 22.520247, - "lng": 113.038584, - "name": "新会区", - "level": "district", - "parent": "江门市" - }, - { - "adcode": "130703", - "people_count_2010": null, - "lat": 40.824385, - "lng": 114.882127, - "name": "桥西区", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "440118", - "people_count_2010": null, - "lat": 23.290497, - "lng": 113.829579, - "name": "增城区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "130503", - "people_count_2010": null, - "lat": 37.068009, - "lng": 114.473687, - "name": "桥西区", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "340203", - "people_count_2010": 309514, - "lat": 31.313394, - "lng": 118.377476, - "name": "弋江区", - "level": "district", - "parent": "芜湖市" - }, - { - "adcode": "320102", - "people_count_2010": 651957, - "lat": 32.050678, - "lng": 118.792199, - "name": "玄武区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "320404", - "people_count_2010": 716130, - "lat": 31.78096, - "lng": 119.948388, - "name": "钟楼区", - "level": "district", - "parent": "常州市" - }, - { - "adcode": "341182", - "people_count_2010": 532732, - "lat": 32.781206, - "lng": 117.998048, - "name": "明光市", - "level": "district", - "parent": "滁州市" - }, - { - "adcode": "341103", - "people_count_2010": 251894, - "lat": 32.329841, - "lng": 118.296955, - "name": "南谯区", - "level": "district", - "parent": "滁州市" - }, - { - "adcode": "371103", - "people_count_2010": 400067, - "lat": 35.119794, - "lng": 119.315844, - "name": "岚山区", - "level": "district", - "parent": "日照市" - }, - { - "adcode": "230231", - "people_count_2010": 519766, - "lat": 47.607363, - "lng": 126.091911, - "name": "拜泉县", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "230605", - "people_count_2010": 169522, - "lat": 46.403049, - "lng": 124.889528, - "name": "红岗区", - "level": "district", - "parent": "大庆市" - }, - { - "adcode": "341102", - "people_count_2010": 310427, - "lat": 32.303797, - "lng": 118.316475, - "name": "琅琊区", - "level": "district", - "parent": "滁州市" - }, - { - "adcode": "520329", - "people_count_2010": 234739, - "lat": 27.221552, - "lng": 107.892566, - "name": "余庆县", - "level": "district", - "parent": "遵义市" - }, - { - "adcode": "230227", - "people_count_2010": 276537, - "lat": 47.797172, - "lng": 124.469106, - "name": "富裕县", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "440607", - "people_count_2010": 622645, - "lat": 23.16504, - "lng": 112.899414, - "name": "三水区", - "level": "district", - "parent": "佛山市" - }, - { - "adcode": "341122", - "people_count_2010": 432021, - "lat": 32.450231, - "lng": 118.433293, - "name": "来安县", - "level": "district", - "parent": "滁州市" - }, - { - "adcode": "341124", - "people_count_2010": 383885, - "lat": 32.09385, - "lng": 118.268576, - "name": "全椒县", - "level": "district", - "parent": "滁州市" - }, - { - "adcode": "230303", - "people_count_2010": 160180, - "lat": 45.213242, - "lng": 130.910636, - "name": "恒山区", - "level": "district", - "parent": "鸡西市" - }, - { - "adcode": "441502", - "people_count_2010": null, - "lat": 22.776227, - "lng": 115.363667, - "name": "城区", - "level": "district", - "parent": "汕尾市" - }, - { - "adcode": "341126", - "people_count_2010": 644895, - "lat": 32.867146, - "lng": 117.562461, - "name": "凤阳县", - "level": "district", - "parent": "滁州市" - }, - { - "adcode": "130404", - "people_count_2010": 192023, - "lat": 36.615484, - "lng": 114.458242, - "name": "复兴区", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "350783", - "people_count_2010": 452174, - "lat": 27.03502, - "lng": 118.321765, - "name": "建瓯市", - "level": "district", - "parent": "南平市" - }, - { - "adcode": "140624", - "people_count_2010": 326849, - "lat": 39.82079, - "lng": 113.100512, - "name": "怀仁县", - "level": "district", - "parent": "朔州市" - }, - { - "adcode": "440404", - "people_count_2010": 253963, - "lat": 22.139122, - "lng": 113.345071, - "name": "金湾区", - "level": "district", - "parent": "珠海市" - }, - { - "adcode": "500153", - "people_count_2010": null, - "lat": 29.403627, - "lng": 105.594061, - "name": "荣昌区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "150102", - "people_count_2010": 567255, - "lat": 40.826225, - "lng": 111.685964, - "name": "新城区", - "level": "district", - "parent": "呼和浩特市" - }, - { - "adcode": "522631", - "people_count_2010": 391047, - "lat": 26.230636, - "lng": 109.136504, - "name": "黎平县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "330182", - "people_count_2010": 430750, - "lat": 29.472284, - "lng": 119.279089, - "name": "建德市", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "441521", - "people_count_2010": 793408, - "lat": 22.971042, - "lng": 115.337324, - "name": "海丰县", - "level": "district", - "parent": "汕尾市" - }, - { - "adcode": "441226", - "people_count_2010": 341211, - "lat": 23.141711, - "lng": 111.78156, - "name": "德庆县", - "level": "district", - "parent": "肇庆市" - }, - { - "adcode": "610621", - "people_count_2010": 125391, - "lat": 36.578306, - "lng": 110.012961, - "name": "延长县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "540234", - "people_count_2010": null, - "lat": 28.852416, - "lng": 85.298349, - "name": "吉隆县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "350111", - "people_count_2010": 792491, - "lat": 26.078837, - "lng": 119.328597, - "name": "晋安区", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "130110", - "people_count_2010": null, - "lat": 38.093994, - "lng": 114.321023, - "name": "鹿泉区", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "140110", - "people_count_2010": 221431, - "lat": 37.715619, - "lng": 112.477849, - "name": "晋源区", - "level": "district", - "parent": "太原市" - }, - { - "adcode": "350428", - "people_count_2010": 148867, - "lat": 26.728667, - "lng": 117.473558, - "name": "将乐县", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "140107", - "people_count_2010": 643584, - "lat": 37.879291, - "lng": 112.560743, - "name": "杏花岭区", - "level": "district", - "parent": "太原市" - }, - { - "adcode": "230204", - "people_count_2010": 331951, - "lat": 47.339499, - "lng": 123.973555, - "name": "铁锋区", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "230230", - "people_count_2010": 264285, - "lat": 48.03732, - "lng": 126.249094, - "name": "克东县", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "140106", - "people_count_2010": 592007, - "lat": 37.855804, - "lng": 112.558851, - "name": "迎泽区", - "level": "district", - "parent": "太原市" - }, - { - "adcode": "350425", - "people_count_2010": 311631, - "lat": 25.690803, - "lng": 117.849355, - "name": "大田县", - "level": "district", - "parent": "三明市" - }, - { - "adcode": "370702", - "people_count_2010": 415118, - "lat": 36.710062, - "lng": 119.103784, - "name": "潍城区", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "511825", - "people_count_2010": 134152, - "lat": 30.059955, - "lng": 102.763462, - "name": "天全县", - "level": "district", - "parent": "雅安市" - }, - { - "adcode": "230223", - "people_count_2010": 480035, - "lat": 47.890098, - "lng": 125.307561, - "name": "依安县", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "230221", - "people_count_2010": 572764, - "lat": 47.336388, - "lng": 123.187225, - "name": "龙江县", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "230716", - "people_count_2010": 19496, - "lat": 47.974859, - "lng": 129.02508, - "name": "上甘岭区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "510122", - "people_count_2010": 1300000, - "lat": 30.573243, - "lng": 103.922706, - "name": "双流县", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "350122", - "people_count_2010": 561490, - "lat": 26.202109, - "lng": 119.538365, - "name": "连江县", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "340523", - "people_count_2010": null, - "lat": 31.716634, - "lng": 118.362998, - "name": "和县", - "level": "district", - "parent": "马鞍山市" - }, - { - "adcode": "340506", - "people_count_2010": null, - "lat": 31.562321, - "lng": 118.843742, - "name": "博望区", - "level": "district", - "parent": "马鞍山市" - }, - { - "adcode": "411625", - "people_count_2010": 1000000, - "lat": 33.643852, - "lng": 115.189, - "name": "郸城县", - "level": "district", - "parent": "周口市" - }, - { - "adcode": "421223", - "people_count_2010": 410623, - "lat": 29.54101, - "lng": 114.049958, - "name": "崇阳县", - "level": "district", - "parent": "咸宁市" - }, - { - "adcode": "220303", - "people_count_2010": null, - "lat": 43.16726, - "lng": 124.388464, - "name": "铁东区", - "level": "district", - "parent": "四平市" - }, - { - "adcode": "652826", - "people_count_2010": null, - "lat": 42.064349, - "lng": 86.5698, - "name": "焉耆回族自治县", - "level": "district", - "parent": "巴音郭楞蒙古自治州" - }, - { - "adcode": "411681", - "people_count_2010": 1000000, - "lat": 33.443085, - "lng": 114.899521, - "name": "项城市", - "level": "district", - "parent": "周口市" - }, - { - "adcode": "340522", - "people_count_2010": null, - "lat": 31.727758, - "lng": 118.105545, - "name": "含山县", - "level": "district", - "parent": "马鞍山市" - }, - { - "adcode": "350721", - "people_count_2010": 191588, - "lat": 26.792851, - "lng": 117.80771, - "name": "顺昌县", - "level": "district", - "parent": "南平市" - }, - { - "adcode": "141123", - "people_count_2010": 279373, - "lat": 38.464136, - "lng": 111.124816, - "name": "兴县", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "542227", - "people_count_2010": 13641, - "lat": 28.437353, - "lng": 91.432347, - "name": "措美县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "421023", - "people_count_2010": 1200000, - "lat": 29.820079, - "lng": 112.904344, - "name": "监利县", - "level": "district", - "parent": "荆州市" - }, - { - "adcode": "422828", - "people_count_2010": 3800000, - "lat": 29.887298, - "lng": 110.033699, - "name": "鹤峰县", - "level": "district", - "parent": "恩施土家族苗族自治州" - }, - { - "adcode": "230523", - "people_count_2010": 400487, - "lat": 46.328781, - "lng": 132.206415, - "name": "宝清县", - "level": "district", - "parent": "双鸭山市" - }, - { - "adcode": "361030", - "people_count_2010": 235395, - "lat": 26.838426, - "lng": 116.327291, - "name": "广昌县", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "420683", - "people_count_2010": 1000000, - "lat": 32.123083, - "lng": 112.765268, - "name": "枣阳市", - "level": "district", - "parent": "襄阳市" - }, - { - "adcode": "210505", - "people_count_2010": 82917, - "lat": 41.104093, - "lng": 123.748381, - "name": "南芬区", - "level": "district", - "parent": "本溪市" - }, - { - "adcode": "450481", - "people_count_2010": 772113, - "lat": 22.918406, - "lng": 110.998114, - "name": "岑溪市", - "level": "district", - "parent": "梧州市" - }, - { - "adcode": "220204", - "people_count_2010": 491989, - "lat": 43.843804, - "lng": 126.55239, - "name": "船营区", - "level": "district", - "parent": "吉林市" - }, - { - "adcode": "320830", - "people_count_2010": 658759, - "lat": 33.00439, - "lng": 118.493823, - "name": "盱眙县", - "level": "district", - "parent": "淮安市" - }, - { - "adcode": "140824", - "people_count_2010": 347425, - "lat": 35.600412, - "lng": 110.978996, - "name": "稷山县", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "421221", - "people_count_2010": 319196, - "lat": 29.973363, - "lng": 113.921547, - "name": "嘉鱼县", - "level": "district", - "parent": "咸宁市" - }, - { - "adcode": "421222", - "people_count_2010": 380758, - "lat": 29.246076, - "lng": 113.814131, - "name": "通城县", - "level": "district", - "parent": "咸宁市" - }, - { - "adcode": "522623", - "people_count_2010": 130464, - "lat": 27.034657, - "lng": 108.12678, - "name": "施秉县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "230102", - "people_count_2010": 923762, - "lat": 45.762035, - "lng": 126.612532, - "name": "道里区", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "341503", - "people_count_2010": 854645, - "lat": 31.750692, - "lng": 116.494543, - "name": "裕安区", - "level": "district", - "parent": "六安市" - }, - { - "adcode": "231181", - "people_count_2010": 436444, - "lat": 48.245437, - "lng": 126.508737, - "name": "北安市", - "level": "district", - "parent": "黑河市" - }, - { - "adcode": "320803", - "people_count_2010": 984983, - "lat": 33.507499, - "lng": 119.14634, - "name": "淮安区", - "level": "district", - "parent": "淮安市" - }, - { - "adcode": "431230", - "people_count_2010": 206651, - "lat": 26.158349, - "lng": 109.783359, - "name": "通道侗族自治县", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "420822", - "people_count_2010": 581443, - "lat": 30.70359, - "lng": 112.595218, - "name": "沙洋县", - "level": "district", - "parent": "荆门市" - }, - { - "adcode": "441781", - "people_count_2010": 849504, - "lat": 22.169598, - "lng": 111.7905, - "name": "阳春市", - "level": "district", - "parent": "阳江市" - }, - { - "adcode": "431223", - "people_count_2010": 453565, - "lat": 28.005474, - "lng": 110.196953, - "name": "辰溪县", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "421087", - "people_count_2010": 765911, - "lat": 30.176037, - "lng": 111.77818, - "name": "松滋市", - "level": "district", - "parent": "荆州市" - }, - { - "adcode": "623027", - "people_count_2010": 86670, - "lat": 35.200853, - "lng": 102.520743, - "name": "夏河县", - "level": "district", - "parent": "甘南藏族自治州" - }, - { - "adcode": "431126", - "people_count_2010": 702562, - "lat": 25.584112, - "lng": 111.944529, - "name": "宁远县", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "431127", - "people_count_2010": 328385, - "lat": 25.375255, - "lng": 112.194195, - "name": "蓝山县", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "431128", - "people_count_2010": 1200000, - "lat": 25.906927, - "lng": 112.220341, - "name": "新田县", - "level": "district", - "parent": "永州市" - }, - { - "adcode": "440904", - "people_count_2010": null, - "lat": 21.507219, - "lng": 111.007264, - "name": "电白区", - "level": "district", - "parent": "茂名市" - }, - { - "adcode": "440103", - "people_count_2010": 898200, - "lat": 23.124943, - "lng": 113.243038, - "name": "荔湾区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "532929", - "people_count_2010": 199880, - "lat": 25.884955, - "lng": 99.369402, - "name": "云龙县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "340202", - "people_count_2010": 533330, - "lat": 31.32559, - "lng": 118.376343, - "name": "镜湖区", - "level": "district", - "parent": "芜湖市" - }, - { - "adcode": "610125", - "people_count_2010": 556377, - "lat": 34.108668, - "lng": 108.607385, - "name": "户县", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "620321", - "people_count_2010": 235489, - "lat": 38.247354, - "lng": 101.971957, - "name": "永昌县", - "level": "district", - "parent": "金昌市" - }, - { - "adcode": "370322", - "people_count_2010": 347867, - "lat": 37.169581, - "lng": 117.829839, - "name": "高青县", - "level": "district", - "parent": "淄博市" - }, - { - "adcode": "610721", - "people_count_2010": 471634, - "lat": 33.003341, - "lng": 106.942393, - "name": "南郑县", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "320722", - "people_count_2010": 952668, - "lat": 34.522859, - "lng": 118.766489, - "name": "东海县", - "level": "district", - "parent": "连云港市" - }, - { - "adcode": "371726", - "people_count_2010": 721898, - "lat": 35.560257, - "lng": 115.51434, - "name": "鄄城县", - "level": "district", - "parent": "菏泽市" - }, - { - "adcode": "611021", - "people_count_2010": 441613, - "lat": 34.088502, - "lng": 110.145716, - "name": "洛南县", - "level": "district", - "parent": "商洛市" - }, - { - "adcode": "410823", - "people_count_2010": 713945, - "lat": 35.09885, - "lng": 113.408334, - "name": "武陟县", - "level": "district", - "parent": "焦作市" - }, - { - "adcode": "653126", - "people_count_2010": 454328, - "lat": 37.884679, - "lng": 77.420353, - "name": "叶城县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "410726", - "people_count_2010": 469280, - "lat": 35.149515, - "lng": 114.200982, - "name": "延津县", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "640104", - "people_count_2010": 678306, - "lat": 38.46747, - "lng": 106.278393, - "name": "兴庆区", - "level": "district", - "parent": "银川市" - }, - { - "adcode": "520623", - "people_count_2010": null, - "lat": 27.519386, - "lng": 108.229854, - "name": "石阡县", - "level": "district", - "parent": "铜仁市" - }, - { - "adcode": "430621", - "people_count_2010": 716829, - "lat": 29.144843, - "lng": 113.116073, - "name": "岳阳县", - "level": "district", - "parent": "岳阳市" - }, - { - "adcode": "230715", - "people_count_2010": 21845, - "lat": 48.238368, - "lng": 129.388796, - "name": "红星区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "331023", - "people_count_2010": 382812, - "lat": 29.141126, - "lng": 121.031227, - "name": "天台县", - "level": "district", - "parent": "台州市" - }, - { - "adcode": "520621", - "people_count_2010": null, - "lat": 27.691904, - "lng": 108.848427, - "name": "江口县", - "level": "district", - "parent": "铜仁市" - }, - { - "adcode": "410724", - "people_count_2010": 394384, - "lat": 35.261685, - "lng": 113.657249, - "name": "获嘉县", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "460105", - "people_count_2010": 349541, - "lat": 20.008145, - "lng": 110.282393, - "name": "秀英区", - "level": "district", - "parent": "海口市" - }, - { - "adcode": "310114", - "people_count_2010": 1500000, - "lat": 31.383524, - "lng": 121.250333, - "name": "嘉定区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "330109", - "people_count_2010": 1500000, - "lat": 30.162932, - "lng": 120.27069, - "name": "萧山区", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "533323", - "people_count_2010": 1000000, - "lat": 26.902738, - "lng": 98.867413, - "name": "福贡县", - "level": "district", - "parent": "怒江傈僳族自治州" - }, - { - "adcode": "410825", - "people_count_2010": 421796, - "lat": 34.941233, - "lng": 113.079118, - "name": "温县", - "level": "district", - "parent": "焦作市" - }, - { - "adcode": "410103", - "people_count_2010": 712646, - "lat": 34.730936, - "lng": 113.645422, - "name": "二七区", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "210727", - "people_count_2010": 396602, - "lat": 41.537224, - "lng": 121.242831, - "name": "义县", - "level": "district", - "parent": "锦州市" - }, - { - "adcode": "411104", - "people_count_2010": 477340, - "lat": 33.567555, - "lng": 114.051686, - "name": "召陵区", - "level": "district", - "parent": "漯河市" - }, - { - "adcode": "542224", - "people_count_2010": 17261, - "lat": 29.259774, - "lng": 92.015732, - "name": "桑日县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "320281", - "people_count_2010": 1600000, - "lat": 31.910984, - "lng": 120.275891, - "name": "江阴市", - "level": "district", - "parent": "无锡市" - }, - { - "adcode": "542221", - "people_count_2010": 130561, - "lat": 29.236106, - "lng": 91.76525, - "name": "乃东县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "140522", - "people_count_2010": 388789, - "lat": 35.482177, - "lng": 112.422014, - "name": "阳城县", - "level": "district", - "parent": "晋城市" - }, - { - "adcode": "230104", - "people_count_2010": 906421, - "lat": 45.78454, - "lng": 126.648838, - "name": "道外区", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "542223", - "people_count_2010": 45708, - "lat": 29.289078, - "lng": 90.985271, - "name": "贡嘎县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "540425", - "people_count_2010": null, - "lat": 28.660244, - "lng": 97.465002, - "name": "察隅县", - "level": "district", - "parent": "林芝市" - }, - { - "adcode": "410926", - "people_count_2010": 469874, - "lat": 35.851977, - "lng": 115.504212, - "name": "范县", - "level": "district", - "parent": "濮阳市" - }, - { - "adcode": "542226", - "people_count_2010": 14280, - "lat": 29.063656, - "lng": 92.201066, - "name": "曲松县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "330303", - "people_count_2010": 749303, - "lat": 27.970254, - "lng": 120.763469, - "name": "龙湾区", - "level": "district", - "parent": "温州市" - }, - { - "adcode": "360723", - "people_count_2010": 289378, - "lat": 25.395937, - "lng": 114.362243, - "name": "大余县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "542229", - "people_count_2010": 23434, - "lat": 29.140921, - "lng": 92.591043, - "name": "加查县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "410883", - "people_count_2010": 367113, - "lat": 34.90963, - "lng": 112.78708, - "name": "孟州市", - "level": "district", - "parent": "焦作市" - }, - { - "adcode": "220202", - "people_count_2010": 658960, - "lat": 43.851118, - "lng": 126.570766, - "name": "昌邑区", - "level": "district", - "parent": "吉林市" - }, - { - "adcode": "330204", - "people_count_2010": 366648, - "lat": 29.866542, - "lng": 121.572991, - "name": "江东区", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "330203", - "people_count_2010": 373742, - "lat": 29.874452, - "lng": 121.539698, - "name": "海曙区", - "level": "district", - "parent": "宁波市" - }, - { - "adcode": "230826", - "people_count_2010": 202827, - "lat": 47.023039, - "lng": 130.723713, - "name": "桦川县", - "level": "district", - "parent": "佳木斯市" - }, - { - "adcode": "542222", - "people_count_2010": null, - "lat": 29.246476, - "lng": 91.338, - "name": "扎囊县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "433126", - "people_count_2010": 127297, - "lat": 28.616973, - "lng": 109.949592, - "name": "古丈县", - "level": "district", - "parent": "湘西土家族苗族自治州" - }, - { - "adcode": "411102", - "people_count_2010": 323954, - "lat": 33.565441, - "lng": 114.017948, - "name": "源汇区", - "level": "district", - "parent": "漯河市" - }, - { - "adcode": "340603", - "people_count_2010": 467358, - "lat": 33.970916, - "lng": 116.790775, - "name": "相山区", - "level": "district", - "parent": "淮北市" - }, - { - "adcode": "440803", - "people_count_2010": null, - "lat": 21.194229, - "lng": 110.406382, - "name": "霞山区", - "level": "district", - "parent": "湛江市" - }, - { - "adcode": "430111", - "people_count_2010": 724048, - "lat": 28.109937, - "lng": 113.016337, - "name": "雨花区", - "level": "district", - "parent": "长沙市" - }, - { - "adcode": "140721", - "people_count_2010": 113967, - "lat": 37.069019, - "lng": 112.973521, - "name": "榆社县", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "510727", - "people_count_2010": 170959, - "lat": 32.407588, - "lng": 104.530555, - "name": "平武县", - "level": "district", - "parent": "绵阳市" - }, - { - "adcode": "654025", - "people_count_2010": 282718, - "lat": 43.434249, - "lng": 83.258493, - "name": "新源县", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "430105", - "people_count_2010": 567166, - "lat": 28.201336, - "lng": 112.985525, - "name": "开福区", - "level": "district", - "parent": "长沙市" - }, - { - "adcode": "340604", - "people_count_2010": 321565, - "lat": 33.889529, - "lng": 116.809465, - "name": "烈山区", - "level": "district", - "parent": "淮北市" - }, - { - "adcode": "430702", - "people_count_2010": 620580, - "lat": 29.040477, - "lng": 111.690718, - "name": "武陵区", - "level": "district", - "parent": "常德市" - }, - { - "adcode": "140423", - "people_count_2010": 270216, - "lat": 36.532854, - "lng": 113.050094, - "name": "襄垣县", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "431228", - "people_count_2010": 829393, - "lat": 27.437996, - "lng": 109.687777, - "name": "芷江侗族自治县", - "level": "district", - "parent": "怀化市" - }, - { - "adcode": "511424", - "people_count_2010": 141953, - "lat": 30.012751, - "lng": 103.518333, - "name": "丹棱县", - "level": "district", - "parent": "眉山市" - }, - { - "adcode": "511602", - "people_count_2010": 858159, - "lat": 30.456462, - "lng": 106.632907, - "name": "广安区", - "level": "district", - "parent": "广安市" - }, - { - "adcode": "511623", - "people_count_2010": 704695, - "lat": 30.334323, - "lng": 106.934968, - "name": "邻水县", - "level": "district", - "parent": "广安市" - }, - { - "adcode": "511724", - "people_count_2010": 876884, - "lat": 30.736289, - "lng": 107.20742, - "name": "大竹县", - "level": "district", - "parent": "达州市" - }, - { - "adcode": "520123", - "people_count_2010": 248926, - "lat": 26.840672, - "lng": 106.599218, - "name": "修文县", - "level": "district", - "parent": "贵阳市" - }, - { - "adcode": "371727", - "people_count_2010": 565793, - "lat": 35.072701, - "lng": 115.569601, - "name": "定陶县", - "level": "district", - "parent": "菏泽市" - }, - { - "adcode": "410425", - "people_count_2010": null, - "lat": 33.971993, - "lng": 113.220451, - "name": "郏县", - "level": "district", - "parent": "平顶山市" - }, - { - "adcode": "371602", - "people_count_2010": 682717, - "lat": 37.384842, - "lng": 118.020149, - "name": "滨城区", - "level": "district", - "parent": "滨州市" - }, - { - "adcode": "511822", - "people_count_2010": 147955, - "lat": 29.795529, - "lng": 102.844674, - "name": "荥经县", - "level": "district", - "parent": "雅安市" - }, - { - "adcode": "511304", - "people_count_2010": 607635, - "lat": 30.762976, - "lng": 106.067027, - "name": "嘉陵区", - "level": "district", - "parent": "南充市" - }, - { - "adcode": "511403", - "people_count_2010": null, - "lat": 30.192298, - "lng": 103.8701, - "name": "彭山区", - "level": "district", - "parent": "眉山市" - }, - { - "adcode": "430382", - "people_count_2010": 86036, - "lat": 27.922682, - "lng": 112.52848, - "name": "韶山市", - "level": "district", - "parent": "湘潭市" - }, - { - "adcode": "420703", - "people_count_2010": 237333, - "lat": 30.534468, - "lng": 114.74148, - "name": "华容区", - "level": "district", - "parent": "鄂州市" - }, - { - "adcode": "420704", - "people_count_2010": 668727, - "lat": 30.39669, - "lng": 114.890012, - "name": "鄂城区", - "level": "district", - "parent": "鄂州市" - }, - { - "adcode": "410305", - "people_count_2010": 619221, - "lat": 34.654251, - "lng": 112.399243, - "name": "涧西区", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "320703", - "people_count_2010": 232097, - "lat": 34.739529, - "lng": 119.366487, - "name": "连云区", - "level": "district", - "parent": "连云港市" - }, - { - "adcode": "410902", - "people_count_2010": 655674, - "lat": 35.760473, - "lng": 115.03184, - "name": "华龙区", - "level": "district", - "parent": "濮阳市" - }, - { - "adcode": "120105", - "people_count_2010": 788451, - "lat": 39.156632, - "lng": 117.201569, - "name": "河北区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "430302", - "people_count_2010": 501848, - "lat": 27.86077, - "lng": 112.907427, - "name": "雨湖区", - "level": "district", - "parent": "湘潭市" - }, - { - "adcode": "620105", - "people_count_2010": 288510, - "lat": 36.10329, - "lng": 103.724038, - "name": "安宁区", - "level": "district", - "parent": "兰州市" - }, - { - "adcode": "410927", - "people_count_2010": 332124, - "lat": 35.996474, - "lng": 115.855681, - "name": "台前县", - "level": "district", - "parent": "濮阳市" - }, - { - "adcode": "210902", - "people_count_2010": 231046, - "lat": 42.011162, - "lng": 121.657639, - "name": "海州区", - "level": "district", - "parent": "阜新市" - }, - { - "adcode": "371521", - "people_count_2010": 770725, - "lat": 36.113708, - "lng": 115.784287, - "name": "阳谷县", - "level": "district", - "parent": "聊城市" - }, - { - "adcode": "152501", - "people_count_2010": 74179, - "lat": 43.652895, - "lng": 111.97981, - "name": "二连浩特市", - "level": "district", - "parent": "锡林郭勒盟" - }, - { - "adcode": "411103", - "people_count_2010": 493680, - "lat": 33.588897, - "lng": 114.016813, - "name": "郾城区", - "level": "district", - "parent": "漯河市" - }, - { - "adcode": "320204", - "people_count_2010": 336894, - "lat": 31.586575, - "lng": 120.295159, - "name": "北塘区", - "level": "district", - "parent": "无锡市" - }, - { - "adcode": "320203", - "people_count_2010": 378491, - "lat": 31.563759, - "lng": 120.308448, - "name": "南长区", - "level": "district", - "parent": "无锡市" - }, - { - "adcode": "411281", - "people_count_2010": 144779, - "lat": 34.746868, - "lng": 111.869417, - "name": "义马市", - "level": "district", - "parent": "三门峡市" - }, - { - "adcode": "210804", - "people_count_2010": 431087, - "lat": 40.263646, - "lng": 122.127242, - "name": "鲅鱼圈区", - "level": "district", - "parent": "营口市" - }, - { - "adcode": "410203", - "people_count_2010": null, - "lat": 34.800459, - "lng": 114.364875, - "name": "顺河回族区", - "level": "district", - "parent": "开封市" - }, - { - "adcode": "140723", - "people_count_2010": 144178, - "lat": 37.327027, - "lng": 113.572919, - "name": "和顺县", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "211403", - "people_count_2010": 244053, - "lat": 40.709991, - "lng": 120.838569, - "name": "龙港区", - "level": "district", - "parent": "葫芦岛市" - }, - { - "adcode": "140722", - "people_count_2010": 161314, - "lat": 37.079672, - "lng": 113.377834, - "name": "左权县", - "level": "district", - "parent": "晋中市" - }, - { - "adcode": "610112", - "people_count_2010": 806811, - "lat": 34.30823, - "lng": 108.946022, - "name": "未央区", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "140225", - "people_count_2010": 343486, - "lat": 39.699099, - "lng": 113.698091, - "name": "浑源县", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "511111", - "people_count_2010": 187180, - "lat": 29.416536, - "lng": 103.549961, - "name": "沙湾区", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "654028", - "people_count_2010": 157743, - "lat": 43.789737, - "lng": 82.504119, - "name": "尼勒克县", - "level": "district", - "parent": "伊犁哈萨克自治州" - }, - { - "adcode": "511113", - "people_count_2010": 49157, - "lat": 29.24602, - "lng": 103.077831, - "name": "金口河区", - "level": "district", - "parent": "乐山市" - }, - { - "adcode": "630105", - "people_count_2010": 299002, - "lat": 36.648448, - "lng": 101.761297, - "name": "城北区", - "level": "district", - "parent": "西宁市" - }, - { - "adcode": "810009", - "people_count_2010": null, - "lat": 22.320679, - "lng": 114.214083, - "name": "觀塘區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "130203", - "people_count_2010": 743504, - "lat": 39.628538, - "lng": 118.174736, - "name": "路北区", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "431322", - "people_count_2010": 1100000, - "lat": 27.737456, - "lng": 111.306747, - "name": "新化县", - "level": "district", - "parent": "娄底市" - }, - { - "adcode": "520102", - "people_count_2010": 829326, - "lat": 26.573743, - "lng": 106.715963, - "name": "南明区", - "level": "district", - "parent": "贵阳市" - }, - { - "adcode": "520121", - "people_count_2010": 358248, - "lat": 27.056793, - "lng": 106.969438, - "name": "开阳县", - "level": "district", - "parent": "贵阳市" - }, - { - "adcode": "222405", - "people_count_2010": 177234, - "lat": 42.771029, - "lng": 129.425747, - "name": "龙井市", - "level": "district", - "parent": "延边朝鲜族自治州" - }, - { - "adcode": "520103", - "people_count_2010": 956906, - "lat": 26.58301, - "lng": 106.713397, - "name": "云岩区", - "level": "district", - "parent": "贵阳市" - }, - { - "adcode": "520524", - "people_count_2010": null, - "lat": 26.668497, - "lng": 105.768997, - "name": "织金县", - "level": "district", - "parent": "毕节市" - }, - { - "adcode": "520122", - "people_count_2010": 212897, - "lat": 27.092665, - "lng": 106.737693, - "name": "息烽县", - "level": "district", - "parent": "贵阳市" - }, - { - "adcode": "430502", - "people_count_2010": 307980, - "lat": 27.240001, - "lng": 111.479756, - "name": "双清区", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "450321", - "people_count_2010": 272223, - "lat": 24.77534, - "lng": 110.494699, - "name": "阳朔县", - "level": "district", - "parent": "桂林市" - }, - { - "adcode": "451322", - "people_count_2010": 285202, - "lat": 23.959824, - "lng": 109.684555, - "name": "象州县", - "level": "district", - "parent": "来宾市" - }, - { - "adcode": "420104", - "people_count_2010": 829665, - "lat": 30.57061, - "lng": 114.264568, - "name": "硚口区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "820008", - "people_count_2010": null, - "lat": 22.124049, - "lng": 113.559954, - "name": "聖方濟各堂區", - "level": "district", - "parent": "澳門特別行政區" - }, - { - "adcode": "410603", - "people_count_2010": 230968, - "lat": 35.896058, - "lng": 114.184202, - "name": "山城区", - "level": "district", - "parent": "鹤壁市" - }, - { - "adcode": "130427", - "people_count_2010": 677884, - "lat": 36.367673, - "lng": 114.38208, - "name": "磁县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "340102", - "people_count_2010": 861022, - "lat": 31.86961, - "lng": 117.315358, - "name": "瑶海区", - "level": "district", - "parent": "合肥市" - }, - { - "adcode": "340111", - "people_count_2010": 817686, - "lat": 31.82956, - "lng": 117.285751, - "name": "包河区", - "level": "district", - "parent": "合肥市" - }, - { - "adcode": "440704", - "people_count_2010": 254313, - "lat": 22.572211, - "lng": 113.120601, - "name": "江海区", - "level": "district", - "parent": "江门市" - }, - { - "adcode": "430511", - "people_count_2010": 104609, - "lat": 27.245688, - "lng": 111.452315, - "name": "北塔区", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "341002", - "people_count_2010": 217637, - "lat": 29.709186, - "lng": 118.317354, - "name": "屯溪区", - "level": "district", - "parent": "黄山市" - }, - { - "adcode": "410306", - "people_count_2010": 69076, - "lat": 34.899093, - "lng": 112.584796, - "name": "吉利区", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "421002", - "people_count_2010": 600330, - "lat": 30.315895, - "lng": 112.257433, - "name": "沙市区", - "level": "district", - "parent": "荆州市" - }, - { - "adcode": "230709", - "people_count_2010": 39218, - "lat": 47.41295, - "lng": 129.435944, - "name": "金山屯区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "230708", - "people_count_2010": 41028, - "lat": 47.636102, - "lng": 129.133411, - "name": "美溪区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "230710", - "people_count_2010": 33988, - "lat": 48.108204, - "lng": 129.245028, - "name": "五营区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "230713", - "people_count_2010": 32259, - "lat": 47.027532, - "lng": 129.021151, - "name": "带岭区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "450503", - "people_count_2010": 176785, - "lat": 21.444909, - "lng": 109.118707, - "name": "银海区", - "level": "district", - "parent": "北海市" - }, - { - "adcode": "630104", - "people_count_2010": 242627, - "lat": 36.628323, - "lng": 101.763649, - "name": "城西区", - "level": "district", - "parent": "西宁市" - }, - { - "adcode": "441821", - "people_count_2010": 302906, - "lat": 23.866739, - "lng": 113.534094, - "name": "佛冈县", - "level": "district", - "parent": "清远市" - }, - { - "adcode": "130728", - "people_count_2010": 210914, - "lat": 40.671274, - "lng": 114.422364, - "name": "怀安县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "410381", - "people_count_2010": 666696, - "lat": 34.723042, - "lng": 112.787739, - "name": "偃师市", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "330825", - "people_count_2010": 362380, - "lat": 29.031364, - "lng": 119.172525, - "name": "龙游县", - "level": "district", - "parent": "衢州市" - }, - { - "adcode": "331126", - "people_count_2010": 141541, - "lat": 27.618231, - "lng": 119.067233, - "name": "庆元县", - "level": "district", - "parent": "丽水市" - }, - { - "adcode": "421202", - "people_count_2010": 512517, - "lat": 29.824716, - "lng": 114.333894, - "name": "咸安区", - "level": "district", - "parent": "咸宁市" - }, - { - "adcode": "433125", - "people_count_2010": 278169, - "lat": 28.709605, - "lng": 109.651445, - "name": "保靖县", - "level": "district", - "parent": "湘西土家族苗族自治州" - }, - { - "adcode": "231121", - "people_count_2010": 495519, - "lat": 49.177461, - "lng": 125.229904, - "name": "嫩江县", - "level": "district", - "parent": "黑河市" - }, - { - "adcode": "433123", - "people_count_2010": 346814, - "lat": 27.948308, - "lng": 109.599191, - "name": "凤凰县", - "level": "district", - "parent": "湘西土家族苗族自治州" - }, - { - "adcode": "330803", - "people_count_2010": 341436, - "lat": 28.973195, - "lng": 118.957683, - "name": "衢江区", - "level": "district", - "parent": "衢州市" - }, - { - "adcode": "610303", - "people_count_2010": 394538, - "lat": 34.375192, - "lng": 107.149943, - "name": "金台区", - "level": "district", - "parent": "宝鸡市" - }, - { - "adcode": "610582", - "people_count_2010": 258113, - "lat": 34.565359, - "lng": 110.08952, - "name": "华阴市", - "level": "district", - "parent": "渭南市" - }, - { - "adcode": "540330", - "people_count_2010": null, - "lat": 30.933849, - "lng": 94.707504, - "name": "边坝县", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "430902", - "people_count_2010": 409062, - "lat": 28.592771, - "lng": 112.33084, - "name": "资阳区", - "level": "district", - "parent": "益阳市" - }, - { - "adcode": "430981", - "people_count_2010": 666270, - "lat": 28.839713, - "lng": 112.361088, - "name": "沅江市", - "level": "district", - "parent": "益阳市" - }, - { - "adcode": "610826", - "people_count_2010": 296088, - "lat": 37.507701, - "lng": 110.265377, - "name": "绥德县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "141082", - "people_count_2010": 282905, - "lat": 36.57202, - "lng": 111.723103, - "name": "霍州市", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "433130", - "people_count_2010": 501590, - "lat": 29.453438, - "lng": 109.441189, - "name": "龙山县", - "level": "district", - "parent": "湘西土家族苗族自治州" - }, - { - "adcode": "450512", - "people_count_2010": 142715, - "lat": 21.5928, - "lng": 109.450573, - "name": "铁山港区", - "level": "district", - "parent": "北海市" - }, - { - "adcode": "620302", - "people_count_2010": 228561, - "lat": 38.513793, - "lng": 102.187683, - "name": "金川区", - "level": "district", - "parent": "金昌市" - }, - { - "adcode": "371623", - "people_count_2010": 418687, - "lat": 37.740848, - "lng": 117.616325, - "name": "无棣县", - "level": "district", - "parent": "滨州市" - }, - { - "adcode": "210124", - "people_count_2010": 399587, - "lat": 42.507045, - "lng": 123.416722, - "name": "法库县", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "140421", - "people_count_2010": 340963, - "lat": 36.052438, - "lng": 113.056679, - "name": "长治县", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "650422", - "people_count_2010": null, - "lat": 42.793536, - "lng": 88.655771, - "name": "托克逊县", - "level": "district", - "parent": "吐鲁番市" - }, - { - "adcode": "140321", - "people_count_2010": 335265, - "lat": 37.800289, - "lng": 113.631049, - "name": "平定县", - "level": "district", - "parent": "阳泉市" - }, - { - "adcode": "610730", - "people_count_2010": 30075, - "lat": 33.520745, - "lng": 107.988582, - "name": "佛坪县", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "611022", - "people_count_2010": 295349, - "lat": 33.694711, - "lng": 110.33191, - "name": "丹凤县", - "level": "district", - "parent": "商洛市" - }, - { - "adcode": "140427", - "people_count_2010": 291609, - "lat": 36.110938, - "lng": 113.206138, - "name": "壶关县", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "120103", - "people_count_2010": 870632, - "lat": 39.101897, - "lng": 117.217536, - "name": "河西区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "210111", - "people_count_2010": 474779, - "lat": 41.665904, - "lng": 123.341604, - "name": "苏家屯区", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "140424", - "people_count_2010": 263844, - "lat": 36.314072, - "lng": 112.892741, - "name": "屯留县", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "140428", - "people_count_2010": 353266, - "lat": 36.119484, - "lng": 112.884656, - "name": "长子县", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "320724", - "people_count_2010": 622296, - "lat": 34.092553, - "lng": 119.352331, - "name": "灌南县", - "level": "district", - "parent": "连云港市" - }, - { - "adcode": "140431", - "people_count_2010": 158702, - "lat": 36.500777, - "lng": 112.340878, - "name": "沁源县", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "130125", - "people_count_2010": 406353, - "lat": 38.437422, - "lng": 114.552734, - "name": "行唐县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "120113", - "people_count_2010": 669121, - "lat": 39.225555, - "lng": 117.13482, - "name": "北辰区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "350626", - "people_count_2010": 211505, - "lat": 23.702845, - "lng": 117.427679, - "name": "东山县", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "120115", - "people_count_2010": 5600000, - "lat": 39.716965, - "lng": 117.308094, - "name": "宝坻区", - "level": "district", - "parent": "天津市市辖区" - }, - { - "adcode": "513422", - "people_count_2010": 131726, - "lat": 27.926859, - "lng": 101.280184, - "name": "木里藏族自治县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "653101", - "people_count_2010": 506640, - "lat": 39.467861, - "lng": 75.98838, - "name": "喀什市", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "441625", - "people_count_2010": 439964, - "lat": 23.789093, - "lng": 114.742711, - "name": "东源县", - "level": "district", - "parent": "河源市" - }, - { - "adcode": "441622", - "people_count_2010": 694480, - "lat": 24.101174, - "lng": 115.256415, - "name": "龙川县", - "level": "district", - "parent": "河源市" - }, - { - "adcode": "430124", - "people_count_2010": 1200000, - "lat": 28.253928, - "lng": 112.553182, - "name": "宁乡县", - "level": "district", - "parent": "长沙市" - }, - { - "adcode": "653123", - "people_count_2010": 262067, - "lat": 38.929839, - "lng": 76.174292, - "name": "英吉沙县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "411426", - "people_count_2010": 915291, - "lat": 34.240894, - "lng": 116.13989, - "name": "夏邑县", - "level": "district", - "parent": "商丘市" - }, - { - "adcode": "653226", - "people_count_2010": 249899, - "lat": 36.854628, - "lng": 81.667845, - "name": "于田县", - "level": "district", - "parent": "和田地区" - }, - { - "adcode": "510525", - "people_count_2010": 713083, - "lat": 28.03948, - "lng": 105.813359, - "name": "古蔺县", - "level": "district", - "parent": "泸州市" - }, - { - "adcode": "430121", - "people_count_2010": 979472, - "lat": 28.237888, - "lng": 113.080098, - "name": "长沙县", - "level": "district", - "parent": "长沙市" - }, - { - "adcode": "450226", - "people_count_2010": 297244, - "lat": 25.78553, - "lng": 109.614846, - "name": "三江侗族自治县", - "level": "district", - "parent": "柳州市" - }, - { - "adcode": "410725", - "people_count_2010": 659380, - "lat": 35.054001, - "lng": 113.965966, - "name": "原阳县", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "420505", - "people_count_2010": 61230, - "lat": 30.530744, - "lng": 111.427642, - "name": "猇亭区", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "140430", - "people_count_2010": 172205, - "lat": 36.757123, - "lng": 112.70138, - "name": "沁县", - "level": "district", - "parent": "长治市" - }, - { - "adcode": "440604", - "people_count_2010": 1100000, - "lat": 23.019643, - "lng": 113.112414, - "name": "禅城区", - "level": "district", - "parent": "佛山市" - }, - { - "adcode": "513428", - "people_count_2010": 155740, - "lat": 27.376828, - "lng": 102.541082, - "name": "普格县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "430703", - "people_count_2010": 836839, - "lat": 29.014426, - "lng": 111.685327, - "name": "鼎城区", - "level": "district", - "parent": "常德市" - }, - { - "adcode": "310106", - "people_count_2010": 246788, - "lat": 31.229003, - "lng": 121.448224, - "name": "静安区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "430922", - "people_count_2010": 769863, - "lat": 28.520993, - "lng": 112.139732, - "name": "桃江县", - "level": "district", - "parent": "益阳市" - }, - { - "adcode": "430723", - "people_count_2010": 826655, - "lat": 29.64264, - "lng": 111.761682, - "name": "澧县", - "level": "district", - "parent": "常德市" - }, - { - "adcode": "653022", - "people_count_2010": 199065, - "lat": 39.147079, - "lng": 75.945159, - "name": "阿克陶县", - "level": "district", - "parent": "克孜勒苏柯尔克孜自治州" - }, - { - "adcode": "652222", - "people_count_2010": null, - "lat": 43.599032, - "lng": 93.021795, - "name": "巴里坤哈萨克自治县", - "level": "district", - "parent": "哈密地区" - }, - { - "adcode": "513427", - "people_count_2010": 170673, - "lat": 27.065205, - "lng": 102.757374, - "name": "宁南县", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "513401", - "people_count_2010": 712434, - "lat": 27.885786, - "lng": 102.258758, - "name": "西昌市", - "level": "district", - "parent": "凉山彝族自治州" - }, - { - "adcode": "371625", - "people_count_2010": 487116, - "lat": 37.147002, - "lng": 118.123096, - "name": "博兴县", - "level": "district", - "parent": "滨州市" - }, - { - "adcode": "440281", - "people_count_2010": 397779, - "lat": 25.128445, - "lng": 113.352413, - "name": "乐昌市", - "level": "district", - "parent": "韶关市" - }, - { - "adcode": "430923", - "people_count_2010": 900995, - "lat": 28.377421, - "lng": 111.221824, - "name": "安化县", - "level": "district", - "parent": "益阳市" - }, - { - "adcode": "511826", - "people_count_2010": 109027, - "lat": 30.152907, - "lng": 102.924016, - "name": "芦山县", - "level": "district", - "parent": "雅安市" - }, - { - "adcode": "321202", - "people_count_2010": 594656, - "lat": 32.488406, - "lng": 119.920187, - "name": "海陵区", - "level": "district", - "parent": "泰州市" - }, - { - "adcode": "210302", - "people_count_2010": 334884, - "lat": 41.110344, - "lng": 122.994475, - "name": "铁东区", - "level": "district", - "parent": "鞍山市" - }, - { - "adcode": "130532", - "people_count_2010": 300029, - "lat": 37.069404, - "lng": 115.029218, - "name": "平乡县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "130107", - "people_count_2010": 95170, - "lat": 38.069748, - "lng": 114.058178, - "name": "井陉矿区", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "430521", - "people_count_2010": 896619, - "lat": 27.257273, - "lng": 111.743168, - "name": "邵东县", - "level": "district", - "parent": "邵阳市" - }, - { - "adcode": "410928", - "people_count_2010": 1000000, - "lat": 35.710349, - "lng": 115.023844, - "name": "濮阳县", - "level": "district", - "parent": "濮阳市" - }, - { - "adcode": "230108", - "people_count_2010": 190253, - "lat": 45.605567, - "lng": 126.629257, - "name": "平房区", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "653121", - "people_count_2010": 311960, - "lat": 39.378306, - "lng": 75.863075, - "name": "疏附县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "542429", - "people_count_2010": 48284, - "lat": 31.918691, - "lng": 94.054049, - "name": "巴青县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "320612", - "people_count_2010": null, - "lat": 32.084287, - "lng": 121.073171, - "name": "通州区", - "level": "district", - "parent": "南通市" - }, - { - "adcode": "321282", - "people_count_2010": 684360, - "lat": 32.018168, - "lng": 120.26825, - "name": "靖江市", - "level": "district", - "parent": "泰州市" - }, - { - "adcode": "231081", - "people_count_2010": 132315, - "lat": 44.396864, - "lng": 131.164856, - "name": "绥芬河市", - "level": "district", - "parent": "牡丹江市" - }, - { - "adcode": "231004", - "people_count_2010": 275289, - "lat": 44.595443, - "lng": 129.601232, - "name": "爱民区", - "level": "district", - "parent": "牡丹江市" - }, - { - "adcode": "130129", - "people_count_2010": 244799, - "lat": 37.660199, - "lng": 114.387756, - "name": "赞皇县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "131102", - "people_count_2010": 522147, - "lat": 37.732237, - "lng": 115.694945, - "name": "桃城区", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "410781", - "people_count_2010": 495744, - "lat": 35.404295, - "lng": 114.065855, - "name": "卫辉市", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "542426", - "people_count_2010": 20285, - "lat": 30.929056, - "lng": 88.709777, - "name": "申扎县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "131122", - "people_count_2010": 315693, - "lat": 37.803774, - "lng": 115.892415, - "name": "武邑县", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "131121", - "people_count_2010": 394469, - "lat": 37.511512, - "lng": 115.726499, - "name": "枣强县", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "621026", - "people_count_2010": 405614, - "lat": 35.50201, - "lng": 107.921182, - "name": "宁县", - "level": "district", - "parent": "庆阳市" - }, - { - "adcode": "430281", - "people_count_2010": 947387, - "lat": 27.657873, - "lng": 113.507157, - "name": "醴陵市", - "level": "district", - "parent": "株洲市" - }, - { - "adcode": "131123", - "people_count_2010": 214549, - "lat": 38.03698, - "lng": 115.970236, - "name": "武强县", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "131124", - "people_count_2010": 280498, - "lat": 38.232671, - "lng": 115.726577, - "name": "饶阳县", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "410704", - "people_count_2010": 144298, - "lat": 35.379855, - "lng": 113.906712, - "name": "凤泉区", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "540228", - "people_count_2010": null, - "lat": 29.106627, - "lng": 89.263618, - "name": "白朗县", - "level": "district", - "parent": "日喀则市" - }, - { - "adcode": "131125", - "people_count_2010": 328512, - "lat": 38.233511, - "lng": 115.519627, - "name": "安平县", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "650202", - "people_count_2010": 69361, - "lat": 44.327207, - "lng": 84.882267, - "name": "独山子区", - "level": "district", - "parent": "克拉玛依市" - }, - { - "adcode": "130533", - "people_count_2010": 556624, - "lat": 36.983272, - "lng": 115.272749, - "name": "威县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "130626", - "people_count_2010": 517874, - "lat": 39.266195, - "lng": 115.796895, - "name": "定兴县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "610425", - "people_count_2010": 447771, - "lat": 34.482583, - "lng": 108.428317, - "name": "礼泉县", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "610422", - "people_count_2010": 403524, - "lat": 34.613996, - "lng": 108.943481, - "name": "三原县", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "220421", - "people_count_2010": 355078, - "lat": 42.675228, - "lng": 125.529623, - "name": "东丰县", - "level": "district", - "parent": "辽源市" - }, - { - "adcode": "410922", - "people_count_2010": 635927, - "lat": 35.902413, - "lng": 115.107287, - "name": "清丰县", - "level": "district", - "parent": "濮阳市" - }, - { - "adcode": "410324", - "people_count_2010": 342848, - "lat": 33.783195, - "lng": 111.618386, - "name": "栾川县", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "330103", - "people_count_2010": 526096, - "lat": 30.276271, - "lng": 120.172763, - "name": "下城区", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "320582", - "people_count_2010": 1200000, - "lat": 31.865553, - "lng": 120.543441, - "name": "张家港市", - "level": "district", - "parent": "苏州市" - }, - { - "adcode": "410326", - "people_count_2010": 408009, - "lat": 34.15323, - "lng": 112.473789, - "name": "汝阳县", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "230705", - "people_count_2010": 52741, - "lat": 47.479437, - "lng": 129.311441, - "name": "西林区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "410802", - "people_count_2010": 295695, - "lat": 35.241353, - "lng": 113.226126, - "name": "解放区", - "level": "district", - "parent": "焦作市" - }, - { - "adcode": "530114", - "people_count_2010": null, - "lat": 24.889275, - "lng": 102.801382, - "name": "呈贡区", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "411722", - "people_count_2010": 1100000, - "lat": 33.264719, - "lng": 114.266892, - "name": "上蔡县", - "level": "district", - "parent": "驻马店市" - }, - { - "adcode": "540423", - "people_count_2010": null, - "lat": 29.32573, - "lng": 95.332245, - "name": "墨脱县", - "level": "district", - "parent": "林芝市" - }, - { - "adcode": "410225", - "people_count_2010": 677826, - "lat": 34.829899, - "lng": 114.820572, - "name": "兰考县", - "level": "district", - "parent": "开封市" - }, - { - "adcode": "440882", - "people_count_2010": 1400000, - "lat": 20.908523, - "lng": 110.088275, - "name": "雷州市", - "level": "district", - "parent": "湛江市" - }, - { - "adcode": "542225", - "people_count_2010": 17093, - "lat": 29.025242, - "lng": 91.683753, - "name": "琼结县", - "level": "district", - "parent": "山南地区" - }, - { - "adcode": "610102", - "people_count_2010": null, - "lat": 34.26927, - "lng": 108.959903, - "name": "新城区", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "440117", - "people_count_2010": null, - "lat": 23.545283, - "lng": 113.587386, - "name": "从化区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "420106", - "people_count_2010": 1200000, - "lat": 30.546536, - "lng": 114.307344, - "name": "武昌区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "652901", - "people_count_2010": 535657, - "lat": 41.171272, - "lng": 80.2629, - "name": "阿克苏市", - "level": "district", - "parent": "阿克苏地区" - }, - { - "adcode": "140603", - "people_count_2010": 203793, - "lat": 39.515603, - "lng": 112.295227, - "name": "平鲁区", - "level": "district", - "parent": "朔州市" - }, - { - "adcode": "140821", - "people_count_2010": 572508, - "lat": 35.141883, - "lng": 110.77493, - "name": "临猗县", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "431025", - "people_count_2010": 338445, - "lat": 25.279119, - "lng": 112.564589, - "name": "临武县", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "431081", - "people_count_2010": 337294, - "lat": 25.974152, - "lng": 113.23682, - "name": "资兴市", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "652324", - "people_count_2010": null, - "lat": 44.305625, - "lng": 86.217687, - "name": "玛纳斯县", - "level": "district", - "parent": "昌吉回族自治州" - }, - { - "adcode": "321204", - "people_count_2010": null, - "lat": 32.508483, - "lng": 120.148208, - "name": "姜堰区", - "level": "district", - "parent": "泰州市" - }, - { - "adcode": "140303", - "people_count_2010": null, - "lat": 37.870085, - "lng": 113.559066, - "name": "矿区", - "level": "district", - "parent": "阳泉市" - }, - { - "adcode": "320706", - "people_count_2010": null, - "lat": 34.601584, - "lng": 119.179793, - "name": "海州区", - "level": "district", - "parent": "连云港市" - }, - { - "adcode": "431028", - "people_count_2010": 382708, - "lat": 26.708625, - "lng": 113.27217, - "name": "安仁县", - "level": "district", - "parent": "郴州市" - }, - { - "adcode": "360734", - "people_count_2010": 288207, - "lat": 24.954136, - "lng": 115.651399, - "name": "寻乌县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "510723", - "people_count_2010": 417221, - "lat": 31.22318, - "lng": 105.391991, - "name": "盐亭县", - "level": "district", - "parent": "绵阳市" - }, - { - "adcode": "410329", - "people_count_2010": 756669, - "lat": 34.423416, - "lng": 112.429384, - "name": "伊川县", - "level": "district", - "parent": "洛阳市" - }, - { - "adcode": "140202", - "people_count_2010": null, - "lat": 40.090511, - "lng": 113.301438, - "name": "城区", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "411521", - "people_count_2010": 504577, - "lat": 32.203206, - "lng": 114.533414, - "name": "罗山县", - "level": "district", - "parent": "信阳市" - }, - { - "adcode": "411081", - "people_count_2010": 1100000, - "lat": 34.154403, - "lng": 113.471316, - "name": "禹州市", - "level": "district", - "parent": "许昌市" - }, - { - "adcode": "640302", - "people_count_2010": 709378, - "lat": 37.985967, - "lng": 106.199419, - "name": "利通区", - "level": "district", - "parent": "吴忠市" - }, - { - "adcode": "370306", - "people_count_2010": 362294, - "lat": 36.803699, - "lng": 117.851036, - "name": "周村区", - "level": "district", - "parent": "淄博市" - }, - { - "adcode": "350724", - "people_count_2010": 125472, - "lat": 27.525785, - "lng": 118.783491, - "name": "松溪县", - "level": "district", - "parent": "南平市" - }, - { - "adcode": "360825", - "people_count_2010": 428276, - "lat": 27.321087, - "lng": 115.435559, - "name": "永丰县", - "level": "district", - "parent": "吉安市" - }, - { - "adcode": "220622", - "people_count_2010": 131631, - "lat": 42.389689, - "lng": 126.808386, - "name": "靖宇县", - "level": "district", - "parent": "白山市" - }, - { - "adcode": "610624", - "people_count_2010": 171552, - "lat": 36.86441, - "lng": 109.325341, - "name": "安塞县", - "level": "district", - "parent": "延安市" - }, - { - "adcode": "411525", - "people_count_2010": 1000000, - "lat": 32.183074, - "lng": 115.667328, - "name": "固始县", - "level": "district", - "parent": "信阳市" - }, - { - "adcode": "450721", - "people_count_2010": 1200000, - "lat": 22.418041, - "lng": 109.293468, - "name": "灵山县", - "level": "district", - "parent": "钦州市" - }, - { - "adcode": "320118", - "people_count_2010": null, - "lat": 31.327132, - "lng": 118.87589, - "name": "高淳区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "110113", - "people_count_2010": 876620, - "lat": 40.128936, - "lng": 116.653525, - "name": "顺义区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "341623", - "people_count_2010": 1200000, - "lat": 33.143503, - "lng": 116.207782, - "name": "利辛县", - "level": "district", - "parent": "亳州市" - }, - { - "adcode": "220203", - "people_count_2010": 527350, - "lat": 43.909755, - "lng": 126.561429, - "name": "龙潭区", - "level": "district", - "parent": "吉林市" - }, - { - "adcode": "341723", - "people_count_2010": 246732, - "lat": 30.63818, - "lng": 117.857395, - "name": "青阳县", - "level": "district", - "parent": "池州市" - }, - { - "adcode": "320707", - "people_count_2010": null, - "lat": 34.839154, - "lng": 119.128774, - "name": "赣榆区", - "level": "district", - "parent": "连云港市" - }, - { - "adcode": "361002", - "people_count_2010": 1100000, - "lat": 27.981919, - "lng": 116.361404, - "name": "临川区", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "130702", - "people_count_2010": null, - "lat": 40.813875, - "lng": 114.885658, - "name": "桥东区", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "130209", - "people_count_2010": null, - "lat": 39.278277, - "lng": 118.446585, - "name": "曹妃甸区", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "340124", - "people_count_2010": null, - "lat": 31.251488, - "lng": 117.289844, - "name": "庐江县", - "level": "district", - "parent": "合肥市" - }, - { - "adcode": "410711", - "people_count_2010": 317994, - "lat": 35.312974, - "lng": 113.89716, - "name": "牧野区", - "level": "district", - "parent": "新乡市" - }, - { - "adcode": "445102", - "people_count_2010": null, - "lat": 23.664675, - "lng": 116.63365, - "name": "湘桥区", - "level": "district", - "parent": "潮州市" - }, - { - "adcode": "361023", - "people_count_2010": 287932, - "lat": 27.210132, - "lng": 116.532994, - "name": "南丰县", - "level": "district", - "parent": "抚州市" - }, - { - "adcode": "130902", - "people_count_2010": null, - "lat": 38.308273, - "lng": 116.873049, - "name": "新华区", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "511011", - "people_count_2010": 749810, - "lat": 29.600107, - "lng": 105.067203, - "name": "东兴区", - "level": "district", - "parent": "内江市" - }, - { - "adcode": "410104", - "people_count_2010": 645932, - "lat": 34.746453, - "lng": 113.685313, - "name": "管城回族区", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "510703", - "people_count_2010": 866727, - "lat": 31.463557, - "lng": 104.740971, - "name": "涪城区", - "level": "district", - "parent": "绵阳市" - }, - { - "adcode": "420529", - "people_count_2010": 188923, - "lat": 30.199252, - "lng": 110.674938, - "name": "五峰土家族自治县", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "350781", - "people_count_2010": 275112, - "lat": 27.337952, - "lng": 117.491544, - "name": "邵武市", - "level": "district", - "parent": "南平市" - }, - { - "adcode": "441523", - "people_count_2010": 291534, - "lat": 23.302682, - "lng": 115.657565, - "name": "陆河县", - "level": "district", - "parent": "汕尾市" - }, - { - "adcode": "350702", - "people_count_2010": 467875, - "lat": 26.636079, - "lng": 118.178918, - "name": "延平区", - "level": "district", - "parent": "南平市" - }, - { - "adcode": "210624", - "people_count_2010": 407713, - "lat": 40.730412, - "lng": 124.784867, - "name": "宽甸满族自治县", - "level": "district", - "parent": "丹东市" - }, - { - "adcode": "371002", - "people_count_2010": 844310, - "lat": 37.510754, - "lng": 122.116189, - "name": "环翠区", - "level": "district", - "parent": "威海市" - }, - { - "adcode": "433101", - "people_count_2010": 302065, - "lat": 28.314827, - "lng": 109.738273, - "name": "吉首市", - "level": "district", - "parent": "湘西土家族苗族自治州" - }, - { - "adcode": "513332", - "people_count_2010": 80834, - "lat": 32.975302, - "lng": 98.100887, - "name": "石渠县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "340304", - "people_count_2010": 249361, - "lat": 32.931933, - "lng": 117.35259, - "name": "禹会区", - "level": "district", - "parent": "蚌埠市" - }, - { - "adcode": "421224", - "people_count_2010": 361079, - "lat": 29.604455, - "lng": 114.493163, - "name": "通山县", - "level": "district", - "parent": "咸宁市" - }, - { - "adcode": "360735", - "people_count_2010": 278246, - "lat": 26.326582, - "lng": 116.342249, - "name": "石城县", - "level": "district", - "parent": "赣州市" - }, - { - "adcode": "360925", - "people_count_2010": 144800, - "lat": 28.86054, - "lng": 115.361744, - "name": "靖安县", - "level": "district", - "parent": "宜春市" - }, - { - "adcode": "220102", - "people_count_2010": 876959, - "lat": 43.890235, - "lng": 125.337237, - "name": "南关区", - "level": "district", - "parent": "长春市" - }, - { - "adcode": "441581", - "people_count_2010": 1400000, - "lat": 22.946104, - "lng": 115.644203, - "name": "陆丰市", - "level": "district", - "parent": "汕尾市" - }, - { - "adcode": "130109", - "people_count_2010": null, - "lat": 38.033767, - "lng": 114.849647, - "name": "藁城区", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "410502", - "people_count_2010": 442885, - "lat": 36.098101, - "lng": 114.352562, - "name": "文峰区", - "level": "district", - "parent": "安阳市" - }, - { - "adcode": "210602", - "people_count_2010": 215905, - "lat": 40.136483, - "lng": 124.397814, - "name": "元宝区", - "level": "district", - "parent": "丹东市" - }, - { - "adcode": "150902", - "people_count_2010": 356135, - "lat": 41.034134, - "lng": 113.116453, - "name": "集宁区", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "370786", - "people_count_2010": 603482, - "lat": 36.854937, - "lng": 119.394502, - "name": "昌邑市", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "421121", - "people_count_2010": 338609, - "lat": 30.63569, - "lng": 114.872029, - "name": "团风县", - "level": "district", - "parent": "黄冈市" - }, - { - "adcode": "210603", - "people_count_2010": 466343, - "lat": 40.102801, - "lng": 124.361153, - "name": "振兴区", - "level": "district", - "parent": "丹东市" - }, - { - "adcode": "450804", - "people_count_2010": 407547, - "lat": 23.132815, - "lng": 109.415697, - "name": "覃塘区", - "level": "district", - "parent": "贵港市" - }, - { - "adcode": "350524", - "people_count_2010": 977435, - "lat": 25.056824, - "lng": 118.186014, - "name": "安溪县", - "level": "district", - "parent": "泉州市" - }, - { - "adcode": "341722", - "people_count_2010": 92238, - "lat": 30.210324, - "lng": 117.482907, - "name": "石台县", - "level": "district", - "parent": "池州市" - }, - { - "adcode": "511502", - "people_count_2010": 836340, - "lat": 28.760179, - "lng": 104.630231, - "name": "翠屏区", - "level": "district", - "parent": "宜宾市" - }, - { - "adcode": "150207", - "people_count_2010": 195831, - "lat": 40.600581, - "lng": 109.968122, - "name": "九原区", - "level": "district", - "parent": "包头市" - }, - { - "adcode": "150303", - "people_count_2010": 103355, - "lat": 39.44153, - "lng": 106.884789, - "name": "海南区", - "level": "district", - "parent": "乌海市" - }, - { - "adcode": "130602", - "people_count_2010": 730307, - "lat": 38.88662, - "lng": 115.470659, - "name": "竞秀区", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "370826", - "people_count_2010": null, - "lat": 34.809525, - "lng": 117.12861, - "name": "微山县", - "level": "district", - "parent": "济宁市" - }, - { - "adcode": "210904", - "people_count_2010": 166044, - "lat": 42.011145, - "lng": 121.677575, - "name": "太平区", - "level": "district", - "parent": "阜新市" - }, - { - "adcode": "632223", - "people_count_2010": 37788, - "lat": 36.959542, - "lng": 100.90049, - "name": "海晏县", - "level": "district", - "parent": "海北藏族自治州" - }, - { - "adcode": "820002", - "people_count_2010": null, - "lat": 22.199175, - "lng": 113.549052, - "name": "花王堂區", - "level": "district", - "parent": "澳門特別行政區" - }, - { - "adcode": "110111", - "people_count_2010": 1000000, - "lat": 39.735535, - "lng": 116.139157, - "name": "房山区", - "level": "district", - "parent": "北京市市辖区" - }, - { - "adcode": "653129", - "people_count_2010": 381767, - "lat": 39.494325, - "lng": 76.741982, - "name": "伽师县", - "level": "district", - "parent": "喀什地区" - }, - { - "adcode": "610821", - "people_count_2010": 455493, - "lat": 38.835641, - "lng": 110.497005, - "name": "神木县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "130607", - "people_count_2010": null, - "lat": 38.95138, - "lng": 115.32442, - "name": "满城区", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "230402", - "people_count_2010": 233855, - "lat": 47.345372, - "lng": 130.292478, - "name": "向阳区", - "level": "district", - "parent": "鹤岗市" - }, - { - "adcode": "410602", - "people_count_2010": 131421, - "lat": 35.936128, - "lng": 114.166551, - "name": "鹤山区", - "level": "district", - "parent": "鹤壁市" - }, - { - "adcode": "150204", - "people_count_2010": 600284, - "lat": 40.668558, - "lng": 109.880049, - "name": "青山区", - "level": "district", - "parent": "包头市" - }, - { - "adcode": "440512", - "people_count_2010": 267463, - "lat": 23.279345, - "lng": 116.729528, - "name": "濠江区", - "level": "district", - "parent": "汕头市" - }, - { - "adcode": "150302", - "people_count_2010": 296177, - "lat": 39.673527, - "lng": 106.817762, - "name": "海勃湾区", - "level": "district", - "parent": "乌海市" - }, - { - "adcode": "430726", - "people_count_2010": 599287, - "lat": 29.584703, - "lng": 111.379087, - "name": "石门县", - "level": "district", - "parent": "常德市" - }, - { - "adcode": "340405", - "people_count_2010": 175993, - "lat": 32.628229, - "lng": 116.841111, - "name": "八公山区", - "level": "district", - "parent": "淮南市" - }, - { - "adcode": "421083", - "people_count_2010": 819446, - "lat": 29.81297, - "lng": 113.470304, - "name": "洪湖市", - "level": "district", - "parent": "荆州市" - }, - { - "adcode": "341881", - "people_count_2010": 376857, - "lat": 30.626529, - "lng": 118.983407, - "name": "宁国市", - "level": "district", - "parent": "宣城市" - }, - { - "adcode": "421022", - "people_count_2010": 881128, - "lat": 30.059065, - "lng": 112.230179, - "name": "公安县", - "level": "district", - "parent": "荆州市" - }, - { - "adcode": "420111", - "people_count_2010": 1400000, - "lat": 30.504259, - "lng": 114.400718, - "name": "洪山区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "420105", - "people_count_2010": 584098, - "lat": 30.549326, - "lng": 114.265807, - "name": "汉阳区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "150502", - "people_count_2010": 898895, - "lat": 43.617422, - "lng": 122.264042, - "name": "科尔沁区", - "level": "district", - "parent": "通辽市" - }, - { - "adcode": "371402", - "people_count_2010": 679535, - "lat": 37.453923, - "lng": 116.307076, - "name": "德城区", - "level": "district", - "parent": "德州市" - }, - { - "adcode": "510821", - "people_count_2010": 385787, - "lat": 32.22833, - "lng": 106.290426, - "name": "旺苍县", - "level": "district", - "parent": "广元市" - }, - { - "adcode": "620111", - "people_count_2010": 136101, - "lat": 36.344177, - "lng": 102.861814, - "name": "红古区", - "level": "district", - "parent": "兰州市" - }, - { - "adcode": "140203", - "people_count_2010": 500155, - "lat": 40.03626, - "lng": 113.168656, - "name": "矿区", - "level": "district", - "parent": "大同市" - }, - { - "adcode": "220382", - "people_count_2010": 420720, - "lat": 43.518275, - "lng": 123.505283, - "name": "双辽市", - "level": "district", - "parent": "四平市" - }, - { - "adcode": "450602", - "people_count_2010": 155236, - "lat": 21.614406, - "lng": 108.346281, - "name": "港口区", - "level": "district", - "parent": "防城港市" - }, - { - "adcode": "331022", - "people_count_2010": 328887, - "lat": 29.118955, - "lng": 121.376429, - "name": "三门县", - "level": "district", - "parent": "台州市" - }, - { - "adcode": "331024", - "people_count_2010": 342676, - "lat": 28.849213, - "lng": 120.735074, - "name": "仙居县", - "level": "district", - "parent": "台州市" - }, - { - "adcode": "331003", - "people_count_2010": 632123, - "lat": 28.64488, - "lng": 121.262138, - "name": "黄岩区", - "level": "district", - "parent": "台州市" - }, - { - "adcode": "511321", - "people_count_2010": 929923, - "lat": 31.349407, - "lng": 106.061138, - "name": "南部县", - "level": "district", - "parent": "南充市" - }, - { - "adcode": "654326", - "people_count_2010": 35365, - "lat": 47.434633, - "lng": 85.876064, - "name": "吉木乃县", - "level": "district", - "parent": "阿勒泰地区" - }, - { - "adcode": "440811", - "people_count_2010": null, - "lat": 21.265997, - "lng": 110.329167, - "name": "麻章区", - "level": "district", - "parent": "湛江市" - }, - { - "adcode": "532822", - "people_count_2010": 331850, - "lat": 21.955866, - "lng": 100.448288, - "name": "勐海县", - "level": "district", - "parent": "西双版纳傣族自治州" - }, - { - "adcode": "371326", - "people_count_2010": 900167, - "lat": 35.511519, - "lng": 117.631884, - "name": "平邑县", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "360426", - "people_count_2010": 222322, - "lat": 29.327474, - "lng": 115.762611, - "name": "德安县", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "371328", - "people_count_2010": 489537, - "lat": 35.712435, - "lng": 117.943271, - "name": "蒙阴县", - "level": "district", - "parent": "临沂市" - }, - { - "adcode": "320202", - "people_count_2010": 229003, - "lat": 31.574705, - "lng": 120.301627, - "name": "崇安区", - "level": "district", - "parent": "无锡市" - }, - { - "adcode": "130128", - "people_count_2010": 250264, - "lat": 38.18454, - "lng": 115.200207, - "name": "深泽县", - "level": "district", - "parent": "石家庄市" - }, - { - "adcode": "652701", - "people_count_2010": 235585, - "lat": 44.903087, - "lng": 82.072237, - "name": "博乐市", - "level": "district", - "parent": "博尔塔拉蒙古自治州" - }, - { - "adcode": "210811", - "people_count_2010": 125454, - "lat": 40.682723, - "lng": 122.382584, - "name": "老边区", - "level": "district", - "parent": "营口市" - }, - { - "adcode": "222404", - "people_count_2010": 241777, - "lat": 42.871057, - "lng": 130.365787, - "name": "珲春市", - "level": "district", - "parent": "延边朝鲜族自治州" - }, - { - "adcode": "451302", - "people_count_2010": 910282, - "lat": 23.732926, - "lng": 109.230541, - "name": "兴宾区", - "level": "district", - "parent": "来宾市" - }, - { - "adcode": "610103", - "people_count_2010": 614710, - "lat": 34.251061, - "lng": 108.946994, - "name": "碑林区", - "level": "district", - "parent": "西安市" - }, - { - "adcode": "320117", - "people_count_2010": null, - "lat": 31.653061, - "lng": 119.028732, - "name": "溧水区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "131182", - "people_count_2010": 36000000, - "lat": 38.00347, - "lng": 115.554596, - "name": "深州市", - "level": "district", - "parent": "衡水市" - }, - { - "adcode": "621125", - "people_count_2010": 192957, - "lat": 34.848642, - "lng": 104.466756, - "name": "漳县", - "level": "district", - "parent": "定西市" - }, - { - "adcode": "621126", - "people_count_2010": 450654, - "lat": 34.439105, - "lng": 104.039882, - "name": "岷县", - "level": "district", - "parent": "定西市" - }, - { - "adcode": "210114", - "people_count_2010": 670843, - "lat": 41.795833, - "lng": 123.310829, - "name": "于洪区", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "422827", - "people_count_2010": 242870, - "lat": 29.506945, - "lng": 109.408328, - "name": "来凤县", - "level": "district", - "parent": "恩施土家族苗族自治州" - }, - { - "adcode": "220103", - "people_count_2010": 680631, - "lat": 43.903823, - "lng": 125.342828, - "name": "宽城区", - "level": "district", - "parent": "长春市" - }, - { - "adcode": "150925", - "people_count_2010": 185954, - "lat": 40.531627, - "lng": 112.500911, - "name": "凉城县", - "level": "district", - "parent": "乌兰察布市" - }, - { - "adcode": "620523", - "people_count_2010": 559713, - "lat": 34.747327, - "lng": 105.332347, - "name": "甘谷县", - "level": "district", - "parent": "天水市" - }, - { - "adcode": "620503", - "people_count_2010": 553268, - "lat": 34.563504, - "lng": 105.897631, - "name": "麦积区", - "level": "district", - "parent": "天水市" - }, - { - "adcode": "430112", - "people_count_2010": null, - "lat": 28.347458, - "lng": 112.819549, - "name": "望城区", - "level": "district", - "parent": "长沙市" - }, - { - "adcode": "222402", - "people_count_2010": 134452, - "lat": 42.966621, - "lng": 129.846701, - "name": "图们市", - "level": "district", - "parent": "延边朝鲜族自治州" - }, - { - "adcode": "140823", - "people_count_2010": 404150, - "lat": 35.353839, - "lng": 111.220306, - "name": "闻喜县", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "610222", - "people_count_2010": 91160, - "lat": 35.398766, - "lng": 109.118278, - "name": "宜君县", - "level": "district", - "parent": "铜川市" - }, - { - "adcode": "360202", - "people_count_2010": 192203, - "lat": 29.288465, - "lng": 117.195023, - "name": "昌江区", - "level": "district", - "parent": "景德镇市" - }, - { - "adcode": "410204", - "people_count_2010": null, - "lat": 34.792383, - "lng": 114.3485, - "name": "鼓楼区", - "level": "district", - "parent": "开封市" - }, - { - "adcode": "140802", - "people_count_2010": 680036, - "lat": 35.025643, - "lng": 111.000627, - "name": "盐湖区", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "140825", - "people_count_2010": 332473, - "lat": 35.613697, - "lng": 111.225205, - "name": "新绛县", - "level": "district", - "parent": "运城市" - }, - { - "adcode": "140602", - "people_count_2010": 505294, - "lat": 39.324525, - "lng": 112.428676, - "name": "朔城区", - "level": "district", - "parent": "朔州市" - }, - { - "adcode": "141121", - "people_count_2010": 421199, - "lat": 37.436314, - "lng": 112.032595, - "name": "文水县", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "522702", - "people_count_2010": 283904, - "lat": 26.702508, - "lng": 107.513508, - "name": "福泉市", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "130623", - "people_count_2010": 339063, - "lat": 39.393148, - "lng": 115.711985, - "name": "涞水县", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "430781", - "people_count_2010": 250898, - "lat": 29.630867, - "lng": 111.879609, - "name": "津市市", - "level": "district", - "parent": "常德市" - }, - { - "adcode": "330922", - "people_count_2010": 76108, - "lat": 30.727166, - "lng": 122.457809, - "name": "嵊泗县", - "level": "district", - "parent": "舟山市" - }, - { - "adcode": "632724", - "people_count_2010": 30037, - "lat": 33.852322, - "lng": 95.616843, - "name": "治多县", - "level": "district", - "parent": "玉树藏族自治州" - }, - { - "adcode": "130606", - "people_count_2010": null, - "lat": 38.865005, - "lng": 115.500934, - "name": "莲池区", - "level": "district", - "parent": "保定市" - }, - { - "adcode": "141027", - "people_count_2010": 127831, - "lat": 35.971359, - "lng": 111.850039, - "name": "浮山县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "141033", - "people_count_2010": 107339, - "lat": 36.411682, - "lng": 111.09733, - "name": "蒲县", - "level": "district", - "parent": "临汾市" - }, - { - "adcode": "440222", - "people_count_2010": 205452, - "lat": 24.948364, - "lng": 114.067205, - "name": "始兴县", - "level": "district", - "parent": "韶关市" - }, - { - "adcode": "340803", - "people_count_2010": 275003, - "lat": 30.505632, - "lng": 117.034512, - "name": "大观区", - "level": "district", - "parent": "安庆市" - }, - { - "adcode": "222426", - "people_count_2010": 225987, - "lat": 43.110994, - "lng": 128.901865, - "name": "安图县", - "level": "district", - "parent": "延边朝鲜族自治州" - }, - { - "adcode": "410403", - "people_count_2010": 302603, - "lat": 33.739285, - "lng": 113.310327, - "name": "卫东区", - "level": "district", - "parent": "平顶山市" - }, - { - "adcode": "420102", - "people_count_2010": 895957, - "lat": 30.594911, - "lng": 114.30304, - "name": "江岸区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "810014", - "people_count_2010": null, - "lat": 22.44573, - "lng": 114.171713, - "name": "大埔區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "350725", - "people_count_2010": 171715, - "lat": 27.365398, - "lng": 118.858661, - "name": "政和县", - "level": "district", - "parent": "南平市" - }, - { - "adcode": "542425", - "people_count_2010": 37802, - "lat": 32.260299, - "lng": 91.681879, - "name": "安多县", - "level": "district", - "parent": "那曲地区" - }, - { - "adcode": "420114", - "people_count_2010": 618994, - "lat": 30.582186, - "lng": 114.029341, - "name": "蔡甸区", - "level": "district", - "parent": "武汉市" - }, - { - "adcode": "420204", - "people_count_2010": 176614, - "lat": 30.177845, - "lng": 114.975755, - "name": "下陆区", - "level": "district", - "parent": "黄石市" - }, - { - "adcode": "350603", - "people_count_2010": 167463, - "lat": 24.515656, - "lng": 117.671387, - "name": "龙文区", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "230702", - "people_count_2010": 145954, - "lat": 47.726851, - "lng": 128.899284, - "name": "伊春区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "350622", - "people_count_2010": 415835, - "lat": 23.950486, - "lng": 117.340946, - "name": "云霄县", - "level": "district", - "parent": "漳州市" - }, - { - "adcode": "230704", - "people_count_2010": 53493, - "lat": 47.854303, - "lng": 128.838961, - "name": "友好区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "230707", - "people_count_2010": 43061, - "lat": 48.288292, - "lng": 129.52995, - "name": "新青区", - "level": "district", - "parent": "伊春市" - }, - { - "adcode": "350802", - "people_count_2010": 662429, - "lat": 25.0918, - "lng": 117.030721, - "name": "新罗区", - "level": "district", - "parent": "龙岩市" - }, - { - "adcode": "350824", - "people_count_2010": 278182, - "lat": 25.08865, - "lng": 116.100928, - "name": "武平县", - "level": "district", - "parent": "龙岩市" - }, - { - "adcode": "445103", - "people_count_2010": null, - "lat": 23.461012, - "lng": 116.67931, - "name": "潮安区", - "level": "district", - "parent": "潮州市" - }, - { - "adcode": "630102", - "people_count_2010": 359688, - "lat": 36.616043, - "lng": 101.796095, - "name": "城东区", - "level": "district", - "parent": "西宁市" - }, - { - "adcode": "810007", - "people_count_2010": null, - "lat": 22.312373, - "lng": 114.193047, - "name": "九龍城區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "540126", - "people_count_2010": 26708, - "lat": 29.670314, - "lng": 91.350976, - "name": "达孜县", - "level": "district", - "parent": "拉萨市" - }, - { - "adcode": "610802", - "people_count_2010": 637617, - "lat": 38.299267, - "lng": 109.74791, - "name": "榆阳区", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "220681", - "people_count_2010": 174970, - "lat": 41.810689, - "lng": 126.919296, - "name": "临江市", - "level": "district", - "parent": "白山市" - }, - { - "adcode": "610823", - "people_count_2010": 288053, - "lat": 37.964048, - "lng": 109.292596, - "name": "横山县", - "level": "district", - "parent": "榆林市" - }, - { - "adcode": "230604", - "people_count_2010": 564534, - "lat": 46.653254, - "lng": 124.868341, - "name": "让胡路区", - "level": "district", - "parent": "大庆市" - }, - { - "adcode": "210803", - "people_count_2010": 164873, - "lat": 40.663086, - "lng": 122.210067, - "name": "西市区", - "level": "district", - "parent": "营口市" - }, - { - "adcode": "130524", - "people_count_2010": 190225, - "lat": 37.483596, - "lng": 114.693382, - "name": "柏乡县", - "level": "district", - "parent": "邢台市" - }, - { - "adcode": "410505", - "people_count_2010": 243874, - "lat": 36.108974, - "lng": 114.300098, - "name": "殷都区", - "level": "district", - "parent": "安阳市" - }, - { - "adcode": "230623", - "people_count_2010": 712254, - "lat": 47.186411, - "lng": 124.877742, - "name": "林甸县", - "level": "district", - "parent": "大庆市" - }, - { - "adcode": "411481", - "people_count_2010": 1200000, - "lat": 33.931318, - "lng": 116.449672, - "name": "永城市", - "level": "district", - "parent": "商丘市" - }, - { - "adcode": "650204", - "people_count_2010": 50422, - "lat": 45.689021, - "lng": 85.129882, - "name": "白碱滩区", - "level": "district", - "parent": "克拉玛依市" - }, - { - "adcode": "500151", - "people_count_2010": null, - "lat": 29.839944, - "lng": 106.054948, - "name": "铜梁区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "440703", - "people_count_2010": 719146, - "lat": 22.59677, - "lng": 113.07859, - "name": "蓬江区", - "level": "district", - "parent": "江门市" - }, - { - "adcode": "440111", - "people_count_2010": 2200000, - "lat": 23.162281, - "lng": 113.262831, - "name": "白云区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "512021", - "people_count_2010": 1100000, - "lat": 30.099206, - "lng": 105.336764, - "name": "安岳县", - "level": "district", - "parent": "资阳市" - }, - { - "adcode": "650421", - "people_count_2010": null, - "lat": 42.865503, - "lng": 90.212692, - "name": "鄯善县", - "level": "district", - "parent": "吐鲁番市" - }, - { - "adcode": "500238", - "people_count_2010": 1200000, - "lat": 31.3966, - "lng": 109.628912, - "name": "巫溪县", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "340721", - "people_count_2010": 249595, - "lat": 30.952338, - "lng": 117.792288, - "name": "铜陵县", - "level": "district", - "parent": "铜陵市" - }, - { - "adcode": "533325", - "people_count_2010": null, - "lat": 26.453839, - "lng": 99.421378, - "name": "兰坪白族普米族自治县", - "level": "district", - "parent": "怒江傈僳族自治州" - }, - { - "adcode": "511527", - "people_count_2010": 329053, - "lat": 28.162017, - "lng": 104.507848, - "name": "筠连县", - "level": "district", - "parent": "宜宾市" - }, - { - "adcode": "500103", - "people_count_2010": 630090, - "lat": 29.556742, - "lng": 106.56288, - "name": "渝中区", - "level": "district", - "parent": "重庆市市辖区" - }, - { - "adcode": "650205", - "people_count_2010": 9780, - "lat": 46.08776, - "lng": 85.697767, - "name": "乌尔禾区", - "level": "district", - "parent": "克拉玛依市" - }, - { - "adcode": "220581", - "people_count_2010": 615154, - "lat": 42.530002, - "lng": 125.687336, - "name": "梅河口市", - "level": "district", - "parent": "通化市" - }, - { - "adcode": "410202", - "people_count_2010": 592376, - "lat": 34.799833, - "lng": 114.353348, - "name": "龙亭区", - "level": "district", - "parent": "开封市" - }, - { - "adcode": "340207", - "people_count_2010": 319820, - "lat": 31.362716, - "lng": 118.400174, - "name": "鸠江区", - "level": "district", - "parent": "芜湖市" - }, - { - "adcode": "513325", - "people_count_2010": 50225, - "lat": 30.03225, - "lng": 101.015735, - "name": "雅江县", - "level": "district", - "parent": "甘孜藏族自治州" - }, - { - "adcode": "652926", - "people_count_2010": 229252, - "lat": 41.796101, - "lng": 81.869881, - "name": "拜城县", - "level": "district", - "parent": "阿克苏地区" - }, - { - "adcode": "652929", - "people_count_2010": 569831, - "lat": 40.50624, - "lng": 79.04785, - "name": "柯坪县", - "level": "district", - "parent": "阿克苏地区" - }, - { - "adcode": "450881", - "people_count_2010": 1500000, - "lat": 23.382473, - "lng": 110.074668, - "name": "桂平市", - "level": "district", - "parent": "贵港市" - }, - { - "adcode": "431321", - "people_count_2010": 854069, - "lat": 27.459126, - "lng": 112.198245, - "name": "双峰县", - "level": "district", - "parent": "娄底市" - }, - { - "adcode": "370281", - "people_count_2010": 843054, - "lat": 36.285878, - "lng": 120.006202, - "name": "胶州市", - "level": "district", - "parent": "青岛市" - }, - { - "adcode": "370211", - "people_count_2010": 524206, - "lat": 35.875138, - "lng": 119.995518, - "name": "黄岛区", - "level": "district", - "parent": "青岛市" - }, - { - "adcode": "370703", - "people_count_2010": 424106, - "lat": 36.772103, - "lng": 119.207866, - "name": "寒亭区", - "level": "district", - "parent": "潍坊市" - }, - { - "adcode": "522729", - "people_count_2010": 191129, - "lat": 26.022116, - "lng": 106.447376, - "name": "长顺县", - "level": "district", - "parent": "黔南布依族苗族自治州" - }, - { - "adcode": "371603", - "people_count_2010": null, - "lat": 37.698456, - "lng": 118.129902, - "name": "沾化区", - "level": "district", - "parent": "滨州市" - }, - { - "adcode": "370202", - "people_count_2010": 544847, - "lat": 36.070892, - "lng": 120.395966, - "name": "市南区", - "level": "district", - "parent": "青岛市" - }, - { - "adcode": "370213", - "people_count_2010": 512389, - "lat": 36.160023, - "lng": 120.421236, - "name": "李沧区", - "level": "district", - "parent": "青岛市" - }, - { - "adcode": "370305", - "people_count_2010": 642831, - "lat": 36.816657, - "lng": 118.306018, - "name": "临淄区", - "level": "district", - "parent": "淄博市" - }, - { - "adcode": "370285", - "people_count_2010": 750225, - "lat": 36.86509, - "lng": 120.526226, - "name": "莱西市", - "level": "district", - "parent": "青岛市" - }, - { - "adcode": "210102", - "people_count_2010": null, - "lat": 41.788074, - "lng": 123.406664, - "name": "和平区", - "level": "district", - "parent": "沈阳市" - }, - { - "adcode": "370214", - "people_count_2010": 737209, - "lat": 36.306833, - "lng": 120.389135, - "name": "城阳区", - "level": "district", - "parent": "青岛市" - }, - { - "adcode": "370203", - "people_count_2010": 558218, - "lat": 36.083819, - "lng": 120.355026, - "name": "市北区", - "level": "district", - "parent": "青岛市" - }, - { - "adcode": "542527", - "people_count_2010": 14626, - "lat": 31.016774, - "lng": 85.159254, - "name": "措勤县", - "level": "district", - "parent": "阿里地区" - }, - { - "adcode": "652925", - "people_count_2010": 172064, - "lat": 41.551176, - "lng": 82.610828, - "name": "新和县", - "level": "district", - "parent": "阿克苏地区" - }, - { - "adcode": "433127", - "people_count_2010": 429672, - "lat": 28.998068, - "lng": 109.853292, - "name": "永顺县", - "level": "district", - "parent": "湘西土家族苗族自治州" - }, - { - "adcode": "370282", - "people_count_2010": 1200000, - "lat": 36.390847, - "lng": 120.447352, - "name": "即墨市", - "level": "district", - "parent": "青岛市" - }, - { - "adcode": "130723", - "people_count_2010": 204975, - "lat": 41.850046, - "lng": 114.615809, - "name": "康保县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "623001", - "people_count_2010": 90290, - "lat": 34.985973, - "lng": 102.91149, - "name": "合作市", - "level": "district", - "parent": "甘南藏族自治州" - }, - { - "adcode": "130922", - "people_count_2010": 402137, - "lat": 38.569646, - "lng": 116.838384, - "name": "青县", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "130204", - "people_count_2010": 358461, - "lat": 39.715736, - "lng": 118.45429, - "name": "古冶区", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "623026", - "people_count_2010": 35630, - "lat": 34.589591, - "lng": 102.488495, - "name": "碌曲县", - "level": "district", - "parent": "甘南藏族自治州" - }, - { - "adcode": "820003", - "people_count_2010": null, - "lat": 22.193791, - "lng": 113.550252, - "name": "望德堂區", - "level": "district", - "parent": "澳門特別行政區" - }, - { - "adcode": "623025", - "people_count_2010": 54745, - "lat": 33.998068, - "lng": 102.075767, - "name": "玛曲县", - "level": "district", - "parent": "甘南藏族自治州" - }, - { - "adcode": "220122", - "people_count_2010": 960759, - "lat": 44.431258, - "lng": 125.175287, - "name": "农安县", - "level": "district", - "parent": "长春市" - }, - { - "adcode": "220113", - "people_count_2010": null, - "lat": 44.157155, - "lng": 125.844682, - "name": "九台区", - "level": "district", - "parent": "长春市" - }, - { - "adcode": "150822", - "people_count_2010": 117091, - "lat": 40.330479, - "lng": 107.006056, - "name": "磴口县", - "level": "district", - "parent": "巴彦淖尔市" - }, - { - "adcode": "150825", - "people_count_2010": 65207, - "lat": 41.084307, - "lng": 107.074941, - "name": "乌拉特后旗", - "level": "district", - "parent": "巴彦淖尔市" - }, - { - "adcode": "371525", - "people_count_2010": 764864, - "lat": 36.483753, - "lng": 115.444808, - "name": "冠县", - "level": "district", - "parent": "聊城市" - }, - { - "adcode": "130921", - "people_count_2010": 669019, - "lat": 38.219856, - "lng": 117.007478, - "name": "沧县", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "150123", - "people_count_2010": 169856, - "lat": 40.380288, - "lng": 111.824143, - "name": "和林格尔县", - "level": "district", - "parent": "呼和浩特市" - }, - { - "adcode": "331124", - "people_count_2010": 185051, - "lat": 28.449937, - "lng": 119.485292, - "name": "松阳县", - "level": "district", - "parent": "丽水市" - }, - { - "adcode": "371626", - "people_count_2010": 778777, - "lat": 36.87803, - "lng": 117.736807, - "name": "邹平县", - "level": "district", - "parent": "滨州市" - }, - { - "adcode": "130705", - "people_count_2010": 370569, - "lat": 40.609368, - "lng": 115.0632, - "name": "宣化区", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "150105", - "people_count_2010": 1300000, - "lat": 40.807834, - "lng": 111.698463, - "name": "赛罕区", - "level": "district", - "parent": "呼和浩特市" - }, - { - "adcode": "371621", - "people_count_2010": 602491, - "lat": 37.483876, - "lng": 117.508941, - "name": "惠民县", - "level": "district", - "parent": "滨州市" - }, - { - "adcode": "370303", - "people_count_2010": 929242, - "lat": 36.807049, - "lng": 118.053521, - "name": "张店区", - "level": "district", - "parent": "淄博市" - }, - { - "adcode": "450202", - "people_count_2010": 160217, - "lat": 24.312324, - "lng": 109.411749, - "name": "城中区", - "level": "district", - "parent": "柳州市" - }, - { - "adcode": "210212", - "people_count_2010": 324773, - "lat": 38.812043, - "lng": 121.26713, - "name": "旅顺口区", - "level": "district", - "parent": "大连市" - }, - { - "adcode": "530102", - "people_count_2010": 855521, - "lat": 25.042165, - "lng": 102.704412, - "name": "五华区", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "410105", - "people_count_2010": 1600000, - "lat": 34.775838, - "lng": 113.686037, - "name": "金水区", - "level": "district", - "parent": "郑州市" - }, - { - "adcode": "210211", - "people_count_2010": 1300000, - "lat": 38.975148, - "lng": 121.582614, - "name": "甘井子区", - "level": "district", - "parent": "大连市" - }, - { - "adcode": "530125", - "people_count_2010": 911835, - "lat": 24.918215, - "lng": 103.145989, - "name": "宜良县", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "530112", - "people_count_2010": 753813, - "lat": 25.02436, - "lng": 102.705904, - "name": "西山区", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "530113", - "people_count_2010": 271917, - "lat": 26.08349, - "lng": 103.182, - "name": "东川区", - "level": "district", - "parent": "昆明市" - }, - { - "adcode": "450222", - "people_count_2010": 353796, - "lat": 24.655121, - "lng": 109.245812, - "name": "柳城县", - "level": "district", - "parent": "柳州市" - }, - { - "adcode": "360481", - "people_count_2010": 419047, - "lat": 29.676599, - "lng": 115.669081, - "name": "瑞昌市", - "level": "district", - "parent": "九江市" - }, - { - "adcode": "310110", - "people_count_2010": 1300000, - "lat": 31.270755, - "lng": 121.522797, - "name": "杨浦区", - "level": "district", - "parent": "上海市市辖区" - }, - { - "adcode": "220302", - "people_count_2010": null, - "lat": 43.176263, - "lng": 124.360894, - "name": "铁西区", - "level": "district", - "parent": "四平市" - }, - { - "adcode": "620524", - "people_count_2010": 1000000, - "lat": 34.721955, - "lng": 104.891696, - "name": "武山县", - "level": "district", - "parent": "天水市" - }, - { - "adcode": "520424", - "people_count_2010": null, - "lat": 25.944248, - "lng": 105.618454, - "name": "关岭布依族苗族自治县", - "level": "district", - "parent": "安顺市" - }, - { - "adcode": "440106", - "people_count_2010": 1400000, - "lat": 23.13559, - "lng": 113.335367, - "name": "天河区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "530622", - "people_count_2010": 516349, - "lat": 26.9117, - "lng": 102.929284, - "name": "巧家县", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "440104", - "people_count_2010": 1200000, - "lat": 23.125624, - "lng": 113.280714, - "name": "越秀区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "530624", - "people_count_2010": 263225, - "lat": 27.747114, - "lng": 103.891608, - "name": "大关县", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "533103", - "people_count_2010": 389891, - "lat": 24.436699, - "lng": 98.577608, - "name": "芒市", - "level": "district", - "parent": "德宏傣族景颇族自治州" - }, - { - "adcode": "130724", - "people_count_2010": 174619, - "lat": 41.667419, - "lng": 115.684836, - "name": "沽源县", - "level": "district", - "parent": "张家口市" - }, - { - "adcode": "440112", - "people_count_2010": 457930, - "lat": 23.103239, - "lng": 113.450761, - "name": "黄埔区", - "level": "district", - "parent": "广州市" - }, - { - "adcode": "131003", - "people_count_2010": 500396, - "lat": 39.521931, - "lng": 116.713708, - "name": "广阳区", - "level": "district", - "parent": "廊坊市" - }, - { - "adcode": "533124", - "people_count_2010": 715917, - "lat": 24.184065, - "lng": 97.794441, - "name": "陇川县", - "level": "district", - "parent": "德宏傣族景颇族自治州" - }, - { - "adcode": "320402", - "people_count_2010": 513794, - "lat": 31.779632, - "lng": 119.963783, - "name": "天宁区", - "level": "district", - "parent": "常州市" - }, - { - "adcode": "320411", - "people_count_2010": 597144, - "lat": 31.824664, - "lng": 119.974654, - "name": "新北区", - "level": "district", - "parent": "常州市" - }, - { - "adcode": "540321", - "people_count_2010": null, - "lat": 31.499534, - "lng": 98.218351, - "name": "江达县", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "230111", - "people_count_2010": 764534, - "lat": 45.98423, - "lng": 126.603302, - "name": "呼兰区", - "level": "district", - "parent": "哈尔滨市" - }, - { - "adcode": "620622", - "people_count_2010": 738306, - "lat": 37.470571, - "lng": 102.898047, - "name": "古浪县", - "level": "district", - "parent": "武威市" - }, - { - "adcode": "350102", - "people_count_2010": null, - "lat": 26.082284, - "lng": 119.29929, - "name": "鼓楼区", - "level": "district", - "parent": "福州市" - }, - { - "adcode": "441204", - "people_count_2010": null, - "lat": 23.027694, - "lng": 112.460846, - "name": "高要区", - "level": "district", - "parent": "肇庆市" - }, - { - "adcode": "230208", - "people_count_2010": 165852, - "lat": 47.311113, - "lng": 123.754599, - "name": "梅里斯达斡尔族区", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "130923", - "people_count_2010": 356502, - "lat": 37.88655, - "lng": 116.542062, - "name": "东光县", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "320106", - "people_count_2010": 826074, - "lat": 32.066966, - "lng": 118.769739, - "name": "鼓楼区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "441302", - "people_count_2010": 1600000, - "lat": 23.079883, - "lng": 114.413978, - "name": "惠城区", - "level": "district", - "parent": "惠州市" - }, - { - "adcode": "320481", - "people_count_2010": 749522, - "lat": 31.427081, - "lng": 119.487816, - "name": "溧阳市", - "level": "district", - "parent": "常州市" - }, - { - "adcode": "440282", - "people_count_2010": 316179, - "lat": 25.115328, - "lng": 114.311231, - "name": "南雄市", - "level": "district", - "parent": "韶关市" - }, - { - "adcode": "210323", - "people_count_2010": null, - "lat": 40.281509, - "lng": 123.28833, - "name": "岫岩满族自治县", - "level": "district", - "parent": "鞍山市" - }, - { - "adcode": "441322", - "people_count_2010": 1000000, - "lat": 23.167575, - "lng": 114.284254, - "name": "博罗县", - "level": "district", - "parent": "惠州市" - }, - { - "adcode": "330106", - "people_count_2010": 503821, - "lat": 30.272934, - "lng": 120.147376, - "name": "西湖区", - "level": "district", - "parent": "杭州市" - }, - { - "adcode": "320324", - "people_count_2010": 1000000, - "lat": 33.899222, - "lng": 117.95066, - "name": "睢宁县", - "level": "district", - "parent": "徐州市" - }, - { - "adcode": "430623", - "people_count_2010": 708898, - "lat": 29.524107, - "lng": 112.559369, - "name": "华容县", - "level": "district", - "parent": "岳阳市" - }, - { - "adcode": "130924", - "people_count_2010": 201538, - "lat": 38.141582, - "lng": 117.496606, - "name": "海兴县", - "level": "district", - "parent": "沧州市" - }, - { - "adcode": "622923", - "people_count_2010": 180161, - "lat": 35.938933, - "lng": 103.319871, - "name": "永靖县", - "level": "district", - "parent": "临夏回族自治州" - }, - { - "adcode": "622901", - "people_count_2010": 274466, - "lat": 35.59941, - "lng": 103.211634, - "name": "临夏市", - "level": "district", - "parent": "临夏回族自治州" - }, - { - "adcode": "210381", - "people_count_2010": 1300000, - "lat": 40.852533, - "lng": 122.752199, - "name": "海城市", - "level": "district", - "parent": "鞍山市" - }, - { - "adcode": "320804", - "people_count_2010": 789747, - "lat": 33.622452, - "lng": 119.020817, - "name": "淮阴区", - "level": "district", - "parent": "淮安市" - }, - { - "adcode": "820007", - "people_count_2010": null, - "lat": 22.136546, - "lng": 113.56925, - "name": "路氹填海區", - "level": "district", - "parent": "澳門特別行政區" - }, - { - "adcode": "130207", - "people_count_2010": 595467, - "lat": 39.56303, - "lng": 118.110793, - "name": "丰南区", - "level": "district", - "parent": "唐山市" - }, - { - "adcode": "131082", - "people_count_2010": 652042, - "lat": 39.982778, - "lng": 117.077018, - "name": "三河市", - "level": "district", - "parent": "廊坊市" - }, - { - "adcode": "330902", - "people_count_2010": 464184, - "lat": 30.016423, - "lng": 122.108496, - "name": "定海区", - "level": "district", - "parent": "舟山市" - }, - { - "adcode": "542524", - "people_count_2010": 9738, - "lat": 33.382454, - "lng": 79.731937, - "name": "日土县", - "level": "district", - "parent": "阿里地区" - }, - { - "adcode": "420502", - "people_count_2010": 512074, - "lat": 30.702476, - "lng": 111.295468, - "name": "西陵区", - "level": "district", - "parent": "宜昌市" - }, - { - "adcode": "522325", - "people_count_2010": 303883, - "lat": 25.385752, - "lng": 105.650133, - "name": "贞丰县", - "level": "district", - "parent": "黔西南布依族苗族自治州" - }, - { - "adcode": "520221", - "people_count_2010": 704615, - "lat": 26.540478, - "lng": 104.95685, - "name": "水城县", - "level": "district", - "parent": "六盘水市" - }, - { - "adcode": "522327", - "people_count_2010": 190413, - "lat": 24.983338, - "lng": 105.81241, - "name": "册亨县", - "level": "district", - "parent": "黔西南布依族苗族自治州" - }, - { - "adcode": "620982", - "people_count_2010": 186027, - "lat": 40.141119, - "lng": 94.664279, - "name": "敦煌市", - "level": "district", - "parent": "酒泉市" - }, - { - "adcode": "522622", - "people_count_2010": 263363, - "lat": 26.896973, - "lng": 107.901337, - "name": "黄平县", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "530381", - "people_count_2010": 1300000, - "lat": 26.227777, - "lng": 104.09554, - "name": "宣威市", - "level": "district", - "parent": "曲靖市" - }, - { - "adcode": "230229", - "people_count_2010": 403175, - "lat": 48.034342, - "lng": 125.874355, - "name": "克山县", - "level": "district", - "parent": "齐齐哈尔市" - }, - { - "adcode": "330903", - "people_count_2010": null, - "lat": 29.945614, - "lng": 122.301953, - "name": "普陀区", - "level": "district", - "parent": "舟山市" - }, - { - "adcode": "320116", - "people_count_2010": 915625, - "lat": 32.340655, - "lng": 118.85065, - "name": "六合区", - "level": "district", - "parent": "南京市" - }, - { - "adcode": "510522", - "people_count_2010": 709476, - "lat": 28.810325, - "lng": 105.834098, - "name": "合江县", - "level": "district", - "parent": "泸州市" - }, - { - "adcode": "370921", - "people_count_2010": 754647, - "lat": 35.76754, - "lng": 116.799297, - "name": "宁阳县", - "level": "district", - "parent": "泰安市" - }, - { - "adcode": "370983", - "people_count_2010": 946627, - "lat": 36.1856, - "lng": 116.763703, - "name": "肥城市", - "level": "district", - "parent": "泰安市" - }, - { - "adcode": "441427", - "people_count_2010": 205849, - "lat": 24.653313, - "lng": 116.170531, - "name": "蕉岭县", - "level": "district", - "parent": "梅州市" - }, - { - "adcode": "533401", - "people_count_2010": null, - "lat": 27.825804, - "lng": 99.708667, - "name": "香格里拉市", - "level": "district", - "parent": "迪庆藏族自治州" - }, - { - "adcode": "532923", - "people_count_2010": 455605, - "lat": 25.477072, - "lng": 100.554025, - "name": "祥云县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "542526", - "people_count_2010": 22177, - "lat": 32.302076, - "lng": 84.062384, - "name": "改则县", - "level": "district", - "parent": "阿里地区" - }, - { - "adcode": "532601", - "people_count_2010": null, - "lat": 23.369216, - "lng": 104.244277, - "name": "文山市", - "level": "district", - "parent": "文山壮族苗族自治州" - }, - { - "adcode": "522601", - "people_count_2010": 479011, - "lat": 26.582964, - "lng": 107.977541, - "name": "凯里市", - "level": "district", - "parent": "黔东南苗族侗族自治州" - }, - { - "adcode": "540325", - "people_count_2010": null, - "lat": 30.653038, - "lng": 97.565701, - "name": "察雅县", - "level": "district", - "parent": "昌都市" - }, - { - "adcode": "530723", - "people_count_2010": 8300000, - "lat": 26.628834, - "lng": 101.267796, - "name": "华坪县", - "level": "district", - "parent": "丽江市" - }, - { - "adcode": "532926", - "people_count_2010": null, - "lat": 25.041279, - "lng": 100.518683, - "name": "南涧彝族自治县", - "level": "district", - "parent": "大理白族自治州" - }, - { - "adcode": "810003", - "people_count_2010": null, - "lat": 22.279779, - "lng": 114.225965, - "name": "東區", - "level": "district", - "parent": "香港特別行政區" - }, - { - "adcode": "530828", - "people_count_2010": null, - "lat": 22.553083, - "lng": 99.931201, - "name": "澜沧拉祜族自治县", - "level": "district", - "parent": "普洱市" - }, - { - "adcode": "530924", - "people_count_2010": 4200000, - "lat": 23.761415, - "lng": 98.82743, - "name": "镇康县", - "level": "district", - "parent": "临沧市" - }, - { - "adcode": "341023", - "people_count_2010": 80722, - "lat": 29.923812, - "lng": 117.942911, - "name": "黟县", - "level": "district", - "parent": "黄山市" - }, - { - "adcode": "150624", - "people_count_2010": 148844, - "lat": 39.095752, - "lng": 107.982604, - "name": "鄂托克旗", - "level": "district", - "parent": "鄂尔多斯市" - }, - { - "adcode": "532322", - "people_count_2010": 159867, - "lat": 24.685094, - "lng": 101.63824, - "name": "双柏县", - "level": "district", - "parent": "楚雄彝族自治州" - }, - { - "adcode": "530325", - "people_count_2010": 722640, - "lat": 25.67064, - "lng": 104.25692, - "name": "富源县", - "level": "district", - "parent": "曲靖市" - }, - { - "adcode": "530302", - "people_count_2010": 740747, - "lat": 25.501269, - "lng": 103.798054, - "name": "麒麟区", - "level": "district", - "parent": "曲靖市" - }, - { - "adcode": "510115", - "people_count_2010": 457070, - "lat": 30.697996, - "lng": 103.836776, - "name": "温江区", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "510129", - "people_count_2010": 502199, - "lat": 30.586602, - "lng": 103.522397, - "name": "大邑县", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "510182", - "people_count_2010": 762887, - "lat": 30.985161, - "lng": 103.941173, - "name": "彭州市", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "211002", - "people_count_2010": 224352, - "lat": 41.26745, - "lng": 123.172611, - "name": "白塔区", - "level": "district", - "parent": "辽阳市" - }, - { - "adcode": "510321", - "people_count_2010": 590640, - "lat": 29.454851, - "lng": 104.423932, - "name": "荣县", - "level": "district", - "parent": "自贡市" - }, - { - "adcode": "510623", - "people_count_2010": 1200000, - "lat": 31.03681, - "lng": 104.677831, - "name": "中江县", - "level": "district", - "parent": "德阳市" - }, - { - "adcode": "510922", - "people_count_2010": 924531, - "lat": 30.868752, - "lng": 105.381849, - "name": "射洪县", - "level": "district", - "parent": "遂宁市" - }, - { - "adcode": "640105", - "people_count_2010": 329310, - "lat": 38.492424, - "lng": 106.132116, - "name": "西夏区", - "level": "district", - "parent": "银川市" - }, - { - "adcode": "640121", - "people_count_2010": 218260, - "lat": 38.28043, - "lng": 106.253781, - "name": "永宁县", - "level": "district", - "parent": "银川市" - }, - { - "adcode": "421081", - "people_count_2010": 577022, - "lat": 29.716437, - "lng": 112.40887, - "name": "石首市", - "level": "district", - "parent": "荆州市" - }, - { - "adcode": "510104", - "people_count_2010": 690422, - "lat": 30.657689, - "lng": 104.080989, - "name": "锦江区", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "510181", - "people_count_2010": 657996, - "lat": 30.99114, - "lng": 103.627898, - "name": "都江堰市", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "510183", - "people_count_2010": 612753, - "lat": 30.413271, - "lng": 103.46143, - "name": "邛崃市", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "510131", - "people_count_2010": 239562, - "lat": 30.194359, - "lng": 103.511541, - "name": "蒲江县", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "510124", - "people_count_2010": 896162, - "lat": 30.808752, - "lng": 103.887842, - "name": "郫县", - "level": "district", - "parent": "成都市" - }, - { - "adcode": "530923", - "people_count_2010": 369702, - "lat": 24.028159, - "lng": 99.253679, - "name": "永德县", - "level": "district", - "parent": "临沧市" - }, - { - "adcode": "533422", - "people_count_2010": 387799, - "lat": 28.483272, - "lng": 98.91506, - "name": "德钦县", - "level": "district", - "parent": "迪庆藏族自治州" - }, - { - "adcode": "530802", - "people_count_2010": null, - "lat": 22.776595, - "lng": 100.973227, - "name": "思茅区", - "level": "district", - "parent": "普洱市" - }, - { - "adcode": "530628", - "people_count_2010": 521838, - "lat": 27.627425, - "lng": 104.048492, - "name": "彝良县", - "level": "district", - "parent": "昭通市" - }, - { - "adcode": "610702", - "people_count_2010": 534923, - "lat": 33.077674, - "lng": 107.028233, - "name": "汉台区", - "level": "district", - "parent": "汉中市" - }, - { - "adcode": "621227", - "people_count_2010": 200294, - "lat": 33.767785, - "lng": 106.085632, - "name": "徽县", - "level": "district", - "parent": "陇南市" - }, - { - "adcode": "621224", - "people_count_2010": 180061, - "lat": 33.328266, - "lng": 105.609534, - "name": "康县", - "level": "district", - "parent": "陇南市" - }, - { - "adcode": "621221", - "people_count_2010": 242343, - "lat": 33.739863, - "lng": 105.734434, - "name": "成县", - "level": "district", - "parent": "陇南市" - }, - { - "adcode": "621228", - "people_count_2010": 2000000, - "lat": 33.910729, - "lng": 106.306959, - "name": "两当县", - "level": "district", - "parent": "陇南市" - }, - { - "adcode": "141128", - "people_count_2010": 143809, - "lat": 37.892632, - "lng": 111.238885, - "name": "方山县", - "level": "district", - "parent": "吕梁市" - }, - { - "adcode": "430202", - "people_count_2010": 309061, - "lat": 27.833036, - "lng": 113.162548, - "name": "荷塘区", - "level": "district", - "parent": "株洲市" - }, - { - "adcode": "440511", - "people_count_2010": 810284, - "lat": 23.367071, - "lng": 116.703583, - "name": "金平区", - "level": "district", - "parent": "汕头市" - }, - { - "adcode": "361121", - "people_count_2010": 700267, - "lat": 28.453897, - "lng": 117.90612, - "name": "上饶县", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "361126", - "people_count_2010": 353379, - "lat": 28.402391, - "lng": 117.435002, - "name": "弋阳县", - "level": "district", - "parent": "上饶市" - }, - { - "adcode": "410506", - "people_count_2010": 214456, - "lat": 36.095568, - "lng": 114.323522, - "name": "龙安区", - "level": "district", - "parent": "安阳市" - }, - { - "adcode": "130432", - "people_count_2010": 268993, - "lat": 36.483603, - "lng": 114.950859, - "name": "广平县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "610404", - "people_count_2010": 438327, - "lat": 34.336847, - "lng": 108.730957, - "name": "渭城区", - "level": "district", - "parent": "咸阳市" - }, - { - "adcode": "440515", - "people_count_2010": 800399, - "lat": 23.46844, - "lng": 116.76336, - "name": "澄海区", - "level": "district", - "parent": "汕头市" - }, - { - "adcode": "130430", - "people_count_2010": 227578, - "lat": 36.81325, - "lng": 115.168584, - "name": "邱县", - "level": "district", - "parent": "邯郸市" - }, - { - "adcode": "410482", - "people_count_2010": 927934, - "lat": 34.167408, - "lng": 112.845336, - "name": "汝州市", - "level": "district", - "parent": "平顶山市" - }, - { - "adcode": "513435", - "people_count_2010": 195100, - "lat": 28.977094, - "lng": 102.775924, - "name": "甘洛县", - "level": "district", - "parent": "凉山彝族自治州" - } - ], - "total": 2855 -} +{ + "rows": [ + { + "adcode": "370783", + "people_count_2010": 1100000, + "lat": 36.874411, + "lng": 118.736451, + "name": "寿光市", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "361124", + "people_count_2010": 426998, + "lat": 28.310892, + "lng": 117.711906, + "name": "铅山县", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "450109", + "people_count_2010": 259721, + "lat": 22.756598, + "lng": 108.484251, + "name": "邕宁区", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "450127", + "people_count_2010": 863001, + "lat": 22.68743, + "lng": 109.270987, + "name": "横县", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "330421", + "people_count_2010": 574187, + "lat": 30.841352, + "lng": 120.921871, + "name": "嘉善县", + "level": "district", + "parent": "嘉兴市" + }, + { + "adcode": "610822", + "people_count_2010": 260585, + "lat": 39.029243, + "lng": 111.069645, + "name": "府谷县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "130827", + "people_count_2010": 250304, + "lat": 40.607981, + "lng": 118.488642, + "name": "宽城满族自治县", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "340122", + "people_count_2010": 861960, + "lat": 31.883992, + "lng": 117.463222, + "name": "肥东县", + "level": "district", + "parent": "合肥市" + }, + { + "adcode": "530724", + "people_count_2010": null, + "lat": 27.281109, + "lng": 100.852427, + "name": "宁蒗彝族自治县", + "level": "district", + "parent": "丽江市" + }, + { + "adcode": "450125", + "people_count_2010": 343590, + "lat": 23.431769, + "lng": 108.603937, + "name": "上林县", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "431003", + "people_count_2010": 402750, + "lat": 25.793157, + "lng": 113.038698, + "name": "苏仙区", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "120110", + "people_count_2010": 598966, + "lat": 39.087764, + "lng": 117.313967, + "name": "东丽区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "623023", + "people_count_2010": 132108, + "lat": 33.782964, + "lng": 104.370271, + "name": "舟曲县", + "level": "district", + "parent": "甘南藏族自治州" + }, + { + "adcode": "130132", + "people_count_2010": 418466, + "lat": 37.762514, + "lng": 114.52618, + "name": "元氏县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "150523", + "people_count_2010": 396166, + "lat": 43.602432, + "lng": 121.308797, + "name": "开鲁县", + "level": "district", + "parent": "通辽市" + }, + { + "adcode": "220602", + "people_count_2010": null, + "lat": 41.943065, + "lng": 126.428035, + "name": "浑江区", + "level": "district", + "parent": "白山市" + }, + { + "adcode": "451081", + "people_count_2010": null, + "lat": 23.134766, + "lng": 106.417549, + "name": "靖西市", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "370704", + "people_count_2010": 512161, + "lat": 36.654616, + "lng": 119.166326, + "name": "坊子区", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "530324", + "people_count_2010": 549680, + "lat": 24.885708, + "lng": 104.309263, + "name": "罗平县", + "level": "district", + "parent": "曲靖市" + }, + { + "adcode": "360521", + "people_count_2010": 299386, + "lat": 27.811301, + "lng": 114.675262, + "name": "分宜县", + "level": "district", + "parent": "新余市" + }, + { + "adcode": "330324", + "people_count_2010": 789154, + "lat": 28.153886, + "lng": 120.690968, + "name": "永嘉县", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "620725", + "people_count_2010": 161299, + "lat": 38.784839, + "lng": 101.088442, + "name": "山丹县", + "level": "district", + "parent": "张掖市" + }, + { + "adcode": "451226", + "people_count_2010": 272328, + "lat": 24.827628, + "lng": 108.258669, + "name": "环江毛南族自治县", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "620921", + "people_count_2010": 147460, + "lat": 39.983036, + "lng": 98.902959, + "name": "金塔县", + "level": "district", + "parent": "酒泉市" + }, + { + "adcode": "360112", + "people_count_2010": null, + "lat": 28.690788, + "lng": 115.820806, + "name": "新建区", + "level": "district", + "parent": "南昌市" + }, + { + "adcode": "410402", + "people_count_2010": null, + "lat": 33.737579, + "lng": 113.299061, + "name": "新华区", + "level": "district", + "parent": "平顶山市" + }, + { + "adcode": "130181", + "people_count_2010": 615919, + "lat": 37.92904, + "lng": 115.217451, + "name": "辛集市", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "610402", + "people_count_2010": 909437, + "lat": 34.329801, + "lng": 108.698636, + "name": "秦都区", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "320509", + "people_count_2010": null, + "lat": 31.160404, + "lng": 120.641601, + "name": "吴江区", + "level": "district", + "parent": "苏州市" + }, + { + "adcode": "610481", + "people_count_2010": 541554, + "lat": 34.297134, + "lng": 108.488493, + "name": "兴平市", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "620981", + "people_count_2010": 159792, + "lat": 40.28682, + "lng": 97.037206, + "name": "玉门市", + "level": "district", + "parent": "酒泉市" + }, + { + "adcode": "511324", + "people_count_2010": 930028, + "lat": 31.271261, + "lng": 106.297083, + "name": "仪陇县", + "level": "district", + "parent": "南充市" + }, + { + "adcode": "150922", + "people_count_2010": 123535, + "lat": 41.899335, + "lng": 114.01008, + "name": "化德县", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "411723", + "people_count_2010": 748398, + "lat": 32.955626, + "lng": 114.637105, + "name": "平舆县", + "level": "district", + "parent": "驻马店市" + }, + { + "adcode": "610426", + "people_count_2010": 184642, + "lat": 34.692619, + "lng": 108.143129, + "name": "永寿县", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "370112", + "people_count_2010": 1100000, + "lat": 36.681744, + "lng": 117.063744, + "name": "历城区", + "level": "district", + "parent": "济南市" + }, + { + "adcode": "150403", + "people_count_2010": 325170, + "lat": 42.041168, + "lng": 119.289877, + "name": "元宝山区", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "210403", + "people_count_2010": 320949, + "lat": 41.866829, + "lng": 124.047219, + "name": "东洲区", + "level": "district", + "parent": "抚顺市" + }, + { + "adcode": "430102", + "people_count_2010": 523997, + "lat": 28.193106, + "lng": 112.988094, + "name": "芙蓉区", + "level": "district", + "parent": "长沙市" + }, + { + "adcode": "410421", + "people_count_2010": 2000000, + "lat": 33.866359, + "lng": 113.066812, + "name": "宝丰县", + "level": "district", + "parent": "平顶山市" + }, + { + "adcode": "533423", + "people_count_2010": null, + "lat": 27.180948, + "lng": 99.286355, + "name": "维西傈僳族自治县", + "level": "district", + "parent": "迪庆藏族自治州" + }, + { + "adcode": "511421", + "people_count_2010": 1200000, + "lat": 29.996721, + "lng": 104.147646, + "name": "仁寿县", + "level": "district", + "parent": "眉山市" + }, + { + "adcode": "532927", + "people_count_2010": null, + "lat": 25.230909, + "lng": 100.30793, + "name": "巍山彝族回族自治县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "530823", + "people_count_2010": null, + "lat": 24.448523, + "lng": 100.840011, + "name": "景东彝族自治县", + "level": "district", + "parent": "普洱市" + }, + { + "adcode": "530825", + "people_count_2010": null, + "lat": 24.005712, + "lng": 101.108512, + "name": "镇沅彝族哈尼族拉祜族自治县", + "level": "district", + "parent": "普洱市" + }, + { + "adcode": "530827", + "people_count_2010": null, + "lat": 22.325924, + "lng": 99.585406, + "name": "孟连傣族拉祜族佤族自治县", + "level": "district", + "parent": "普洱市" + }, + { + "adcode": "530829", + "people_count_2010": null, + "lat": 22.644423, + "lng": 99.594372, + "name": "西盟佤族自治县", + "level": "district", + "parent": "普洱市" + }, + { + "adcode": "500116", + "people_count_2010": 1200000, + "lat": 29.283387, + "lng": 106.253156, + "name": "江津区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "532532", + "people_count_2010": null, + "lat": 22.507563, + "lng": 103.961593, + "name": "河口瑶族自治县", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "622922", + "people_count_2010": 233173, + "lat": 35.371906, + "lng": 103.709852, + "name": "康乐县", + "level": "district", + "parent": "临夏回族自治州" + }, + { + "adcode": "360402", + "people_count_2010": 302228, + "lat": 29.676175, + "lng": 115.99012, + "name": "庐山区", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "360427", + "people_count_2010": 245526, + "lat": 29.456169, + "lng": 116.043743, + "name": "星子县", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "640181", + "people_count_2010": 261677, + "lat": 38.094058, + "lng": 106.334701, + "name": "灵武市", + "level": "district", + "parent": "银川市" + }, + { + "adcode": "451202", + "people_count_2010": 330131, + "lat": 24.695625, + "lng": 108.062131, + "name": "金城江区", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "620722", + "people_count_2010": 219356, + "lat": 38.434454, + "lng": 100.816623, + "name": "民乐县", + "level": "district", + "parent": "张掖市" + }, + { + "adcode": "450124", + "people_count_2010": 390900, + "lat": 23.711758, + "lng": 108.172903, + "name": "马山县", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "652928", + "people_count_2010": 237562, + "lat": 40.638422, + "lng": 80.378426, + "name": "阿瓦提县", + "level": "district", + "parent": "阿克苏地区" + }, + { + "adcode": "220221", + "people_count_2010": 394486, + "lat": 43.667416, + "lng": 126.501622, + "name": "永吉县", + "level": "district", + "parent": "吉林市" + }, + { + "adcode": "360922", + "people_count_2010": 476856, + "lat": 28.104528, + "lng": 114.449012, + "name": "万载县", + "level": "district", + "parent": "宜春市" + }, + { + "adcode": "520321", + "people_count_2010": 942904, + "lat": 27.535288, + "lng": 106.831668, + "name": "遵义县", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "370103", + "people_count_2010": 662814, + "lat": 36.657354, + "lng": 116.99898, + "name": "市中区", + "level": "district", + "parent": "济南市" + }, + { + "adcode": "220723", + "people_count_2010": 301438, + "lat": 45.006846, + "lng": 124.024361, + "name": "乾安县", + "level": "district", + "parent": "松原市" + }, + { + "adcode": "500228", + "people_count_2010": 687525, + "lat": 30.672168, + "lng": 107.800034, + "name": "梁平县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "441624", + "people_count_2010": 374709, + "lat": 24.44318, + "lng": 114.941473, + "name": "和平县", + "level": "district", + "parent": "河源市" + }, + { + "adcode": "620103", + "people_count_2010": 1300000, + "lat": 36.06673, + "lng": 103.784326, + "name": "七里河区", + "level": "district", + "parent": "兰州市" + }, + { + "adcode": "522723", + "people_count_2010": 231118, + "lat": 26.580807, + "lng": 107.233588, + "name": "贵定县", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "150426", + "people_count_2010": 433298, + "lat": 42.937128, + "lng": 119.022619, + "name": "翁牛特旗", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "141124", + "people_count_2010": 579077, + "lat": 37.960806, + "lng": 110.995963, + "name": "临县", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "610424", + "people_count_2010": 527088, + "lat": 34.527261, + "lng": 108.247406, + "name": "乾县", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "450702", + "people_count_2010": 617047, + "lat": 21.966808, + "lng": 108.626629, + "name": "钦南区", + "level": "district", + "parent": "钦州市" + }, + { + "adcode": "520382", + "people_count_2010": 546477, + "lat": 27.803377, + "lng": 106.412476, + "name": "仁怀市", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "522722", + "people_count_2010": 144865, + "lat": 25.412239, + "lng": 107.8838, + "name": "荔波县", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "522732", + "people_count_2010": 283139, + "lat": 25.985183, + "lng": 107.87747, + "name": "三都水族自治县", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "220104", + "people_count_2010": null, + "lat": 43.86491, + "lng": 125.318042, + "name": "朝阳区", + "level": "district", + "parent": "长春市" + }, + { + "adcode": "510626", + "people_count_2010": 212185, + "lat": 31.303281, + "lng": 104.507126, + "name": "罗江县", + "level": "district", + "parent": "德阳市" + }, + { + "adcode": "520324", + "people_count_2010": 389634, + "lat": 28.550337, + "lng": 107.441872, + "name": "正安县", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "520330", + "people_count_2010": 523180, + "lat": 28.327826, + "lng": 106.200954, + "name": "习水县", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "520502", + "people_count_2010": null, + "lat": 27.302085, + "lng": 105.284852, + "name": "七星关区", + "level": "district", + "parent": "毕节市" + }, + { + "adcode": "222401", + "people_count_2010": 562959, + "lat": 42.906964, + "lng": 129.51579, + "name": "延吉市", + "level": "district", + "parent": "延边朝鲜族自治州" + }, + { + "adcode": "340181", + "people_count_2010": null, + "lat": 31.600518, + "lng": 117.874155, + "name": "巢湖市", + "level": "district", + "parent": "合肥市" + }, + { + "adcode": "500240", + "people_count_2010": null, + "lat": 29.99853, + "lng": 108.112448, + "name": "石柱土家族自治县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "500235", + "people_count_2010": 912912, + "lat": 30.930529, + "lng": 108.697698, + "name": "云阳县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "411527", + "people_count_2010": 570197, + "lat": 32.452639, + "lng": 115.415451, + "name": "淮滨县", + "level": "district", + "parent": "信阳市" + }, + { + "adcode": "411328", + "people_count_2010": 1300000, + "lat": 32.687892, + "lng": 112.838492, + "name": "唐河县", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "451321", + "people_count_2010": 312441, + "lat": 24.064779, + "lng": 108.667361, + "name": "忻城县", + "level": "district", + "parent": "来宾市" + }, + { + "adcode": "440825", + "people_count_2010": 698474, + "lat": 20.326083, + "lng": 110.175718, + "name": "徐闻县", + "level": "district", + "parent": "湛江市" + }, + { + "adcode": "411623", + "people_count_2010": 940792, + "lat": 33.543845, + "lng": 114.60927, + "name": "商水县", + "level": "district", + "parent": "周口市" + }, + { + "adcode": "410702", + "people_count_2010": 391290, + "lat": 35.302684, + "lng": 113.878158, + "name": "红旗区", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "632224", + "people_count_2010": 298049, + "lat": 37.326263, + "lng": 100.138417, + "name": "刚察县", + "level": "district", + "parent": "海北藏族自治州" + }, + { + "adcode": "510504", + "people_count_2010": 344601, + "lat": 28.897572, + "lng": 105.435228, + "name": "龙马潭区", + "level": "district", + "parent": "泸州市" + }, + { + "adcode": "510811", + "people_count_2010": 168489, + "lat": 32.322788, + "lng": 105.964121, + "name": "昭化区", + "level": "district", + "parent": "广元市" + }, + { + "adcode": "510824", + "people_count_2010": 559180, + "lat": 31.732251, + "lng": 105.939706, + "name": "苍溪县", + "level": "district", + "parent": "广元市" + }, + { + "adcode": "230302", + "people_count_2010": 365385, + "lat": 45.30034, + "lng": 130.974374, + "name": "鸡冠区", + "level": "district", + "parent": "鸡西市" + }, + { + "adcode": "440823", + "people_count_2010": 886452, + "lat": 21.376915, + "lng": 110.255321, + "name": "遂溪县", + "level": "district", + "parent": "湛江市" + }, + { + "adcode": "440883", + "people_count_2010": 927275, + "lat": 21.428453, + "lng": 110.780508, + "name": "吴川市", + "level": "district", + "parent": "湛江市" + }, + { + "adcode": "350211", + "people_count_2010": 580857, + "lat": 24.572874, + "lng": 118.100869, + "name": "集美区", + "level": "district", + "parent": "厦门市" + }, + { + "adcode": "441602", + "people_count_2010": 463907, + "lat": 23.746255, + "lng": 114.696828, + "name": "源城区", + "level": "district", + "parent": "河源市" + }, + { + "adcode": "222403", + "people_count_2010": 483464, + "lat": 43.366921, + "lng": 128.22986, + "name": "敦化市", + "level": "district", + "parent": "延边朝鲜族自治州" + }, + { + "adcode": "230304", + "people_count_2010": 103646, + "lat": 45.348812, + "lng": 130.846823, + "name": "滴道区", + "level": "district", + "parent": "鸡西市" + }, + { + "adcode": "370503", + "people_count_2010": 247595, + "lat": 37.886015, + "lng": 118.529613, + "name": "河口区", + "level": "district", + "parent": "东营市" + }, + { + "adcode": "371202", + "people_count_2010": 989535, + "lat": 36.213662, + "lng": 117.678351, + "name": "莱城区", + "level": "district", + "parent": "莱芜市" + }, + { + "adcode": "230306", + "people_count_2010": 127290, + "lat": 45.338248, + "lng": 131.010501, + "name": "城子河区", + "level": "district", + "parent": "鸡西市" + }, + { + "adcode": "230382", + "people_count_2010": 407451, + "lat": 45.54725, + "lng": 131.874137, + "name": "密山市", + "level": "district", + "parent": "鸡西市" + }, + { + "adcode": "510603", + "people_count_2010": 735070, + "lat": 31.130428, + "lng": 104.389648, + "name": "旌阳区", + "level": "district", + "parent": "德阳市" + }, + { + "adcode": "371723", + "people_count_2010": 612016, + "lat": 34.947366, + "lng": 115.897349, + "name": "成武县", + "level": "district", + "parent": "菏泽市" + }, + { + "adcode": "321281", + "people_count_2010": 1300000, + "lat": 32.938065, + "lng": 119.840162, + "name": "兴化市", + "level": "district", + "parent": "泰州市" + }, + { + "adcode": "410411", + "people_count_2010": 286661, + "lat": 33.725681, + "lng": 113.320873, + "name": "湛河区", + "level": "district", + "parent": "平顶山市" + }, + { + "adcode": "371725", + "people_count_2010": 1000000, + "lat": 35.594773, + "lng": 115.93885, + "name": "郓城县", + "level": "district", + "parent": "菏泽市" + }, + { + "adcode": "420528", + "people_count_2010": 388228, + "lat": 30.466534, + "lng": 111.198475, + "name": "长阳土家族自治县", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "231202", + "people_count_2010": 877114, + "lat": 46.634912, + "lng": 126.990665, + "name": "北林区", + "level": "district", + "parent": "绥化市" + }, + { + "adcode": "371722", + "people_count_2010": 1100000, + "lat": 34.790851, + "lng": 116.08262, + "name": "单县", + "level": "district", + "parent": "菏泽市" + }, + { + "adcode": "410804", + "people_count_2010": 139533, + "lat": 35.265453, + "lng": 113.321703, + "name": "马村区", + "level": "district", + "parent": "焦作市" + }, + { + "adcode": "231223", + "people_count_2010": 474422, + "lat": 46.686596, + "lng": 126.112268, + "name": "青冈县", + "level": "district", + "parent": "绥化市" + }, + { + "adcode": "520423", + "people_count_2010": 886789, + "lat": 26.056096, + "lng": 105.768656, + "name": "镇宁布依族苗族自治县", + "level": "district", + "parent": "安顺市" + }, + { + "adcode": "120225", + "people_count_2010": 784789, + "lat": 40.045342, + "lng": 117.407449, + "name": "蓟县", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "231226", + "people_count_2010": 331343, + "lat": 47.247195, + "lng": 127.111121, + "name": "绥棱县", + "level": "district", + "parent": "绥化市" + }, + { + "adcode": "231283", + "people_count_2010": 769437, + "lat": 47.460428, + "lng": 126.969383, + "name": "海伦市", + "level": "district", + "parent": "绥化市" + }, + { + "adcode": "411524", + "people_count_2010": 495526, + "lat": 31.799982, + "lng": 115.406297, + "name": "商城县", + "level": "district", + "parent": "信阳市" + }, + { + "adcode": "445222", + "people_count_2010": 825727, + "lat": 23.4273, + "lng": 115.838708, + "name": "揭西县", + "level": "district", + "parent": "揭阳市" + }, + { + "adcode": "450903", + "people_count_2010": null, + "lat": 22.58163, + "lng": 110.054155, + "name": "福绵区", + "level": "district", + "parent": "玉林市" + }, + { + "adcode": "441203", + "people_count_2010": 164690, + "lat": 23.155822, + "lng": 112.565249, + "name": "鼎湖区", + "level": "district", + "parent": "肇庆市" + }, + { + "adcode": "441223", + "people_count_2010": 423941, + "lat": 23.631486, + "lng": 112.440419, + "name": "广宁县", + "level": "district", + "parent": "肇庆市" + }, + { + "adcode": "441284", + "people_count_2010": 542873, + "lat": 23.340324, + "lng": 112.695028, + "name": "四会市", + "level": "district", + "parent": "肇庆市" + }, + { + "adcode": "420526", + "people_count_2010": 170630, + "lat": 31.34795, + "lng": 110.754499, + "name": "兴山县", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "420582", + "people_count_2010": 468293, + "lat": 30.824492, + "lng": 111.793419, + "name": "当阳市", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "445203", + "people_count_2010": null, + "lat": 23.569887, + "lng": 116.412947, + "name": "揭东区", + "level": "district", + "parent": "揭阳市" + }, + { + "adcode": "810015", + "people_count_2010": null, + "lat": 22.314203, + "lng": 114.264813, + "name": "西貢區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "522629", + "people_count_2010": 180624, + "lat": 26.727349, + "lng": 108.440499, + "name": "剑河县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "522633", + "people_count_2010": 290960, + "lat": 25.747058, + "lng": 108.912648, + "name": "从江县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "420303", + "people_count_2010": 368471, + "lat": 32.652516, + "lng": 110.772365, + "name": "张湾区", + "level": "district", + "parent": "十堰市" + }, + { + "adcode": "420581", + "people_count_2010": 384598, + "lat": 30.387234, + "lng": 111.454367, + "name": "宜都市", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "441702", + "people_count_2010": 676857, + "lat": 21.859182, + "lng": 111.968909, + "name": "江城区", + "level": "district", + "parent": "阳江市" + }, + { + "adcode": "330212", + "people_count_2010": 1400000, + "lat": 29.831662, + "lng": 121.558436, + "name": "鄞州区", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "420702", + "people_count_2010": null, + "lat": 30.098191, + "lng": 114.681967, + "name": "梁子湖区", + "level": "district", + "parent": "鄂州市" + }, + { + "adcode": "522627", + "people_count_2010": 263850, + "lat": 26.909684, + "lng": 109.212798, + "name": "天柱县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "231221", + "people_count_2010": 458525, + "lat": 46.83352, + "lng": 126.484191, + "name": "望奎县", + "level": "district", + "parent": "绥化市" + }, + { + "adcode": "420304", + "people_count_2010": null, + "lat": 32.838267, + "lng": 110.812099, + "name": "郧阳区", + "level": "district", + "parent": "十堰市" + }, + { + "adcode": "522632", + "people_count_2010": 286322, + "lat": 25.931085, + "lng": 108.521026, + "name": "榕江县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "420302", + "people_count_2010": 399449, + "lat": 32.644463, + "lng": 110.78621, + "name": "茅箭区", + "level": "district", + "parent": "十堰市" + }, + { + "adcode": "450921", + "people_count_2010": 633139, + "lat": 22.856435, + "lng": 110.552467, + "name": "容县", + "level": "district", + "parent": "玉林市" + }, + { + "adcode": "450981", + "people_count_2010": 1100000, + "lat": 22.701648, + "lng": 110.348052, + "name": "北流市", + "level": "district", + "parent": "玉林市" + }, + { + "adcode": "230112", + "people_count_2010": 596856, + "lat": 45.538372, + "lng": 126.972726, + "name": "阿城区", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "520425", + "people_count_2010": 270345, + "lat": 25.751567, + "lng": 106.084515, + "name": "紫云苗族布依族自治县", + "level": "district", + "parent": "安顺市" + }, + { + "adcode": "370684", + "people_count_2010": 451109, + "lat": 37.811168, + "lng": 120.762689, + "name": "蓬莱市", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "451121", + "people_count_2010": 340647, + "lat": 24.172958, + "lng": 110.810865, + "name": "昭平县", + "level": "district", + "parent": "贺州市" + }, + { + "adcode": "620723", + "people_count_2010": 134328, + "lat": 39.152151, + "lng": 100.166333, + "name": "临泽县", + "level": "district", + "parent": "张掖市" + }, + { + "adcode": "420325", + "people_count_2010": 390991, + "lat": 32.055002, + "lng": 110.741966, + "name": "房县", + "level": "district", + "parent": "十堰市" + }, + { + "adcode": "340322", + "people_count_2010": 621973, + "lat": 33.146202, + "lng": 117.888809, + "name": "五河县", + "level": "district", + "parent": "蚌埠市" + }, + { + "adcode": "230502", + "people_count_2010": 251368, + "lat": 46.642961, + "lng": 131.15896, + "name": "尖山区", + "level": "district", + "parent": "双鸭山市" + }, + { + "adcode": "230503", + "people_count_2010": 58012, + "lat": 46.591076, + "lng": 131.163675, + "name": "岭东区", + "level": "district", + "parent": "双鸭山市" + }, + { + "adcode": "230505", + "people_count_2010": 62633, + "lat": 46.594347, + "lng": 131.333181, + "name": "四方台区", + "level": "district", + "parent": "双鸭山市" + }, + { + "adcode": "230522", + "people_count_2010": 110790, + "lat": 46.775159, + "lng": 131.810622, + "name": "友谊县", + "level": "district", + "parent": "双鸭山市" + }, + { + "adcode": "230521", + "people_count_2010": 299890, + "lat": 46.72898, + "lng": 131.13933, + "name": "集贤县", + "level": "district", + "parent": "双鸭山市" + }, + { + "adcode": "230524", + "people_count_2010": 149632, + "lat": 46.801288, + "lng": 134.021162, + "name": "饶河县", + "level": "district", + "parent": "双鸭山市" + }, + { + "adcode": "210181", + "people_count_2010": 657763, + "lat": 41.996508, + "lng": 122.828868, + "name": "新民市", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "500107", + "people_count_2010": 1100000, + "lat": 29.523492, + "lng": 106.480989, + "name": "九龙坡区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "431121", + "people_count_2010": 852204, + "lat": 26.585929, + "lng": 111.85734, + "name": "祁阳县", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "431382", + "people_count_2010": 995515, + "lat": 27.692301, + "lng": 111.670847, + "name": "涟源市", + "level": "district", + "parent": "娄底市" + }, + { + "adcode": "370634", + "people_count_2010": 44025, + "lat": 37.916194, + "lng": 120.738345, + "name": "长岛县", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "420625", + "people_count_2010": 523607, + "lat": 32.262676, + "lng": 111.640147, + "name": "谷城县", + "level": "district", + "parent": "襄阳市" + }, + { + "adcode": "420682", + "people_count_2010": 471482, + "lat": 32.385438, + "lng": 111.675732, + "name": "老河口市", + "level": "district", + "parent": "襄阳市" + }, + { + "adcode": "422822", + "people_count_2010": 412038, + "lat": 30.601632, + "lng": 109.723822, + "name": "建始县", + "level": "district", + "parent": "恩施土家族苗族自治州" + }, + { + "adcode": "410481", + "people_count_2010": 313828, + "lat": 33.302082, + "lng": 113.52625, + "name": "舞钢市", + "level": "district", + "parent": "平顶山市" + }, + { + "adcode": "152221", + "people_count_2010": null, + "lat": 46.076497, + "lng": 121.957544, + "name": "科尔沁右翼前旗", + "level": "district", + "parent": "兴安盟" + }, + { + "adcode": "360424", + "people_count_2010": 739986, + "lat": 29.032729, + "lng": 114.573428, + "name": "修水县", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "652702", + "people_count_2010": null, + "lat": 45.16777, + "lng": 82.569389, + "name": "阿拉山口市", + "level": "district", + "parent": "博尔塔拉蒙古自治州" + }, + { + "adcode": "130205", + "people_count_2010": 262571, + "lat": 39.676171, + "lng": 118.264425, + "name": "开平区", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "421124", + "people_count_2010": 357296, + "lat": 30.735794, + "lng": 115.67753, + "name": "英山县", + "level": "district", + "parent": "黄冈市" + }, + { + "adcode": "522725", + "people_count_2010": 380318, + "lat": 27.066339, + "lng": 107.478417, + "name": "瓮安县", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "620724", + "people_count_2010": 143446, + "lat": 39.376308, + "lng": 99.81665, + "name": "高台县", + "level": "district", + "parent": "张掖市" + }, + { + "adcode": "450108", + "people_count_2010": 344768, + "lat": 22.75909, + "lng": 108.322102, + "name": "良庆区", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "620721", + "people_count_2010": 33653, + "lat": 38.837269, + "lng": 99.617086, + "name": "肃南裕固族自治县", + "level": "district", + "parent": "张掖市" + }, + { + "adcode": "451102", + "people_count_2010": 1400000, + "lat": 24.412446, + "lng": 111.551991, + "name": "八步区", + "level": "district", + "parent": "贺州市" + }, + { + "adcode": "451122", + "people_count_2010": 351124, + "lat": 24.528566, + "lng": 111.303629, + "name": "钟山县", + "level": "district", + "parent": "贺州市" + }, + { + "adcode": "420923", + "people_count_2010": 524799, + "lat": 31.021691, + "lng": 113.750616, + "name": "云梦县", + "level": "district", + "parent": "孝感市" + }, + { + "adcode": "513231", + "people_count_2010": 72391, + "lat": 32.904223, + "lng": 101.700985, + "name": "阿坝县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "632525", + "people_count_2010": 258242, + "lat": 35.587085, + "lng": 100.74792, + "name": "贵南县", + "level": "district", + "parent": "海南藏族自治州" + }, + { + "adcode": "652722", + "people_count_2010": 141593, + "lat": 44.605645, + "lng": 82.892938, + "name": "精河县", + "level": "district", + "parent": "博尔塔拉蒙古自治州" + }, + { + "adcode": "513227", + "people_count_2010": 77731, + "lat": 30.999016, + "lng": 102.363193, + "name": "小金县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "621124", + "people_count_2010": 507386, + "lat": 35.376233, + "lng": 103.862186, + "name": "临洮县", + "level": "district", + "parent": "定西市" + }, + { + "adcode": "530423", + "people_count_2010": 300800, + "lat": 24.112205, + "lng": 102.760039, + "name": "通海县", + "level": "district", + "parent": "玉溪市" + }, + { + "adcode": "650107", + "people_count_2010": 708009, + "lat": 43.36181, + "lng": 88.30994, + "name": "达坂城区", + "level": "district", + "parent": "乌鲁木齐市" + }, + { + "adcode": "320924", + "people_count_2010": 897073, + "lat": 33.773779, + "lng": 120.257444, + "name": "射阳县", + "level": "district", + "parent": "盐城市" + }, + { + "adcode": "653125", + "people_count_2010": 762385, + "lat": 38.414499, + "lng": 77.248884, + "name": "莎车县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "451021", + "people_count_2010": 313253, + "lat": 23.736079, + "lng": 106.904315, + "name": "田阳县", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "620525", + "people_count_2010": null, + "lat": 34.993237, + "lng": 106.212416, + "name": "张家川回族自治县", + "level": "district", + "parent": "天水市" + }, + { + "adcode": "650109", + "people_count_2010": null, + "lat": 43.960982, + "lng": 87.691801, + "name": "米东区", + "level": "district", + "parent": "乌鲁木齐市" + }, + { + "adcode": "320904", + "people_count_2010": null, + "lat": 33.199531, + "lng": 120.470324, + "name": "大丰区", + "level": "district", + "parent": "盐城市" + }, + { + "adcode": "421181", + "people_count_2010": 849090, + "lat": 31.177906, + "lng": 115.02541, + "name": "麻城市", + "level": "district", + "parent": "黄冈市" + }, + { + "adcode": "652223", + "people_count_2010": 1500000, + "lat": 43.252012, + "lng": 94.692773, + "name": "伊吾县", + "level": "district", + "parent": "哈密地区" + }, + { + "adcode": "650103", + "people_count_2010": 664716, + "lat": 43.788872, + "lng": 87.596639, + "name": "沙依巴克区", + "level": "district", + "parent": "乌鲁木齐市" + }, + { + "adcode": "321102", + "people_count_2010": 601876, + "lat": 32.206191, + "lng": 119.454571, + "name": "京口区", + "level": "district", + "parent": "镇江市" + }, + { + "adcode": "321183", + "people_count_2010": 617706, + "lat": 31.947355, + "lng": 119.167135, + "name": "句容市", + "level": "district", + "parent": "镇江市" + }, + { + "adcode": "210423", + "people_count_2010": 290370, + "lat": 42.10135, + "lng": 124.927192, + "name": "清原满族自治县", + "level": "district", + "parent": "抚顺市" + }, + { + "adcode": "532622", + "people_count_2010": 463261, + "lat": 23.612301, + "lng": 104.343989, + "name": "砚山县", + "level": "district", + "parent": "文山壮族苗族自治州" + }, + { + "adcode": "530927", + "people_count_2010": null, + "lat": 23.146887, + "lng": 99.2474, + "name": "沧源佤族自治县", + "level": "district", + "parent": "临沧市" + }, + { + "adcode": "430407", + "people_count_2010": 231592, + "lat": 26.903908, + "lng": 112.607635, + "name": "石鼓区", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "632825", + "people_count_2010": null, + "lat": 37.853631, + "lng": 95.357233, + "name": "海西蒙古族藏族自治州直辖", + "level": "district", + "parent": "海西蒙古族藏族自治州" + }, + { + "adcode": "230882", + "people_count_2010": 437165, + "lat": 47.250747, + "lng": 132.037951, + "name": "富锦市", + "level": "district", + "parent": "佳木斯市" + }, + { + "adcode": "610124", + "people_count_2010": 562768, + "lat": 34.161532, + "lng": 108.216465, + "name": "周至县", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "320921", + "people_count_2010": 509880, + "lat": 34.19996, + "lng": 119.579573, + "name": "响水县", + "level": "district", + "parent": "盐城市" + }, + { + "adcode": "320925", + "people_count_2010": 741764, + "lat": 33.472621, + "lng": 119.793105, + "name": "建湖县", + "level": "district", + "parent": "盐城市" + }, + { + "adcode": "610302", + "people_count_2010": 448189, + "lat": 34.371008, + "lng": 107.144467, + "name": "渭滨区", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "610521", + "people_count_2010": 322148, + "lat": 34.511958, + "lng": 109.76141, + "name": "华县", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "652201", + "people_count_2010": 623059, + "lat": 42.833888, + "lng": 93.509174, + "name": "哈密市", + "level": "district", + "parent": "哈密地区" + }, + { + "adcode": "321112", + "people_count_2010": 302345, + "lat": 32.128972, + "lng": 119.433883, + "name": "丹徒区", + "level": "district", + "parent": "镇江市" + }, + { + "adcode": "420281", + "people_count_2010": 909724, + "lat": 30.098804, + "lng": 114.974842, + "name": "大冶市", + "level": "district", + "parent": "黄石市" + }, + { + "adcode": "430611", + "people_count_2010": 240468, + "lat": 29.438062, + "lng": 113.004082, + "name": "君山区", + "level": "district", + "parent": "岳阳市" + }, + { + "adcode": "430624", + "people_count_2010": 680875, + "lat": 28.677498, + "lng": 112.889748, + "name": "湘阴县", + "level": "district", + "parent": "岳阳市" + }, + { + "adcode": "610581", + "people_count_2010": 391164, + "lat": 35.475238, + "lng": 110.452391, + "name": "韩城市", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "620623", + "people_count_2010": null, + "lat": 36.971678, + "lng": 103.142034, + "name": "天祝藏族自治县", + "level": "district", + "parent": "武威市" + }, + { + "adcode": "621027", + "people_count_2010": 415727, + "lat": 35.677806, + "lng": 107.195706, + "name": "镇原县", + "level": "district", + "parent": "庆阳市" + }, + { + "adcode": "451422", + "people_count_2010": 337133, + "lat": 22.131353, + "lng": 107.067616, + "name": "宁明县", + "level": "district", + "parent": "崇左市" + }, + { + "adcode": "451424", + "people_count_2010": 296555, + "lat": 22.833369, + "lng": 107.200803, + "name": "大新县", + "level": "district", + "parent": "崇左市" + }, + { + "adcode": "654323", + "people_count_2010": 81845, + "lat": 47.113128, + "lng": 87.494569, + "name": "福海县", + "level": "district", + "parent": "阿勒泰地区" + }, + { + "adcode": "610204", + "people_count_2010": 325537, + "lat": 34.910206, + "lng": 108.962538, + "name": "耀州区", + "level": "district", + "parent": "铜川市" + }, + { + "adcode": "620702", + "people_count_2010": 507433, + "lat": 38.931774, + "lng": 100.454862, + "name": "甘州区", + "level": "district", + "parent": "张掖市" + }, + { + "adcode": "431122", + "people_count_2010": 546744, + "lat": 26.397278, + "lng": 111.313035, + "name": "东安县", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "530902", + "people_count_2010": 323708, + "lat": 23.886562, + "lng": 100.086486, + "name": "临翔区", + "level": "district", + "parent": "临沧市" + }, + { + "adcode": "500237", + "people_count_2010": 495072, + "lat": 31.074843, + "lng": 109.878928, + "name": "巫山县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "610525", + "people_count_2010": 386150, + "lat": 35.184, + "lng": 109.937609, + "name": "澄城县", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "540223", + "people_count_2010": null, + "lat": 28.656667, + "lng": 87.123887, + "name": "定日县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "210421", + "people_count_2010": 162588, + "lat": 41.922644, + "lng": 124.097979, + "name": "抚顺县", + "level": "district", + "parent": "抚顺市" + }, + { + "adcode": "310113", + "people_count_2010": null, + "lat": 31.398896, + "lng": 121.489934, + "name": "宝山区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "460202", + "people_count_2010": null, + "lat": 18.407516, + "lng": 109.760778, + "name": "海棠区", + "level": "district", + "parent": "三亚市" + }, + { + "adcode": "350602", + "people_count_2010": 538186, + "lat": 24.509955, + "lng": 117.656461, + "name": "芗城区", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "511902", + "people_count_2010": 1100000, + "lat": 31.858366, + "lng": 106.753671, + "name": "巴州区", + "level": "district", + "parent": "巴中市" + }, + { + "adcode": "370902", + "people_count_2010": 760045, + "lat": 36.189313, + "lng": 117.129984, + "name": "泰山区", + "level": "district", + "parent": "泰安市" + }, + { + "adcode": "533123", + "people_count_2010": 305167, + "lat": 24.709541, + "lng": 97.93393, + "name": "盈江县", + "level": "district", + "parent": "德宏傣族景颇族自治州" + }, + { + "adcode": "610403", + "people_count_2010": null, + "lat": 34.27135, + "lng": 108.086348, + "name": "杨陵区", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "653122", + "people_count_2010": 312455, + "lat": 39.399461, + "lng": 76.053653, + "name": "疏勒县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "220105", + "people_count_2010": 619940, + "lat": 43.870824, + "lng": 125.384727, + "name": "二道区", + "level": "district", + "parent": "长春市" + }, + { + "adcode": "520302", + "people_count_2010": 656592, + "lat": 27.694395, + "lng": 106.943784, + "name": "红花岗区", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "411523", + "people_count_2010": 275304, + "lat": 31.63515, + "lng": 114.87705, + "name": "新县", + "level": "district", + "parent": "信阳市" + }, + { + "adcode": "652828", + "people_count_2010": 72556, + "lat": 42.268863, + "lng": 86.864947, + "name": "和硕县", + "level": "district", + "parent": "巴音郭楞蒙古自治州" + }, + { + "adcode": "410182", + "people_count_2010": 613804, + "lat": 34.789077, + "lng": 113.391523, + "name": "荥阳市", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "460203", + "people_count_2010": null, + "lat": 18.247436, + "lng": 109.512081, + "name": "吉阳区", + "level": "district", + "parent": "三亚市" + }, + { + "adcode": "610113", + "people_count_2010": 1200000, + "lat": 34.213389, + "lng": 108.926593, + "name": "雁塔区", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "450223", + "people_count_2010": 421019, + "lat": 24.483405, + "lng": 109.740805, + "name": "鹿寨县", + "level": "district", + "parent": "柳州市" + }, + { + "adcode": "310118", + "people_count_2010": 1100000, + "lat": 31.151209, + "lng": 121.113021, + "name": "青浦区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "441224", + "people_count_2010": 813032, + "lat": 23.913072, + "lng": 112.182466, + "name": "怀集县", + "level": "district", + "parent": "肇庆市" + }, + { + "adcode": "360203", + "people_count_2010": 281358, + "lat": 29.292812, + "lng": 117.214814, + "name": "珠山区", + "level": "district", + "parent": "景德镇市" + }, + { + "adcode": "653127", + "people_count_2010": 258978, + "lat": 38.903384, + "lng": 77.651538, + "name": "麦盖提县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "320903", + "people_count_2010": 711322, + "lat": 33.341288, + "lng": 120.139753, + "name": "盐都区", + "level": "district", + "parent": "盐城市" + }, + { + "adcode": "130729", + "people_count_2010": 211706, + "lat": 40.765136, + "lng": 114.736131, + "name": "万全县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "320826", + "people_count_2010": 859787, + "lat": 33.771308, + "lng": 119.266078, + "name": "涟水县", + "level": "district", + "parent": "淮安市" + }, + { + "adcode": "330723", + "people_count_2010": 349899, + "lat": 28.896563, + "lng": 119.819159, + "name": "武义县", + "level": "district", + "parent": "金华市" + }, + { + "adcode": "632222", + "people_count_2010": 46473, + "lat": 38.175409, + "lng": 100.249778, + "name": "祁连县", + "level": "district", + "parent": "海北藏族自治州" + }, + { + "adcode": "430725", + "people_count_2010": 853662, + "lat": 28.902734, + "lng": 111.484503, + "name": "桃源县", + "level": "district", + "parent": "常德市" + }, + { + "adcode": "411024", + "people_count_2010": 551611, + "lat": 34.100502, + "lng": 114.188507, + "name": "鄢陵县", + "level": "district", + "parent": "许昌市" + }, + { + "adcode": "411402", + "people_count_2010": 787984, + "lat": 34.436553, + "lng": 115.65459, + "name": "梁园区", + "level": "district", + "parent": "商丘市" + }, + { + "adcode": "411425", + "people_count_2010": 954785, + "lat": 34.399634, + "lng": 115.863811, + "name": "虞城县", + "level": "district", + "parent": "商丘市" + }, + { + "adcode": "230103", + "people_count_2010": 1300000, + "lat": 45.755971, + "lng": 126.652098, + "name": "南岗区", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "410821", + "people_count_2010": 287814, + "lat": 35.229923, + "lng": 113.447465, + "name": "修武县", + "level": "district", + "parent": "焦作市" + }, + { + "adcode": "540422", + "people_count_2010": null, + "lat": 29.213811, + "lng": 94.213679, + "name": "米林县", + "level": "district", + "parent": "林芝市" + }, + { + "adcode": "130208", + "people_count_2010": 916092, + "lat": 39.831363, + "lng": 118.155779, + "name": "丰润区", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "411121", + "people_count_2010": 2000000, + "lat": 33.436278, + "lng": 113.610565, + "name": "舞阳县", + "level": "district", + "parent": "漯河市" + }, + { + "adcode": "411321", + "people_count_2010": 557153, + "lat": 33.488617, + "lng": 112.435583, + "name": "南召县", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "411203", + "people_count_2010": null, + "lat": 34.720244, + "lng": 111.103851, + "name": "陕州区", + "level": "district", + "parent": "三门峡市" + }, + { + "adcode": "150222", + "people_count_2010": 378546, + "lat": 41.030004, + "lng": 110.063421, + "name": "固阳县", + "level": "district", + "parent": "包头市" + }, + { + "adcode": "445303", + "people_count_2010": null, + "lat": 23.073152, + "lng": 112.005609, + "name": "云安区", + "level": "district", + "parent": "云浮市" + }, + { + "adcode": "653201", + "people_count_2010": 322300, + "lat": 37.108944, + "lng": 79.927542, + "name": "和田市", + "level": "district", + "parent": "和田地区" + }, + { + "adcode": "653225", + "people_count_2010": 147050, + "lat": 37.001672, + "lng": 80.803572, + "name": "策勒县", + "level": "district", + "parent": "和田地区" + }, + { + "adcode": "652302", + "people_count_2010": 165006, + "lat": 44.152153, + "lng": 87.98384, + "name": "阜康市", + "level": "district", + "parent": "昌吉回族自治州" + }, + { + "adcode": "411729", + "people_count_2010": 1500000, + "lat": 32.749948, + "lng": 114.975246, + "name": "新蔡县", + "level": "district", + "parent": "驻马店市" + }, + { + "adcode": "652327", + "people_count_2010": 244722, + "lat": 43.997162, + "lng": 89.181288, + "name": "吉木萨尔县", + "level": "district", + "parent": "昌吉回族自治州" + }, + { + "adcode": "220284", + "people_count_2010": 505779, + "lat": 42.942476, + "lng": 126.059929, + "name": "磐石市", + "level": "district", + "parent": "吉林市" + }, + { + "adcode": "652823", + "people_count_2010": 96068, + "lat": 41.337428, + "lng": 86.263412, + "name": "尉犁县", + "level": "district", + "parent": "巴音郭楞蒙古自治州" + }, + { + "adcode": "511703", + "people_count_2010": null, + "lat": 31.199062, + "lng": 107.507926, + "name": "达川区", + "level": "district", + "parent": "达州市" + }, + { + "adcode": "511823", + "people_count_2010": 324408, + "lat": 29.349915, + "lng": 102.677145, + "name": "汉源县", + "level": "district", + "parent": "雅安市" + }, + { + "adcode": "120106", + "people_count_2010": 531526, + "lat": 39.175066, + "lng": 117.163301, + "name": "红桥区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "411303", + "people_count_2010": 924578, + "lat": 32.989877, + "lng": 112.528789, + "name": "卧龙区", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "150124", + "people_count_2010": 93887, + "lat": 39.912479, + "lng": 111.67222, + "name": "清水河县", + "level": "district", + "parent": "呼和浩特市" + }, + { + "adcode": "445302", + "people_count_2010": 318145, + "lat": 22.930827, + "lng": 112.04471, + "name": "云城区", + "level": "district", + "parent": "云浮市" + }, + { + "adcode": "513431", + "people_count_2010": 251836, + "lat": 28.010554, + "lng": 102.843991, + "name": "昭觉县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "131002", + "people_count_2010": 367670, + "lat": 39.502569, + "lng": 116.694544, + "name": "安次区", + "level": "district", + "parent": "廊坊市" + }, + { + "adcode": "130304", + "people_count_2010": 85647, + "lat": 39.825121, + "lng": 119.486286, + "name": "北戴河区", + "level": "district", + "parent": "秦皇岛市" + }, + { + "adcode": "652922", + "people_count_2010": 233933, + "lat": 41.272995, + "lng": 80.243273, + "name": "温宿县", + "level": "district", + "parent": "阿克苏地区" + }, + { + "adcode": "130121", + "people_count_2010": 309882, + "lat": 38.033614, + "lng": 114.144488, + "name": "井陉县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "330784", + "people_count_2010": 723490, + "lat": 28.895293, + "lng": 120.036328, + "name": "永康市", + "level": "district", + "parent": "金华市" + }, + { + "adcode": "341324", + "people_count_2010": 798650, + "lat": 33.47758, + "lng": 117.885443, + "name": "泗县", + "level": "district", + "parent": "宿州市" + }, + { + "adcode": "530627", + "people_count_2010": 1300000, + "lat": 27.436267, + "lng": 104.873055, + "name": "镇雄县", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "532930", + "people_count_2010": 268313, + "lat": 26.111184, + "lng": 99.951708, + "name": "洱源县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "622921", + "people_count_2010": 326123, + "lat": 35.49236, + "lng": 102.993873, + "name": "临夏县", + "level": "district", + "parent": "临夏回族自治州" + }, + { + "adcode": "130725", + "people_count_2010": 151639, + "lat": 41.080091, + "lng": 113.977713, + "name": "尚义县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "652923", + "people_count_2010": 462588, + "lat": 41.717141, + "lng": 82.96304, + "name": "库车县", + "level": "district", + "parent": "阿克苏地区" + }, + { + "adcode": "120101", + "people_count_2010": 273477, + "lat": 39.118327, + "lng": 117.195907, + "name": "和平区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "130522", + "people_count_2010": 204086, + "lat": 37.444009, + "lng": 114.506873, + "name": "临城县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "220882", + "people_count_2010": 431017, + "lat": 45.507648, + "lng": 124.291512, + "name": "大安市", + "level": "district", + "parent": "白城市" + }, + { + "adcode": "513423", + "people_count_2010": 778986, + "lat": 27.423415, + "lng": 101.508909, + "name": "盐源县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "131022", + "people_count_2010": 418689, + "lat": 39.436468, + "lng": 116.299894, + "name": "固安县", + "level": "district", + "parent": "廊坊市" + }, + { + "adcode": "131025", + "people_count_2010": 477773, + "lat": 38.699215, + "lng": 116.640735, + "name": "大城县", + "level": "district", + "parent": "廊坊市" + }, + { + "adcode": "120114", + "people_count_2010": 951078, + "lat": 39.376925, + "lng": 117.057959, + "name": "武清区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "513338", + "people_count_2010": 4600000, + "lat": 28.71134, + "lng": 99.288036, + "name": "得荣县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "630203", + "people_count_2010": null, + "lat": 36.502714, + "lng": 102.104295, + "name": "平安区", + "level": "district", + "parent": "海东市" + }, + { + "adcode": "630223", + "people_count_2010": null, + "lat": 36.83994, + "lng": 101.956734, + "name": "互助土族自治县", + "level": "district", + "parent": "海东市" + }, + { + "adcode": "350206", + "people_count_2010": 931291, + "lat": 24.512764, + "lng": 118.10943, + "name": "湖里区", + "level": "district", + "parent": "厦门市" + }, + { + "adcode": "150722", + "people_count_2010": 276912, + "lat": 48.478385, + "lng": 124.507401, + "name": "莫力达瓦达斡尔族自治旗", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "130223", + "people_count_2010": 554315, + "lat": 39.744851, + "lng": 118.699547, + "name": "滦县", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "130281", + "people_count_2010": 737011, + "lat": 40.188616, + "lng": 117.965875, + "name": "遵化市", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "130727", + "people_count_2010": 258086, + "lat": 40.113419, + "lng": 114.167343, + "name": "阳原县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "130730", + "people_count_2010": 352307, + "lat": 40.405405, + "lng": 115.520846, + "name": "怀来县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "150824", + "people_count_2010": 134204, + "lat": 41.57254, + "lng": 108.515255, + "name": "乌拉特中旗", + "level": "district", + "parent": "巴彦淖尔市" + }, + { + "adcode": "150121", + "people_count_2010": null, + "lat": 40.720416, + "lng": 111.133615, + "name": "土默特左旗", + "level": "district", + "parent": "呼和浩特市" + }, + { + "adcode": "130609", + "people_count_2010": null, + "lat": 39.020395, + "lng": 115.64941, + "name": "徐水区", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "150104", + "people_count_2010": 383365, + "lat": 40.799421, + "lng": 111.66543, + "name": "玉泉区", + "level": "district", + "parent": "呼和浩特市" + }, + { + "adcode": "150125", + "people_count_2010": 108726, + "lat": 41.094483, + "lng": 111.456563, + "name": "武川县", + "level": "district", + "parent": "呼和浩特市" + }, + { + "adcode": "130630", + "people_count_2010": 260678, + "lat": 39.35755, + "lng": 114.692567, + "name": "涞源县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "130726", + "people_count_2010": 450236, + "lat": 39.837181, + "lng": 114.582695, + "name": "蔚县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "150826", + "people_count_2010": 257943, + "lat": 40.888797, + "lng": 107.147682, + "name": "杭锦后旗", + "level": "district", + "parent": "巴彦淖尔市" + }, + { + "adcode": "150823", + "people_count_2010": 293269, + "lat": 40.725209, + "lng": 108.656816, + "name": "乌拉特前旗", + "level": "district", + "parent": "巴彦淖尔市" + }, + { + "adcode": "411122", + "people_count_2010": null, + "lat": 33.80609, + "lng": 113.938891, + "name": "临颍县", + "level": "district", + "parent": "漯河市" + }, + { + "adcode": "131127", + "people_count_2010": 528693, + "lat": 37.686622, + "lng": 116.258446, + "name": "景县", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "130627", + "people_count_2010": 529067, + "lat": 38.748542, + "lng": 114.981241, + "name": "唐县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "130706", + "people_count_2010": 62764, + "lat": 40.488645, + "lng": 115.281002, + "name": "下花园区", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "220183", + "people_count_2010": 748369, + "lat": 44.533909, + "lng": 125.703327, + "name": "德惠市", + "level": "district", + "parent": "长春市" + }, + { + "adcode": "130804", + "people_count_2010": 62454, + "lat": 40.546956, + "lng": 117.661154, + "name": "鹰手营子矿区", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "130823", + "people_count_2010": 446939, + "lat": 41.00561, + "lng": 118.690238, + "name": "平泉县", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "150923", + "people_count_2010": 234417, + "lat": 41.560163, + "lng": 113.560643, + "name": "商都县", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "150926", + "people_count_2010": 463400, + "lat": 40.786859, + "lng": 113.211958, + "name": "察哈尔右翼前旗", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "620104", + "people_count_2010": null, + "lat": 36.100369, + "lng": 103.622331, + "name": "西固区", + "level": "district", + "parent": "兰州市" + }, + { + "adcode": "620122", + "people_count_2010": 131785, + "lat": 36.331254, + "lng": 103.94933, + "name": "皋兰县", + "level": "district", + "parent": "兰州市" + }, + { + "adcode": "330483", + "people_count_2010": 815848, + "lat": 30.629065, + "lng": 120.551085, + "name": "桐乡市", + "level": "district", + "parent": "嘉兴市" + }, + { + "adcode": "150521", + "people_count_2010": 1300000, + "lat": 44.127166, + "lng": 123.313873, + "name": "科尔沁左翼中旗", + "level": "district", + "parent": "通辽市" + }, + { + "adcode": "150525", + "people_count_2010": 401509, + "lat": 42.84685, + "lng": 120.662543, + "name": "奈曼旗", + "level": "district", + "parent": "通辽市" + }, + { + "adcode": "130825", + "people_count_2010": 372030, + "lat": 41.316667, + "lng": 117.736343, + "name": "隆化县", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "630224", + "people_count_2010": null, + "lat": 36.098322, + "lng": 102.262329, + "name": "化隆回族自治县", + "level": "district", + "parent": "海东市" + }, + { + "adcode": "152922", + "people_count_2010": 25430, + "lat": 39.21159, + "lng": 101.671984, + "name": "阿拉善右旗", + "level": "district", + "parent": "阿拉善盟" + }, + { + "adcode": "152921", + "people_count_2010": 173494, + "lat": 38.847241, + "lng": 105.70192, + "name": "阿拉善左旗", + "level": "district", + "parent": "阿拉善盟" + }, + { + "adcode": "152923", + "people_count_2010": 32410, + "lat": 41.958813, + "lng": 101.06944, + "name": "额济纳旗", + "level": "district", + "parent": "阿拉善盟" + }, + { + "adcode": "152222", + "people_count_2010": null, + "lat": 45.059645, + "lng": 121.472818, + "name": "科尔沁右翼中旗", + "level": "district", + "parent": "兴安盟" + }, + { + "adcode": "360681", + "people_count_2010": 558451, + "lat": 28.283693, + "lng": 117.212103, + "name": "贵溪市", + "level": "district", + "parent": "鹰潭市" + }, + { + "adcode": "370781", + "people_count_2010": 940355, + "lat": 36.697855, + "lng": 118.484693, + "name": "青州市", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "371122", + "people_count_2010": 995552, + "lat": 35.588115, + "lng": 118.832859, + "name": "莒县", + "level": "district", + "parent": "日照市" + }, + { + "adcode": "152224", + "people_count_2010": 274213, + "lat": 45.380986, + "lng": 121.564856, + "name": "突泉县", + "level": "district", + "parent": "兴安盟" + }, + { + "adcode": "450326", + "people_count_2010": 233504, + "lat": 24.986692, + "lng": 109.989208, + "name": "永福县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "330205", + "people_count_2010": 361242, + "lat": 29.888361, + "lng": 121.559282, + "name": "江北区", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "360802", + "people_count_2010": 338523, + "lat": 27.112367, + "lng": 114.987331, + "name": "吉州区", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "152522", + "people_count_2010": 43574, + "lat": 44.022728, + "lng": 114.970618, + "name": "阿巴嘎旗", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "130426", + "people_count_2010": 413057, + "lat": 36.563143, + "lng": 113.673297, + "name": "涉县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "630202", + "people_count_2010": null, + "lat": 36.480291, + "lng": 102.402431, + "name": "乐都区", + "level": "district", + "parent": "海东市" + }, + { + "adcode": "150425", + "people_count_2010": 211155, + "lat": 43.256233, + "lng": 117.542465, + "name": "克什克腾旗", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "150430", + "people_count_2010": 547043, + "lat": 42.287012, + "lng": 119.906486, + "name": "敖汉旗", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "331121", + "people_count_2010": 336542, + "lat": 28.135247, + "lng": 120.291939, + "name": "青田县", + "level": "district", + "parent": "丽水市" + }, + { + "adcode": "330781", + "people_count_2010": 560514, + "lat": 29.210065, + "lng": 119.460521, + "name": "兰溪市", + "level": "district", + "parent": "金华市" + }, + { + "adcode": "350104", + "people_count_2010": 762746, + "lat": 26.038912, + "lng": 119.320988, + "name": "仓山区", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "440305", + "people_count_2010": null, + "lat": 22.531221, + "lng": 113.92943, + "name": "南山区", + "level": "district", + "parent": "深圳市" + }, + { + "adcode": "450327", + "people_count_2010": 233598, + "lat": 25.489098, + "lng": 111.160248, + "name": "灌阳县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "360724", + "people_count_2010": 257464, + "lat": 25.794284, + "lng": 114.540537, + "name": "上犹县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "540227", + "people_count_2010": null, + "lat": 29.431597, + "lng": 88.260517, + "name": "谢通门县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "430527", + "people_count_2010": 351139, + "lat": 26.580622, + "lng": 110.155075, + "name": "绥宁县", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "360722", + "people_count_2010": 664047, + "lat": 25.38023, + "lng": 114.930893, + "name": "信丰县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "360702", + "people_count_2010": 642653, + "lat": 25.851367, + "lng": 114.93872, + "name": "章贡区", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "230404", + "people_count_2010": 1100000, + "lat": 47.31324, + "lng": 130.275533, + "name": "南山区", + "level": "district", + "parent": "鹤岗市" + }, + { + "adcode": "371427", + "people_count_2010": 500514, + "lat": 36.950501, + "lng": 116.003816, + "name": "夏津县", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "630122", + "people_count_2010": 437835, + "lat": 36.500419, + "lng": 101.569475, + "name": "湟中县", + "level": "district", + "parent": "西宁市" + }, + { + "adcode": "330302", + "people_count_2010": 1300000, + "lat": 28.003352, + "lng": 120.674231, + "name": "鹿城区", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "540224", + "people_count_2010": null, + "lat": 28.901077, + "lng": 88.023007, + "name": "萨迦县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "350627", + "people_count_2010": 333969, + "lat": 24.516425, + "lng": 117.365462, + "name": "南靖县", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "371724", + "people_count_2010": 860581, + "lat": 35.390999, + "lng": 116.089341, + "name": "巨野县", + "level": "district", + "parent": "菏泽市" + }, + { + "adcode": "370827", + "people_count_2010": 437146, + "lat": 34.997706, + "lng": 116.650023, + "name": "鱼台县", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "371425", + "people_count_2010": 602042, + "lat": 36.795497, + "lng": 116.758394, + "name": "齐河县", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "370521", + "people_count_2010": 242292, + "lat": 37.588679, + "lng": 118.551314, + "name": "垦利县", + "level": "district", + "parent": "东营市" + }, + { + "adcode": "360502", + "people_count_2010": 839488, + "lat": 27.819171, + "lng": 114.923923, + "name": "渝水区", + "level": "district", + "parent": "新余市" + }, + { + "adcode": "542423", + "people_count_2010": 60179, + "lat": 31.479917, + "lng": 93.68044, + "name": "比如县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "431381", + "people_count_2010": 327146, + "lat": 27.685759, + "lng": 111.434674, + "name": "冷水江市", + "level": "district", + "parent": "娄底市" + }, + { + "adcode": "371502", + "people_count_2010": 1200000, + "lat": 36.45606, + "lng": 115.980023, + "name": "东昌府区", + "level": "district", + "parent": "聊城市" + }, + { + "adcode": "540327", + "people_count_2010": null, + "lat": 29.671335, + "lng": 97.840532, + "name": "左贡县", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "370523", + "people_count_2010": 507523, + "lat": 37.05161, + "lng": 118.407522, + "name": "广饶县", + "level": "district", + "parent": "东营市" + }, + { + "adcode": "371523", + "people_count_2010": 520016, + "lat": 36.591934, + "lng": 116.25335, + "name": "茌平县", + "level": "district", + "parent": "聊城市" + }, + { + "adcode": "371581", + "people_count_2010": 719611, + "lat": 36.842598, + "lng": 115.713462, + "name": "临清市", + "level": "district", + "parent": "聊城市" + }, + { + "adcode": "371728", + "people_count_2010": 711080, + "lat": 35.289637, + "lng": 115.098412, + "name": "东明县", + "level": "district", + "parent": "菏泽市" + }, + { + "adcode": "210113", + "people_count_2010": null, + "lat": 42.052312, + "lng": 123.521471, + "name": "沈北新区", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "421003", + "people_count_2010": 553756, + "lat": 30.350674, + "lng": 112.195354, + "name": "荆州区", + "level": "district", + "parent": "荆州市" + }, + { + "adcode": "431125", + "people_count_2010": 231898, + "lat": 25.268154, + "lng": 111.346803, + "name": "江永县", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "430225", + "people_count_2010": 202071, + "lat": 26.489459, + "lng": 113.776884, + "name": "炎陵县", + "level": "district", + "parent": "株洲市" + }, + { + "adcode": "371526", + "people_count_2010": 473422, + "lat": 36.859755, + "lng": 116.229662, + "name": "高唐县", + "level": "district", + "parent": "聊城市" + }, + { + "adcode": "330727", + "people_count_2010": 174665, + "lat": 29.052627, + "lng": 120.44513, + "name": "磐安县", + "level": "district", + "parent": "金华市" + }, + { + "adcode": "410822", + "people_count_2010": 436319, + "lat": 35.170351, + "lng": 113.069313, + "name": "博爱县", + "level": "district", + "parent": "焦作市" + }, + { + "adcode": "371522", + "people_count_2010": 958827, + "lat": 36.237597, + "lng": 115.667291, + "name": "莘县", + "level": "district", + "parent": "聊城市" + }, + { + "adcode": "530427", + "people_count_2010": null, + "lat": 24.0664, + "lng": 101.990903, + "name": "新平彝族傣族自治县", + "level": "district", + "parent": "玉溪市" + }, + { + "adcode": "530424", + "people_count_2010": 214650, + "lat": 24.189807, + "lng": 102.928982, + "name": "华宁县", + "level": "district", + "parent": "玉溪市" + }, + { + "adcode": "530322", + "people_count_2010": 622397, + "lat": 25.022878, + "lng": 103.655233, + "name": "陆良县", + "level": "district", + "parent": "曲靖市" + }, + { + "adcode": "530323", + "people_count_2010": 392361, + "lat": 24.825681, + "lng": 103.993808, + "name": "师宗县", + "level": "district", + "parent": "曲靖市" + }, + { + "adcode": "530422", + "people_count_2010": 169366, + "lat": 24.669679, + "lng": 102.916652, + "name": "澄江县", + "level": "district", + "parent": "玉溪市" + }, + { + "adcode": "530425", + "people_count_2010": 1500000, + "lat": 24.669598, + "lng": 102.16211, + "name": "易门县", + "level": "district", + "parent": "玉溪市" + }, + { + "adcode": "230714", + "people_count_2010": 21147, + "lat": 48.59112, + "lng": 129.437847, + "name": "乌伊岭区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "230711", + "people_count_2010": 31416, + "lat": 47.726961, + "lng": 128.802941, + "name": "乌马河区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "430503", + "people_count_2010": 340605, + "lat": 27.233593, + "lng": 111.462968, + "name": "大祥区", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "640422", + "people_count_2010": 354321, + "lat": 35.965384, + "lng": 105.731801, + "name": "西吉县", + "level": "district", + "parent": "固原市" + }, + { + "adcode": "230321", + "people_count_2010": 273871, + "lat": 45.250892, + "lng": 131.148907, + "name": "鸡东县", + "level": "district", + "parent": "鸡西市" + }, + { + "adcode": "632621", + "people_count_2010": 51245, + "lat": 34.473386, + "lng": 100.243531, + "name": "玛沁县", + "level": "district", + "parent": "果洛藏族自治州" + }, + { + "adcode": "632625", + "people_count_2010": 26081, + "lat": 33.430217, + "lng": 101.484884, + "name": "久治县", + "level": "district", + "parent": "果洛藏族自治州" + }, + { + "adcode": "130982", + "people_count_2010": null, + "lat": 38.706513, + "lng": 116.106764, + "name": "任丘市", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "320302", + "people_count_2010": null, + "lat": 34.269397, + "lng": 117.192941, + "name": "鼓楼区", + "level": "district", + "parent": "徐州市" + }, + { + "adcode": "632722", + "people_count_2010": 58268, + "lat": 32.891886, + "lng": 95.293423, + "name": "杂多县", + "level": "district", + "parent": "玉树藏族自治州" + }, + { + "adcode": "440224", + "people_count_2010": 200354, + "lat": 25.088226, + "lng": 113.748627, + "name": "仁化县", + "level": "district", + "parent": "韶关市" + }, + { + "adcode": "632623", + "people_count_2010": 34840, + "lat": 33.966987, + "lng": 99.902589, + "name": "甘德县", + "level": "district", + "parent": "果洛藏族自治州" + }, + { + "adcode": "632626", + "people_count_2010": 389775, + "lat": 34.91528, + "lng": 98.211343, + "name": "玛多县", + "level": "district", + "parent": "果洛藏族自治州" + }, + { + "adcode": "511526", + "people_count_2010": 379798, + "lat": 28.449041, + "lng": 104.712268, + "name": "珙县", + "level": "district", + "parent": "宜宾市" + }, + { + "adcode": "331082", + "people_count_2010": 1000000, + "lat": 28.845441, + "lng": 121.131229, + "name": "临海市", + "level": "district", + "parent": "台州市" + }, + { + "adcode": "331081", + "people_count_2010": 1400000, + "lat": 28.368781, + "lng": 121.373611, + "name": "温岭市", + "level": "district", + "parent": "台州市" + }, + { + "adcode": "130283", + "people_count_2010": 728160, + "lat": 40.012108, + "lng": 118.701933, + "name": "迁安市", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "522628", + "people_count_2010": 154869, + "lat": 26.680625, + "lng": 109.20252, + "name": "锦屏县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "210681", + "people_count_2010": 627475, + "lat": 39.883467, + "lng": 124.149437, + "name": "东港市", + "level": "district", + "parent": "丹东市" + }, + { + "adcode": "620502", + "people_count_2010": 643906, + "lat": 34.578645, + "lng": 105.724477, + "name": "秦州区", + "level": "district", + "parent": "天水市" + }, + { + "adcode": "510105", + "people_count_2010": 828140, + "lat": 30.667648, + "lng": 104.055731, + "name": "青羊区", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "512081", + "people_count_2010": 2000000, + "lat": 30.390666, + "lng": 104.550339, + "name": "简阳市", + "level": "district", + "parent": "资阳市" + }, + { + "adcode": "411725", + "people_count_2010": 406021, + "lat": 32.801538, + "lng": 114.026679, + "name": "确山县", + "level": "district", + "parent": "驻马店市" + }, + { + "adcode": "431102", + "people_count_2010": 532705, + "lat": 26.223347, + "lng": 111.626348, + "name": "零陵区", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "230224", + "people_count_2010": 302027, + "lat": 46.39233, + "lng": 123.41953, + "name": "泰来县", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "350322", + "people_count_2010": 824707, + "lat": 25.356529, + "lng": 118.694331, + "name": "仙游县", + "level": "district", + "parent": "莆田市" + }, + { + "adcode": "440514", + "people_count_2010": 1300000, + "lat": 23.249798, + "lng": 116.423607, + "name": "潮南区", + "level": "district", + "parent": "汕头市" + }, + { + "adcode": "430204", + "people_count_2010": 283179, + "lat": 27.871945, + "lng": 113.11295, + "name": "石峰区", + "level": "district", + "parent": "株洲市" + }, + { + "adcode": "360104", + "people_count_2010": 316723, + "lat": 28.635724, + "lng": 115.907292, + "name": "青云谱区", + "level": "district", + "parent": "南昌市" + }, + { + "adcode": "411502", + "people_count_2010": 594391, + "lat": 32.123274, + "lng": 114.075031, + "name": "浉河区", + "level": "district", + "parent": "信阳市" + }, + { + "adcode": "130528", + "people_count_2010": 764828, + "lat": 37.618956, + "lng": 114.921027, + "name": "宁晋县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "371321", + "people_count_2010": 822727, + "lat": 35.547002, + "lng": 118.455395, + "name": "沂南县", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "510724", + "people_count_2010": 366802, + "lat": 31.53894, + "lng": 104.560341, + "name": "安县", + "level": "district", + "parent": "绵阳市" + }, + { + "adcode": "360983", + "people_count_2010": 811633, + "lat": 28.420951, + "lng": 115.381527, + "name": "高安市", + "level": "district", + "parent": "宜春市" + }, + { + "adcode": "620123", + "people_count_2010": 437163, + "lat": 35.84443, + "lng": 104.114975, + "name": "榆中县", + "level": "district", + "parent": "兰州市" + }, + { + "adcode": "540221", + "people_count_2010": null, + "lat": 29.680459, + "lng": 89.099434, + "name": "南木林县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "211103", + "people_count_2010": 468080, + "lat": 41.122423, + "lng": 122.071624, + "name": "兴隆台区", + "level": "district", + "parent": "盘锦市" + }, + { + "adcode": "451481", + "people_count_2010": 112159, + "lat": 22.108882, + "lng": 106.759038, + "name": "凭祥市", + "level": "district", + "parent": "崇左市" + }, + { + "adcode": "511129", + "people_count_2010": 216737, + "lat": 28.956338, + "lng": 103.90211, + "name": "沐川县", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "620102", + "people_count_2010": null, + "lat": 36.049115, + "lng": 103.841032, + "name": "城关区", + "level": "district", + "parent": "兰州市" + }, + { + "adcode": "220403", + "people_count_2010": 177978, + "lat": 42.920415, + "lng": 125.151424, + "name": "西安区", + "level": "district", + "parent": "辽源市" + }, + { + "adcode": "621122", + "people_count_2010": 453259, + "lat": 35.003409, + "lng": 104.637554, + "name": "陇西县", + "level": "district", + "parent": "定西市" + }, + { + "adcode": "340123", + "people_count_2010": 858895, + "lat": 31.719646, + "lng": 117.166118, + "name": "肥西县", + "level": "district", + "parent": "合肥市" + }, + { + "adcode": "513430", + "people_count_2010": 165121, + "lat": 27.695916, + "lng": 103.248704, + "name": "金阳县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "420205", + "people_count_2010": 57327, + "lat": 30.20601, + "lng": 114.901366, + "name": "铁山区", + "level": "district", + "parent": "黄石市" + }, + { + "adcode": "513437", + "people_count_2010": 223885, + "lat": 28.262946, + "lng": 103.571584, + "name": "雷波县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "440304", + "people_count_2010": 1300000, + "lat": 22.541009, + "lng": 114.05096, + "name": "福田区", + "level": "district", + "parent": "深圳市" + }, + { + "adcode": "653222", + "people_count_2010": 500114, + "lat": 37.271511, + "lng": 79.736629, + "name": "墨玉县", + "level": "district", + "parent": "和田地区" + }, + { + "adcode": "513329", + "people_count_2010": 50393, + "lat": 30.93896, + "lng": 100.312094, + "name": "新龙县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "140725", + "people_count_2010": 211014, + "lat": 37.891136, + "lng": 113.177708, + "name": "寿阳县", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "450324", + "people_count_2010": 633174, + "lat": 25.929897, + "lng": 111.072989, + "name": "全州县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "140932", + "people_count_2010": 112111, + "lat": 39.442153, + "lng": 111.500477, + "name": "偏关县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "360423", + "people_count_2010": 360269, + "lat": 29.260182, + "lng": 115.105646, + "name": "武宁县", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "210881", + "people_count_2010": 691595, + "lat": 40.405234, + "lng": 122.355534, + "name": "盖州市", + "level": "district", + "parent": "营口市" + }, + { + "adcode": "130802", + "people_count_2010": 424897, + "lat": 40.976204, + "lng": 117.939152, + "name": "双桥区", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "420222", + "people_count_2010": 827631, + "lat": 29.841572, + "lng": 115.212883, + "name": "阳新县", + "level": "district", + "parent": "黄石市" + }, + { + "adcode": "320205", + "people_count_2010": 681413, + "lat": 31.585559, + "lng": 120.357298, + "name": "锡山区", + "level": "district", + "parent": "无锡市" + }, + { + "adcode": "320206", + "people_count_2010": 691077, + "lat": 31.681019, + "lng": 120.303543, + "name": "惠山区", + "level": "district", + "parent": "无锡市" + }, + { + "adcode": "320282", + "people_count_2010": 1200000, + "lat": 31.364384, + "lng": 119.820538, + "name": "宜兴市", + "level": "district", + "parent": "无锡市" + }, + { + "adcode": "512002", + "people_count_2010": 905729, + "lat": 30.121686, + "lng": 104.642338, + "name": "雁江区", + "level": "district", + "parent": "资阳市" + }, + { + "adcode": "341221", + "people_count_2010": 1500000, + "lat": 33.062698, + "lng": 115.261688, + "name": "临泉县", + "level": "district", + "parent": "阜阳市" + }, + { + "adcode": "341282", + "people_count_2010": 561956, + "lat": 33.26153, + "lng": 115.362117, + "name": "界首市", + "level": "district", + "parent": "阜阳市" + }, + { + "adcode": "320211", + "people_count_2010": 1200000, + "lat": 31.550228, + "lng": 120.266053, + "name": "滨湖区", + "level": "district", + "parent": "无锡市" + }, + { + "adcode": "341523", + "people_count_2010": 749273, + "lat": 31.462848, + "lng": 116.944088, + "name": "舒城县", + "level": "district", + "parent": "六安市" + }, + { + "adcode": "341525", + "people_count_2010": 315144, + "lat": 31.402456, + "lng": 116.333078, + "name": "霍山县", + "level": "district", + "parent": "六安市" + }, + { + "adcode": "210726", + "people_count_2010": 615085, + "lat": 41.691804, + "lng": 122.117915, + "name": "黑山县", + "level": "district", + "parent": "锦州市" + }, + { + "adcode": "210521", + "people_count_2010": 296218, + "lat": 41.300344, + "lng": 124.126156, + "name": "本溪满族自治县", + "level": "district", + "parent": "本溪市" + }, + { + "adcode": "430422", + "people_count_2010": 954619, + "lat": 26.739973, + "lng": 112.677459, + "name": "衡南县", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "610729", + "people_count_2010": 43398, + "lat": 33.61334, + "lng": 106.924377, + "name": "留坝县", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "320312", + "people_count_2010": null, + "lat": 34.19288, + "lng": 117.183894, + "name": "铜山区", + "level": "district", + "parent": "徐州市" + }, + { + "adcode": "450110", + "people_count_2010": null, + "lat": 23.157163, + "lng": 108.280717, + "name": "武鸣区", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "430423", + "people_count_2010": 384196, + "lat": 27.234808, + "lng": 112.86971, + "name": "衡山县", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "420322", + "people_count_2010": 447482, + "lat": 32.991457, + "lng": 110.426472, + "name": "郧西县", + "level": "district", + "parent": "十堰市" + }, + { + "adcode": "220702", + "people_count_2010": 612816, + "lat": 45.176498, + "lng": 124.827851, + "name": "宁江区", + "level": "district", + "parent": "松原市" + }, + { + "adcode": "230127", + "people_count_2010": 277685, + "lat": 45.949826, + "lng": 128.042675, + "name": "木兰县", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "130131", + "people_count_2010": 433429, + "lat": 38.259311, + "lng": 114.184144, + "name": "平山县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "532331", + "people_count_2010": 4900000, + "lat": 25.14327, + "lng": 102.075694, + "name": "禄丰县", + "level": "district", + "parent": "楚雄彝族自治州" + }, + { + "adcode": "421122", + "people_count_2010": 602148, + "lat": 31.284777, + "lng": 114.615095, + "name": "红安县", + "level": "district", + "parent": "黄冈市" + }, + { + "adcode": "621123", + "people_count_2010": 324215, + "lat": 35.133023, + "lng": 104.211742, + "name": "渭源县", + "level": "district", + "parent": "定西市" + }, + { + "adcode": "620521", + "people_count_2010": 266908, + "lat": 34.75287, + "lng": 106.139878, + "name": "清水县", + "level": "district", + "parent": "天水市" + }, + { + "adcode": "451024", + "people_count_2010": 297907, + "lat": 23.321464, + "lng": 106.618164, + "name": "德保县", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "210522", + "people_count_2010": 319026, + "lat": 41.268997, + "lng": 125.359195, + "name": "桓仁满族自治县", + "level": "district", + "parent": "本溪市" + }, + { + "adcode": "420982", + "people_count_2010": 568590, + "lat": 31.26174, + "lng": 113.690401, + "name": "安陆市", + "level": "district", + "parent": "孝感市" + }, + { + "adcode": "320585", + "people_count_2010": 711854, + "lat": 31.452568, + "lng": 121.112275, + "name": "太仓市", + "level": "district", + "parent": "苏州市" + }, + { + "adcode": "430722", + "people_count_2010": 800019, + "lat": 28.907319, + "lng": 111.968506, + "name": "汉寿县", + "level": "district", + "parent": "常德市" + }, + { + "adcode": "450123", + "people_count_2010": 300215, + "lat": 23.174763, + "lng": 107.688661, + "name": "隆安县", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "110105", + "people_count_2010": 3500000, + "lat": 39.921489, + "lng": 116.486409, + "name": "朝阳区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "320505", + "people_count_2010": null, + "lat": 31.294845, + "lng": 120.566833, + "name": "虎丘区", + "level": "district", + "parent": "苏州市" + }, + { + "adcode": "650104", + "people_count_2010": null, + "lat": 43.870882, + "lng": 87.560653, + "name": "新市区", + "level": "district", + "parent": "乌鲁木齐市" + }, + { + "adcode": "371203", + "people_count_2010": 308994, + "lat": 36.058038, + "lng": 117.82033, + "name": "钢城区", + "level": "district", + "parent": "莱芜市" + }, + { + "adcode": "411726", + "people_count_2010": 810409, + "lat": 32.725129, + "lng": 113.32605, + "name": "泌阳县", + "level": "district", + "parent": "驻马店市" + }, + { + "adcode": "341226", + "people_count_2010": 1200000, + "lat": 32.637065, + "lng": 116.259122, + "name": "颍上县", + "level": "district", + "parent": "阜阳市" + }, + { + "adcode": "540323", + "people_count_2010": null, + "lat": 31.213048, + "lng": 96.601259, + "name": "类乌齐县", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "430721", + "people_count_2010": 525844, + "lat": 29.414483, + "lng": 112.172289, + "name": "安乡县", + "level": "district", + "parent": "常德市" + }, + { + "adcode": "810018", + "people_count_2010": null, + "lat": 22.286371, + "lng": 113.946059, + "name": "離島區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "430221", + "people_count_2010": 383598, + "lat": 27.705844, + "lng": 113.146176, + "name": "株洲县", + "level": "district", + "parent": "株洲市" + }, + { + "adcode": "532327", + "people_count_2010": 109304, + "lat": 26.056316, + "lng": 101.671175, + "name": "永仁县", + "level": "district", + "parent": "楚雄彝族自治州" + }, + { + "adcode": "210281", + "people_count_2010": 942197, + "lat": 39.63065, + "lng": 122.002656, + "name": "瓦房店市", + "level": "district", + "parent": "大连市" + }, + { + "adcode": "210213", + "people_count_2010": 1100000, + "lat": 39.052745, + "lng": 121.789413, + "name": "金州区", + "level": "district", + "parent": "大连市" + }, + { + "adcode": "210283", + "people_count_2010": 841321, + "lat": 39.69829, + "lng": 122.970612, + "name": "庄河市", + "level": "district", + "parent": "大连市" + }, + { + "adcode": "430223", + "people_count_2010": 693458, + "lat": 27.000071, + "lng": 113.345774, + "name": "攸县", + "level": "district", + "parent": "株洲市" + }, + { + "adcode": "654226", + "people_count_2010": 62100, + "lat": 46.793001, + "lng": 85.733551, + "name": "和布克赛尔蒙古自治县", + "level": "district", + "parent": "塔城地区" + }, + { + "adcode": "610429", + "people_count_2010": 261566, + "lat": 35.112234, + "lng": 108.337231, + "name": "旬邑县", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "350203", + "people_count_2010": 929998, + "lat": 24.462059, + "lng": 118.087828, + "name": "思明区", + "level": "district", + "parent": "厦门市" + }, + { + "adcode": "230881", + "people_count_2010": 179791, + "lat": 47.651131, + "lng": 132.510119, + "name": "同江市", + "level": "district", + "parent": "佳木斯市" + }, + { + "adcode": "513334", + "people_count_2010": 69046, + "lat": 29.991807, + "lng": 100.269862, + "name": "理塘县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "620522", + "people_count_2010": 515423, + "lat": 34.862354, + "lng": 105.6733, + "name": "秦安县", + "level": "district", + "parent": "天水市" + }, + { + "adcode": "150928", + "people_count_2010": 150174, + "lat": 41.447213, + "lng": 113.1906, + "name": "察哈尔右翼后旗", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "611026", + "people_count_2010": 153398, + "lat": 33.682773, + "lng": 109.111249, + "name": "柞水县", + "level": "district", + "parent": "商洛市" + }, + { + "adcode": "650106", + "people_count_2010": 172796, + "lat": 43.876053, + "lng": 87.425823, + "name": "头屯河区", + "level": "district", + "parent": "乌鲁木齐市" + }, + { + "adcode": "450102", + "people_count_2010": 398789, + "lat": 22.819511, + "lng": 108.320189, + "name": "兴宁区", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "210503", + "people_count_2010": 252671, + "lat": 41.330056, + "lng": 123.765226, + "name": "溪湖区", + "level": "district", + "parent": "本溪市" + }, + { + "adcode": "350982", + "people_count_2010": 529534, + "lat": 27.318884, + "lng": 120.219761, + "name": "福鼎市", + "level": "district", + "parent": "宁德市" + }, + { + "adcode": "533324", + "people_count_2010": null, + "lat": 27.738054, + "lng": 98.666141, + "name": "贡山独龙族怒族自治县", + "level": "district", + "parent": "怒江傈僳族自治州" + }, + { + "adcode": "210402", + "people_count_2010": 252631, + "lat": 41.86082, + "lng": 123.902858, + "name": "新抚区", + "level": "district", + "parent": "抚顺市" + }, + { + "adcode": "650105", + "people_count_2010": 390943, + "lat": 43.816747, + "lng": 87.613093, + "name": "水磨沟区", + "level": "district", + "parent": "乌鲁木齐市" + }, + { + "adcode": "210203", + "people_count_2010": 305742, + "lat": 38.914266, + "lng": 121.616112, + "name": "西岗区", + "level": "district", + "parent": "大连市" + }, + { + "adcode": "130629", + "people_count_2010": 258179, + "lat": 39.05282, + "lng": 115.866247, + "name": "容城县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "654221", + "people_count_2010": 187112, + "lat": 46.522555, + "lng": 83.622118, + "name": "额敏县", + "level": "district", + "parent": "塔城地区" + }, + { + "adcode": "130632", + "people_count_2010": 437378, + "lat": 38.929912, + "lng": 115.931979, + "name": "安新县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "410302", + "people_count_2010": 163176, + "lat": 34.682945, + "lng": 112.477298, + "name": "老城区", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "610111", + "people_count_2010": 595124, + "lat": 34.267453, + "lng": 109.067261, + "name": "灞桥区", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "540230", + "people_count_2010": null, + "lat": 28.554719, + "lng": 89.683406, + "name": "康马县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "441422", + "people_count_2010": 374666, + "lat": 24.351587, + "lng": 116.69552, + "name": "大埔县", + "level": "district", + "parent": "梅州市" + }, + { + "adcode": "460108", + "people_count_2010": 623653, + "lat": 20.03074, + "lng": 110.356566, + "name": "美兰区", + "level": "district", + "parent": "海口市" + }, + { + "adcode": "410304", + "people_count_2010": null, + "lat": 34.684738, + "lng": 112.491625, + "name": "瀍河回族区", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "410325", + "people_count_2010": 507052, + "lat": 34.131563, + "lng": 112.087765, + "name": "嵩县", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "640521", + "people_count_2010": 312921, + "lat": 37.489736, + "lng": 105.675784, + "name": "中宁县", + "level": "district", + "parent": "中卫市" + }, + { + "adcode": "410303", + "people_count_2010": 728819, + "lat": 34.667847, + "lng": 112.443232, + "name": "西工区", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "350503", + "people_count_2010": 529640, + "lat": 24.896041, + "lng": 118.605147, + "name": "丰泽区", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "411522", + "people_count_2010": 585353, + "lat": 32.010398, + "lng": 114.903577, + "name": "光山县", + "level": "district", + "parent": "信阳市" + }, + { + "adcode": "650121", + "people_count_2010": 83187, + "lat": 43.982546, + "lng": 87.505603, + "name": "乌鲁木齐县", + "level": "district", + "parent": "乌鲁木齐市" + }, + { + "adcode": "511381", + "people_count_2010": 728935, + "lat": 31.580466, + "lng": 105.975266, + "name": "阆中市", + "level": "district", + "parent": "南充市" + }, + { + "adcode": "441426", + "people_count_2010": 230045, + "lat": 24.569651, + "lng": 115.891729, + "name": "平远县", + "level": "district", + "parent": "梅州市" + }, + { + "adcode": "610304", + "people_count_2010": 595075, + "lat": 34.352747, + "lng": 107.383645, + "name": "陈仓区", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "140921", + "people_count_2010": 217468, + "lat": 38.484948, + "lng": 112.963231, + "name": "定襄县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "533102", + "people_count_2010": 180627, + "lat": 24.010734, + "lng": 97.855883, + "name": "瑞丽市", + "level": "district", + "parent": "德宏傣族景颇族自治州" + }, + { + "adcode": "440205", + "people_count_2010": 303371, + "lat": 24.680195, + "lng": 113.605582, + "name": "曲江区", + "level": "district", + "parent": "韶关市" + }, + { + "adcode": "230603", + "people_count_2010": 352404, + "lat": 46.573948, + "lng": 125.145794, + "name": "龙凤区", + "level": "district", + "parent": "大庆市" + }, + { + "adcode": "520323", + "people_count_2010": 380083, + "lat": 27.951342, + "lng": 107.191024, + "name": "绥阳县", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "220503", + "people_count_2010": 146631, + "lat": 41.777564, + "lng": 126.045987, + "name": "二道江区", + "level": "district", + "parent": "通化市" + }, + { + "adcode": "530126", + "people_count_2010": null, + "lat": 24.754545, + "lng": 103.271962, + "name": "石林彝族自治县", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "420506", + "people_count_2010": 520186, + "lat": 30.770199, + "lng": 111.326747, + "name": "夷陵区", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "621022", + "people_count_2010": 302918, + "lat": 36.569322, + "lng": 107.308754, + "name": "环县", + "level": "district", + "parent": "庆阳市" + }, + { + "adcode": "640202", + "people_count_2010": 286669, + "lat": 39.014158, + "lng": 106.376651, + "name": "大武口区", + "level": "district", + "parent": "石嘴山市" + }, + { + "adcode": "610122", + "people_count_2010": 514026, + "lat": 34.156189, + "lng": 109.317634, + "name": "蓝田县", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "140922", + "people_count_2010": 299391, + "lat": 38.725711, + "lng": 113.259012, + "name": "五台县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "500105", + "people_count_2010": null, + "lat": 29.575352, + "lng": 106.532844, + "name": "江北区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "411330", + "people_count_2010": 393942, + "lat": 32.367153, + "lng": 113.406059, + "name": "桐柏县", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "220112", + "people_count_2010": 377803, + "lat": 43.525168, + "lng": 125.659018, + "name": "双阳区", + "level": "district", + "parent": "长春市" + }, + { + "adcode": "331122", + "people_count_2010": 358917, + "lat": 28.654208, + "lng": 120.078965, + "name": "缙云县", + "level": "district", + "parent": "丽水市" + }, + { + "adcode": "230921", + "people_count_2010": 299484, + "lat": 45.751573, + "lng": 130.575025, + "name": "勃利县", + "level": "district", + "parent": "七台河市" + }, + { + "adcode": "222424", + "people_count_2010": 255411, + "lat": 43.315426, + "lng": 129.766161, + "name": "汪清县", + "level": "district", + "parent": "延边朝鲜族自治州" + }, + { + "adcode": "350525", + "people_count_2010": 452217, + "lat": 25.320721, + "lng": 118.29503, + "name": "永春县", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "140926", + "people_count_2010": 156846, + "lat": 38.355947, + "lng": 111.940231, + "name": "静乐县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "320508", + "people_count_2010": null, + "lat": 31.311414, + "lng": 120.622249, + "name": "姑苏区", + "level": "district", + "parent": "苏州市" + }, + { + "adcode": "621102", + "people_count_2010": 420614, + "lat": 35.579764, + "lng": 104.62577, + "name": "安定区", + "level": "district", + "parent": "定西市" + }, + { + "adcode": "451028", + "people_count_2010": 148504, + "lat": 24.782204, + "lng": 106.559638, + "name": "乐业县", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "420607", + "people_count_2010": 904957, + "lat": 32.085517, + "lng": 112.197378, + "name": "襄州区", + "level": "district", + "parent": "襄阳市" + }, + { + "adcode": "513301", + "people_count_2010": null, + "lat": 30.050738, + "lng": 101.964057, + "name": "康定市", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "430104", + "people_count_2010": 801781, + "lat": 28.213044, + "lng": 112.911591, + "name": "岳麓区", + "level": "district", + "parent": "长沙市" + }, + { + "adcode": "620402", + "people_count_2010": 294400, + "lat": 36.545649, + "lng": 104.17425, + "name": "白银区", + "level": "district", + "parent": "白银市" + }, + { + "adcode": "130628", + "people_count_2010": 345160, + "lat": 38.690092, + "lng": 115.778878, + "name": "高阳县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "130631", + "people_count_2010": 250014, + "lat": 38.707448, + "lng": 115.154009, + "name": "望都县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "430724", + "people_count_2010": 400839, + "lat": 29.443217, + "lng": 111.645602, + "name": "临澧县", + "level": "district", + "parent": "常德市" + }, + { + "adcode": "431281", + "people_count_2010": 477996, + "lat": 27.201876, + "lng": 109.831765, + "name": "洪江市", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "451222", + "people_count_2010": 155017, + "lat": 24.985964, + "lng": 107.174939, + "name": "天峨县", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "210782", + "people_count_2010": 514898, + "lat": 41.598764, + "lng": 121.795962, + "name": "北镇市", + "level": "district", + "parent": "锦州市" + }, + { + "adcode": "321324", + "people_count_2010": 909298, + "lat": 33.456538, + "lng": 118.211824, + "name": "泗洪县", + "level": "district", + "parent": "宿迁市" + }, + { + "adcode": "420881", + "people_count_2010": 1000000, + "lat": 31.165573, + "lng": 112.587267, + "name": "钟祥市", + "level": "district", + "parent": "荆门市" + }, + { + "adcode": "500241", + "people_count_2010": 501590, + "lat": 28.444772, + "lng": 108.996043, + "name": "秀山土家族苗族自治县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "411702", + "people_count_2010": 721723, + "lat": 32.977559, + "lng": 114.029149, + "name": "驿城区", + "level": "district", + "parent": "驻马店市" + }, + { + "adcode": "411724", + "people_count_2010": 645034, + "lat": 32.601826, + "lng": 114.38948, + "name": "正阳县", + "level": "district", + "parent": "驻马店市" + }, + { + "adcode": "370502", + "people_count_2010": 756676, + "lat": 37.461567, + "lng": 118.507543, + "name": "东营区", + "level": "district", + "parent": "东营市" + }, + { + "adcode": "640205", + "people_count_2010": 185803, + "lat": 39.230094, + "lng": 106.775513, + "name": "惠农区", + "level": "district", + "parent": "石嘴山市" + }, + { + "adcode": "441621", + "people_count_2010": 640133, + "lat": 23.633744, + "lng": 115.184383, + "name": "紫金县", + "level": "district", + "parent": "河源市" + }, + { + "adcode": "330921", + "people_count_2010": 202164, + "lat": 30.242865, + "lng": 122.201132, + "name": "岱山县", + "level": "district", + "parent": "舟山市" + }, + { + "adcode": "220281", + "people_count_2010": 447226, + "lat": 43.720579, + "lng": 127.342739, + "name": "蛟河市", + "level": "district", + "parent": "吉林市" + }, + { + "adcode": "440229", + "people_count_2010": 331320, + "lat": 24.353887, + "lng": 114.131289, + "name": "翁源县", + "level": "district", + "parent": "韶关市" + }, + { + "adcode": "150402", + "people_count_2010": 434785, + "lat": 42.269732, + "lng": 118.961087, + "name": "红山区", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "220422", + "people_count_2010": 348905, + "lat": 42.927724, + "lng": 124.991995, + "name": "东辽县", + "level": "district", + "parent": "辽源市" + }, + { + "adcode": "330783", + "people_count_2010": 804398, + "lat": 29.262546, + "lng": 120.23334, + "name": "东阳市", + "level": "district", + "parent": "金华市" + }, + { + "adcode": "140830", + "people_count_2010": 394849, + "lat": 34.694769, + "lng": 110.69114, + "name": "芮城县", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "141028", + "people_count_2010": 106407, + "lat": 36.099355, + "lng": 110.682853, + "name": "吉县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "141122", + "people_count_2010": 230521, + "lat": 37.555155, + "lng": 112.159154, + "name": "交城县", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "341502", + "people_count_2010": 789699, + "lat": 31.754491, + "lng": 116.503288, + "name": "金安区", + "level": "district", + "parent": "六安市" + }, + { + "adcode": "341522", + "people_count_2010": 1400000, + "lat": 32.341305, + "lng": 116.278875, + "name": "霍邱县", + "level": "district", + "parent": "六安市" + }, + { + "adcode": "141130", + "people_count_2010": 119918, + "lat": 36.983068, + "lng": 111.183188, + "name": "交口县", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "410782", + "people_count_2010": 740435, + "lat": 35.461318, + "lng": 113.802518, + "name": "辉县市", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "140923", + "people_count_2010": 214091, + "lat": 39.065138, + "lng": 112.962519, + "name": "代县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "141022", + "people_count_2010": 311471, + "lat": 35.738621, + "lng": 111.713508, + "name": "翼城县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "340822", + "people_count_2010": 592750, + "lat": 30.734994, + "lng": 116.828664, + "name": "怀宁县", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "441481", + "people_count_2010": 962883, + "lat": 24.138077, + "lng": 115.731648, + "name": "兴宁市", + "level": "district", + "parent": "梅州市" + }, + { + "adcode": "440203", + "people_count_2010": 294708, + "lat": 24.80016, + "lng": 113.588289, + "name": "武江区", + "level": "district", + "parent": "韶关市" + }, + { + "adcode": "330122", + "people_count_2010": 406450, + "lat": 29.797437, + "lng": 119.685045, + "name": "桐庐县", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "623022", + "people_count_2010": 100522, + "lat": 34.588165, + "lng": 103.508508, + "name": "卓尼县", + "level": "district", + "parent": "甘南藏族自治州" + }, + { + "adcode": "411727", + "people_count_2010": 769995, + "lat": 33.004535, + "lng": 114.359495, + "name": "汝南县", + "level": "district", + "parent": "驻马店市" + }, + { + "adcode": "653227", + "people_count_2010": 2500000, + "lat": 37.064909, + "lng": 82.692354, + "name": "民丰县", + "level": "district", + "parent": "和田地区" + }, + { + "adcode": "370212", + "people_count_2010": 379469, + "lat": 36.102569, + "lng": 120.467393, + "name": "崂山区", + "level": "district", + "parent": "青岛市" + }, + { + "adcode": "211402", + "people_count_2010": 605186, + "lat": 40.755143, + "lng": 120.85937, + "name": "连山区", + "level": "district", + "parent": "葫芦岛市" + }, + { + "adcode": "140881", + "people_count_2010": 444724, + "lat": 34.865125, + "lng": 110.447984, + "name": "永济市", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "150927", + "people_count_2010": null, + "lat": 41.274212, + "lng": 112.633563, + "name": "察哈尔右翼中旗", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "130634", + "people_count_2010": 588559, + "lat": 38.619992, + "lng": 114.704055, + "name": "曲阳县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "542232", + "people_count_2010": 15124, + "lat": 27.991707, + "lng": 91.960132, + "name": "错那县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "130637", + "people_count_2010": 245504, + "lat": 38.458271, + "lng": 115.461798, + "name": "博野县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "441721", + "people_count_2010": 452625, + "lat": 21.75367, + "lng": 111.617556, + "name": "阳西县", + "level": "district", + "parent": "阳江市" + }, + { + "adcode": "420606", + "people_count_2010": 821531, + "lat": 32.058589, + "lng": 112.13957, + "name": "樊城区", + "level": "district", + "parent": "襄阳市" + }, + { + "adcode": "420624", + "people_count_2010": 533661, + "lat": 31.77692, + "lng": 111.844424, + "name": "南漳县", + "level": "district", + "parent": "襄阳市" + }, + { + "adcode": "420626", + "people_count_2010": 254596, + "lat": 31.873507, + "lng": 111.262235, + "name": "保康县", + "level": "district", + "parent": "襄阳市" + }, + { + "adcode": "211303", + "people_count_2010": 211102, + "lat": 41.576749, + "lng": 120.413376, + "name": "龙城区", + "level": "district", + "parent": "朝阳市" + }, + { + "adcode": "420684", + "people_count_2010": 512530, + "lat": 31.709203, + "lng": 112.261441, + "name": "宜城市", + "level": "district", + "parent": "襄阳市" + }, + { + "adcode": "450902", + "people_count_2010": 1100000, + "lat": 22.632132, + "lng": 110.154912, + "name": "玉州区", + "level": "district", + "parent": "玉林市" + }, + { + "adcode": "232722", + "people_count_2010": 92473, + "lat": 52.335229, + "lng": 124.710516, + "name": "塔河县", + "level": "district", + "parent": "大兴安岭地区" + }, + { + "adcode": "522727", + "people_count_2010": 228560, + "lat": 25.831803, + "lng": 107.32405, + "name": "平塘县", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "130636", + "people_count_2010": 295764, + "lat": 38.845127, + "lng": 115.132749, + "name": "顺平县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "621024", + "people_count_2010": 145722, + "lat": 35.819005, + "lng": 108.019865, + "name": "合水县", + "level": "district", + "parent": "庆阳市" + }, + { + "adcode": "610723", + "people_count_2010": 383981, + "lat": 33.223283, + "lng": 107.549962, + "name": "洋县", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "320621", + "people_count_2010": 2900000, + "lat": 32.540289, + "lng": 120.465995, + "name": "海安县", + "level": "district", + "parent": "南通市" + }, + { + "adcode": "530824", + "people_count_2010": null, + "lat": 23.500278, + "lng": 100.701425, + "name": "景谷傣族彝族自治县", + "level": "district", + "parent": "普洱市" + }, + { + "adcode": "210103", + "people_count_2010": 849267, + "lat": 41.795591, + "lng": 123.445696, + "name": "沈河区", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "430821", + "people_count_2010": 602736, + "lat": 29.423876, + "lng": 111.132702, + "name": "慈利县", + "level": "district", + "parent": "张家界市" + }, + { + "adcode": "451023", + "people_count_2010": 434289, + "lat": 23.320479, + "lng": 107.580403, + "name": "平果县", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "431302", + "people_count_2010": 496744, + "lat": 27.726643, + "lng": 112.008486, + "name": "娄星区", + "level": "district", + "parent": "娄底市" + }, + { + "adcode": "520403", + "people_count_2010": null, + "lat": 26.40608, + "lng": 106.259942, + "name": "平坝区", + "level": "district", + "parent": "安顺市" + }, + { + "adcode": "130683", + "people_count_2010": 370317, + "lat": 38.421367, + "lng": 115.33141, + "name": "安国市", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "231002", + "people_count_2010": 200160, + "lat": 44.582399, + "lng": 129.623292, + "name": "东安区", + "level": "district", + "parent": "牡丹江市" + }, + { + "adcode": "340121", + "people_count_2010": 671343, + "lat": 32.478548, + "lng": 117.164699, + "name": "长丰县", + "level": "district", + "parent": "合肥市" + }, + { + "adcode": "520113", + "people_count_2010": null, + "lat": 26.676849, + "lng": 106.633037, + "name": "白云区", + "level": "district", + "parent": "贵阳市" + }, + { + "adcode": "530428", + "people_count_2010": null, + "lat": 23.597618, + "lng": 101.999658, + "name": "元江哈尼族彝族傣族自治县", + "level": "district", + "parent": "玉溪市" + }, + { + "adcode": "610326", + "people_count_2010": 299990, + "lat": 34.272137, + "lng": 107.752371, + "name": "眉县", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "610329", + "people_count_2010": 90728, + "lat": 34.677714, + "lng": 107.796608, + "name": "麟游县", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "620821", + "people_count_2010": 281145, + "lat": 35.335283, + "lng": 107.365218, + "name": "泾川县", + "level": "district", + "parent": "平凉市" + }, + { + "adcode": "620825", + "people_count_2010": 382827, + "lat": 35.203428, + "lng": 106.041979, + "name": "庄浪县", + "level": "district", + "parent": "平凉市" + }, + { + "adcode": "520112", + "people_count_2010": 376971, + "lat": 26.630928, + "lng": 106.762123, + "name": "乌当区", + "level": "district", + "parent": "贵阳市" + }, + { + "adcode": "520111", + "people_count_2010": 358981, + "lat": 26.410464, + "lng": 106.670791, + "name": "花溪区", + "level": "district", + "parent": "贵阳市" + }, + { + "adcode": "520525", + "people_count_2010": null, + "lat": 26.769875, + "lng": 105.375322, + "name": "纳雍县", + "level": "district", + "parent": "毕节市" + }, + { + "adcode": "640381", + "people_count_2010": 264717, + "lat": 38.021509, + "lng": 106.075395, + "name": "青铜峡市", + "level": "district", + "parent": "吴忠市" + }, + { + "adcode": "640303", + "people_count_2010": null, + "lat": 37.421616, + "lng": 106.067315, + "name": "红寺堡区", + "level": "district", + "parent": "吴忠市" + }, + { + "adcode": "654224", + "people_count_2010": 93098, + "lat": 45.935863, + "lng": 83.60469, + "name": "托里县", + "level": "district", + "parent": "塔城地区" + }, + { + "adcode": "532328", + "people_count_2010": 215795, + "lat": 25.703313, + "lng": 101.870837, + "name": "元谋县", + "level": "district", + "parent": "楚雄彝族自治州" + }, + { + "adcode": "410106", + "people_count_2010": 131549, + "lat": 34.808689, + "lng": 113.298282, + "name": "上街区", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "520521", + "people_count_2010": null, + "lat": 27.143521, + "lng": 105.609254, + "name": "大方县", + "level": "district", + "parent": "毕节市" + }, + { + "adcode": "520522", + "people_count_2010": null, + "lat": 27.024923, + "lng": 106.038299, + "name": "黔西县", + "level": "district", + "parent": "毕节市" + }, + { + "adcode": "410181", + "people_count_2010": 807911, + "lat": 34.75218, + "lng": 112.98283, + "name": "巩义市", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "640324", + "people_count_2010": 318153, + "lat": 36.9829, + "lng": 105.914764, + "name": "同心县", + "level": "district", + "parent": "吴忠市" + }, + { + "adcode": "610623", + "people_count_2010": 216910, + "lat": 37.14207, + "lng": 109.675968, + "name": "子长县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "610427", + "people_count_2010": 323256, + "lat": 35.034233, + "lng": 108.083674, + "name": "彬县", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "610728", + "people_count_2010": 246817, + "lat": 32.535854, + "lng": 107.89531, + "name": "镇巴县", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "621222", + "people_count_2010": 218796, + "lat": 32.942171, + "lng": 104.682448, + "name": "文县", + "level": "district", + "parent": "陇南市" + }, + { + "adcode": "130984", + "people_count_2010": 810306, + "lat": 38.44149, + "lng": 116.089452, + "name": "河间市", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "654325", + "people_count_2010": 58858, + "lat": 46.672446, + "lng": 90.381561, + "name": "青河县", + "level": "district", + "parent": "阿勒泰地区" + }, + { + "adcode": "530623", + "people_count_2010": 369881, + "lat": 28.106923, + "lng": 104.23506, + "name": "盐津县", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "654321", + "people_count_2010": 66758, + "lat": 47.70453, + "lng": 86.86186, + "name": "布尔津县", + "level": "district", + "parent": "阿勒泰地区" + }, + { + "adcode": "320321", + "people_count_2010": 963531, + "lat": 34.696946, + "lng": 116.592888, + "name": "丰县", + "level": "district", + "parent": "徐州市" + }, + { + "adcode": "341823", + "people_count_2010": 299555, + "lat": 30.685975, + "lng": 118.412397, + "name": "泾县", + "level": "district", + "parent": "宣城市" + }, + { + "adcode": "450423", + "people_count_2010": 192953, + "lat": 24.199829, + "lng": 110.5226, + "name": "蒙山县", + "level": "district", + "parent": "梧州市" + }, + { + "adcode": "610423", + "people_count_2010": 487749, + "lat": 34.528493, + "lng": 108.83784, + "name": "泾阳县", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "610431", + "people_count_2010": 411312, + "lat": 34.259732, + "lng": 108.212857, + "name": "武功县", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "130981", + "people_count_2010": 2200000, + "lat": 38.073479, + "lng": 116.570163, + "name": "泊头市", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "340702", + "people_count_2010": 287765, + "lat": 30.93182, + "lng": 117.818427, + "name": "铜官山区", + "level": "district", + "parent": "铜陵市" + }, + { + "adcode": "340703", + "people_count_2010": 114297, + "lat": 30.946249, + "lng": 117.864094, + "name": "狮子山区", + "level": "district", + "parent": "铜陵市" + }, + { + "adcode": "520603", + "people_count_2010": null, + "lat": 27.51903, + "lng": 109.21199, + "name": "万山区", + "level": "district", + "parent": "铜仁市" + }, + { + "adcode": "520624", + "people_count_2010": null, + "lat": 27.941331, + "lng": 108.255827, + "name": "思南县", + "level": "district", + "parent": "铜仁市" + }, + { + "adcode": "340711", + "people_count_2010": null, + "lat": 30.908927, + "lng": 117.80707, + "name": "郊区", + "level": "district", + "parent": "铜陵市" + }, + { + "adcode": "421127", + "people_count_2010": 858806, + "lat": 30.075113, + "lng": 115.942548, + "name": "黄梅县", + "level": "district", + "parent": "黄冈市" + }, + { + "adcode": "511921", + "people_count_2010": 687369, + "lat": 31.91212, + "lng": 107.247621, + "name": "通江县", + "level": "district", + "parent": "巴中市" + }, + { + "adcode": "540328", + "people_count_2010": null, + "lat": 29.686615, + "lng": 98.596444, + "name": "芒康县", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "610631", + "people_count_2010": 49392, + "lat": 35.583276, + "lng": 109.83502, + "name": "黄龙县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "150424", + "people_count_2010": 200619, + "lat": 43.605326, + "lng": 118.05775, + "name": "林西县", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "350624", + "people_count_2010": 597798, + "lat": 23.710834, + "lng": 117.176083, + "name": "诏安县", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "654301", + "people_count_2010": 190064, + "lat": 47.848911, + "lng": 88.138743, + "name": "阿勒泰市", + "level": "district", + "parent": "阿勒泰地区" + }, + { + "adcode": "460204", + "people_count_2010": null, + "lat": 18.24734, + "lng": 109.506357, + "name": "天涯区", + "level": "district", + "parent": "三亚市" + }, + { + "adcode": "130638", + "people_count_2010": 359506, + "lat": 38.990819, + "lng": 116.107474, + "name": "雄县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "451026", + "people_count_2010": 153686, + "lat": 23.400785, + "lng": 105.833553, + "name": "那坡县", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "310108", + "people_count_2010": 830496, + "lat": 31.25318, + "lng": 121.465689, + "name": "闸北区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "411224", + "people_count_2010": 352449, + "lat": 34.053995, + "lng": 111.052649, + "name": "卢氏县", + "level": "district", + "parent": "三门峡市" + }, + { + "adcode": "321323", + "people_count_2010": 831112, + "lat": 33.711433, + "lng": 118.681284, + "name": "泗阳县", + "level": "district", + "parent": "宿迁市" + }, + { + "adcode": "130684", + "people_count_2010": 640280, + "lat": 39.327689, + "lng": 115.882704, + "name": "高碑店市", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "370283", + "people_count_2010": 1400000, + "lat": 36.788828, + "lng": 119.959012, + "name": "平度市", + "level": "district", + "parent": "青岛市" + }, + { + "adcode": "130929", + "people_count_2010": 579831, + "lat": 38.189661, + "lng": 116.123844, + "name": "献县", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "522701", + "people_count_2010": 443721, + "lat": 26.258205, + "lng": 107.517021, + "name": "都匀市", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "530621", + "people_count_2010": 390654, + "lat": 27.191637, + "lng": 103.549333, + "name": "鲁甸县", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "130733", + "people_count_2010": 106122, + "lat": 40.971302, + "lng": 115.281652, + "name": "崇礼县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "341322", + "people_count_2010": 1100000, + "lat": 34.183266, + "lng": 116.945399, + "name": "萧县", + "level": "district", + "parent": "宿州市" + }, + { + "adcode": "441704", + "people_count_2010": null, + "lat": 21.864728, + "lng": 112.011267, + "name": "阳东区", + "level": "district", + "parent": "阳江市" + }, + { + "adcode": "210921", + "people_count_2010": 664971, + "lat": 42.058607, + "lng": 121.743125, + "name": "阜新蒙古族自治县", + "level": "district", + "parent": "阜新市" + }, + { + "adcode": "370982", + "people_count_2010": 1300000, + "lat": 35.910387, + "lng": 117.766092, + "name": "新泰市", + "level": "district", + "parent": "泰安市" + }, + { + "adcode": "520181", + "people_count_2010": 467790, + "lat": 26.551289, + "lng": 106.470278, + "name": "清镇市", + "level": "district", + "parent": "贵阳市" + }, + { + "adcode": "150221", + "people_count_2010": 276453, + "lat": 40.566434, + "lng": 110.526766, + "name": "土默特右旗", + "level": "district", + "parent": "包头市" + }, + { + "adcode": "340221", + "people_count_2010": 294039, + "lat": 31.145262, + "lng": 118.572301, + "name": "芜湖县", + "level": "district", + "parent": "芜湖市" + }, + { + "adcode": "340223", + "people_count_2010": 404278, + "lat": 30.919638, + "lng": 118.337104, + "name": "南陵县", + "level": "district", + "parent": "芜湖市" + }, + { + "adcode": "330102", + "people_count_2010": 344594, + "lat": 30.250236, + "lng": 120.171465, + "name": "上城区", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "520526", + "people_count_2010": null, + "lat": 26.859099, + "lng": 104.286523, + "name": "威宁彝族回族苗族自治县", + "level": "district", + "parent": "毕节市" + }, + { + "adcode": "621226", + "people_count_2010": 458237, + "lat": 34.189387, + "lng": 105.181616, + "name": "礼县", + "level": "district", + "parent": "陇南市" + }, + { + "adcode": "371302", + "people_count_2010": 1200000, + "lat": 35.061631, + "lng": 118.327667, + "name": "兰山区", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "520527", + "people_count_2010": null, + "lat": 27.119243, + "lng": 104.726438, + "name": "赫章县", + "level": "district", + "parent": "毕节市" + }, + { + "adcode": "411002", + "people_count_2010": 497925, + "lat": 34.02711, + "lng": 113.828307, + "name": "魏都区", + "level": "district", + "parent": "许昌市" + }, + { + "adcode": "410223", + "people_count_2010": 879713, + "lat": 34.412256, + "lng": 114.193927, + "name": "尉氏县", + "level": "district", + "parent": "开封市" + }, + { + "adcode": "340621", + "people_count_2010": 1000000, + "lat": 33.916407, + "lng": 116.767435, + "name": "濉溪县", + "level": "district", + "parent": "淮北市" + }, + { + "adcode": "220605", + "people_count_2010": null, + "lat": 42.048109, + "lng": 126.584229, + "name": "江源区", + "level": "district", + "parent": "白山市" + }, + { + "adcode": "350625", + "people_count_2010": 206809, + "lat": 24.621475, + "lng": 117.755913, + "name": "长泰县", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "210105", + "people_count_2010": 925176, + "lat": 41.822336, + "lng": 123.405677, + "name": "皇姑区", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "210112", + "people_count_2010": 1300000, + "lat": 41.741946, + "lng": 123.458981, + "name": "浑南区", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "445224", + "people_count_2010": 1100000, + "lat": 23.029834, + "lng": 116.295832, + "name": "惠来县", + "level": "district", + "parent": "揭阳市" + }, + { + "adcode": "350681", + "people_count_2010": 877762, + "lat": 24.445341, + "lng": 117.817292, + "name": "龙海市", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "340104", + "people_count_2010": 1000000, + "lat": 31.855868, + "lng": 117.262072, + "name": "蜀山区", + "level": "district", + "parent": "合肥市" + }, + { + "adcode": "231123", + "people_count_2010": 101411, + "lat": 49.582974, + "lng": 128.476152, + "name": "逊克县", + "level": "district", + "parent": "黑河市" + }, + { + "adcode": "360323", + "people_count_2010": 257423, + "lat": 27.633633, + "lng": 114.041206, + "name": "芦溪县", + "level": "district", + "parent": "萍乡市" + }, + { + "adcode": "540222", + "people_count_2010": null, + "lat": 28.908845, + "lng": 89.605044, + "name": "江孜县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "350722", + "people_count_2010": 304583, + "lat": 27.920412, + "lng": 118.536822, + "name": "浦城县", + "level": "district", + "parent": "南平市" + }, + { + "adcode": "230110", + "people_count_2010": 916408, + "lat": 45.713067, + "lng": 126.667049, + "name": "香坊区", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "421381", + "people_count_2010": 755910, + "lat": 31.617731, + "lng": 113.826601, + "name": "广水市", + "level": "district", + "parent": "随州市" + }, + { + "adcode": "360425", + "people_count_2010": 376107, + "lat": 29.018212, + "lng": 115.809055, + "name": "永修县", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "330502", + "people_count_2010": 757165, + "lat": 30.867252, + "lng": 120.101416, + "name": "吴兴区", + "level": "district", + "parent": "湖州市" + }, + { + "adcode": "330881", + "people_count_2010": 467862, + "lat": 28.734674, + "lng": 118.627879, + "name": "江山市", + "level": "district", + "parent": "衢州市" + }, + { + "adcode": "360730", + "people_count_2010": 794806, + "lat": 26.472054, + "lng": 116.018782, + "name": "宁都县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "220521", + "people_count_2010": 247140, + "lat": 41.677918, + "lng": 125.753121, + "name": "通化县", + "level": "district", + "parent": "通化市" + }, + { + "adcode": "360803", + "people_count_2010": 200176, + "lat": 27.105879, + "lng": 115.016306, + "name": "青原区", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "360824", + "people_count_2010": 329830, + "lat": 27.755758, + "lng": 115.399294, + "name": "新干县", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "421125", + "people_count_2010": 872649, + "lat": 30.454837, + "lng": 115.26344, + "name": "浠水县", + "level": "district", + "parent": "黄冈市" + }, + { + "adcode": "130123", + "people_count_2010": 466807, + "lat": 38.147835, + "lng": 114.569887, + "name": "正定县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "120104", + "people_count_2010": 1000000, + "lat": 39.120474, + "lng": 117.164143, + "name": "南开区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "652827", + "people_count_2010": 160804, + "lat": 42.31716, + "lng": 86.391067, + "name": "和静县", + "level": "district", + "parent": "巴音郭楞蒙古自治州" + }, + { + "adcode": "110128", + "people_count_2010": null, + "lat": 40.377362, + "lng": 116.843352, + "name": "密云区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "361022", + "people_count_2010": 230086, + "lat": 27.292561, + "lng": 116.91457, + "name": "黎川县", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "361028", + "people_count_2010": 111983, + "lat": 27.70653, + "lng": 117.066095, + "name": "资溪县", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "361025", + "people_count_2010": 345766, + "lat": 27.420101, + "lng": 115.838432, + "name": "乐安县", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "341622", + "people_count_2010": 1100000, + "lat": 33.260814, + "lng": 116.560337, + "name": "蒙城县", + "level": "district", + "parent": "亳州市" + }, + { + "adcode": "542421", + "people_count_2010": 108781, + "lat": 31.475756, + "lng": 92.061862, + "name": "那曲县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "350629", + "people_count_2010": 159152, + "lat": 25.001416, + "lng": 117.53631, + "name": "华安县", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "350481", + "people_count_2010": 347042, + "lat": 25.974075, + "lng": 117.364447, + "name": "永安市", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "330782", + "people_count_2010": 1200000, + "lat": 29.306863, + "lng": 120.074911, + "name": "义乌市", + "level": "district", + "parent": "金华市" + }, + { + "adcode": "361103", + "people_count_2010": null, + "lat": 28.440285, + "lng": 118.189852, + "name": "广丰区", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "540121", + "people_count_2010": 50246, + "lat": 29.895754, + "lng": 91.261842, + "name": "林周县", + "level": "district", + "parent": "拉萨市" + }, + { + "adcode": "330521", + "people_count_2010": 491789, + "lat": 30.534927, + "lng": 119.967662, + "name": "德清县", + "level": "district", + "parent": "湖州市" + }, + { + "adcode": "350429", + "people_count_2010": 110278, + "lat": 26.897995, + "lng": 117.177522, + "name": "泰宁县", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "361029", + "people_count_2010": 438319, + "lat": 28.2325, + "lng": 116.605341, + "name": "东乡县", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "522731", + "people_count_2010": 342647, + "lat": 26.128637, + "lng": 106.657848, + "name": "惠水县", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "130183", + "people_count_2010": 537679, + "lat": 38.027478, + "lng": 115.044886, + "name": "晋州市", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "652924", + "people_count_2010": 257502, + "lat": 41.226268, + "lng": 82.78077, + "name": "沙雅县", + "level": "district", + "parent": "阿克苏地区" + }, + { + "adcode": "653223", + "people_count_2010": 258210, + "lat": 37.616332, + "lng": 78.282301, + "name": "皮山县", + "level": "district", + "parent": "和田地区" + }, + { + "adcode": "652301", + "people_count_2010": 426253, + "lat": 44.013183, + "lng": 87.304112, + "name": "昌吉市", + "level": "district", + "parent": "昌吉回族自治州" + }, + { + "adcode": "110116", + "people_count_2010": 372887, + "lat": 40.324272, + "lng": 116.637122, + "name": "怀柔区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "330127", + "people_count_2010": 336843, + "lat": 29.604177, + "lng": 119.044276, + "name": "淳安县", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "530722", + "people_count_2010": 392024, + "lat": 26.685623, + "lng": 100.750901, + "name": "永胜县", + "level": "district", + "parent": "丽江市" + }, + { + "adcode": "120112", + "people_count_2010": 593063, + "lat": 38.989577, + "lng": 117.382549, + "name": "津南区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "330328", + "people_count_2010": 212077, + "lat": 27.789133, + "lng": 120.09245, + "name": "文成县", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "370105", + "people_count_2010": 688415, + "lat": 36.693374, + "lng": 116.996086, + "name": "天桥区", + "level": "district", + "parent": "济南市" + }, + { + "adcode": "500152", + "people_count_2010": null, + "lat": 30.189554, + "lng": 105.841818, + "name": "潼南区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "500120", + "people_count_2010": null, + "lat": 29.593581, + "lng": 106.231126, + "name": "璧山区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "460321", + "people_count_2010": null, + "lat": 16.204546, + "lng": 111.792944, + "name": "西沙群岛", + "level": "district", + "parent": "三沙市" + }, + { + "adcode": "420112", + "people_count_2010": 452053, + "lat": 30.622467, + "lng": 114.142483, + "name": "东西湖区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "321322", + "people_count_2010": 1500000, + "lat": 34.129097, + "lng": 118.775889, + "name": "沭阳县", + "level": "district", + "parent": "宿迁市" + }, + { + "adcode": "540225", + "people_count_2010": null, + "lat": 29.085136, + "lng": 87.63743, + "name": "拉孜县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "410923", + "people_count_2010": 458487, + "lat": 36.075204, + "lng": 115.204336, + "name": "南乐县", + "level": "district", + "parent": "濮阳市" + }, + { + "adcode": "350423", + "people_count_2010": 136248, + "lat": 26.17761, + "lng": 116.815821, + "name": "清流县", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "530421", + "people_count_2010": 280889, + "lat": 24.291006, + "lng": 102.749839, + "name": "江川县", + "level": "district", + "parent": "玉溪市" + }, + { + "adcode": "330411", + "people_count_2010": 589219, + "lat": 30.763323, + "lng": 120.720431, + "name": "秀洲区", + "level": "district", + "parent": "嘉兴市" + }, + { + "adcode": "130229", + "people_count_2010": 684833, + "lat": 39.887323, + "lng": 117.753665, + "name": "玉田县", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "522323", + "people_count_2010": 254247, + "lat": 25.786404, + "lng": 104.955347, + "name": "普安县", + "level": "district", + "parent": "黔西南布依族苗族自治州" + }, + { + "adcode": "330402", + "people_count_2010": 612663, + "lat": 30.764652, + "lng": 120.749953, + "name": "南湖区", + "level": "district", + "parent": "嘉兴市" + }, + { + "adcode": "140521", + "people_count_2010": 213016, + "lat": 35.689472, + "lng": 112.187213, + "name": "沁水县", + "level": "district", + "parent": "晋城市" + }, + { + "adcode": "140781", + "people_count_2010": 406517, + "lat": 37.027616, + "lng": 111.913857, + "name": "介休市", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "150625", + "people_count_2010": 111102, + "lat": 39.831789, + "lng": 108.736324, + "name": "杭锦旗", + "level": "district", + "parent": "鄂尔多斯市" + }, + { + "adcode": "542424", + "people_count_2010": 32376, + "lat": 32.107855, + "lng": 92.303659, + "name": "聂荣县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "430603", + "people_count_2010": 176672, + "lat": 29.473395, + "lng": 113.27387, + "name": "云溪区", + "level": "district", + "parent": "岳阳市" + }, + { + "adcode": "341004", + "people_count_2010": 95529, + "lat": 29.825201, + "lng": 118.339743, + "name": "徽州区", + "level": "district", + "parent": "黄山市" + }, + { + "adcode": "350723", + "people_count_2010": 134113, + "lat": 27.542803, + "lng": 117.337897, + "name": "光泽县", + "level": "district", + "parent": "南平市" + }, + { + "adcode": "130530", + "people_count_2010": 169858, + "lat": 37.526216, + "lng": 115.247537, + "name": "新河县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "130534", + "people_count_2010": 386231, + "lat": 37.059991, + "lng": 115.668999, + "name": "清河县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "542427", + "people_count_2010": 43621, + "lat": 31.886173, + "lng": 93.784964, + "name": "索县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "411302", + "people_count_2010": 887234, + "lat": 32.994857, + "lng": 112.544591, + "name": "宛城区", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "360313", + "people_count_2010": 358990, + "lat": 27.639319, + "lng": 113.7456, + "name": "湘东区", + "level": "district", + "parent": "萍乡市" + }, + { + "adcode": "360733", + "people_count_2010": 445137, + "lat": 25.599125, + "lng": 115.791158, + "name": "会昌县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "210781", + "people_count_2010": 508079, + "lat": 41.171738, + "lng": 121.364236, + "name": "凌海市", + "level": "district", + "parent": "锦州市" + }, + { + "adcode": "632221", + "people_count_2010": null, + "lat": 37.376627, + "lng": 101.618461, + "name": "门源回族自治县", + "level": "district", + "parent": "海北藏族自治州" + }, + { + "adcode": "430602", + "people_count_2010": 814369, + "lat": 29.366784, + "lng": 113.120751, + "name": "岳阳楼区", + "level": "district", + "parent": "岳阳市" + }, + { + "adcode": "130126", + "people_count_2010": 333558, + "lat": 38.306546, + "lng": 114.37946, + "name": "灵寿县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "370181", + "people_count_2010": 1100000, + "lat": 36.71209, + "lng": 117.54069, + "name": "章丘市", + "level": "district", + "parent": "济南市" + }, + { + "adcode": "140931", + "people_count_2010": 160035, + "lat": 39.022576, + "lng": 111.085688, + "name": "保德县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "370724", + "people_count_2010": 834314, + "lat": 36.516371, + "lng": 118.539876, + "name": "临朐县", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "370782", + "people_count_2010": 1100000, + "lat": 35.997093, + "lng": 119.403182, + "name": "诸城市", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "451381", + "people_count_2010": 114496, + "lat": 23.81311, + "lng": 108.88858, + "name": "合山市", + "level": "district", + "parent": "来宾市" + }, + { + "adcode": "410183", + "people_count_2010": 797256, + "lat": 34.537846, + "lng": 113.380616, + "name": "新密市", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "510524", + "people_count_2010": 584299, + "lat": 28.167919, + "lng": 105.437775, + "name": "叙永县", + "level": "district", + "parent": "泸州市" + }, + { + "adcode": "460323", + "people_count_2010": null, + "lat": 15.112856, + "lng": 117.740071, + "name": "中沙群岛的岛礁及其海域", + "level": "district", + "parent": "三沙市" + }, + { + "adcode": "430903", + "people_count_2010": 836455, + "lat": 28.568327, + "lng": 112.360946, + "name": "赫山区", + "level": "district", + "parent": "益阳市" + }, + { + "adcode": "320114", + "people_count_2010": 391293, + "lat": 31.995946, + "lng": 118.77207, + "name": "雨花台区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "410611", + "people_count_2010": 272332, + "lat": 35.748382, + "lng": 114.293917, + "name": "淇滨区", + "level": "district", + "parent": "鹤壁市" + }, + { + "adcode": "320922", + "people_count_2010": 957215, + "lat": 33.989888, + "lng": 119.828434, + "name": "滨海县", + "level": "district", + "parent": "盐城市" + }, + { + "adcode": "350825", + "people_count_2010": 248645, + "lat": 25.708506, + "lng": 116.756687, + "name": "连城县", + "level": "district", + "parent": "龙岩市" + }, + { + "adcode": "350303", + "people_count_2010": 470097, + "lat": 25.459273, + "lng": 119.119102, + "name": "涵江区", + "level": "district", + "parent": "莆田市" + }, + { + "adcode": "350527", + "people_count_2010": null, + "lat": 24.436417, + "lng": 118.323221, + "name": "金门县", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "140702", + "people_count_2010": 635651, + "lat": 37.6976, + "lng": 112.740056, + "name": "榆次区", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "410526", + "people_count_2010": 1300000, + "lat": 35.574628, + "lng": 114.524, + "name": "滑县", + "level": "district", + "parent": "安阳市" + }, + { + "adcode": "411628", + "people_count_2010": 910251, + "lat": 33.861067, + "lng": 115.486386, + "name": "鹿邑县", + "level": "district", + "parent": "周口市" + }, + { + "adcode": "540226", + "people_count_2010": null, + "lat": 29.294758, + "lng": 87.23578, + "name": "昂仁县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "510322", + "people_count_2010": 826195, + "lat": 29.181282, + "lng": 104.984256, + "name": "富顺县", + "level": "district", + "parent": "自贡市" + }, + { + "adcode": "140822", + "people_count_2010": 439364, + "lat": 35.417042, + "lng": 110.843561, + "name": "万荣县", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "140829", + "people_count_2010": 258241, + "lat": 34.837256, + "lng": 111.212377, + "name": "平陆县", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "510681", + "people_count_2010": 591115, + "lat": 30.97715, + "lng": 104.281903, + "name": "广汉市", + "level": "district", + "parent": "德阳市" + }, + { + "adcode": "120118", + "people_count_2010": null, + "lat": 38.935671, + "lng": 116.925304, + "name": "静海区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "430181", + "people_count_2010": 1300000, + "lat": 28.141112, + "lng": 113.633301, + "name": "浏阳市", + "level": "district", + "parent": "长沙市" + }, + { + "adcode": "610825", + "people_count_2010": 319370, + "lat": 37.59523, + "lng": 107.601284, + "name": "定边县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "410527", + "people_count_2010": 693498, + "lat": 35.953702, + "lng": 114.904582, + "name": "内黄县", + "level": "district", + "parent": "安阳市" + }, + { + "adcode": "510682", + "people_count_2010": 412758, + "lat": 31.126881, + "lng": 104.173653, + "name": "什邡市", + "level": "district", + "parent": "德阳市" + }, + { + "adcode": "411082", + "people_count_2010": 687130, + "lat": 34.219257, + "lng": 113.768912, + "name": "长葛市", + "level": "district", + "parent": "许昌市" + }, + { + "adcode": "341822", + "people_count_2010": 487243, + "lat": 30.893116, + "lng": 119.417521, + "name": "广德县", + "level": "district", + "parent": "宣城市" + }, + { + "adcode": "360726", + "people_count_2010": 340740, + "lat": 25.134591, + "lng": 115.392328, + "name": "安远县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "360781", + "people_count_2010": 618885, + "lat": 25.875278, + "lng": 116.034854, + "name": "瑞金市", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "411624", + "people_count_2010": 983583, + "lat": 33.395514, + "lng": 115.078375, + "name": "沈丘县", + "level": "district", + "parent": "周口市" + }, + { + "adcode": "621121", + "people_count_2010": 349539, + "lat": 35.208922, + "lng": 105.250102, + "name": "通渭县", + "level": "district", + "parent": "定西市" + }, + { + "adcode": "410185", + "people_count_2010": 668637, + "lat": 34.459939, + "lng": 113.037768, + "name": "登封市", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "230206", + "people_count_2010": 256159, + "lat": 47.20697, + "lng": 123.638873, + "name": "富拉尔基区", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "150421", + "people_count_2010": 272205, + "lat": 43.87877, + "lng": 120.094969, + "name": "阿鲁科尔沁旗", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "150429", + "people_count_2010": 546845, + "lat": 41.598692, + "lng": 119.339242, + "name": "宁城县", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "150423", + "people_count_2010": 175543, + "lat": 43.528963, + "lng": 118.678347, + "name": "巴林右旗", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "321311", + "people_count_2010": 641059, + "lat": 33.941071, + "lng": 118.330012, + "name": "宿豫区", + "level": "district", + "parent": "宿迁市" + }, + { + "adcode": "511503", + "people_count_2010": null, + "lat": 28.839806, + "lng": 104.981133, + "name": "南溪区", + "level": "district", + "parent": "宜宾市" + }, + { + "adcode": "421321", + "people_count_2010": null, + "lat": 31.854246, + "lng": 113.301384, + "name": "随县", + "level": "district", + "parent": "随州市" + }, + { + "adcode": "350902", + "people_count_2010": 429260, + "lat": 26.659253, + "lng": 119.527225, + "name": "蕉城区", + "level": "district", + "parent": "宁德市" + }, + { + "adcode": "440606", + "people_count_2010": 2500000, + "lat": 22.75851, + "lng": 113.281826, + "name": "顺德区", + "level": "district", + "parent": "佛山市" + }, + { + "adcode": "511528", + "people_count_2010": 377166, + "lat": 28.302988, + "lng": 105.236549, + "name": "兴文县", + "level": "district", + "parent": "宜宾市" + }, + { + "adcode": "610831", + "people_count_2010": 173986, + "lat": 37.611573, + "lng": 110.03457, + "name": "子洲县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "120117", + "people_count_2010": null, + "lat": 39.328886, + "lng": 117.82828, + "name": "宁河区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "350981", + "people_count_2010": 563640, + "lat": 27.084246, + "lng": 119.650798, + "name": "福安市", + "level": "district", + "parent": "宁德市" + }, + { + "adcode": "440308", + "people_count_2010": 209360, + "lat": 22.555069, + "lng": 114.235366, + "name": "盐田区", + "level": "district", + "parent": "深圳市" + }, + { + "adcode": "610327", + "people_count_2010": 248901, + "lat": 34.893262, + "lng": 106.857066, + "name": "陇县", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "350922", + "people_count_2010": 323700, + "lat": 26.577491, + "lng": 118.743156, + "name": "古田县", + "level": "district", + "parent": "宁德市" + }, + { + "adcode": "653224", + "people_count_2010": 232916, + "lat": 37.074377, + "lng": 80.184038, + "name": "洛浦县", + "level": "district", + "parent": "和田地区" + }, + { + "adcode": "513324", + "people_count_2010": 62133, + "lat": 29.001975, + "lng": 101.506942, + "name": "九龙县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "513335", + "people_count_2010": 48649, + "lat": 30.005723, + "lng": 99.109037, + "name": "巴塘县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "610828", + "people_count_2010": 204666, + "lat": 38.021597, + "lng": 110.493367, + "name": "佳县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "430822", + "people_count_2010": 380885, + "lat": 29.399939, + "lng": 110.164039, + "name": "桑植县", + "level": "district", + "parent": "张家界市" + }, + { + "adcode": "532932", + "people_count_2010": 1500000, + "lat": 26.55839, + "lng": 100.173375, + "name": "鹤庆县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "230184", + "people_count_2010": 881224, + "lat": 44.919418, + "lng": 127.15759, + "name": "五常市", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "652822", + "people_count_2010": 116166, + "lat": 41.781266, + "lng": 84.248542, + "name": "轮台县", + "level": "district", + "parent": "巴音郭楞蒙古自治州" + }, + { + "adcode": "330110", + "people_count_2010": 1200000, + "lat": 30.421187, + "lng": 120.301737, + "name": "余杭区", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "331002", + "people_count_2010": 653765, + "lat": 28.67615, + "lng": 121.431049, + "name": "椒江区", + "level": "district", + "parent": "台州市" + }, + { + "adcode": "533321", + "people_count_2010": 184835, + "lat": 25.851142, + "lng": 98.854063, + "name": "泸水县", + "level": "district", + "parent": "怒江傈僳族自治州" + }, + { + "adcode": "513328", + "people_count_2010": 68523, + "lat": 31.61975, + "lng": 99.991753, + "name": "甘孜县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "610324", + "people_count_2010": 416402, + "lat": 34.375497, + "lng": 107.891419, + "name": "扶风县", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "420821", + "people_count_2010": 636776, + "lat": 31.022458, + "lng": 113.114595, + "name": "京山县", + "level": "district", + "parent": "荆门市" + }, + { + "adcode": "530128", + "people_count_2010": null, + "lat": 25.556533, + "lng": 102.46905, + "name": "禄劝彝族苗族自治县", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "653023", + "people_count_2010": 38876, + "lat": 40.937567, + "lng": 78.450164, + "name": "阿合奇县", + "level": "district", + "parent": "克孜勒苏柯尔克孜自治州" + }, + { + "adcode": "653024", + "people_count_2010": 47261, + "lat": 39.716633, + "lng": 75.25969, + "name": "乌恰县", + "level": "district", + "parent": "克孜勒苏柯尔克孜自治州" + }, + { + "adcode": "652801", + "people_count_2010": 549324, + "lat": 41.763122, + "lng": 86.145948, + "name": "库尔勒市", + "level": "district", + "parent": "巴音郭楞蒙古自治州" + }, + { + "adcode": "220502", + "people_count_2010": 360071, + "lat": 41.721233, + "lng": 125.936716, + "name": "东昌区", + "level": "district", + "parent": "通化市" + }, + { + "adcode": "530127", + "people_count_2010": 2000000, + "lat": 25.335087, + "lng": 103.038777, + "name": "嵩明县", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "610502", + "people_count_2010": 877142, + "lat": 34.501271, + "lng": 109.503299, + "name": "临渭区", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "621223", + "people_count_2010": 274313, + "lat": 34.042655, + "lng": 104.394475, + "name": "宕昌县", + "level": "district", + "parent": "陇南市" + }, + { + "adcode": "530630", + "people_count_2010": 102143, + "lat": 28.629688, + "lng": 104.415376, + "name": "水富县", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "522630", + "people_count_2010": 112319, + "lat": 26.669138, + "lng": 108.314637, + "name": "台江县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "451224", + "people_count_2010": 213028, + "lat": 24.509367, + "lng": 107.373696, + "name": "东兰县", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "330226", + "people_count_2010": 646074, + "lat": 29.299836, + "lng": 121.432606, + "name": "宁海县", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "610522", + "people_count_2010": 155463, + "lat": 34.544515, + "lng": 110.24726, + "name": "潼关县", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "522635", + "people_count_2010": 167641, + "lat": 26.494803, + "lng": 107.593172, + "name": "麻江县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "150721", + "people_count_2010": 278744, + "lat": 48.130503, + "lng": 123.464615, + "name": "阿荣旗", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "540236", + "people_count_2010": null, + "lat": 29.328194, + "lng": 85.234622, + "name": "萨嘎县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "150725", + "people_count_2010": null, + "lat": 49.328422, + "lng": 119.437609, + "name": "陈巴尔虎旗", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "450311", + "people_count_2010": 76193, + "lat": 25.077646, + "lng": 110.305667, + "name": "雁山区", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "152526", + "people_count_2010": 87614, + "lat": 44.586147, + "lng": 117.615249, + "name": "西乌珠穆沁旗", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "445322", + "people_count_2010": 388732, + "lat": 23.237709, + "lng": 111.535921, + "name": "郁南县", + "level": "district", + "parent": "云浮市" + }, + { + "adcode": "513336", + "people_count_2010": 33170, + "lat": 28.930855, + "lng": 99.799943, + "name": "乡城县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "150205", + "people_count_2010": 35803, + "lat": 40.672094, + "lng": 110.272565, + "name": "石拐区", + "level": "district", + "parent": "包头市" + }, + { + "adcode": "530122", + "people_count_2010": 283784, + "lat": 24.666944, + "lng": 102.594987, + "name": "晋宁县", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "522625", + "people_count_2010": 203622, + "lat": 27.050233, + "lng": 108.423656, + "name": "镇远县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "450421", + "people_count_2010": 550368, + "lat": 23.845097, + "lng": 111.544008, + "name": "苍梧县", + "level": "district", + "parent": "梧州市" + }, + { + "adcode": "522626", + "people_count_2010": 162444, + "lat": 27.173244, + "lng": 108.816459, + "name": "岑巩县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "220802", + "people_count_2010": 517434, + "lat": 45.619253, + "lng": 122.842499, + "name": "洮北区", + "level": "district", + "parent": "白城市" + }, + { + "adcode": "222406", + "people_count_2010": 189532, + "lat": 42.547004, + "lng": 129.008748, + "name": "和龙市", + "level": "district", + "parent": "延边朝鲜族自治州" + }, + { + "adcode": "620823", + "people_count_2010": 102116, + "lat": 35.304533, + "lng": 107.031253, + "name": "崇信县", + "level": "district", + "parent": "平凉市" + }, + { + "adcode": "513331", + "people_count_2010": 56290, + "lat": 31.208805, + "lng": 98.824343, + "name": "白玉县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "230123", + "people_count_2010": 388319, + "lat": 46.315105, + "lng": 129.565594, + "name": "依兰县", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "371121", + "people_count_2010": 484883, + "lat": 35.751936, + "lng": 119.206745, + "name": "五莲县", + "level": "district", + "parent": "日照市" + }, + { + "adcode": "411326", + "people_count_2010": 685683, + "lat": 33.136106, + "lng": 111.489026, + "name": "淅川县", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "230125", + "people_count_2010": 551271, + "lat": 45.759369, + "lng": 127.48594, + "name": "宾县", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "513326", + "people_count_2010": 55396, + "lat": 30.978767, + "lng": 101.123327, + "name": "道孚县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "150202", + "people_count_2010": 512045, + "lat": 40.587056, + "lng": 110.026895, + "name": "东河区", + "level": "district", + "parent": "包头市" + }, + { + "adcode": "140729", + "people_count_2010": 261402, + "lat": 36.847469, + "lng": 111.772759, + "name": "灵石县", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "410622", + "people_count_2010": 269149, + "lat": 35.609478, + "lng": 114.200379, + "name": "淇县", + "level": "district", + "parent": "鹤壁市" + }, + { + "adcode": "310104", + "people_count_2010": 1100000, + "lat": 31.179973, + "lng": 121.43752, + "name": "徐汇区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "410621", + "people_count_2010": 665338, + "lat": 35.671282, + "lng": 114.550162, + "name": "浚县", + "level": "district", + "parent": "鹤壁市" + }, + { + "adcode": "140927", + "people_count_2010": 106538, + "lat": 39.088467, + "lng": 112.200438, + "name": "神池县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "130521", + "people_count_2010": 466323, + "lat": 37.05073, + "lng": 114.561132, + "name": "邢台县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "420203", + "people_count_2010": 233708, + "lat": 30.205365, + "lng": 115.093354, + "name": "西塞山区", + "level": "district", + "parent": "黄石市" + }, + { + "adcode": "450105", + "people_count_2010": 567999, + "lat": 22.799593, + "lng": 108.310478, + "name": "江南区", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "450126", + "people_count_2010": 782255, + "lat": 23.216884, + "lng": 108.816735, + "name": "宾阳县", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "511126", + "people_count_2010": 338346, + "lat": 29.741019, + "lng": 103.578862, + "name": "夹江县", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "140727", + "people_count_2010": 265310, + "lat": 37.358739, + "lng": 112.330532, + "name": "祁县", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "421102", + "people_count_2010": 366769, + "lat": 30.447435, + "lng": 114.878934, + "name": "黄州区", + "level": "district", + "parent": "黄冈市" + }, + { + "adcode": "210903", + "people_count_2010": 81816, + "lat": 42.086603, + "lng": 121.790541, + "name": "新邱区", + "level": "district", + "parent": "阜新市" + }, + { + "adcode": "411528", + "people_count_2010": 793802, + "lat": 32.344744, + "lng": 114.740713, + "name": "息县", + "level": "district", + "parent": "信阳市" + }, + { + "adcode": "460106", + "people_count_2010": 593018, + "lat": 20.031026, + "lng": 110.330373, + "name": "龙华区", + "level": "district", + "parent": "海口市" + }, + { + "adcode": "420922", + "people_count_2010": 614902, + "lat": 31.565483, + "lng": 114.126249, + "name": "大悟县", + "level": "district", + "parent": "孝感市" + }, + { + "adcode": "433124", + "people_count_2010": 288581, + "lat": 28.581352, + "lng": 109.479063, + "name": "花垣县", + "level": "district", + "parent": "湘西土家族苗族自治州" + }, + { + "adcode": "310112", + "people_count_2010": 2400000, + "lat": 31.111658, + "lng": 121.375972, + "name": "闵行区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "310107", + "people_count_2010": 1300000, + "lat": 31.241701, + "lng": 121.392499, + "name": "普陀区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "340421", + "people_count_2010": 667070, + "lat": 32.705382, + "lng": 116.722769, + "name": "凤台县", + "level": "district", + "parent": "淮南市" + }, + { + "adcode": "520325", + "people_count_2010": 244159, + "lat": 28.880088, + "lng": 107.605342, + "name": "道真仡佬族苗族自治县", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "310105", + "people_count_2010": 690571, + "lat": 31.218123, + "lng": 121.4222, + "name": "长宁区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "411329", + "people_count_2010": 629210, + "lat": 32.524006, + "lng": 112.365624, + "name": "新野县", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "130302", + "people_count_2010": null, + "lat": 39.943458, + "lng": 119.596224, + "name": "海港区", + "level": "district", + "parent": "秦皇岛市" + }, + { + "adcode": "410122", + "people_count_2010": 727440, + "lat": 34.721976, + "lng": 114.022521, + "name": "中牟县", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "445122", + "people_count_2010": null, + "lat": 23.668171, + "lng": 117.00205, + "name": "饶平县", + "level": "district", + "parent": "潮州市" + }, + { + "adcode": "445202", + "people_count_2010": 746354, + "lat": 23.535524, + "lng": 116.357045, + "name": "榕城区", + "level": "district", + "parent": "揭阳市" + }, + { + "adcode": "340823", + "people_count_2010": 838712, + "lat": 30.700615, + "lng": 117.222027, + "name": "枞阳县", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "610727", + "people_count_2010": 201645, + "lat": 33.329638, + "lng": 106.153899, + "name": "略阳县", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "420323", + "people_count_2010": 417079, + "lat": 32.22586, + "lng": 110.2296, + "name": "竹山县", + "level": "district", + "parent": "十堰市" + }, + { + "adcode": "210702", + "people_count_2010": 287599, + "lat": 41.115719, + "lng": 121.130085, + "name": "古塔区", + "level": "district", + "parent": "锦州市" + }, + { + "adcode": "341225", + "people_count_2010": 1200000, + "lat": 32.638102, + "lng": 115.590534, + "name": "阜南县", + "level": "district", + "parent": "阜阳市" + }, + { + "adcode": "410423", + "people_count_2010": 1900000, + "lat": 33.740325, + "lng": 112.906703, + "name": "鲁山县", + "level": "district", + "parent": "平顶山市" + }, + { + "adcode": "350125", + "people_count_2010": 249455, + "lat": 25.864825, + "lng": 118.939089, + "name": "永泰县", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "140726", + "people_count_2010": 298783, + "lat": 37.424595, + "lng": 112.554103, + "name": "太谷县", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "130402", + "people_count_2010": 385626, + "lat": 36.603196, + "lng": 114.484989, + "name": "邯山区", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "420116", + "people_count_2010": 2600000, + "lat": 30.874155, + "lng": 114.374025, + "name": "黄陂区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "653131", + "people_count_2010": null, + "lat": 37.775437, + "lng": 75.228068, + "name": "塔什库尔干塔吉克自治县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "370682", + "people_count_2010": 878591, + "lat": 36.977037, + "lng": 120.711151, + "name": "莱阳市", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "371324", + "people_count_2010": 1200000, + "lat": 34.855573, + "lng": 118.049968, + "name": "兰陵县", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "621225", + "people_count_2010": 393272, + "lat": 34.013718, + "lng": 105.299737, + "name": "西和县", + "level": "district", + "parent": "陇南市" + }, + { + "adcode": "610824", + "people_count_2010": 355939, + "lat": 37.596084, + "lng": 108.80567, + "name": "靖边县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "510503", + "people_count_2010": 451401, + "lat": 28.77631, + "lng": 105.37721, + "name": "纳溪区", + "level": "district", + "parent": "泸州市" + }, + { + "adcode": "120111", + "people_count_2010": 713060, + "lat": 39.139446, + "lng": 117.012247, + "name": "西青区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "371428", + "people_count_2010": 376063, + "lat": 37.209527, + "lng": 116.078627, + "name": "武城县", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "610626", + "people_count_2010": 145061, + "lat": 36.924852, + "lng": 108.176976, + "name": "吴起县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "230406", + "people_count_2010": 175239, + "lat": 47.337385, + "lng": 130.31714, + "name": "东山区", + "level": "district", + "parent": "鹤岗市" + }, + { + "adcode": "350430", + "people_count_2010": 119979, + "lat": 26.831398, + "lng": 116.845832, + "name": "建宁县", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "150781", + "people_count_2010": 249472, + "lat": 49.590788, + "lng": 117.455561, + "name": "满洲里市", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "654322", + "people_count_2010": 87886, + "lat": 46.993106, + "lng": 89.524993, + "name": "富蕴县", + "level": "district", + "parent": "阿勒泰地区" + }, + { + "adcode": "320829", + "people_count_2010": 326459, + "lat": 33.294975, + "lng": 118.867875, + "name": "洪泽县", + "level": "district", + "parent": "淮安市" + }, + { + "adcode": "210224", + "people_count_2010": 77951, + "lat": 39.272399, + "lng": 122.587824, + "name": "长海县", + "level": "district", + "parent": "大连市" + }, + { + "adcode": "210282", + "people_count_2010": 741230, + "lat": 39.401555, + "lng": 121.9705, + "name": "普兰店市", + "level": "district", + "parent": "大连市" + }, + { + "adcode": "140828", + "people_count_2010": 352821, + "lat": 35.140441, + "lng": 111.223174, + "name": "夏县", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "140221", + "people_count_2010": 272488, + "lat": 40.364927, + "lng": 113.749871, + "name": "阳高县", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "350124", + "people_count_2010": 237643, + "lat": 26.223793, + "lng": 118.868416, + "name": "闽清县", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "110129", + "people_count_2010": null, + "lat": 40.465325, + "lng": 115.985006, + "name": "延庆区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "621021", + "people_count_2010": 261898, + "lat": 36.013504, + "lng": 107.885664, + "name": "庆城县", + "level": "district", + "parent": "庆阳市" + }, + { + "adcode": "360123", + "people_count_2010": 180194, + "lat": 28.841334, + "lng": 115.553109, + "name": "安义县", + "level": "district", + "parent": "南昌市" + }, + { + "adcode": "110108", + "people_count_2010": 3300000, + "lat": 39.956074, + "lng": 116.310316, + "name": "海淀区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "510726", + "people_count_2010": 197108, + "lat": 31.615863, + "lng": 104.468069, + "name": "北川羌族自治县", + "level": "district", + "parent": "绵阳市" + }, + { + "adcode": "370911", + "people_count_2010": null, + "lat": 36.1841, + "lng": 117.04353, + "name": "岱岳区", + "level": "district", + "parent": "泰安市" + }, + { + "adcode": "622925", + "people_count_2010": 185083, + "lat": 35.425971, + "lng": 103.350357, + "name": "和政县", + "level": "district", + "parent": "临夏回族自治州" + }, + { + "adcode": "610726", + "people_count_2010": 308885, + "lat": 32.830806, + "lng": 106.25739, + "name": "宁强县", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "140925", + "people_count_2010": 161164, + "lat": 39.001718, + "lng": 112.307936, + "name": "宁武县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "610722", + "people_count_2010": 464903, + "lat": 33.153098, + "lng": 107.329887, + "name": "城固县", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "420902", + "people_count_2010": 908266, + "lat": 30.925966, + "lng": 113.925849, + "name": "孝南区", + "level": "district", + "parent": "孝感市" + }, + { + "adcode": "130127", + "people_count_2010": 186478, + "lat": 37.605714, + "lng": 114.610699, + "name": "高邑县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "370923", + "people_count_2010": 741566, + "lat": 35.930467, + "lng": 116.461052, + "name": "东平县", + "level": "district", + "parent": "泰安市" + }, + { + "adcode": "440781", + "people_count_2010": 941095, + "lat": 22.250713, + "lng": 112.793414, + "name": "台山市", + "level": "district", + "parent": "江门市" + }, + { + "adcode": "330381", + "people_count_2010": 1400000, + "lat": 27.779321, + "lng": 120.646171, + "name": "瑞安市", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "511303", + "people_count_2010": 549313, + "lat": 30.781809, + "lng": 106.108996, + "name": "高坪区", + "level": "district", + "parent": "南充市" + }, + { + "adcode": "513424", + "people_count_2010": null, + "lat": 27.403827, + "lng": 102.178845, + "name": "德昌县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "130428", + "people_count_2010": 351690, + "lat": 36.555778, + "lng": 114.805154, + "name": "肥乡县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "652328", + "people_count_2010": null, + "lat": 43.832442, + "lng": 90.282833, + "name": "木垒哈萨克自治县", + "level": "district", + "parent": "昌吉回族自治州" + }, + { + "adcode": "140622", + "people_count_2010": 327973, + "lat": 39.559187, + "lng": 113.187505, + "name": "应县", + "level": "district", + "parent": "朔州市" + }, + { + "adcode": "130424", + "people_count_2010": 377398, + "lat": 36.443832, + "lng": 114.680356, + "name": "成安县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "420981", + "people_count_2010": 593812, + "lat": 30.939038, + "lng": 113.573842, + "name": "应城市", + "level": "district", + "parent": "孝感市" + }, + { + "adcode": "421303", + "people_count_2010": null, + "lat": 31.717521, + "lng": 113.374519, + "name": "曾都区", + "level": "district", + "parent": "随州市" + }, + { + "adcode": "321302", + "people_count_2010": 796626, + "lat": 33.937726, + "lng": 118.278984, + "name": "宿城区", + "level": "district", + "parent": "宿迁市" + }, + { + "adcode": "130821", + "people_count_2010": 388554, + "lat": 40.768637, + "lng": 118.172496, + "name": "承德县", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "441823", + "people_count_2010": 537125, + "lat": 24.470286, + "lng": 112.634019, + "name": "阳山县", + "level": "district", + "parent": "清远市" + }, + { + "adcode": "360729", + "people_count_2010": 180691, + "lat": 24.742651, + "lng": 114.531589, + "name": "全南县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "652325", + "people_count_2010": 210566, + "lat": 44.021996, + "lng": 89.591437, + "name": "奇台县", + "level": "district", + "parent": "昌吉回族自治州" + }, + { + "adcode": "522328", + "people_count_2010": 356255, + "lat": 25.108959, + "lng": 105.471498, + "name": "安龙县", + "level": "district", + "parent": "黔西南布依族苗族自治州" + }, + { + "adcode": "210911", + "people_count_2010": 211288, + "lat": 42.019218, + "lng": 121.654791, + "name": "细河区", + "level": "district", + "parent": "阜新市" + }, + { + "adcode": "210922", + "people_count_2010": 363712, + "lat": 42.384823, + "lng": 122.537444, + "name": "彰武县", + "level": "district", + "parent": "阜新市" + }, + { + "adcode": "420324", + "people_count_2010": 315259, + "lat": 32.315342, + "lng": 109.717196, + "name": "竹溪县", + "level": "district", + "parent": "十堰市" + }, + { + "adcode": "630123", + "people_count_2010": 136632, + "lat": 36.684818, + "lng": 101.263435, + "name": "湟源县", + "level": "district", + "parent": "西宁市" + }, + { + "adcode": "431221", + "people_count_2010": 236649, + "lat": 27.43736, + "lng": 109.948061, + "name": "中方县", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "450331", + "people_count_2010": null, + "lat": 24.497786, + "lng": 110.400149, + "name": "荔浦县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "360121", + "people_count_2010": 1000000, + "lat": 28.543781, + "lng": 115.942465, + "name": "南昌县", + "level": "district", + "parent": "南昌市" + }, + { + "adcode": "231222", + "people_count_2010": 424562, + "lat": 46.259037, + "lng": 126.289315, + "name": "兰西县", + "level": "district", + "parent": "绥化市" + }, + { + "adcode": "211381", + "people_count_2010": 496164, + "lat": 41.803286, + "lng": 120.766951, + "name": "北票市", + "level": "district", + "parent": "朝阳市" + }, + { + "adcode": "540426", + "people_count_2010": null, + "lat": 29.0446, + "lng": 93.073429, + "name": "朗县", + "level": "district", + "parent": "林芝市" + }, + { + "adcode": "350212", + "people_count_2010": 496129, + "lat": 24.729333, + "lng": 118.150455, + "name": "同安区", + "level": "district", + "parent": "厦门市" + }, + { + "adcode": "230833", + "people_count_2010": 126694, + "lat": 48.364707, + "lng": 134.294501, + "name": "抚远县", + "level": "district", + "parent": "佳木斯市" + }, + { + "adcode": "652723", + "people_count_2010": 66502, + "lat": 44.973751, + "lng": 81.03099, + "name": "温泉县", + "level": "district", + "parent": "博尔塔拉蒙古自治州" + }, + { + "adcode": "230828", + "people_count_2010": 255211, + "lat": 46.730048, + "lng": 129.904463, + "name": "汤原县", + "level": "district", + "parent": "佳木斯市" + }, + { + "adcode": "341203", + "people_count_2010": 519562, + "lat": 32.908861, + "lng": 115.858747, + "name": "颍东区", + "level": "district", + "parent": "阜阳市" + }, + { + "adcode": "610322", + "people_count_2010": 483471, + "lat": 34.521668, + "lng": 107.400577, + "name": "凤翔县", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "130535", + "people_count_2010": 343384, + "lat": 36.8642, + "lng": 115.498684, + "name": "临西县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "610116", + "people_count_2010": null, + "lat": 34.157097, + "lng": 108.941579, + "name": "长安区", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "370302", + "people_count_2010": 731848, + "lat": 36.647272, + "lng": 117.967696, + "name": "淄川区", + "level": "district", + "parent": "淄博市" + }, + { + "adcode": "320413", + "people_count_2010": null, + "lat": 31.744399, + "lng": 119.573395, + "name": "金坛区", + "level": "district", + "parent": "常州市" + }, + { + "adcode": "520402", + "people_count_2010": 765399, + "lat": 26.248323, + "lng": 105.946169, + "name": "西秀区", + "level": "district", + "parent": "安顺市" + }, + { + "adcode": "370687", + "people_count_2010": 638729, + "lat": 36.780657, + "lng": 121.168392, + "name": "海阳市", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "370321", + "people_count_2010": 504011, + "lat": 36.959773, + "lng": 118.101556, + "name": "桓台县", + "level": "district", + "parent": "淄博市" + }, + { + "adcode": "430224", + "people_count_2010": 575436, + "lat": 26.789534, + "lng": 113.546509, + "name": "茶陵县", + "level": "district", + "parent": "株洲市" + }, + { + "adcode": "420381", + "people_count_2010": 443755, + "lat": 32.538839, + "lng": 111.513793, + "name": "丹江口市", + "level": "district", + "parent": "十堰市" + }, + { + "adcode": "460205", + "people_count_2010": null, + "lat": 18.352192, + "lng": 109.174306, + "name": "崖州区", + "level": "district", + "parent": "三亚市" + }, + { + "adcode": "140481", + "people_count_2010": 226874, + "lat": 36.332233, + "lng": 113.223245, + "name": "潞城市", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "140502", + "people_count_2010": null, + "lat": 35.496641, + "lng": 112.853106, + "name": "城区", + "level": "district", + "parent": "晋城市" + }, + { + "adcode": "411421", + "people_count_2010": 703428, + "lat": 34.648455, + "lng": 115.148146, + "name": "民权县", + "level": "district", + "parent": "商丘市" + }, + { + "adcode": "500232", + "people_count_2010": 351038, + "lat": 29.32376, + "lng": 107.75655, + "name": "武隆县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "410728", + "people_count_2010": 809535, + "lat": 35.19615, + "lng": 114.673807, + "name": "长垣县", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "411221", + "people_count_2010": 346434, + "lat": 34.763487, + "lng": 111.762992, + "name": "渑池县", + "level": "district", + "parent": "三门峡市" + }, + { + "adcode": "152202", + "people_count_2010": 1200000, + "lat": 47.177, + "lng": 119.943656, + "name": "阿尔山市", + "level": "district", + "parent": "兴安盟" + }, + { + "adcode": "370406", + "people_count_2010": 464804, + "lat": 35.096077, + "lng": 117.458968, + "name": "山亭区", + "level": "district", + "parent": "枣庄市" + }, + { + "adcode": "350213", + "people_count_2010": 304333, + "lat": 24.637479, + "lng": 118.242811, + "name": "翔安区", + "level": "district", + "parent": "厦门市" + }, + { + "adcode": "350502", + "people_count_2010": 404817, + "lat": 24.907645, + "lng": 118.588929, + "name": "鲤城区", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "450521", + "people_count_2010": 871207, + "lat": 21.663554, + "lng": 109.200695, + "name": "合浦县", + "level": "district", + "parent": "北海市" + }, + { + "adcode": "420113", + "people_count_2010": 114970, + "lat": 30.309637, + "lng": 114.08124, + "name": "汉南区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "500229", + "people_count_2010": 192967, + "lat": 31.946293, + "lng": 108.6649, + "name": "城口县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "140411", + "people_count_2010": null, + "lat": 36.218388, + "lng": 113.101211, + "name": "郊区", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "500231", + "people_count_2010": 704458, + "lat": 30.330012, + "lng": 107.348692, + "name": "垫江县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "370811", + "people_count_2010": 1900000, + "lat": 35.414828, + "lng": 116.595261, + "name": "任城区", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "350505", + "people_count_2010": 313539, + "lat": 25.126859, + "lng": 118.912285, + "name": "泉港区", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "321182", + "people_count_2010": 334977, + "lat": 32.237266, + "lng": 119.828054, + "name": "扬中市", + "level": "district", + "parent": "镇江市" + }, + { + "adcode": "330304", + "people_count_2010": 996870, + "lat": 28.006444, + "lng": 120.637145, + "name": "瓯海区", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "210905", + "people_count_2010": 60751, + "lat": 41.780477, + "lng": 121.42018, + "name": "清河门区", + "level": "district", + "parent": "阜新市" + }, + { + "adcode": "370405", + "people_count_2010": 279474, + "lat": 34.564815, + "lng": 117.734747, + "name": "台儿庄区", + "level": "district", + "parent": "枣庄市" + }, + { + "adcode": "650102", + "people_count_2010": 696277, + "lat": 43.796428, + "lng": 87.620116, + "name": "天山区", + "level": "district", + "parent": "乌鲁木齐市" + }, + { + "adcode": "330326", + "people_count_2010": 761664, + "lat": 27.6693, + "lng": 120.564387, + "name": "平阳县", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "230506", + "people_count_2010": 1900000, + "lat": 46.573366, + "lng": 131.404294, + "name": "宝山区", + "level": "district", + "parent": "双鸭山市" + }, + { + "adcode": "371082", + "people_count_2010": 714355, + "lat": 37.160134, + "lng": 122.422896, + "name": "荣成市", + "level": "district", + "parent": "威海市" + }, + { + "adcode": "370602", + "people_count_2010": 830054, + "lat": 37.540925, + "lng": 121.385877, + "name": "芝罘区", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "370612", + "people_count_2010": 467907, + "lat": 37.388356, + "lng": 121.60151, + "name": "牟平区", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "371083", + "people_count_2010": 572481, + "lat": 36.919622, + "lng": 121.536346, + "name": "乳山市", + "level": "district", + "parent": "威海市" + }, + { + "adcode": "371003", + "people_count_2010": null, + "lat": 37.196211, + "lng": 122.057139, + "name": "文登区", + "level": "district", + "parent": "威海市" + }, + { + "adcode": "510302", + "people_count_2010": 346403, + "lat": 29.343231, + "lng": 104.778188, + "name": "自流井区", + "level": "district", + "parent": "自贡市" + }, + { + "adcode": "140902", + "people_count_2010": 544683, + "lat": 38.417743, + "lng": 112.734112, + "name": "忻府区", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "141029", + "people_count_2010": 233167, + "lat": 35.975402, + "lng": 110.857365, + "name": "乡宁县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "310109", + "people_count_2010": 852476, + "lat": 31.26097, + "lng": 121.491832, + "name": "虹口区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "450621", + "people_count_2010": 204094, + "lat": 22.151423, + "lng": 107.982139, + "name": "上思县", + "level": "district", + "parent": "防城港市" + }, + { + "adcode": "440605", + "people_count_2010": 2600000, + "lat": 23.031562, + "lng": 113.145577, + "name": "南海区", + "level": "district", + "parent": "佛山市" + }, + { + "adcode": "652927", + "people_count_2010": 197990, + "lat": 41.21587, + "lng": 79.230805, + "name": "乌什县", + "level": "district", + "parent": "阿克苏地区" + }, + { + "adcode": "610328", + "people_count_2010": 123959, + "lat": 34.642584, + "lng": 107.132987, + "name": "千阳县", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "611023", + "people_count_2010": 221569, + "lat": 33.526367, + "lng": 110.885437, + "name": "商南县", + "level": "district", + "parent": "商洛市" + }, + { + "adcode": "230124", + "people_count_2010": 203853, + "lat": 45.839536, + "lng": 128.836131, + "name": "方正县", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "230128", + "people_count_2010": 210650, + "lat": 45.977618, + "lng": 128.747786, + "name": "通河县", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "230129", + "people_count_2010": 242455, + "lat": 45.455648, + "lng": 128.331886, + "name": "延寿县", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "422826", + "people_count_2010": 300618, + "lat": 29.678967, + "lng": 109.15041, + "name": "咸丰县", + "level": "district", + "parent": "恩施土家族苗族自治州" + }, + { + "adcode": "130731", + "people_count_2010": 333932, + "lat": 40.378701, + "lng": 115.219246, + "name": "涿鹿县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "520602", + "people_count_2010": null, + "lat": 27.718745, + "lng": 109.192117, + "name": "碧江区", + "level": "district", + "parent": "铜仁市" + }, + { + "adcode": "411324", + "people_count_2010": 859564, + "lat": 33.036651, + "lng": 112.232722, + "name": "镇平县", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "210711", + "people_count_2010": 394594, + "lat": 41.105378, + "lng": 121.107297, + "name": "太和区", + "level": "district", + "parent": "锦州市" + }, + { + "adcode": "141127", + "people_count_2010": 174182, + "lat": 38.278654, + "lng": 111.671555, + "name": "岚县", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "451402", + "people_count_2010": 316738, + "lat": 22.40469, + "lng": 107.354443, + "name": "江州区", + "level": "district", + "parent": "崇左市" + }, + { + "adcode": "620802", + "people_count_2010": 504848, + "lat": 35.54173, + "lng": 106.684223, + "name": "崆峒区", + "level": "district", + "parent": "平凉市" + }, + { + "adcode": "540202", + "people_count_2010": null, + "lat": 29.267003, + "lng": 88.88667, + "name": "桑珠孜区", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "451421", + "people_count_2010": 379118, + "lat": 22.635821, + "lng": 107.911533, + "name": "扶绥县", + "level": "district", + "parent": "崇左市" + }, + { + "adcode": "420984", + "people_count_2010": 1000000, + "lat": 30.652165, + "lng": 113.835301, + "name": "汉川市", + "level": "district", + "parent": "孝感市" + }, + { + "adcode": "350582", + "people_count_2010": 2000000, + "lat": 24.807322, + "lng": 118.577338, + "name": "晋江市", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "150622", + "people_count_2010": 356501, + "lat": 39.865221, + "lng": 111.238332, + "name": "准格尔旗", + "level": "district", + "parent": "鄂尔多斯市" + }, + { + "adcode": "371325", + "people_count_2010": 923475, + "lat": 35.269174, + "lng": 117.968869, + "name": "费县", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "150621", + "people_count_2010": 322101, + "lat": 40.404076, + "lng": 110.040281, + "name": "达拉特旗", + "level": "district", + "parent": "鄂尔多斯市" + }, + { + "adcode": "422823", + "people_count_2010": 420840, + "lat": 31.041403, + "lng": 110.336665, + "name": "巴东县", + "level": "district", + "parent": "恩施土家族苗族自治州" + }, + { + "adcode": "230126", + "people_count_2010": 590555, + "lat": 46.081889, + "lng": 127.403602, + "name": "巴彦县", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "230183", + "people_count_2010": 585386, + "lat": 45.214953, + "lng": 127.968539, + "name": "尚志市", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "360105", + "people_count_2010": 63963, + "lat": 28.714803, + "lng": 115.731324, + "name": "湾里区", + "level": "district", + "parent": "南昌市" + }, + { + "adcode": "421123", + "people_count_2010": 544650, + "lat": 30.781679, + "lng": 115.398984, + "name": "罗田县", + "level": "district", + "parent": "黄冈市" + }, + { + "adcode": "152531", + "people_count_2010": 100893, + "lat": 42.197962, + "lng": 116.477288, + "name": "多伦县", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "341222", + "people_count_2010": 1400000, + "lat": 33.16229, + "lng": 115.627243, + "name": "太和县", + "level": "district", + "parent": "阜阳市" + }, + { + "adcode": "530326", + "people_count_2010": 908292, + "lat": 26.412861, + "lng": 103.300041, + "name": "会泽县", + "level": "district", + "parent": "曲靖市" + }, + { + "adcode": "231083", + "people_count_2010": 400859, + "lat": 44.574149, + "lng": 129.387902, + "name": "海林市", + "level": "district", + "parent": "牡丹江市" + }, + { + "adcode": "540229", + "people_count_2010": null, + "lat": 29.230299, + "lng": 89.843207, + "name": "仁布县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "532323", + "people_count_2010": 208726, + "lat": 25.312111, + "lng": 101.543044, + "name": "牟定县", + "level": "district", + "parent": "楚雄彝族自治州" + }, + { + "adcode": "320723", + "people_count_2010": 817509, + "lat": 34.298436, + "lng": 119.255741, + "name": "灌云县", + "level": "district", + "parent": "连云港市" + }, + { + "adcode": "140924", + "people_count_2010": 266800, + "lat": 39.188104, + "lng": 113.267707, + "name": "繁峙县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "530702", + "people_count_2010": 640545, + "lat": 26.872229, + "lng": 100.234412, + "name": "古城区", + "level": "district", + "parent": "丽江市" + }, + { + "adcode": "330523", + "people_count_2010": 466552, + "lat": 30.631974, + "lng": 119.687891, + "name": "安吉县", + "level": "district", + "parent": "湖州市" + }, + { + "adcode": "341321", + "people_count_2010": 800408, + "lat": 34.426247, + "lng": 116.351113, + "name": "砀山县", + "level": "district", + "parent": "宿州市" + }, + { + "adcode": "341323", + "people_count_2010": 975308, + "lat": 33.540629, + "lng": 117.551493, + "name": "灵璧县", + "level": "district", + "parent": "宿州市" + }, + { + "adcode": "360881", + "people_count_2010": 152310, + "lat": 26.745919, + "lng": 114.284421, + "name": "井冈山市", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "150784", + "people_count_2010": 76667, + "lat": 50.2439, + "lng": 120.178636, + "name": "额尔古纳市", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "232721", + "people_count_2010": 51861, + "lat": 51.726998, + "lng": 126.662105, + "name": "呼玛县", + "level": "district", + "parent": "大兴安岭地区" + }, + { + "adcode": "320831", + "people_count_2010": 321251, + "lat": 33.018162, + "lng": 119.016936, + "name": "金湖县", + "level": "district", + "parent": "淮安市" + }, + { + "adcode": "350427", + "people_count_2010": 226669, + "lat": 26.397361, + "lng": 117.789095, + "name": "沙县", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "530721", + "people_count_2010": null, + "lat": 26.830593, + "lng": 100.238312, + "name": "玉龙纳西族自治县", + "level": "district", + "parent": "丽江市" + }, + { + "adcode": "370611", + "people_count_2010": 600468, + "lat": 37.496875, + "lng": 121.264741, + "name": "福山区", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "653124", + "people_count_2010": 206936, + "lat": 38.191217, + "lng": 77.273593, + "name": "泽普县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "150422", + "people_count_2010": 327765, + "lat": 43.980715, + "lng": 119.391737, + "name": "巴林左旗", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "440303", + "people_count_2010": 923421, + "lat": 22.555341, + "lng": 114.123885, + "name": "罗湖区", + "level": "district", + "parent": "深圳市" + }, + { + "adcode": "341825", + "people_count_2010": 120039, + "lat": 30.288057, + "lng": 118.543081, + "name": "旌德县", + "level": "district", + "parent": "宣城市" + }, + { + "adcode": "441225", + "people_count_2010": 398258, + "lat": 23.434731, + "lng": 111.502973, + "name": "封开县", + "level": "district", + "parent": "肇庆市" + }, + { + "adcode": "530922", + "people_count_2010": 449460, + "lat": 24.439026, + "lng": 100.125637, + "name": "云县", + "level": "district", + "parent": "临沧市" + }, + { + "adcode": "350121", + "people_count_2010": 662118, + "lat": 26.148567, + "lng": 119.145117, + "name": "闽侯县", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "211202", + "people_count_2010": 363076, + "lat": 42.292278, + "lng": 123.844877, + "name": "银州区", + "level": "district", + "parent": "铁岭市" + }, + { + "adcode": "131028", + "people_count_2010": 118474, + "lat": 39.889266, + "lng": 116.986501, + "name": "大厂回族自治县", + "level": "district", + "parent": "廊坊市" + }, + { + "adcode": "110117", + "people_count_2010": 415958, + "lat": 40.144783, + "lng": 117.112335, + "name": "平谷区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "530921", + "people_count_2010": 458322, + "lat": 24.592738, + "lng": 99.91871, + "name": "凤庆县", + "level": "district", + "parent": "临沧市" + }, + { + "adcode": "330185", + "people_count_2010": 566665, + "lat": 30.231153, + "lng": 119.715101, + "name": "临安市", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "350128", + "people_count_2010": 357760, + "lat": 25.503672, + "lng": 119.791197, + "name": "平潭县", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "532624", + "people_count_2010": 277960, + "lat": 23.124202, + "lng": 104.701899, + "name": "麻栗坡县", + "level": "district", + "parent": "文山壮族苗族自治州" + }, + { + "adcode": "532627", + "people_count_2010": 787449, + "lat": 24.050272, + "lng": 105.056684, + "name": "广南县", + "level": "district", + "parent": "文山壮族苗族自治州" + }, + { + "adcode": "530629", + "people_count_2010": 385865, + "lat": 27.843381, + "lng": 105.04869, + "name": "威信县", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "530625", + "people_count_2010": 394267, + "lat": 28.231526, + "lng": 103.63732, + "name": "永善县", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "350581", + "people_count_2010": 636700, + "lat": 24.731978, + "lng": 118.628402, + "name": "石狮市", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "610115", + "people_count_2010": 655875, + "lat": 34.372065, + "lng": 109.213986, + "name": "临潼区", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "340504", + "people_count_2010": 309672, + "lat": 31.685912, + "lng": 118.493104, + "name": "雨山区", + "level": "district", + "parent": "马鞍山市" + }, + { + "adcode": "430426", + "people_count_2010": 979855, + "lat": 26.787109, + "lng": 112.111192, + "name": "祁东县", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "140211", + "people_count_2010": 405864, + "lat": 40.01802, + "lng": 113.16892, + "name": "南郊区", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "610523", + "people_count_2010": 693392, + "lat": 34.795011, + "lng": 109.943123, + "name": "大荔县", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "445321", + "people_count_2010": 431635, + "lat": 22.703204, + "lng": 112.23083, + "name": "新兴县", + "level": "district", + "parent": "云浮市" + }, + { + "adcode": "420802", + "people_count_2010": 360984, + "lat": 31.033461, + "lng": 112.204804, + "name": "东宝区", + "level": "district", + "parent": "荆门市" + }, + { + "adcode": "350182", + "people_count_2010": 682626, + "lat": 25.960583, + "lng": 119.510849, + "name": "长乐市", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "320113", + "people_count_2010": 644295, + "lat": 32.102147, + "lng": 118.808702, + "name": "栖霞区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "450103", + "people_count_2010": 709721, + "lat": 22.816614, + "lng": 108.346113, + "name": "青秀区", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "540402", + "people_count_2010": null, + "lat": 29.653732, + "lng": 94.360987, + "name": "巴宜区", + "level": "district", + "parent": "林芝市" + }, + { + "adcode": "520322", + "people_count_2010": 521840, + "lat": 28.131559, + "lng": 106.826591, + "name": "桐梓县", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "350703", + "people_count_2010": null, + "lat": 27.332067, + "lng": 118.12267, + "name": "建阳区", + "level": "district", + "parent": "南平市" + }, + { + "adcode": "140882", + "people_count_2010": 395527, + "lat": 35.59715, + "lng": 110.710268, + "name": "河津市", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "520422", + "people_count_2010": 378452, + "lat": 26.305794, + "lng": 105.745609, + "name": "普定县", + "level": "district", + "parent": "安顺市" + }, + { + "adcode": "520327", + "people_count_2010": 313128, + "lat": 27.960858, + "lng": 107.722021, + "name": "凤冈县", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "610628", + "people_count_2010": 149727, + "lat": 35.996495, + "lng": 109.384136, + "name": "富县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "110109", + "people_count_2010": 290476, + "lat": 39.937183, + "lng": 116.105381, + "name": "门头沟区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "530626", + "people_count_2010": 153091, + "lat": 28.599953, + "lng": 103.961095, + "name": "绥江县", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "532628", + "people_count_2010": 1500000, + "lat": 23.626494, + "lng": 105.62856, + "name": "富宁县", + "level": "district", + "parent": "文山壮族苗族自治州" + }, + { + "adcode": "532625", + "people_count_2010": 367507, + "lat": 23.011723, + "lng": 104.398619, + "name": "马关县", + "level": "district", + "parent": "文山壮族苗族自治州" + }, + { + "adcode": "530926", + "people_count_2010": null, + "lat": 23.534579, + "lng": 99.402495, + "name": "耿马傣族佤族自治县", + "level": "district", + "parent": "临沧市" + }, + { + "adcode": "411503", + "people_count_2010": 635651, + "lat": 32.098395, + "lng": 114.126027, + "name": "平桥区", + "level": "district", + "parent": "信阳市" + }, + { + "adcode": "530602", + "people_count_2010": 787837, + "lat": 27.336636, + "lng": 103.717267, + "name": "昭阳区", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "653128", + "people_count_2010": 147688, + "lat": 39.235248, + "lng": 76.7724, + "name": "岳普湖县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "440307", + "people_count_2010": 2300000, + "lat": 22.721511, + "lng": 114.251372, + "name": "龙岗区", + "level": "district", + "parent": "深圳市" + }, + { + "adcode": "340208", + "people_count_2010": 144378, + "lat": 31.225423, + "lng": 118.233987, + "name": "三山区", + "level": "district", + "parent": "芜湖市" + }, + { + "adcode": "620421", + "people_count_2010": 454925, + "lat": 36.561424, + "lng": 104.686972, + "name": "靖远县", + "level": "district", + "parent": "白银市" + }, + { + "adcode": "330104", + "people_count_2010": 998783, + "lat": 30.266603, + "lng": 120.202633, + "name": "江干区", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "420602", + "people_count_2010": 473202, + "lat": 32.015088, + "lng": 112.150327, + "name": "襄城区", + "level": "district", + "parent": "襄阳市" + }, + { + "adcode": "330602", + "people_count_2010": 883836, + "lat": 29.996993, + "lng": 120.585315, + "name": "越城区", + "level": "district", + "parent": "绍兴市" + }, + { + "adcode": "620422", + "people_count_2010": 541273, + "lat": 35.692486, + "lng": 105.054337, + "name": "会宁县", + "level": "district", + "parent": "白银市" + }, + { + "adcode": "510402", + "people_count_2010": null, + "lat": 26.580887, + "lng": 101.715134, + "name": "东区", + "level": "district", + "parent": "攀枝花市" + }, + { + "adcode": "231225", + "people_count_2010": 320695, + "lat": 47.183527, + "lng": 125.907544, + "name": "明水县", + "level": "district", + "parent": "绥化市" + }, + { + "adcode": "370522", + "people_count_2010": 281252, + "lat": 37.493365, + "lng": 118.248854, + "name": "利津县", + "level": "district", + "parent": "东营市" + }, + { + "adcode": "620121", + "people_count_2010": 418789, + "lat": 36.734428, + "lng": 103.262203, + "name": "永登县", + "level": "district", + "parent": "兰州市" + }, + { + "adcode": "520627", + "people_count_2010": null, + "lat": 28.560487, + "lng": 108.495746, + "name": "沿河土家族自治县", + "level": "district", + "parent": "铜仁市" + }, + { + "adcode": "330305", + "people_count_2010": null, + "lat": 27.836057, + "lng": 121.156181, + "name": "洞头区", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "540302", + "people_count_2010": null, + "lat": 31.137035, + "lng": 97.178255, + "name": "卡若区", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "231282", + "people_count_2010": 903067, + "lat": 46.069471, + "lng": 125.991402, + "name": "肇东市", + "level": "district", + "parent": "绥化市" + }, + { + "adcode": "371327", + "people_count_2010": 886376, + "lat": 35.175911, + "lng": 118.838322, + "name": "莒南县", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "230281", + "people_count_2010": 625892, + "lat": 48.481133, + "lng": 124.882172, + "name": "讷河市", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "653221", + "people_count_2010": 269941, + "lat": 37.120031, + "lng": 79.81907, + "name": "和田县", + "level": "district", + "parent": "和田地区" + }, + { + "adcode": "140981", + "people_count_2010": 491213, + "lat": 38.729186, + "lng": 112.713132, + "name": "原平市", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "530821", + "people_count_2010": null, + "lat": 23.062507, + "lng": 101.04524, + "name": "宁洱哈尼族彝族自治县", + "level": "district", + "parent": "普洱市" + }, + { + "adcode": "654002", + "people_count_2010": 515082, + "lat": 43.922209, + "lng": 81.316343, + "name": "伊宁市", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "330329", + "people_count_2010": 233443, + "lat": 27.557309, + "lng": 119.71624, + "name": "泰顺县", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "520222", + "people_count_2010": 1000000, + "lat": 25.706966, + "lng": 104.468367, + "name": "盘县", + "level": "district", + "parent": "六盘水市" + }, + { + "adcode": "430321", + "people_count_2010": 917616, + "lat": 27.778601, + "lng": 112.952829, + "name": "湘潭县", + "level": "district", + "parent": "湘潭市" + }, + { + "adcode": "370403", + "people_count_2010": 481450, + "lat": 34.79789, + "lng": 117.265293, + "name": "薛城区", + "level": "district", + "parent": "枣庄市" + }, + { + "adcode": "150929", + "people_count_2010": 176818, + "lat": 41.528114, + "lng": 111.70123, + "name": "四子王旗", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "320602", + "people_count_2010": 869049, + "lat": 32.015278, + "lng": 120.86635, + "name": "崇川区", + "level": "district", + "parent": "南通市" + }, + { + "adcode": "230407", + "people_count_2010": 44803, + "lat": 47.35997, + "lng": 130.30534, + "name": "兴山区", + "level": "district", + "parent": "鹤岗市" + }, + { + "adcode": "141181", + "people_count_2010": 468770, + "lat": 37.144474, + "lng": 111.781568, + "name": "孝义市", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "650203", + "people_count_2010": 261445, + "lat": 45.600477, + "lng": 84.868918, + "name": "克拉玛依区", + "level": "district", + "parent": "克拉玛依市" + }, + { + "adcode": "542523", + "people_count_2010": 16901, + "lat": 32.503373, + "lng": 80.105005, + "name": "噶尔县", + "level": "district", + "parent": "阿里地区" + }, + { + "adcode": "141030", + "people_count_2010": 64501, + "lat": 36.46383, + "lng": 110.751283, + "name": "大宁县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "533122", + "people_count_2010": 154175, + "lat": 24.80742, + "lng": 98.298196, + "name": "梁河县", + "level": "district", + "parent": "德宏傣族景颇族自治州" + }, + { + "adcode": "542422", + "people_count_2010": 32356, + "lat": 30.640846, + "lng": 93.232907, + "name": "嘉黎县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "610117", + "people_count_2010": null, + "lat": 34.535065, + "lng": 109.088896, + "name": "高陵区", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "411323", + "people_count_2010": 444414, + "lat": 33.302981, + "lng": 111.485772, + "name": "西峡县", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "350504", + "people_count_2010": 187189, + "lat": 24.941153, + "lng": 118.670312, + "name": "洛江区", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "532924", + "people_count_2010": 348754, + "lat": 25.825904, + "lng": 100.578957, + "name": "宾川县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "330702", + "people_count_2010": 761662, + "lat": 29.082607, + "lng": 119.652579, + "name": "婺城区", + "level": "district", + "parent": "金华市" + }, + { + "adcode": "411721", + "people_count_2010": 700152, + "lat": 33.382315, + "lng": 114.026864, + "name": "西平县", + "level": "district", + "parent": "驻马店市" + }, + { + "adcode": "371423", + "people_count_2010": 294684, + "lat": 37.777724, + "lng": 117.390507, + "name": "庆云县", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "451425", + "people_count_2010": 330814, + "lat": 23.082484, + "lng": 107.142441, + "name": "天等县", + "level": "district", + "parent": "崇左市" + }, + { + "adcode": "532301", + "people_count_2010": 588620, + "lat": 25.040912, + "lng": 101.546145, + "name": "楚雄市", + "level": "district", + "parent": "楚雄彝族自治州" + }, + { + "adcode": "330726", + "people_count_2010": 437346, + "lat": 29.451254, + "lng": 119.893363, + "name": "浦江县", + "level": "district", + "parent": "金华市" + }, + { + "adcode": "350205", + "people_count_2010": 288739, + "lat": 24.492512, + "lng": 118.036364, + "name": "海沧区", + "level": "district", + "parent": "厦门市" + }, + { + "adcode": "360827", + "people_count_2010": 535974, + "lat": 26.323705, + "lng": 114.51689, + "name": "遂川县", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "231224", + "people_count_2010": 386162, + "lat": 46.879203, + "lng": 127.510024, + "name": "庆安县", + "level": "district", + "parent": "绥化市" + }, + { + "adcode": "411526", + "people_count_2010": 630376, + "lat": 32.134024, + "lng": 115.050123, + "name": "潢川县", + "level": "district", + "parent": "信阳市" + }, + { + "adcode": "330282", + "people_count_2010": 1500000, + "lat": 30.177142, + "lng": 121.248052, + "name": "慈溪市", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "610923", + "people_count_2010": 70435, + "lat": 33.312184, + "lng": 108.313714, + "name": "宁陕县", + "level": "district", + "parent": "安康市" + }, + { + "adcode": "321203", + "people_count_2010": 283807, + "lat": 32.315701, + "lng": 119.88166, + "name": "高港区", + "level": "district", + "parent": "泰州市" + }, + { + "adcode": "150103", + "people_count_2010": 394555, + "lat": 40.815149, + "lng": 111.662162, + "name": "回民区", + "level": "district", + "parent": "呼和浩特市" + }, + { + "adcode": "211302", + "people_count_2010": 414085, + "lat": 41.579389, + "lng": 120.44877, + "name": "双塔区", + "level": "district", + "parent": "朝阳市" + }, + { + "adcode": "230305", + "people_count_2010": 76361, + "lat": 45.092195, + "lng": 130.697781, + "name": "梨树区", + "level": "district", + "parent": "鸡西市" + }, + { + "adcode": "820006", + "people_count_2010": null, + "lat": 22.154124, + "lng": 113.558783, + "name": "嘉模堂區", + "level": "district", + "parent": "澳門特別行政區" + }, + { + "adcode": "360926", + "people_count_2010": 135139, + "lat": 28.520956, + "lng": 114.37014, + "name": "铜鼓县", + "level": "district", + "parent": "宜春市" + }, + { + "adcode": "230381", + "people_count_2010": 317884, + "lat": 45.767985, + "lng": 132.973881, + "name": "虎林市", + "level": "district", + "parent": "鸡西市" + }, + { + "adcode": "542228", + "people_count_2010": 18453, + "lat": 28.385765, + "lng": 90.858243, + "name": "洛扎县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "420117", + "people_count_2010": null, + "lat": 30.842149, + "lng": 114.802108, + "name": "新洲区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "230902", + "people_count_2010": 236768, + "lat": 45.794258, + "lng": 130.889482, + "name": "新兴区", + "level": "district", + "parent": "七台河市" + }, + { + "adcode": "520626", + "people_count_2010": null, + "lat": 28.26094, + "lng": 108.117317, + "name": "德江县", + "level": "district", + "parent": "铜仁市" + }, + { + "adcode": "140928", + "people_count_2010": 107632, + "lat": 38.912761, + "lng": 111.841015, + "name": "五寨县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "341204", + "people_count_2010": 557687, + "lat": 32.924797, + "lng": 115.804525, + "name": "颍泉区", + "level": "district", + "parent": "阜阳市" + }, + { + "adcode": "542231", + "people_count_2010": 34141, + "lat": 28.408548, + "lng": 92.463309, + "name": "隆子县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "331125", + "people_count_2010": 111591, + "lat": 28.111077, + "lng": 119.569458, + "name": "云和县", + "level": "district", + "parent": "丽水市" + }, + { + "adcode": "330382", + "people_count_2010": 1400000, + "lat": 28.116083, + "lng": 120.967147, + "name": "乐清市", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "230109", + "people_count_2010": 236848, + "lat": 45.814656, + "lng": 126.563066, + "name": "松北区", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "350424", + "people_count_2010": 272443, + "lat": 26.259932, + "lng": 116.659725, + "name": "宁化县", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "540421", + "people_count_2010": null, + "lat": 29.88447, + "lng": 93.246515, + "name": "工布江达县", + "level": "district", + "parent": "林芝市" + }, + { + "adcode": "540424", + "people_count_2010": null, + "lat": 29.858771, + "lng": 95.768151, + "name": "波密县", + "level": "district", + "parent": "林芝市" + }, + { + "adcode": "361128", + "people_count_2010": 1300000, + "lat": 28.993374, + "lng": 116.673748, + "name": "鄱阳县", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "411023", + "people_count_2010": 767449, + "lat": 34.005018, + "lng": 113.842898, + "name": "许昌县", + "level": "district", + "parent": "许昌市" + }, + { + "adcode": "361027", + "people_count_2010": 294826, + "lat": 27.907387, + "lng": 116.778751, + "name": "金溪县", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "350583", + "people_count_2010": 1400000, + "lat": 24.959494, + "lng": 118.387031, + "name": "南安市", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "360732", + "people_count_2010": 719830, + "lat": 26.330489, + "lng": 115.351896, + "name": "兴国县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "360725", + "people_count_2010": 187234, + "lat": 25.687911, + "lng": 114.307348, + "name": "崇义县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "542525", + "people_count_2010": 15483, + "lat": 32.389192, + "lng": 81.142896, + "name": "革吉县", + "level": "district", + "parent": "阿里地区" + }, + { + "adcode": "140724", + "people_count_2010": 227896, + "lat": 37.60437, + "lng": 113.706166, + "name": "昔阳县", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "150783", + "people_count_2010": 366323, + "lat": 48.007412, + "lng": 122.744401, + "name": "扎兰屯市", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "150726", + "people_count_2010": 40258, + "lat": 48.216571, + "lng": 118.267454, + "name": "新巴尔虎左旗", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "610928", + "people_count_2010": 426677, + "lat": 32.833567, + "lng": 109.368149, + "name": "旬阳县", + "level": "district", + "parent": "安康市" + }, + { + "adcode": "130526", + "people_count_2010": 327926, + "lat": 37.129952, + "lng": 114.684469, + "name": "任县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "360281", + "people_count_2010": 810353, + "lat": 28.967361, + "lng": 117.129376, + "name": "乐平市", + "level": "district", + "parent": "景德镇市" + }, + { + "adcode": "340824", + "people_count_2010": 500292, + "lat": 30.638222, + "lng": 116.573666, + "name": "潜山县", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "522726", + "people_count_2010": 265212, + "lat": 25.826283, + "lng": 107.542757, + "name": "独山县", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "513327", + "people_count_2010": 46558, + "lat": 31.392674, + "lng": 100.679495, + "name": "炉霍县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "510411", + "people_count_2010": 260294, + "lat": 26.497185, + "lng": 101.737916, + "name": "仁和区", + "level": "district", + "parent": "攀枝花市" + }, + { + "adcode": "130826", + "people_count_2010": 357029, + "lat": 41.209903, + "lng": 116.65121, + "name": "丰宁满族自治县", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "532324", + "people_count_2010": 236133, + "lat": 25.192408, + "lng": 101.274991, + "name": "南华县", + "level": "district", + "parent": "楚雄彝族自治州" + }, + { + "adcode": "410184", + "people_count_2010": 758128, + "lat": 34.394219, + "lng": 113.73967, + "name": "新郑市", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "421182", + "people_count_2010": 644247, + "lat": 29.849342, + "lng": 115.56242, + "name": "武穴市", + "level": "district", + "parent": "黄冈市" + }, + { + "adcode": "522728", + "people_count_2010": 257236, + "lat": 25.429894, + "lng": 106.750006, + "name": "罗甸县", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "210106", + "people_count_2010": 278741, + "lat": 41.787808, + "lng": 123.350664, + "name": "铁西区", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "210122", + "people_count_2010": 476081, + "lat": 41.512725, + "lng": 122.731269, + "name": "辽中县", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "422802", + "people_count_2010": 654094, + "lat": 30.294247, + "lng": 108.943491, + "name": "利川市", + "level": "district", + "parent": "恩施土家族苗族自治州" + }, + { + "adcode": "520203", + "people_count_2010": 495162, + "lat": 26.210662, + "lng": 105.474235, + "name": "六枝特区", + "level": "district", + "parent": "六盘水市" + }, + { + "adcode": "654022", + "people_count_2010": null, + "lat": 43.838883, + "lng": 81.150874, + "name": "察布查尔锡伯自治县", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "140728", + "people_count_2010": 502712, + "lat": 37.195474, + "lng": 112.174059, + "name": "平遥县", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "360222", + "people_count_2010": 303563, + "lat": 29.352251, + "lng": 117.217611, + "name": "浮梁县", + "level": "district", + "parent": "景德镇市" + }, + { + "adcode": "150304", + "people_count_2010": 133370, + "lat": 39.502288, + "lng": 106.722711, + "name": "乌达区", + "level": "district", + "parent": "乌海市" + }, + { + "adcode": "230403", + "people_count_2010": 140070, + "lat": 47.331678, + "lng": 130.276652, + "name": "工农区", + "level": "district", + "parent": "鹤岗市" + }, + { + "adcode": "141032", + "people_count_2010": 63649, + "lat": 36.760614, + "lng": 110.631276, + "name": "永和县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "210104", + "people_count_2010": 782867, + "lat": 41.808503, + "lng": 123.469956, + "name": "大东区", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "211481", + "people_count_2010": 546176, + "lat": 40.619413, + "lng": 120.729365, + "name": "兴城市", + "level": "district", + "parent": "葫芦岛市" + }, + { + "adcode": "610104", + "people_count_2010": 698513, + "lat": 34.2656, + "lng": 108.933194, + "name": "莲湖区", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "450304", + "people_count_2010": 275284, + "lat": 25.261986, + "lng": 110.284882, + "name": "象山区", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "450330", + "people_count_2010": 1600000, + "lat": 24.632216, + "lng": 110.642821, + "name": "平乐县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "360728", + "people_count_2010": 172771, + "lat": 24.774277, + "lng": 115.03267, + "name": "定南县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "530111", + "people_count_2010": 853371, + "lat": 25.021211, + "lng": 102.723437, + "name": "官渡区", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "140621", + "people_count_2010": 238885, + "lat": 39.52677, + "lng": 112.816396, + "name": "山阴县", + "level": "district", + "parent": "朔州市" + }, + { + "adcode": "211382", + "people_count_2010": 570660, + "lat": 41.243086, + "lng": 119.404789, + "name": "凌源市", + "level": "district", + "parent": "朝阳市" + }, + { + "adcode": "450332", + "people_count_2010": null, + "lat": 24.833612, + "lng": 110.82952, + "name": "恭城瑶族自治县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "141021", + "people_count_2010": 237033, + "lat": 35.641387, + "lng": 111.475529, + "name": "曲沃县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "360727", + "people_count_2010": 300301, + "lat": 24.90476, + "lng": 114.792657, + "name": "龙南县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "360923", + "people_count_2010": 326697, + "lat": 28.234789, + "lng": 114.932653, + "name": "上高县", + "level": "district", + "parent": "宜春市" + }, + { + "adcode": "420921", + "people_count_2010": 588666, + "lat": 31.251618, + "lng": 113.988964, + "name": "孝昌县", + "level": "district", + "parent": "孝感市" + }, + { + "adcode": "360721", + "people_count_2010": 546964, + "lat": 25.865432, + "lng": 115.018461, + "name": "赣县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "360731", + "people_count_2010": 853457, + "lat": 25.955033, + "lng": 115.411198, + "name": "于都县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "360981", + "people_count_2010": 1300000, + "lat": 28.191584, + "lng": 115.786005, + "name": "丰城市", + "level": "district", + "parent": "宜春市" + }, + { + "adcode": "530826", + "people_count_2010": null, + "lat": 22.58336, + "lng": 101.859144, + "name": "江城哈尼族彝族自治县", + "level": "district", + "parent": "普洱市" + }, + { + "adcode": "210703", + "people_count_2010": 409606, + "lat": 41.114662, + "lng": 121.151304, + "name": "凌河区", + "level": "district", + "parent": "锦州市" + }, + { + "adcode": "431123", + "people_count_2010": 164947, + "lat": 25.959397, + "lng": 111.662146, + "name": "双牌县", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "341021", + "people_count_2010": 409247, + "lat": 29.867748, + "lng": 118.428025, + "name": "歙县", + "level": "district", + "parent": "黄山市" + }, + { + "adcode": "341024", + "people_count_2010": 157768, + "lat": 29.853472, + "lng": 117.717237, + "name": "祁门县", + "level": "district", + "parent": "黄山市" + }, + { + "adcode": "340521", + "people_count_2010": 624771, + "lat": 31.556167, + "lng": 118.489873, + "name": "当涂县", + "level": "district", + "parent": "马鞍山市" + }, + { + "adcode": "140827", + "people_count_2010": 231018, + "lat": 35.298293, + "lng": 111.67099, + "name": "垣曲县", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "640425", + "people_count_2010": 200201, + "lat": 35.849975, + "lng": 106.641512, + "name": "彭阳县", + "level": "district", + "parent": "固原市" + }, + { + "adcode": "450603", + "people_count_2010": 362888, + "lat": 21.764758, + "lng": 108.358426, + "name": "防城区", + "level": "district", + "parent": "防城港市" + }, + { + "adcode": "611024", + "people_count_2010": 422255, + "lat": 33.530411, + "lng": 109.880435, + "name": "山阳县", + "level": "district", + "parent": "商洛市" + }, + { + "adcode": "341302", + "people_count_2010": null, + "lat": 33.633853, + "lng": 116.983309, + "name": "埇桥区", + "level": "district", + "parent": "宿州市" + }, + { + "adcode": "340802", + "people_count_2010": 251080, + "lat": 30.506375, + "lng": 117.044965, + "name": "迎江区", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "211404", + "people_count_2010": 120969, + "lat": 41.098813, + "lng": 120.752314, + "name": "南票区", + "level": "district", + "parent": "葫芦岛市" + }, + { + "adcode": "500109", + "people_count_2010": 680360, + "lat": 29.82543, + "lng": 106.437868, + "name": "北碚区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "640423", + "people_count_2010": 160754, + "lat": 35.618234, + "lng": 106.12344, + "name": "隆德县", + "level": "district", + "parent": "固原市" + }, + { + "adcode": "500114", + "people_count_2010": 445012, + "lat": 29.527548, + "lng": 108.782577, + "name": "黔江区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "500112", + "people_count_2010": 1300000, + "lat": 29.601451, + "lng": 106.512851, + "name": "渝北区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "500104", + "people_count_2010": 301042, + "lat": 29.481002, + "lng": 106.48613, + "name": "大渡口区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "500102", + "people_count_2010": 1100000, + "lat": 29.703652, + "lng": 107.394905, + "name": "涪陵区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "500113", + "people_count_2010": 918692, + "lat": 29.381919, + "lng": 106.519423, + "name": "巴南区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "500110", + "people_count_2010": 255776, + "lat": 29.028091, + "lng": 106.651417, + "name": "綦江区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "510904", + "people_count_2010": 639125, + "lat": 30.346121, + "lng": 105.459383, + "name": "安居区", + "level": "district", + "parent": "遂宁市" + }, + { + "adcode": "500115", + "people_count_2010": 770009, + "lat": 29.833671, + "lng": 107.074854, + "name": "长寿区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "360982", + "people_count_2010": 555120, + "lat": 28.055898, + "lng": 115.543388, + "name": "樟树市", + "level": "district", + "parent": "宜春市" + }, + { + "adcode": "500101", + "people_count_2010": 1600000, + "lat": 30.807807, + "lng": 108.380246, + "name": "万州区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "500111", + "people_count_2010": null, + "lat": 29.700498, + "lng": 105.715319, + "name": "大足区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "500106", + "people_count_2010": 1000000, + "lat": 29.541224, + "lng": 106.4542, + "name": "沙坪坝区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "410311", + "people_count_2010": null, + "lat": 34.618557, + "lng": 112.456634, + "name": "洛龙区", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "370404", + "people_count_2010": 364238, + "lat": 34.767713, + "lng": 117.586316, + "name": "峄城区", + "level": "district", + "parent": "枣庄市" + }, + { + "adcode": "130133", + "people_count_2010": 571077, + "lat": 37.754341, + "lng": 114.775362, + "name": "赵县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "130108", + "people_count_2010": 628572, + "lat": 38.027696, + "lng": 114.533257, + "name": "裕华区", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "152524", + "people_count_2010": 71063, + "lat": 42.746662, + "lng": 112.65539, + "name": "苏尼特右旗", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "360924", + "people_count_2010": 274046, + "lat": 28.388289, + "lng": 114.787381, + "name": "宜丰县", + "level": "district", + "parent": "宜春市" + }, + { + "adcode": "320902", + "people_count_2010": 904514, + "lat": 33.383912, + "lng": 120.136078, + "name": "亭湖区", + "level": "district", + "parent": "盐城市" + }, + { + "adcode": "410108", + "people_count_2010": 269579, + "lat": 34.828591, + "lng": 113.61836, + "name": "惠济区", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "152502", + "people_count_2010": 245886, + "lat": 43.944301, + "lng": 116.091903, + "name": "锡林浩特市", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "152530", + "people_count_2010": 81967, + "lat": 42.245895, + "lng": 116.003311, + "name": "正蓝旗", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "130423", + "people_count_2010": 600600, + "lat": 36.337604, + "lng": 114.610703, + "name": "临漳县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "411327", + "people_count_2010": 633786, + "lat": 33.056126, + "lng": 112.938279, + "name": "社旗县", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "630222", + "people_count_2010": null, + "lat": 36.329451, + "lng": 102.804209, + "name": "民和回族土族自治县", + "level": "district", + "parent": "海东市" + }, + { + "adcode": "210411", + "people_count_2010": 472920, + "lat": 41.881132, + "lng": 123.917165, + "name": "顺城区", + "level": "district", + "parent": "抚顺市" + }, + { + "adcode": "152527", + "people_count_2010": 112339, + "lat": 41.895199, + "lng": 115.28728, + "name": "太仆寺旗", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "610428", + "people_count_2010": 167570, + "lat": 35.206122, + "lng": 107.795835, + "name": "长武县", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "650402", + "people_count_2010": null, + "lat": 42.947627, + "lng": 89.182324, + "name": "高昌区", + "level": "district", + "parent": "吐鲁番市" + }, + { + "adcode": "630225", + "people_count_2010": null, + "lat": 35.847247, + "lng": 102.486534, + "name": "循化撒拉族自治县", + "level": "district", + "parent": "海东市" + }, + { + "adcode": "370832", + "people_count_2010": 730652, + "lat": 35.801843, + "lng": 116.08963, + "name": "梁山县", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "230205", + "people_count_2010": 80109, + "lat": 47.156867, + "lng": 123.813181, + "name": "昂昂溪区", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "350821", + "people_count_2010": 393390, + "lat": 25.842278, + "lng": 116.361007, + "name": "长汀县", + "level": "district", + "parent": "龙岩市" + }, + { + "adcode": "110114", + "people_count_2010": 1700000, + "lat": 40.218085, + "lng": 116.235906, + "name": "昌平区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "431024", + "people_count_2010": 296811, + "lat": 25.587309, + "lng": 112.370618, + "name": "嘉禾县", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "370830", + "people_count_2010": 684617, + "lat": 35.721746, + "lng": 116.487146, + "name": "汶上县", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "371102", + "people_count_2010": 920511, + "lat": 35.426152, + "lng": 119.457703, + "name": "东港区", + "level": "district", + "parent": "日照市" + }, + { + "adcode": "370785", + "people_count_2010": 895582, + "lat": 36.37754, + "lng": 119.757033, + "name": "高密市", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "632725", + "people_count_2010": 85825, + "lat": 32.203206, + "lng": 96.479797, + "name": "囊谦县", + "level": "district", + "parent": "玉树藏族自治州" + }, + { + "adcode": "350123", + "people_count_2010": 207677, + "lat": 26.487234, + "lng": 119.552645, + "name": "罗源县", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "810017", + "people_count_2010": null, + "lat": 22.363908, + "lng": 114.13918, + "name": "葵青區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "141024", + "people_count_2010": 733420, + "lat": 36.255742, + "lng": 111.673692, + "name": "洪洞县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "320311", + "people_count_2010": 539693, + "lat": 34.262249, + "lng": 117.182225, + "name": "泉山区", + "level": "district", + "parent": "徐州市" + }, + { + "adcode": "450328", + "people_count_2010": 154889, + "lat": 25.796428, + "lng": 110.009423, + "name": "龙胜各族自治县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "320381", + "people_count_2010": 920628, + "lat": 34.368779, + "lng": 118.345828, + "name": "新沂市", + "level": "district", + "parent": "徐州市" + }, + { + "adcode": "130227", + "people_count_2010": 390128, + "lat": 40.146238, + "lng": 118.305139, + "name": "迁西县", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "513433", + "people_count_2010": 351245, + "lat": 28.550844, + "lng": 102.170046, + "name": "冕宁县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "130184", + "people_count_2010": 487652, + "lat": 38.344768, + "lng": 114.68578, + "name": "新乐市", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "512022", + "people_count_2010": 546767, + "lat": 30.275619, + "lng": 105.031142, + "name": "乐至县", + "level": "district", + "parent": "资阳市" + }, + { + "adcode": "131026", + "people_count_2010": 500967, + "lat": 38.866801, + "lng": 116.460107, + "name": "文安县", + "level": "district", + "parent": "廊坊市" + }, + { + "adcode": "130633", + "people_count_2010": 537564, + "lat": 39.35297, + "lng": 115.501146, + "name": "易县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "632701", + "people_count_2010": null, + "lat": 33.00393, + "lng": 97.008762, + "name": "玉树市", + "level": "district", + "parent": "玉树藏族自治州" + }, + { + "adcode": "431002", + "people_count_2010": 419784, + "lat": 25.792628, + "lng": 113.032208, + "name": "北湖区", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "361123", + "people_count_2010": 574369, + "lat": 28.673479, + "lng": 118.244408, + "name": "玉山县", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "210204", + "people_count_2010": 693140, + "lat": 38.912859, + "lng": 121.593702, + "name": "沙河口区", + "level": "district", + "parent": "大连市" + }, + { + "adcode": "210202", + "people_count_2010": 339527, + "lat": 38.921553, + "lng": 121.64376, + "name": "中山区", + "level": "district", + "parent": "大连市" + }, + { + "adcode": "410328", + "people_count_2010": 421262, + "lat": 34.387179, + "lng": 111.655399, + "name": "洛宁县", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "371721", + "people_count_2010": 1400000, + "lat": 34.823253, + "lng": 115.549482, + "name": "曹县", + "level": "district", + "parent": "菏泽市" + }, + { + "adcode": "140122", + "people_count_2010": 120228, + "lat": 38.058797, + "lng": 112.673818, + "name": "阳曲县", + "level": "district", + "parent": "太原市" + }, + { + "adcode": "130983", + "people_count_2010": 548507, + "lat": 38.369238, + "lng": 117.343803, + "name": "黄骅市", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "361130", + "people_count_2010": 334020, + "lat": 29.254015, + "lng": 117.86219, + "name": "婺源县", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "370812", + "people_count_2010": null, + "lat": 35.556445, + "lng": 116.828996, + "name": "兖州区", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "130624", + "people_count_2010": 205299, + "lat": 38.847276, + "lng": 114.198801, + "name": "阜平县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "130681", + "people_count_2010": 603535, + "lat": 39.485765, + "lng": 115.973409, + "name": "涿州市", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "130321", + "people_count_2010": 496726, + "lat": 40.406023, + "lng": 118.954555, + "name": "青龙满族自治县", + "level": "district", + "parent": "秦皇岛市" + }, + { + "adcode": "130324", + "people_count_2010": 384439, + "lat": 39.891639, + "lng": 118.881809, + "name": "卢龙县", + "level": "district", + "parent": "秦皇岛市" + }, + { + "adcode": "150723", + "people_count_2010": 223752, + "lat": 50.590177, + "lng": 123.725684, + "name": "鄂伦春自治旗", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "361181", + "people_count_2010": 293201, + "lat": 28.945034, + "lng": 117.578732, + "name": "德兴市", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "130303", + "people_count_2010": 178769, + "lat": 39.998023, + "lng": 119.753591, + "name": "山海关区", + "level": "district", + "parent": "秦皇岛市" + }, + { + "adcode": "130722", + "people_count_2010": 318669, + "lat": 41.151713, + "lng": 114.715951, + "name": "张北县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "150821", + "people_count_2010": 260480, + "lat": 41.097639, + "lng": 108.270658, + "name": "五原县", + "level": "district", + "parent": "巴彦淖尔市" + }, + { + "adcode": "370828", + "people_count_2010": 625262, + "lat": 35.06977, + "lng": 116.310364, + "name": "金乡县", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "320507", + "people_count_2010": 692947, + "lat": 31.396684, + "lng": 120.618956, + "name": "相城区", + "level": "district", + "parent": "苏州市" + }, + { + "adcode": "130721", + "people_count_2010": 273506, + "lat": 40.562211, + "lng": 115.03308, + "name": "宣化县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "130608", + "people_count_2010": null, + "lat": 38.771012, + "lng": 115.492221, + "name": "清苑区", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "130732", + "people_count_2010": 238169, + "lat": 40.912081, + "lng": 115.832708, + "name": "赤城县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "140121", + "people_count_2010": 343861, + "lat": 37.60729, + "lng": 112.357961, + "name": "清徐县", + "level": "district", + "parent": "太原市" + }, + { + "adcode": "150122", + "people_count_2010": 200840, + "lat": 40.276729, + "lng": 111.197317, + "name": "托克托县", + "level": "district", + "parent": "呼和浩特市" + }, + { + "adcode": "350426", + "people_count_2010": 352067, + "lat": 26.169261, + "lng": 118.188577, + "name": "尤溪县", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "411025", + "people_count_2010": 671315, + "lat": 33.855943, + "lng": 113.493166, + "name": "襄城县", + "level": "district", + "parent": "许昌市" + }, + { + "adcode": "371481", + "people_count_2010": 652415, + "lat": 37.729115, + "lng": 117.216657, + "name": "乐陵市", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "130306", + "people_count_2010": null, + "lat": 39.887053, + "lng": 119.240651, + "name": "抚宁区", + "level": "district", + "parent": "秦皇岛市" + }, + { + "adcode": "522324", + "people_count_2010": 246809, + "lat": 25.832881, + "lng": 105.218773, + "name": "晴隆县", + "level": "district", + "parent": "黔西南布依族苗族自治州" + }, + { + "adcode": "130481", + "people_count_2010": 819000, + "lat": 36.696115, + "lng": 114.194581, + "name": "武安市", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "522730", + "people_count_2010": 180865, + "lat": 26.448809, + "lng": 106.977733, + "name": "龙里县", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "330683", + "people_count_2010": 679762, + "lat": 29.586606, + "lng": 120.82888, + "name": "嵊州市", + "level": "district", + "parent": "绍兴市" + }, + { + "adcode": "330482", + "people_count_2010": 671834, + "lat": 30.698921, + "lng": 121.014666, + "name": "平湖市", + "level": "district", + "parent": "嘉兴市" + }, + { + "adcode": "150524", + "people_count_2010": 167020, + "lat": 42.734692, + "lng": 121.774886, + "name": "库伦旗", + "level": "district", + "parent": "通辽市" + }, + { + "adcode": "511102", + "people_count_2010": null, + "lat": 29.588327, + "lng": 103.75539, + "name": "市中区", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "330604", + "people_count_2010": null, + "lat": 30.016769, + "lng": 120.874185, + "name": "上虞区", + "level": "district", + "parent": "绍兴市" + }, + { + "adcode": "330481", + "people_count_2010": 806966, + "lat": 30.525544, + "lng": 120.688821, + "name": "海宁市", + "level": "district", + "parent": "嘉兴市" + }, + { + "adcode": "371622", + "people_count_2010": 427014, + "lat": 37.640492, + "lng": 117.581326, + "name": "阳信县", + "level": "district", + "parent": "滨州市" + }, + { + "adcode": "230602", + "people_count_2010": 328808, + "lat": 46.596356, + "lng": 125.114643, + "name": "萨尔图区", + "level": "district", + "parent": "大庆市" + }, + { + "adcode": "141034", + "people_count_2010": 144791, + "lat": 36.653368, + "lng": 111.563021, + "name": "汾西县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "130828", + "people_count_2010": 421400, + "lat": 41.949404, + "lng": 117.764086, + "name": "围场满族蒙古族自治县", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "350782", + "people_count_2010": 233554, + "lat": 27.751733, + "lng": 118.032796, + "name": "武夷山市", + "level": "district", + "parent": "南平市" + }, + { + "adcode": "330503", + "people_count_2010": 536054, + "lat": 30.872742, + "lng": 120.417195, + "name": "南浔区", + "level": "district", + "parent": "湖州市" + }, + { + "adcode": "330327", + "people_count_2010": 1200000, + "lat": 27.507743, + "lng": 120.406256, + "name": "苍南县", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "610527", + "people_count_2010": 279679, + "lat": 35.177291, + "lng": 109.594309, + "name": "白水县", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "340302", + "people_count_2010": 243123, + "lat": 32.950452, + "lng": 117.382312, + "name": "龙子湖区", + "level": "district", + "parent": "蚌埠市" + }, + { + "adcode": "421126", + "people_count_2010": 727805, + "lat": 30.234927, + "lng": 115.433964, + "name": "蕲春县", + "level": "district", + "parent": "黄冈市" + }, + { + "adcode": "371702", + "people_count_2010": 1300000, + "lat": 35.24311, + "lng": 115.470946, + "name": "牡丹区", + "level": "district", + "parent": "菏泽市" + }, + { + "adcode": "450405", + "people_count_2010": 185574, + "lat": 23.4777, + "lng": 111.275678, + "name": "长洲区", + "level": "district", + "parent": "梧州市" + }, + { + "adcode": "640522", + "people_count_2010": 389305, + "lat": 36.562007, + "lng": 105.647323, + "name": "海原县", + "level": "district", + "parent": "中卫市" + }, + { + "adcode": "140929", + "people_count_2010": 84395, + "lat": 38.705625, + "lng": 111.56981, + "name": "岢岚县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "420504", + "people_count_2010": 103696, + "lat": 30.692322, + "lng": 111.268163, + "name": "点军区", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "141182", + "people_count_2010": 416212, + "lat": 37.267742, + "lng": 111.785273, + "name": "汾阳市", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "320811", + "people_count_2010": 330664, + "lat": 33.58074, + "lng": 119.030498, + "name": "清浦区", + "level": "district", + "parent": "淮安市" + }, + { + "adcode": "532626", + "people_count_2010": 477441, + "lat": 24.040982, + "lng": 104.194366, + "name": "丘北县", + "level": "district", + "parent": "文山壮族苗族自治州" + }, + { + "adcode": "431022", + "people_count_2010": 579340, + "lat": 25.394345, + "lng": 112.947884, + "name": "宜章县", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "320322", + "people_count_2010": 1100000, + "lat": 34.729044, + "lng": 116.937182, + "name": "沛县", + "level": "district", + "parent": "徐州市" + }, + { + "adcode": "130529", + "people_count_2010": 374634, + "lat": 37.21768, + "lng": 115.038782, + "name": "巨鹿县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "500234", + "people_count_2010": 1200000, + "lat": 31.167735, + "lng": 108.413317, + "name": "开县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "320382", + "people_count_2010": 1500000, + "lat": 34.314708, + "lng": 117.963923, + "name": "邳州市", + "level": "district", + "parent": "徐州市" + }, + { + "adcode": "431129", + "people_count_2010": null, + "lat": 25.182596, + "lng": 111.577276, + "name": "江华瑶族自治县", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "232723", + "people_count_2010": 83414, + "lat": 52.972074, + "lng": 122.536256, + "name": "漠河县", + "level": "district", + "parent": "大兴安岭地区" + }, + { + "adcode": "610827", + "people_count_2010": 154953, + "lat": 37.759081, + "lng": 110.178683, + "name": "米脂县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "610830", + "people_count_2010": 128938, + "lat": 37.087702, + "lng": 110.12146, + "name": "清涧县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "340225", + "people_count_2010": null, + "lat": 31.303075, + "lng": 117.911432, + "name": "无为县", + "level": "district", + "parent": "芜湖市" + }, + { + "adcode": "542521", + "people_count_2010": 9657, + "lat": 30.291896, + "lng": 81.177588, + "name": "普兰县", + "level": "district", + "parent": "阿里地区" + }, + { + "adcode": "320105", + "people_count_2010": 427089, + "lat": 32.004538, + "lng": 118.732688, + "name": "建邺区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "330703", + "people_count_2010": 315583, + "lat": 29.095835, + "lng": 119.681264, + "name": "金东区", + "level": "district", + "parent": "金华市" + }, + { + "adcode": "230207", + "people_count_2010": 72151, + "lat": 47.51401, + "lng": 122.887972, + "name": "碾子山区", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "370323", + "people_count_2010": 549491, + "lat": 36.186282, + "lng": 118.166161, + "name": "沂源县", + "level": "district", + "parent": "淄博市" + }, + { + "adcode": "340828", + "people_count_2010": 321636, + "lat": 30.848502, + "lng": 116.360482, + "name": "岳西县", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "510108", + "people_count_2010": 938785, + "lat": 30.660275, + "lng": 104.103077, + "name": "成华区", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "370784", + "people_count_2010": 926894, + "lat": 36.427417, + "lng": 119.206886, + "name": "安丘市", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "230781", + "people_count_2010": 349369, + "lat": 46.985772, + "lng": 128.030561, + "name": "铁力市", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "445281", + "people_count_2010": 2100000, + "lat": 23.29788, + "lng": 116.165082, + "name": "普宁市", + "level": "district", + "parent": "揭阳市" + }, + { + "adcode": "152201", + "people_count_2010": 327081, + "lat": 46.077238, + "lng": 122.068975, + "name": "乌兰浩特市", + "level": "district", + "parent": "兴安盟" + }, + { + "adcode": "341824", + "people_count_2010": 156127, + "lat": 30.065267, + "lng": 118.594705, + "name": "绩溪县", + "level": "district", + "parent": "宣城市" + }, + { + "adcode": "500236", + "people_count_2010": 834259, + "lat": 31.019967, + "lng": 109.465774, + "name": "奉节县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "331127", + "people_count_2010": 107106, + "lat": 27.977247, + "lng": 119.634669, + "name": "景宁畲族自治县", + "level": "district", + "parent": "丽水市" + }, + { + "adcode": "131128", + "people_count_2010": 341087, + "lat": 37.869945, + "lng": 116.164727, + "name": "阜城县", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "810013", + "people_count_2010": null, + "lat": 22.496143, + "lng": 114.147404, + "name": "北區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "150921", + "people_count_2010": 136965, + "lat": 40.89576, + "lng": 112.577702, + "name": "卓资县", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "360622", + "people_count_2010": 352476, + "lat": 28.206177, + "lng": 116.822763, + "name": "余江县", + "level": "district", + "parent": "鹰潭市" + }, + { + "adcode": "331181", + "people_count_2010": 234626, + "lat": 28.069177, + "lng": 119.132319, + "name": "龙泉市", + "level": "district", + "parent": "丽水市" + }, + { + "adcode": "360124", + "people_count_2010": 690446, + "lat": 28.365681, + "lng": 116.267671, + "name": "进贤县", + "level": "district", + "parent": "南昌市" + }, + { + "adcode": "370725", + "people_count_2010": 615910, + "lat": 36.703253, + "lng": 118.839995, + "name": "昌乐县", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "451323", + "people_count_2010": 353253, + "lat": 23.604162, + "lng": 109.66287, + "name": "武宣县", + "level": "district", + "parent": "来宾市" + }, + { + "adcode": "330283", + "people_count_2010": 491697, + "lat": 29.662348, + "lng": 121.41089, + "name": "奉化市", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "220621", + "people_count_2010": 297960, + "lat": 42.332643, + "lng": 127.273796, + "name": "抚松县", + "level": "district", + "parent": "白山市" + }, + { + "adcode": "150924", + "people_count_2010": 220067, + "lat": 40.872437, + "lng": 113.834009, + "name": "兴和县", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "130433", + "people_count_2010": 309032, + "lat": 36.539461, + "lng": 115.289057, + "name": "馆陶县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "361102", + "people_count_2010": 416219, + "lat": 28.445378, + "lng": 117.970522, + "name": "信州区", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "810008", + "people_count_2010": null, + "lat": 22.336112, + "lng": 114.203985, + "name": "黃大仙區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "110115", + "people_count_2010": 1400000, + "lat": 39.728908, + "lng": 116.338033, + "name": "大兴区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "360429", + "people_count_2010": 275797, + "lat": 29.7263, + "lng": 116.244313, + "name": "湖口县", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "141031", + "people_count_2010": 103617, + "lat": 36.692675, + "lng": 110.935809, + "name": "隰县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "360830", + "people_count_2010": 475580, + "lat": 26.944721, + "lng": 114.242534, + "name": "永新县", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "220722", + "people_count_2010": 639205, + "lat": 44.276579, + "lng": 123.985184, + "name": "长岭县", + "level": "district", + "parent": "松原市" + }, + { + "adcode": "150404", + "people_count_2010": 573571, + "lat": 42.281046, + "lng": 118.938958, + "name": "松山区", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "210303", + "people_count_2010": null, + "lat": 41.11069, + "lng": 122.971834, + "name": "铁西区", + "level": "district", + "parent": "鞍山市" + }, + { + "adcode": "460107", + "people_count_2010": 479958, + "lat": 20.001051, + "lng": 110.354722, + "name": "琼山区", + "level": "district", + "parent": "海口市" + }, + { + "adcode": "411325", + "people_count_2010": 575210, + "lat": 33.046358, + "lng": 111.843801, + "name": "内乡县", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "360921", + "people_count_2010": 312956, + "lat": 28.700672, + "lng": 115.389899, + "name": "奉新县", + "level": "district", + "parent": "宜春市" + }, + { + "adcode": "371323", + "people_count_2010": 998331, + "lat": 35.787029, + "lng": 118.634543, + "name": "沂水县", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "360302", + "people_count_2010": 534560, + "lat": 27.625826, + "lng": 113.855044, + "name": "安源区", + "level": "district", + "parent": "萍乡市" + }, + { + "adcode": "211321", + "people_count_2010": 486774, + "lat": 41.526342, + "lng": 120.404217, + "name": "朝阳县", + "level": "district", + "parent": "朝阳市" + }, + { + "adcode": "410882", + "people_count_2010": 447701, + "lat": 35.08901, + "lng": 112.934538, + "name": "沁阳市", + "level": "district", + "parent": "焦作市" + }, + { + "adcode": "510502", + "people_count_2010": 575231, + "lat": 28.882889, + "lng": 105.445131, + "name": "江阳区", + "level": "district", + "parent": "泸州市" + }, + { + "adcode": "410811", + "people_count_2010": 324121, + "lat": 35.21476, + "lng": 113.26766, + "name": "山阳区", + "level": "district", + "parent": "焦作市" + }, + { + "adcode": "220381", + "people_count_2010": 1100000, + "lat": 43.509474, + "lng": 124.817588, + "name": "公主岭市", + "level": "district", + "parent": "四平市" + }, + { + "adcode": "211121", + "people_count_2010": 430913, + "lat": 40.994428, + "lng": 122.071708, + "name": "大洼县", + "level": "district", + "parent": "盘锦市" + }, + { + "adcode": "440982", + "people_count_2010": 1200000, + "lat": 21.654953, + "lng": 110.63839, + "name": "化州市", + "level": "district", + "parent": "茂名市" + }, + { + "adcode": "450403", + "people_count_2010": 138842, + "lat": 23.471318, + "lng": 111.315817, + "name": "万秀区", + "level": "district", + "parent": "梧州市" + }, + { + "adcode": "431124", + "people_count_2010": 606299, + "lat": 25.518444, + "lng": 111.591614, + "name": "道县", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "361026", + "people_count_2010": 224039, + "lat": 27.546512, + "lng": 116.223023, + "name": "宜黄县", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "340303", + "people_count_2010": 334426, + "lat": 32.938066, + "lng": 117.355789, + "name": "蚌山区", + "level": "district", + "parent": "蚌埠市" + }, + { + "adcode": "431202", + "people_count_2010": 552622, + "lat": 27.548474, + "lng": 109.982242, + "name": "鹤城区", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "360823", + "people_count_2010": 184483, + "lat": 27.580862, + "lng": 115.319331, + "name": "峡江县", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "510521", + "people_count_2010": 840336, + "lat": 29.151288, + "lng": 105.376335, + "name": "泸县", + "level": "district", + "parent": "泸州市" + }, + { + "adcode": "310230", + "people_count_2010": 703722, + "lat": 31.626946, + "lng": 121.397516, + "name": "崇明县", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "360321", + "people_count_2010": 236328, + "lat": 27.127807, + "lng": 113.955582, + "name": "莲花县", + "level": "district", + "parent": "萍乡市" + }, + { + "adcode": "431224", + "people_count_2010": 741014, + "lat": 27.903802, + "lng": 110.593373, + "name": "溆浦县", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "431227", + "people_count_2010": 244322, + "lat": 27.359897, + "lng": 109.174443, + "name": "新晃侗族自治县", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "320583", + "people_count_2010": 1600000, + "lat": 31.381925, + "lng": 120.958137, + "name": "昆山市", + "level": "district", + "parent": "苏州市" + }, + { + "adcode": "522636", + "people_count_2010": 122430, + "lat": 26.199497, + "lng": 107.794808, + "name": "丹寨县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "532931", + "people_count_2010": 169973, + "lat": 26.530066, + "lng": 99.905887, + "name": "剑川县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "360421", + "people_count_2010": 315219, + "lat": 29.610264, + "lng": 115.892977, + "name": "九江县", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "530181", + "people_count_2010": 341341, + "lat": 24.921785, + "lng": 102.485544, + "name": "安宁市", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "340825", + "people_count_2010": 515283, + "lat": 30.451869, + "lng": 116.305225, + "name": "太湖县", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "431229", + "people_count_2010": null, + "lat": 26.573511, + "lng": 109.691159, + "name": "靖州苗族侗族自治县", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "340881", + "people_count_2010": 664455, + "lat": 31.050576, + "lng": 116.959656, + "name": "桐城市", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "430424", + "people_count_2010": 630029, + "lat": 27.083531, + "lng": 112.950412, + "name": "衡东县", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "431222", + "people_count_2010": 582582, + "lat": 28.455554, + "lng": 110.399161, + "name": "沅陵县", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "530124", + "people_count_2010": 145554, + "lat": 25.219667, + "lng": 102.497888, + "name": "富民县", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "530321", + "people_count_2010": 184989, + "lat": 25.429451, + "lng": 103.578755, + "name": "马龙县", + "level": "district", + "parent": "曲靖市" + }, + { + "adcode": "532901", + "people_count_2010": 856655, + "lat": 25.593067, + "lng": 100.241369, + "name": "大理市", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "500108", + "people_count_2010": 759570, + "lat": 29.523992, + "lng": 106.560813, + "name": "南岸区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "421281", + "people_count_2010": 478410, + "lat": 29.716879, + "lng": 113.88366, + "name": "赤壁市", + "level": "district", + "parent": "咸宁市" + }, + { + "adcode": "211003", + "people_count_2010": 193414, + "lat": 41.266765, + "lng": 123.188227, + "name": "文圣区", + "level": "district", + "parent": "辽阳市" + }, + { + "adcode": "411728", + "people_count_2010": 493930, + "lat": 33.14698, + "lng": 114.00371, + "name": "遂平县", + "level": "district", + "parent": "驻马店市" + }, + { + "adcode": "320506", + "people_count_2010": 1200000, + "lat": 31.270839, + "lng": 120.624621, + "name": "吴中区", + "level": "district", + "parent": "苏州市" + }, + { + "adcode": "445381", + "people_count_2010": 959006, + "lat": 22.765415, + "lng": 111.578201, + "name": "罗定市", + "level": "district", + "parent": "云浮市" + }, + { + "adcode": "211021", + "people_count_2010": 573509, + "lat": 41.216479, + "lng": 123.079674, + "name": "辽阳县", + "level": "district", + "parent": "辽阳市" + }, + { + "adcode": "513322", + "people_count_2010": 83386, + "lat": 29.912482, + "lng": 102.233225, + "name": "泸定县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "522624", + "people_count_2010": 155735, + "lat": 26.959884, + "lng": 108.681121, + "name": "三穗县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "450303", + "people_count_2010": 170628, + "lat": 25.301334, + "lng": 110.300783, + "name": "叠彩区", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "410522", + "people_count_2010": 849057, + "lat": 36.130585, + "lng": 114.130207, + "name": "安阳县", + "level": "district", + "parent": "安阳市" + }, + { + "adcode": "542233", + "people_count_2010": 34767, + "lat": 28.96836, + "lng": 90.398747, + "name": "浪卡子县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "610323", + "people_count_2010": 459064, + "lat": 34.44296, + "lng": 107.624464, + "name": "岐山县", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "360430", + "people_count_2010": 353149, + "lat": 29.898865, + "lng": 116.55584, + "name": "彭泽县", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "810001", + "people_count_2010": null, + "lat": 22.281931, + "lng": 114.154334, + "name": "中西區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "220402", + "people_count_2010": 294278, + "lat": 42.902702, + "lng": 125.145164, + "name": "龙山区", + "level": "district", + "parent": "辽源市" + }, + { + "adcode": "360428", + "people_count_2010": 716370, + "lat": 29.275105, + "lng": 116.205114, + "name": "都昌县", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "371403", + "people_count_2010": null, + "lat": 37.332848, + "lng": 116.574929, + "name": "陵城区", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "510822", + "people_count_2010": 222253, + "lat": 32.585655, + "lng": 105.238847, + "name": "青川县", + "level": "district", + "parent": "广元市" + }, + { + "adcode": "340311", + "people_count_2010": 145874, + "lat": 32.963147, + "lng": 117.34709, + "name": "淮上区", + "level": "district", + "parent": "蚌埠市" + }, + { + "adcode": "130111", + "people_count_2010": null, + "lat": 37.886911, + "lng": 114.654281, + "name": "栾城区", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "431027", + "people_count_2010": 226562, + "lat": 26.073917, + "lng": 113.945879, + "name": "桂东县", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "152525", + "people_count_2010": 93962, + "lat": 45.510307, + "lng": 116.980022, + "name": "东乌珠穆沁旗", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "231025", + "people_count_2010": 368956, + "lat": 45.286645, + "lng": 130.268402, + "name": "林口县", + "level": "district", + "parent": "牡丹江市" + }, + { + "adcode": "511302", + "people_count_2010": 701927, + "lat": 30.795572, + "lng": 106.084091, + "name": "顺庆区", + "level": "district", + "parent": "南充市" + }, + { + "adcode": "230803", + "people_count_2010": null, + "lat": 46.809645, + "lng": 130.361786, + "name": "向阳区", + "level": "district", + "parent": "佳木斯市" + }, + { + "adcode": "441623", + "people_count_2010": 337002, + "lat": 24.364227, + "lng": 114.495952, + "name": "连平县", + "level": "district", + "parent": "河源市" + }, + { + "adcode": "220283", + "people_count_2010": 645702, + "lat": 44.410906, + "lng": 126.947813, + "name": "舒兰市", + "level": "district", + "parent": "吉林市" + }, + { + "adcode": "230621", + "people_count_2010": 387463, + "lat": 45.708685, + "lng": 125.273254, + "name": "肇州县", + "level": "district", + "parent": "大庆市" + }, + { + "adcode": "610203", + "people_count_2010": 217509, + "lat": 35.111927, + "lng": 109.100814, + "name": "印台区", + "level": "district", + "parent": "铜川市" + }, + { + "adcode": "230624", + "people_count_2010": null, + "lat": 46.865973, + "lng": 124.446259, + "name": "杜尔伯特蒙古族自治县", + "level": "district", + "parent": "大庆市" + }, + { + "adcode": "411621", + "people_count_2010": 625819, + "lat": 34.054061, + "lng": 114.392008, + "name": "扶沟县", + "level": "district", + "parent": "周口市" + }, + { + "adcode": "450302", + "people_count_2010": 156504, + "lat": 25.278544, + "lng": 110.292445, + "name": "秀峰区", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "230113", + "people_count_2010": null, + "lat": 45.377942, + "lng": 126.308784, + "name": "双城区", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "440523", + "people_count_2010": 60304, + "lat": 23.419562, + "lng": 117.027105, + "name": "南澳县", + "level": "district", + "parent": "汕头市" + }, + { + "adcode": "430211", + "people_count_2010": 215392, + "lat": 27.826909, + "lng": 113.136252, + "name": "天元区", + "level": "district", + "parent": "株洲市" + }, + { + "adcode": "141025", + "people_count_2010": 91798, + "lat": 36.26855, + "lng": 111.920207, + "name": "古县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "511723", + "people_count_2010": 430877, + "lat": 31.085537, + "lng": 107.864135, + "name": "开江县", + "level": "district", + "parent": "达州市" + }, + { + "adcode": "620824", + "people_count_2010": 189333, + "lat": 35.215342, + "lng": 106.649308, + "name": "华亭县", + "level": "district", + "parent": "平凉市" + }, + { + "adcode": "321283", + "people_count_2010": 1100000, + "lat": 32.168784, + "lng": 120.020228, + "name": "泰兴市", + "level": "district", + "parent": "泰州市" + }, + { + "adcode": "211102", + "people_count_2010": 208384, + "lat": 41.190365, + "lng": 122.055733, + "name": "双台子区", + "level": "district", + "parent": "盘锦市" + }, + { + "adcode": "152523", + "people_count_2010": 33652, + "lat": 43.854108, + "lng": 113.653412, + "name": "苏尼特左旗", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "451029", + "people_count_2010": 225043, + "lat": 24.290262, + "lng": 106.235047, + "name": "田林县", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "150981", + "people_count_2010": 245608, + "lat": 40.437534, + "lng": 113.163462, + "name": "丰镇市", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "150782", + "people_count_2010": 352173, + "lat": 49.287024, + "lng": 120.729005, + "name": "牙克石市", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "410703", + "people_count_2010": 193506, + "lat": 35.304905, + "lng": 113.866065, + "name": "卫滨区", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "152529", + "people_count_2010": 54443, + "lat": 42.286807, + "lng": 115.031423, + "name": "正镶白旗", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "451027", + "people_count_2010": 185869, + "lat": 24.345643, + "lng": 106.56487, + "name": "凌云县", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "350924", + "people_count_2010": 175874, + "lat": 27.457798, + "lng": 119.506733, + "name": "寿宁县", + "level": "district", + "parent": "宁德市" + }, + { + "adcode": "360826", + "people_count_2010": 512225, + "lat": 26.790164, + "lng": 114.901393, + "name": "泰和县", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "321111", + "people_count_2010": 296539, + "lat": 32.213501, + "lng": 119.414877, + "name": "润州区", + "level": "district", + "parent": "镇江市" + }, + { + "adcode": "360829", + "people_count_2010": 385631, + "lat": 27.382746, + "lng": 114.61384, + "name": "安福县", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "360828", + "people_count_2010": 301699, + "lat": 26.462085, + "lng": 114.784694, + "name": "万安县", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "231102", + "people_count_2010": 211313, + "lat": 50.249027, + "lng": 127.497639, + "name": "爱辉区", + "level": "district", + "parent": "黑河市" + }, + { + "adcode": "610921", + "people_count_2010": 246147, + "lat": 32.891121, + "lng": 108.510946, + "name": "汉阴县", + "level": "district", + "parent": "安康市" + }, + { + "adcode": "411602", + "people_count_2010": 505171, + "lat": 33.614836, + "lng": 114.652136, + "name": "川汇区", + "level": "district", + "parent": "周口市" + }, + { + "adcode": "511521", + "people_count_2010": 813053, + "lat": 28.695678, + "lng": 104.541489, + "name": "宜宾县", + "level": "district", + "parent": "宜宾市" + }, + { + "adcode": "350526", + "people_count_2010": 277867, + "lat": 25.489004, + "lng": 118.242986, + "name": "德化县", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "320111", + "people_count_2010": 710298, + "lat": 32.05839, + "lng": 118.625307, + "name": "浦口区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "610922", + "people_count_2010": 171097, + "lat": 33.038512, + "lng": 108.250512, + "name": "石泉县", + "level": "district", + "parent": "安康市" + }, + { + "adcode": "220322", + "people_count_2010": 782630, + "lat": 43.30831, + "lng": 124.335802, + "name": "梨树县", + "level": "district", + "parent": "四平市" + }, + { + "adcode": "610929", + "people_count_2010": 163395, + "lat": 32.809484, + "lng": 110.114186, + "name": "白河县", + "level": "district", + "parent": "安康市" + }, + { + "adcode": "350921", + "people_count_2010": 461176, + "lat": 26.882068, + "lng": 120.005214, + "name": "霞浦县", + "level": "district", + "parent": "宁德市" + }, + { + "adcode": "360822", + "people_count_2010": 501337, + "lat": 27.213445, + "lng": 115.134569, + "name": "吉水县", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "610926", + "people_count_2010": 192959, + "lat": 32.387933, + "lng": 109.361865, + "name": "平利县", + "level": "district", + "parent": "安康市" + }, + { + "adcode": "150522", + "people_count_2010": null, + "lat": 42.954564, + "lng": 122.355155, + "name": "科尔沁左翼后旗", + "level": "district", + "parent": "通辽市" + }, + { + "adcode": "420115", + "people_count_2010": 790117, + "lat": 30.349045, + "lng": 114.313961, + "name": "江夏区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "231003", + "people_count_2010": 240214, + "lat": 44.596328, + "lng": 129.634645, + "name": "阳明区", + "level": "district", + "parent": "牡丹江市" + }, + { + "adcode": "110102", + "people_count_2010": 674531, + "lat": 39.915309, + "lng": 116.366794, + "name": "西城区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "610724", + "people_count_2010": 341812, + "lat": 32.987961, + "lng": 107.765858, + "name": "西乡县", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "140226", + "people_count_2010": 156163, + "lat": 40.012873, + "lng": 112.70641, + "name": "左云县", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "130523", + "people_count_2010": 266620, + "lat": 37.287663, + "lng": 114.511523, + "name": "内丘县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "654023", + "people_count_2010": 352689, + "lat": 44.049912, + "lng": 80.872508, + "name": "霍城县", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "150626", + "people_count_2010": 124527, + "lat": 38.596611, + "lng": 108.842454, + "name": "乌审旗", + "level": "district", + "parent": "鄂尔多斯市" + }, + { + "adcode": "530581", + "people_count_2010": null, + "lat": 25.01757, + "lng": 98.497292, + "name": "腾冲市", + "level": "district", + "parent": "保山市" + }, + { + "adcode": "610927", + "people_count_2010": 50966, + "lat": 31.883395, + "lng": 109.526437, + "name": "镇坪县", + "level": "district", + "parent": "安康市" + }, + { + "adcode": "150727", + "people_count_2010": 36356, + "lat": 48.669134, + "lng": 116.825991, + "name": "新巴尔虎右旗", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "150702", + "people_count_2010": 344934, + "lat": 49.213889, + "lng": 119.764923, + "name": "海拉尔区", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "150206", + "people_count_2010": 26050, + "lat": 41.769246, + "lng": 109.97016, + "name": "白云鄂博矿区", + "level": "district", + "parent": "包头市" + }, + { + "adcode": "140524", + "people_count_2010": 231360, + "lat": 35.775614, + "lng": 113.278877, + "name": "陵川县", + "level": "district", + "parent": "晋城市" + }, + { + "adcode": "410523", + "people_count_2010": 430803, + "lat": 35.922349, + "lng": 114.362357, + "name": "汤阴县", + "level": "district", + "parent": "安阳市" + }, + { + "adcode": "130803", + "people_count_2010": 146878, + "lat": 40.959756, + "lng": 117.797485, + "name": "双滦区", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "150724", + "people_count_2010": 251467, + "lat": 49.143293, + "lng": 119.754041, + "name": "鄂温克族自治旗", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "510106", + "people_count_2010": 1200000, + "lat": 30.692058, + "lng": 104.043487, + "name": "金牛区", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "510112", + "people_count_2010": 767203, + "lat": 30.56065, + "lng": 104.269181, + "name": "龙泉驿区", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "510121", + "people_count_2010": 717227, + "lat": 30.858417, + "lng": 104.415604, + "name": "金堂县", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "150602", + "people_count_2010": 582544, + "lat": 39.81788, + "lng": 109.98945, + "name": "东胜区", + "level": "district", + "parent": "鄂尔多斯市" + }, + { + "adcode": "510184", + "people_count_2010": 661120, + "lat": 30.631478, + "lng": 103.671049, + "name": "崇州市", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "370126", + "people_count_2010": 564125, + "lat": 37.310544, + "lng": 117.156369, + "name": "商河县", + "level": "district", + "parent": "济南市" + }, + { + "adcode": "150623", + "people_count_2010": 68282, + "lat": 38.183257, + "lng": 107.48172, + "name": "鄂托克前旗", + "level": "district", + "parent": "鄂尔多斯市" + }, + { + "adcode": "410327", + "people_count_2010": 636491, + "lat": 34.516478, + "lng": 112.179989, + "name": "宜阳县", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "411322", + "people_count_2010": 922467, + "lat": 33.255138, + "lng": 113.010933, + "name": "方城县", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "410323", + "people_count_2010": 470198, + "lat": 34.728679, + "lng": 112.141403, + "name": "新安县", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "150627", + "people_count_2010": 226752, + "lat": 39.604312, + "lng": 109.787402, + "name": "伊金霍洛旗", + "level": "district", + "parent": "鄂尔多斯市" + }, + { + "adcode": "500117", + "people_count_2010": 1300000, + "lat": 29.990993, + "lng": 106.265554, + "name": "合川区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "610330", + "people_count_2010": 105492, + "lat": 33.912464, + "lng": 106.525212, + "name": "凤县", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "610524", + "people_count_2010": 436441, + "lat": 35.237098, + "lng": 110.147979, + "name": "合阳县", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "510113", + "people_count_2010": 381792, + "lat": 30.883438, + "lng": 104.25494, + "name": "青白江区", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "420202", + "people_count_2010": 224314, + "lat": 30.212086, + "lng": 115.090164, + "name": "黄石港区", + "level": "district", + "parent": "黄石市" + }, + { + "adcode": "510303", + "people_count_2010": 260607, + "lat": 29.345675, + "lng": 104.714372, + "name": "贡井区", + "level": "district", + "parent": "自贡市" + }, + { + "adcode": "510311", + "people_count_2010": 272809, + "lat": 29.272521, + "lng": 104.876417, + "name": "沿滩区", + "level": "district", + "parent": "自贡市" + }, + { + "adcode": "653130", + "people_count_2010": 411960, + "lat": 39.783479, + "lng": 78.55041, + "name": "巴楚县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "510114", + "people_count_2010": 775703, + "lat": 30.824223, + "lng": 104.16022, + "name": "新都区", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "510421", + "people_count_2010": 219227, + "lat": 26.887474, + "lng": 102.109877, + "name": "米易县", + "level": "district", + "parent": "攀枝花市" + }, + { + "adcode": "640221", + "people_count_2010": 253010, + "lat": 38.90674, + "lng": 106.54489, + "name": "平罗县", + "level": "district", + "parent": "石嘴山市" + }, + { + "adcode": "440783", + "people_count_2010": 699242, + "lat": 22.366286, + "lng": 112.692262, + "name": "开平市", + "level": "district", + "parent": "江门市" + }, + { + "adcode": "510422", + "people_count_2010": 207717, + "lat": 26.677619, + "lng": 101.851848, + "name": "盐边县", + "level": "district", + "parent": "攀枝花市" + }, + { + "adcode": "130225", + "people_count_2010": 526222, + "lat": 39.42813, + "lng": 118.905341, + "name": "乐亭县", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "620602", + "people_count_2010": 1000000, + "lat": 37.93025, + "lng": 102.634492, + "name": "凉州区", + "level": "district", + "parent": "武威市" + }, + { + "adcode": "810005", + "people_count_2010": null, + "lat": 22.311632, + "lng": 114.173347, + "name": "油尖旺區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "654201", + "people_count_2010": 161037, + "lat": 46.746281, + "lng": 82.983988, + "name": "塔城市", + "level": "district", + "parent": "塔城地区" + }, + { + "adcode": "130421", + "people_count_2010": 462012, + "lat": 36.593905, + "lng": 114.531083, + "name": "邯郸县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "431103", + "people_count_2010": 488010, + "lat": 26.434364, + "lng": 111.607156, + "name": "冷水滩区", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "130435", + "people_count_2010": 427610, + "lat": 36.773398, + "lng": 114.957588, + "name": "曲周县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "450923", + "people_count_2010": 1300000, + "lat": 22.271285, + "lng": 109.980004, + "name": "博白县", + "level": "district", + "parent": "玉林市" + }, + { + "adcode": "430581", + "people_count_2010": 734870, + "lat": 26.732086, + "lng": 110.636804, + "name": "武冈市", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "440902", + "people_count_2010": 820821, + "lat": 21.660425, + "lng": 110.920542, + "name": "茂南区", + "level": "district", + "parent": "茂名市" + }, + { + "adcode": "511402", + "people_count_2010": 821853, + "lat": 30.048128, + "lng": 103.831553, + "name": "东坡区", + "level": "district", + "parent": "眉山市" + }, + { + "adcode": "632523", + "people_count_2010": 101771, + "lat": 36.040456, + "lng": 101.431856, + "name": "贵德县", + "level": "district", + "parent": "海南藏族自治州" + }, + { + "adcode": "632324", + "people_count_2010": null, + "lat": 34.734522, + "lng": 101.611877, + "name": "河南蒙古族自治县", + "level": "district", + "parent": "黄南藏族自治州" + }, + { + "adcode": "441403", + "people_count_2010": null, + "lat": 24.267825, + "lng": 116.083482, + "name": "梅县区", + "level": "district", + "parent": "梅州市" + }, + { + "adcode": "441323", + "people_count_2010": 908390, + "lat": 22.983036, + "lng": 114.723092, + "name": "惠东县", + "level": "district", + "parent": "惠州市" + }, + { + "adcode": "220282", + "people_count_2010": 444843, + "lat": 42.972093, + "lng": 126.745445, + "name": "桦甸市", + "level": "district", + "parent": "吉林市" + }, + { + "adcode": "430412", + "people_count_2010": 59681, + "lat": 27.240536, + "lng": 112.734147, + "name": "南岳区", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "220323", + "people_count_2010": 475245, + "lat": 43.345464, + "lng": 125.303124, + "name": "伊通满族自治县", + "level": "district", + "parent": "四平市" + }, + { + "adcode": "130822", + "people_count_2010": 314730, + "lat": 40.418525, + "lng": 117.507098, + "name": "兴隆县", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "542431", + "people_count_2010": null, + "lat": 33.18698, + "lng": 88.838578, + "name": "双湖县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "220106", + "people_count_2010": 810551, + "lat": 43.892177, + "lng": 125.272467, + "name": "绿园区", + "level": "district", + "parent": "长春市" + }, + { + "adcode": "110106", + "people_count_2010": 2100000, + "lat": 39.863642, + "lng": 116.286968, + "name": "丰台区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "450803", + "people_count_2010": 507962, + "lat": 23.067516, + "lng": 109.604665, + "name": "港南区", + "level": "district", + "parent": "贵港市" + }, + { + "adcode": "532523", + "people_count_2010": null, + "lat": 22.987013, + "lng": 103.687229, + "name": "屏边苗族自治县", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "532502", + "people_count_2010": 322693, + "lat": 23.713832, + "lng": 103.258679, + "name": "开远市", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "210802", + "people_count_2010": 310634, + "lat": 40.669949, + "lng": 122.253235, + "name": "站前区", + "level": "district", + "parent": "营口市" + }, + { + "adcode": "370881", + "people_count_2010": 640498, + "lat": 35.592788, + "lng": 116.991885, + "name": "曲阜市", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "620403", + "people_count_2010": 192399, + "lat": 36.72921, + "lng": 104.819207, + "name": "平川区", + "level": "district", + "parent": "白银市" + }, + { + "adcode": "320981", + "people_count_2010": 990306, + "lat": 32.853174, + "lng": 120.314101, + "name": "东台市", + "level": "district", + "parent": "盐城市" + }, + { + "adcode": "620822", + "people_count_2010": 183937, + "lat": 35.064009, + "lng": 107.620587, + "name": "灵台县", + "level": "district", + "parent": "平凉市" + }, + { + "adcode": "620826", + "people_count_2010": 423827, + "lat": 35.525243, + "lng": 105.733489, + "name": "静宁县", + "level": "district", + "parent": "平凉市" + }, + { + "adcode": "441303", + "people_count_2010": 764816, + "lat": 22.78851, + "lng": 114.469444, + "name": "惠阳区", + "level": "district", + "parent": "惠州市" + }, + { + "adcode": "632622", + "people_count_2010": 27185, + "lat": 32.931589, + "lng": 100.737955, + "name": "班玛县", + "level": "district", + "parent": "果洛藏族自治州" + }, + { + "adcode": "110112", + "people_count_2010": 1200000, + "lat": 39.902486, + "lng": 116.658603, + "name": "通州区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "532503", + "people_count_2010": null, + "lat": 23.366843, + "lng": 103.385005, + "name": "蒙自市", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "411622", + "people_count_2010": 787918, + "lat": 33.784378, + "lng": 114.530067, + "name": "西华县", + "level": "district", + "parent": "周口市" + }, + { + "adcode": "430802", + "people_count_2010": 441804, + "lat": 29.125961, + "lng": 110.484559, + "name": "永定区", + "level": "district", + "parent": "张家界市" + }, + { + "adcode": "441324", + "people_count_2010": 307180, + "lat": 23.723894, + "lng": 114.259986, + "name": "龙门县", + "level": "district", + "parent": "惠州市" + }, + { + "adcode": "310117", + "people_count_2010": 1600000, + "lat": 31.03047, + "lng": 121.223543, + "name": "松江区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "110107", + "people_count_2010": 616083, + "lat": 39.914601, + "lng": 116.195445, + "name": "石景山区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "211122", + "people_count_2010": 285116, + "lat": 41.240701, + "lng": 121.98528, + "name": "盘山县", + "level": "district", + "parent": "盘锦市" + }, + { + "adcode": "360602", + "people_count_2010": 214229, + "lat": 28.239076, + "lng": 117.034112, + "name": "月湖区", + "level": "district", + "parent": "鹰潭市" + }, + { + "adcode": "350925", + "people_count_2010": 112701, + "lat": 27.103106, + "lng": 119.338239, + "name": "周宁县", + "level": "district", + "parent": "宁德市" + }, + { + "adcode": "450225", + "people_count_2010": 402054, + "lat": 25.068812, + "lng": 109.252744, + "name": "融水苗族自治县", + "level": "district", + "parent": "柳州市" + }, + { + "adcode": "450205", + "people_count_2010": 428043, + "lat": 24.359145, + "lng": 109.406577, + "name": "柳北区", + "level": "district", + "parent": "柳州市" + }, + { + "adcode": "450224", + "people_count_2010": 285641, + "lat": 25.214703, + "lng": 109.403621, + "name": "融安县", + "level": "district", + "parent": "柳州市" + }, + { + "adcode": "532501", + "people_count_2010": 459781, + "lat": 23.360383, + "lng": 103.154752, + "name": "个旧市", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "621023", + "people_count_2010": 120875, + "lat": 36.457304, + "lng": 107.986288, + "name": "华池县", + "level": "district", + "parent": "庆阳市" + }, + { + "adcode": "652323", + "people_count_2010": 685317, + "lat": 44.189342, + "lng": 86.888613, + "name": "呼图壁县", + "level": "district", + "parent": "昌吉回族自治州" + }, + { + "adcode": "610331", + "people_count_2010": 50928, + "lat": 34.059215, + "lng": 107.316533, + "name": "太白县", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "511523", + "people_count_2010": 399829, + "lat": 28.728102, + "lng": 105.068697, + "name": "江安县", + "level": "district", + "parent": "宜宾市" + }, + { + "adcode": "411282", + "people_count_2010": 668833, + "lat": 34.521264, + "lng": 110.88577, + "name": "灵宝市", + "level": "district", + "parent": "三门峡市" + }, + { + "adcode": "441826", + "people_count_2010": 129258, + "lat": 24.719097, + "lng": 112.290808, + "name": "连南瑶族自治县", + "level": "district", + "parent": "清远市" + }, + { + "adcode": "230811", + "people_count_2010": null, + "lat": 46.80712, + "lng": 130.351588, + "name": "郊区", + "level": "district", + "parent": "佳木斯市" + }, + { + "adcode": "640323", + "people_count_2010": 146560, + "lat": 37.784222, + "lng": 107.40541, + "name": "盐池县", + "level": "district", + "parent": "吴忠市" + }, + { + "adcode": "231182", + "people_count_2010": 326391, + "lat": 48.512688, + "lng": 126.197694, + "name": "五大连池市", + "level": "district", + "parent": "黑河市" + }, + { + "adcode": "340402", + "people_count_2010": 180917, + "lat": 32.632066, + "lng": 117.052927, + "name": "大通区", + "level": "district", + "parent": "淮南市" + }, + { + "adcode": "230421", + "people_count_2010": 220131, + "lat": 47.577577, + "lng": 130.829087, + "name": "萝北县", + "level": "district", + "parent": "鹤岗市" + }, + { + "adcode": "230606", + "people_count_2010": 234557, + "lat": 46.034304, + "lng": 124.818509, + "name": "大同区", + "level": "district", + "parent": "大庆市" + }, + { + "adcode": "141081", + "people_count_2010": 240005, + "lat": 35.620302, + "lng": 111.371272, + "name": "侯马市", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "532928", + "people_count_2010": 175163, + "lat": 25.461281, + "lng": 99.533536, + "name": "永平县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "640402", + "people_count_2010": 411854, + "lat": 36.005337, + "lng": 106.28477, + "name": "原州区", + "level": "district", + "parent": "固原市" + }, + { + "adcode": "340406", + "people_count_2010": 395684, + "lat": 32.782117, + "lng": 116.816879, + "name": "潘集区", + "level": "district", + "parent": "淮南市" + }, + { + "adcode": "640122", + "people_count_2010": 222981, + "lat": 38.554563, + "lng": 106.345904, + "name": "贺兰县", + "level": "district", + "parent": "银川市" + }, + { + "adcode": "511112", + "people_count_2010": 312086, + "lat": 29.406186, + "lng": 103.816837, + "name": "五通桥区", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "331004", + "people_count_2010": 616622, + "lat": 28.581799, + "lng": 121.37292, + "name": "路桥区", + "level": "district", + "parent": "台州市" + }, + { + "adcode": "140322", + "people_count_2010": 311082, + "lat": 38.086131, + "lng": 113.41223, + "name": "盂县", + "level": "district", + "parent": "阳泉市" + }, + { + "adcode": "140222", + "people_count_2010": 206009, + "lat": 40.421336, + "lng": 114.09112, + "name": "天镇县", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "522326", + "people_count_2010": 251966, + "lat": 25.166667, + "lng": 106.091563, + "name": "望谟县", + "level": "district", + "parent": "黔西南布依族苗族自治州" + }, + { + "adcode": "632726", + "people_count_2010": 517581, + "lat": 34.12654, + "lng": 95.800674, + "name": "曲麻莱县", + "level": "district", + "parent": "玉树藏族自治州" + }, + { + "adcode": "623021", + "people_count_2010": 137001, + "lat": 34.69164, + "lng": 103.353054, + "name": "临潭县", + "level": "district", + "parent": "甘南藏族自治州" + }, + { + "adcode": "623024", + "people_count_2010": 52166, + "lat": 34.055348, + "lng": 103.221009, + "name": "迭部县", + "level": "district", + "parent": "甘南藏族自治州" + }, + { + "adcode": "150802", + "people_count_2010": 541721, + "lat": 40.757092, + "lng": 107.417018, + "name": "临河区", + "level": "district", + "parent": "巴彦淖尔市" + }, + { + "adcode": "540231", + "people_count_2010": null, + "lat": 28.36409, + "lng": 87.767723, + "name": "定结县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "654004", + "people_count_2010": null, + "lat": 44.201669, + "lng": 80.420759, + "name": "霍尔果斯市", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "340403", + "people_count_2010": 593981, + "lat": 32.644342, + "lng": 117.018318, + "name": "田家庵区", + "level": "district", + "parent": "淮南市" + }, + { + "adcode": "150703", + "people_count_2010": null, + "lat": 49.456567, + "lng": 117.716373, + "name": "扎赉诺尔区", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "340404", + "people_count_2010": 320251, + "lat": 32.598289, + "lng": 116.865354, + "name": "谢家集区", + "level": "district", + "parent": "淮南市" + }, + { + "adcode": "140623", + "people_count_2010": 112063, + "lat": 39.988812, + "lng": 112.465588, + "name": "右玉县", + "level": "district", + "parent": "朔州市" + }, + { + "adcode": "430405", + "people_count_2010": 331094, + "lat": 26.891063, + "lng": 112.626324, + "name": "珠晖区", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "420103", + "people_count_2010": 685699, + "lat": 30.578771, + "lng": 114.283109, + "name": "江汉区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "340811", + "people_count_2010": 254431, + "lat": 30.541323, + "lng": 117.070003, + "name": "宜秀区", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "130102", + "people_count_2010": 479801, + "lat": 38.047501, + "lng": 114.548151, + "name": "长安区", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "520303", + "people_count_2010": 438279, + "lat": 27.706626, + "lng": 106.937265, + "name": "汇川区", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "130105", + "people_count_2010": 228341, + "lat": 38.067142, + "lng": 114.465974, + "name": "新华区", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "330681", + "people_count_2010": 1200000, + "lat": 29.713662, + "lng": 120.244326, + "name": "诸暨市", + "level": "district", + "parent": "绍兴市" + }, + { + "adcode": "410727", + "people_count_2010": 743837, + "lat": 35.04057, + "lng": 114.423405, + "name": "封丘县", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "220822", + "people_count_2010": 353482, + "lat": 44.80915, + "lng": 123.088543, + "name": "通榆县", + "level": "district", + "parent": "白城市" + }, + { + "adcode": "654223", + "people_count_2010": 365196, + "lat": 44.329544, + "lng": 85.622508, + "name": "沙湾县", + "level": "district", + "parent": "塔城地区" + }, + { + "adcode": "220182", + "people_count_2010": 1200000, + "lat": 44.827642, + "lng": 126.550107, + "name": "榆树市", + "level": "district", + "parent": "长春市" + }, + { + "adcode": "450406", + "people_count_2010": null, + "lat": 23.40996, + "lng": 111.246035, + "name": "龙圩区", + "level": "district", + "parent": "梧州市" + }, + { + "adcode": "350628", + "people_count_2010": 498533, + "lat": 24.366158, + "lng": 117.313549, + "name": "平和县", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "210604", + "people_count_2010": 183328, + "lat": 40.158557, + "lng": 124.427709, + "name": "振安区", + "level": "district", + "parent": "丹东市" + }, + { + "adcode": "440804", + "people_count_2010": null, + "lat": 21.24441, + "lng": 110.455632, + "name": "坡头区", + "level": "district", + "parent": "湛江市" + }, + { + "adcode": "451002", + "people_count_2010": 372825, + "lat": 23.897675, + "lng": 106.615727, + "name": "右江区", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "320412", + "people_count_2010": 1600000, + "lat": 31.718566, + "lng": 119.958773, + "name": "武进区", + "level": "district", + "parent": "常州市" + }, + { + "adcode": "451324", + "people_count_2010": 124037, + "lat": 24.134941, + "lng": 110.188556, + "name": "金秀瑶族自治县", + "level": "district", + "parent": "来宾市" + }, + { + "adcode": "330603", + "people_count_2010": null, + "lat": 30.078038, + "lng": 120.476075, + "name": "柯桥区", + "level": "district", + "parent": "绍兴市" + }, + { + "adcode": "152528", + "people_count_2010": 28450, + "lat": 42.239229, + "lng": 113.843869, + "name": "镶黄旗", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "420503", + "people_count_2010": 214194, + "lat": 30.679053, + "lng": 111.307215, + "name": "伍家岗区", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "370125", + "people_count_2010": 517948, + "lat": 36.976772, + "lng": 117.176035, + "name": "济阳县", + "level": "district", + "parent": "济南市" + }, + { + "adcode": "540326", + "people_count_2010": null, + "lat": 30.053408, + "lng": 96.917893, + "name": "八宿县", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "330424", + "people_count_2010": 430940, + "lat": 30.522223, + "lng": 120.942017, + "name": "海盐县", + "level": "district", + "parent": "嘉兴市" + }, + { + "adcode": "140302", + "people_count_2010": 492262, + "lat": 37.860938, + "lng": 113.586513, + "name": "城区", + "level": "district", + "parent": "阳泉市" + }, + { + "adcode": "430381", + "people_count_2010": 788216, + "lat": 27.734918, + "lng": 112.525217, + "name": "湘乡市", + "level": "district", + "parent": "湘潭市" + }, + { + "adcode": "131024", + "people_count_2010": 343372, + "lat": 39.757212, + "lng": 117.007161, + "name": "香河县", + "level": "district", + "parent": "廊坊市" + }, + { + "adcode": "370402", + "people_count_2010": null, + "lat": 34.856651, + "lng": 117.557281, + "name": "市中区", + "level": "district", + "parent": "枣庄市" + }, + { + "adcode": "610528", + "people_count_2010": 743385, + "lat": 34.746679, + "lng": 109.187174, + "name": "富平县", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "231281", + "people_count_2010": 472826, + "lat": 46.410614, + "lng": 125.329926, + "name": "安达市", + "level": "district", + "parent": "绥化市" + }, + { + "adcode": "410581", + "people_count_2010": 789702, + "lat": 36.063403, + "lng": 113.823767, + "name": "林州市", + "level": "district", + "parent": "安阳市" + }, + { + "adcode": "440114", + "people_count_2010": 945005, + "lat": 23.39205, + "lng": 113.211184, + "name": "花都区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "130425", + "people_count_2010": 767035, + "lat": 36.283316, + "lng": 115.152586, + "name": "大名县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "310120", + "people_count_2010": 1100000, + "lat": 30.912345, + "lng": 121.458472, + "name": "奉贤区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "130429", + "people_count_2010": 943935, + "lat": 36.776413, + "lng": 114.496162, + "name": "永年县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "330624", + "people_count_2010": 380444, + "lat": 29.501205, + "lng": 120.905665, + "name": "新昌县", + "level": "district", + "parent": "绍兴市" + }, + { + "adcode": "630121", + "people_count_2010": 435937, + "lat": 36.931343, + "lng": 101.684183, + "name": "大通回族土族自治县", + "level": "district", + "parent": "西宁市" + }, + { + "adcode": "130927", + "people_count_2010": 366232, + "lat": 38.042439, + "lng": 116.709171, + "name": "南皮县", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "230405", + "people_count_2010": 74396, + "lat": 47.252911, + "lng": 130.236169, + "name": "兴安区", + "level": "district", + "parent": "鹤岗市" + }, + { + "adcode": "370104", + "people_count_2010": 476811, + "lat": 36.668205, + "lng": 116.947921, + "name": "槐荫区", + "level": "district", + "parent": "济南市" + }, + { + "adcode": "340826", + "people_count_2010": 571025, + "lat": 30.158327, + "lng": 116.120204, + "name": "宿松县", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "370102", + "people_count_2010": 754136, + "lat": 36.664169, + "lng": 117.03862, + "name": "历下区", + "level": "district", + "parent": "济南市" + }, + { + "adcode": "621202", + "people_count_2010": 555004, + "lat": 33.388155, + "lng": 104.929866, + "name": "武都区", + "level": "district", + "parent": "陇南市" + }, + { + "adcode": "522322", + "people_count_2010": 417919, + "lat": 25.431378, + "lng": 105.192778, + "name": "兴仁县", + "level": "district", + "parent": "黔西南布依族苗族自治州" + }, + { + "adcode": "620902", + "people_count_2010": 428346, + "lat": 39.743858, + "lng": 98.511155, + "name": "肃州区", + "level": "district", + "parent": "酒泉市" + }, + { + "adcode": "422801", + "people_count_2010": 749574, + "lat": 30.282406, + "lng": 109.486761, + "name": "恩施市", + "level": "district", + "parent": "恩施土家族苗族自治州" + }, + { + "adcode": "654026", + "people_count_2010": 148187, + "lat": 43.157765, + "lng": 81.126029, + "name": "昭苏县", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "370124", + "people_count_2010": 331712, + "lat": 36.286923, + "lng": 116.455054, + "name": "平阴县", + "level": "district", + "parent": "济南市" + }, + { + "adcode": "321181", + "people_count_2010": 960662, + "lat": 31.991459, + "lng": 119.581911, + "name": "丹阳市", + "level": "district", + "parent": "镇江市" + }, + { + "adcode": "331021", + "people_count_2010": 616346, + "lat": 28.12842, + "lng": 121.232337, + "name": "玉环县", + "level": "district", + "parent": "台州市" + }, + { + "adcode": "220721", + "people_count_2010": 607640, + "lat": 45.116288, + "lng": 124.826808, + "name": "前郭尔罗斯蒙古族自治县", + "level": "district", + "parent": "松原市" + }, + { + "adcode": "620923", + "people_count_2010": 36069, + "lat": 39.51224, + "lng": 94.87728, + "name": "肃北蒙古族自治县", + "level": "district", + "parent": "酒泉市" + }, + { + "adcode": "231085", + "people_count_2010": 293271, + "lat": 44.91967, + "lng": 130.527085, + "name": "穆棱市", + "level": "district", + "parent": "牡丹江市" + }, + { + "adcode": "510704", + "people_count_2010": 488604, + "lat": 31.484772, + "lng": 104.770006, + "name": "游仙区", + "level": "district", + "parent": "绵阳市" + }, + { + "adcode": "440402", + "people_count_2010": 892685, + "lat": 22.271249, + "lng": 113.55027, + "name": "香洲区", + "level": "district", + "parent": "珠海市" + }, + { + "adcode": "320305", + "people_count_2010": 430712, + "lat": 34.441642, + "lng": 117.450212, + "name": "贾汪区", + "level": "district", + "parent": "徐州市" + }, + { + "adcode": "230712", + "people_count_2010": 30979, + "lat": 48.453651, + "lng": 129.57224, + "name": "汤旺河区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "140123", + "people_count_2010": 105841, + "lat": 38.066035, + "lng": 111.793798, + "name": "娄烦县", + "level": "district", + "parent": "太原市" + }, + { + "adcode": "220211", + "people_count_2010": 296822, + "lat": 43.816594, + "lng": 126.560759, + "name": "丰满区", + "level": "district", + "parent": "吉林市" + }, + { + "adcode": "370304", + "people_count_2010": 463013, + "lat": 36.497567, + "lng": 117.85823, + "name": "博山区", + "level": "district", + "parent": "淄博市" + }, + { + "adcode": "150223", + "people_count_2010": null, + "lat": 41.702836, + "lng": 110.438452, + "name": "达尔罕茂明安联合旗", + "level": "district", + "parent": "包头市" + }, + { + "adcode": "130403", + "people_count_2010": 363778, + "lat": 36.611082, + "lng": 114.494703, + "name": "丛台区", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "310115", + "people_count_2010": 5000000, + "lat": 31.245944, + "lng": 121.567706, + "name": "浦东新区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "140525", + "people_count_2010": 484174, + "lat": 35.617221, + "lng": 112.899137, + "name": "泽州县", + "level": "district", + "parent": "晋城市" + }, + { + "adcode": "211005", + "people_count_2010": 90785, + "lat": 41.157831, + "lng": 123.431633, + "name": "弓长岭区", + "level": "district", + "parent": "辽阳市" + }, + { + "adcode": "210404", + "people_count_2010": 384514, + "lat": 41.851803, + "lng": 123.801509, + "name": "望花区", + "level": "district", + "parent": "抚顺市" + }, + { + "adcode": "810006", + "people_count_2010": null, + "lat": 22.333775, + "lng": 114.163349, + "name": "深水埗區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "370113", + "people_count_2010": 578740, + "lat": 36.561049, + "lng": 116.74588, + "name": "长清区", + "level": "district", + "parent": "济南市" + }, + { + "adcode": "130202", + "people_count_2010": 311076, + "lat": 39.615162, + "lng": 118.210821, + "name": "路南区", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "340827", + "people_count_2010": 526712, + "lat": 30.12491, + "lng": 116.690927, + "name": "望江县", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "361127", + "people_count_2010": 887616, + "lat": 28.69173, + "lng": 116.691072, + "name": "余干县", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "361129", + "people_count_2010": 359098, + "lat": 28.692589, + "lng": 117.07015, + "name": "万年县", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "360902", + "people_count_2010": 1000000, + "lat": 27.800117, + "lng": 114.387379, + "name": "袁州区", + "level": "district", + "parent": "宜春市" + }, + { + "adcode": "360703", + "people_count_2010": null, + "lat": 25.661721, + "lng": 114.756933, + "name": "南康区", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "511002", + "people_count_2010": null, + "lat": 29.585265, + "lng": 105.065467, + "name": "市中区", + "level": "district", + "parent": "内江市" + }, + { + "adcode": "320104", + "people_count_2010": 405955, + "lat": 32.033818, + "lng": 118.786088, + "name": "秦淮区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "430523", + "people_count_2010": 915600, + "lat": 26.989713, + "lng": 111.2757, + "name": "邵阳县", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "611025", + "people_count_2010": 275862, + "lat": 33.423981, + "lng": 109.151075, + "name": "镇安县", + "level": "district", + "parent": "商洛市" + }, + { + "adcode": "422825", + "people_count_2010": 310368, + "lat": 29.98867, + "lng": 109.482819, + "name": "宣恩县", + "level": "district", + "parent": "恩施土家族苗族自治州" + }, + { + "adcode": "420107", + "people_count_2010": null, + "lat": 30.634215, + "lng": 114.39707, + "name": "青山区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "441424", + "people_count_2010": 1100000, + "lat": 23.925424, + "lng": 115.775004, + "name": "五华县", + "level": "district", + "parent": "梅州市" + }, + { + "adcode": "310116", + "people_count_2010": 732438, + "lat": 30.724697, + "lng": 121.330736, + "name": "金山区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "610630", + "people_count_2010": 117203, + "lat": 36.050391, + "lng": 110.175537, + "name": "宜川县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "210422", + "people_count_2010": 254118, + "lat": 41.732456, + "lng": 125.037547, + "name": "新宾满族自治县", + "level": "district", + "parent": "抚顺市" + }, + { + "adcode": "150526", + "people_count_2010": 279371, + "lat": 44.555294, + "lng": 120.905275, + "name": "扎鲁特旗", + "level": "district", + "parent": "通辽市" + }, + { + "adcode": "451227", + "people_count_2010": 224637, + "lat": 24.139538, + "lng": 107.253126, + "name": "巴马瑶族自治县", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "451229", + "people_count_2010": 360802, + "lat": 23.739596, + "lng": 107.9945, + "name": "大化瑶族自治县", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "130582", + "people_count_2010": 498416, + "lat": 36.861903, + "lng": 114.504902, + "name": "沙河市", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "130434", + "people_count_2010": 809193, + "lat": 36.354248, + "lng": 114.93411, + "name": "魏县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "341521", + "people_count_2010": 1000000, + "lat": 32.577304, + "lng": 116.785349, + "name": "寿县", + "level": "district", + "parent": "六安市" + }, + { + "adcode": "451031", + "people_count_2010": 341401, + "lat": 24.774318, + "lng": 105.342363, + "name": "隆林各族自治县", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "532529", + "people_count_2010": 1000000, + "lat": 23.369191, + "lng": 102.42121, + "name": "红河县", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "610430", + "people_count_2010": 193377, + "lat": 34.79797, + "lng": 108.581173, + "name": "淳化县", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "210304", + "people_count_2010": 437339, + "lat": 41.150622, + "lng": 123.024806, + "name": "立山区", + "level": "district", + "parent": "鞍山市" + }, + { + "adcode": "511028", + "people_count_2010": 633210, + "lat": 29.338162, + "lng": 105.288074, + "name": "隆昌县", + "level": "district", + "parent": "内江市" + }, + { + "adcode": "510812", + "people_count_2010": 174333, + "lat": 32.642632, + "lng": 105.88917, + "name": "朝天区", + "level": "district", + "parent": "广元市" + }, + { + "adcode": "510823", + "people_count_2010": 457656, + "lat": 32.286517, + "lng": 105.527035, + "name": "剑阁县", + "level": "district", + "parent": "广元市" + }, + { + "adcode": "511603", + "people_count_2010": null, + "lat": 30.4963, + "lng": 106.893277, + "name": "前锋区", + "level": "district", + "parent": "广安市" + }, + { + "adcode": "451225", + "people_count_2010": 298261, + "lat": 24.779327, + "lng": 108.902453, + "name": "罗城仫佬族自治县", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "620621", + "people_count_2010": 241251, + "lat": 38.624621, + "lng": 103.090654, + "name": "民勤县", + "level": "district", + "parent": "武威市" + }, + { + "adcode": "532524", + "people_count_2010": 531456, + "lat": 23.618387, + "lng": 102.820493, + "name": "建水县", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "211282", + "people_count_2010": 545624, + "lat": 42.542141, + "lng": 124.045551, + "name": "开原市", + "level": "district", + "parent": "铁岭市" + }, + { + "adcode": "140223", + "people_count_2010": 182613, + "lat": 39.763051, + "lng": 114.279252, + "name": "广灵县", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "540122", + "people_count_2010": 46463, + "lat": 30.474819, + "lng": 91.103551, + "name": "当雄县", + "level": "district", + "parent": "拉萨市" + }, + { + "adcode": "511622", + "people_count_2010": 585624, + "lat": 30.344291, + "lng": 106.292473, + "name": "武胜县", + "level": "district", + "parent": "广安市" + }, + { + "adcode": "440306", + "people_count_2010": 4500000, + "lat": 22.754741, + "lng": 113.828671, + "name": "宝安区", + "level": "district", + "parent": "深圳市" + }, + { + "adcode": "540125", + "people_count_2010": null, + "lat": 29.647347, + "lng": 91.002823, + "name": "堆龙德庆县", + "level": "district", + "parent": "拉萨市" + }, + { + "adcode": "211004", + "people_count_2010": 142734, + "lat": 41.205747, + "lng": 123.200461, + "name": "宏伟区", + "level": "district", + "parent": "辽阳市" + }, + { + "adcode": "520622", + "people_count_2010": null, + "lat": 27.238024, + "lng": 108.917882, + "name": "玉屏侗族自治县", + "level": "district", + "parent": "铜仁市" + }, + { + "adcode": "320684", + "people_count_2010": 907598, + "lat": 31.893528, + "lng": 121.176609, + "name": "海门市", + "level": "district", + "parent": "南通市" + }, + { + "adcode": "520625", + "people_count_2010": null, + "lat": 27.997976, + "lng": 108.405517, + "name": "印江土家族苗族自治县", + "level": "district", + "parent": "铜仁市" + }, + { + "adcode": "530328", + "people_count_2010": 431058, + "lat": 25.600878, + "lng": 103.819262, + "name": "沾益县", + "level": "district", + "parent": "曲靖市" + }, + { + "adcode": "230706", + "people_count_2010": 44960, + "lat": 47.726228, + "lng": 128.671746, + "name": "翠峦区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "330105", + "people_count_2010": 551874, + "lat": 30.314697, + "lng": 120.150053, + "name": "拱墅区", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "530502", + "people_count_2010": 935618, + "lat": 25.112144, + "lng": 99.165825, + "name": "隆阳区", + "level": "district", + "parent": "保山市" + }, + { + "adcode": "130824", + "people_count_2010": 287986, + "lat": 40.936644, + "lng": 117.337124, + "name": "滦平县", + "level": "district", + "parent": "承德市" + }, + { + "adcode": "320681", + "people_count_2010": 3500000, + "lat": 31.810158, + "lng": 121.659724, + "name": "启东市", + "level": "district", + "parent": "南通市" + }, + { + "adcode": "441803", + "people_count_2010": null, + "lat": 23.736949, + "lng": 113.015203, + "name": "清新区", + "level": "district", + "parent": "清远市" + }, + { + "adcode": "532528", + "people_count_2010": 396777, + "lat": 23.219773, + "lng": 102.837056, + "name": "元阳县", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "542522", + "people_count_2010": 6883, + "lat": 31.478587, + "lng": 79.803191, + "name": "札达县", + "level": "district", + "parent": "阿里地区" + }, + { + "adcode": "410422", + "people_count_2010": null, + "lat": 33.621252, + "lng": 113.358298, + "name": "叶县", + "level": "district", + "parent": "平顶山市" + }, + { + "adcode": "330108", + "people_count_2010": 319027, + "lat": 30.206615, + "lng": 120.21062, + "name": "滨江区", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "411626", + "people_count_2010": 1100000, + "lat": 33.732547, + "lng": 114.870166, + "name": "淮阳县", + "level": "district", + "parent": "周口市" + }, + { + "adcode": "211081", + "people_count_2010": 496122, + "lat": 41.427836, + "lng": 123.325864, + "name": "灯塔市", + "level": "district", + "parent": "辽阳市" + }, + { + "adcode": "520328", + "people_count_2010": 377358, + "lat": 27.765839, + "lng": 107.485723, + "name": "湄潭县", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "340503", + "people_count_2010": 303855, + "lat": 31.69902, + "lng": 118.511308, + "name": "花山区", + "level": "district", + "parent": "马鞍山市" + }, + { + "adcode": "530521", + "people_count_2010": 305223, + "lat": 24.730847, + "lng": 99.183758, + "name": "施甸县", + "level": "district", + "parent": "保山市" + }, + { + "adcode": "321023", + "people_count_2010": 752425, + "lat": 33.23694, + "lng": 119.321284, + "name": "宝应县", + "level": "district", + "parent": "扬州市" + }, + { + "adcode": "522634", + "people_count_2010": 117190, + "lat": 26.381027, + "lng": 108.079613, + "name": "雷山县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "540329", + "people_count_2010": null, + "lat": 30.741947, + "lng": 95.823418, + "name": "洛隆县", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "321002", + "people_count_2010": 341043, + "lat": 32.392154, + "lng": 119.442267, + "name": "广陵区", + "level": "district", + "parent": "扬州市" + }, + { + "adcode": "530524", + "people_count_2010": 343566, + "lat": 24.823662, + "lng": 99.612344, + "name": "昌宁县", + "level": "district", + "parent": "保山市" + }, + { + "adcode": "440513", + "people_count_2010": 1600000, + "lat": 23.262336, + "lng": 116.602602, + "name": "潮阳区", + "level": "district", + "parent": "汕头市" + }, + { + "adcode": "532325", + "people_count_2010": 197676, + "lat": 25.505403, + "lng": 101.238399, + "name": "姚安县", + "level": "district", + "parent": "楚雄彝族自治州" + }, + { + "adcode": "440232", + "people_count_2010": 177471, + "lat": 24.776109, + "lng": 113.278417, + "name": "乳源瑶族自治县", + "level": "district", + "parent": "韶关市" + }, + { + "adcode": "520381", + "people_count_2010": 237052, + "lat": 28.587057, + "lng": 105.698116, + "name": "赤水市", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "220821", + "people_count_2010": 298301, + "lat": 45.846089, + "lng": 123.202246, + "name": "镇赉县", + "level": "district", + "parent": "白城市" + }, + { + "adcode": "441825", + "people_count_2010": null, + "lat": 24.567271, + "lng": 112.086555, + "name": "连山壮族瑶族自治县", + "level": "district", + "parent": "清远市" + }, + { + "adcode": "210882", + "people_count_2010": 704891, + "lat": 40.633973, + "lng": 122.505894, + "name": "大石桥市", + "level": "district", + "parent": "营口市" + }, + { + "adcode": "450422", + "people_count_2010": 835470, + "lat": 23.373963, + "lng": 110.931826, + "name": "藤县", + "level": "district", + "parent": "梧州市" + }, + { + "adcode": "510403", + "people_count_2010": null, + "lat": 26.596776, + "lng": 101.637969, + "name": "西区", + "level": "district", + "parent": "攀枝花市" + }, + { + "adcode": "441802", + "people_count_2010": 811233, + "lat": 23.688976, + "lng": 113.048698, + "name": "清城区", + "level": "district", + "parent": "清远市" + }, + { + "adcode": "441881", + "people_count_2010": 941952, + "lat": 24.18612, + "lng": 113.405404, + "name": "英德市", + "level": "district", + "parent": "清远市" + }, + { + "adcode": "440233", + "people_count_2010": 206091, + "lat": 24.055412, + "lng": 114.207034, + "name": "新丰县", + "level": "district", + "parent": "韶关市" + }, + { + "adcode": "321003", + "people_count_2010": 576909, + "lat": 32.377899, + "lng": 119.397777, + "name": "邗江区", + "level": "district", + "parent": "扬州市" + }, + { + "adcode": "131126", + "people_count_2010": 487025, + "lat": 37.350981, + "lng": 115.966747, + "name": "故城县", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "530822", + "people_count_2010": null, + "lat": 23.428165, + "lng": 101.687606, + "name": "墨江哈尼族自治县", + "level": "district", + "parent": "普洱市" + }, + { + "adcode": "620423", + "people_count_2010": 225755, + "lat": 37.193519, + "lng": 104.066394, + "name": "景泰县", + "level": "district", + "parent": "白银市" + }, + { + "adcode": "211204", + "people_count_2010": 530012, + "lat": 42.542978, + "lng": 124.14896, + "name": "清河区", + "level": "district", + "parent": "铁岭市" + }, + { + "adcode": "460322", + "people_count_2010": null, + "lat": 11.471888, + "lng": 116.749998, + "name": "南沙群岛", + "level": "district", + "parent": "三沙市" + }, + { + "adcode": "622924", + "people_count_2010": 227466, + "lat": 35.481688, + "lng": 103.576188, + "name": "广河县", + "level": "district", + "parent": "临夏回族自治州" + }, + { + "adcode": "450329", + "people_count_2010": 146824, + "lat": 26.0342, + "lng": 110.642587, + "name": "资源县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "360403", + "people_count_2010": 402758, + "lat": 29.72465, + "lng": 115.995947, + "name": "浔阳区", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "341003", + "people_count_2010": 147620, + "lat": 30.294517, + "lng": 118.136639, + "name": "黄山区", + "level": "district", + "parent": "黄山市" + }, + { + "adcode": "532925", + "people_count_2010": 1300000, + "lat": 25.342594, + "lng": 100.490669, + "name": "弥渡县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "140109", + "people_count_2010": 749255, + "lat": 37.862653, + "lng": 112.522258, + "name": "万柏林区", + "level": "district", + "parent": "太原市" + }, + { + "adcode": "540322", + "people_count_2010": null, + "lat": 30.859206, + "lng": 98.271191, + "name": "贡觉县", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "330111", + "people_count_2010": null, + "lat": 30.049871, + "lng": 119.949869, + "name": "富阳区", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "622926", + "people_count_2010": 1400000, + "lat": 35.66383, + "lng": 103.389568, + "name": "东乡族自治县", + "level": "district", + "parent": "临夏回族自治州" + }, + { + "adcode": "211421", + "people_count_2010": 586620, + "lat": 40.328407, + "lng": 120.342112, + "name": "绥中县", + "level": "district", + "parent": "葫芦岛市" + }, + { + "adcode": "220623", + "people_count_2010": 72550, + "lat": 41.419361, + "lng": 128.203384, + "name": "长白朝鲜族自治县", + "level": "district", + "parent": "白山市" + }, + { + "adcode": "511824", + "people_count_2010": 123600, + "lat": 29.234063, + "lng": 102.35962, + "name": "石棉县", + "level": "district", + "parent": "雅安市" + }, + { + "adcode": "230903", + "people_count_2010": 230293, + "lat": 45.771217, + "lng": 131.015848, + "name": "桃山区", + "level": "district", + "parent": "七台河市" + }, + { + "adcode": "211422", + "people_count_2010": 520537, + "lat": 40.812871, + "lng": 119.807776, + "name": "建昌县", + "level": "district", + "parent": "葫芦岛市" + }, + { + "adcode": "320303", + "people_count_2010": 345393, + "lat": 34.254805, + "lng": 117.194589, + "name": "云龙区", + "level": "district", + "parent": "徐州市" + }, + { + "adcode": "350302", + "people_count_2010": 413853, + "lat": 25.433737, + "lng": 119.001028, + "name": "城厢区", + "level": "district", + "parent": "莆田市" + }, + { + "adcode": "513232", + "people_count_2010": 74619, + "lat": 33.575934, + "lng": 102.963726, + "name": "若尔盖县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "350304", + "people_count_2010": 499110, + "lat": 25.430047, + "lng": 119.020047, + "name": "荔城区", + "level": "district", + "parent": "莆田市" + }, + { + "adcode": "150203", + "people_count_2010": 726838, + "lat": 40.661345, + "lng": 109.822932, + "name": "昆都仑区", + "level": "district", + "parent": "包头市" + }, + { + "adcode": "360322", + "people_count_2010": 467214, + "lat": 27.877041, + "lng": 113.800525, + "name": "上栗县", + "level": "district", + "parent": "萍乡市" + }, + { + "adcode": "360111", + "people_count_2010": 897843, + "lat": 28.689292, + "lng": 115.949044, + "name": "青山湖区", + "level": "district", + "parent": "南昌市" + }, + { + "adcode": "130581", + "people_count_2010": 469030, + "lat": 37.359668, + "lng": 115.398102, + "name": "南宫市", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "451022", + "people_count_2010": 356810, + "lat": 23.600444, + "lng": 107.12426, + "name": "田东县", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "370705", + "people_count_2010": 692643, + "lat": 36.709494, + "lng": 119.137357, + "name": "奎文区", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "411627", + "people_count_2010": 1100000, + "lat": 34.065312, + "lng": 114.853834, + "name": "太康县", + "level": "district", + "parent": "周口市" + }, + { + "adcode": "211322", + "people_count_2010": 505437, + "lat": 41.402576, + "lng": 119.642363, + "name": "建平县", + "level": "district", + "parent": "朝阳市" + }, + { + "adcode": "130130", + "people_count_2010": 502662, + "lat": 38.176376, + "lng": 114.977845, + "name": "无极县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "230422", + "people_count_2010": 174063, + "lat": 47.289892, + "lng": 131.860526, + "name": "绥滨县", + "level": "district", + "parent": "鹤岗市" + }, + { + "adcode": "130322", + "people_count_2010": 559697, + "lat": 39.709729, + "lng": 119.164541, + "name": "昌黎县", + "level": "district", + "parent": "秦皇岛市" + }, + { + "adcode": "450203", + "people_count_2010": 356296, + "lat": 24.303848, + "lng": 109.415364, + "name": "鱼峰区", + "level": "district", + "parent": "柳州市" + }, + { + "adcode": "450204", + "people_count_2010": 492043, + "lat": 24.287013, + "lng": 109.395936, + "name": "柳南区", + "level": "district", + "parent": "柳州市" + }, + { + "adcode": "450924", + "people_count_2010": 560394, + "lat": 22.74187, + "lng": 109.877768, + "name": "兴业县", + "level": "district", + "parent": "玉林市" + }, + { + "adcode": "210682", + "people_count_2010": 543933, + "lat": 40.457567, + "lng": 124.071067, + "name": "凤城市", + "level": "district", + "parent": "丹东市" + }, + { + "adcode": "540127", + "people_count_2010": 44674, + "lat": 29.834657, + "lng": 91.731158, + "name": "墨竹工卡县", + "level": "district", + "parent": "拉萨市" + }, + { + "adcode": "420804", + "people_count_2010": 271970, + "lat": 30.980798, + "lng": 112.198413, + "name": "掇刀区", + "level": "district", + "parent": "荆门市" + }, + { + "adcode": "140224", + "people_count_2010": 234004, + "lat": 39.438867, + "lng": 114.23576, + "name": "灵丘县", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "371422", + "people_count_2010": 449891, + "lat": 37.649619, + "lng": 116.79372, + "name": "宁津县", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "540235", + "people_count_2010": null, + "lat": 28.15595, + "lng": 85.981953, + "name": "聂拉木县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "532801", + "people_count_2010": 519935, + "lat": 22.002087, + "lng": 100.797947, + "name": "景洪市", + "level": "district", + "parent": "西双版纳傣族自治州" + }, + { + "adcode": "150428", + "people_count_2010": 293246, + "lat": 41.92778, + "lng": 118.708572, + "name": "喀喇沁旗", + "level": "district", + "parent": "赤峰市" + }, + { + "adcode": "371311", + "people_count_2010": 510945, + "lat": 34.997204, + "lng": 118.284795, + "name": "罗庄区", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "520326", + "people_count_2010": 321657, + "lat": 28.521567, + "lng": 107.887857, + "name": "务川仡佬族苗族自治县", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "230225", + "people_count_2010": 368734, + "lat": 47.917838, + "lng": 123.506034, + "name": "甘南县", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "540237", + "people_count_2010": null, + "lat": 28.274371, + "lng": 88.518903, + "name": "岗巴县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "630103", + "people_count_2010": null, + "lat": 36.621181, + "lng": 101.784554, + "name": "城中区", + "level": "district", + "parent": "西宁市" + }, + { + "adcode": "540324", + "people_count_2010": null, + "lat": 31.410681, + "lng": 95.597748, + "name": "丁青县", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "370683", + "people_count_2010": 883896, + "lat": 37.182725, + "lng": 119.942135, + "name": "莱州市", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "150581", + "people_count_2010": 102214, + "lat": 45.532361, + "lng": 119.657862, + "name": "霍林郭勒市", + "level": "district", + "parent": "通辽市" + }, + { + "adcode": "320115", + "people_count_2010": 1100000, + "lat": 31.953418, + "lng": 118.850621, + "name": "江宁区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "652825", + "people_count_2010": 320828, + "lat": 38.138562, + "lng": 85.532629, + "name": "且末县", + "level": "district", + "parent": "巴音郭楞蒙古自治州" + }, + { + "adcode": "430921", + "people_count_2010": 725288, + "lat": 29.372181, + "lng": 112.410399, + "name": "南县", + "level": "district", + "parent": "益阳市" + }, + { + "adcode": "130525", + "people_count_2010": 506552, + "lat": 37.350925, + "lng": 114.776348, + "name": "隆尧县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "430406", + "people_count_2010": 212914, + "lat": 26.893694, + "lng": 112.612241, + "name": "雁峰区", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "370686", + "people_count_2010": 589620, + "lat": 37.305854, + "lng": 120.834097, + "name": "栖霞市", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "440113", + "people_count_2010": 1800000, + "lat": 22.938582, + "lng": 113.364619, + "name": "番禺区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "210502", + "people_count_2010": 349130, + "lat": 41.291581, + "lng": 123.761231, + "name": "平山区", + "level": "district", + "parent": "本溪市" + }, + { + "adcode": "340222", + "people_count_2010": 257764, + "lat": 31.080896, + "lng": 118.201349, + "name": "繁昌县", + "level": "district", + "parent": "芜湖市" + }, + { + "adcode": "140426", + "people_count_2010": 158541, + "lat": 36.502971, + "lng": 113.387366, + "name": "黎城县", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "610629", + "people_count_2010": 220684, + "lat": 35.762133, + "lng": 109.435712, + "name": "洛川县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "540232", + "people_count_2010": null, + "lat": 29.768336, + "lng": 84.032826, + "name": "仲巴县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "440105", + "people_count_2010": 1600000, + "lat": 23.103131, + "lng": 113.262008, + "name": "海珠区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "140581", + "people_count_2010": 484862, + "lat": 35.791355, + "lng": 112.930691, + "name": "高平市", + "level": "district", + "parent": "晋城市" + }, + { + "adcode": "370685", + "people_count_2010": 566244, + "lat": 37.364919, + "lng": 120.403142, + "name": "招远市", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "610602", + "people_count_2010": 475234, + "lat": 36.596291, + "lng": 109.49069, + "name": "宝塔区", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "440115", + "people_count_2010": 259900, + "lat": 22.794531, + "lng": 113.53738, + "name": "南沙区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "141026", + "people_count_2010": 82012, + "lat": 36.146032, + "lng": 112.251372, + "name": "安泽县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "610114", + "people_count_2010": 278604, + "lat": 34.662141, + "lng": 109.22802, + "name": "阎良区", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "620924", + "people_count_2010": null, + "lat": 39.631642, + "lng": 94.337642, + "name": "阿克塞哈萨克族自治县", + "level": "district", + "parent": "酒泉市" + }, + { + "adcode": "320623", + "people_count_2010": null, + "lat": 32.311832, + "lng": 121.186088, + "name": "如东县", + "level": "district", + "parent": "南通市" + }, + { + "adcode": "510304", + "people_count_2010": 382245, + "lat": 29.367136, + "lng": 104.783229, + "name": "大安区", + "level": "district", + "parent": "自贡市" + }, + { + "adcode": "410205", + "people_count_2010": 130604, + "lat": 34.779727, + "lng": 114.350246, + "name": "禹王台区", + "level": "district", + "parent": "开封市" + }, + { + "adcode": "150785", + "people_count_2010": 110438, + "lat": 50.780454, + "lng": 121.532724, + "name": "根河市", + "level": "district", + "parent": "呼伦贝尔市" + }, + { + "adcode": "511827", + "people_count_2010": 56060, + "lat": 30.369026, + "lng": 102.813377, + "name": "宝兴县", + "level": "district", + "parent": "雅安市" + }, + { + "adcode": "532823", + "people_count_2010": 3700000, + "lat": 21.479449, + "lng": 101.567051, + "name": "勐腊县", + "level": "district", + "parent": "西双版纳傣族自治州" + }, + { + "adcode": "140227", + "people_count_2010": 185777, + "lat": 40.039345, + "lng": 113.611306, + "name": "大同县", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "520628", + "people_count_2010": null, + "lat": 28.165419, + "lng": 109.202627, + "name": "松桃苗族自治县", + "level": "district", + "parent": "铜仁市" + }, + { + "adcode": "450323", + "people_count_2010": 350832, + "lat": 25.408541, + "lng": 110.325712, + "name": "灵川县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "611002", + "people_count_2010": 531696, + "lat": 33.869208, + "lng": 109.937685, + "name": "商州区", + "level": "district", + "parent": "商洛市" + }, + { + "adcode": "320682", + "people_count_2010": null, + "lat": 32.391591, + "lng": 120.566324, + "name": "如皋市", + "level": "district", + "parent": "南通市" + }, + { + "adcode": "320581", + "people_count_2010": 1500000, + "lat": 31.658156, + "lng": 120.74852, + "name": "常熟市", + "level": "district", + "parent": "苏州市" + }, + { + "adcode": "360821", + "people_count_2010": 464295, + "lat": 27.040042, + "lng": 114.905117, + "name": "吉安县", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "220781", + "people_count_2010": null, + "lat": 44.986199, + "lng": 126.042758, + "name": "扶余市", + "level": "district", + "parent": "松原市" + }, + { + "adcode": "321084", + "people_count_2010": 744685, + "lat": 32.785164, + "lng": 119.443842, + "name": "高邮市", + "level": "district", + "parent": "扬州市" + }, + { + "adcode": "653001", + "people_count_2010": 240368, + "lat": 39.712898, + "lng": 76.173939, + "name": "阿图什市", + "level": "district", + "parent": "克孜勒苏柯尔克孜自治州" + }, + { + "adcode": "411381", + "people_count_2010": 1500000, + "lat": 32.681642, + "lng": 112.092716, + "name": "邓州市", + "level": "district", + "parent": "南阳市" + }, + { + "adcode": "130406", + "people_count_2010": 503911, + "lat": 36.420487, + "lng": 114.209936, + "name": "峰峰矿区", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "450312", + "people_count_2010": null, + "lat": 25.246257, + "lng": 110.205487, + "name": "临桂区", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "140108", + "people_count_2010": 415705, + "lat": 37.939893, + "lng": 112.487122, + "name": "尖草坪区", + "level": "district", + "parent": "太原市" + }, + { + "adcode": "140181", + "people_count_2010": 205143, + "lat": 37.908534, + "lng": 112.174353, + "name": "古交市", + "level": "district", + "parent": "太原市" + }, + { + "adcode": "230202", + "people_count_2010": 354987, + "lat": 47.341736, + "lng": 123.957338, + "name": "龙沙区", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "140105", + "people_count_2010": null, + "lat": 37.817974, + "lng": 112.564273, + "name": "小店区", + "level": "district", + "parent": "太原市" + }, + { + "adcode": "230203", + "people_count_2010": 292579, + "lat": 47.354494, + "lng": 123.955888, + "name": "建华区", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "530523", + "people_count_2010": 277319, + "lat": 24.591912, + "lng": 98.693567, + "name": "龙陵县", + "level": "district", + "parent": "保山市" + }, + { + "adcode": "621025", + "people_count_2010": 180909, + "lat": 35.490642, + "lng": 108.361068, + "name": "正宁县", + "level": "district", + "parent": "庆阳市" + }, + { + "adcode": "321012", + "people_count_2010": null, + "lat": 32.426564, + "lng": 119.567481, + "name": "江都区", + "level": "district", + "parent": "扬州市" + }, + { + "adcode": "810011", + "people_count_2010": null, + "lat": 22.393896, + "lng": 113.976308, + "name": "屯門區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "431021", + "people_count_2010": 696922, + "lat": 25.737447, + "lng": 112.734466, + "name": "桂阳县", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "431225", + "people_count_2010": 318686, + "lat": 26.870789, + "lng": 109.720785, + "name": "会同县", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "640424", + "people_count_2010": 101026, + "lat": 35.49344, + "lng": 106.338674, + "name": "泾源县", + "level": "district", + "parent": "固原市" + }, + { + "adcode": "530426", + "people_count_2010": null, + "lat": 24.173256, + "lng": 102.404358, + "name": "峨山彝族自治县", + "level": "district", + "parent": "玉溪市" + }, + { + "adcode": "530129", + "people_count_2010": null, + "lat": 25.559474, + "lng": 103.257588, + "name": "寻甸回族彝族自治县", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "810004", + "people_count_2010": null, + "lat": 22.245811, + "lng": 114.160023, + "name": "南區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "140429", + "people_count_2010": 182549, + "lat": 36.834315, + "lng": 112.8653, + "name": "武乡县", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "810012", + "people_count_2010": null, + "lat": 22.44132, + "lng": 114.032528, + "name": "元朗區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "810010", + "people_count_2010": null, + "lat": 22.368458, + "lng": 114.121234, + "name": "荃灣區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "130502", + "people_count_2010": null, + "lat": 37.064125, + "lng": 114.507131, + "name": "桥东区", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "810016", + "people_count_2010": null, + "lat": 22.379715, + "lng": 114.195126, + "name": "沙田區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "622927", + "people_count_2010": null, + "lat": 35.712906, + "lng": 102.877473, + "name": "积石山保安族东乡族撒拉族自治县", + "level": "district", + "parent": "临夏回族自治州" + }, + { + "adcode": "361024", + "people_count_2010": 347837, + "lat": 27.760907, + "lng": 116.059109, + "name": "崇仁县", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "360102", + "people_count_2010": 575489, + "lat": 28.682988, + "lng": 115.889675, + "name": "东湖区", + "level": "district", + "parent": "南昌市" + }, + { + "adcode": "654202", + "people_count_2010": 298907, + "lat": 44.430115, + "lng": 84.677624, + "name": "乌苏市", + "level": "district", + "parent": "塔城地区" + }, + { + "adcode": "420583", + "people_count_2010": 495995, + "lat": 30.425364, + "lng": 111.751799, + "name": "枝江市", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "130903", + "people_count_2010": 308454, + "lat": 38.307405, + "lng": 116.840063, + "name": "运河区", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "360103", + "people_count_2010": null, + "lat": 28.662901, + "lng": 115.91065, + "name": "西湖区", + "level": "district", + "parent": "南昌市" + }, + { + "adcode": "371524", + "people_count_2010": 352630, + "lat": 36.336004, + "lng": 116.248855, + "name": "东阿县", + "level": "district", + "parent": "聊城市" + }, + { + "adcode": "130635", + "people_count_2010": 505572, + "lat": 38.496429, + "lng": 115.583631, + "name": "蠡县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "511525", + "people_count_2010": 411123, + "lat": 28.435676, + "lng": 104.519187, + "name": "高县", + "level": "district", + "parent": "宜宾市" + }, + { + "adcode": "120102", + "people_count_2010": 860852, + "lat": 39.122125, + "lng": 117.226568, + "name": "河东区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "340103", + "people_count_2010": 609239, + "lat": 31.869011, + "lng": 117.283776, + "name": "庐阳区", + "level": "district", + "parent": "合肥市" + }, + { + "adcode": "451030", + "people_count_2010": 138647, + "lat": 24.492041, + "lng": 105.095025, + "name": "西林县", + "level": "district", + "parent": "百色市" + }, + { + "adcode": "350402", + "people_count_2010": 176539, + "lat": 26.269208, + "lng": 117.63687, + "name": "梅列区", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "350305", + "people_count_2010": 570741, + "lat": 25.316141, + "lng": 119.092607, + "name": "秀屿区", + "level": "district", + "parent": "莆田市" + }, + { + "adcode": "231124", + "people_count_2010": 102821, + "lat": 49.423941, + "lng": 127.327315, + "name": "孙吴县", + "level": "district", + "parent": "黑河市" + }, + { + "adcode": "350105", + "people_count_2010": 231929, + "lat": 25.991975, + "lng": 119.458725, + "name": "马尾区", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "350181", + "people_count_2010": 1200000, + "lat": 25.720402, + "lng": 119.376992, + "name": "福清市", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "440802", + "people_count_2010": null, + "lat": 21.273365, + "lng": 110.361634, + "name": "赤坎区", + "level": "district", + "parent": "湛江市" + }, + { + "adcode": "440981", + "people_count_2010": 1300000, + "lat": 21.915153, + "lng": 110.853251, + "name": "高州市", + "level": "district", + "parent": "茂名市" + }, + { + "adcode": "230822", + "people_count_2010": 468698, + "lat": 46.240118, + "lng": 130.570112, + "name": "桦南县", + "level": "district", + "parent": "佳木斯市" + }, + { + "adcode": "510107", + "people_count_2010": 1400000, + "lat": 30.630862, + "lng": 104.05167, + "name": "武侯区", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "440204", + "people_count_2010": 393521, + "lat": 24.803977, + "lng": 113.599224, + "name": "浈江区", + "level": "district", + "parent": "韶关市" + }, + { + "adcode": "420525", + "people_count_2010": 184532, + "lat": 31.059626, + "lng": 111.64331, + "name": "远安县", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "341202", + "people_count_2010": 691698, + "lat": 32.891238, + "lng": 115.813914, + "name": "颍州区", + "level": "district", + "parent": "阜阳市" + }, + { + "adcode": "231024", + "people_count_2010": 200716, + "lat": 44.063578, + "lng": 131.125296, + "name": "东宁县", + "level": "district", + "parent": "牡丹江市" + }, + { + "adcode": "231084", + "people_count_2010": 437452, + "lat": 44.346836, + "lng": 129.470019, + "name": "宁安市", + "level": "district", + "parent": "牡丹江市" + }, + { + "adcode": "341821", + "people_count_2010": 320627, + "lat": 31.127834, + "lng": 119.185024, + "name": "郎溪县", + "level": "district", + "parent": "宣城市" + }, + { + "adcode": "410102", + "people_count_2010": 905491, + "lat": 34.748286, + "lng": 113.611576, + "name": "中原区", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "130926", + "people_count_2010": 334639, + "lat": 38.427102, + "lng": 115.835856, + "name": "肃宁县", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "441402", + "people_count_2010": 380771, + "lat": 24.302593, + "lng": 116.12116, + "name": "梅江区", + "level": "district", + "parent": "梅州市" + }, + { + "adcode": "140425", + "people_count_2010": 150955, + "lat": 36.200202, + "lng": 113.438791, + "name": "平顺县", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "320611", + "people_count_2010": 266326, + "lat": 32.040299, + "lng": 120.8339, + "name": "港闸区", + "level": "district", + "parent": "南通市" + }, + { + "adcode": "230804", + "people_count_2010": 171530, + "lat": 46.812345, + "lng": 130.377684, + "name": "前进区", + "level": "district", + "parent": "佳木斯市" + }, + { + "adcode": "130928", + "people_count_2010": 282410, + "lat": 37.628182, + "lng": 116.391512, + "name": "吴桥县", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "130925", + "people_count_2010": 436812, + "lat": 38.056141, + "lng": 117.229814, + "name": "盐山县", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "220523", + "people_count_2010": 359329, + "lat": 42.683459, + "lng": 126.042821, + "name": "辉南县", + "level": "district", + "parent": "通化市" + }, + { + "adcode": "130930", + "people_count_2010": 202571, + "lat": 38.057953, + "lng": 117.105104, + "name": "孟村回族自治县", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "440983", + "people_count_2010": 913708, + "lat": 22.352681, + "lng": 110.941656, + "name": "信宜市", + "level": "district", + "parent": "茂名市" + }, + { + "adcode": "231005", + "people_count_2010": null, + "lat": 44.581032, + "lng": 129.61311, + "name": "西安区", + "level": "district", + "parent": "牡丹江市" + }, + { + "adcode": "431023", + "people_count_2010": 572655, + "lat": 26.129392, + "lng": 113.114819, + "name": "永兴县", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "440608", + "people_count_2010": 420044, + "lat": 22.893855, + "lng": 112.882123, + "name": "高明区", + "level": "district", + "parent": "佛山市" + }, + { + "adcode": "542428", + "people_count_2010": 36842, + "lat": 31.394578, + "lng": 90.011822, + "name": "班戈县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "361021", + "people_count_2010": 306236, + "lat": 27.55531, + "lng": 116.63945, + "name": "南城县", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "341524", + "people_count_2010": 514456, + "lat": 31.681624, + "lng": 115.878514, + "name": "金寨县", + "level": "district", + "parent": "六安市" + }, + { + "adcode": "310101", + "people_count_2010": 429891, + "lat": 31.222771, + "lng": 121.490317, + "name": "黄浦区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "140311", + "people_count_2010": 72301, + "lat": 37.94096, + "lng": 113.58664, + "name": "郊区", + "level": "district", + "parent": "阳泉市" + }, + { + "adcode": "513432", + "people_count_2010": 165906, + "lat": 28.305486, + "lng": 102.412342, + "name": "喜德县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "331123", + "people_count_2010": 190165, + "lat": 28.5924, + "lng": 119.27589, + "name": "遂昌县", + "level": "district", + "parent": "丽水市" + }, + { + "adcode": "530103", + "people_count_2010": 809881, + "lat": 25.070239, + "lng": 102.729044, + "name": "盘龙区", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "440881", + "people_count_2010": 1400000, + "lat": 21.611281, + "lng": 110.284961, + "name": "廉江市", + "level": "district", + "parent": "湛江市" + }, + { + "adcode": "130527", + "people_count_2010": 325332, + "lat": 37.003812, + "lng": 114.691377, + "name": "南和县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "210321", + "people_count_2010": 1300000, + "lat": 41.38686, + "lng": 122.429736, + "name": "台安县", + "level": "district", + "parent": "鞍山市" + }, + { + "adcode": "450703", + "people_count_2010": 581381, + "lat": 22.132761, + "lng": 108.44911, + "name": "钦北区", + "level": "district", + "parent": "钦州市" + }, + { + "adcode": "120116", + "people_count_2010": null, + "lat": 39.032846, + "lng": 117.654173, + "name": "滨海新区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "511802", + "people_count_2010": 355572, + "lat": 29.981831, + "lng": 103.003398, + "name": "雨城区", + "level": "district", + "parent": "雅安市" + }, + { + "adcode": "131023", + "people_count_2010": 356481, + "lat": 39.319717, + "lng": 116.498089, + "name": "永清县", + "level": "district", + "parent": "廊坊市" + }, + { + "adcode": "220524", + "people_count_2010": 363836, + "lat": 42.281484, + "lng": 125.740536, + "name": "柳河县", + "level": "district", + "parent": "通化市" + }, + { + "adcode": "350881", + "people_count_2010": 3100000, + "lat": 25.291597, + "lng": 117.42073, + "name": "漳平市", + "level": "district", + "parent": "龙岩市" + }, + { + "adcode": "350521", + "people_count_2010": 944231, + "lat": 25.028718, + "lng": 118.798954, + "name": "惠安县", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "350823", + "people_count_2010": 374047, + "lat": 25.050019, + "lng": 116.424774, + "name": "上杭县", + "level": "district", + "parent": "龙岩市" + }, + { + "adcode": "620922", + "people_count_2010": 148798, + "lat": 40.516525, + "lng": 95.780591, + "name": "瓜州县", + "level": "district", + "parent": "酒泉市" + }, + { + "adcode": "350623", + "people_count_2010": 802971, + "lat": 24.117907, + "lng": 117.614023, + "name": "漳浦县", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "350421", + "people_count_2010": 102667, + "lat": 26.357375, + "lng": 117.201845, + "name": "明溪县", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "440785", + "people_count_2010": 492814, + "lat": 22.182956, + "lng": 112.314051, + "name": "恩平市", + "level": "district", + "parent": "江门市" + }, + { + "adcode": "350803", + "people_count_2010": null, + "lat": 24.720442, + "lng": 116.732691, + "name": "永定区", + "level": "district", + "parent": "龙岩市" + }, + { + "adcode": "511803", + "people_count_2010": null, + "lat": 30.084718, + "lng": 103.112214, + "name": "名山区", + "level": "district", + "parent": "雅安市" + }, + { + "adcode": "450722", + "people_count_2010": 728619, + "lat": 22.268335, + "lng": 109.556341, + "name": "浦北县", + "level": "district", + "parent": "钦州市" + }, + { + "adcode": "360482", + "people_count_2010": null, + "lat": 29.247884, + "lng": 115.805712, + "name": "共青城市", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "341125", + "people_count_2010": 779174, + "lat": 32.527105, + "lng": 117.683713, + "name": "定远县", + "level": "district", + "parent": "滁州市" + }, + { + "adcode": "500230", + "people_count_2010": 649182, + "lat": 29.866424, + "lng": 107.73248, + "name": "丰都县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "330281", + "people_count_2010": 1000000, + "lat": 30.045404, + "lng": 121.156294, + "name": "余姚市", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "810002", + "people_count_2010": null, + "lat": 22.276345, + "lng": 114.18299, + "name": "灣仔區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "341181", + "people_count_2010": 602840, + "lat": 32.6815, + "lng": 119.011212, + "name": "天长市", + "level": "district", + "parent": "滁州市" + }, + { + "adcode": "621002", + "people_count_2010": 377528, + "lat": 35.733713, + "lng": 107.638824, + "name": "西峰区", + "level": "district", + "parent": "庆阳市" + }, + { + "adcode": "632802", + "people_count_2010": 78184, + "lat": 37.374555, + "lng": 97.370143, + "name": "德令哈市", + "level": "district", + "parent": "海西蒙古族藏族自治州" + }, + { + "adcode": "632822", + "people_count_2010": 76623, + "lat": 36.298553, + "lng": 98.089161, + "name": "都兰县", + "level": "district", + "parent": "海西蒙古族藏族自治州" + }, + { + "adcode": "511903", + "people_count_2010": null, + "lat": 31.816336, + "lng": 106.486515, + "name": "恩阳区", + "level": "district", + "parent": "巴中市" + }, + { + "adcode": "511923", + "people_count_2010": 862620, + "lat": 31.562814, + "lng": 107.101937, + "name": "平昌县", + "level": "district", + "parent": "巴中市" + }, + { + "adcode": "371424", + "people_count_2010": 511105, + "lat": 37.192044, + "lng": 116.867028, + "name": "临邑县", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "532623", + "people_count_2010": 255286, + "lat": 23.437439, + "lng": 104.675711, + "name": "西畴县", + "level": "district", + "parent": "文山壮族苗族自治州" + }, + { + "adcode": "430811", + "people_count_2010": 52724, + "lat": 29.347827, + "lng": 110.54758, + "name": "武陵源区", + "level": "district", + "parent": "张家界市" + }, + { + "adcode": "441202", + "people_count_2010": 479342, + "lat": 23.052662, + "lng": 112.472329, + "name": "端州区", + "level": "district", + "parent": "肇庆市" + }, + { + "adcode": "440784", + "people_count_2010": 494938, + "lat": 22.768104, + "lng": 112.961795, + "name": "鹤山市", + "level": "district", + "parent": "江门市" + }, + { + "adcode": "411423", + "people_count_2010": 523403, + "lat": 34.449299, + "lng": 115.320055, + "name": "宁陵县", + "level": "district", + "parent": "商丘市" + }, + { + "adcode": "210504", + "people_count_2010": 409576, + "lat": 41.302429, + "lng": 123.763288, + "name": "明山区", + "level": "district", + "parent": "本溪市" + }, + { + "adcode": "500242", + "people_count_2010": 578058, + "lat": 28.839828, + "lng": 108.767201, + "name": "酉阳土家族苗族自治县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "410221", + "people_count_2010": 956533, + "lat": 34.554585, + "lng": 114.770472, + "name": "杞县", + "level": "district", + "parent": "开封市" + }, + { + "adcode": "410222", + "people_count_2010": 567495, + "lat": 34.477302, + "lng": 114.467734, + "name": "通许县", + "level": "district", + "parent": "开封市" + }, + { + "adcode": "500233", + "people_count_2010": 751424, + "lat": 30.291537, + "lng": 108.037518, + "name": "忠县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "110101", + "people_count_2010": 573180, + "lat": 39.917544, + "lng": 116.418757, + "name": "东城区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "341802", + "people_count_2010": 772490, + "lat": 30.946003, + "lng": 118.758412, + "name": "宣州区", + "level": "district", + "parent": "宣城市" + }, + { + "adcode": "411403", + "people_count_2010": 748408, + "lat": 34.390536, + "lng": 115.653813, + "name": "睢阳区", + "level": "district", + "parent": "商丘市" + }, + { + "adcode": "632624", + "people_count_2010": 30995, + "lat": 33.753259, + "lng": 99.651715, + "name": "达日县", + "level": "district", + "parent": "果洛藏族自治州" + }, + { + "adcode": "371322", + "people_count_2010": 936166, + "lat": 34.614741, + "lng": 118.342963, + "name": "郯城县", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "510683", + "people_count_2010": 477868, + "lat": 31.343084, + "lng": 104.200162, + "name": "绵竹市", + "level": "district", + "parent": "德阳市" + }, + { + "adcode": "632821", + "people_count_2010": 38272, + "lat": 36.930389, + "lng": 98.479852, + "name": "乌兰县", + "level": "district", + "parent": "海西蒙古族藏族自治州" + }, + { + "adcode": "350926", + "people_count_2010": 88387, + "lat": 27.236163, + "lng": 119.898226, + "name": "柘荣县", + "level": "district", + "parent": "宁德市" + }, + { + "adcode": "350923", + "people_count_2010": 137724, + "lat": 26.910826, + "lng": 118.987544, + "name": "屏南县", + "level": "district", + "parent": "宁德市" + }, + { + "adcode": "341621", + "people_count_2010": 1200000, + "lat": 33.502831, + "lng": 116.211551, + "name": "涡阳县", + "level": "district", + "parent": "亳州市" + }, + { + "adcode": "410721", + "people_count_2010": 339942, + "lat": 35.190021, + "lng": 113.806186, + "name": "新乡县", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "640502", + "people_count_2010": 378606, + "lat": 37.514564, + "lng": 105.190536, + "name": "沙坡头区", + "level": "district", + "parent": "中卫市" + }, + { + "adcode": "532922", + "people_count_2010": null, + "lat": 25.669543, + "lng": 99.95797, + "name": "漾濞彝族自治县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "141126", + "people_count_2010": 111815, + "lat": 36.999426, + "lng": 110.837119, + "name": "石楼县", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "341721", + "people_count_2010": 468280, + "lat": 30.096568, + "lng": 117.021476, + "name": "东至县", + "level": "district", + "parent": "池州市" + }, + { + "adcode": "511524", + "people_count_2010": 339972, + "lat": 28.577271, + "lng": 104.921116, + "name": "长宁县", + "level": "district", + "parent": "宜宾市" + }, + { + "adcode": "632801", + "people_count_2010": 215214, + "lat": 36.401541, + "lng": 94.905777, + "name": "格尔木市", + "level": "district", + "parent": "海西蒙古族藏族自治州" + }, + { + "adcode": "540233", + "people_count_2010": null, + "lat": 27.482772, + "lng": 88.906806, + "name": "亚东县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "411424", + "people_count_2010": 778158, + "lat": 34.075277, + "lng": 115.307433, + "name": "柘城县", + "level": "district", + "parent": "商丘市" + }, + { + "adcode": "610725", + "people_count_2010": 388123, + "lat": 33.155618, + "lng": 106.680175, + "name": "勉县", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "430408", + "people_count_2010": 298686, + "lat": 26.89087, + "lng": 112.570608, + "name": "蒸湘区", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "230703", + "people_count_2010": 118593, + "lat": 47.137314, + "lng": 129.28246, + "name": "南岔区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "211011", + "people_count_2010": 137852, + "lat": 41.251682, + "lng": 123.185336, + "name": "太子河区", + "level": "district", + "parent": "辽阳市" + }, + { + "adcode": "654324", + "people_count_2010": 82507, + "lat": 48.059284, + "lng": 86.418964, + "name": "哈巴河县", + "level": "district", + "parent": "阿勒泰地区" + }, + { + "adcode": "500118", + "people_count_2010": 1000000, + "lat": 29.348748, + "lng": 105.894714, + "name": "永川区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "341702", + "people_count_2010": 595268, + "lat": 30.657378, + "lng": 117.488342, + "name": "贵池区", + "level": "district", + "parent": "池州市" + }, + { + "adcode": "141129", + "people_count_2010": 141374, + "lat": 37.342054, + "lng": 111.193319, + "name": "中阳县", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "500119", + "people_count_2010": 534329, + "lat": 29.156646, + "lng": 107.098153, + "name": "南川区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "520523", + "people_count_2010": null, + "lat": 27.459693, + "lng": 106.222103, + "name": "金沙县", + "level": "district", + "parent": "毕节市" + }, + { + "adcode": "371426", + "people_count_2010": 442948, + "lat": 37.164465, + "lng": 116.433904, + "name": "平原县", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "152223", + "people_count_2010": 392346, + "lat": 46.725136, + "lng": 122.909332, + "name": "扎赉特旗", + "level": "district", + "parent": "兴安盟" + }, + { + "adcode": "211324", + "people_count_2010": 360419, + "lat": 41.125428, + "lng": 119.744883, + "name": "喀喇沁左翼蒙古族自治县", + "level": "district", + "parent": "朝阳市" + }, + { + "adcode": "230904", + "people_count_2010": 153926, + "lat": 45.776587, + "lng": 131.071561, + "name": "茄子河区", + "level": "district", + "parent": "七台河市" + }, + { + "adcode": "820001", + "people_count_2010": null, + "lat": 22.207882, + "lng": 113.552965, + "name": "花地瑪堂區", + "level": "district", + "parent": "澳門特別行政區" + }, + { + "adcode": "654225", + "people_count_2010": 51919, + "lat": 46.202781, + "lng": 82.982157, + "name": "裕民县", + "level": "district", + "parent": "塔城地区" + }, + { + "adcode": "361125", + "people_count_2010": 184870, + "lat": 28.415103, + "lng": 117.608247, + "name": "横峰县", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "632823", + "people_count_2010": 128167, + "lat": 37.29906, + "lng": 99.02078, + "name": "天峻县", + "level": "district", + "parent": "海西蒙古族藏族自治州" + }, + { + "adcode": "331102", + "people_count_2010": 451418, + "lat": 28.451103, + "lng": 119.922293, + "name": "莲都区", + "level": "district", + "parent": "丽水市" + }, + { + "adcode": "411422", + "people_count_2010": 711136, + "lat": 34.428433, + "lng": 115.070109, + "name": "睢县", + "level": "district", + "parent": "商丘市" + }, + { + "adcode": "430682", + "people_count_2010": 498319, + "lat": 29.471594, + "lng": 113.450809, + "name": "临湘市", + "level": "district", + "parent": "岳阳市" + }, + { + "adcode": "230622", + "people_count_2010": 388828, + "lat": 45.518832, + "lng": 125.081974, + "name": "肇源县", + "level": "district", + "parent": "大庆市" + }, + { + "adcode": "500243", + "people_count_2010": 545094, + "lat": 29.293856, + "lng": 108.166551, + "name": "彭水苗族土家族自治县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "820004", + "people_count_2010": null, + "lat": 22.188119, + "lng": 113.55374, + "name": "大堂區", + "level": "district", + "parent": "澳門特別行政區" + }, + { + "adcode": "530925", + "people_count_2010": null, + "lat": 23.477476, + "lng": 99.824419, + "name": "双江拉祜族佤族布朗族傣族自治县", + "level": "district", + "parent": "临沧市" + }, + { + "adcode": "371329", + "people_count_2010": 617081, + "lat": 34.917062, + "lng": 118.648379, + "name": "临沭县", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "370681", + "people_count_2010": 688255, + "lat": 37.648446, + "lng": 120.528328, + "name": "龙口市", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "513429", + "people_count_2010": 160151, + "lat": 27.709062, + "lng": 102.808801, + "name": "布拖县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "430626", + "people_count_2010": 2300000, + "lat": 28.701523, + "lng": 113.593751, + "name": "平江县", + "level": "district", + "parent": "岳阳市" + }, + { + "adcode": "370613", + "people_count_2010": 329304, + "lat": 37.473549, + "lng": 121.448866, + "name": "莱山区", + "level": "district", + "parent": "烟台市" + }, + { + "adcode": "130682", + "people_count_2010": 1200000, + "lat": 38.517602, + "lng": 114.991389, + "name": "定州市", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "540102", + "people_count_2010": 1300000, + "lat": 29.659472, + "lng": 91.132911, + "name": "城关区", + "level": "district", + "parent": "拉萨市" + }, + { + "adcode": "640106", + "people_count_2010": 282554, + "lat": 38.477353, + "lng": 106.228486, + "name": "金凤区", + "level": "district", + "parent": "银川市" + }, + { + "adcode": "522301", + "people_count_2010": 783120, + "lat": 25.088599, + "lng": 104.897982, + "name": "兴义市", + "level": "district", + "parent": "黔西南布依族苗族自治州" + }, + { + "adcode": "330211", + "people_count_2010": 418500, + "lat": 29.952107, + "lng": 121.713162, + "name": "镇海区", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "440403", + "people_count_2010": 415882, + "lat": 22.209117, + "lng": 113.297739, + "name": "斗门区", + "level": "district", + "parent": "珠海市" + }, + { + "adcode": "451123", + "people_count_2010": 256811, + "lat": 24.81896, + "lng": 111.277228, + "name": "富川瑶族自治县", + "level": "district", + "parent": "贺州市" + }, + { + "adcode": "632323", + "people_count_2010": 589855, + "lat": 35.036842, + "lng": 101.469343, + "name": "泽库县", + "level": "district", + "parent": "黄南藏族自治州" + }, + { + "adcode": "450681", + "people_count_2010": 144709, + "lat": 21.541172, + "lng": 107.97017, + "name": "东兴市", + "level": "district", + "parent": "防城港市" + }, + { + "adcode": "610829", + "people_count_2010": 75748, + "lat": 37.451925, + "lng": 110.739315, + "name": "吴堡县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "130531", + "people_count_2010": 283851, + "lat": 37.075548, + "lng": 115.142797, + "name": "广宗县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "441423", + "people_count_2010": 478974, + "lat": 23.752771, + "lng": 116.184419, + "name": "丰顺县", + "level": "district", + "parent": "梅州市" + }, + { + "adcode": "532525", + "people_count_2010": 299114, + "lat": 23.712569, + "lng": 102.484469, + "name": "石屏县", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "330225", + "people_count_2010": 503279, + "lat": 29.470206, + "lng": 121.877091, + "name": "象山县", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "610202", + "people_count_2010": 200231, + "lat": 35.069098, + "lng": 109.075862, + "name": "王益区", + "level": "district", + "parent": "铜川市" + }, + { + "adcode": "340602", + "people_count_2010": 324398, + "lat": 33.991218, + "lng": 116.833925, + "name": "杜集区", + "level": "district", + "parent": "淮北市" + }, + { + "adcode": "510132", + "people_count_2010": 302199, + "lat": 30.414284, + "lng": 103.812449, + "name": "新津县", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "350103", + "people_count_2010": 446891, + "lat": 26.058616, + "lng": 119.310156, + "name": "台江区", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "542430", + "people_count_2010": 41855, + "lat": 31.784979, + "lng": 87.236646, + "name": "尼玛县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "632522", + "people_count_2010": 64369, + "lat": 35.254492, + "lng": 100.579465, + "name": "同德县", + "level": "district", + "parent": "海南藏族自治州" + }, + { + "adcode": "632321", + "people_count_2010": 92601, + "lat": 35.516337, + "lng": 102.017604, + "name": "同仁县", + "level": "district", + "parent": "黄南藏族自治州" + }, + { + "adcode": "632524", + "people_count_2010": 76025, + "lat": 35.58909, + "lng": 99.986963, + "name": "兴海县", + "level": "district", + "parent": "海南藏族自治州" + }, + { + "adcode": "430203", + "people_count_2010": 247518, + "lat": 27.827246, + "lng": 113.155169, + "name": "芦淞区", + "level": "district", + "parent": "株洲市" + }, + { + "adcode": "141002", + "people_count_2010": 944050, + "lat": 36.080366, + "lng": 111.522945, + "name": "尧都区", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "320802", + "people_count_2010": null, + "lat": 33.603234, + "lng": 119.019454, + "name": "清河区", + "level": "district", + "parent": "淮安市" + }, + { + "adcode": "632521", + "people_count_2010": 122966, + "lat": 36.280286, + "lng": 100.619597, + "name": "共和县", + "level": "district", + "parent": "海南藏族自治州" + }, + { + "adcode": "632322", + "people_count_2010": 55325, + "lat": 35.938205, + "lng": 102.031953, + "name": "尖扎县", + "level": "district", + "parent": "黄南藏族自治州" + }, + { + "adcode": "220582", + "people_count_2010": 232278, + "lat": 41.126276, + "lng": 126.186204, + "name": "集安市", + "level": "district", + "parent": "通化市" + }, + { + "adcode": "532504", + "people_count_2010": null, + "lat": 24.40837, + "lng": 103.436988, + "name": "弥勒市", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "511124", + "people_count_2010": 282222, + "lat": 29.651645, + "lng": 104.06885, + "name": "井研县", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "532531", + "people_count_2010": 3900000, + "lat": 22.99352, + "lng": 102.39286, + "name": "绿春县", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "820005", + "people_count_2010": null, + "lat": 22.187778, + "lng": 113.54167, + "name": "風順堂區", + "level": "district", + "parent": "澳門特別行政區" + }, + { + "adcode": "440507", + "people_count_2010": 536356, + "lat": 23.373754, + "lng": 116.732015, + "name": "龙湖区", + "level": "district", + "parent": "汕头市" + }, + { + "adcode": "211221", + "people_count_2010": 339045, + "lat": 42.223316, + "lng": 123.725669, + "name": "铁岭县", + "level": "district", + "parent": "铁岭市" + }, + { + "adcode": "520201", + "people_count_2010": 616210, + "lat": 26.584805, + "lng": 104.846244, + "name": "钟山区", + "level": "district", + "parent": "六盘水市" + }, + { + "adcode": "532527", + "people_count_2010": 400734, + "lat": 24.532368, + "lng": 103.759622, + "name": "泸西县", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "532530", + "people_count_2010": null, + "lat": 22.779982, + "lng": 103.228359, + "name": "金平苗族瑶族傣族自治县", + "level": "district", + "parent": "红河哈尼族彝族自治州" + }, + { + "adcode": "520115", + "people_count_2010": null, + "lat": 26.646358, + "lng": 106.626323, + "name": "观山湖区", + "level": "district", + "parent": "贵阳市" + }, + { + "adcode": "232701", + "people_count_2010": null, + "lat": 50.424654, + "lng": 124.126716, + "name": "加格达奇区", + "level": "district", + "parent": "大兴安岭地区" + }, + { + "adcode": "410212", + "people_count_2010": null, + "lat": 34.756476, + "lng": 114.437622, + "name": "祥符区", + "level": "district", + "parent": "开封市" + }, + { + "adcode": "220881", + "people_count_2010": 432122, + "lat": 45.339113, + "lng": 122.783779, + "name": "洮南市", + "level": "district", + "parent": "白城市" + }, + { + "adcode": "341022", + "people_count_2010": 250457, + "lat": 29.788878, + "lng": 118.188531, + "name": "休宁县", + "level": "district", + "parent": "黄山市" + }, + { + "adcode": "330824", + "people_count_2010": 245088, + "lat": 29.136503, + "lng": 118.414435, + "name": "开化县", + "level": "district", + "parent": "衢州市" + }, + { + "adcode": "211224", + "people_count_2010": 847924, + "lat": 42.784441, + "lng": 124.11017, + "name": "昌图县", + "level": "district", + "parent": "铁岭市" + }, + { + "adcode": "370829", + "people_count_2010": 818188, + "lat": 35.398098, + "lng": 116.342885, + "name": "嘉祥县", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "370831", + "people_count_2010": 536087, + "lat": 35.653216, + "lng": 117.273605, + "name": "泗水县", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "513223", + "people_count_2010": 104829, + "lat": 31.680407, + "lng": 103.850684, + "name": "茂县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "410322", + "people_count_2010": 414637, + "lat": 34.826485, + "lng": 112.443892, + "name": "孟津县", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "411202", + "people_count_2010": 325628, + "lat": 34.77812, + "lng": 111.19487, + "name": "湖滨区", + "level": "district", + "parent": "三门峡市" + }, + { + "adcode": "330822", + "people_count_2010": 241368, + "lat": 28.900039, + "lng": 118.521654, + "name": "常山县", + "level": "district", + "parent": "衢州市" + }, + { + "adcode": "130224", + "people_count_2010": 584518, + "lat": 39.506201, + "lng": 118.681552, + "name": "滦南县", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "433122", + "people_count_2010": 275370, + "lat": 28.214516, + "lng": 110.214428, + "name": "泸溪县", + "level": "district", + "parent": "湘西土家族苗族自治州" + }, + { + "adcode": "211223", + "people_count_2010": 290635, + "lat": 42.738091, + "lng": 124.72332, + "name": "西丰县", + "level": "district", + "parent": "铁岭市" + }, + { + "adcode": "330522", + "people_count_2010": 641982, + "lat": 31.00475, + "lng": 119.910122, + "name": "长兴县", + "level": "district", + "parent": "湖州市" + }, + { + "adcode": "230805", + "people_count_2010": 161740, + "lat": 46.822476, + "lng": 130.403297, + "name": "东风区", + "level": "district", + "parent": "佳木斯市" + }, + { + "adcode": "441882", + "people_count_2010": 367642, + "lat": 24.783966, + "lng": 112.379271, + "name": "连州市", + "level": "district", + "parent": "清远市" + }, + { + "adcode": "211281", + "people_count_2010": 241431, + "lat": 42.450734, + "lng": 123.545366, + "name": "调兵山市", + "level": "district", + "parent": "铁岭市" + }, + { + "adcode": "330802", + "people_count_2010": 464527, + "lat": 28.944539, + "lng": 118.873041, + "name": "柯城区", + "level": "district", + "parent": "衢州市" + }, + { + "adcode": "370883", + "people_count_2010": 1100000, + "lat": 35.405259, + "lng": 116.96673, + "name": "邹城市", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "610627", + "people_count_2010": 77188, + "lat": 36.277729, + "lng": 109.34961, + "name": "甘泉县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "532326", + "people_count_2010": 273315, + "lat": 25.722348, + "lng": 101.323602, + "name": "大姚县", + "level": "district", + "parent": "楚雄彝族自治州" + }, + { + "adcode": "330206", + "people_count_2010": 612267, + "lat": 29.90944, + "lng": 121.831303, + "name": "北仑区", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "532329", + "people_count_2010": 271963, + "lat": 25.5301, + "lng": 102.406785, + "name": "武定县", + "level": "district", + "parent": "楚雄彝族自治州" + }, + { + "adcode": "451221", + "people_count_2010": 278350, + "lat": 24.983192, + "lng": 107.546605, + "name": "南丹县", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "131081", + "people_count_2010": 622975, + "lat": 39.117331, + "lng": 116.392021, + "name": "霸州市", + "level": "district", + "parent": "廊坊市" + }, + { + "adcode": "430481", + "people_count_2010": 1200000, + "lat": 26.414162, + "lng": 112.847215, + "name": "耒阳市", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "430421", + "people_count_2010": 1100000, + "lat": 26.962388, + "lng": 112.379643, + "name": "衡阳县", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "430103", + "people_count_2010": 475221, + "lat": 28.192375, + "lng": 112.97307, + "name": "天心区", + "level": "district", + "parent": "长沙市" + }, + { + "adcode": "230307", + "people_count_2010": 30097, + "lat": 45.209607, + "lng": 130.481126, + "name": "麻山区", + "level": "district", + "parent": "鸡西市" + }, + { + "adcode": "340321", + "people_count_2010": 1000000, + "lat": 32.956934, + "lng": 117.200171, + "name": "怀远县", + "level": "district", + "parent": "蚌埠市" + }, + { + "adcode": "340323", + "people_count_2010": 541644, + "lat": 33.318679, + "lng": 117.315962, + "name": "固镇县", + "level": "district", + "parent": "蚌埠市" + }, + { + "adcode": "141125", + "people_count_2010": 320676, + "lat": 37.431664, + "lng": 110.89613, + "name": "柳林县", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "530402", + "people_count_2010": 495129, + "lat": 24.350753, + "lng": 102.543468, + "name": "红塔区", + "level": "district", + "parent": "玉溪市" + }, + { + "adcode": "370481", + "people_count_2010": 1600000, + "lat": 35.088498, + "lng": 117.162098, + "name": "滕州市", + "level": "district", + "parent": "枣庄市" + }, + { + "adcode": "410404", + "people_count_2010": 54912, + "lat": 33.901538, + "lng": 112.889885, + "name": "石龙区", + "level": "district", + "parent": "平顶山市" + }, + { + "adcode": "511024", + "people_count_2010": 626482, + "lat": 29.52686, + "lng": 104.668327, + "name": "威远县", + "level": "district", + "parent": "内江市" + }, + { + "adcode": "410503", + "people_count_2010": 245624, + "lat": 36.10978, + "lng": 114.352646, + "name": "北关区", + "level": "district", + "parent": "安阳市" + }, + { + "adcode": "430482", + "people_count_2010": 810447, + "lat": 26.406773, + "lng": 112.396821, + "name": "常宁市", + "level": "district", + "parent": "衡阳市" + }, + { + "adcode": "430681", + "people_count_2010": null, + "lat": 28.803149, + "lng": 113.079419, + "name": "汨罗市", + "level": "district", + "parent": "岳阳市" + }, + { + "adcode": "513228", + "people_count_2010": 60704, + "lat": 32.061721, + "lng": 102.990805, + "name": "黑水县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "210123", + "people_count_2010": 316819, + "lat": 42.741533, + "lng": 123.352703, + "name": "康平县", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "510903", + "people_count_2010": 656760, + "lat": 30.502647, + "lng": 105.582215, + "name": "船山区", + "level": "district", + "parent": "遂宁市" + }, + { + "adcode": "511025", + "people_count_2010": 1200000, + "lat": 29.775295, + "lng": 104.852463, + "name": "资中县", + "level": "district", + "parent": "内江市" + }, + { + "adcode": "141102", + "people_count_2010": 320142, + "lat": 37.524037, + "lng": 111.134462, + "name": "离石区", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "510725", + "people_count_2010": 302246, + "lat": 31.635225, + "lng": 105.16353, + "name": "梓潼县", + "level": "district", + "parent": "绵阳市" + }, + { + "adcode": "540124", + "people_count_2010": 136358, + "lat": 29.349895, + "lng": 90.738051, + "name": "曲水县", + "level": "district", + "parent": "拉萨市" + }, + { + "adcode": "510923", + "people_count_2010": 478964, + "lat": 30.581571, + "lng": 105.252187, + "name": "大英县", + "level": "district", + "parent": "遂宁市" + }, + { + "adcode": "510802", + "people_count_2010": null, + "lat": 32.432276, + "lng": 105.826194, + "name": "利州区", + "level": "district", + "parent": "广元市" + }, + { + "adcode": "513434", + "people_count_2010": 269896, + "lat": 28.639632, + "lng": 102.508875, + "name": "越西县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "510921", + "people_count_2010": 553239, + "lat": 30.774883, + "lng": 105.713699, + "name": "蓬溪县", + "level": "district", + "parent": "遂宁市" + }, + { + "adcode": "511123", + "people_count_2010": 434409, + "lat": 29.209782, + "lng": 103.944266, + "name": "犍为县", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "450922", + "people_count_2010": 762372, + "lat": 22.321054, + "lng": 110.264842, + "name": "陆川县", + "level": "district", + "parent": "玉林市" + }, + { + "adcode": "450221", + "people_count_2010": 562351, + "lat": 24.257512, + "lng": 109.334503, + "name": "柳江县", + "level": "district", + "parent": "柳州市" + }, + { + "adcode": "450802", + "people_count_2010": 578365, + "lat": 23.107677, + "lng": 109.59481, + "name": "港北区", + "level": "district", + "parent": "贵港市" + }, + { + "adcode": "450821", + "people_count_2010": 1100000, + "lat": 23.544546, + "lng": 110.397485, + "name": "平南县", + "level": "district", + "parent": "贵港市" + }, + { + "adcode": "540123", + "people_count_2010": 28149, + "lat": 29.431346, + "lng": 90.165545, + "name": "尼木县", + "level": "district", + "parent": "拉萨市" + }, + { + "adcode": "371312", + "people_count_2010": null, + "lat": 35.085004, + "lng": 118.398296, + "name": "河东区", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "511133", + "people_count_2010": 176530, + "lat": 28.838933, + "lng": 103.546851, + "name": "马边彝族自治县", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "320923", + "people_count_2010": 843464, + "lat": 33.78573, + "lng": 119.805338, + "name": "阜宁县", + "level": "district", + "parent": "盐城市" + }, + { + "adcode": "130431", + "people_count_2010": 274328, + "lat": 36.914908, + "lng": 114.878517, + "name": "鸡泽县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "431226", + "people_count_2010": 343309, + "lat": 27.865991, + "lng": 109.802807, + "name": "麻阳苗族自治县", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "451281", + "people_count_2010": 558611, + "lat": 24.492193, + "lng": 108.653965, + "name": "宜州市", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "511132", + "people_count_2010": 139210, + "lat": 29.230271, + "lng": 103.262148, + "name": "峨边彝族自治县", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "511423", + "people_count_2010": 300217, + "lat": 29.904867, + "lng": 103.375006, + "name": "洪雅县", + "level": "district", + "parent": "眉山市" + }, + { + "adcode": "511323", + "people_count_2010": 567373, + "lat": 31.027978, + "lng": 106.413488, + "name": "蓬安县", + "level": "district", + "parent": "南充市" + }, + { + "adcode": "451223", + "people_count_2010": 161457, + "lat": 24.544561, + "lng": 107.044592, + "name": "凤山县", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "451228", + "people_count_2010": 516629, + "lat": 23.934964, + "lng": 108.102761, + "name": "都安瑶族自治县", + "level": "district", + "parent": "河池市" + }, + { + "adcode": "511181", + "people_count_2010": 437068, + "lat": 29.597478, + "lng": 103.492488, + "name": "峨眉山市", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "511425", + "people_count_2010": 167559, + "lat": 29.831469, + "lng": 103.846131, + "name": "青神县", + "level": "district", + "parent": "眉山市" + }, + { + "adcode": "511325", + "people_count_2010": 513746, + "lat": 30.994616, + "lng": 105.893021, + "name": "西充县", + "level": "district", + "parent": "南充市" + }, + { + "adcode": "511702", + "people_count_2010": 478276, + "lat": 31.213522, + "lng": 107.501062, + "name": "通川区", + "level": "district", + "parent": "达州市" + }, + { + "adcode": "511322", + "people_count_2010": 749734, + "lat": 31.075907, + "lng": 106.564893, + "name": "营山县", + "level": "district", + "parent": "南充市" + }, + { + "adcode": "511722", + "people_count_2010": 1000000, + "lat": 31.355025, + "lng": 107.722254, + "name": "宣汉县", + "level": "district", + "parent": "达州市" + }, + { + "adcode": "511725", + "people_count_2010": 1200000, + "lat": 30.836348, + "lng": 106.970746, + "name": "渠县", + "level": "district", + "parent": "达州市" + }, + { + "adcode": "450325", + "people_count_2010": 329507, + "lat": 25.609554, + "lng": 110.670783, + "name": "兴安县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "511922", + "people_count_2010": 606992, + "lat": 32.353164, + "lng": 106.843418, + "name": "南江县", + "level": "district", + "parent": "巴中市" + }, + { + "adcode": "513323", + "people_count_2010": 59696, + "lat": 30.877083, + "lng": 101.886125, + "name": "丹巴县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "513330", + "people_count_2010": 81503, + "lat": 31.806729, + "lng": 98.57999, + "name": "德格县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "511781", + "people_count_2010": 407594, + "lat": 32.06777, + "lng": 108.037548, + "name": "万源市", + "level": "district", + "parent": "达州市" + }, + { + "adcode": "610924", + "people_count_2010": 283947, + "lat": 32.520176, + "lng": 108.537788, + "name": "紫阳县", + "level": "district", + "parent": "安康市" + }, + { + "adcode": "371482", + "people_count_2010": 490031, + "lat": 36.934485, + "lng": 116.642554, + "name": "禹城市", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "210311", + "people_count_2010": 275447, + "lat": 41.068909, + "lng": 122.949298, + "name": "千山区", + "level": "district", + "parent": "鞍山市" + }, + { + "adcode": "610632", + "people_count_2010": 129803, + "lat": 35.580165, + "lng": 109.262469, + "name": "黄陵县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "632723", + "people_count_2010": 55619, + "lat": 33.367884, + "lng": 97.110893, + "name": "称多县", + "level": "district", + "parent": "玉树藏族自治州" + }, + { + "adcode": "513425", + "people_count_2010": 430066, + "lat": 26.658702, + "lng": 102.249548, + "name": "会理县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "610902", + "people_count_2010": 870126, + "lat": 32.690817, + "lng": 109.029098, + "name": "汉滨区", + "level": "district", + "parent": "安康市" + }, + { + "adcode": "610925", + "people_count_2010": 154157, + "lat": 32.31069, + "lng": 108.900663, + "name": "岚皋县", + "level": "district", + "parent": "安康市" + }, + { + "adcode": "450305", + "people_count_2010": 297029, + "lat": 25.254339, + "lng": 110.317577, + "name": "七星区", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "430522", + "people_count_2010": 743073, + "lat": 27.311429, + "lng": 111.459762, + "name": "新邵县", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "130104", + "people_count_2010": 287900, + "lat": 38.028383, + "lng": 114.462931, + "name": "桥西区", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "140402", + "people_count_2010": null, + "lat": 36.187896, + "lng": 113.114107, + "name": "城区", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "430525", + "people_count_2010": 770473, + "lat": 27.062286, + "lng": 110.579212, + "name": "洞口县", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "513230", + "people_count_2010": 39173, + "lat": 32.264887, + "lng": 100.979136, + "name": "壤塘县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "321081", + "people_count_2010": 564021, + "lat": 32.271965, + "lng": 119.182443, + "name": "仪征市", + "level": "district", + "parent": "扬州市" + }, + { + "adcode": "610622", + "people_count_2010": 168375, + "lat": 36.882066, + "lng": 110.190314, + "name": "延川县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "513426", + "people_count_2010": 362944, + "lat": 26.630713, + "lng": 102.578985, + "name": "会东县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "513229", + "people_count_2010": 58437, + "lat": 31.899761, + "lng": 102.221187, + "name": "马尔康县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "513226", + "people_count_2010": 65976, + "lat": 31.476356, + "lng": 102.064647, + "name": "金川县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "652824", + "people_count_2010": 35580, + "lat": 39.023807, + "lng": 88.168807, + "name": "若羌县", + "level": "district", + "parent": "巴音郭楞蒙古自治州" + }, + { + "adcode": "451423", + "people_count_2010": 221768, + "lat": 22.343716, + "lng": 106.857502, + "name": "龙州县", + "level": "district", + "parent": "崇左市" + }, + { + "adcode": "430304", + "people_count_2010": 458455, + "lat": 27.828854, + "lng": 112.927707, + "name": "岳塘区", + "level": "district", + "parent": "湘潭市" + }, + { + "adcode": "513436", + "people_count_2010": 221505, + "lat": 28.327946, + "lng": 103.132007, + "name": "美姑县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "513221", + "people_count_2010": 100771, + "lat": 31.47463, + "lng": 103.580675, + "name": "汶川县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "513224", + "people_count_2010": 72309, + "lat": 32.63838, + "lng": 103.599177, + "name": "松潘县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "350403", + "people_count_2010": 198958, + "lat": 26.234191, + "lng": 117.607418, + "name": "三元区", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "450107", + "people_count_2010": 1200000, + "lat": 22.832779, + "lng": 108.306903, + "name": "西乡塘区", + "level": "district", + "parent": "南宁市" + }, + { + "adcode": "513222", + "people_count_2010": 46556, + "lat": 31.436764, + "lng": 103.165486, + "name": "理县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "513225", + "people_count_2010": 81394, + "lat": 33.262097, + "lng": 104.236344, + "name": "九寨沟县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "513333", + "people_count_2010": 58606, + "lat": 32.268777, + "lng": 100.331657, + "name": "色达县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "652829", + "people_count_2010": 54788, + "lat": 41.980166, + "lng": 86.631576, + "name": "博湖县", + "level": "district", + "parent": "巴音郭楞蒙古自治州" + }, + { + "adcode": "513233", + "people_count_2010": 43818, + "lat": 32.793902, + "lng": 102.544906, + "name": "红原县", + "level": "district", + "parent": "阿坝藏族羌族自治州" + }, + { + "adcode": "430524", + "people_count_2010": 1100000, + "lat": 27.116002, + "lng": 111.038785, + "name": "隆回县", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "430528", + "people_count_2010": 560742, + "lat": 26.438912, + "lng": 110.859115, + "name": "新宁县", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "510781", + "people_count_2010": 762140, + "lat": 31.776386, + "lng": 104.744431, + "name": "江油市", + "level": "district", + "parent": "绵阳市" + }, + { + "adcode": "513337", + "people_count_2010": 31113, + "lat": 29.037544, + "lng": 100.296689, + "name": "稻城县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "511529", + "people_count_2010": 249751, + "lat": 28.64237, + "lng": 104.162617, + "name": "屏山县", + "level": "district", + "parent": "宜宾市" + }, + { + "adcode": "341602", + "people_count_2010": 1400000, + "lat": 33.869284, + "lng": 115.781214, + "name": "谯城区", + "level": "district", + "parent": "亳州市" + }, + { + "adcode": "421024", + "people_count_2010": 331344, + "lat": 30.033919, + "lng": 112.41735, + "name": "江陵县", + "level": "district", + "parent": "荆州市" + }, + { + "adcode": "511621", + "people_count_2010": 778639, + "lat": 30.533538, + "lng": 106.444451, + "name": "岳池县", + "level": "district", + "parent": "广安市" + }, + { + "adcode": "654027", + "people_count_2010": 142718, + "lat": 43.214861, + "lng": 81.840058, + "name": "特克斯县", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "654024", + "people_count_2010": 164860, + "lat": 43.481618, + "lng": 82.227044, + "name": "巩留县", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "654003", + "people_count_2010": 166261, + "lat": 44.423445, + "lng": 84.901602, + "name": "奎屯市", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "430529", + "people_count_2010": 250633, + "lat": 26.363575, + "lng": 110.313226, + "name": "城步苗族自治县", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "654021", + "people_count_2010": 732078, + "lat": 43.977876, + "lng": 81.524671, + "name": "伊宁县", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "131181", + "people_count_2010": 362013, + "lat": 37.542788, + "lng": 115.579173, + "name": "冀州市", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "141023", + "people_count_2010": 442614, + "lat": 35.876139, + "lng": 111.442932, + "name": "襄汾县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "140212", + "people_count_2010": 108482, + "lat": 40.258269, + "lng": 113.141044, + "name": "新荣区", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "511681", + "people_count_2010": 278359, + "lat": 30.380574, + "lng": 106.777882, + "name": "华蓥市", + "level": "district", + "parent": "广安市" + }, + { + "adcode": "450502", + "people_count_2010": 348544, + "lat": 21.468443, + "lng": 109.107529, + "name": "海城区", + "level": "district", + "parent": "北海市" + }, + { + "adcode": "610526", + "people_count_2010": 743000, + "lat": 34.956034, + "lng": 109.589653, + "name": "蒲城县", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "510722", + "people_count_2010": 1000000, + "lat": 31.090909, + "lng": 105.090316, + "name": "三台县", + "level": "district", + "parent": "绵阳市" + }, + { + "adcode": "140930", + "people_count_2010": 145136, + "lat": 39.381895, + "lng": 111.146609, + "name": "河曲县", + "level": "district", + "parent": "忻州市" + }, + { + "adcode": "610625", + "people_count_2010": 140489, + "lat": 36.823031, + "lng": 108.768898, + "name": "志丹县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "140826", + "people_count_2010": 281643, + "lat": 35.49045, + "lng": 111.576182, + "name": "绛县", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "230722", + "people_count_2010": 68579, + "lat": 48.891378, + "lng": 130.397684, + "name": "嘉荫县", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "410803", + "people_count_2010": 106064, + "lat": 35.236145, + "lng": 113.175485, + "name": "中站区", + "level": "district", + "parent": "焦作市" + }, + { + "adcode": "431026", + "people_count_2010": 330260, + "lat": 25.553759, + "lng": 113.685686, + "name": "汝城县", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "420527", + "people_count_2010": 367107, + "lat": 30.823908, + "lng": 110.976785, + "name": "秭归县", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "440705", + "people_count_2010": 849155, + "lat": 22.520247, + "lng": 113.038584, + "name": "新会区", + "level": "district", + "parent": "江门市" + }, + { + "adcode": "130703", + "people_count_2010": null, + "lat": 40.824385, + "lng": 114.882127, + "name": "桥西区", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "440118", + "people_count_2010": null, + "lat": 23.290497, + "lng": 113.829579, + "name": "增城区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "130503", + "people_count_2010": null, + "lat": 37.068009, + "lng": 114.473687, + "name": "桥西区", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "340203", + "people_count_2010": 309514, + "lat": 31.313394, + "lng": 118.377476, + "name": "弋江区", + "level": "district", + "parent": "芜湖市" + }, + { + "adcode": "320102", + "people_count_2010": 651957, + "lat": 32.050678, + "lng": 118.792199, + "name": "玄武区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "320404", + "people_count_2010": 716130, + "lat": 31.78096, + "lng": 119.948388, + "name": "钟楼区", + "level": "district", + "parent": "常州市" + }, + { + "adcode": "341182", + "people_count_2010": 532732, + "lat": 32.781206, + "lng": 117.998048, + "name": "明光市", + "level": "district", + "parent": "滁州市" + }, + { + "adcode": "341103", + "people_count_2010": 251894, + "lat": 32.329841, + "lng": 118.296955, + "name": "南谯区", + "level": "district", + "parent": "滁州市" + }, + { + "adcode": "371103", + "people_count_2010": 400067, + "lat": 35.119794, + "lng": 119.315844, + "name": "岚山区", + "level": "district", + "parent": "日照市" + }, + { + "adcode": "230231", + "people_count_2010": 519766, + "lat": 47.607363, + "lng": 126.091911, + "name": "拜泉县", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "230605", + "people_count_2010": 169522, + "lat": 46.403049, + "lng": 124.889528, + "name": "红岗区", + "level": "district", + "parent": "大庆市" + }, + { + "adcode": "341102", + "people_count_2010": 310427, + "lat": 32.303797, + "lng": 118.316475, + "name": "琅琊区", + "level": "district", + "parent": "滁州市" + }, + { + "adcode": "520329", + "people_count_2010": 234739, + "lat": 27.221552, + "lng": 107.892566, + "name": "余庆县", + "level": "district", + "parent": "遵义市" + }, + { + "adcode": "230227", + "people_count_2010": 276537, + "lat": 47.797172, + "lng": 124.469106, + "name": "富裕县", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "440607", + "people_count_2010": 622645, + "lat": 23.16504, + "lng": 112.899414, + "name": "三水区", + "level": "district", + "parent": "佛山市" + }, + { + "adcode": "341122", + "people_count_2010": 432021, + "lat": 32.450231, + "lng": 118.433293, + "name": "来安县", + "level": "district", + "parent": "滁州市" + }, + { + "adcode": "341124", + "people_count_2010": 383885, + "lat": 32.09385, + "lng": 118.268576, + "name": "全椒县", + "level": "district", + "parent": "滁州市" + }, + { + "adcode": "230303", + "people_count_2010": 160180, + "lat": 45.213242, + "lng": 130.910636, + "name": "恒山区", + "level": "district", + "parent": "鸡西市" + }, + { + "adcode": "441502", + "people_count_2010": null, + "lat": 22.776227, + "lng": 115.363667, + "name": "城区", + "level": "district", + "parent": "汕尾市" + }, + { + "adcode": "341126", + "people_count_2010": 644895, + "lat": 32.867146, + "lng": 117.562461, + "name": "凤阳县", + "level": "district", + "parent": "滁州市" + }, + { + "adcode": "130404", + "people_count_2010": 192023, + "lat": 36.615484, + "lng": 114.458242, + "name": "复兴区", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "350783", + "people_count_2010": 452174, + "lat": 27.03502, + "lng": 118.321765, + "name": "建瓯市", + "level": "district", + "parent": "南平市" + }, + { + "adcode": "140624", + "people_count_2010": 326849, + "lat": 39.82079, + "lng": 113.100512, + "name": "怀仁县", + "level": "district", + "parent": "朔州市" + }, + { + "adcode": "440404", + "people_count_2010": 253963, + "lat": 22.139122, + "lng": 113.345071, + "name": "金湾区", + "level": "district", + "parent": "珠海市" + }, + { + "adcode": "500153", + "people_count_2010": null, + "lat": 29.403627, + "lng": 105.594061, + "name": "荣昌区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "150102", + "people_count_2010": 567255, + "lat": 40.826225, + "lng": 111.685964, + "name": "新城区", + "level": "district", + "parent": "呼和浩特市" + }, + { + "adcode": "522631", + "people_count_2010": 391047, + "lat": 26.230636, + "lng": 109.136504, + "name": "黎平县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "330182", + "people_count_2010": 430750, + "lat": 29.472284, + "lng": 119.279089, + "name": "建德市", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "441521", + "people_count_2010": 793408, + "lat": 22.971042, + "lng": 115.337324, + "name": "海丰县", + "level": "district", + "parent": "汕尾市" + }, + { + "adcode": "441226", + "people_count_2010": 341211, + "lat": 23.141711, + "lng": 111.78156, + "name": "德庆县", + "level": "district", + "parent": "肇庆市" + }, + { + "adcode": "610621", + "people_count_2010": 125391, + "lat": 36.578306, + "lng": 110.012961, + "name": "延长县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "540234", + "people_count_2010": null, + "lat": 28.852416, + "lng": 85.298349, + "name": "吉隆县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "350111", + "people_count_2010": 792491, + "lat": 26.078837, + "lng": 119.328597, + "name": "晋安区", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "130110", + "people_count_2010": null, + "lat": 38.093994, + "lng": 114.321023, + "name": "鹿泉区", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "140110", + "people_count_2010": 221431, + "lat": 37.715619, + "lng": 112.477849, + "name": "晋源区", + "level": "district", + "parent": "太原市" + }, + { + "adcode": "350428", + "people_count_2010": 148867, + "lat": 26.728667, + "lng": 117.473558, + "name": "将乐县", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "140107", + "people_count_2010": 643584, + "lat": 37.879291, + "lng": 112.560743, + "name": "杏花岭区", + "level": "district", + "parent": "太原市" + }, + { + "adcode": "230204", + "people_count_2010": 331951, + "lat": 47.339499, + "lng": 123.973555, + "name": "铁锋区", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "230230", + "people_count_2010": 264285, + "lat": 48.03732, + "lng": 126.249094, + "name": "克东县", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "140106", + "people_count_2010": 592007, + "lat": 37.855804, + "lng": 112.558851, + "name": "迎泽区", + "level": "district", + "parent": "太原市" + }, + { + "adcode": "350425", + "people_count_2010": 311631, + "lat": 25.690803, + "lng": 117.849355, + "name": "大田县", + "level": "district", + "parent": "三明市" + }, + { + "adcode": "370702", + "people_count_2010": 415118, + "lat": 36.710062, + "lng": 119.103784, + "name": "潍城区", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "511825", + "people_count_2010": 134152, + "lat": 30.059955, + "lng": 102.763462, + "name": "天全县", + "level": "district", + "parent": "雅安市" + }, + { + "adcode": "230223", + "people_count_2010": 480035, + "lat": 47.890098, + "lng": 125.307561, + "name": "依安县", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "230221", + "people_count_2010": 572764, + "lat": 47.336388, + "lng": 123.187225, + "name": "龙江县", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "230716", + "people_count_2010": 19496, + "lat": 47.974859, + "lng": 129.02508, + "name": "上甘岭区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "510122", + "people_count_2010": 1300000, + "lat": 30.573243, + "lng": 103.922706, + "name": "双流县", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "350122", + "people_count_2010": 561490, + "lat": 26.202109, + "lng": 119.538365, + "name": "连江县", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "340523", + "people_count_2010": null, + "lat": 31.716634, + "lng": 118.362998, + "name": "和县", + "level": "district", + "parent": "马鞍山市" + }, + { + "adcode": "340506", + "people_count_2010": null, + "lat": 31.562321, + "lng": 118.843742, + "name": "博望区", + "level": "district", + "parent": "马鞍山市" + }, + { + "adcode": "411625", + "people_count_2010": 1000000, + "lat": 33.643852, + "lng": 115.189, + "name": "郸城县", + "level": "district", + "parent": "周口市" + }, + { + "adcode": "421223", + "people_count_2010": 410623, + "lat": 29.54101, + "lng": 114.049958, + "name": "崇阳县", + "level": "district", + "parent": "咸宁市" + }, + { + "adcode": "220303", + "people_count_2010": null, + "lat": 43.16726, + "lng": 124.388464, + "name": "铁东区", + "level": "district", + "parent": "四平市" + }, + { + "adcode": "652826", + "people_count_2010": null, + "lat": 42.064349, + "lng": 86.5698, + "name": "焉耆回族自治县", + "level": "district", + "parent": "巴音郭楞蒙古自治州" + }, + { + "adcode": "411681", + "people_count_2010": 1000000, + "lat": 33.443085, + "lng": 114.899521, + "name": "项城市", + "level": "district", + "parent": "周口市" + }, + { + "adcode": "340522", + "people_count_2010": null, + "lat": 31.727758, + "lng": 118.105545, + "name": "含山县", + "level": "district", + "parent": "马鞍山市" + }, + { + "adcode": "350721", + "people_count_2010": 191588, + "lat": 26.792851, + "lng": 117.80771, + "name": "顺昌县", + "level": "district", + "parent": "南平市" + }, + { + "adcode": "141123", + "people_count_2010": 279373, + "lat": 38.464136, + "lng": 111.124816, + "name": "兴县", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "542227", + "people_count_2010": 13641, + "lat": 28.437353, + "lng": 91.432347, + "name": "措美县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "421023", + "people_count_2010": 1200000, + "lat": 29.820079, + "lng": 112.904344, + "name": "监利县", + "level": "district", + "parent": "荆州市" + }, + { + "adcode": "422828", + "people_count_2010": 3800000, + "lat": 29.887298, + "lng": 110.033699, + "name": "鹤峰县", + "level": "district", + "parent": "恩施土家族苗族自治州" + }, + { + "adcode": "230523", + "people_count_2010": 400487, + "lat": 46.328781, + "lng": 132.206415, + "name": "宝清县", + "level": "district", + "parent": "双鸭山市" + }, + { + "adcode": "361030", + "people_count_2010": 235395, + "lat": 26.838426, + "lng": 116.327291, + "name": "广昌县", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "420683", + "people_count_2010": 1000000, + "lat": 32.123083, + "lng": 112.765268, + "name": "枣阳市", + "level": "district", + "parent": "襄阳市" + }, + { + "adcode": "210505", + "people_count_2010": 82917, + "lat": 41.104093, + "lng": 123.748381, + "name": "南芬区", + "level": "district", + "parent": "本溪市" + }, + { + "adcode": "450481", + "people_count_2010": 772113, + "lat": 22.918406, + "lng": 110.998114, + "name": "岑溪市", + "level": "district", + "parent": "梧州市" + }, + { + "adcode": "220204", + "people_count_2010": 491989, + "lat": 43.843804, + "lng": 126.55239, + "name": "船营区", + "level": "district", + "parent": "吉林市" + }, + { + "adcode": "320830", + "people_count_2010": 658759, + "lat": 33.00439, + "lng": 118.493823, + "name": "盱眙县", + "level": "district", + "parent": "淮安市" + }, + { + "adcode": "140824", + "people_count_2010": 347425, + "lat": 35.600412, + "lng": 110.978996, + "name": "稷山县", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "421221", + "people_count_2010": 319196, + "lat": 29.973363, + "lng": 113.921547, + "name": "嘉鱼县", + "level": "district", + "parent": "咸宁市" + }, + { + "adcode": "421222", + "people_count_2010": 380758, + "lat": 29.246076, + "lng": 113.814131, + "name": "通城县", + "level": "district", + "parent": "咸宁市" + }, + { + "adcode": "522623", + "people_count_2010": 130464, + "lat": 27.034657, + "lng": 108.12678, + "name": "施秉县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "230102", + "people_count_2010": 923762, + "lat": 45.762035, + "lng": 126.612532, + "name": "道里区", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "341503", + "people_count_2010": 854645, + "lat": 31.750692, + "lng": 116.494543, + "name": "裕安区", + "level": "district", + "parent": "六安市" + }, + { + "adcode": "231181", + "people_count_2010": 436444, + "lat": 48.245437, + "lng": 126.508737, + "name": "北安市", + "level": "district", + "parent": "黑河市" + }, + { + "adcode": "320803", + "people_count_2010": 984983, + "lat": 33.507499, + "lng": 119.14634, + "name": "淮安区", + "level": "district", + "parent": "淮安市" + }, + { + "adcode": "431230", + "people_count_2010": 206651, + "lat": 26.158349, + "lng": 109.783359, + "name": "通道侗族自治县", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "420822", + "people_count_2010": 581443, + "lat": 30.70359, + "lng": 112.595218, + "name": "沙洋县", + "level": "district", + "parent": "荆门市" + }, + { + "adcode": "441781", + "people_count_2010": 849504, + "lat": 22.169598, + "lng": 111.7905, + "name": "阳春市", + "level": "district", + "parent": "阳江市" + }, + { + "adcode": "431223", + "people_count_2010": 453565, + "lat": 28.005474, + "lng": 110.196953, + "name": "辰溪县", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "421087", + "people_count_2010": 765911, + "lat": 30.176037, + "lng": 111.77818, + "name": "松滋市", + "level": "district", + "parent": "荆州市" + }, + { + "adcode": "623027", + "people_count_2010": 86670, + "lat": 35.200853, + "lng": 102.520743, + "name": "夏河县", + "level": "district", + "parent": "甘南藏族自治州" + }, + { + "adcode": "431126", + "people_count_2010": 702562, + "lat": 25.584112, + "lng": 111.944529, + "name": "宁远县", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "431127", + "people_count_2010": 328385, + "lat": 25.375255, + "lng": 112.194195, + "name": "蓝山县", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "431128", + "people_count_2010": 1200000, + "lat": 25.906927, + "lng": 112.220341, + "name": "新田县", + "level": "district", + "parent": "永州市" + }, + { + "adcode": "440904", + "people_count_2010": null, + "lat": 21.507219, + "lng": 111.007264, + "name": "电白区", + "level": "district", + "parent": "茂名市" + }, + { + "adcode": "440103", + "people_count_2010": 898200, + "lat": 23.124943, + "lng": 113.243038, + "name": "荔湾区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "532929", + "people_count_2010": 199880, + "lat": 25.884955, + "lng": 99.369402, + "name": "云龙县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "340202", + "people_count_2010": 533330, + "lat": 31.32559, + "lng": 118.376343, + "name": "镜湖区", + "level": "district", + "parent": "芜湖市" + }, + { + "adcode": "610125", + "people_count_2010": 556377, + "lat": 34.108668, + "lng": 108.607385, + "name": "户县", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "620321", + "people_count_2010": 235489, + "lat": 38.247354, + "lng": 101.971957, + "name": "永昌县", + "level": "district", + "parent": "金昌市" + }, + { + "adcode": "370322", + "people_count_2010": 347867, + "lat": 37.169581, + "lng": 117.829839, + "name": "高青县", + "level": "district", + "parent": "淄博市" + }, + { + "adcode": "610721", + "people_count_2010": 471634, + "lat": 33.003341, + "lng": 106.942393, + "name": "南郑县", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "320722", + "people_count_2010": 952668, + "lat": 34.522859, + "lng": 118.766489, + "name": "东海县", + "level": "district", + "parent": "连云港市" + }, + { + "adcode": "371726", + "people_count_2010": 721898, + "lat": 35.560257, + "lng": 115.51434, + "name": "鄄城县", + "level": "district", + "parent": "菏泽市" + }, + { + "adcode": "611021", + "people_count_2010": 441613, + "lat": 34.088502, + "lng": 110.145716, + "name": "洛南县", + "level": "district", + "parent": "商洛市" + }, + { + "adcode": "410823", + "people_count_2010": 713945, + "lat": 35.09885, + "lng": 113.408334, + "name": "武陟县", + "level": "district", + "parent": "焦作市" + }, + { + "adcode": "653126", + "people_count_2010": 454328, + "lat": 37.884679, + "lng": 77.420353, + "name": "叶城县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "410726", + "people_count_2010": 469280, + "lat": 35.149515, + "lng": 114.200982, + "name": "延津县", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "640104", + "people_count_2010": 678306, + "lat": 38.46747, + "lng": 106.278393, + "name": "兴庆区", + "level": "district", + "parent": "银川市" + }, + { + "adcode": "520623", + "people_count_2010": null, + "lat": 27.519386, + "lng": 108.229854, + "name": "石阡县", + "level": "district", + "parent": "铜仁市" + }, + { + "adcode": "430621", + "people_count_2010": 716829, + "lat": 29.144843, + "lng": 113.116073, + "name": "岳阳县", + "level": "district", + "parent": "岳阳市" + }, + { + "adcode": "230715", + "people_count_2010": 21845, + "lat": 48.238368, + "lng": 129.388796, + "name": "红星区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "331023", + "people_count_2010": 382812, + "lat": 29.141126, + "lng": 121.031227, + "name": "天台县", + "level": "district", + "parent": "台州市" + }, + { + "adcode": "520621", + "people_count_2010": null, + "lat": 27.691904, + "lng": 108.848427, + "name": "江口县", + "level": "district", + "parent": "铜仁市" + }, + { + "adcode": "410724", + "people_count_2010": 394384, + "lat": 35.261685, + "lng": 113.657249, + "name": "获嘉县", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "460105", + "people_count_2010": 349541, + "lat": 20.008145, + "lng": 110.282393, + "name": "秀英区", + "level": "district", + "parent": "海口市" + }, + { + "adcode": "310114", + "people_count_2010": 1500000, + "lat": 31.383524, + "lng": 121.250333, + "name": "嘉定区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "330109", + "people_count_2010": 1500000, + "lat": 30.162932, + "lng": 120.27069, + "name": "萧山区", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "533323", + "people_count_2010": 1000000, + "lat": 26.902738, + "lng": 98.867413, + "name": "福贡县", + "level": "district", + "parent": "怒江傈僳族自治州" + }, + { + "adcode": "410825", + "people_count_2010": 421796, + "lat": 34.941233, + "lng": 113.079118, + "name": "温县", + "level": "district", + "parent": "焦作市" + }, + { + "adcode": "410103", + "people_count_2010": 712646, + "lat": 34.730936, + "lng": 113.645422, + "name": "二七区", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "210727", + "people_count_2010": 396602, + "lat": 41.537224, + "lng": 121.242831, + "name": "义县", + "level": "district", + "parent": "锦州市" + }, + { + "adcode": "411104", + "people_count_2010": 477340, + "lat": 33.567555, + "lng": 114.051686, + "name": "召陵区", + "level": "district", + "parent": "漯河市" + }, + { + "adcode": "542224", + "people_count_2010": 17261, + "lat": 29.259774, + "lng": 92.015732, + "name": "桑日县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "320281", + "people_count_2010": 1600000, + "lat": 31.910984, + "lng": 120.275891, + "name": "江阴市", + "level": "district", + "parent": "无锡市" + }, + { + "adcode": "542221", + "people_count_2010": 130561, + "lat": 29.236106, + "lng": 91.76525, + "name": "乃东县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "140522", + "people_count_2010": 388789, + "lat": 35.482177, + "lng": 112.422014, + "name": "阳城县", + "level": "district", + "parent": "晋城市" + }, + { + "adcode": "230104", + "people_count_2010": 906421, + "lat": 45.78454, + "lng": 126.648838, + "name": "道外区", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "542223", + "people_count_2010": 45708, + "lat": 29.289078, + "lng": 90.985271, + "name": "贡嘎县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "540425", + "people_count_2010": null, + "lat": 28.660244, + "lng": 97.465002, + "name": "察隅县", + "level": "district", + "parent": "林芝市" + }, + { + "adcode": "410926", + "people_count_2010": 469874, + "lat": 35.851977, + "lng": 115.504212, + "name": "范县", + "level": "district", + "parent": "濮阳市" + }, + { + "adcode": "542226", + "people_count_2010": 14280, + "lat": 29.063656, + "lng": 92.201066, + "name": "曲松县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "330303", + "people_count_2010": 749303, + "lat": 27.970254, + "lng": 120.763469, + "name": "龙湾区", + "level": "district", + "parent": "温州市" + }, + { + "adcode": "360723", + "people_count_2010": 289378, + "lat": 25.395937, + "lng": 114.362243, + "name": "大余县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "542229", + "people_count_2010": 23434, + "lat": 29.140921, + "lng": 92.591043, + "name": "加查县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "410883", + "people_count_2010": 367113, + "lat": 34.90963, + "lng": 112.78708, + "name": "孟州市", + "level": "district", + "parent": "焦作市" + }, + { + "adcode": "220202", + "people_count_2010": 658960, + "lat": 43.851118, + "lng": 126.570766, + "name": "昌邑区", + "level": "district", + "parent": "吉林市" + }, + { + "adcode": "330204", + "people_count_2010": 366648, + "lat": 29.866542, + "lng": 121.572991, + "name": "江东区", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "330203", + "people_count_2010": 373742, + "lat": 29.874452, + "lng": 121.539698, + "name": "海曙区", + "level": "district", + "parent": "宁波市" + }, + { + "adcode": "230826", + "people_count_2010": 202827, + "lat": 47.023039, + "lng": 130.723713, + "name": "桦川县", + "level": "district", + "parent": "佳木斯市" + }, + { + "adcode": "542222", + "people_count_2010": null, + "lat": 29.246476, + "lng": 91.338, + "name": "扎囊县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "433126", + "people_count_2010": 127297, + "lat": 28.616973, + "lng": 109.949592, + "name": "古丈县", + "level": "district", + "parent": "湘西土家族苗族自治州" + }, + { + "adcode": "411102", + "people_count_2010": 323954, + "lat": 33.565441, + "lng": 114.017948, + "name": "源汇区", + "level": "district", + "parent": "漯河市" + }, + { + "adcode": "340603", + "people_count_2010": 467358, + "lat": 33.970916, + "lng": 116.790775, + "name": "相山区", + "level": "district", + "parent": "淮北市" + }, + { + "adcode": "440803", + "people_count_2010": null, + "lat": 21.194229, + "lng": 110.406382, + "name": "霞山区", + "level": "district", + "parent": "湛江市" + }, + { + "adcode": "430111", + "people_count_2010": 724048, + "lat": 28.109937, + "lng": 113.016337, + "name": "雨花区", + "level": "district", + "parent": "长沙市" + }, + { + "adcode": "140721", + "people_count_2010": 113967, + "lat": 37.069019, + "lng": 112.973521, + "name": "榆社县", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "510727", + "people_count_2010": 170959, + "lat": 32.407588, + "lng": 104.530555, + "name": "平武县", + "level": "district", + "parent": "绵阳市" + }, + { + "adcode": "654025", + "people_count_2010": 282718, + "lat": 43.434249, + "lng": 83.258493, + "name": "新源县", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "430105", + "people_count_2010": 567166, + "lat": 28.201336, + "lng": 112.985525, + "name": "开福区", + "level": "district", + "parent": "长沙市" + }, + { + "adcode": "340604", + "people_count_2010": 321565, + "lat": 33.889529, + "lng": 116.809465, + "name": "烈山区", + "level": "district", + "parent": "淮北市" + }, + { + "adcode": "430702", + "people_count_2010": 620580, + "lat": 29.040477, + "lng": 111.690718, + "name": "武陵区", + "level": "district", + "parent": "常德市" + }, + { + "adcode": "140423", + "people_count_2010": 270216, + "lat": 36.532854, + "lng": 113.050094, + "name": "襄垣县", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "431228", + "people_count_2010": 829393, + "lat": 27.437996, + "lng": 109.687777, + "name": "芷江侗族自治县", + "level": "district", + "parent": "怀化市" + }, + { + "adcode": "511424", + "people_count_2010": 141953, + "lat": 30.012751, + "lng": 103.518333, + "name": "丹棱县", + "level": "district", + "parent": "眉山市" + }, + { + "adcode": "511602", + "people_count_2010": 858159, + "lat": 30.456462, + "lng": 106.632907, + "name": "广安区", + "level": "district", + "parent": "广安市" + }, + { + "adcode": "511623", + "people_count_2010": 704695, + "lat": 30.334323, + "lng": 106.934968, + "name": "邻水县", + "level": "district", + "parent": "广安市" + }, + { + "adcode": "511724", + "people_count_2010": 876884, + "lat": 30.736289, + "lng": 107.20742, + "name": "大竹县", + "level": "district", + "parent": "达州市" + }, + { + "adcode": "520123", + "people_count_2010": 248926, + "lat": 26.840672, + "lng": 106.599218, + "name": "修文县", + "level": "district", + "parent": "贵阳市" + }, + { + "adcode": "371727", + "people_count_2010": 565793, + "lat": 35.072701, + "lng": 115.569601, + "name": "定陶县", + "level": "district", + "parent": "菏泽市" + }, + { + "adcode": "410425", + "people_count_2010": null, + "lat": 33.971993, + "lng": 113.220451, + "name": "郏县", + "level": "district", + "parent": "平顶山市" + }, + { + "adcode": "371602", + "people_count_2010": 682717, + "lat": 37.384842, + "lng": 118.020149, + "name": "滨城区", + "level": "district", + "parent": "滨州市" + }, + { + "adcode": "511822", + "people_count_2010": 147955, + "lat": 29.795529, + "lng": 102.844674, + "name": "荥经县", + "level": "district", + "parent": "雅安市" + }, + { + "adcode": "511304", + "people_count_2010": 607635, + "lat": 30.762976, + "lng": 106.067027, + "name": "嘉陵区", + "level": "district", + "parent": "南充市" + }, + { + "adcode": "511403", + "people_count_2010": null, + "lat": 30.192298, + "lng": 103.8701, + "name": "彭山区", + "level": "district", + "parent": "眉山市" + }, + { + "adcode": "430382", + "people_count_2010": 86036, + "lat": 27.922682, + "lng": 112.52848, + "name": "韶山市", + "level": "district", + "parent": "湘潭市" + }, + { + "adcode": "420703", + "people_count_2010": 237333, + "lat": 30.534468, + "lng": 114.74148, + "name": "华容区", + "level": "district", + "parent": "鄂州市" + }, + { + "adcode": "420704", + "people_count_2010": 668727, + "lat": 30.39669, + "lng": 114.890012, + "name": "鄂城区", + "level": "district", + "parent": "鄂州市" + }, + { + "adcode": "410305", + "people_count_2010": 619221, + "lat": 34.654251, + "lng": 112.399243, + "name": "涧西区", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "320703", + "people_count_2010": 232097, + "lat": 34.739529, + "lng": 119.366487, + "name": "连云区", + "level": "district", + "parent": "连云港市" + }, + { + "adcode": "410902", + "people_count_2010": 655674, + "lat": 35.760473, + "lng": 115.03184, + "name": "华龙区", + "level": "district", + "parent": "濮阳市" + }, + { + "adcode": "120105", + "people_count_2010": 788451, + "lat": 39.156632, + "lng": 117.201569, + "name": "河北区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "430302", + "people_count_2010": 501848, + "lat": 27.86077, + "lng": 112.907427, + "name": "雨湖区", + "level": "district", + "parent": "湘潭市" + }, + { + "adcode": "620105", + "people_count_2010": 288510, + "lat": 36.10329, + "lng": 103.724038, + "name": "安宁区", + "level": "district", + "parent": "兰州市" + }, + { + "adcode": "410927", + "people_count_2010": 332124, + "lat": 35.996474, + "lng": 115.855681, + "name": "台前县", + "level": "district", + "parent": "濮阳市" + }, + { + "adcode": "210902", + "people_count_2010": 231046, + "lat": 42.011162, + "lng": 121.657639, + "name": "海州区", + "level": "district", + "parent": "阜新市" + }, + { + "adcode": "371521", + "people_count_2010": 770725, + "lat": 36.113708, + "lng": 115.784287, + "name": "阳谷县", + "level": "district", + "parent": "聊城市" + }, + { + "adcode": "152501", + "people_count_2010": 74179, + "lat": 43.652895, + "lng": 111.97981, + "name": "二连浩特市", + "level": "district", + "parent": "锡林郭勒盟" + }, + { + "adcode": "411103", + "people_count_2010": 493680, + "lat": 33.588897, + "lng": 114.016813, + "name": "郾城区", + "level": "district", + "parent": "漯河市" + }, + { + "adcode": "320204", + "people_count_2010": 336894, + "lat": 31.586575, + "lng": 120.295159, + "name": "北塘区", + "level": "district", + "parent": "无锡市" + }, + { + "adcode": "320203", + "people_count_2010": 378491, + "lat": 31.563759, + "lng": 120.308448, + "name": "南长区", + "level": "district", + "parent": "无锡市" + }, + { + "adcode": "411281", + "people_count_2010": 144779, + "lat": 34.746868, + "lng": 111.869417, + "name": "义马市", + "level": "district", + "parent": "三门峡市" + }, + { + "adcode": "210804", + "people_count_2010": 431087, + "lat": 40.263646, + "lng": 122.127242, + "name": "鲅鱼圈区", + "level": "district", + "parent": "营口市" + }, + { + "adcode": "410203", + "people_count_2010": null, + "lat": 34.800459, + "lng": 114.364875, + "name": "顺河回族区", + "level": "district", + "parent": "开封市" + }, + { + "adcode": "140723", + "people_count_2010": 144178, + "lat": 37.327027, + "lng": 113.572919, + "name": "和顺县", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "211403", + "people_count_2010": 244053, + "lat": 40.709991, + "lng": 120.838569, + "name": "龙港区", + "level": "district", + "parent": "葫芦岛市" + }, + { + "adcode": "140722", + "people_count_2010": 161314, + "lat": 37.079672, + "lng": 113.377834, + "name": "左权县", + "level": "district", + "parent": "晋中市" + }, + { + "adcode": "610112", + "people_count_2010": 806811, + "lat": 34.30823, + "lng": 108.946022, + "name": "未央区", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "140225", + "people_count_2010": 343486, + "lat": 39.699099, + "lng": 113.698091, + "name": "浑源县", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "511111", + "people_count_2010": 187180, + "lat": 29.416536, + "lng": 103.549961, + "name": "沙湾区", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "654028", + "people_count_2010": 157743, + "lat": 43.789737, + "lng": 82.504119, + "name": "尼勒克县", + "level": "district", + "parent": "伊犁哈萨克自治州" + }, + { + "adcode": "511113", + "people_count_2010": 49157, + "lat": 29.24602, + "lng": 103.077831, + "name": "金口河区", + "level": "district", + "parent": "乐山市" + }, + { + "adcode": "630105", + "people_count_2010": 299002, + "lat": 36.648448, + "lng": 101.761297, + "name": "城北区", + "level": "district", + "parent": "西宁市" + }, + { + "adcode": "810009", + "people_count_2010": null, + "lat": 22.320679, + "lng": 114.214083, + "name": "觀塘區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "130203", + "people_count_2010": 743504, + "lat": 39.628538, + "lng": 118.174736, + "name": "路北区", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "431322", + "people_count_2010": 1100000, + "lat": 27.737456, + "lng": 111.306747, + "name": "新化县", + "level": "district", + "parent": "娄底市" + }, + { + "adcode": "520102", + "people_count_2010": 829326, + "lat": 26.573743, + "lng": 106.715963, + "name": "南明区", + "level": "district", + "parent": "贵阳市" + }, + { + "adcode": "520121", + "people_count_2010": 358248, + "lat": 27.056793, + "lng": 106.969438, + "name": "开阳县", + "level": "district", + "parent": "贵阳市" + }, + { + "adcode": "222405", + "people_count_2010": 177234, + "lat": 42.771029, + "lng": 129.425747, + "name": "龙井市", + "level": "district", + "parent": "延边朝鲜族自治州" + }, + { + "adcode": "520103", + "people_count_2010": 956906, + "lat": 26.58301, + "lng": 106.713397, + "name": "云岩区", + "level": "district", + "parent": "贵阳市" + }, + { + "adcode": "520524", + "people_count_2010": null, + "lat": 26.668497, + "lng": 105.768997, + "name": "织金县", + "level": "district", + "parent": "毕节市" + }, + { + "adcode": "520122", + "people_count_2010": 212897, + "lat": 27.092665, + "lng": 106.737693, + "name": "息烽县", + "level": "district", + "parent": "贵阳市" + }, + { + "adcode": "430502", + "people_count_2010": 307980, + "lat": 27.240001, + "lng": 111.479756, + "name": "双清区", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "450321", + "people_count_2010": 272223, + "lat": 24.77534, + "lng": 110.494699, + "name": "阳朔县", + "level": "district", + "parent": "桂林市" + }, + { + "adcode": "451322", + "people_count_2010": 285202, + "lat": 23.959824, + "lng": 109.684555, + "name": "象州县", + "level": "district", + "parent": "来宾市" + }, + { + "adcode": "420104", + "people_count_2010": 829665, + "lat": 30.57061, + "lng": 114.264568, + "name": "硚口区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "820008", + "people_count_2010": null, + "lat": 22.124049, + "lng": 113.559954, + "name": "聖方濟各堂區", + "level": "district", + "parent": "澳門特別行政區" + }, + { + "adcode": "410603", + "people_count_2010": 230968, + "lat": 35.896058, + "lng": 114.184202, + "name": "山城区", + "level": "district", + "parent": "鹤壁市" + }, + { + "adcode": "130427", + "people_count_2010": 677884, + "lat": 36.367673, + "lng": 114.38208, + "name": "磁县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "340102", + "people_count_2010": 861022, + "lat": 31.86961, + "lng": 117.315358, + "name": "瑶海区", + "level": "district", + "parent": "合肥市" + }, + { + "adcode": "340111", + "people_count_2010": 817686, + "lat": 31.82956, + "lng": 117.285751, + "name": "包河区", + "level": "district", + "parent": "合肥市" + }, + { + "adcode": "440704", + "people_count_2010": 254313, + "lat": 22.572211, + "lng": 113.120601, + "name": "江海区", + "level": "district", + "parent": "江门市" + }, + { + "adcode": "430511", + "people_count_2010": 104609, + "lat": 27.245688, + "lng": 111.452315, + "name": "北塔区", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "341002", + "people_count_2010": 217637, + "lat": 29.709186, + "lng": 118.317354, + "name": "屯溪区", + "level": "district", + "parent": "黄山市" + }, + { + "adcode": "410306", + "people_count_2010": 69076, + "lat": 34.899093, + "lng": 112.584796, + "name": "吉利区", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "421002", + "people_count_2010": 600330, + "lat": 30.315895, + "lng": 112.257433, + "name": "沙市区", + "level": "district", + "parent": "荆州市" + }, + { + "adcode": "230709", + "people_count_2010": 39218, + "lat": 47.41295, + "lng": 129.435944, + "name": "金山屯区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "230708", + "people_count_2010": 41028, + "lat": 47.636102, + "lng": 129.133411, + "name": "美溪区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "230710", + "people_count_2010": 33988, + "lat": 48.108204, + "lng": 129.245028, + "name": "五营区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "230713", + "people_count_2010": 32259, + "lat": 47.027532, + "lng": 129.021151, + "name": "带岭区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "450503", + "people_count_2010": 176785, + "lat": 21.444909, + "lng": 109.118707, + "name": "银海区", + "level": "district", + "parent": "北海市" + }, + { + "adcode": "630104", + "people_count_2010": 242627, + "lat": 36.628323, + "lng": 101.763649, + "name": "城西区", + "level": "district", + "parent": "西宁市" + }, + { + "adcode": "441821", + "people_count_2010": 302906, + "lat": 23.866739, + "lng": 113.534094, + "name": "佛冈县", + "level": "district", + "parent": "清远市" + }, + { + "adcode": "130728", + "people_count_2010": 210914, + "lat": 40.671274, + "lng": 114.422364, + "name": "怀安县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "410381", + "people_count_2010": 666696, + "lat": 34.723042, + "lng": 112.787739, + "name": "偃师市", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "330825", + "people_count_2010": 362380, + "lat": 29.031364, + "lng": 119.172525, + "name": "龙游县", + "level": "district", + "parent": "衢州市" + }, + { + "adcode": "331126", + "people_count_2010": 141541, + "lat": 27.618231, + "lng": 119.067233, + "name": "庆元县", + "level": "district", + "parent": "丽水市" + }, + { + "adcode": "421202", + "people_count_2010": 512517, + "lat": 29.824716, + "lng": 114.333894, + "name": "咸安区", + "level": "district", + "parent": "咸宁市" + }, + { + "adcode": "433125", + "people_count_2010": 278169, + "lat": 28.709605, + "lng": 109.651445, + "name": "保靖县", + "level": "district", + "parent": "湘西土家族苗族自治州" + }, + { + "adcode": "231121", + "people_count_2010": 495519, + "lat": 49.177461, + "lng": 125.229904, + "name": "嫩江县", + "level": "district", + "parent": "黑河市" + }, + { + "adcode": "433123", + "people_count_2010": 346814, + "lat": 27.948308, + "lng": 109.599191, + "name": "凤凰县", + "level": "district", + "parent": "湘西土家族苗族自治州" + }, + { + "adcode": "330803", + "people_count_2010": 341436, + "lat": 28.973195, + "lng": 118.957683, + "name": "衢江区", + "level": "district", + "parent": "衢州市" + }, + { + "adcode": "610303", + "people_count_2010": 394538, + "lat": 34.375192, + "lng": 107.149943, + "name": "金台区", + "level": "district", + "parent": "宝鸡市" + }, + { + "adcode": "610582", + "people_count_2010": 258113, + "lat": 34.565359, + "lng": 110.08952, + "name": "华阴市", + "level": "district", + "parent": "渭南市" + }, + { + "adcode": "540330", + "people_count_2010": null, + "lat": 30.933849, + "lng": 94.707504, + "name": "边坝县", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "430902", + "people_count_2010": 409062, + "lat": 28.592771, + "lng": 112.33084, + "name": "资阳区", + "level": "district", + "parent": "益阳市" + }, + { + "adcode": "430981", + "people_count_2010": 666270, + "lat": 28.839713, + "lng": 112.361088, + "name": "沅江市", + "level": "district", + "parent": "益阳市" + }, + { + "adcode": "610826", + "people_count_2010": 296088, + "lat": 37.507701, + "lng": 110.265377, + "name": "绥德县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "141082", + "people_count_2010": 282905, + "lat": 36.57202, + "lng": 111.723103, + "name": "霍州市", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "433130", + "people_count_2010": 501590, + "lat": 29.453438, + "lng": 109.441189, + "name": "龙山县", + "level": "district", + "parent": "湘西土家族苗族自治州" + }, + { + "adcode": "450512", + "people_count_2010": 142715, + "lat": 21.5928, + "lng": 109.450573, + "name": "铁山港区", + "level": "district", + "parent": "北海市" + }, + { + "adcode": "620302", + "people_count_2010": 228561, + "lat": 38.513793, + "lng": 102.187683, + "name": "金川区", + "level": "district", + "parent": "金昌市" + }, + { + "adcode": "371623", + "people_count_2010": 418687, + "lat": 37.740848, + "lng": 117.616325, + "name": "无棣县", + "level": "district", + "parent": "滨州市" + }, + { + "adcode": "210124", + "people_count_2010": 399587, + "lat": 42.507045, + "lng": 123.416722, + "name": "法库县", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "140421", + "people_count_2010": 340963, + "lat": 36.052438, + "lng": 113.056679, + "name": "长治县", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "650422", + "people_count_2010": null, + "lat": 42.793536, + "lng": 88.655771, + "name": "托克逊县", + "level": "district", + "parent": "吐鲁番市" + }, + { + "adcode": "140321", + "people_count_2010": 335265, + "lat": 37.800289, + "lng": 113.631049, + "name": "平定县", + "level": "district", + "parent": "阳泉市" + }, + { + "adcode": "610730", + "people_count_2010": 30075, + "lat": 33.520745, + "lng": 107.988582, + "name": "佛坪县", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "611022", + "people_count_2010": 295349, + "lat": 33.694711, + "lng": 110.33191, + "name": "丹凤县", + "level": "district", + "parent": "商洛市" + }, + { + "adcode": "140427", + "people_count_2010": 291609, + "lat": 36.110938, + "lng": 113.206138, + "name": "壶关县", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "120103", + "people_count_2010": 870632, + "lat": 39.101897, + "lng": 117.217536, + "name": "河西区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "210111", + "people_count_2010": 474779, + "lat": 41.665904, + "lng": 123.341604, + "name": "苏家屯区", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "140424", + "people_count_2010": 263844, + "lat": 36.314072, + "lng": 112.892741, + "name": "屯留县", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "140428", + "people_count_2010": 353266, + "lat": 36.119484, + "lng": 112.884656, + "name": "长子县", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "320724", + "people_count_2010": 622296, + "lat": 34.092553, + "lng": 119.352331, + "name": "灌南县", + "level": "district", + "parent": "连云港市" + }, + { + "adcode": "140431", + "people_count_2010": 158702, + "lat": 36.500777, + "lng": 112.340878, + "name": "沁源县", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "130125", + "people_count_2010": 406353, + "lat": 38.437422, + "lng": 114.552734, + "name": "行唐县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "120113", + "people_count_2010": 669121, + "lat": 39.225555, + "lng": 117.13482, + "name": "北辰区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "350626", + "people_count_2010": 211505, + "lat": 23.702845, + "lng": 117.427679, + "name": "东山县", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "120115", + "people_count_2010": 5600000, + "lat": 39.716965, + "lng": 117.308094, + "name": "宝坻区", + "level": "district", + "parent": "天津市市辖区" + }, + { + "adcode": "513422", + "people_count_2010": 131726, + "lat": 27.926859, + "lng": 101.280184, + "name": "木里藏族自治县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "653101", + "people_count_2010": 506640, + "lat": 39.467861, + "lng": 75.98838, + "name": "喀什市", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "441625", + "people_count_2010": 439964, + "lat": 23.789093, + "lng": 114.742711, + "name": "东源县", + "level": "district", + "parent": "河源市" + }, + { + "adcode": "441622", + "people_count_2010": 694480, + "lat": 24.101174, + "lng": 115.256415, + "name": "龙川县", + "level": "district", + "parent": "河源市" + }, + { + "adcode": "430124", + "people_count_2010": 1200000, + "lat": 28.253928, + "lng": 112.553182, + "name": "宁乡县", + "level": "district", + "parent": "长沙市" + }, + { + "adcode": "653123", + "people_count_2010": 262067, + "lat": 38.929839, + "lng": 76.174292, + "name": "英吉沙县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "411426", + "people_count_2010": 915291, + "lat": 34.240894, + "lng": 116.13989, + "name": "夏邑县", + "level": "district", + "parent": "商丘市" + }, + { + "adcode": "653226", + "people_count_2010": 249899, + "lat": 36.854628, + "lng": 81.667845, + "name": "于田县", + "level": "district", + "parent": "和田地区" + }, + { + "adcode": "510525", + "people_count_2010": 713083, + "lat": 28.03948, + "lng": 105.813359, + "name": "古蔺县", + "level": "district", + "parent": "泸州市" + }, + { + "adcode": "430121", + "people_count_2010": 979472, + "lat": 28.237888, + "lng": 113.080098, + "name": "长沙县", + "level": "district", + "parent": "长沙市" + }, + { + "adcode": "450226", + "people_count_2010": 297244, + "lat": 25.78553, + "lng": 109.614846, + "name": "三江侗族自治县", + "level": "district", + "parent": "柳州市" + }, + { + "adcode": "410725", + "people_count_2010": 659380, + "lat": 35.054001, + "lng": 113.965966, + "name": "原阳县", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "420505", + "people_count_2010": 61230, + "lat": 30.530744, + "lng": 111.427642, + "name": "猇亭区", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "140430", + "people_count_2010": 172205, + "lat": 36.757123, + "lng": 112.70138, + "name": "沁县", + "level": "district", + "parent": "长治市" + }, + { + "adcode": "440604", + "people_count_2010": 1100000, + "lat": 23.019643, + "lng": 113.112414, + "name": "禅城区", + "level": "district", + "parent": "佛山市" + }, + { + "adcode": "513428", + "people_count_2010": 155740, + "lat": 27.376828, + "lng": 102.541082, + "name": "普格县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "430703", + "people_count_2010": 836839, + "lat": 29.014426, + "lng": 111.685327, + "name": "鼎城区", + "level": "district", + "parent": "常德市" + }, + { + "adcode": "310106", + "people_count_2010": 246788, + "lat": 31.229003, + "lng": 121.448224, + "name": "静安区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "430922", + "people_count_2010": 769863, + "lat": 28.520993, + "lng": 112.139732, + "name": "桃江县", + "level": "district", + "parent": "益阳市" + }, + { + "adcode": "430723", + "people_count_2010": 826655, + "lat": 29.64264, + "lng": 111.761682, + "name": "澧县", + "level": "district", + "parent": "常德市" + }, + { + "adcode": "653022", + "people_count_2010": 199065, + "lat": 39.147079, + "lng": 75.945159, + "name": "阿克陶县", + "level": "district", + "parent": "克孜勒苏柯尔克孜自治州" + }, + { + "adcode": "652222", + "people_count_2010": null, + "lat": 43.599032, + "lng": 93.021795, + "name": "巴里坤哈萨克自治县", + "level": "district", + "parent": "哈密地区" + }, + { + "adcode": "513427", + "people_count_2010": 170673, + "lat": 27.065205, + "lng": 102.757374, + "name": "宁南县", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "513401", + "people_count_2010": 712434, + "lat": 27.885786, + "lng": 102.258758, + "name": "西昌市", + "level": "district", + "parent": "凉山彝族自治州" + }, + { + "adcode": "371625", + "people_count_2010": 487116, + "lat": 37.147002, + "lng": 118.123096, + "name": "博兴县", + "level": "district", + "parent": "滨州市" + }, + { + "adcode": "440281", + "people_count_2010": 397779, + "lat": 25.128445, + "lng": 113.352413, + "name": "乐昌市", + "level": "district", + "parent": "韶关市" + }, + { + "adcode": "430923", + "people_count_2010": 900995, + "lat": 28.377421, + "lng": 111.221824, + "name": "安化县", + "level": "district", + "parent": "益阳市" + }, + { + "adcode": "511826", + "people_count_2010": 109027, + "lat": 30.152907, + "lng": 102.924016, + "name": "芦山县", + "level": "district", + "parent": "雅安市" + }, + { + "adcode": "321202", + "people_count_2010": 594656, + "lat": 32.488406, + "lng": 119.920187, + "name": "海陵区", + "level": "district", + "parent": "泰州市" + }, + { + "adcode": "210302", + "people_count_2010": 334884, + "lat": 41.110344, + "lng": 122.994475, + "name": "铁东区", + "level": "district", + "parent": "鞍山市" + }, + { + "adcode": "130532", + "people_count_2010": 300029, + "lat": 37.069404, + "lng": 115.029218, + "name": "平乡县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "130107", + "people_count_2010": 95170, + "lat": 38.069748, + "lng": 114.058178, + "name": "井陉矿区", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "430521", + "people_count_2010": 896619, + "lat": 27.257273, + "lng": 111.743168, + "name": "邵东县", + "level": "district", + "parent": "邵阳市" + }, + { + "adcode": "410928", + "people_count_2010": 1000000, + "lat": 35.710349, + "lng": 115.023844, + "name": "濮阳县", + "level": "district", + "parent": "濮阳市" + }, + { + "adcode": "230108", + "people_count_2010": 190253, + "lat": 45.605567, + "lng": 126.629257, + "name": "平房区", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "653121", + "people_count_2010": 311960, + "lat": 39.378306, + "lng": 75.863075, + "name": "疏附县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "542429", + "people_count_2010": 48284, + "lat": 31.918691, + "lng": 94.054049, + "name": "巴青县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "320612", + "people_count_2010": null, + "lat": 32.084287, + "lng": 121.073171, + "name": "通州区", + "level": "district", + "parent": "南通市" + }, + { + "adcode": "321282", + "people_count_2010": 684360, + "lat": 32.018168, + "lng": 120.26825, + "name": "靖江市", + "level": "district", + "parent": "泰州市" + }, + { + "adcode": "231081", + "people_count_2010": 132315, + "lat": 44.396864, + "lng": 131.164856, + "name": "绥芬河市", + "level": "district", + "parent": "牡丹江市" + }, + { + "adcode": "231004", + "people_count_2010": 275289, + "lat": 44.595443, + "lng": 129.601232, + "name": "爱民区", + "level": "district", + "parent": "牡丹江市" + }, + { + "adcode": "130129", + "people_count_2010": 244799, + "lat": 37.660199, + "lng": 114.387756, + "name": "赞皇县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "131102", + "people_count_2010": 522147, + "lat": 37.732237, + "lng": 115.694945, + "name": "桃城区", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "410781", + "people_count_2010": 495744, + "lat": 35.404295, + "lng": 114.065855, + "name": "卫辉市", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "542426", + "people_count_2010": 20285, + "lat": 30.929056, + "lng": 88.709777, + "name": "申扎县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "131122", + "people_count_2010": 315693, + "lat": 37.803774, + "lng": 115.892415, + "name": "武邑县", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "131121", + "people_count_2010": 394469, + "lat": 37.511512, + "lng": 115.726499, + "name": "枣强县", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "621026", + "people_count_2010": 405614, + "lat": 35.50201, + "lng": 107.921182, + "name": "宁县", + "level": "district", + "parent": "庆阳市" + }, + { + "adcode": "430281", + "people_count_2010": 947387, + "lat": 27.657873, + "lng": 113.507157, + "name": "醴陵市", + "level": "district", + "parent": "株洲市" + }, + { + "adcode": "131123", + "people_count_2010": 214549, + "lat": 38.03698, + "lng": 115.970236, + "name": "武强县", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "131124", + "people_count_2010": 280498, + "lat": 38.232671, + "lng": 115.726577, + "name": "饶阳县", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "410704", + "people_count_2010": 144298, + "lat": 35.379855, + "lng": 113.906712, + "name": "凤泉区", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "540228", + "people_count_2010": null, + "lat": 29.106627, + "lng": 89.263618, + "name": "白朗县", + "level": "district", + "parent": "日喀则市" + }, + { + "adcode": "131125", + "people_count_2010": 328512, + "lat": 38.233511, + "lng": 115.519627, + "name": "安平县", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "650202", + "people_count_2010": 69361, + "lat": 44.327207, + "lng": 84.882267, + "name": "独山子区", + "level": "district", + "parent": "克拉玛依市" + }, + { + "adcode": "130533", + "people_count_2010": 556624, + "lat": 36.983272, + "lng": 115.272749, + "name": "威县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "130626", + "people_count_2010": 517874, + "lat": 39.266195, + "lng": 115.796895, + "name": "定兴县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "610425", + "people_count_2010": 447771, + "lat": 34.482583, + "lng": 108.428317, + "name": "礼泉县", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "610422", + "people_count_2010": 403524, + "lat": 34.613996, + "lng": 108.943481, + "name": "三原县", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "220421", + "people_count_2010": 355078, + "lat": 42.675228, + "lng": 125.529623, + "name": "东丰县", + "level": "district", + "parent": "辽源市" + }, + { + "adcode": "410922", + "people_count_2010": 635927, + "lat": 35.902413, + "lng": 115.107287, + "name": "清丰县", + "level": "district", + "parent": "濮阳市" + }, + { + "adcode": "410324", + "people_count_2010": 342848, + "lat": 33.783195, + "lng": 111.618386, + "name": "栾川县", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "330103", + "people_count_2010": 526096, + "lat": 30.276271, + "lng": 120.172763, + "name": "下城区", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "320582", + "people_count_2010": 1200000, + "lat": 31.865553, + "lng": 120.543441, + "name": "张家港市", + "level": "district", + "parent": "苏州市" + }, + { + "adcode": "410326", + "people_count_2010": 408009, + "lat": 34.15323, + "lng": 112.473789, + "name": "汝阳县", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "230705", + "people_count_2010": 52741, + "lat": 47.479437, + "lng": 129.311441, + "name": "西林区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "410802", + "people_count_2010": 295695, + "lat": 35.241353, + "lng": 113.226126, + "name": "解放区", + "level": "district", + "parent": "焦作市" + }, + { + "adcode": "530114", + "people_count_2010": null, + "lat": 24.889275, + "lng": 102.801382, + "name": "呈贡区", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "411722", + "people_count_2010": 1100000, + "lat": 33.264719, + "lng": 114.266892, + "name": "上蔡县", + "level": "district", + "parent": "驻马店市" + }, + { + "adcode": "540423", + "people_count_2010": null, + "lat": 29.32573, + "lng": 95.332245, + "name": "墨脱县", + "level": "district", + "parent": "林芝市" + }, + { + "adcode": "410225", + "people_count_2010": 677826, + "lat": 34.829899, + "lng": 114.820572, + "name": "兰考县", + "level": "district", + "parent": "开封市" + }, + { + "adcode": "440882", + "people_count_2010": 1400000, + "lat": 20.908523, + "lng": 110.088275, + "name": "雷州市", + "level": "district", + "parent": "湛江市" + }, + { + "adcode": "542225", + "people_count_2010": 17093, + "lat": 29.025242, + "lng": 91.683753, + "name": "琼结县", + "level": "district", + "parent": "山南地区" + }, + { + "adcode": "610102", + "people_count_2010": null, + "lat": 34.26927, + "lng": 108.959903, + "name": "新城区", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "440117", + "people_count_2010": null, + "lat": 23.545283, + "lng": 113.587386, + "name": "从化区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "420106", + "people_count_2010": 1200000, + "lat": 30.546536, + "lng": 114.307344, + "name": "武昌区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "652901", + "people_count_2010": 535657, + "lat": 41.171272, + "lng": 80.2629, + "name": "阿克苏市", + "level": "district", + "parent": "阿克苏地区" + }, + { + "adcode": "140603", + "people_count_2010": 203793, + "lat": 39.515603, + "lng": 112.295227, + "name": "平鲁区", + "level": "district", + "parent": "朔州市" + }, + { + "adcode": "140821", + "people_count_2010": 572508, + "lat": 35.141883, + "lng": 110.77493, + "name": "临猗县", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "431025", + "people_count_2010": 338445, + "lat": 25.279119, + "lng": 112.564589, + "name": "临武县", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "431081", + "people_count_2010": 337294, + "lat": 25.974152, + "lng": 113.23682, + "name": "资兴市", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "652324", + "people_count_2010": null, + "lat": 44.305625, + "lng": 86.217687, + "name": "玛纳斯县", + "level": "district", + "parent": "昌吉回族自治州" + }, + { + "adcode": "321204", + "people_count_2010": null, + "lat": 32.508483, + "lng": 120.148208, + "name": "姜堰区", + "level": "district", + "parent": "泰州市" + }, + { + "adcode": "140303", + "people_count_2010": null, + "lat": 37.870085, + "lng": 113.559066, + "name": "矿区", + "level": "district", + "parent": "阳泉市" + }, + { + "adcode": "320706", + "people_count_2010": null, + "lat": 34.601584, + "lng": 119.179793, + "name": "海州区", + "level": "district", + "parent": "连云港市" + }, + { + "adcode": "431028", + "people_count_2010": 382708, + "lat": 26.708625, + "lng": 113.27217, + "name": "安仁县", + "level": "district", + "parent": "郴州市" + }, + { + "adcode": "360734", + "people_count_2010": 288207, + "lat": 24.954136, + "lng": 115.651399, + "name": "寻乌县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "510723", + "people_count_2010": 417221, + "lat": 31.22318, + "lng": 105.391991, + "name": "盐亭县", + "level": "district", + "parent": "绵阳市" + }, + { + "adcode": "410329", + "people_count_2010": 756669, + "lat": 34.423416, + "lng": 112.429384, + "name": "伊川县", + "level": "district", + "parent": "洛阳市" + }, + { + "adcode": "140202", + "people_count_2010": null, + "lat": 40.090511, + "lng": 113.301438, + "name": "城区", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "411521", + "people_count_2010": 504577, + "lat": 32.203206, + "lng": 114.533414, + "name": "罗山县", + "level": "district", + "parent": "信阳市" + }, + { + "adcode": "411081", + "people_count_2010": 1100000, + "lat": 34.154403, + "lng": 113.471316, + "name": "禹州市", + "level": "district", + "parent": "许昌市" + }, + { + "adcode": "640302", + "people_count_2010": 709378, + "lat": 37.985967, + "lng": 106.199419, + "name": "利通区", + "level": "district", + "parent": "吴忠市" + }, + { + "adcode": "370306", + "people_count_2010": 362294, + "lat": 36.803699, + "lng": 117.851036, + "name": "周村区", + "level": "district", + "parent": "淄博市" + }, + { + "adcode": "350724", + "people_count_2010": 125472, + "lat": 27.525785, + "lng": 118.783491, + "name": "松溪县", + "level": "district", + "parent": "南平市" + }, + { + "adcode": "360825", + "people_count_2010": 428276, + "lat": 27.321087, + "lng": 115.435559, + "name": "永丰县", + "level": "district", + "parent": "吉安市" + }, + { + "adcode": "220622", + "people_count_2010": 131631, + "lat": 42.389689, + "lng": 126.808386, + "name": "靖宇县", + "level": "district", + "parent": "白山市" + }, + { + "adcode": "610624", + "people_count_2010": 171552, + "lat": 36.86441, + "lng": 109.325341, + "name": "安塞县", + "level": "district", + "parent": "延安市" + }, + { + "adcode": "411525", + "people_count_2010": 1000000, + "lat": 32.183074, + "lng": 115.667328, + "name": "固始县", + "level": "district", + "parent": "信阳市" + }, + { + "adcode": "450721", + "people_count_2010": 1200000, + "lat": 22.418041, + "lng": 109.293468, + "name": "灵山县", + "level": "district", + "parent": "钦州市" + }, + { + "adcode": "320118", + "people_count_2010": null, + "lat": 31.327132, + "lng": 118.87589, + "name": "高淳区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "110113", + "people_count_2010": 876620, + "lat": 40.128936, + "lng": 116.653525, + "name": "顺义区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "341623", + "people_count_2010": 1200000, + "lat": 33.143503, + "lng": 116.207782, + "name": "利辛县", + "level": "district", + "parent": "亳州市" + }, + { + "adcode": "220203", + "people_count_2010": 527350, + "lat": 43.909755, + "lng": 126.561429, + "name": "龙潭区", + "level": "district", + "parent": "吉林市" + }, + { + "adcode": "341723", + "people_count_2010": 246732, + "lat": 30.63818, + "lng": 117.857395, + "name": "青阳县", + "level": "district", + "parent": "池州市" + }, + { + "adcode": "320707", + "people_count_2010": null, + "lat": 34.839154, + "lng": 119.128774, + "name": "赣榆区", + "level": "district", + "parent": "连云港市" + }, + { + "adcode": "361002", + "people_count_2010": 1100000, + "lat": 27.981919, + "lng": 116.361404, + "name": "临川区", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "130702", + "people_count_2010": null, + "lat": 40.813875, + "lng": 114.885658, + "name": "桥东区", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "130209", + "people_count_2010": null, + "lat": 39.278277, + "lng": 118.446585, + "name": "曹妃甸区", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "340124", + "people_count_2010": null, + "lat": 31.251488, + "lng": 117.289844, + "name": "庐江县", + "level": "district", + "parent": "合肥市" + }, + { + "adcode": "410711", + "people_count_2010": 317994, + "lat": 35.312974, + "lng": 113.89716, + "name": "牧野区", + "level": "district", + "parent": "新乡市" + }, + { + "adcode": "445102", + "people_count_2010": null, + "lat": 23.664675, + "lng": 116.63365, + "name": "湘桥区", + "level": "district", + "parent": "潮州市" + }, + { + "adcode": "361023", + "people_count_2010": 287932, + "lat": 27.210132, + "lng": 116.532994, + "name": "南丰县", + "level": "district", + "parent": "抚州市" + }, + { + "adcode": "130902", + "people_count_2010": null, + "lat": 38.308273, + "lng": 116.873049, + "name": "新华区", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "511011", + "people_count_2010": 749810, + "lat": 29.600107, + "lng": 105.067203, + "name": "东兴区", + "level": "district", + "parent": "内江市" + }, + { + "adcode": "410104", + "people_count_2010": 645932, + "lat": 34.746453, + "lng": 113.685313, + "name": "管城回族区", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "510703", + "people_count_2010": 866727, + "lat": 31.463557, + "lng": 104.740971, + "name": "涪城区", + "level": "district", + "parent": "绵阳市" + }, + { + "adcode": "420529", + "people_count_2010": 188923, + "lat": 30.199252, + "lng": 110.674938, + "name": "五峰土家族自治县", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "350781", + "people_count_2010": 275112, + "lat": 27.337952, + "lng": 117.491544, + "name": "邵武市", + "level": "district", + "parent": "南平市" + }, + { + "adcode": "441523", + "people_count_2010": 291534, + "lat": 23.302682, + "lng": 115.657565, + "name": "陆河县", + "level": "district", + "parent": "汕尾市" + }, + { + "adcode": "350702", + "people_count_2010": 467875, + "lat": 26.636079, + "lng": 118.178918, + "name": "延平区", + "level": "district", + "parent": "南平市" + }, + { + "adcode": "210624", + "people_count_2010": 407713, + "lat": 40.730412, + "lng": 124.784867, + "name": "宽甸满族自治县", + "level": "district", + "parent": "丹东市" + }, + { + "adcode": "371002", + "people_count_2010": 844310, + "lat": 37.510754, + "lng": 122.116189, + "name": "环翠区", + "level": "district", + "parent": "威海市" + }, + { + "adcode": "433101", + "people_count_2010": 302065, + "lat": 28.314827, + "lng": 109.738273, + "name": "吉首市", + "level": "district", + "parent": "湘西土家族苗族自治州" + }, + { + "adcode": "513332", + "people_count_2010": 80834, + "lat": 32.975302, + "lng": 98.100887, + "name": "石渠县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "340304", + "people_count_2010": 249361, + "lat": 32.931933, + "lng": 117.35259, + "name": "禹会区", + "level": "district", + "parent": "蚌埠市" + }, + { + "adcode": "421224", + "people_count_2010": 361079, + "lat": 29.604455, + "lng": 114.493163, + "name": "通山县", + "level": "district", + "parent": "咸宁市" + }, + { + "adcode": "360735", + "people_count_2010": 278246, + "lat": 26.326582, + "lng": 116.342249, + "name": "石城县", + "level": "district", + "parent": "赣州市" + }, + { + "adcode": "360925", + "people_count_2010": 144800, + "lat": 28.86054, + "lng": 115.361744, + "name": "靖安县", + "level": "district", + "parent": "宜春市" + }, + { + "adcode": "220102", + "people_count_2010": 876959, + "lat": 43.890235, + "lng": 125.337237, + "name": "南关区", + "level": "district", + "parent": "长春市" + }, + { + "adcode": "441581", + "people_count_2010": 1400000, + "lat": 22.946104, + "lng": 115.644203, + "name": "陆丰市", + "level": "district", + "parent": "汕尾市" + }, + { + "adcode": "130109", + "people_count_2010": null, + "lat": 38.033767, + "lng": 114.849647, + "name": "藁城区", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "410502", + "people_count_2010": 442885, + "lat": 36.098101, + "lng": 114.352562, + "name": "文峰区", + "level": "district", + "parent": "安阳市" + }, + { + "adcode": "210602", + "people_count_2010": 215905, + "lat": 40.136483, + "lng": 124.397814, + "name": "元宝区", + "level": "district", + "parent": "丹东市" + }, + { + "adcode": "150902", + "people_count_2010": 356135, + "lat": 41.034134, + "lng": 113.116453, + "name": "集宁区", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "370786", + "people_count_2010": 603482, + "lat": 36.854937, + "lng": 119.394502, + "name": "昌邑市", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "421121", + "people_count_2010": 338609, + "lat": 30.63569, + "lng": 114.872029, + "name": "团风县", + "level": "district", + "parent": "黄冈市" + }, + { + "adcode": "210603", + "people_count_2010": 466343, + "lat": 40.102801, + "lng": 124.361153, + "name": "振兴区", + "level": "district", + "parent": "丹东市" + }, + { + "adcode": "450804", + "people_count_2010": 407547, + "lat": 23.132815, + "lng": 109.415697, + "name": "覃塘区", + "level": "district", + "parent": "贵港市" + }, + { + "adcode": "350524", + "people_count_2010": 977435, + "lat": 25.056824, + "lng": 118.186014, + "name": "安溪县", + "level": "district", + "parent": "泉州市" + }, + { + "adcode": "341722", + "people_count_2010": 92238, + "lat": 30.210324, + "lng": 117.482907, + "name": "石台县", + "level": "district", + "parent": "池州市" + }, + { + "adcode": "511502", + "people_count_2010": 836340, + "lat": 28.760179, + "lng": 104.630231, + "name": "翠屏区", + "level": "district", + "parent": "宜宾市" + }, + { + "adcode": "150207", + "people_count_2010": 195831, + "lat": 40.600581, + "lng": 109.968122, + "name": "九原区", + "level": "district", + "parent": "包头市" + }, + { + "adcode": "150303", + "people_count_2010": 103355, + "lat": 39.44153, + "lng": 106.884789, + "name": "海南区", + "level": "district", + "parent": "乌海市" + }, + { + "adcode": "130602", + "people_count_2010": 730307, + "lat": 38.88662, + "lng": 115.470659, + "name": "竞秀区", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "370826", + "people_count_2010": null, + "lat": 34.809525, + "lng": 117.12861, + "name": "微山县", + "level": "district", + "parent": "济宁市" + }, + { + "adcode": "210904", + "people_count_2010": 166044, + "lat": 42.011145, + "lng": 121.677575, + "name": "太平区", + "level": "district", + "parent": "阜新市" + }, + { + "adcode": "632223", + "people_count_2010": 37788, + "lat": 36.959542, + "lng": 100.90049, + "name": "海晏县", + "level": "district", + "parent": "海北藏族自治州" + }, + { + "adcode": "820002", + "people_count_2010": null, + "lat": 22.199175, + "lng": 113.549052, + "name": "花王堂區", + "level": "district", + "parent": "澳門特別行政區" + }, + { + "adcode": "110111", + "people_count_2010": 1000000, + "lat": 39.735535, + "lng": 116.139157, + "name": "房山区", + "level": "district", + "parent": "北京市市辖区" + }, + { + "adcode": "653129", + "people_count_2010": 381767, + "lat": 39.494325, + "lng": 76.741982, + "name": "伽师县", + "level": "district", + "parent": "喀什地区" + }, + { + "adcode": "610821", + "people_count_2010": 455493, + "lat": 38.835641, + "lng": 110.497005, + "name": "神木县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "130607", + "people_count_2010": null, + "lat": 38.95138, + "lng": 115.32442, + "name": "满城区", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "230402", + "people_count_2010": 233855, + "lat": 47.345372, + "lng": 130.292478, + "name": "向阳区", + "level": "district", + "parent": "鹤岗市" + }, + { + "adcode": "410602", + "people_count_2010": 131421, + "lat": 35.936128, + "lng": 114.166551, + "name": "鹤山区", + "level": "district", + "parent": "鹤壁市" + }, + { + "adcode": "150204", + "people_count_2010": 600284, + "lat": 40.668558, + "lng": 109.880049, + "name": "青山区", + "level": "district", + "parent": "包头市" + }, + { + "adcode": "440512", + "people_count_2010": 267463, + "lat": 23.279345, + "lng": 116.729528, + "name": "濠江区", + "level": "district", + "parent": "汕头市" + }, + { + "adcode": "150302", + "people_count_2010": 296177, + "lat": 39.673527, + "lng": 106.817762, + "name": "海勃湾区", + "level": "district", + "parent": "乌海市" + }, + { + "adcode": "430726", + "people_count_2010": 599287, + "lat": 29.584703, + "lng": 111.379087, + "name": "石门县", + "level": "district", + "parent": "常德市" + }, + { + "adcode": "340405", + "people_count_2010": 175993, + "lat": 32.628229, + "lng": 116.841111, + "name": "八公山区", + "level": "district", + "parent": "淮南市" + }, + { + "adcode": "421083", + "people_count_2010": 819446, + "lat": 29.81297, + "lng": 113.470304, + "name": "洪湖市", + "level": "district", + "parent": "荆州市" + }, + { + "adcode": "341881", + "people_count_2010": 376857, + "lat": 30.626529, + "lng": 118.983407, + "name": "宁国市", + "level": "district", + "parent": "宣城市" + }, + { + "adcode": "421022", + "people_count_2010": 881128, + "lat": 30.059065, + "lng": 112.230179, + "name": "公安县", + "level": "district", + "parent": "荆州市" + }, + { + "adcode": "420111", + "people_count_2010": 1400000, + "lat": 30.504259, + "lng": 114.400718, + "name": "洪山区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "420105", + "people_count_2010": 584098, + "lat": 30.549326, + "lng": 114.265807, + "name": "汉阳区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "150502", + "people_count_2010": 898895, + "lat": 43.617422, + "lng": 122.264042, + "name": "科尔沁区", + "level": "district", + "parent": "通辽市" + }, + { + "adcode": "371402", + "people_count_2010": 679535, + "lat": 37.453923, + "lng": 116.307076, + "name": "德城区", + "level": "district", + "parent": "德州市" + }, + { + "adcode": "510821", + "people_count_2010": 385787, + "lat": 32.22833, + "lng": 106.290426, + "name": "旺苍县", + "level": "district", + "parent": "广元市" + }, + { + "adcode": "620111", + "people_count_2010": 136101, + "lat": 36.344177, + "lng": 102.861814, + "name": "红古区", + "level": "district", + "parent": "兰州市" + }, + { + "adcode": "140203", + "people_count_2010": 500155, + "lat": 40.03626, + "lng": 113.168656, + "name": "矿区", + "level": "district", + "parent": "大同市" + }, + { + "adcode": "220382", + "people_count_2010": 420720, + "lat": 43.518275, + "lng": 123.505283, + "name": "双辽市", + "level": "district", + "parent": "四平市" + }, + { + "adcode": "450602", + "people_count_2010": 155236, + "lat": 21.614406, + "lng": 108.346281, + "name": "港口区", + "level": "district", + "parent": "防城港市" + }, + { + "adcode": "331022", + "people_count_2010": 328887, + "lat": 29.118955, + "lng": 121.376429, + "name": "三门县", + "level": "district", + "parent": "台州市" + }, + { + "adcode": "331024", + "people_count_2010": 342676, + "lat": 28.849213, + "lng": 120.735074, + "name": "仙居县", + "level": "district", + "parent": "台州市" + }, + { + "adcode": "331003", + "people_count_2010": 632123, + "lat": 28.64488, + "lng": 121.262138, + "name": "黄岩区", + "level": "district", + "parent": "台州市" + }, + { + "adcode": "511321", + "people_count_2010": 929923, + "lat": 31.349407, + "lng": 106.061138, + "name": "南部县", + "level": "district", + "parent": "南充市" + }, + { + "adcode": "654326", + "people_count_2010": 35365, + "lat": 47.434633, + "lng": 85.876064, + "name": "吉木乃县", + "level": "district", + "parent": "阿勒泰地区" + }, + { + "adcode": "440811", + "people_count_2010": null, + "lat": 21.265997, + "lng": 110.329167, + "name": "麻章区", + "level": "district", + "parent": "湛江市" + }, + { + "adcode": "532822", + "people_count_2010": 331850, + "lat": 21.955866, + "lng": 100.448288, + "name": "勐海县", + "level": "district", + "parent": "西双版纳傣族自治州" + }, + { + "adcode": "371326", + "people_count_2010": 900167, + "lat": 35.511519, + "lng": 117.631884, + "name": "平邑县", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "360426", + "people_count_2010": 222322, + "lat": 29.327474, + "lng": 115.762611, + "name": "德安县", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "371328", + "people_count_2010": 489537, + "lat": 35.712435, + "lng": 117.943271, + "name": "蒙阴县", + "level": "district", + "parent": "临沂市" + }, + { + "adcode": "320202", + "people_count_2010": 229003, + "lat": 31.574705, + "lng": 120.301627, + "name": "崇安区", + "level": "district", + "parent": "无锡市" + }, + { + "adcode": "130128", + "people_count_2010": 250264, + "lat": 38.18454, + "lng": 115.200207, + "name": "深泽县", + "level": "district", + "parent": "石家庄市" + }, + { + "adcode": "652701", + "people_count_2010": 235585, + "lat": 44.903087, + "lng": 82.072237, + "name": "博乐市", + "level": "district", + "parent": "博尔塔拉蒙古自治州" + }, + { + "adcode": "210811", + "people_count_2010": 125454, + "lat": 40.682723, + "lng": 122.382584, + "name": "老边区", + "level": "district", + "parent": "营口市" + }, + { + "adcode": "222404", + "people_count_2010": 241777, + "lat": 42.871057, + "lng": 130.365787, + "name": "珲春市", + "level": "district", + "parent": "延边朝鲜族自治州" + }, + { + "adcode": "451302", + "people_count_2010": 910282, + "lat": 23.732926, + "lng": 109.230541, + "name": "兴宾区", + "level": "district", + "parent": "来宾市" + }, + { + "adcode": "610103", + "people_count_2010": 614710, + "lat": 34.251061, + "lng": 108.946994, + "name": "碑林区", + "level": "district", + "parent": "西安市" + }, + { + "adcode": "320117", + "people_count_2010": null, + "lat": 31.653061, + "lng": 119.028732, + "name": "溧水区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "131182", + "people_count_2010": 36000000, + "lat": 38.00347, + "lng": 115.554596, + "name": "深州市", + "level": "district", + "parent": "衡水市" + }, + { + "adcode": "621125", + "people_count_2010": 192957, + "lat": 34.848642, + "lng": 104.466756, + "name": "漳县", + "level": "district", + "parent": "定西市" + }, + { + "adcode": "621126", + "people_count_2010": 450654, + "lat": 34.439105, + "lng": 104.039882, + "name": "岷县", + "level": "district", + "parent": "定西市" + }, + { + "adcode": "210114", + "people_count_2010": 670843, + "lat": 41.795833, + "lng": 123.310829, + "name": "于洪区", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "422827", + "people_count_2010": 242870, + "lat": 29.506945, + "lng": 109.408328, + "name": "来凤县", + "level": "district", + "parent": "恩施土家族苗族自治州" + }, + { + "adcode": "220103", + "people_count_2010": 680631, + "lat": 43.903823, + "lng": 125.342828, + "name": "宽城区", + "level": "district", + "parent": "长春市" + }, + { + "adcode": "150925", + "people_count_2010": 185954, + "lat": 40.531627, + "lng": 112.500911, + "name": "凉城县", + "level": "district", + "parent": "乌兰察布市" + }, + { + "adcode": "620523", + "people_count_2010": 559713, + "lat": 34.747327, + "lng": 105.332347, + "name": "甘谷县", + "level": "district", + "parent": "天水市" + }, + { + "adcode": "620503", + "people_count_2010": 553268, + "lat": 34.563504, + "lng": 105.897631, + "name": "麦积区", + "level": "district", + "parent": "天水市" + }, + { + "adcode": "430112", + "people_count_2010": null, + "lat": 28.347458, + "lng": 112.819549, + "name": "望城区", + "level": "district", + "parent": "长沙市" + }, + { + "adcode": "222402", + "people_count_2010": 134452, + "lat": 42.966621, + "lng": 129.846701, + "name": "图们市", + "level": "district", + "parent": "延边朝鲜族自治州" + }, + { + "adcode": "140823", + "people_count_2010": 404150, + "lat": 35.353839, + "lng": 111.220306, + "name": "闻喜县", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "610222", + "people_count_2010": 91160, + "lat": 35.398766, + "lng": 109.118278, + "name": "宜君县", + "level": "district", + "parent": "铜川市" + }, + { + "adcode": "360202", + "people_count_2010": 192203, + "lat": 29.288465, + "lng": 117.195023, + "name": "昌江区", + "level": "district", + "parent": "景德镇市" + }, + { + "adcode": "410204", + "people_count_2010": null, + "lat": 34.792383, + "lng": 114.3485, + "name": "鼓楼区", + "level": "district", + "parent": "开封市" + }, + { + "adcode": "140802", + "people_count_2010": 680036, + "lat": 35.025643, + "lng": 111.000627, + "name": "盐湖区", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "140825", + "people_count_2010": 332473, + "lat": 35.613697, + "lng": 111.225205, + "name": "新绛县", + "level": "district", + "parent": "运城市" + }, + { + "adcode": "140602", + "people_count_2010": 505294, + "lat": 39.324525, + "lng": 112.428676, + "name": "朔城区", + "level": "district", + "parent": "朔州市" + }, + { + "adcode": "141121", + "people_count_2010": 421199, + "lat": 37.436314, + "lng": 112.032595, + "name": "文水县", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "522702", + "people_count_2010": 283904, + "lat": 26.702508, + "lng": 107.513508, + "name": "福泉市", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "130623", + "people_count_2010": 339063, + "lat": 39.393148, + "lng": 115.711985, + "name": "涞水县", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "430781", + "people_count_2010": 250898, + "lat": 29.630867, + "lng": 111.879609, + "name": "津市市", + "level": "district", + "parent": "常德市" + }, + { + "adcode": "330922", + "people_count_2010": 76108, + "lat": 30.727166, + "lng": 122.457809, + "name": "嵊泗县", + "level": "district", + "parent": "舟山市" + }, + { + "adcode": "632724", + "people_count_2010": 30037, + "lat": 33.852322, + "lng": 95.616843, + "name": "治多县", + "level": "district", + "parent": "玉树藏族自治州" + }, + { + "adcode": "130606", + "people_count_2010": null, + "lat": 38.865005, + "lng": 115.500934, + "name": "莲池区", + "level": "district", + "parent": "保定市" + }, + { + "adcode": "141027", + "people_count_2010": 127831, + "lat": 35.971359, + "lng": 111.850039, + "name": "浮山县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "141033", + "people_count_2010": 107339, + "lat": 36.411682, + "lng": 111.09733, + "name": "蒲县", + "level": "district", + "parent": "临汾市" + }, + { + "adcode": "440222", + "people_count_2010": 205452, + "lat": 24.948364, + "lng": 114.067205, + "name": "始兴县", + "level": "district", + "parent": "韶关市" + }, + { + "adcode": "340803", + "people_count_2010": 275003, + "lat": 30.505632, + "lng": 117.034512, + "name": "大观区", + "level": "district", + "parent": "安庆市" + }, + { + "adcode": "222426", + "people_count_2010": 225987, + "lat": 43.110994, + "lng": 128.901865, + "name": "安图县", + "level": "district", + "parent": "延边朝鲜族自治州" + }, + { + "adcode": "410403", + "people_count_2010": 302603, + "lat": 33.739285, + "lng": 113.310327, + "name": "卫东区", + "level": "district", + "parent": "平顶山市" + }, + { + "adcode": "420102", + "people_count_2010": 895957, + "lat": 30.594911, + "lng": 114.30304, + "name": "江岸区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "810014", + "people_count_2010": null, + "lat": 22.44573, + "lng": 114.171713, + "name": "大埔區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "350725", + "people_count_2010": 171715, + "lat": 27.365398, + "lng": 118.858661, + "name": "政和县", + "level": "district", + "parent": "南平市" + }, + { + "adcode": "542425", + "people_count_2010": 37802, + "lat": 32.260299, + "lng": 91.681879, + "name": "安多县", + "level": "district", + "parent": "那曲地区" + }, + { + "adcode": "420114", + "people_count_2010": 618994, + "lat": 30.582186, + "lng": 114.029341, + "name": "蔡甸区", + "level": "district", + "parent": "武汉市" + }, + { + "adcode": "420204", + "people_count_2010": 176614, + "lat": 30.177845, + "lng": 114.975755, + "name": "下陆区", + "level": "district", + "parent": "黄石市" + }, + { + "adcode": "350603", + "people_count_2010": 167463, + "lat": 24.515656, + "lng": 117.671387, + "name": "龙文区", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "230702", + "people_count_2010": 145954, + "lat": 47.726851, + "lng": 128.899284, + "name": "伊春区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "350622", + "people_count_2010": 415835, + "lat": 23.950486, + "lng": 117.340946, + "name": "云霄县", + "level": "district", + "parent": "漳州市" + }, + { + "adcode": "230704", + "people_count_2010": 53493, + "lat": 47.854303, + "lng": 128.838961, + "name": "友好区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "230707", + "people_count_2010": 43061, + "lat": 48.288292, + "lng": 129.52995, + "name": "新青区", + "level": "district", + "parent": "伊春市" + }, + { + "adcode": "350802", + "people_count_2010": 662429, + "lat": 25.0918, + "lng": 117.030721, + "name": "新罗区", + "level": "district", + "parent": "龙岩市" + }, + { + "adcode": "350824", + "people_count_2010": 278182, + "lat": 25.08865, + "lng": 116.100928, + "name": "武平县", + "level": "district", + "parent": "龙岩市" + }, + { + "adcode": "445103", + "people_count_2010": null, + "lat": 23.461012, + "lng": 116.67931, + "name": "潮安区", + "level": "district", + "parent": "潮州市" + }, + { + "adcode": "630102", + "people_count_2010": 359688, + "lat": 36.616043, + "lng": 101.796095, + "name": "城东区", + "level": "district", + "parent": "西宁市" + }, + { + "adcode": "810007", + "people_count_2010": null, + "lat": 22.312373, + "lng": 114.193047, + "name": "九龍城區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "540126", + "people_count_2010": 26708, + "lat": 29.670314, + "lng": 91.350976, + "name": "达孜县", + "level": "district", + "parent": "拉萨市" + }, + { + "adcode": "610802", + "people_count_2010": 637617, + "lat": 38.299267, + "lng": 109.74791, + "name": "榆阳区", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "220681", + "people_count_2010": 174970, + "lat": 41.810689, + "lng": 126.919296, + "name": "临江市", + "level": "district", + "parent": "白山市" + }, + { + "adcode": "610823", + "people_count_2010": 288053, + "lat": 37.964048, + "lng": 109.292596, + "name": "横山县", + "level": "district", + "parent": "榆林市" + }, + { + "adcode": "230604", + "people_count_2010": 564534, + "lat": 46.653254, + "lng": 124.868341, + "name": "让胡路区", + "level": "district", + "parent": "大庆市" + }, + { + "adcode": "210803", + "people_count_2010": 164873, + "lat": 40.663086, + "lng": 122.210067, + "name": "西市区", + "level": "district", + "parent": "营口市" + }, + { + "adcode": "130524", + "people_count_2010": 190225, + "lat": 37.483596, + "lng": 114.693382, + "name": "柏乡县", + "level": "district", + "parent": "邢台市" + }, + { + "adcode": "410505", + "people_count_2010": 243874, + "lat": 36.108974, + "lng": 114.300098, + "name": "殷都区", + "level": "district", + "parent": "安阳市" + }, + { + "adcode": "230623", + "people_count_2010": 712254, + "lat": 47.186411, + "lng": 124.877742, + "name": "林甸县", + "level": "district", + "parent": "大庆市" + }, + { + "adcode": "411481", + "people_count_2010": 1200000, + "lat": 33.931318, + "lng": 116.449672, + "name": "永城市", + "level": "district", + "parent": "商丘市" + }, + { + "adcode": "650204", + "people_count_2010": 50422, + "lat": 45.689021, + "lng": 85.129882, + "name": "白碱滩区", + "level": "district", + "parent": "克拉玛依市" + }, + { + "adcode": "500151", + "people_count_2010": null, + "lat": 29.839944, + "lng": 106.054948, + "name": "铜梁区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "440703", + "people_count_2010": 719146, + "lat": 22.59677, + "lng": 113.07859, + "name": "蓬江区", + "level": "district", + "parent": "江门市" + }, + { + "adcode": "440111", + "people_count_2010": 2200000, + "lat": 23.162281, + "lng": 113.262831, + "name": "白云区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "512021", + "people_count_2010": 1100000, + "lat": 30.099206, + "lng": 105.336764, + "name": "安岳县", + "level": "district", + "parent": "资阳市" + }, + { + "adcode": "650421", + "people_count_2010": null, + "lat": 42.865503, + "lng": 90.212692, + "name": "鄯善县", + "level": "district", + "parent": "吐鲁番市" + }, + { + "adcode": "500238", + "people_count_2010": 1200000, + "lat": 31.3966, + "lng": 109.628912, + "name": "巫溪县", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "340721", + "people_count_2010": 249595, + "lat": 30.952338, + "lng": 117.792288, + "name": "铜陵县", + "level": "district", + "parent": "铜陵市" + }, + { + "adcode": "533325", + "people_count_2010": null, + "lat": 26.453839, + "lng": 99.421378, + "name": "兰坪白族普米族自治县", + "level": "district", + "parent": "怒江傈僳族自治州" + }, + { + "adcode": "511527", + "people_count_2010": 329053, + "lat": 28.162017, + "lng": 104.507848, + "name": "筠连县", + "level": "district", + "parent": "宜宾市" + }, + { + "adcode": "500103", + "people_count_2010": 630090, + "lat": 29.556742, + "lng": 106.56288, + "name": "渝中区", + "level": "district", + "parent": "重庆市市辖区" + }, + { + "adcode": "650205", + "people_count_2010": 9780, + "lat": 46.08776, + "lng": 85.697767, + "name": "乌尔禾区", + "level": "district", + "parent": "克拉玛依市" + }, + { + "adcode": "220581", + "people_count_2010": 615154, + "lat": 42.530002, + "lng": 125.687336, + "name": "梅河口市", + "level": "district", + "parent": "通化市" + }, + { + "adcode": "410202", + "people_count_2010": 592376, + "lat": 34.799833, + "lng": 114.353348, + "name": "龙亭区", + "level": "district", + "parent": "开封市" + }, + { + "adcode": "340207", + "people_count_2010": 319820, + "lat": 31.362716, + "lng": 118.400174, + "name": "鸠江区", + "level": "district", + "parent": "芜湖市" + }, + { + "adcode": "513325", + "people_count_2010": 50225, + "lat": 30.03225, + "lng": 101.015735, + "name": "雅江县", + "level": "district", + "parent": "甘孜藏族自治州" + }, + { + "adcode": "652926", + "people_count_2010": 229252, + "lat": 41.796101, + "lng": 81.869881, + "name": "拜城县", + "level": "district", + "parent": "阿克苏地区" + }, + { + "adcode": "652929", + "people_count_2010": 569831, + "lat": 40.50624, + "lng": 79.04785, + "name": "柯坪县", + "level": "district", + "parent": "阿克苏地区" + }, + { + "adcode": "450881", + "people_count_2010": 1500000, + "lat": 23.382473, + "lng": 110.074668, + "name": "桂平市", + "level": "district", + "parent": "贵港市" + }, + { + "adcode": "431321", + "people_count_2010": 854069, + "lat": 27.459126, + "lng": 112.198245, + "name": "双峰县", + "level": "district", + "parent": "娄底市" + }, + { + "adcode": "370281", + "people_count_2010": 843054, + "lat": 36.285878, + "lng": 120.006202, + "name": "胶州市", + "level": "district", + "parent": "青岛市" + }, + { + "adcode": "370211", + "people_count_2010": 524206, + "lat": 35.875138, + "lng": 119.995518, + "name": "黄岛区", + "level": "district", + "parent": "青岛市" + }, + { + "adcode": "370703", + "people_count_2010": 424106, + "lat": 36.772103, + "lng": 119.207866, + "name": "寒亭区", + "level": "district", + "parent": "潍坊市" + }, + { + "adcode": "522729", + "people_count_2010": 191129, + "lat": 26.022116, + "lng": 106.447376, + "name": "长顺县", + "level": "district", + "parent": "黔南布依族苗族自治州" + }, + { + "adcode": "371603", + "people_count_2010": null, + "lat": 37.698456, + "lng": 118.129902, + "name": "沾化区", + "level": "district", + "parent": "滨州市" + }, + { + "adcode": "370202", + "people_count_2010": 544847, + "lat": 36.070892, + "lng": 120.395966, + "name": "市南区", + "level": "district", + "parent": "青岛市" + }, + { + "adcode": "370213", + "people_count_2010": 512389, + "lat": 36.160023, + "lng": 120.421236, + "name": "李沧区", + "level": "district", + "parent": "青岛市" + }, + { + "adcode": "370305", + "people_count_2010": 642831, + "lat": 36.816657, + "lng": 118.306018, + "name": "临淄区", + "level": "district", + "parent": "淄博市" + }, + { + "adcode": "370285", + "people_count_2010": 750225, + "lat": 36.86509, + "lng": 120.526226, + "name": "莱西市", + "level": "district", + "parent": "青岛市" + }, + { + "adcode": "210102", + "people_count_2010": null, + "lat": 41.788074, + "lng": 123.406664, + "name": "和平区", + "level": "district", + "parent": "沈阳市" + }, + { + "adcode": "370214", + "people_count_2010": 737209, + "lat": 36.306833, + "lng": 120.389135, + "name": "城阳区", + "level": "district", + "parent": "青岛市" + }, + { + "adcode": "370203", + "people_count_2010": 558218, + "lat": 36.083819, + "lng": 120.355026, + "name": "市北区", + "level": "district", + "parent": "青岛市" + }, + { + "adcode": "542527", + "people_count_2010": 14626, + "lat": 31.016774, + "lng": 85.159254, + "name": "措勤县", + "level": "district", + "parent": "阿里地区" + }, + { + "adcode": "652925", + "people_count_2010": 172064, + "lat": 41.551176, + "lng": 82.610828, + "name": "新和县", + "level": "district", + "parent": "阿克苏地区" + }, + { + "adcode": "433127", + "people_count_2010": 429672, + "lat": 28.998068, + "lng": 109.853292, + "name": "永顺县", + "level": "district", + "parent": "湘西土家族苗族自治州" + }, + { + "adcode": "370282", + "people_count_2010": 1200000, + "lat": 36.390847, + "lng": 120.447352, + "name": "即墨市", + "level": "district", + "parent": "青岛市" + }, + { + "adcode": "130723", + "people_count_2010": 204975, + "lat": 41.850046, + "lng": 114.615809, + "name": "康保县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "623001", + "people_count_2010": 90290, + "lat": 34.985973, + "lng": 102.91149, + "name": "合作市", + "level": "district", + "parent": "甘南藏族自治州" + }, + { + "adcode": "130922", + "people_count_2010": 402137, + "lat": 38.569646, + "lng": 116.838384, + "name": "青县", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "130204", + "people_count_2010": 358461, + "lat": 39.715736, + "lng": 118.45429, + "name": "古冶区", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "623026", + "people_count_2010": 35630, + "lat": 34.589591, + "lng": 102.488495, + "name": "碌曲县", + "level": "district", + "parent": "甘南藏族自治州" + }, + { + "adcode": "820003", + "people_count_2010": null, + "lat": 22.193791, + "lng": 113.550252, + "name": "望德堂區", + "level": "district", + "parent": "澳門特別行政區" + }, + { + "adcode": "623025", + "people_count_2010": 54745, + "lat": 33.998068, + "lng": 102.075767, + "name": "玛曲县", + "level": "district", + "parent": "甘南藏族自治州" + }, + { + "adcode": "220122", + "people_count_2010": 960759, + "lat": 44.431258, + "lng": 125.175287, + "name": "农安县", + "level": "district", + "parent": "长春市" + }, + { + "adcode": "220113", + "people_count_2010": null, + "lat": 44.157155, + "lng": 125.844682, + "name": "九台区", + "level": "district", + "parent": "长春市" + }, + { + "adcode": "150822", + "people_count_2010": 117091, + "lat": 40.330479, + "lng": 107.006056, + "name": "磴口县", + "level": "district", + "parent": "巴彦淖尔市" + }, + { + "adcode": "150825", + "people_count_2010": 65207, + "lat": 41.084307, + "lng": 107.074941, + "name": "乌拉特后旗", + "level": "district", + "parent": "巴彦淖尔市" + }, + { + "adcode": "371525", + "people_count_2010": 764864, + "lat": 36.483753, + "lng": 115.444808, + "name": "冠县", + "level": "district", + "parent": "聊城市" + }, + { + "adcode": "130921", + "people_count_2010": 669019, + "lat": 38.219856, + "lng": 117.007478, + "name": "沧县", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "150123", + "people_count_2010": 169856, + "lat": 40.380288, + "lng": 111.824143, + "name": "和林格尔县", + "level": "district", + "parent": "呼和浩特市" + }, + { + "adcode": "331124", + "people_count_2010": 185051, + "lat": 28.449937, + "lng": 119.485292, + "name": "松阳县", + "level": "district", + "parent": "丽水市" + }, + { + "adcode": "371626", + "people_count_2010": 778777, + "lat": 36.87803, + "lng": 117.736807, + "name": "邹平县", + "level": "district", + "parent": "滨州市" + }, + { + "adcode": "130705", + "people_count_2010": 370569, + "lat": 40.609368, + "lng": 115.0632, + "name": "宣化区", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "150105", + "people_count_2010": 1300000, + "lat": 40.807834, + "lng": 111.698463, + "name": "赛罕区", + "level": "district", + "parent": "呼和浩特市" + }, + { + "adcode": "371621", + "people_count_2010": 602491, + "lat": 37.483876, + "lng": 117.508941, + "name": "惠民县", + "level": "district", + "parent": "滨州市" + }, + { + "adcode": "370303", + "people_count_2010": 929242, + "lat": 36.807049, + "lng": 118.053521, + "name": "张店区", + "level": "district", + "parent": "淄博市" + }, + { + "adcode": "450202", + "people_count_2010": 160217, + "lat": 24.312324, + "lng": 109.411749, + "name": "城中区", + "level": "district", + "parent": "柳州市" + }, + { + "adcode": "210212", + "people_count_2010": 324773, + "lat": 38.812043, + "lng": 121.26713, + "name": "旅顺口区", + "level": "district", + "parent": "大连市" + }, + { + "adcode": "530102", + "people_count_2010": 855521, + "lat": 25.042165, + "lng": 102.704412, + "name": "五华区", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "410105", + "people_count_2010": 1600000, + "lat": 34.775838, + "lng": 113.686037, + "name": "金水区", + "level": "district", + "parent": "郑州市" + }, + { + "adcode": "210211", + "people_count_2010": 1300000, + "lat": 38.975148, + "lng": 121.582614, + "name": "甘井子区", + "level": "district", + "parent": "大连市" + }, + { + "adcode": "530125", + "people_count_2010": 911835, + "lat": 24.918215, + "lng": 103.145989, + "name": "宜良县", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "530112", + "people_count_2010": 753813, + "lat": 25.02436, + "lng": 102.705904, + "name": "西山区", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "530113", + "people_count_2010": 271917, + "lat": 26.08349, + "lng": 103.182, + "name": "东川区", + "level": "district", + "parent": "昆明市" + }, + { + "adcode": "450222", + "people_count_2010": 353796, + "lat": 24.655121, + "lng": 109.245812, + "name": "柳城县", + "level": "district", + "parent": "柳州市" + }, + { + "adcode": "360481", + "people_count_2010": 419047, + "lat": 29.676599, + "lng": 115.669081, + "name": "瑞昌市", + "level": "district", + "parent": "九江市" + }, + { + "adcode": "310110", + "people_count_2010": 1300000, + "lat": 31.270755, + "lng": 121.522797, + "name": "杨浦区", + "level": "district", + "parent": "上海市市辖区" + }, + { + "adcode": "220302", + "people_count_2010": null, + "lat": 43.176263, + "lng": 124.360894, + "name": "铁西区", + "level": "district", + "parent": "四平市" + }, + { + "adcode": "620524", + "people_count_2010": 1000000, + "lat": 34.721955, + "lng": 104.891696, + "name": "武山县", + "level": "district", + "parent": "天水市" + }, + { + "adcode": "520424", + "people_count_2010": null, + "lat": 25.944248, + "lng": 105.618454, + "name": "关岭布依族苗族自治县", + "level": "district", + "parent": "安顺市" + }, + { + "adcode": "440106", + "people_count_2010": 1400000, + "lat": 23.13559, + "lng": 113.335367, + "name": "天河区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "530622", + "people_count_2010": 516349, + "lat": 26.9117, + "lng": 102.929284, + "name": "巧家县", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "440104", + "people_count_2010": 1200000, + "lat": 23.125624, + "lng": 113.280714, + "name": "越秀区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "530624", + "people_count_2010": 263225, + "lat": 27.747114, + "lng": 103.891608, + "name": "大关县", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "533103", + "people_count_2010": 389891, + "lat": 24.436699, + "lng": 98.577608, + "name": "芒市", + "level": "district", + "parent": "德宏傣族景颇族自治州" + }, + { + "adcode": "130724", + "people_count_2010": 174619, + "lat": 41.667419, + "lng": 115.684836, + "name": "沽源县", + "level": "district", + "parent": "张家口市" + }, + { + "adcode": "440112", + "people_count_2010": 457930, + "lat": 23.103239, + "lng": 113.450761, + "name": "黄埔区", + "level": "district", + "parent": "广州市" + }, + { + "adcode": "131003", + "people_count_2010": 500396, + "lat": 39.521931, + "lng": 116.713708, + "name": "广阳区", + "level": "district", + "parent": "廊坊市" + }, + { + "adcode": "533124", + "people_count_2010": 715917, + "lat": 24.184065, + "lng": 97.794441, + "name": "陇川县", + "level": "district", + "parent": "德宏傣族景颇族自治州" + }, + { + "adcode": "320402", + "people_count_2010": 513794, + "lat": 31.779632, + "lng": 119.963783, + "name": "天宁区", + "level": "district", + "parent": "常州市" + }, + { + "adcode": "320411", + "people_count_2010": 597144, + "lat": 31.824664, + "lng": 119.974654, + "name": "新北区", + "level": "district", + "parent": "常州市" + }, + { + "adcode": "540321", + "people_count_2010": null, + "lat": 31.499534, + "lng": 98.218351, + "name": "江达县", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "230111", + "people_count_2010": 764534, + "lat": 45.98423, + "lng": 126.603302, + "name": "呼兰区", + "level": "district", + "parent": "哈尔滨市" + }, + { + "adcode": "620622", + "people_count_2010": 738306, + "lat": 37.470571, + "lng": 102.898047, + "name": "古浪县", + "level": "district", + "parent": "武威市" + }, + { + "adcode": "350102", + "people_count_2010": null, + "lat": 26.082284, + "lng": 119.29929, + "name": "鼓楼区", + "level": "district", + "parent": "福州市" + }, + { + "adcode": "441204", + "people_count_2010": null, + "lat": 23.027694, + "lng": 112.460846, + "name": "高要区", + "level": "district", + "parent": "肇庆市" + }, + { + "adcode": "230208", + "people_count_2010": 165852, + "lat": 47.311113, + "lng": 123.754599, + "name": "梅里斯达斡尔族区", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "130923", + "people_count_2010": 356502, + "lat": 37.88655, + "lng": 116.542062, + "name": "东光县", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "320106", + "people_count_2010": 826074, + "lat": 32.066966, + "lng": 118.769739, + "name": "鼓楼区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "441302", + "people_count_2010": 1600000, + "lat": 23.079883, + "lng": 114.413978, + "name": "惠城区", + "level": "district", + "parent": "惠州市" + }, + { + "adcode": "320481", + "people_count_2010": 749522, + "lat": 31.427081, + "lng": 119.487816, + "name": "溧阳市", + "level": "district", + "parent": "常州市" + }, + { + "adcode": "440282", + "people_count_2010": 316179, + "lat": 25.115328, + "lng": 114.311231, + "name": "南雄市", + "level": "district", + "parent": "韶关市" + }, + { + "adcode": "210323", + "people_count_2010": null, + "lat": 40.281509, + "lng": 123.28833, + "name": "岫岩满族自治县", + "level": "district", + "parent": "鞍山市" + }, + { + "adcode": "441322", + "people_count_2010": 1000000, + "lat": 23.167575, + "lng": 114.284254, + "name": "博罗县", + "level": "district", + "parent": "惠州市" + }, + { + "adcode": "330106", + "people_count_2010": 503821, + "lat": 30.272934, + "lng": 120.147376, + "name": "西湖区", + "level": "district", + "parent": "杭州市" + }, + { + "adcode": "320324", + "people_count_2010": 1000000, + "lat": 33.899222, + "lng": 117.95066, + "name": "睢宁县", + "level": "district", + "parent": "徐州市" + }, + { + "adcode": "430623", + "people_count_2010": 708898, + "lat": 29.524107, + "lng": 112.559369, + "name": "华容县", + "level": "district", + "parent": "岳阳市" + }, + { + "adcode": "130924", + "people_count_2010": 201538, + "lat": 38.141582, + "lng": 117.496606, + "name": "海兴县", + "level": "district", + "parent": "沧州市" + }, + { + "adcode": "622923", + "people_count_2010": 180161, + "lat": 35.938933, + "lng": 103.319871, + "name": "永靖县", + "level": "district", + "parent": "临夏回族自治州" + }, + { + "adcode": "622901", + "people_count_2010": 274466, + "lat": 35.59941, + "lng": 103.211634, + "name": "临夏市", + "level": "district", + "parent": "临夏回族自治州" + }, + { + "adcode": "210381", + "people_count_2010": 1300000, + "lat": 40.852533, + "lng": 122.752199, + "name": "海城市", + "level": "district", + "parent": "鞍山市" + }, + { + "adcode": "320804", + "people_count_2010": 789747, + "lat": 33.622452, + "lng": 119.020817, + "name": "淮阴区", + "level": "district", + "parent": "淮安市" + }, + { + "adcode": "820007", + "people_count_2010": null, + "lat": 22.136546, + "lng": 113.56925, + "name": "路氹填海區", + "level": "district", + "parent": "澳門特別行政區" + }, + { + "adcode": "130207", + "people_count_2010": 595467, + "lat": 39.56303, + "lng": 118.110793, + "name": "丰南区", + "level": "district", + "parent": "唐山市" + }, + { + "adcode": "131082", + "people_count_2010": 652042, + "lat": 39.982778, + "lng": 117.077018, + "name": "三河市", + "level": "district", + "parent": "廊坊市" + }, + { + "adcode": "330902", + "people_count_2010": 464184, + "lat": 30.016423, + "lng": 122.108496, + "name": "定海区", + "level": "district", + "parent": "舟山市" + }, + { + "adcode": "542524", + "people_count_2010": 9738, + "lat": 33.382454, + "lng": 79.731937, + "name": "日土县", + "level": "district", + "parent": "阿里地区" + }, + { + "adcode": "420502", + "people_count_2010": 512074, + "lat": 30.702476, + "lng": 111.295468, + "name": "西陵区", + "level": "district", + "parent": "宜昌市" + }, + { + "adcode": "522325", + "people_count_2010": 303883, + "lat": 25.385752, + "lng": 105.650133, + "name": "贞丰县", + "level": "district", + "parent": "黔西南布依族苗族自治州" + }, + { + "adcode": "520221", + "people_count_2010": 704615, + "lat": 26.540478, + "lng": 104.95685, + "name": "水城县", + "level": "district", + "parent": "六盘水市" + }, + { + "adcode": "522327", + "people_count_2010": 190413, + "lat": 24.983338, + "lng": 105.81241, + "name": "册亨县", + "level": "district", + "parent": "黔西南布依族苗族自治州" + }, + { + "adcode": "620982", + "people_count_2010": 186027, + "lat": 40.141119, + "lng": 94.664279, + "name": "敦煌市", + "level": "district", + "parent": "酒泉市" + }, + { + "adcode": "522622", + "people_count_2010": 263363, + "lat": 26.896973, + "lng": 107.901337, + "name": "黄平县", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "530381", + "people_count_2010": 1300000, + "lat": 26.227777, + "lng": 104.09554, + "name": "宣威市", + "level": "district", + "parent": "曲靖市" + }, + { + "adcode": "230229", + "people_count_2010": 403175, + "lat": 48.034342, + "lng": 125.874355, + "name": "克山县", + "level": "district", + "parent": "齐齐哈尔市" + }, + { + "adcode": "330903", + "people_count_2010": null, + "lat": 29.945614, + "lng": 122.301953, + "name": "普陀区", + "level": "district", + "parent": "舟山市" + }, + { + "adcode": "320116", + "people_count_2010": 915625, + "lat": 32.340655, + "lng": 118.85065, + "name": "六合区", + "level": "district", + "parent": "南京市" + }, + { + "adcode": "510522", + "people_count_2010": 709476, + "lat": 28.810325, + "lng": 105.834098, + "name": "合江县", + "level": "district", + "parent": "泸州市" + }, + { + "adcode": "370921", + "people_count_2010": 754647, + "lat": 35.76754, + "lng": 116.799297, + "name": "宁阳县", + "level": "district", + "parent": "泰安市" + }, + { + "adcode": "370983", + "people_count_2010": 946627, + "lat": 36.1856, + "lng": 116.763703, + "name": "肥城市", + "level": "district", + "parent": "泰安市" + }, + { + "adcode": "441427", + "people_count_2010": 205849, + "lat": 24.653313, + "lng": 116.170531, + "name": "蕉岭县", + "level": "district", + "parent": "梅州市" + }, + { + "adcode": "533401", + "people_count_2010": null, + "lat": 27.825804, + "lng": 99.708667, + "name": "香格里拉市", + "level": "district", + "parent": "迪庆藏族自治州" + }, + { + "adcode": "532923", + "people_count_2010": 455605, + "lat": 25.477072, + "lng": 100.554025, + "name": "祥云县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "542526", + "people_count_2010": 22177, + "lat": 32.302076, + "lng": 84.062384, + "name": "改则县", + "level": "district", + "parent": "阿里地区" + }, + { + "adcode": "532601", + "people_count_2010": null, + "lat": 23.369216, + "lng": 104.244277, + "name": "文山市", + "level": "district", + "parent": "文山壮族苗族自治州" + }, + { + "adcode": "522601", + "people_count_2010": 479011, + "lat": 26.582964, + "lng": 107.977541, + "name": "凯里市", + "level": "district", + "parent": "黔东南苗族侗族自治州" + }, + { + "adcode": "540325", + "people_count_2010": null, + "lat": 30.653038, + "lng": 97.565701, + "name": "察雅县", + "level": "district", + "parent": "昌都市" + }, + { + "adcode": "530723", + "people_count_2010": 8300000, + "lat": 26.628834, + "lng": 101.267796, + "name": "华坪县", + "level": "district", + "parent": "丽江市" + }, + { + "adcode": "532926", + "people_count_2010": null, + "lat": 25.041279, + "lng": 100.518683, + "name": "南涧彝族自治县", + "level": "district", + "parent": "大理白族自治州" + }, + { + "adcode": "810003", + "people_count_2010": null, + "lat": 22.279779, + "lng": 114.225965, + "name": "東區", + "level": "district", + "parent": "香港特別行政區" + }, + { + "adcode": "530828", + "people_count_2010": null, + "lat": 22.553083, + "lng": 99.931201, + "name": "澜沧拉祜族自治县", + "level": "district", + "parent": "普洱市" + }, + { + "adcode": "530924", + "people_count_2010": 4200000, + "lat": 23.761415, + "lng": 98.82743, + "name": "镇康县", + "level": "district", + "parent": "临沧市" + }, + { + "adcode": "341023", + "people_count_2010": 80722, + "lat": 29.923812, + "lng": 117.942911, + "name": "黟县", + "level": "district", + "parent": "黄山市" + }, + { + "adcode": "150624", + "people_count_2010": 148844, + "lat": 39.095752, + "lng": 107.982604, + "name": "鄂托克旗", + "level": "district", + "parent": "鄂尔多斯市" + }, + { + "adcode": "532322", + "people_count_2010": 159867, + "lat": 24.685094, + "lng": 101.63824, + "name": "双柏县", + "level": "district", + "parent": "楚雄彝族自治州" + }, + { + "adcode": "530325", + "people_count_2010": 722640, + "lat": 25.67064, + "lng": 104.25692, + "name": "富源县", + "level": "district", + "parent": "曲靖市" + }, + { + "adcode": "530302", + "people_count_2010": 740747, + "lat": 25.501269, + "lng": 103.798054, + "name": "麒麟区", + "level": "district", + "parent": "曲靖市" + }, + { + "adcode": "510115", + "people_count_2010": 457070, + "lat": 30.697996, + "lng": 103.836776, + "name": "温江区", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "510129", + "people_count_2010": 502199, + "lat": 30.586602, + "lng": 103.522397, + "name": "大邑县", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "510182", + "people_count_2010": 762887, + "lat": 30.985161, + "lng": 103.941173, + "name": "彭州市", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "211002", + "people_count_2010": 224352, + "lat": 41.26745, + "lng": 123.172611, + "name": "白塔区", + "level": "district", + "parent": "辽阳市" + }, + { + "adcode": "510321", + "people_count_2010": 590640, + "lat": 29.454851, + "lng": 104.423932, + "name": "荣县", + "level": "district", + "parent": "自贡市" + }, + { + "adcode": "510623", + "people_count_2010": 1200000, + "lat": 31.03681, + "lng": 104.677831, + "name": "中江县", + "level": "district", + "parent": "德阳市" + }, + { + "adcode": "510922", + "people_count_2010": 924531, + "lat": 30.868752, + "lng": 105.381849, + "name": "射洪县", + "level": "district", + "parent": "遂宁市" + }, + { + "adcode": "640105", + "people_count_2010": 329310, + "lat": 38.492424, + "lng": 106.132116, + "name": "西夏区", + "level": "district", + "parent": "银川市" + }, + { + "adcode": "640121", + "people_count_2010": 218260, + "lat": 38.28043, + "lng": 106.253781, + "name": "永宁县", + "level": "district", + "parent": "银川市" + }, + { + "adcode": "421081", + "people_count_2010": 577022, + "lat": 29.716437, + "lng": 112.40887, + "name": "石首市", + "level": "district", + "parent": "荆州市" + }, + { + "adcode": "510104", + "people_count_2010": 690422, + "lat": 30.657689, + "lng": 104.080989, + "name": "锦江区", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "510181", + "people_count_2010": 657996, + "lat": 30.99114, + "lng": 103.627898, + "name": "都江堰市", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "510183", + "people_count_2010": 612753, + "lat": 30.413271, + "lng": 103.46143, + "name": "邛崃市", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "510131", + "people_count_2010": 239562, + "lat": 30.194359, + "lng": 103.511541, + "name": "蒲江县", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "510124", + "people_count_2010": 896162, + "lat": 30.808752, + "lng": 103.887842, + "name": "郫县", + "level": "district", + "parent": "成都市" + }, + { + "adcode": "530923", + "people_count_2010": 369702, + "lat": 24.028159, + "lng": 99.253679, + "name": "永德县", + "level": "district", + "parent": "临沧市" + }, + { + "adcode": "533422", + "people_count_2010": 387799, + "lat": 28.483272, + "lng": 98.91506, + "name": "德钦县", + "level": "district", + "parent": "迪庆藏族自治州" + }, + { + "adcode": "530802", + "people_count_2010": null, + "lat": 22.776595, + "lng": 100.973227, + "name": "思茅区", + "level": "district", + "parent": "普洱市" + }, + { + "adcode": "530628", + "people_count_2010": 521838, + "lat": 27.627425, + "lng": 104.048492, + "name": "彝良县", + "level": "district", + "parent": "昭通市" + }, + { + "adcode": "610702", + "people_count_2010": 534923, + "lat": 33.077674, + "lng": 107.028233, + "name": "汉台区", + "level": "district", + "parent": "汉中市" + }, + { + "adcode": "621227", + "people_count_2010": 200294, + "lat": 33.767785, + "lng": 106.085632, + "name": "徽县", + "level": "district", + "parent": "陇南市" + }, + { + "adcode": "621224", + "people_count_2010": 180061, + "lat": 33.328266, + "lng": 105.609534, + "name": "康县", + "level": "district", + "parent": "陇南市" + }, + { + "adcode": "621221", + "people_count_2010": 242343, + "lat": 33.739863, + "lng": 105.734434, + "name": "成县", + "level": "district", + "parent": "陇南市" + }, + { + "adcode": "621228", + "people_count_2010": 2000000, + "lat": 33.910729, + "lng": 106.306959, + "name": "两当县", + "level": "district", + "parent": "陇南市" + }, + { + "adcode": "141128", + "people_count_2010": 143809, + "lat": 37.892632, + "lng": 111.238885, + "name": "方山县", + "level": "district", + "parent": "吕梁市" + }, + { + "adcode": "430202", + "people_count_2010": 309061, + "lat": 27.833036, + "lng": 113.162548, + "name": "荷塘区", + "level": "district", + "parent": "株洲市" + }, + { + "adcode": "440511", + "people_count_2010": 810284, + "lat": 23.367071, + "lng": 116.703583, + "name": "金平区", + "level": "district", + "parent": "汕头市" + }, + { + "adcode": "361121", + "people_count_2010": 700267, + "lat": 28.453897, + "lng": 117.90612, + "name": "上饶县", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "361126", + "people_count_2010": 353379, + "lat": 28.402391, + "lng": 117.435002, + "name": "弋阳县", + "level": "district", + "parent": "上饶市" + }, + { + "adcode": "410506", + "people_count_2010": 214456, + "lat": 36.095568, + "lng": 114.323522, + "name": "龙安区", + "level": "district", + "parent": "安阳市" + }, + { + "adcode": "130432", + "people_count_2010": 268993, + "lat": 36.483603, + "lng": 114.950859, + "name": "广平县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "610404", + "people_count_2010": 438327, + "lat": 34.336847, + "lng": 108.730957, + "name": "渭城区", + "level": "district", + "parent": "咸阳市" + }, + { + "adcode": "440515", + "people_count_2010": 800399, + "lat": 23.46844, + "lng": 116.76336, + "name": "澄海区", + "level": "district", + "parent": "汕头市" + }, + { + "adcode": "130430", + "people_count_2010": 227578, + "lat": 36.81325, + "lng": 115.168584, + "name": "邱县", + "level": "district", + "parent": "邯郸市" + }, + { + "adcode": "410482", + "people_count_2010": 927934, + "lat": 34.167408, + "lng": 112.845336, + "name": "汝州市", + "level": "district", + "parent": "平顶山市" + }, + { + "adcode": "513435", + "people_count_2010": 195100, + "lat": 28.977094, + "lng": 102.775924, + "name": "甘洛县", + "level": "district", + "parent": "凉山彝族自治州" + } + ], + "total": 2855 +} diff --git a/src/service/bin/province.json b/src/service/bin/province.json index f9e12f1..f93a697 100644 --- a/src/service/bin/province.json +++ b/src/service/bin/province.json @@ -1,311 +1,311 @@ -{ - "rows": [ - { - "adcode": "360000", - "people_count_2010": 43976312, - "lat": 28.676493, - "lng": 115.892151, - "name": "江西省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "410000", - "people_count_2010": 96486884, - "lat": 34.757975, - "lng": 113.665412, - "name": "河南省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "510000", - "people_count_2010": 85974759, - "lat": 30.659462, - "lng": 104.065735, - "name": "四川省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "500000", - "people_count_2010": 28458101, - "lat": 29.533155, - "lng": 106.504962, - "name": "重庆市", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "540000", - "people_count_2010": 2554907, - "lat": 29.660361, - "lng": 91.132212, - "name": "西藏自治区", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "520000", - "people_count_2010": 25119376, - "lat": 26.578343, - "lng": 106.713478, - "name": "贵州省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "210000", - "people_count_2010": 43149614, - "lat": 41.796767, - "lng": 123.429096, - "name": "辽宁省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "650000", - "people_count_2010": 29070614, - "lat": 43.792818, - "lng": 87.617733, - "name": "新疆维吾尔自治区", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "370000", - "people_count_2010": 94646230, - "lat": 36.675807, - "lng": 117.000923, - "name": "山东省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "310000", - "people_count_2010": 21135161, - "lat": 31.231706, - "lng": 121.472644, - "name": "上海市", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "820000", - "people_count_2010": null, - "lat": 22.198951, - "lng": 113.54909, - "name": "澳門特別行政區", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "140000", - "people_count_2010": 34364492, - "lat": 37.857014, - "lng": 112.549248, - "name": "山西省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "330000", - "people_count_2010": 53807755, - "lat": 30.287459, - "lng": 120.153576, - "name": "浙江省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "460000", - "people_count_2010": 42028870, - "lat": 20.031971, - "lng": 110.33119, - "name": "海南省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "350000", - "people_count_2010": 39026582, - "lat": 26.075302, - "lng": 119.306239, - "name": "福建省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "630000", - "people_count_2010": 5619543, - "lat": 36.623178, - "lng": 101.778916, - "name": "青海省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "640000", - "people_count_2010": 6466366, - "lat": 38.46637, - "lng": 106.278179, - "name": "宁夏回族自治区", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "420000", - "people_count_2010": 62160766, - "lat": 30.584355, - "lng": 114.298572, - "name": "湖北省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "620000", - "people_count_2010": 27957557, - "lat": 36.058039, - "lng": 103.823557, - "name": "甘肃省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "340000", - "people_count_2010": 57217014, - "lat": 31.86119, - "lng": 117.283042, - "name": "安徽省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "710000", - "people_count_2010": null, - "lat": 25.044332, - "lng": 121.509062, - "name": "台湾省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "610000", - "people_count_2010": 35876998, - "lat": 34.263161, - "lng": 108.948024, - "name": "陕西省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "450000", - "people_count_2010": 47082115, - "lat": 22.82402, - "lng": 108.320004, - "name": "广西壮族自治区", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "120000", - "people_count_2010": 15298136, - "lat": 39.125596, - "lng": 117.190182, - "name": "天津市", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "530000", - "people_count_2010": 72840959, - "lat": 25.040609, - "lng": 102.712251, - "name": "云南省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "230000", - "people_count_2010": 40734477, - "lat": 45.756967, - "lng": 126.642464, - "name": "黑龙江省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "440000", - "people_count_2010": 107131199, - "lat": 23.125178, - "lng": 113.280637, - "name": "广东省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "430000", - "people_count_2010": 67158313, - "lat": 28.19409, - "lng": 112.982279, - "name": "湖南省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "130000", - "people_count_2010": 106816280, - "lat": 38.045474, - "lng": 114.502461, - "name": "河北省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "150000", - "people_count_2010": 26353789, - "lat": 40.818311, - "lng": 111.670801, - "name": "内蒙古自治区", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "220000", - "people_count_2010": 26423220, - "lat": 43.886841, - "lng": 125.3245, - "name": "吉林省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "320000", - "people_count_2010": 79104628, - "lat": 32.041544, - "lng": 118.767413, - "name": "江苏省", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "110000", - "people_count_2010": 18934592, - "lat": 39.904989, - "lng": 116.405285, - "name": "北京市", - "level": "province", - "parent": "中华人民共和国" - }, - { - "adcode": "810000", - "people_count_2010": null, - "lat": 22.320048, - "lng": 114.173355, - "name": "香港特別行政區", - "level": "province", - "parent": "中华人民共和国" - } - ], - "total": 34 -} +{ + "rows": [ + { + "adcode": "360000", + "people_count_2010": 43976312, + "lat": 28.676493, + "lng": 115.892151, + "name": "江西省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "410000", + "people_count_2010": 96486884, + "lat": 34.757975, + "lng": 113.665412, + "name": "河南省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "510000", + "people_count_2010": 85974759, + "lat": 30.659462, + "lng": 104.065735, + "name": "四川省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "500000", + "people_count_2010": 28458101, + "lat": 29.533155, + "lng": 106.504962, + "name": "重庆市", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "540000", + "people_count_2010": 2554907, + "lat": 29.660361, + "lng": 91.132212, + "name": "西藏自治区", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "520000", + "people_count_2010": 25119376, + "lat": 26.578343, + "lng": 106.713478, + "name": "贵州省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "210000", + "people_count_2010": 43149614, + "lat": 41.796767, + "lng": 123.429096, + "name": "辽宁省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "650000", + "people_count_2010": 29070614, + "lat": 43.792818, + "lng": 87.617733, + "name": "新疆维吾尔自治区", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "370000", + "people_count_2010": 94646230, + "lat": 36.675807, + "lng": 117.000923, + "name": "山东省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "310000", + "people_count_2010": 21135161, + "lat": 31.231706, + "lng": 121.472644, + "name": "上海市", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "820000", + "people_count_2010": null, + "lat": 22.198951, + "lng": 113.54909, + "name": "澳門特別行政區", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "140000", + "people_count_2010": 34364492, + "lat": 37.857014, + "lng": 112.549248, + "name": "山西省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "330000", + "people_count_2010": 53807755, + "lat": 30.287459, + "lng": 120.153576, + "name": "浙江省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "460000", + "people_count_2010": 42028870, + "lat": 20.031971, + "lng": 110.33119, + "name": "海南省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "350000", + "people_count_2010": 39026582, + "lat": 26.075302, + "lng": 119.306239, + "name": "福建省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "630000", + "people_count_2010": 5619543, + "lat": 36.623178, + "lng": 101.778916, + "name": "青海省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "640000", + "people_count_2010": 6466366, + "lat": 38.46637, + "lng": 106.278179, + "name": "宁夏回族自治区", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "420000", + "people_count_2010": 62160766, + "lat": 30.584355, + "lng": 114.298572, + "name": "湖北省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "620000", + "people_count_2010": 27957557, + "lat": 36.058039, + "lng": 103.823557, + "name": "甘肃省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "340000", + "people_count_2010": 57217014, + "lat": 31.86119, + "lng": 117.283042, + "name": "安徽省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "710000", + "people_count_2010": null, + "lat": 25.044332, + "lng": 121.509062, + "name": "台湾省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "610000", + "people_count_2010": 35876998, + "lat": 34.263161, + "lng": 108.948024, + "name": "陕西省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "450000", + "people_count_2010": 47082115, + "lat": 22.82402, + "lng": 108.320004, + "name": "广西壮族自治区", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "120000", + "people_count_2010": 15298136, + "lat": 39.125596, + "lng": 117.190182, + "name": "天津市", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "530000", + "people_count_2010": 72840959, + "lat": 25.040609, + "lng": 102.712251, + "name": "云南省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "230000", + "people_count_2010": 40734477, + "lat": 45.756967, + "lng": 126.642464, + "name": "黑龙江省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "440000", + "people_count_2010": 107131199, + "lat": 23.125178, + "lng": 113.280637, + "name": "广东省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "430000", + "people_count_2010": 67158313, + "lat": 28.19409, + "lng": 112.982279, + "name": "湖南省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "130000", + "people_count_2010": 106816280, + "lat": 38.045474, + "lng": 114.502461, + "name": "河北省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "150000", + "people_count_2010": 26353789, + "lat": 40.818311, + "lng": 111.670801, + "name": "内蒙古自治区", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "220000", + "people_count_2010": 26423220, + "lat": 43.886841, + "lng": 125.3245, + "name": "吉林省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "320000", + "people_count_2010": 79104628, + "lat": 32.041544, + "lng": 118.767413, + "name": "江苏省", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "110000", + "people_count_2010": 18934592, + "lat": 39.904989, + "lng": 116.405285, + "name": "北京市", + "level": "province", + "parent": "中华人民共和国" + }, + { + "adcode": "810000", + "people_count_2010": null, + "lat": 22.320048, + "lng": 114.173355, + "name": "香港特別行政區", + "level": "province", + "parent": "中华人民共和国" + } + ], + "total": 34 +} diff --git a/src/service/bt/ApiService.php b/src/service/bt/ApiService.php index 858cc7f..94443a4 100644 --- a/src/service/bt/ApiService.php +++ b/src/service/bt/ApiService.php @@ -1,460 +1,460 @@ -key = $key; - return $this; - } - - /** - * @param string $panel - * @return $this - */ - public function panel(string $panel) - { - $this->panel = $panel; - return $this; - } - - /** - * 获取配置信息 - * @return $this - */ - private function getConfig(): self - { - $this->key = config('dtapp.bt.key'); - $this->panel = config('dtapp.bt.panel'); - return $this; - } - - /** - * 获取监控信息 - * @param string $type 类型 GetCpuIo = CPU信息/内存 GetDiskIo = 磁盘IO GetNetWorkIo = 网络IO - * @param int $start_time 开始时间 - * @param int $end_time 结束时间 - * @return mixed - */ - public function getCpuIoInfo($type = 'GetCpuIo', $start_time = 0, $end_time = 0) - { - if (empty($start_time)) { - $start_time = strtotime(date('Y-m-d')); - } - if (empty($end_time)) { - $end_time = time(); - } - $this->url = "/ajax?action={$type}&start={$start_time}&end={$end_time}"; - return $this; - } - - /** - * 获取网站列表 - * @return mixed - */ - public function getSites() - { - $this->url = "crontab?action=GetDataList"; - $this->where['type'] = 'sites'; - return $this; - } - - /** - * 获取数据库列表 - * @return mixed - */ - public function getDatabases() - { - $this->url = 'data?action=getData'; - $this->where['tojs'] = 'database.get_list'; - $this->where['table'] = 'databases'; - $this->where['limit'] = $this->limit; - $this->where['p'] = $this->page; - $this->where['order'] = $this->order; - return $this; - } - - /** - * 获取防火墙 - * @return mixed - */ - public function getFirewalls() - { - $this->url = 'data?action=getData'; - $this->where['tojs'] = 'firewall.get_list'; - $this->where['table'] = 'firewall'; - $this->where['limit'] = $this->limit; - $this->where['p'] = $this->page; - $this->where['order'] = $this->order; - return $this; - } - - /** - * 获取面板日志 - * @return mixed - */ - public function getLogs() - { - $this->url = 'data?action=getData'; - $this->where['tojs'] = 'firewall.get_log_list'; - $this->where['table'] = 'logs'; - $this->where['limit'] = $this->limit; - $this->where['p'] = $this->page; - $this->where['order'] = $this->order; - return $this; - } - - /** - * 获取消息通道 - * @return mixed - */ - public function getNews() - { - $this->url = 'config?action=get_settings'; - return $this; - } - - /** - * 获取网站列表 - * @return mixed - */ - public function getCronTabs() - { - $this->url = 'data?action=getData'; - $this->where['tojs'] = 'site.get_list'; - $this->where['table'] = 'sites'; - $this->where['limit'] = $this->limit; - $this->where['p'] = $this->page; - $this->where['order'] = $this->order; - return $this; - } - - /** - * 获取网站分类 - * @return mixed - */ - public function getTypes() - { - $this->url = 'site?action=get_site_types'; - return $this; - } - - /** - * 获取软件列表 - * @return mixed - */ - public function getSoFts() - { - $this->url = 'plugin?action=get_soft_list'; - $this->where['p'] = $this->page; - $this->where['tojs'] = 'soft.get_list'; - return $this; - } - - /** - * 获取硬盘信息 - * @return mixed - */ - public function getDiskInfo() - { - $this->url = 'system?action=GetDiskInfo'; - return $this; - } - - /** - * 获取信息系统 - * @return mixed - */ - public function getSystemTotal() - { - $this->url = 'system?action=GetSystemTotal'; - return $this; - } - - /** - * 获取用户信息 - * @return mixed - */ - public function getUserInfo() - { - $this->url = 'ssl?action=GetUserInfo'; - return $this; - } - - /** - * 获取网络信息 - * @return mixed - */ - public function getNetWork() - { - $this->url = 'system?action=GetNetWork'; - return $this; - } - - /** - * 获取插件信息 - * @return mixed - */ - public function getPlugin() - { - $this->url = 'plugin?action=get_index_list'; - return $this; - } - - /** - * 获取软件信息 - * @return mixed - */ - public function getSoft() - { - $this->url = 'plugin?action=get_soft_list'; - return $this; - } - - /** - * 获取更新信息 - * @return mixed - */ - public function getUpdatePanel() - { - $this->url = 'ajax?action=UpdatePanel'; - return $this; - } - - /** - * 当前页码 - * @param int $is - * @return $this - */ - public function page(int $is = 1): self - { - $this->page = $is; - return $this; - } - - /** - * 返回数量 - * @param int $is - * @return $this - */ - public function limit(int $is = 15): self - { - $this->limit = $is; - return $this; - } - - /** - * 排序 - * @param string $ss - * @return $this - */ - public function order(string $ss = 'id desc'): self - { - $this->order = $ss; - return $this; - } - - /** - * 查询条件 - * @param array $array - * @return ApiService - */ - public function where($array = []): ApiService - { - $this->where = $array; - return $this; - } - - /** - * 获取数据和总数 - * @return $this - */ - private function getDataWithOrderOpt(): self - { - $this->backtrack['data'] = $this->contents['data']; - $this->backtrack['orderOpt'] = $this->contents['orderOpt']; - return $this; - } - - /** - * 获取数据和总数 - * @return $this - */ - private function getDataWithCount(): self - { - if (empty($this->contents['data'])) { - $this->contents['data'] = []; - } - if (!is_array($this->contents['data'])) { - $this->contents['data'] = []; - } - $this->backtrack['data'] = $this->contents; - if (empty($this->contents['page'])) { - $this->contents['page'] = 0; - } - $this->backtrack['count'] = $this->getCountData($this->contents['page']); - return $this; - } - - /** - * 获取数据 - * @return $this - */ - private function getData() - { - $this->backtrack['data'] = $this->contents; - return $this; - } - - /** - * 发起网络请求 - * @return $this - * @throws DtaException - */ - private function getHttp(): self - { - //请求面板接口 - $this->contents = $this->HttpPostCookie($this->url, $this->where); - return $this; - } - - /** - * 返回Array - * @return array|mixed - * @throws DtaException - */ - public function toArray() - { - $this->getHttp(); - if ($this->where['type'] === 'sites') { - $this->getDataWithOrderOpt(); - } else { - $this->getDataWithCount(); - } - if (empty($this->backtrack)) { - return []; - } - if (is_array($this->backtrack)) { - return $this->backtrack; - } - return json_decode($this->backtrack, true); - } - - /** - * 发起POST请求 - * @param string $url 网址 - * @param array $data 数据 - * @param bool $is_json 是否返回Json格式 - * @return bool|mixed|string - * @throws DtaException - */ - protected function HttpPostCookie(string $url, array $data = [], bool $is_json = true) - { - if (empty($this->panel)) { - $this->getConfig(); - } - if (empty($this->panel)) { - throw new DtaException('请检查panel参数'); - } - //定义cookie保存位置 - $file = app()->getRootPath() . 'runtime/dtapp/bt/cookie/'; - $cookie_file = $file . md5($this->panel) . '.cookie'; - if (empty(Files::judgeContents($file)) && !mkdir($file, 0777, true) && !is_dir($file)) { - throw new \RuntimeException(sprintf('Directory "%s" was not created', $file)); - } - if (!file_exists($cookie_file)) { - $fp = fopen($cookie_file, 'wb+'); - fclose($fp); - } - if (empty($this->key)) { - $this->getConfig(); - } - if (empty($this->key)) { - throw new DtaException('请检查key参数'); - } - return BtService::instance() - ->panel($this->panel) - ->key($this->key) - ->url($url) - ->cookie($cookie_file) - ->data($data) - ->toArray($is_json); - } - - /** - * 获取总数 - * @param string $str - * @return false|int|string - */ - protected function getCountData(string $str) - { - $start = strpos($str, "共"); - $end = strpos($str, "条数据"); - $count = substr($str, $start + 3, $end - $start - 3); - if (empty($count)) { - return 0; - } - return $count; - } -} +key = $key; + return $this; + } + + /** + * @param string $panel + * @return $this + */ + public function panel(string $panel) + { + $this->panel = $panel; + return $this; + } + + /** + * 获取配置信息 + * @return $this + */ + private function getConfig(): self + { + $this->key = config('dtapp.bt.key'); + $this->panel = config('dtapp.bt.panel'); + return $this; + } + + /** + * 获取监控信息 + * @param string $type 类型 GetCpuIo = CPU信息/内存 GetDiskIo = 磁盘IO GetNetWorkIo = 网络IO + * @param int $start_time 开始时间 + * @param int $end_time 结束时间 + * @return mixed + */ + public function getCpuIoInfo($type = 'GetCpuIo', $start_time = 0, $end_time = 0) + { + if (empty($start_time)) { + $start_time = strtotime(date('Y-m-d')); + } + if (empty($end_time)) { + $end_time = time(); + } + $this->url = "/ajax?action={$type}&start={$start_time}&end={$end_time}"; + return $this; + } + + /** + * 获取网站列表 + * @return mixed + */ + public function getSites() + { + $this->url = "crontab?action=GetDataList"; + $this->where['type'] = 'sites'; + return $this; + } + + /** + * 获取数据库列表 + * @return mixed + */ + public function getDatabases() + { + $this->url = 'data?action=getData'; + $this->where['tojs'] = 'database.get_list'; + $this->where['table'] = 'databases'; + $this->where['limit'] = $this->limit; + $this->where['p'] = $this->page; + $this->where['order'] = $this->order; + return $this; + } + + /** + * 获取防火墙 + * @return mixed + */ + public function getFirewalls() + { + $this->url = 'data?action=getData'; + $this->where['tojs'] = 'firewall.get_list'; + $this->where['table'] = 'firewall'; + $this->where['limit'] = $this->limit; + $this->where['p'] = $this->page; + $this->where['order'] = $this->order; + return $this; + } + + /** + * 获取面板日志 + * @return mixed + */ + public function getLogs() + { + $this->url = 'data?action=getData'; + $this->where['tojs'] = 'firewall.get_log_list'; + $this->where['table'] = 'logs'; + $this->where['limit'] = $this->limit; + $this->where['p'] = $this->page; + $this->where['order'] = $this->order; + return $this; + } + + /** + * 获取消息通道 + * @return mixed + */ + public function getNews() + { + $this->url = 'config?action=get_settings'; + return $this; + } + + /** + * 获取网站列表 + * @return mixed + */ + public function getCronTabs() + { + $this->url = 'data?action=getData'; + $this->where['tojs'] = 'site.get_list'; + $this->where['table'] = 'sites'; + $this->where['limit'] = $this->limit; + $this->where['p'] = $this->page; + $this->where['order'] = $this->order; + return $this; + } + + /** + * 获取网站分类 + * @return mixed + */ + public function getTypes() + { + $this->url = 'site?action=get_site_types'; + return $this; + } + + /** + * 获取软件列表 + * @return mixed + */ + public function getSoFts() + { + $this->url = 'plugin?action=get_soft_list'; + $this->where['p'] = $this->page; + $this->where['tojs'] = 'soft.get_list'; + return $this; + } + + /** + * 获取硬盘信息 + * @return mixed + */ + public function getDiskInfo() + { + $this->url = 'system?action=GetDiskInfo'; + return $this; + } + + /** + * 获取信息系统 + * @return mixed + */ + public function getSystemTotal() + { + $this->url = 'system?action=GetSystemTotal'; + return $this; + } + + /** + * 获取用户信息 + * @return mixed + */ + public function getUserInfo() + { + $this->url = 'ssl?action=GetUserInfo'; + return $this; + } + + /** + * 获取网络信息 + * @return mixed + */ + public function getNetWork() + { + $this->url = 'system?action=GetNetWork'; + return $this; + } + + /** + * 获取插件信息 + * @return mixed + */ + public function getPlugin() + { + $this->url = 'plugin?action=get_index_list'; + return $this; + } + + /** + * 获取软件信息 + * @return mixed + */ + public function getSoft() + { + $this->url = 'plugin?action=get_soft_list'; + return $this; + } + + /** + * 获取更新信息 + * @return mixed + */ + public function getUpdatePanel() + { + $this->url = 'ajax?action=UpdatePanel'; + return $this; + } + + /** + * 当前页码 + * @param int $is + * @return $this + */ + public function page(int $is = 1): self + { + $this->page = $is; + return $this; + } + + /** + * 返回数量 + * @param int $is + * @return $this + */ + public function limit(int $is = 15): self + { + $this->limit = $is; + return $this; + } + + /** + * 排序 + * @param string $ss + * @return $this + */ + public function order(string $ss = 'id desc'): self + { + $this->order = $ss; + return $this; + } + + /** + * 查询条件 + * @param array $array + * @return ApiService + */ + public function where($array = []): ApiService + { + $this->where = $array; + return $this; + } + + /** + * 获取数据和总数 + * @return $this + */ + private function getDataWithOrderOpt(): self + { + $this->backtrack['data'] = $this->contents['data']; + $this->backtrack['orderOpt'] = $this->contents['orderOpt']; + return $this; + } + + /** + * 获取数据和总数 + * @return $this + */ + private function getDataWithCount(): self + { + if (empty($this->contents['data'])) { + $this->contents['data'] = []; + } + if (!is_array($this->contents['data'])) { + $this->contents['data'] = []; + } + $this->backtrack['data'] = $this->contents; + if (empty($this->contents['page'])) { + $this->contents['page'] = 0; + } + $this->backtrack['count'] = $this->getCountData($this->contents['page']); + return $this; + } + + /** + * 获取数据 + * @return $this + */ + private function getData() + { + $this->backtrack['data'] = $this->contents; + return $this; + } + + /** + * 发起网络请求 + * @return $this + * @throws DtaException + */ + private function getHttp(): self + { + //请求面板接口 + $this->contents = $this->HttpPostCookie($this->url, $this->where); + return $this; + } + + /** + * 返回Array + * @return array|mixed + * @throws DtaException + */ + public function toArray() + { + $this->getHttp(); + if ($this->where['type'] === 'sites') { + $this->getDataWithOrderOpt(); + } else { + $this->getDataWithCount(); + } + if (empty($this->backtrack)) { + return []; + } + if (is_array($this->backtrack)) { + return $this->backtrack; + } + return json_decode($this->backtrack, true); + } + + /** + * 发起POST请求 + * @param string $url 网址 + * @param array $data 数据 + * @param bool $is_json 是否返回Json格式 + * @return bool|mixed|string + * @throws DtaException + */ + protected function HttpPostCookie(string $url, array $data = [], bool $is_json = true) + { + if (empty($this->panel)) { + $this->getConfig(); + } + if (empty($this->panel)) { + throw new DtaException('请检查panel参数'); + } + //定义cookie保存位置 + $file = app()->getRootPath() . 'runtime/dtapp/bt/cookie/'; + $cookie_file = $file . md5($this->panel) . '.cookie'; + if (empty(Files::judgeContents($file)) && !mkdir($file, 0777, true) && !is_dir($file)) { + throw new \RuntimeException(sprintf('Directory "%s" was not created', $file)); + } + if (!file_exists($cookie_file)) { + $fp = fopen($cookie_file, 'wb+'); + fclose($fp); + } + if (empty($this->key)) { + $this->getConfig(); + } + if (empty($this->key)) { + throw new DtaException('请检查key参数'); + } + return BtService::instance() + ->panel($this->panel) + ->key($this->key) + ->url($url) + ->cookie($cookie_file) + ->data($data) + ->toArray($is_json); + } + + /** + * 获取总数 + * @param string $str + * @return false|int|string + */ + protected function getCountData(string $str) + { + $start = strpos($str, "共"); + $end = strpos($str, "条数据"); + $count = substr($str, $start + 3, $end - $start - 3); + if (empty($count)) { + return 0; + } + return $count; + } +} diff --git a/src/service/crypt/AesService.php b/src/service/crypt/AesService.php index 4f3df40..f2659b6 100644 --- a/src/service/crypt/AesService.php +++ b/src/service/crypt/AesService.php @@ -1,70 +1,70 @@ -key = $str; - return $this; - } - - /** - * @param $str - * @return $this - */ - public function iv($str) - { - $this->iv = $str; - return $this; - } - - /** - * 加密 - * @param $data - * @return string - */ - public function encrypt($data) - { - if (!empty(is_array($data))) { - $data = json_encode($data, JSON_UNESCAPED_UNICODE); - } - return urlencode(base64_encode(openssl_encrypt($data, 'AES-128-CBC', $this->key, 1, $this->iv))); - } - - /** - * 解密 - * @param $data - * @return false|string - */ - public function decrypt($data) - { - return openssl_decrypt(base64_decode(urldecode($data)), "AES-128-CBC", $this->key, true, $this->iv); - } -} +key = $str; + return $this; + } + + /** + * @param $str + * @return $this + */ + public function iv($str) + { + $this->iv = $str; + return $this; + } + + /** + * 加密 + * @param $data + * @return string + */ + public function encrypt($data) + { + if (!empty(is_array($data))) { + $data = json_encode($data, JSON_UNESCAPED_UNICODE); + } + return urlencode(base64_encode(openssl_encrypt($data, 'AES-128-CBC', $this->key, 1, $this->iv))); + } + + /** + * 解密 + * @param $data + * @return false|string + */ + public function decrypt($data) + { + return openssl_decrypt(base64_decode(urldecode($data)), "AES-128-CBC", $this->key, true, $this->iv); + } +} diff --git a/src/service/curl/BtService.php b/src/service/curl/BtService.php index c1d0114..f31c3a7 100644 --- a/src/service/curl/BtService.php +++ b/src/service/curl/BtService.php @@ -1,169 +1,169 @@ -key = $str; - return $this; - } - - /** - * 配置宝塔网址 - * @param string $str - * @return $this - */ - public function panel(string $str): self - { - $this->panel = $str; - return $this; - } - - /** - * 配置网址 - * @param string $str - * @return $this - */ - public function url(string $str): self - { - $this->url = $str; - return $this; - } - - /** - * 认证内容 - * @param string $str - * @return $this - */ - public function cookie(string $str): self - { - $this->cookie = $str; - return $this; - } - - /** - * 超时,默认60s - * @param int $int - * @return $this - */ - public function timeout(int $int): self - { - $this->timeout = $int; - return $this; - } - - /** - * 数据 - * @param array $array - * @return $this - */ - public function data(array $array): self - { - $this->data = $array; - return $this; - } - - /** - * 返回数组数据 - * @param bool $is - * @return array|bool|mixed|string - */ - public function toArray(bool $is = true) - { - if (empty($this->cookie)) { - throw new HttpException(404, '请检查cookie内容'); - } - if (!extension_loaded("curl")) { - throw new HttpException(404, '请开启curl模块!'); - } - $this->http(); - if (empty($is)) { - return $this->output; - } - if (is_array($this->output)) { - return $this->output; - } - return json_decode($this->output, true); - } - - /** - * 发起请求 - * @return $this - */ - private function http(): self - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $this->panel . $this->url); - curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); - curl_setopt($ch, CURLOPT_POST, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS, array_merge($this->getKeyData(), $this->data)); - curl_setopt($ch, CURLOPT_COOKIEJAR, $this->cookie); - curl_setopt($ch, CURLOPT_COOKIEFILE, $this->cookie); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_HEADER, 0); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - $output = curl_exec($ch); - curl_close($ch); - $this->output = $output; - return $this; - } - - /** - * 构造带有签名的关联数组 - * @return array - */ - private function getKeyData(): array - { - $time = time(); - return array( - 'request_token' => md5($time . '' . md5($this->key)), - 'request_time' => $time - ); - } -} +key = $str; + return $this; + } + + /** + * 配置宝塔网址 + * @param string $str + * @return $this + */ + public function panel(string $str): self + { + $this->panel = $str; + return $this; + } + + /** + * 配置网址 + * @param string $str + * @return $this + */ + public function url(string $str): self + { + $this->url = $str; + return $this; + } + + /** + * 认证内容 + * @param string $str + * @return $this + */ + public function cookie(string $str): self + { + $this->cookie = $str; + return $this; + } + + /** + * 超时,默认60s + * @param int $int + * @return $this + */ + public function timeout(int $int): self + { + $this->timeout = $int; + return $this; + } + + /** + * 数据 + * @param array $array + * @return $this + */ + public function data(array $array): self + { + $this->data = $array; + return $this; + } + + /** + * 返回数组数据 + * @param bool $is + * @return array|bool|mixed|string + */ + public function toArray(bool $is = true) + { + if (empty($this->cookie)) { + throw new HttpException(404, '请检查cookie内容'); + } + if (!extension_loaded("curl")) { + throw new HttpException(404, '请开启curl模块!'); + } + $this->http(); + if (empty($is)) { + return $this->output; + } + if (is_array($this->output)) { + return $this->output; + } + return json_decode($this->output, true); + } + + /** + * 发起请求 + * @return $this + */ + private function http(): self + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $this->panel . $this->url); + curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_POSTFIELDS, array_merge($this->getKeyData(), $this->data)); + curl_setopt($ch, CURLOPT_COOKIEJAR, $this->cookie); + curl_setopt($ch, CURLOPT_COOKIEFILE, $this->cookie); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + $output = curl_exec($ch); + curl_close($ch); + $this->output = $output; + return $this; + } + + /** + * 构造带有签名的关联数组 + * @return array + */ + private function getKeyData(): array + { + $time = time(); + return array( + 'request_token' => md5($time . '' . md5($this->key)), + 'request_time' => $time + ); + } +} diff --git a/src/service/curl/HttpService.php b/src/service/curl/HttpService.php index 8b9e0ec..5bf93d3 100644 --- a/src/service/curl/HttpService.php +++ b/src/service/curl/HttpService.php @@ -1,297 +1,297 @@ -url = $str; - return $this; - } - - /** - * 需要请求的数据 - * @param $str - * @return $this - */ - public function data($str): self - { - if (is_array($str)) { - $this->data = json_encode($str, JSON_UNESCAPED_UNICODE); - } else { - $this->data = $str; - } - return $this; - } - - /** - * 请求头 - * @param $str - * @return $this - */ - public function headers(string $str): self - { - $this->headers = $str; - return $this; - } - - /** - * 超时,默认60s - * @param int $int - * @return $this - */ - public function timeout(int $int): self - { - $this->timeout = $int; - return $this; - } - - /** - * 证书 - * @param string $sslCertPath - * @param string $sslKeyPath - * @return $this - */ - public function cert(string $sslCertPath, string $sslKeyPath): self - { - $this->cert = [ - 'key' => $sslKeyPath, - 'cert' => $sslCertPath, - ]; - return $this; - } - - /** - * GET请求方式 - * @return $this - */ - public function get(): self - { - $this->method = 'GET'; - return $this; - } - - /** - * POST请求方式 - * @return $this - */ - public function post(): self - { - $this->method = 'POST'; - return $this; - } - - /** - * XML请求方式 - * @return $this - */ - public function xml(): self - { - $this->method = 'XML'; - return $this; - } - - /** - * XML请求方式 - * @return $this - */ - public function file(): self - { - $this->method = 'FILE'; - return $this; - } - - /** - * 返回数组数据 - * @param bool $is - * @return array|bool|mixed|string - */ - public function toArray(bool $is = true) - { - //首先检测是否支持curl - if (!extension_loaded("curl")) { - throw new HttpException(404, '请开启curl模块!'); - } - if ($this->method === 'GET') { - $this->httpGet(); - } else if ($this->method === 'POST') { - $this->httpPost(); - } else if ($this->method === 'XML') { - $this->httpXml(); - } else if ($this->method === 'FILE') { - $this->httpFile(); - } else { - throw new HttpException(404, '请求方式异常'); - } - if (empty($is)) { - return $this->output; - } - if (is_array($this->output)) { - return $this->output; - } - return json_decode($this->output, true); - } - - /** - * 发送GET请求 - * @return bool|mixed|string - */ - private function httpGet() - { - $curl = curl_init(); - curl_setopt($curl, CURLOPT_URL, $this->url); - curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); - curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE); - curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); - if (!empty($this->data)) { - curl_setopt($curl, CURLOPT_POST, 1); - curl_setopt($curl, CURLOPT_POSTFIELDS, $this->data); - } - curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); - $output = curl_exec($curl); - curl_close($curl); - $this->output = $output; - return $this; - } - - /** - * 发送Post请求 - * @return array|bool|mixed|string - */ - private function httpPost() - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $this->url); - curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: ' . $this->headers)); - curl_setopt($ch, CURLOPT_HEADER, 0); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 跳过证书检查 - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // 从证书中检查SSL加密算法是否存在 - curl_setopt($ch, CURLOPT_POST, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS, $this->data); - curl_setopt($ch, CURLOPT_TIMEOUT, 10); - curl_setopt($ch, CURLOPT_AUTOREFERER, true); - $content = curl_exec($ch); - curl_close($ch); - $this->output = $content; - return $this; - } - - - /** - * 发送Xml数据 - * @return string - */ - private function httpXml() - { - //初始一个curl会话 - $ch = curl_init(); - //设置超时 - curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); - curl_setopt($ch, CURLOPT_URL, $this->url); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); //严格校验 - //设置header - curl_setopt($ch, CURLOPT_HEADER, FALSE); - //要求结果为字符串且输出到屏幕上 - curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); - //post提交方式 - curl_setopt($ch, CURLOPT_POST, TRUE); - curl_setopt($ch, CURLOPT_POSTFIELDS, $this->data); - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); - curl_setopt($ch, CURLOPT_TIMEOUT, 40); - set_time_limit(0); - if (!empty($this->headers)) { - curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: ' . $this->headers)); - } - //运行curl - $data = curl_exec($ch); - curl_close($ch); - $this->output = $data; - return $this; - } - - /** - * 上传图片 - * @return false|string - */ - private function httpFile() - { - //初始一个curl会话 - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $this->url); - //设置超时 - curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); - if (empty($this->cert)) { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - curl_setopt($ch, CURLOPT_SSLCERTTYPE, 'PEM'); - curl_setopt($ch, CURLOPT_SSLKEYTYPE, 'PEM'); - curl_setopt($ch, CURLOPT_SSLCERT, $this->cert['cert']); - curl_setopt($ch, CURLOPT_SSLKEY, $this->cert['key']); - } else if (strpos($this->url, 'https') === 0) { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 信任任何证书 - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); // 检查证书中是否设置域名 - } - if (!empty($this->headers)) { - curl_setopt($ch, CURLOPT_HTTPHEADER, array('content-type: ' . $this->headers)); - } - curl_setopt($ch, CURLOPT_HEADER, true); // 是否需要响应 header - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - $output = curl_exec($ch); - $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE); // 获得响应结果里的:头大小 - $response_body = substr($output, $header_size); - curl_close($ch); - $this->output = $response_body; - return $this; - } -} +url = $str; + return $this; + } + + /** + * 需要请求的数据 + * @param $str + * @return $this + */ + public function data($str): self + { + if (is_array($str)) { + $this->data = json_encode($str, JSON_UNESCAPED_UNICODE); + } else { + $this->data = $str; + } + return $this; + } + + /** + * 请求头 + * @param $str + * @return $this + */ + public function headers(string $str): self + { + $this->headers = $str; + return $this; + } + + /** + * 超时,默认60s + * @param int $int + * @return $this + */ + public function timeout(int $int): self + { + $this->timeout = $int; + return $this; + } + + /** + * 证书 + * @param string $sslCertPath + * @param string $sslKeyPath + * @return $this + */ + public function cert(string $sslCertPath, string $sslKeyPath): self + { + $this->cert = [ + 'key' => $sslKeyPath, + 'cert' => $sslCertPath, + ]; + return $this; + } + + /** + * GET请求方式 + * @return $this + */ + public function get(): self + { + $this->method = 'GET'; + return $this; + } + + /** + * POST请求方式 + * @return $this + */ + public function post(): self + { + $this->method = 'POST'; + return $this; + } + + /** + * XML请求方式 + * @return $this + */ + public function xml(): self + { + $this->method = 'XML'; + return $this; + } + + /** + * XML请求方式 + * @return $this + */ + public function file(): self + { + $this->method = 'FILE'; + return $this; + } + + /** + * 返回数组数据 + * @param bool $is + * @return array|bool|mixed|string + */ + public function toArray(bool $is = true) + { + //首先检测是否支持curl + if (!extension_loaded("curl")) { + throw new HttpException(404, '请开启curl模块!'); + } + if ($this->method === 'GET') { + $this->httpGet(); + } else if ($this->method === 'POST') { + $this->httpPost(); + } else if ($this->method === 'XML') { + $this->httpXml(); + } else if ($this->method === 'FILE') { + $this->httpFile(); + } else { + throw new HttpException(404, '请求方式异常'); + } + if (empty($is)) { + return $this->output; + } + if (is_array($this->output)) { + return $this->output; + } + return json_decode($this->output, true); + } + + /** + * 发送GET请求 + * @return bool|mixed|string + */ + private function httpGet() + { + $curl = curl_init(); + curl_setopt($curl, CURLOPT_URL, $this->url); + curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); + if (!empty($this->data)) { + curl_setopt($curl, CURLOPT_POST, 1); + curl_setopt($curl, CURLOPT_POSTFIELDS, $this->data); + } + curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); + $output = curl_exec($curl); + curl_close($curl); + $this->output = $output; + return $this; + } + + /** + * 发送Post请求 + * @return array|bool|mixed|string + */ + private function httpPost() + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $this->url); + curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: ' . $this->headers)); + curl_setopt($ch, CURLOPT_HEADER, 0); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 跳过证书检查 + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); // 从证书中检查SSL加密算法是否存在 + curl_setopt($ch, CURLOPT_POST, 1); + curl_setopt($ch, CURLOPT_POSTFIELDS, $this->data); + curl_setopt($ch, CURLOPT_TIMEOUT, 10); + curl_setopt($ch, CURLOPT_AUTOREFERER, true); + $content = curl_exec($ch); + curl_close($ch); + $this->output = $content; + return $this; + } + + + /** + * 发送Xml数据 + * @return string + */ + private function httpXml() + { + //初始一个curl会话 + $ch = curl_init(); + //设置超时 + curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); + curl_setopt($ch, CURLOPT_URL, $this->url); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); //严格校验 + //设置header + curl_setopt($ch, CURLOPT_HEADER, FALSE); + //要求结果为字符串且输出到屏幕上 + curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); + //post提交方式 + curl_setopt($ch, CURLOPT_POST, TRUE); + curl_setopt($ch, CURLOPT_POSTFIELDS, $this->data); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 20); + curl_setopt($ch, CURLOPT_TIMEOUT, 40); + set_time_limit(0); + if (!empty($this->headers)) { + curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: ' . $this->headers)); + } + //运行curl + $data = curl_exec($ch); + curl_close($ch); + $this->output = $data; + return $this; + } + + /** + * 上传图片 + * @return false|string + */ + private function httpFile() + { + //初始一个curl会话 + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $this->url); + //设置超时 + curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout); + if (empty($this->cert)) { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + curl_setopt($ch, CURLOPT_SSLCERTTYPE, 'PEM'); + curl_setopt($ch, CURLOPT_SSLKEYTYPE, 'PEM'); + curl_setopt($ch, CURLOPT_SSLCERT, $this->cert['cert']); + curl_setopt($ch, CURLOPT_SSLKEY, $this->cert['key']); + } else if (strpos($this->url, 'https') === 0) { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 信任任何证书 + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); // 检查证书中是否设置域名 + } + if (!empty($this->headers)) { + curl_setopt($ch, CURLOPT_HTTPHEADER, array('content-type: ' . $this->headers)); + } + curl_setopt($ch, CURLOPT_HEADER, true); // 是否需要响应 header + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + $output = curl_exec($ch); + $header_size = curl_getinfo($ch, CURLINFO_HEADER_SIZE); // 获得响应结果里的:头大小 + $response_body = substr($output, $header_size); + curl_close($ch); + $this->output = $response_body; + return $this; + } +} diff --git a/src/service/decent/EJiAoFei.php b/src/service/decent/EJiAoFei.php index baa4bcf..fb081bd 100644 --- a/src/service/decent/EJiAoFei.php +++ b/src/service/decent/EJiAoFei.php @@ -1,231 +1,231 @@ -api = $api; - return $this; - } - - /** - * 由鼎信商务提供 - * @param string $userid - * @return $this - */ - public function userid(string $userid): self - { - $this->userid = $userid; - return $this; - } - - /** - * 由鼎信商务提供 - * @param string $pwd - * @return $this - */ - public function pwd(string $pwd): self - { - $this->pwd = $pwd; - return $this; - } - - /** - * 由鼎信商务提供 - * @param string $key - * @return $this - */ - public function key(string $key): self - { - $this->key = $key; - return $this; - } - - /** - * 话费充值 - * @param string $orderid 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性) - * @param int $face 充值面值 以元为单位,包含10、20、30、50、100、200、300、500 移动联通电信 - * @param string $account 手机号码 需要充值的手机号码 - * @param int $amount 购买数量 只能为1 - * @return $this - */ - public function chongZhi(string $orderid, int $face, string $account, int $amount = 1): self - { - $this->method = 'chongzhi_jkorders'; - $this->param = "userid={$this->userid}&pwd={$this->pwd}&orderid={$orderid}&face={$face}&account={$account}&amount={$amount}"; - return $this; - } - - /** - * 通用查询 - * @param string $orderid 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性) - * @return $this - */ - public function query(string $orderid): self - { - $this->method = 'query_jkorders'; - $this->param = "userid={$this->userid}&pwd={$this->pwd}&orderid={$orderid}"; - return $this; - } - - /** - * 用户余额查询 - * @return $this - */ - public function money(): self - { - $this->method = 'money_jkuser'; - $this->param = "userid={$this->userid}&pwd={$this->pwd}"; - return $this; - } - - /** - * 腾讯充值 - * @param string $orderid 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性) - * @param string $account QQ号 需要充值的QQ号 - * @param int $productid 产品id 可以通过queryTXproduct查询 - * @param int $amount 购买数量 - * @param string $ip 充值QQ号ip 可以为空 - * @param string $times 时间戳 格式:yyyyMMddhhmmss - * @return $this - */ - public function txchongzhi(string $orderid, string $account, int $productid, int $amount, string $ip, string $times): self - { - $this->method = 'txchongzhi'; - $this->param = "userid={$this->userid}&pwd={$this->pwd}&orderid={$orderid}&account={$account}&productid={$productid}&amount={$amount}&ip={$ip}×={$times}"; - return $this; - } - - /** - * 可充值腾讯产品查询 - * @return $this - */ - public function queryTXproduct(): self - { - $this->method = 'queryTXproduct'; - $this->param = "userid={$this->userid}&pwd={$this->pwd}"; - return $this; - } - - /** - * 流量充值 - * @param string $orderid 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性) - * @param string $account 充值手机号 需要充值的手机号 - * @param int $gprs 充值流量值 单位:MB(具体流量值请咨询商务) - * @param int $area 充值流量范围 0 全国流量,1 省内流量 - * @param int $effecttime 生效日期 0 即时生效,1次日生效,2 次月生效 - * @param int $validity 流量有效期 传入月数,0为当月有效 - * @param string $times 时间戳 格式:yyyyMMddhhmmss - * @return $this - */ - public function gprsChongzhiAdvance(string $orderid, string $account, int $gprs, int $area, int $effecttime, int $validity, string $times): self - { - $this->method = 'gprsChongzhiAdvance'; - $this->param = "userid={$this->userid}&pwd={$this->pwd}&orderid={$orderid}&account={$account}&gprs={$gprs}&area={$area}&effecttime={$effecttime}&validity={$validity}×={$times}"; - return $this; - } - - /** - * 会员订单成本价查询 - * @param string $orderid 用户订单号 用户提交订单号 - * @return $this - */ - public function checkCost(string $orderid): self - { - $this->method = 'checkCost'; - $this->param = "userid={$this->userid}&pwd={$this->pwd}&orderid={$orderid}"; - return $this; - } - - /** - * @throws DtaException - */ - public function toArray() - { - //首先检测是否支持curl - if (!extension_loaded("curl")) { - throw new HttpException(404, '请开启curl模块!'); - } - if (empty($this->api)) { - throw new DtaException('请检查api参数'); - } - $this->http(); - // 正常 - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); - } - $this->output = json_decode($this->output, true); - return $this->output; - } - - /** - * 网络请求 - */ - private function http(): void - { - //生成签名 - $sign = $this->createSign(); - //组织参数 - $this->param .= '&userkey=' . $sign; - $url = "http://" . $this->api . "/" . $this->method . ".do?{$this->param}"; - $result = file_get_contents($url); - $result = Xmls::toArray($result); - $this->output = $result; - } - - /** - * 签名 - * @return string - */ - private function createSign(): string - { - $sign = str_replace(array("&", "="), array("", ""), $this->param); - $sign .= $this->key; - $sign = strtoupper(md5($sign)); - return $sign; - } +api = $api; + return $this; + } + + /** + * 由鼎信商务提供 + * @param string $userid + * @return $this + */ + public function userid(string $userid): self + { + $this->userid = $userid; + return $this; + } + + /** + * 由鼎信商务提供 + * @param string $pwd + * @return $this + */ + public function pwd(string $pwd): self + { + $this->pwd = $pwd; + return $this; + } + + /** + * 由鼎信商务提供 + * @param string $key + * @return $this + */ + public function key(string $key): self + { + $this->key = $key; + return $this; + } + + /** + * 话费充值 + * @param string $orderid 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性) + * @param int $face 充值面值 以元为单位,包含10、20、30、50、100、200、300、500 移动联通电信 + * @param string $account 手机号码 需要充值的手机号码 + * @param int $amount 购买数量 只能为1 + * @return $this + */ + public function chongZhi(string $orderid, int $face, string $account, int $amount = 1): self + { + $this->method = 'chongzhi_jkorders'; + $this->param = "userid={$this->userid}&pwd={$this->pwd}&orderid={$orderid}&face={$face}&account={$account}&amount={$amount}"; + return $this; + } + + /** + * 通用查询 + * @param string $orderid 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性) + * @return $this + */ + public function query(string $orderid): self + { + $this->method = 'query_jkorders'; + $this->param = "userid={$this->userid}&pwd={$this->pwd}&orderid={$orderid}"; + return $this; + } + + /** + * 用户余额查询 + * @return $this + */ + public function money(): self + { + $this->method = 'money_jkuser'; + $this->param = "userid={$this->userid}&pwd={$this->pwd}"; + return $this; + } + + /** + * 腾讯充值 + * @param string $orderid 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性) + * @param string $account QQ号 需要充值的QQ号 + * @param int $productid 产品id 可以通过queryTXproduct查询 + * @param int $amount 购买数量 + * @param string $ip 充值QQ号ip 可以为空 + * @param string $times 时间戳 格式:yyyyMMddhhmmss + * @return $this + */ + public function txchongzhi(string $orderid, string $account, int $productid, int $amount, string $ip, string $times): self + { + $this->method = 'txchongzhi'; + $this->param = "userid={$this->userid}&pwd={$this->pwd}&orderid={$orderid}&account={$account}&productid={$productid}&amount={$amount}&ip={$ip}×={$times}"; + return $this; + } + + /** + * 可充值腾讯产品查询 + * @return $this + */ + public function queryTXproduct(): self + { + $this->method = 'queryTXproduct'; + $this->param = "userid={$this->userid}&pwd={$this->pwd}"; + return $this; + } + + /** + * 流量充值 + * @param string $orderid 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性) + * @param string $account 充值手机号 需要充值的手机号 + * @param int $gprs 充值流量值 单位:MB(具体流量值请咨询商务) + * @param int $area 充值流量范围 0 全国流量,1 省内流量 + * @param int $effecttime 生效日期 0 即时生效,1次日生效,2 次月生效 + * @param int $validity 流量有效期 传入月数,0为当月有效 + * @param string $times 时间戳 格式:yyyyMMddhhmmss + * @return $this + */ + public function gprsChongzhiAdvance(string $orderid, string $account, int $gprs, int $area, int $effecttime, int $validity, string $times): self + { + $this->method = 'gprsChongzhiAdvance'; + $this->param = "userid={$this->userid}&pwd={$this->pwd}&orderid={$orderid}&account={$account}&gprs={$gprs}&area={$area}&effecttime={$effecttime}&validity={$validity}×={$times}"; + return $this; + } + + /** + * 会员订单成本价查询 + * @param string $orderid 用户订单号 用户提交订单号 + * @return $this + */ + public function checkCost(string $orderid): self + { + $this->method = 'checkCost'; + $this->param = "userid={$this->userid}&pwd={$this->pwd}&orderid={$orderid}"; + return $this; + } + + /** + * @throws DtaException + */ + public function toArray() + { + //首先检测是否支持curl + if (!extension_loaded("curl")) { + throw new HttpException(404, '请开启curl模块!'); + } + if (empty($this->api)) { + throw new DtaException('请检查api参数'); + } + $this->http(); + // 正常 + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); + } + $this->output = json_decode($this->output, true); + return $this->output; + } + + /** + * 网络请求 + */ + private function http(): void + { + //生成签名 + $sign = $this->createSign(); + //组织参数 + $this->param .= '&userkey=' . $sign; + $url = "http://" . $this->api . "/" . $this->method . ".do?{$this->param}"; + $result = file_get_contents($url); + $result = Xmls::toArray($result); + $this->output = $result; + } + + /** + * 签名 + * @return string + */ + private function createSign(): string + { + $sign = str_replace(array("&", "="), array("", ""), $this->param); + $sign .= $this->key; + $sign = strtoupper(md5($sign)); + return $sign; + } } \ No newline at end of file diff --git a/src/service/dingdanxia/DingDanXiaService.php b/src/service/dingdanxia/DingDanXiaService.php index a314978..a5a4df3 100644 --- a/src/service/dingdanxia/DingDanXiaService.php +++ b/src/service/dingdanxia/DingDanXiaService.php @@ -1,108 +1,108 @@ -app_key = $appKey; - return $this; - } - - /** - * 自定义接口 - * @param string $method - * @return $this - */ - public function setMethod($method = ''): self - { - $this->method = $method; - return $this; - } - - /** - * 请求参数 - * @param array $param - * @return $this - */ - public function param(array $param): self - { - $this->param = $param; - return $this; - } - - /** - * 获取配置信息 - * @return $this - */ - private function getConfig(): self - { - $this->app_key = config('dtapp.dingdanxia.app_key'); - return $this; - } - - /** - * 返回Array - * @return array|mixed - * @throws DtaException - */ - public function toArray() - { - //首先检测是否支持curl - if (!extension_loaded("curl")) { - throw new HttpException(404, '请开启curl模块!'); - } - if (empty($this->app_key)) { - $this->getConfig(); - } - if (empty($this->method)) { - throw new DtaException('请检查接口'); - } - $this->output = HttpService::instance() - ->url($this->method) - ->data($this->param) - ->post() - ->toArray(); - return $this->output; - } +app_key = $appKey; + return $this; + } + + /** + * 自定义接口 + * @param string $method + * @return $this + */ + public function setMethod($method = ''): self + { + $this->method = $method; + return $this; + } + + /** + * 请求参数 + * @param array $param + * @return $this + */ + public function param(array $param): self + { + $this->param = $param; + return $this; + } + + /** + * 获取配置信息 + * @return $this + */ + private function getConfig(): self + { + $this->app_key = config('dtapp.dingdanxia.app_key'); + return $this; + } + + /** + * 返回Array + * @return array|mixed + * @throws DtaException + */ + public function toArray() + { + //首先检测是否支持curl + if (!extension_loaded("curl")) { + throw new HttpException(404, '请开启curl模块!'); + } + if (empty($this->app_key)) { + $this->getConfig(); + } + if (empty($this->method)) { + throw new DtaException('请检查接口'); + } + $this->output = HttpService::instance() + ->url($this->method) + ->data($this->param) + ->post() + ->toArray(); + return $this->output; + } } \ No newline at end of file diff --git a/src/service/douyin/WatermarkService.php b/src/service/douyin/WatermarkService.php index d5eedad..5a30e43 100644 --- a/src/service/douyin/WatermarkService.php +++ b/src/service/douyin/WatermarkService.php @@ -1,751 +1,751 @@ -judgeUrl($str); - if (empty($url)) { - throw new DtaException('配置网址内容不正确'); - } - $this->url = $url; - } else { - preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $str, $match); - $url = $this->judgeUrl($match[0][0]); - if (empty($url)) { - throw new DtaException('配置网址内容不正确'); - } - $this->url = $url; - } - $content = $this->getContents($this->url); - $this->itemId = $this->getItemId($content); - $this->dytk = $this->getDyTk($content); - return $this; - } - - /** - * 云存储 - * @param string $type - * @param string $path - * @return $this - */ - public function storage(string $type, string $path): self - { - $this->storage = $type; - $this->storagePath = $path; - return $this; - } - - /** - * 获取作者信息 - * @return string - */ - public function getAuthorInfo() - { - $this->getApi(); - $data = json_decode($this->contents, true); - if (empty($data['status_code'])) { - $item_list = $data['item_list'][0]; - $backtrack = []; - $backtrack['uid'] = $item_list['author']['uid']; - $backtrack['nickname'] = $item_list['author']['nickname']; - $backtrack['unique_id'] = $item_list['author']['unique_id']; - $backtrack['short_id'] = $item_list['author']['short_id']; - $backtrack['avatar'] = $this->cAuthorAvatar($item_list['author']); - $this->backtrack = $backtrack; - } else { - $this->backtrack = []; - } - return $this; - } - - /** - * 获取分享信息 - * @return string - */ - public function getShareInfo() - { - $this->getApi(); - $data = json_decode($this->contents, true); - if (empty($data['status_code'])) { - $item_list = $data['item_list'][0]; - $backtrack = []; - $backtrack['weibo_desc'] = $item_list['share_info']['share_weibo_desc']; - $backtrack['desc'] = $item_list['share_info']['share_desc']; - $backtrack['title'] = $item_list['share_info']['share_title']; - $backtrack['url'] = $item_list['share_url']; - $this->backtrack = $backtrack; - } else { - $this->backtrack = []; - } - return $this; - } - - /** - * 获取音乐信息 - * @return string - */ - public function getMusicInfo(): string - { - $this->getApi(); - $data = json_decode($this->contents, true); - if (empty($data['status_code'])) { - $item_list = $data['item_list'][0]; - $backtrack = []; - $backtrack['id'] = $item_list['music']['id']; - $backtrack['mid'] = $item_list['music']['mid']; - $backtrack['title'] = $item_list['music']['title']; - $backtrack['author'] = $item_list['music']['author']; - $backtrack['avatar'] = $this->cMusicAvatar($item_list['music']); - $backtrack['play'] = $item_list['music']['play_url']['uri']; - $backtrack['cover'] = $item_list['music']['cover_large']['url_list'][0]; - $this->backtrack = $backtrack; - } else { - $this->backtrack = []; - } - return $this; - } - - /** - * 获取视频信息 - * @return string - */ - public function getVideoInfo() - { - $this->getApi(); - $data = json_decode($this->contents, true); - if (empty($data['status_code'])) { - $item_list = $data['item_list'][0]; - $backtrack = []; - $backtrack['vid'] = $item_list['video']['vid']; - $backtrack['desc'] = $item_list['desc']; - $backtrack['width'] = $item_list['video']['width']; - $backtrack['height'] = $item_list['video']['height']; - $cVideoAvatar = $this->cVideoAvatar($item_list['video']); - $backtrack['dynamic'] = $cVideoAvatar['dynamic']; - $backtrack['origin_cover'] = $cVideoAvatar['origin_cover']; - $backtrack['cover'] = $cVideoAvatar['cover']; - $backtrack['play'] = $this->cVideoPlayUrl($item_list['video']['play_addr']['url_list'][0], 'play'); - $backtrack['playwm'] = $this->cVideoPlayUrl($item_list['video']['play_addr']['url_list'][0], 'playwm'); - $this->backtrack = $backtrack; - } else { - $this->backtrack = []; - } - return $this; - } - - /** - * 获取接口全部信息 - * @return $this - */ - public function getApi(): self - { - $this->apiUrl = "https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?item_ids={$this->itemId}&dytk={$this->dytk}"; - $this->contents = $this->getContents($this->apiUrl); - $this->backtrack = $this->contents; - return $this; - } - - /** - * 获取全部信息 - * @return $this - * @throws Exception - */ - public function getAll() - { - $this->getApi(); - $data = json_decode($this->contents, true); - if (empty($data['status_code'])) { - $item_list = $data['item_list'][0]; - $backtrack = []; - // 作者信息 - $backtrack['author_info']['uid'] = $item_list['author']['uid']; - $backtrack['author_info']['nickname'] = $item_list['author']['nickname']; - $backtrack['author_info']['unique_id'] = $item_list['author']['unique_id']; - $backtrack['author_info']['short_id'] = $item_list['author']['short_id']; - $backtrack['author_info']['avatar'] = $this->cAuthorAvatar($item_list['author']); - // 分享信息 - $backtrack['share_info']['weibo_desc'] = $item_list['share_info']['share_weibo_desc']; - $backtrack['share_info']['desc'] = $item_list['share_info']['share_desc']; - $backtrack['share_info']['title'] = $item_list['share_info']['share_title']; - $backtrack['share_info']['url'] = $item_list['share_url']; - // 音乐信息 - $backtrack['music_info']['id'] = $item_list['music']['id'] ?? ''; - $backtrack['music_info']['mid'] = $item_list['music']['mid'] ?? ''; - $backtrack['music_info']['title'] = $item_list['music']['title'] ?? ''; - $backtrack['music_info']['author'] = $item_list['music']['author'] ?? ''; - $backtrack['music_info']['avatar'] = isset($item_list['music']) ? $this->cMusicAvatar($item_list['music']) : ''; - $backtrack['music_info']['play'] = $item_list['music']['play_url']['uri'] ?? ''; - $backtrack['music_info']['cover'] = $item_list['music']['cover_large']['url_list'][0] ?? ''; - // 视频信息 - $backtrack['video_info']['vid'] = $item_list['video']['vid']; - $backtrack['video_info']['desc'] = $item_list['desc']; - $backtrack['video_info']['width'] = $item_list['video']['width']; - $backtrack['video_info']['height'] = $item_list['video']['height']; - $cVideoAvatar = $this->cVideoAvatar($item_list['video']); - $backtrack['video_info']['dynamic'] = $cVideoAvatar['dynamic']; - $backtrack['video_info']['origin_cover'] = $cVideoAvatar['origin_cover']; - $backtrack['video_info']['cover'] = $cVideoAvatar['cover']; - $backtrack['video_info']['play'] = $this->cVideoPlayUrl($item_list['video']['play_addr']['url_list'][0], 'play'); - $backtrack['video_info']['playwm'] = $this->cVideoPlayUrl($item_list['video']['play_addr']['url_list'][0], 'playwm'); - $this->storagePath .= $backtrack['author_info']['uid'] . "/"; - if (!empty($this->storage)) { - // 保存文件 - // 作者头像 - $author_info_avatar = StorageService::instance() - ->path($this->storagePath) - ->remotely($backtrack['author_info']['avatar']) - ->save($backtrack['author_info']['uid'] . ".jpeg"); - // 音频头像 - $music_info_avatar = StorageService::instance() - ->path($this->storagePath) - ->remotely($backtrack['music_info']['avatar']) - ->save($backtrack['music_info']['mid'] . ".jpeg"); - // 音频文件 - if (!empty($backtrack['music_info']['play'])) { - $music_info_play = StorageService::instance() - ->path($this->storagePath) - ->remotely($backtrack['music_info']['play']) - ->save($backtrack['music_info']['mid'] . ".mp3"); - } else { - $music_info_play = ['size' => '0kb']; - } - // 音频封面 - $music_info_cover = StorageService::instance() - ->path($this->storagePath) - ->remotely($backtrack['music_info']['cover']) - ->save($backtrack['music_info']['mid'] . "_cover" . ".jpeg"); - // 视频封面 - $video_info_dynamic = StorageService::instance() - ->path($this->storagePath) - ->remotely($backtrack['video_info']['dynamic']) - ->save($backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); - // 视频封面 - $video_info_origin_cover = StorageService::instance() - ->path($this->storagePath) - ->remotely($backtrack['video_info']['origin_cover']) - ->save($backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); - // 视频封面 - $video_info_cover = StorageService::instance() - ->path($this->storagePath) - ->remotely($backtrack['video_info']['cover']) - ->save($backtrack['video_info']['vid'] . "_cover" . ".jpeg"); - // 视频文件 - $video_info_play = StorageService::instance() - ->path($this->storagePath) - ->remotely($backtrack['video_info']['play']) - ->save($backtrack['video_info']['vid'] . "_play" . ".mp4"); - // 视频文件 - $video_info_playwm = StorageService::instance() - ->path($this->storagePath) - ->remotely($backtrack['video_info']['playwm']) - ->save($backtrack['video_info']['vid'] . "_playwm" . ".mp4"); - $system_path = StorageService::instance() - ->path($this->storagePath) - ->getPath(); - $yun_path = "douyin/" . $backtrack['author_info']['uid'] . '/'; - // 上传到云存储 - $backtrack['yun']['platform'] = $this->storage; - switch ($this->storage) { - case "aliyun": - // 作者头像 - $backtrack['yun']['author_info']['avatar'] = OssService::instance() - ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); - // 音频头像 - $backtrack['yun']['music_info']['avatar'] = OssService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); - // 音频文件 - if (!empty($backtrack['music_info']['play'])) { - $backtrack['yun']['music_info']['play'] = OssService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); - } else { - $backtrack['yun']['music_info']['play'] = ''; - } - // 音频封面 - $backtrack['yun']['music_info']['cover'] = OssService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['dynamic'] = OssService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['origin_cover'] = OssService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['cover'] = OssService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); - // 视频文件 - $backtrack['yun']['video_info']['play'] = OssService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); - // 视频文件 - $backtrack['yun']['video_info']['playwm'] = OssService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); - break; - case "tencentcloud": - // 作者头像 - $backtrack['yun']['author_info']['avatar'] = CosService::instance() - ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); - // 音频头像 - $backtrack['yun']['music_info']['avatar'] = CosService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); - // 音频文件 - if (!empty($backtrack['music_info']['play'])) { - $backtrack['yun']['music_info']['play'] = CosService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); - } else { - $backtrack['yun']['music_info']['play'] = ''; - } - // 音频封面 - $backtrack['yun']['music_info']['cover'] = CosService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['dynamic'] = CosService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['origin_cover'] = CosService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['cover'] = CosService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); - // 视频文件 - $backtrack['yun']['video_info']['play'] = CosService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); - // 视频文件 - $backtrack['yun']['video_info']['playwm'] = CosService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); - break; - case "huaweicloud": - // 作者头像 - $backtrack['yun']['author_info']['avatar'] = ObsService::instance() - ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); - // 音频头像 - $backtrack['yun']['music_info']['avatar'] = ObsService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); - // 音频文件 - if (!empty($backtrack['music_info']['play'])) { - $backtrack['yun']['music_info']['play'] = ObsService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); - } else { - $backtrack['yun']['music_info']['play'] = ''; - } - // 音频封面 - $backtrack['yun']['music_info']['cover'] = ObsService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['dynamic'] = ObsService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['origin_cover'] = ObsService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['cover'] = ObsService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); - // 视频文件 - $backtrack['yun']['video_info']['play'] = ObsService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); - // 视频文件 - $backtrack['yun']['video_info']['playwm'] = ObsService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); - break; - case "baiducloud": - // 作者头像 - $backtrack['yun']['author_info']['avatar'] = BosService::instance() - ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); - // 音频头像 - $backtrack['yun']['music_info']['avatar'] = BosService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); - // 音频文件 - if (!empty($backtrack['music_info']['play'])) { - $backtrack['yun']['music_info']['play'] = BosService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); - } else { - $backtrack['yun']['music_info']['play'] = ''; - } - // 音频封面 - $backtrack['yun']['music_info']['cover'] = BosService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['dynamic'] = BosService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['origin_cover'] = BosService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['cover'] = BosService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); - // 视频文件 - $backtrack['yun']['video_info']['play'] = BosService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); - // 视频文件 - $backtrack['yun']['video_info']['playwm'] = BosService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); - break; - case "qiniu": - // 作者头像 - $backtrack['yun']['author_info']['avatar'] = KodoService::instance() - ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); - // 音频头像 - $backtrack['yun']['music_info']['avatar'] = KodoService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); - // 音频文件 - if (!empty($backtrack['music_info']['play'])) { - $backtrack['yun']['music_info']['play'] = KodoService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); - } else { - $backtrack['yun']['music_info']['play'] = ''; - } - // 音频封面 - $backtrack['yun']['music_info']['cover'] = KodoService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['dynamic'] = KodoService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['origin_cover'] = KodoService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['cover'] = KodoService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); - // 视频文件 - $backtrack['yun']['video_info']['play'] = KodoService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); - // 视频文件 - $backtrack['yun']['video_info']['playwm'] = KodoService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); - break; - case "upyun": - // 作者头像 - $backtrack['yun']['author_info']['avatar'] = UssService::instance() - ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); - // 音频头像 - $backtrack['yun']['music_info']['avatar'] = UssService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); - // 音频文件 - if (!empty($backtrack['music_info']['play'])) { - $backtrack['yun']['music_info']['play'] = UssService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); - } else { - $backtrack['yun']['music_info']['play'] = ''; - } - // 音频封面 - $backtrack['yun']['music_info']['cover'] = UssService::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['dynamic'] = UssService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['origin_cover'] = UssService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['cover'] = UssService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); - // 视频文件 - $backtrack['yun']['video_info']['play'] = UssService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); - // 视频文件 - $backtrack['yun']['video_info']['playwm'] = UssService::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); - break; - case "ksyun": - // 作者头像 - $backtrack['yun']['author_info']['avatar'] = Ks3Service::instance() - ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); - // 音频头像 - $backtrack['yun']['music_info']['avatar'] = Ks3Service::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); - // 音频文件 - if (!empty($backtrack['music_info']['play'])) { - $backtrack['yun']['music_info']['play'] = Ks3Service::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); - } else { - $backtrack['yun']['music_info']['play'] = ''; - } - // 音频封面 - $backtrack['yun']['music_info']['cover'] = Ks3Service::instance() - ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['dynamic'] = Ks3Service::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['origin_cover'] = Ks3Service::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); - // 视频封面 - $backtrack['yun']['video_info']['cover'] = Ks3Service::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); - // 视频文件 - $backtrack['yun']['video_info']['play'] = Ks3Service::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); - // 视频文件 - $backtrack['yun']['video_info']['playwm'] = Ks3Service::instance() - ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); - break; - case "storage": - $domain_name = config('dtapp.storage.domain_name'); - $new_yun_path = config("dtapp.storage.domain_list.{$domain_name}") . "upload/watermark/{$yun_path}"; - // 本地存储 - // 作者头像 - $backtrack['yun']['author_info']['avatar'] = ($new_yun_path) . $backtrack['author_info']['uid'] . ".jpeg"; - // 音频头像 - $backtrack['yun']['music_info']['avatar'] = $new_yun_path . $backtrack['music_info']['mid'] . ".jpeg"; - // 音频文件 - if (!empty($backtrack['music_info']['play'])) { - $backtrack['yun']['music_info']['play'] = $new_yun_path . $backtrack['music_info']['mid'] . ".mp3"; - } else { - $backtrack['yun']['music_info']['play'] = $new_yun_path; - } - // 音频封面 - $backtrack['yun']['music_info']['cover'] = $new_yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"; - // 视频封面 - $backtrack['yun']['video_info']['dynamic'] = $new_yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"; - // 视频封面 - $backtrack['yun']['video_info']['origin_cover'] = $new_yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"; - // 视频封面 - $backtrack['yun']['video_info']['cover'] = $new_yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"; - // 视频文件 - $backtrack['yun']['video_info']['play'] = $new_yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"; - // 视频文件 - $backtrack['yun']['video_info']['playwm'] = $new_yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"; - break; - default: - break; - } - // 大小信息 - // 作者头像 - $backtrack['size']['author_info']['avatar'] = $author_info_avatar['size']; - // 音频头像 - $backtrack['size']['music_info']['avatar'] = $music_info_avatar['size']; - // 音频文件 - $backtrack['size']['music_info']['play'] = $music_info_play['size']; - // 音频封面 - $backtrack['size']['music_info']['cover'] = $music_info_cover['size']; - // 视频封面 - $backtrack['size']['video_info']['dynamic'] = $video_info_dynamic['size']; - // 视频封面 - $backtrack['size']['video_info']['origin_cover'] = $video_info_origin_cover['size']; - // 视频封面 - $backtrack['size']['video_info']['cover'] = $video_info_cover['size']; - // 视频文件 - $backtrack['size']['video_info']['play'] = $video_info_play['size']; - // 视频文件 - $backtrack['size']['video_info']['playwm'] = $video_info_playwm['size']; - } - $this->backtrack = $backtrack; - } else { - $this->backtrack = []; - } - return $this; - } - - /** - * 获取 - * @param $url - * @return bool|string - */ - private function getContents($url) - { - ini_set('user_agent', 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1'); - return file_get_contents($url); - } - - /** - * 判断网址是否确认 - * @param $url - * @return string - */ - private function judgeUrl($url) - { - if (strpos($url, 'douyin.com') !== false) { - return $url; - } - - if (strpos($url, 'iesdouyin.com') !== false) { - return $url; - } - - return ''; - } - - /** - * 正则匹配 mid - * @param $content - * @return mixed - * @throws DtaException - */ - private function getItemId($content) - { - preg_match('/"(?<=itemId:\s\")\d+"/', $content, $matches); - if (!isset($matches[0])) { - throw new DtaException('视频不存在'); - } - preg_match("~\"(.*?)\"~", $matches[0], $matches2); - if (!isset($matches2[1])) { - throw new DtaException('视频不存在'); - } - return $matches2[1]; - } - - /** - * 正则匹配 dytk - * @param $content - * @return mixed - * @throws DtaException - */ - private function getDyTk($content) - { - preg_match("~dytk(.*?)}~", $content, $matches); - if (!isset($matches[1])) { - throw new DtaException('视频不存在'); - } - $Dytk = $matches[1]; - preg_match("~\"(.*?)\"~", $Dytk, $matches2); - if (!isset($matches2[1])) { - throw new DtaException('视频不存在'); - } - return $matches2[1]; - } - - /** - * 返回Array - * @return array|mixed - */ - public function toArray() - { - if (empty($this->backtrack)) { - return []; - } - if (is_array($this->backtrack)) { - return $this->backtrack; - } - return json_decode($this->backtrack, true); - } - - /** - * 返回Object - * @return object|string|mixed - */ - public function toObject() - { - if (empty($this->backtrack)) { - return ''; - } - if (is_object($this->backtrack)) { - return $this->backtrack; - } - $obj = new StdClass(); - foreach ($this->backtrack as $key => $val) { - $obj->$key = $val; - } - return $obj; - } - - /** - * 处理作者头像 大到小 - * @param $data - * @return string - */ - private function cAuthorAvatar($data): string - { - // 1080x1080 - return $data['avatar_larger']['url_list'][0] ?? $data['avatar_medium']['url_list'][0] ?? $data['avatar_thumb']['url_list'][0] ?? ''; - } - - /** - * 处理音乐作者头像 大到小 - * @param $data - * @return string - */ - private function cMusicAvatar($data): string - { - // 1080x1080 - return $data['cover_hd']['url_list'][0] ?? $data['cover_medium']['url_list'][0] ?? $data['cover_thumb']['url_list'][0] ?? ''; - } - - /** - * 处理视频封面 大到小 - * @param $data - * @return array - */ - private function cVideoAvatar($data): array - { - $array = []; - $array['dynamic'] = ''; - $array['origin_cover'] = ''; - $array['cover'] = ''; - // 动态 - if (isset($data['dynamic_cover']['url_list'][0])) { - $array['dynamic'] = substr($data['dynamic_cover']['url_list'][0], 0, strpos($data['dynamic_cover']['url_list'][0], '?from=')); - } - // width封面 - if (isset($data['origin_cover']['url_list'][0])) { - $array['origin_cover'] = substr($data['origin_cover']['url_list'][0], 0, strpos($data['origin_cover']['url_list'][0], '?from=')); - } - // height封面 - if (isset($data['cover']['url_list'][0])) { - $array['cover'] = substr($data['cover']['url_list'][0], 0, strpos($data['cover']['url_list'][0], '?from=')); - } - return $array; - } - - /** - * 返回302网址 - * @param $url - * @param $type - * @return mixed - */ - private function cVideoPlayUrl($url, $type) - { - if ($type === 'play') { - $headers = get_headers(str_replace("/playwm/", "/play/", $url), TRUE); - } else { - $headers = get_headers($url, TRUE); - } - //输出跳转到的网址 - return $headers['location']; - } -} +judgeUrl($str); + if (empty($url)) { + throw new DtaException('配置网址内容不正确'); + } + $this->url = $url; + } else { + preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $str, $match); + $url = $this->judgeUrl($match[0][0]); + if (empty($url)) { + throw new DtaException('配置网址内容不正确'); + } + $this->url = $url; + } + $content = $this->getContents($this->url); + $this->itemId = $this->getItemId($content); + $this->dytk = $this->getDyTk($content); + return $this; + } + + /** + * 云存储 + * @param string $type + * @param string $path + * @return $this + */ + public function storage(string $type, string $path): self + { + $this->storage = $type; + $this->storagePath = $path; + return $this; + } + + /** + * 获取作者信息 + * @return string + */ + public function getAuthorInfo() + { + $this->getApi(); + $data = json_decode($this->contents, true); + if (empty($data['status_code'])) { + $item_list = $data['item_list'][0]; + $backtrack = []; + $backtrack['uid'] = $item_list['author']['uid']; + $backtrack['nickname'] = $item_list['author']['nickname']; + $backtrack['unique_id'] = $item_list['author']['unique_id']; + $backtrack['short_id'] = $item_list['author']['short_id']; + $backtrack['avatar'] = $this->cAuthorAvatar($item_list['author']); + $this->backtrack = $backtrack; + } else { + $this->backtrack = []; + } + return $this; + } + + /** + * 获取分享信息 + * @return string + */ + public function getShareInfo() + { + $this->getApi(); + $data = json_decode($this->contents, true); + if (empty($data['status_code'])) { + $item_list = $data['item_list'][0]; + $backtrack = []; + $backtrack['weibo_desc'] = $item_list['share_info']['share_weibo_desc']; + $backtrack['desc'] = $item_list['share_info']['share_desc']; + $backtrack['title'] = $item_list['share_info']['share_title']; + $backtrack['url'] = $item_list['share_url']; + $this->backtrack = $backtrack; + } else { + $this->backtrack = []; + } + return $this; + } + + /** + * 获取音乐信息 + * @return string + */ + public function getMusicInfo(): string + { + $this->getApi(); + $data = json_decode($this->contents, true); + if (empty($data['status_code'])) { + $item_list = $data['item_list'][0]; + $backtrack = []; + $backtrack['id'] = $item_list['music']['id']; + $backtrack['mid'] = $item_list['music']['mid']; + $backtrack['title'] = $item_list['music']['title']; + $backtrack['author'] = $item_list['music']['author']; + $backtrack['avatar'] = $this->cMusicAvatar($item_list['music']); + $backtrack['play'] = $item_list['music']['play_url']['uri']; + $backtrack['cover'] = $item_list['music']['cover_large']['url_list'][0]; + $this->backtrack = $backtrack; + } else { + $this->backtrack = []; + } + return $this; + } + + /** + * 获取视频信息 + * @return string + */ + public function getVideoInfo() + { + $this->getApi(); + $data = json_decode($this->contents, true); + if (empty($data['status_code'])) { + $item_list = $data['item_list'][0]; + $backtrack = []; + $backtrack['vid'] = $item_list['video']['vid']; + $backtrack['desc'] = $item_list['desc']; + $backtrack['width'] = $item_list['video']['width']; + $backtrack['height'] = $item_list['video']['height']; + $cVideoAvatar = $this->cVideoAvatar($item_list['video']); + $backtrack['dynamic'] = $cVideoAvatar['dynamic']; + $backtrack['origin_cover'] = $cVideoAvatar['origin_cover']; + $backtrack['cover'] = $cVideoAvatar['cover']; + $backtrack['play'] = $this->cVideoPlayUrl($item_list['video']['play_addr']['url_list'][0], 'play'); + $backtrack['playwm'] = $this->cVideoPlayUrl($item_list['video']['play_addr']['url_list'][0], 'playwm'); + $this->backtrack = $backtrack; + } else { + $this->backtrack = []; + } + return $this; + } + + /** + * 获取接口全部信息 + * @return $this + */ + public function getApi(): self + { + $this->apiUrl = "https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?item_ids={$this->itemId}&dytk={$this->dytk}"; + $this->contents = $this->getContents($this->apiUrl); + $this->backtrack = $this->contents; + return $this; + } + + /** + * 获取全部信息 + * @return $this + * @throws Exception + */ + public function getAll() + { + $this->getApi(); + $data = json_decode($this->contents, true); + if (empty($data['status_code'])) { + $item_list = $data['item_list'][0]; + $backtrack = []; + // 作者信息 + $backtrack['author_info']['uid'] = $item_list['author']['uid']; + $backtrack['author_info']['nickname'] = $item_list['author']['nickname']; + $backtrack['author_info']['unique_id'] = $item_list['author']['unique_id']; + $backtrack['author_info']['short_id'] = $item_list['author']['short_id']; + $backtrack['author_info']['avatar'] = $this->cAuthorAvatar($item_list['author']); + // 分享信息 + $backtrack['share_info']['weibo_desc'] = $item_list['share_info']['share_weibo_desc']; + $backtrack['share_info']['desc'] = $item_list['share_info']['share_desc']; + $backtrack['share_info']['title'] = $item_list['share_info']['share_title']; + $backtrack['share_info']['url'] = $item_list['share_url']; + // 音乐信息 + $backtrack['music_info']['id'] = $item_list['music']['id'] ?? ''; + $backtrack['music_info']['mid'] = $item_list['music']['mid'] ?? ''; + $backtrack['music_info']['title'] = $item_list['music']['title'] ?? ''; + $backtrack['music_info']['author'] = $item_list['music']['author'] ?? ''; + $backtrack['music_info']['avatar'] = isset($item_list['music']) ? $this->cMusicAvatar($item_list['music']) : ''; + $backtrack['music_info']['play'] = $item_list['music']['play_url']['uri'] ?? ''; + $backtrack['music_info']['cover'] = $item_list['music']['cover_large']['url_list'][0] ?? ''; + // 视频信息 + $backtrack['video_info']['vid'] = $item_list['video']['vid']; + $backtrack['video_info']['desc'] = $item_list['desc']; + $backtrack['video_info']['width'] = $item_list['video']['width']; + $backtrack['video_info']['height'] = $item_list['video']['height']; + $cVideoAvatar = $this->cVideoAvatar($item_list['video']); + $backtrack['video_info']['dynamic'] = $cVideoAvatar['dynamic']; + $backtrack['video_info']['origin_cover'] = $cVideoAvatar['origin_cover']; + $backtrack['video_info']['cover'] = $cVideoAvatar['cover']; + $backtrack['video_info']['play'] = $this->cVideoPlayUrl($item_list['video']['play_addr']['url_list'][0], 'play'); + $backtrack['video_info']['playwm'] = $this->cVideoPlayUrl($item_list['video']['play_addr']['url_list'][0], 'playwm'); + $this->storagePath .= $backtrack['author_info']['uid'] . "/"; + if (!empty($this->storage)) { + // 保存文件 + // 作者头像 + $author_info_avatar = StorageService::instance() + ->path($this->storagePath) + ->remotely($backtrack['author_info']['avatar']) + ->save($backtrack['author_info']['uid'] . ".jpeg"); + // 音频头像 + $music_info_avatar = StorageService::instance() + ->path($this->storagePath) + ->remotely($backtrack['music_info']['avatar']) + ->save($backtrack['music_info']['mid'] . ".jpeg"); + // 音频文件 + if (!empty($backtrack['music_info']['play'])) { + $music_info_play = StorageService::instance() + ->path($this->storagePath) + ->remotely($backtrack['music_info']['play']) + ->save($backtrack['music_info']['mid'] . ".mp3"); + } else { + $music_info_play = ['size' => '0kb']; + } + // 音频封面 + $music_info_cover = StorageService::instance() + ->path($this->storagePath) + ->remotely($backtrack['music_info']['cover']) + ->save($backtrack['music_info']['mid'] . "_cover" . ".jpeg"); + // 视频封面 + $video_info_dynamic = StorageService::instance() + ->path($this->storagePath) + ->remotely($backtrack['video_info']['dynamic']) + ->save($backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); + // 视频封面 + $video_info_origin_cover = StorageService::instance() + ->path($this->storagePath) + ->remotely($backtrack['video_info']['origin_cover']) + ->save($backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); + // 视频封面 + $video_info_cover = StorageService::instance() + ->path($this->storagePath) + ->remotely($backtrack['video_info']['cover']) + ->save($backtrack['video_info']['vid'] . "_cover" . ".jpeg"); + // 视频文件 + $video_info_play = StorageService::instance() + ->path($this->storagePath) + ->remotely($backtrack['video_info']['play']) + ->save($backtrack['video_info']['vid'] . "_play" . ".mp4"); + // 视频文件 + $video_info_playwm = StorageService::instance() + ->path($this->storagePath) + ->remotely($backtrack['video_info']['playwm']) + ->save($backtrack['video_info']['vid'] . "_playwm" . ".mp4"); + $system_path = StorageService::instance() + ->path($this->storagePath) + ->getPath(); + $yun_path = "douyin/" . $backtrack['author_info']['uid'] . '/'; + // 上传到云存储 + $backtrack['yun']['platform'] = $this->storage; + switch ($this->storage) { + case "aliyun": + // 作者头像 + $backtrack['yun']['author_info']['avatar'] = OssService::instance() + ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); + // 音频头像 + $backtrack['yun']['music_info']['avatar'] = OssService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); + // 音频文件 + if (!empty($backtrack['music_info']['play'])) { + $backtrack['yun']['music_info']['play'] = OssService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); + } else { + $backtrack['yun']['music_info']['play'] = ''; + } + // 音频封面 + $backtrack['yun']['music_info']['cover'] = OssService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['dynamic'] = OssService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['origin_cover'] = OssService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['cover'] = OssService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); + // 视频文件 + $backtrack['yun']['video_info']['play'] = OssService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); + // 视频文件 + $backtrack['yun']['video_info']['playwm'] = OssService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); + break; + case "tencentcloud": + // 作者头像 + $backtrack['yun']['author_info']['avatar'] = CosService::instance() + ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); + // 音频头像 + $backtrack['yun']['music_info']['avatar'] = CosService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); + // 音频文件 + if (!empty($backtrack['music_info']['play'])) { + $backtrack['yun']['music_info']['play'] = CosService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); + } else { + $backtrack['yun']['music_info']['play'] = ''; + } + // 音频封面 + $backtrack['yun']['music_info']['cover'] = CosService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['dynamic'] = CosService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['origin_cover'] = CosService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['cover'] = CosService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); + // 视频文件 + $backtrack['yun']['video_info']['play'] = CosService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); + // 视频文件 + $backtrack['yun']['video_info']['playwm'] = CosService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); + break; + case "huaweicloud": + // 作者头像 + $backtrack['yun']['author_info']['avatar'] = ObsService::instance() + ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); + // 音频头像 + $backtrack['yun']['music_info']['avatar'] = ObsService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); + // 音频文件 + if (!empty($backtrack['music_info']['play'])) { + $backtrack['yun']['music_info']['play'] = ObsService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); + } else { + $backtrack['yun']['music_info']['play'] = ''; + } + // 音频封面 + $backtrack['yun']['music_info']['cover'] = ObsService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['dynamic'] = ObsService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['origin_cover'] = ObsService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['cover'] = ObsService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); + // 视频文件 + $backtrack['yun']['video_info']['play'] = ObsService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); + // 视频文件 + $backtrack['yun']['video_info']['playwm'] = ObsService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); + break; + case "baiducloud": + // 作者头像 + $backtrack['yun']['author_info']['avatar'] = BosService::instance() + ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); + // 音频头像 + $backtrack['yun']['music_info']['avatar'] = BosService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); + // 音频文件 + if (!empty($backtrack['music_info']['play'])) { + $backtrack['yun']['music_info']['play'] = BosService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); + } else { + $backtrack['yun']['music_info']['play'] = ''; + } + // 音频封面 + $backtrack['yun']['music_info']['cover'] = BosService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['dynamic'] = BosService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['origin_cover'] = BosService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['cover'] = BosService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); + // 视频文件 + $backtrack['yun']['video_info']['play'] = BosService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); + // 视频文件 + $backtrack['yun']['video_info']['playwm'] = BosService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); + break; + case "qiniu": + // 作者头像 + $backtrack['yun']['author_info']['avatar'] = KodoService::instance() + ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); + // 音频头像 + $backtrack['yun']['music_info']['avatar'] = KodoService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); + // 音频文件 + if (!empty($backtrack['music_info']['play'])) { + $backtrack['yun']['music_info']['play'] = KodoService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); + } else { + $backtrack['yun']['music_info']['play'] = ''; + } + // 音频封面 + $backtrack['yun']['music_info']['cover'] = KodoService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['dynamic'] = KodoService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['origin_cover'] = KodoService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['cover'] = KodoService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); + // 视频文件 + $backtrack['yun']['video_info']['play'] = KodoService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); + // 视频文件 + $backtrack['yun']['video_info']['playwm'] = KodoService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); + break; + case "upyun": + // 作者头像 + $backtrack['yun']['author_info']['avatar'] = UssService::instance() + ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); + // 音频头像 + $backtrack['yun']['music_info']['avatar'] = UssService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); + // 音频文件 + if (!empty($backtrack['music_info']['play'])) { + $backtrack['yun']['music_info']['play'] = UssService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); + } else { + $backtrack['yun']['music_info']['play'] = ''; + } + // 音频封面 + $backtrack['yun']['music_info']['cover'] = UssService::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['dynamic'] = UssService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['origin_cover'] = UssService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['cover'] = UssService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); + // 视频文件 + $backtrack['yun']['video_info']['play'] = UssService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); + // 视频文件 + $backtrack['yun']['video_info']['playwm'] = UssService::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); + break; + case "ksyun": + // 作者头像 + $backtrack['yun']['author_info']['avatar'] = Ks3Service::instance() + ->upload($yun_path . $backtrack['author_info']['uid'] . ".jpeg", $system_path . $backtrack['author_info']['uid'] . ".jpeg"); + // 音频头像 + $backtrack['yun']['music_info']['avatar'] = Ks3Service::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".jpeg", $system_path . $backtrack['music_info']['mid'] . ".jpeg"); + // 音频文件 + if (!empty($backtrack['music_info']['play'])) { + $backtrack['yun']['music_info']['play'] = Ks3Service::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . ".mp3", $system_path . $backtrack['music_info']['mid'] . ".mp3"); + } else { + $backtrack['yun']['music_info']['play'] = ''; + } + // 音频封面 + $backtrack['yun']['music_info']['cover'] = Ks3Service::instance() + ->upload($yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg", $system_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['dynamic'] = Ks3Service::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['origin_cover'] = Ks3Service::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"); + // 视频封面 + $backtrack['yun']['video_info']['cover'] = Ks3Service::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg", $system_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"); + // 视频文件 + $backtrack['yun']['video_info']['play'] = Ks3Service::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"); + // 视频文件 + $backtrack['yun']['video_info']['playwm'] = Ks3Service::instance() + ->upload($yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4", $system_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"); + break; + case "storage": + $domain_name = config('dtapp.storage.domain_name'); + $new_yun_path = config("dtapp.storage.domain_list.{$domain_name}") . "upload/watermark/{$yun_path}"; + // 本地存储 + // 作者头像 + $backtrack['yun']['author_info']['avatar'] = ($new_yun_path) . $backtrack['author_info']['uid'] . ".jpeg"; + // 音频头像 + $backtrack['yun']['music_info']['avatar'] = $new_yun_path . $backtrack['music_info']['mid'] . ".jpeg"; + // 音频文件 + if (!empty($backtrack['music_info']['play'])) { + $backtrack['yun']['music_info']['play'] = $new_yun_path . $backtrack['music_info']['mid'] . ".mp3"; + } else { + $backtrack['yun']['music_info']['play'] = $new_yun_path; + } + // 音频封面 + $backtrack['yun']['music_info']['cover'] = $new_yun_path . $backtrack['music_info']['mid'] . "_cover" . ".jpeg"; + // 视频封面 + $backtrack['yun']['video_info']['dynamic'] = $new_yun_path . $backtrack['video_info']['vid'] . "_dynamic" . ".jpeg"; + // 视频封面 + $backtrack['yun']['video_info']['origin_cover'] = $new_yun_path . $backtrack['video_info']['vid'] . "_origin_cover" . ".jpeg"; + // 视频封面 + $backtrack['yun']['video_info']['cover'] = $new_yun_path . $backtrack['video_info']['vid'] . "_cover" . ".jpeg"; + // 视频文件 + $backtrack['yun']['video_info']['play'] = $new_yun_path . $backtrack['video_info']['vid'] . "_play" . ".mp4"; + // 视频文件 + $backtrack['yun']['video_info']['playwm'] = $new_yun_path . $backtrack['video_info']['vid'] . "_playwm" . ".mp4"; + break; + default: + break; + } + // 大小信息 + // 作者头像 + $backtrack['size']['author_info']['avatar'] = $author_info_avatar['size']; + // 音频头像 + $backtrack['size']['music_info']['avatar'] = $music_info_avatar['size']; + // 音频文件 + $backtrack['size']['music_info']['play'] = $music_info_play['size']; + // 音频封面 + $backtrack['size']['music_info']['cover'] = $music_info_cover['size']; + // 视频封面 + $backtrack['size']['video_info']['dynamic'] = $video_info_dynamic['size']; + // 视频封面 + $backtrack['size']['video_info']['origin_cover'] = $video_info_origin_cover['size']; + // 视频封面 + $backtrack['size']['video_info']['cover'] = $video_info_cover['size']; + // 视频文件 + $backtrack['size']['video_info']['play'] = $video_info_play['size']; + // 视频文件 + $backtrack['size']['video_info']['playwm'] = $video_info_playwm['size']; + } + $this->backtrack = $backtrack; + } else { + $this->backtrack = []; + } + return $this; + } + + /** + * 获取 + * @param $url + * @return bool|string + */ + private function getContents($url) + { + ini_set('user_agent', 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1'); + return file_get_contents($url); + } + + /** + * 判断网址是否确认 + * @param $url + * @return string + */ + private function judgeUrl($url) + { + if (strpos($url, 'douyin.com') !== false) { + return $url; + } + + if (strpos($url, 'iesdouyin.com') !== false) { + return $url; + } + + return ''; + } + + /** + * 正则匹配 mid + * @param $content + * @return mixed + * @throws DtaException + */ + private function getItemId($content) + { + preg_match('/"(?<=itemId:\s\")\d+"/', $content, $matches); + if (!isset($matches[0])) { + throw new DtaException('视频不存在'); + } + preg_match("~\"(.*?)\"~", $matches[0], $matches2); + if (!isset($matches2[1])) { + throw new DtaException('视频不存在'); + } + return $matches2[1]; + } + + /** + * 正则匹配 dytk + * @param $content + * @return mixed + * @throws DtaException + */ + private function getDyTk($content) + { + preg_match("~dytk(.*?)}~", $content, $matches); + if (!isset($matches[1])) { + throw new DtaException('视频不存在'); + } + $Dytk = $matches[1]; + preg_match("~\"(.*?)\"~", $Dytk, $matches2); + if (!isset($matches2[1])) { + throw new DtaException('视频不存在'); + } + return $matches2[1]; + } + + /** + * 返回Array + * @return array|mixed + */ + public function toArray() + { + if (empty($this->backtrack)) { + return []; + } + if (is_array($this->backtrack)) { + return $this->backtrack; + } + return json_decode($this->backtrack, true); + } + + /** + * 返回Object + * @return object|string|mixed + */ + public function toObject() + { + if (empty($this->backtrack)) { + return ''; + } + if (is_object($this->backtrack)) { + return $this->backtrack; + } + $obj = new StdClass(); + foreach ($this->backtrack as $key => $val) { + $obj->$key = $val; + } + return $obj; + } + + /** + * 处理作者头像 大到小 + * @param $data + * @return string + */ + private function cAuthorAvatar($data): string + { + // 1080x1080 + return $data['avatar_larger']['url_list'][0] ?? $data['avatar_medium']['url_list'][0] ?? $data['avatar_thumb']['url_list'][0] ?? ''; + } + + /** + * 处理音乐作者头像 大到小 + * @param $data + * @return string + */ + private function cMusicAvatar($data): string + { + // 1080x1080 + return $data['cover_hd']['url_list'][0] ?? $data['cover_medium']['url_list'][0] ?? $data['cover_thumb']['url_list'][0] ?? ''; + } + + /** + * 处理视频封面 大到小 + * @param $data + * @return array + */ + private function cVideoAvatar($data): array + { + $array = []; + $array['dynamic'] = ''; + $array['origin_cover'] = ''; + $array['cover'] = ''; + // 动态 + if (isset($data['dynamic_cover']['url_list'][0])) { + $array['dynamic'] = substr($data['dynamic_cover']['url_list'][0], 0, strpos($data['dynamic_cover']['url_list'][0], '?from=')); + } + // width封面 + if (isset($data['origin_cover']['url_list'][0])) { + $array['origin_cover'] = substr($data['origin_cover']['url_list'][0], 0, strpos($data['origin_cover']['url_list'][0], '?from=')); + } + // height封面 + if (isset($data['cover']['url_list'][0])) { + $array['cover'] = substr($data['cover']['url_list'][0], 0, strpos($data['cover']['url_list'][0], '?from=')); + } + return $array; + } + + /** + * 返回302网址 + * @param $url + * @param $type + * @return mixed + */ + private function cVideoPlayUrl($url, $type) + { + if ($type === 'play') { + $headers = get_headers(str_replace("/playwm/", "/play/", $url), TRUE); + } else { + $headers = get_headers($url, TRUE); + } + //输出跳转到的网址 + return $headers['location']; + } +} diff --git a/src/service/huaweicloud/ObsService.php b/src/service/huaweicloud/ObsService.php index acbe0c1..1eb4c35 100644 --- a/src/service/huaweicloud/ObsService.php +++ b/src/service/huaweicloud/ObsService.php @@ -1,99 +1,99 @@ -key = $key; - return $this; - } - - /** - * @param string $secret - * @return $this - */ - public function secret(string $secret): self - { - $this->secret = $secret; - return $this; - } - - /** - * @param string $endpoint - * @return $this - */ - public function endpoint(string $endpoint): self - { - $this->endpoint = $endpoint; - return $this; - } - - /** - * @param string $bucket - * @return $this - */ - public function bucket(string $bucket): self - { - $this->bucket = $bucket; - return $this; - } - - /** - * @param string $object - * @param string $filePath - * @return bool - */ - public function upload(string $object, string $filePath): bool - { - // 创建ObsClient实例 - $obsClient = new ObsClient([ - 'key' => $this->key, - 'secret' => $this->secret, - 'endpoint' => $this->endpoint - ]); - $resp = $obsClient->putObject([ - 'Bucket' => $this->bucket, - 'Key' => $object, - 'SourceFile' => $filePath // localfile为待上传的本地文件路径,需要指定到具体的文件名 - ]); - if (isset($resp['RequestId'])) { - return true; - } - - return false; - } -} +key = $key; + return $this; + } + + /** + * @param string $secret + * @return $this + */ + public function secret(string $secret): self + { + $this->secret = $secret; + return $this; + } + + /** + * @param string $endpoint + * @return $this + */ + public function endpoint(string $endpoint): self + { + $this->endpoint = $endpoint; + return $this; + } + + /** + * @param string $bucket + * @return $this + */ + public function bucket(string $bucket): self + { + $this->bucket = $bucket; + return $this; + } + + /** + * @param string $object + * @param string $filePath + * @return bool + */ + public function upload(string $object, string $filePath): bool + { + // 创建ObsClient实例 + $obsClient = new ObsClient([ + 'key' => $this->key, + 'secret' => $this->secret, + 'endpoint' => $this->endpoint + ]); + $resp = $obsClient->putObject([ + 'Bucket' => $this->bucket, + 'Key' => $object, + 'SourceFile' => $filePath // localfile为待上传的本地文件路径,需要指定到具体的文件名 + ]); + if (isset($resp['RequestId'])) { + return true; + } + + return false; + } +} diff --git a/src/service/jd/UnionService.php b/src/service/jd/UnionService.php index 10b57d0..5abdff1 100644 --- a/src/service/jd/UnionService.php +++ b/src/service/jd/UnionService.php @@ -1,530 +1,530 @@ -app_key = $appKey; - return $this; - } - - /** - * 联盟分配给应用的secretkey - * @param string $secretKey - * @return $this - */ - public function secretKey(string $secretKey): self - { - $this->secret_key = $secretKey; - return $this; - } - - /** - * 根据API属性标签,如果需要授权,则此参数必传;如果不需要授权,则此参数不需要传 - * @param string $accessToken - * @return $this - */ - public function accessToken(string $accessToken): self - { - $this->access_token = $accessToken; - return $this; - } - - /** - * 组参 - * @param array $param - * @return $this - */ - public function param(array $param): self - { - $this->param = $param; - return $this; - } - - /** - * 网络请求 - * @throws DtaException - */ - private function http(): void - { - //生成签名 - $sign = $this->createSign(); - //组织参数 - $strParam = $this->createStrParam(); - $strParam .= 'sign=' . $sign; - //访问服务 - $result = file_get_contents("{$this->url}?{$strParam}"); - var_dump("{$this->url}?{$strParam}"); - $result = json_decode($result, true); - $this->output = $result; - } - - /** - * 获取配置信息 - * @return $this - */ - private function getConfig(): self - { - $this->app_key = config('dtapp.jd.union.app_key'); - $this->secret_key = config('dtapp.jd.union.secret_key'); - return $this; - } - - /** - * 网站/APP获取推广链接接口 - * https://union.jd.com/openplatform/api/10421 - * @return $this - */ - public function promotionCommonGet(): self - { - $this->method = 'jd.union.open.promotion.common.get'; - return $this; - } - - /** - * 社交媒体获取推广链接接口【申请】 - * https://union.jd.com/openplatform/api/10424 - * @return $this - */ - public function promotionBySubUnionIdGet(): self - { - $this->method = 'jd.union.open.promotion.bysubunionid.get'; - return $this; - } - - /** - * 工具商获取推广链接接口【申请】 - * https://union.jd.com/openplatform/api/10425 - * @return $this - */ - public function promotionByUnionIdGet(): self - { - $this->method = 'jd.union.open.promotion.byunionid.get'; - return $this; - } - - /** - * 订单行查询接口 - * https://union.jd.com/openplatform/api/12707 - * @return $this - */ - public function orderRowQuery(): self - { - $this->method = 'jd.union.open.order.row.query'; - return $this; - } - - /** - * 奖励订单查询接口【申请】 - * https://union.jd.com/openplatform/api/11781 - * @return $this - */ - public function orderBonusQuery(): self - { - $this->method = 'jd.union.open.order.bonus.query'; - return $this; - } - - /** - * 创建推广位【申请】 - * https://union.jd.com/openplatform/api/10429 - * @return $this - */ - public function positionCreate(): self - { - $this->method = 'jd.union.open.position.create'; - return $this; - } - - /** - * 查询推广位【申请】 - * https://union.jd.com/openplatform/api/10428 - * @return $this - */ - public function positionQuery(): self - { - $this->method = 'jd.union.open.position.query'; - return $this; - } - - /** - * 获取PID【申请】 - * https://union.jd.com/openplatform/api/10430 - * @return $this - */ - public function userPidGet(): self - { - $this->method = 'jd.union.open.user.pid.get'; - return $this; - } - - /** - * 关键词商品查询接口【申请】 - * https://union.jd.com/openplatform/api/10421 - * @return $this - */ - public function goodsQuery(): self - { - $this->method = 'jd.union.open.goods.query'; - return $this; - } - - /** - * 京粉精选商品查询接口 - * https://union.jd.com/openplatform/api/10417 - * @return $this - */ - public function goodsJIngFenQuery(): self - { - if (!isset($this->param['pageIndex'])) { - $this->param['pageIndex'] = 1; - } - if (!isset($this->param['pageSize'])) { - $this->param['pageSize'] = 20; - } - $this->method = 'jd.union.open.goods.jingfen.query'; - return $this; - } - - /** - * 根据skuid查询商品信息接口 - * https://union.jd.com/openplatform/api/10422 - * @return $this - */ - public function goodsPromotionGoodsInfoQuery(): self - { - $this->method = 'jd.union.open.goods.promotiongoodsinfo.query'; - return $this; - } - - /** - * 礼金创建【申请】 - * https://union.jd.com/openplatform/api/12246 - * @return $this - */ - public function couponGiftGet(): self - { - $this->method = 'jd.union.open.coupon.gift.get'; - return $this; - } - - /** - * 礼金停止【申请】 - * https://union.jd.com/openplatform/api/12240 - * @return $this - */ - public function couponGiftStop(): self - { - $this->method = 'jd.union.open.coupon.gift.stop'; - return $this; - } - - /** - * 礼金效果数据 - * https://union.jd.com/openplatform/api/12248 - * @return $this - */ - public function statisticsGifTCouponQuery(): self - { - $this->method = 'jd.union.open.statistics.giftcoupon.query'; - return $this; - } - - /** - * 自定义接口 - * @param string $method - * @return $this - */ - public function setMethod($method = ''): self - { - $this->method = $method; - return $this; - } - - /** - * 返回数组数据 - * @return array|mixed - * @throws DtaException - */ - public function toArray() - { - //首先检测是否支持curl - if (!extension_loaded("curl")) { - throw new HttpException(404, '请开启curl模块!'); - } - if (empty($this->app_key)) { - $this->getConfig(); - } - if (empty($this->app_key)) { - throw new DtaException('请检查app_key参数'); - } - if (empty($this->method)) { - throw new DtaException('请检查method参数'); - } - $this->params['method'] = $this->method; - $this->params['app_key'] = $this->app_key; - $this->params['timestamp'] = date('Y-m-d H:i:s'); - $this->params['format'] = $this->format; - $this->params['v'] = $this->v; - $this->params['sign_method'] = $this->sign_method; - $this->params['param_json'] = json_encode($this->param, JSON_UNESCAPED_UNICODE); - $this->http(); - $response = Strings::replace('.', '_', $this->method) . "_response"; - if (isset($this->output[$response]['result'])) { - if (is_array($this->output[$response]['result'])) { - return $this->output[$response]['result']; - } - if (is_object($this->output[$response]['result'])) { - $this->output = json_encode($this->output[$response]['result'], JSON_UNESCAPED_UNICODE); - } - return json_decode($this->output[$response]['result'], true); - } - - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); - } - return json_decode($this->output, true); - } - - /** - * 签名 - * @return string - * @throws DtaException - */ - private function createSign(): string - { - if (empty($this->secret_key)) { - $this->getConfig(); - } - if (empty($this->secret_key)) { - throw new DtaException('请检查secret_key参数'); - } - $sign = $this->secret_key; - ksort($this->params); - foreach ($this->params as $key => $val) { - if ($key !== '' && $val !== '') { - $sign .= $key . $val; - } - } - $sign .= $this->secret_key; - $sign = strtoupper(md5($sign)); - return $sign; - } - - /** - * 组参 - * @return string - */ - private function createStrParam(): string - { - $strParam = ''; - foreach ($this->params as $key => $val) { - if ($key !== '' && $val !== '') { - $strParam .= $key . '=' . urlencode($val) . '&'; - } - } - return $strParam; - } - - /** - * 获取频道ID - * @return array[] - */ - public function getEliteIdList(): array - { - return [ - [ - // https://union.jd.com/openplatform/api/10417 - 'name' => '京粉精选', - 'list' => [ - [ - 'name' => '好券商品', - 'elite_id' => 1 - ], - [ - 'name' => '超级大卖场', - 'elite_id' => 2 - ], - [ - 'name' => '9.9专区', - 'elite_id' => 10 - ], - [ - 'name' => '热销爆品', - 'elite_id' => 22 - ], - [ - 'name' => '为你推荐', - 'elite_id' => 23 - ], - [ - 'name' => '数码家电', - 'elite_id' => 24 - ], - [ - 'name' => '超市', - 'elite_id' => 25 - ], - [ - 'name' => '母婴玩具', - 'elite_id' => 26 - ], - [ - 'name' => '家具日用', - 'elite_id' => 27 - ], - [ - 'name' => '美妆穿搭', - 'elite_id' => 28 - ], - [ - 'name' => '医药保健', - 'elite_id' => 29 - ], - [ - 'name' => '图书文具', - 'elite_id' => 30 - ], - [ - 'name' => '今日必推', - 'elite_id' => 31 - ], - [ - 'name' => '品牌好货', - 'elite_id' => 32 - ], - [ - 'name' => '秒杀商品', - 'elite_id' => 33 - ], - [ - 'name' => '拼购商品', - 'elite_id' => 34 - ], - [ - 'name' => '高收益', - 'elite_id' => 40 - ], - [ - 'name' => '自营热卖榜', - 'elite_id' => 41 - ], - [ - 'name' => '新品首发', - 'elite_id' => 109 - ], - [ - 'name' => '自营', - 'elite_id' => 110 - ], - [ - 'name' => '首购商品', - 'elite_id' => 125 - ], - [ - 'name' => '高佣榜单', - 'elite_id' => 129 - ], - [ - 'name' => '视频商品', - 'elite_id' => 130 - ], - ] - ], - ]; - } -} +app_key = $appKey; + return $this; + } + + /** + * 联盟分配给应用的secretkey + * @param string $secretKey + * @return $this + */ + public function secretKey(string $secretKey): self + { + $this->secret_key = $secretKey; + return $this; + } + + /** + * 根据API属性标签,如果需要授权,则此参数必传;如果不需要授权,则此参数不需要传 + * @param string $accessToken + * @return $this + */ + public function accessToken(string $accessToken): self + { + $this->access_token = $accessToken; + return $this; + } + + /** + * 组参 + * @param array $param + * @return $this + */ + public function param(array $param): self + { + $this->param = $param; + return $this; + } + + /** + * 网络请求 + * @throws DtaException + */ + private function http(): void + { + //生成签名 + $sign = $this->createSign(); + //组织参数 + $strParam = $this->createStrParam(); + $strParam .= 'sign=' . $sign; + //访问服务 + $result = file_get_contents("{$this->url}?{$strParam}"); + var_dump("{$this->url}?{$strParam}"); + $result = json_decode($result, true); + $this->output = $result; + } + + /** + * 获取配置信息 + * @return $this + */ + private function getConfig(): self + { + $this->app_key = config('dtapp.jd.union.app_key'); + $this->secret_key = config('dtapp.jd.union.secret_key'); + return $this; + } + + /** + * 网站/APP获取推广链接接口 + * https://union.jd.com/openplatform/api/10421 + * @return $this + */ + public function promotionCommonGet(): self + { + $this->method = 'jd.union.open.promotion.common.get'; + return $this; + } + + /** + * 社交媒体获取推广链接接口【申请】 + * https://union.jd.com/openplatform/api/10424 + * @return $this + */ + public function promotionBySubUnionIdGet(): self + { + $this->method = 'jd.union.open.promotion.bysubunionid.get'; + return $this; + } + + /** + * 工具商获取推广链接接口【申请】 + * https://union.jd.com/openplatform/api/10425 + * @return $this + */ + public function promotionByUnionIdGet(): self + { + $this->method = 'jd.union.open.promotion.byunionid.get'; + return $this; + } + + /** + * 订单行查询接口 + * https://union.jd.com/openplatform/api/12707 + * @return $this + */ + public function orderRowQuery(): self + { + $this->method = 'jd.union.open.order.row.query'; + return $this; + } + + /** + * 奖励订单查询接口【申请】 + * https://union.jd.com/openplatform/api/11781 + * @return $this + */ + public function orderBonusQuery(): self + { + $this->method = 'jd.union.open.order.bonus.query'; + return $this; + } + + /** + * 创建推广位【申请】 + * https://union.jd.com/openplatform/api/10429 + * @return $this + */ + public function positionCreate(): self + { + $this->method = 'jd.union.open.position.create'; + return $this; + } + + /** + * 查询推广位【申请】 + * https://union.jd.com/openplatform/api/10428 + * @return $this + */ + public function positionQuery(): self + { + $this->method = 'jd.union.open.position.query'; + return $this; + } + + /** + * 获取PID【申请】 + * https://union.jd.com/openplatform/api/10430 + * @return $this + */ + public function userPidGet(): self + { + $this->method = 'jd.union.open.user.pid.get'; + return $this; + } + + /** + * 关键词商品查询接口【申请】 + * https://union.jd.com/openplatform/api/10421 + * @return $this + */ + public function goodsQuery(): self + { + $this->method = 'jd.union.open.goods.query'; + return $this; + } + + /** + * 京粉精选商品查询接口 + * https://union.jd.com/openplatform/api/10417 + * @return $this + */ + public function goodsJIngFenQuery(): self + { + if (!isset($this->param['pageIndex'])) { + $this->param['pageIndex'] = 1; + } + if (!isset($this->param['pageSize'])) { + $this->param['pageSize'] = 20; + } + $this->method = 'jd.union.open.goods.jingfen.query'; + return $this; + } + + /** + * 根据skuid查询商品信息接口 + * https://union.jd.com/openplatform/api/10422 + * @return $this + */ + public function goodsPromotionGoodsInfoQuery(): self + { + $this->method = 'jd.union.open.goods.promotiongoodsinfo.query'; + return $this; + } + + /** + * 礼金创建【申请】 + * https://union.jd.com/openplatform/api/12246 + * @return $this + */ + public function couponGiftGet(): self + { + $this->method = 'jd.union.open.coupon.gift.get'; + return $this; + } + + /** + * 礼金停止【申请】 + * https://union.jd.com/openplatform/api/12240 + * @return $this + */ + public function couponGiftStop(): self + { + $this->method = 'jd.union.open.coupon.gift.stop'; + return $this; + } + + /** + * 礼金效果数据 + * https://union.jd.com/openplatform/api/12248 + * @return $this + */ + public function statisticsGifTCouponQuery(): self + { + $this->method = 'jd.union.open.statistics.giftcoupon.query'; + return $this; + } + + /** + * 自定义接口 + * @param string $method + * @return $this + */ + public function setMethod($method = ''): self + { + $this->method = $method; + return $this; + } + + /** + * 返回数组数据 + * @return array|mixed + * @throws DtaException + */ + public function toArray() + { + //首先检测是否支持curl + if (!extension_loaded("curl")) { + throw new HttpException(404, '请开启curl模块!'); + } + if (empty($this->app_key)) { + $this->getConfig(); + } + if (empty($this->app_key)) { + throw new DtaException('请检查app_key参数'); + } + if (empty($this->method)) { + throw new DtaException('请检查method参数'); + } + $this->params['method'] = $this->method; + $this->params['app_key'] = $this->app_key; + $this->params['timestamp'] = date('Y-m-d H:i:s'); + $this->params['format'] = $this->format; + $this->params['v'] = $this->v; + $this->params['sign_method'] = $this->sign_method; + $this->params['param_json'] = json_encode($this->param, JSON_UNESCAPED_UNICODE); + $this->http(); + $response = Strings::replace('.', '_', $this->method) . "_response"; + if (isset($this->output[$response]['result'])) { + if (is_array($this->output[$response]['result'])) { + return $this->output[$response]['result']; + } + if (is_object($this->output[$response]['result'])) { + $this->output = json_encode($this->output[$response]['result'], JSON_UNESCAPED_UNICODE); + } + return json_decode($this->output[$response]['result'], true); + } + + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); + } + return json_decode($this->output, true); + } + + /** + * 签名 + * @return string + * @throws DtaException + */ + private function createSign(): string + { + if (empty($this->secret_key)) { + $this->getConfig(); + } + if (empty($this->secret_key)) { + throw new DtaException('请检查secret_key参数'); + } + $sign = $this->secret_key; + ksort($this->params); + foreach ($this->params as $key => $val) { + if ($key !== '' && $val !== '') { + $sign .= $key . $val; + } + } + $sign .= $this->secret_key; + $sign = strtoupper(md5($sign)); + return $sign; + } + + /** + * 组参 + * @return string + */ + private function createStrParam(): string + { + $strParam = ''; + foreach ($this->params as $key => $val) { + if ($key !== '' && $val !== '') { + $strParam .= $key . '=' . urlencode($val) . '&'; + } + } + return $strParam; + } + + /** + * 获取频道ID + * @return array[] + */ + public function getEliteIdList(): array + { + return [ + [ + // https://union.jd.com/openplatform/api/10417 + 'name' => '京粉精选', + 'list' => [ + [ + 'name' => '好券商品', + 'elite_id' => 1 + ], + [ + 'name' => '超级大卖场', + 'elite_id' => 2 + ], + [ + 'name' => '9.9专区', + 'elite_id' => 10 + ], + [ + 'name' => '热销爆品', + 'elite_id' => 22 + ], + [ + 'name' => '为你推荐', + 'elite_id' => 23 + ], + [ + 'name' => '数码家电', + 'elite_id' => 24 + ], + [ + 'name' => '超市', + 'elite_id' => 25 + ], + [ + 'name' => '母婴玩具', + 'elite_id' => 26 + ], + [ + 'name' => '家具日用', + 'elite_id' => 27 + ], + [ + 'name' => '美妆穿搭', + 'elite_id' => 28 + ], + [ + 'name' => '医药保健', + 'elite_id' => 29 + ], + [ + 'name' => '图书文具', + 'elite_id' => 30 + ], + [ + 'name' => '今日必推', + 'elite_id' => 31 + ], + [ + 'name' => '品牌好货', + 'elite_id' => 32 + ], + [ + 'name' => '秒杀商品', + 'elite_id' => 33 + ], + [ + 'name' => '拼购商品', + 'elite_id' => 34 + ], + [ + 'name' => '高收益', + 'elite_id' => 40 + ], + [ + 'name' => '自营热卖榜', + 'elite_id' => 41 + ], + [ + 'name' => '新品首发', + 'elite_id' => 109 + ], + [ + 'name' => '自营', + 'elite_id' => 110 + ], + [ + 'name' => '首购商品', + 'elite_id' => 125 + ], + [ + 'name' => '高佣榜单', + 'elite_id' => 129 + ], + [ + 'name' => '视频商品', + 'elite_id' => 130 + ], + ] + ], + ]; + } +} diff --git a/src/service/jdcloud/VientianeService.php b/src/service/jdcloud/VientianeService.php index 3809665..1c0b9db 100644 --- a/src/service/jdcloud/VientianeService.php +++ b/src/service/jdcloud/VientianeService.php @@ -1,120 +1,120 @@ -app_key = $appKey; - return $this; - } - - /** - * 组参 - * @param array $param - * @return $this - */ - public function param(array $param): self - { - $this->param = $param; - return $this; - } - - /** - * 空气质量实时数据 - * https://wx.jdcloud.com/market/datas/26/1656 - * @return array|bool|mixed|string - */ - public function pm25Cities() - { - $this->url = "https://way.jd.com/pm25/cities"; - return $this->http(); - } - - /** - * 中国和世界天气预报 - * https://wx.jdcloud.com/market/datas/26/10610 - */ - public function heFreeWeather() - { - $this->url = "https://way.jd.com/he/freeweather"; - return $this->http(); - } - - /** - * 全国天气预报 - * https://wx.jdcloud.com/market/datas/26/11065 - */ - public function jiSuApiWeather() - { - $this->url = "https://way.jd.com/jisuapi/weather"; - return $this->http(); - } - - /** - * 菜谱大全 - * https://wx.jdcloud.com/market/datas/26/11072 - */ - public function jiSuApiSearch() - { - $this->url = "https://way.jd.com/jisuapi/search"; - return $this->http(); - } - - /** - * IP商圈字典 - * https://wx.jdcloud.com/market/datas/26/13432 - */ - public function rtBaSiaIpAreaDict() - { - $this->url = "https://way.jd.com/RTBAsia/ip_area_dict"; - return $this->http(); - } - - /** - * 请求 - * @return array|bool|mixed|string - */ - private function http() - { - $this->param['appkey'] = $this->app_key; - $this->param = http_build_query($this->param); - return HttpService::instance() - ->url("{$this->url}?{$this->param}") - ->toArray(); - } -} +app_key = $appKey; + return $this; + } + + /** + * 组参 + * @param array $param + * @return $this + */ + public function param(array $param): self + { + $this->param = $param; + return $this; + } + + /** + * 空气质量实时数据 + * https://wx.jdcloud.com/market/datas/26/1656 + * @return array|bool|mixed|string + */ + public function pm25Cities() + { + $this->url = "https://way.jd.com/pm25/cities"; + return $this->http(); + } + + /** + * 中国和世界天气预报 + * https://wx.jdcloud.com/market/datas/26/10610 + */ + public function heFreeWeather() + { + $this->url = "https://way.jd.com/he/freeweather"; + return $this->http(); + } + + /** + * 全国天气预报 + * https://wx.jdcloud.com/market/datas/26/11065 + */ + public function jiSuApiWeather() + { + $this->url = "https://way.jd.com/jisuapi/weather"; + return $this->http(); + } + + /** + * 菜谱大全 + * https://wx.jdcloud.com/market/datas/26/11072 + */ + public function jiSuApiSearch() + { + $this->url = "https://way.jd.com/jisuapi/search"; + return $this->http(); + } + + /** + * IP商圈字典 + * https://wx.jdcloud.com/market/datas/26/13432 + */ + public function rtBaSiaIpAreaDict() + { + $this->url = "https://way.jd.com/RTBAsia/ip_area_dict"; + return $this->http(); + } + + /** + * 请求 + * @return array|bool|mixed|string + */ + private function http() + { + $this->param['appkey'] = $this->app_key; + $this->param = http_build_query($this->param); + return HttpService::instance() + ->url("{$this->url}?{$this->param}") + ->toArray(); + } +} diff --git a/src/service/ksyun/Ks3Service.php b/src/service/ksyun/Ks3Service.php index 765b767..89c1319 100644 --- a/src/service/ksyun/Ks3Service.php +++ b/src/service/ksyun/Ks3Service.php @@ -1,112 +1,112 @@ -accessKeyID = $accessKeyID; - return $this; - } - - /** - * @param string $accessKeySecret - * @return $this - */ - public function accessKeySecret(string $accessKeySecret) - { - $this->accessKeySecret = $accessKeySecret; - return $this; - } - - /** - * @param string $endpoint - * @return $this - */ - public function endpoint(string $endpoint): self - { - $this->endpoint = $endpoint; - return $this; - } - - /** - * @param string $bucket - * @return $this - */ - public function bucket(string $bucket): self - { - $this->bucket = $bucket; - return $this; - } - - /** - * @param string $object - * @param string $filePath - * @return bool - */ - public function upload(string $object, string $filePath): ?bool - { - require_once(__DIR__ . "/bin/Ks3Client.class.php"); - $client = new Ks3Client($this->accessKeyID, $this->accessKeySecret, $this->endpoint); - $content = fopen($filePath, 'rb'); - $args = [ - "Bucket" => $this->bucket, - "Key" => $object, - "Content" => [ - //要上传的内容 - "content" => $content,//可以是文件路径或者resource,如果文件大于2G,请提供文件路径 - "seek_position" => 0//跳过文件开头?个字节 - ], - "ACL" => "public-read",//可以设置访问权限,合法值,private、public-read - "ObjectMeta" => [ - //设置object的元数据,可以设置"Cache-Control","Content-Disposition","Content-Encoding","Content-Length","Content-MD5","Content-Type","Expires"。当设置了Content-Length时,最后上传的为从seek_position开始向后Content-Length个字节的内容。当设置了Content-MD5时,系统会在服务端进行md5校验。 - "Content-Type" => "binay/ocet-stream" - //"Content-Length"=>4 - ], - "UserMeta" => [ - //可以设置object的用户元数据,需要以x-kss-meta-开头 - "x-kss-meta-test" => "test" - ] - ]; - try { - $client->putObjectByFile($args); - return true; - } catch (Ks3ServiceException $e) { - return false; - } - } -} +accessKeyID = $accessKeyID; + return $this; + } + + /** + * @param string $accessKeySecret + * @return $this + */ + public function accessKeySecret(string $accessKeySecret) + { + $this->accessKeySecret = $accessKeySecret; + return $this; + } + + /** + * @param string $endpoint + * @return $this + */ + public function endpoint(string $endpoint): self + { + $this->endpoint = $endpoint; + return $this; + } + + /** + * @param string $bucket + * @return $this + */ + public function bucket(string $bucket): self + { + $this->bucket = $bucket; + return $this; + } + + /** + * @param string $object + * @param string $filePath + * @return bool + */ + public function upload(string $object, string $filePath): ?bool + { + require_once(__DIR__ . "/bin/Ks3Client.class.php"); + $client = new Ks3Client($this->accessKeyID, $this->accessKeySecret, $this->endpoint); + $content = fopen($filePath, 'rb'); + $args = [ + "Bucket" => $this->bucket, + "Key" => $object, + "Content" => [ + //要上传的内容 + "content" => $content,//可以是文件路径或者resource,如果文件大于2G,请提供文件路径 + "seek_position" => 0//跳过文件开头?个字节 + ], + "ACL" => "public-read",//可以设置访问权限,合法值,private、public-read + "ObjectMeta" => [ + //设置object的元数据,可以设置"Cache-Control","Content-Disposition","Content-Encoding","Content-Length","Content-MD5","Content-Type","Expires"。当设置了Content-Length时,最后上传的为从seek_position开始向后Content-Length个字节的内容。当设置了Content-MD5时,系统会在服务端进行md5校验。 + "Content-Type" => "binay/ocet-stream" + //"Content-Length"=>4 + ], + "UserMeta" => [ + //可以设置object的用户元数据,需要以x-kss-meta-开头 + "x-kss-meta-test" => "test" + ] + ]; + try { + $client->putObjectByFile($args); + return true; + } catch (Ks3ServiceException $e) { + return false; + } + } +} diff --git a/src/service/kuaishou/WatermarkService.php b/src/service/kuaishou/WatermarkService.php index 4dc42cc..d812fc4 100644 --- a/src/service/kuaishou/WatermarkService.php +++ b/src/service/kuaishou/WatermarkService.php @@ -1,129 +1,129 @@ -url = $url; - } else { - preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $url, $match); - $this->url = $match[0][0]; - } - return $this; - } - - /** - * 获取接口全部信息 - * @return WatermarkService - * @throws \GuzzleHttp\Exception\GuzzleException - */ - private function getApi(): self - { - $this->contents = $this->getContents($this->url); - return $this; - } - - /** - * 获取全部信息 - * @return $this - * @throws \GuzzleHttp\Exception\GuzzleException - */ - public function getAll(): self - { - $this->getApi(); - $data = [ - 'video_src' => $this->contents['video_src'], - 'cover_image' => $this->contents['cover_image'], - ]; - $this->backtrack = $data; - return $this; - } - - /** - * 返回Array - * @return array|mixed - */ - public function toArray() - { - if (empty($this->backtrack)) { - return []; - } - if (is_array($this->backtrack)) { - return $this->backtrack; - } - return json_decode($this->backtrack, true); - } - - /** - * 获取 - * @param $url - * @return array - * @throws \GuzzleHttp\Exception\GuzzleException - */ - private function getContents($url): array - { - $headers = [ - 'Connection' => 'keep-alive', - 'User-Agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16D57 Version/12.0 Safari/604.1' - ]; - $client = new Client(['timeout' => 2, 'headers' => $headers, 'http_errors' => false,]); - $data['headers'] = $headers; - $data['verify'] = __DIR__ . DIRECTORY_SEPARATOR . 'cacert.pem'; - $jar = new CookieJar(); - $data['cookies'] = $jar; - $response = $client->request('GET', $url, $data); - $body = $response->getBody(); - if ($body instanceof Stream) { - $body = $body->getContents(); - } - $result = htmlspecialchars_decode($body); - $pattern = '#"srcNoMark":"(.*?)"#'; - preg_match($pattern, $result, $match); - $data['video_src'] = $match[1]; - $pattern = '#"poster":"(.*?)"#'; - preg_match($pattern, $result, $match); - if (!empty($match[1])) { - $data['cover_image'] = $match[1]; - return $data; - } - return []; - } +url = $url; + } else { + preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $url, $match); + $this->url = $match[0][0]; + } + return $this; + } + + /** + * 获取接口全部信息 + * @return WatermarkService + * @throws \GuzzleHttp\Exception\GuzzleException + */ + private function getApi(): self + { + $this->contents = $this->getContents($this->url); + return $this; + } + + /** + * 获取全部信息 + * @return $this + * @throws \GuzzleHttp\Exception\GuzzleException + */ + public function getAll(): self + { + $this->getApi(); + $data = [ + 'video_src' => $this->contents['video_src'], + 'cover_image' => $this->contents['cover_image'], + ]; + $this->backtrack = $data; + return $this; + } + + /** + * 返回Array + * @return array|mixed + */ + public function toArray() + { + if (empty($this->backtrack)) { + return []; + } + if (is_array($this->backtrack)) { + return $this->backtrack; + } + return json_decode($this->backtrack, true); + } + + /** + * 获取 + * @param $url + * @return array + * @throws \GuzzleHttp\Exception\GuzzleException + */ + private function getContents($url): array + { + $headers = [ + 'Connection' => 'keep-alive', + 'User-Agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16D57 Version/12.0 Safari/604.1' + ]; + $client = new Client(['timeout' => 2, 'headers' => $headers, 'http_errors' => false,]); + $data['headers'] = $headers; + $data['verify'] = __DIR__ . DIRECTORY_SEPARATOR . 'cacert.pem'; + $jar = new CookieJar(); + $data['cookies'] = $jar; + $response = $client->request('GET', $url, $data); + $body = $response->getBody(); + if ($body instanceof Stream) { + $body = $body->getContents(); + } + $result = htmlspecialchars_decode($body); + $pattern = '#"srcNoMark":"(.*?)"#'; + preg_match($pattern, $result, $match); + $data['video_src'] = $match[1]; + $pattern = '#"poster":"(.*?)"#'; + preg_match($pattern, $result, $match); + if (!empty($match[1])) { + $data['cover_image'] = $match[1]; + return $data; + } + return []; + } } \ No newline at end of file diff --git a/src/service/pinduoduo/JinBaoService.php b/src/service/pinduoduo/JinBaoService.php index 6dfc0c0..006beb3 100644 --- a/src/service/pinduoduo/JinBaoService.php +++ b/src/service/pinduoduo/JinBaoService.php @@ -1,675 +1,675 @@ -client_id = $clientId; - return $this; - } - - /** - * 配置开放平台分配的clientSecret - * @param string $clientSecret - * @return $this - */ - public function clientSecret(string $clientSecret): self - { - $this->client_secret = $clientSecret; - return $this; - } - - /** - * 响应格式,即返回数据的格式,JSON或者XML(二选一),默认JSON,注意是大写 - * @param string $dataType - * @return $this - */ - public function dataType(string $dataType): self - { - $this->data_type = $dataType; - return $this; - } - - /** - * 请求参数 - * @param array $param - * @return $this - */ - public function param(array $param): self - { - $this->param = $param; - return $this; - } - - /** - * 网络请求 - * @return $this - * @throws DtaException - */ - private function http(): self - { - //生成签名 - $sign = $this->createSign(); - //组织参数 - $strParam = $this->createStrParam(); - $strParam .= 'sign=' . $sign; - //访问服务 - $url = "{$this->url}?" . $strParam; - var_dump($url); - $result = file_get_contents($url); - $result = json_decode($result, true); - $this->output = $result; - return $this; - } - - /** - * 获取配置信息 - * @return $this - */ - private function getConfig(): self - { - $this->client_id = config('dtapp.pinduoduo.jinbao.client_id'); - $this->client_secret = config('dtapp.pinduoduo.jinbao.client_secret'); - return $this; - } - - /** - * 获取商品信息 - 多多进宝商品查询 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.search - * @return $this - */ - public function goodsSearch(): self - { - $this->type = 'pdd.ddk.goods.search'; - return $this; - } - - /** - * 新增推广位 - 创建多多进宝推广位 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.pid.generate - * @return $this - */ - public function goodsPidGenerate(): self - { - $this->type = 'pdd.ddk.goods.pid.generate'; - return $this; - } - - /** - * 管理推广位 - 查询已经生成的推广位信息 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.pid.query - * @return $this - */ - public function goodsPidQuery(): self - { - $this->type = 'pdd.ddk.goods.pid.query'; - return $this; - } - - /** - * CPS订单数据 - 查询订单详情 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.order.detail.get - * @return $this - */ - public function orderDetailGet(): self - { - $this->type = 'pdd.ddk.order.detail.get'; - return $this; - } - - /** - * CPS订单数据 - 最后更新时间段增量同步推广订单信息 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.order.list.increment.get - * @return $this - */ - public function orderListIncrementGet(): self - { - $this->type = 'pdd.ddk.order.list.increment.get'; - return $this; - } - - /** - * CPS订单数据 - 用时间段查询推广订单接口 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.order.list.range.get - * @return $this - */ - public function orderListRangeGet(): self - { - $this->type = 'pdd.ddk.order.list.range.get'; - return $this; - } - - /** - * CPA效果数据 - 查询CPA数据 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.finance.cpa.query - * @return $this - */ - public function financeCpaQuery(): self - { - $this->type = 'pdd.ddk.finance.cpa.query'; - return $this; - } - - /** - * 单品推广- 多多进宝推广链接生成 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.promotion.url.generate - * @return $this - */ - public function goodsPromotionUrlGenerate(): self - { - $this->type = 'pdd.ddk.goods.promotion.url.generate'; - return $this; - } - - /** - * 单品推广- 多多客生成单品推广小程序二维码url - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.weapp.qrcode.url.gen - * @return $this - */ - public function weAppQrcodeUrlGen(): self - { - $this->type = 'pdd.ddk.weapp.qrcode.url.gen'; - return $this; - } - - /** - * 单品推广- 多多进宝转链接口 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.zs.unit.url.gen - * @return $this - */ - public function goodsZsUitUrlGen(): self - { - $this->type = 'pdd.ddk.goods.zs.unit.url.gen'; - return $this; - } - - /** - * 活动转链 - 生成多多进宝频道推广 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.resource.url.gen - * @return $this - */ - public function resourceUrlGen(): self - { - $this->type = 'pdd.ddk.resource.url.gen'; - return $this; - } - - /** - * 活动转链 - 多多进宝主题推广链接生成 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.theme.prom.url.generate - * @return $this - */ - public function themePromUrlGenerate(): self - { - $this->type = 'pdd.ddk.theme.prom.url.generate'; - return $this; - } - - /** - * 店铺推广 - 多多客生成店铺推广链接 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.mall.url.gen - * @return $this - */ - public function mallUrlGen(): self - { - $this->type = 'pdd.ddk.mall.url.gen'; - return $this; - } - - /** - * 营销工具 - 生成营销工具推广链接 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.rp.prom.url.generate - * @return $this - */ - public function rpPromUrlGenerate(): self - { - $this->type = 'pdd.ddk.rp.prom.url.generate'; - return $this; - } - - /** - * 获取商品信息 - 多多进宝商品详情查询 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.detail - * @return $this - */ - public function goodsDetail(): self - { - $this->type = 'pdd.ddk.goods.detail'; - return $this; - } - - /** - * 获取商品信息 - 查询商品的推广计划 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.unit.query - * @return $this - */ - public function goodsUnitQuery(): self - { - $this->type = 'pdd.ddk.goods.unit.query'; - return $this; - } - - /** - * 商品&店铺检索 - 获取商品基本信息接口 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.basic.info.get - * @return $this - */ - public function goodsBasicInfoGet(): self - { - $this->type = 'pdd.ddk.goods.basic.info.get'; - return $this; - } - - /** - * 商品&店铺检索 - 查询优惠券信息 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.coupon.info.query - * @return $this - */ - public function couponInfoQuery(): self - { - $this->type = 'pdd.ddk.coupon.info.query'; - return $this; - } - - /** - * 商品&店铺检索 - 查询店铺商品 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.mall.goods.list.get - * @return $this - */ - public function goodsListGet(): self - { - $this->type = 'pdd.ddk.mall.goods.list.get'; - return $this; - } - - /** - * 多多客获取爆款排行商品接口 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.top.goods.list.query - * @return $this - */ - public function topGoodsListQuery(): self - { - $this->type = 'pdd.ddk.top.goods.list.query'; - return $this; - } - - /** - * 爆品推荐 - 多多进宝商品推荐API - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.recommend.get - * @return $this - */ - public function goodsRecommendGet(): self - { - $this->type = 'pdd.ddk.goods.recommend.get'; - return $this; - } - - /** - * 爆品推荐 - 多多进宝主题列表查询 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.theme.list.get - * @return $this - */ - public function themeListGet(): self - { - $this->type = 'pdd.ddk.theme.list.get'; - return $this; - } - - /** - * 活动选品库 - 多多进宝主题商品查询 - * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.theme.goods.search - * @return $this - */ - public function themeGoodsSearch(): self - { - $this->type = 'pdd.ddk.theme.goods.search'; - return $this; - } - - /** - * 生成商城-频道推广链接 - * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.cms.prom.url. - * @return $this - */ - public function cmsPromUrlGenerate(): self - { - $this->type = 'pdd.ddk.cms.prom.url.generate'; - return $this; - } - - /** - * 查询直播间详情 - * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.live.detail - * @return $this - */ - public function liveDetail(): self - { - $this->type = 'pdd.ddk.live.detail'; - return $this; - } - - /** - * 查询直播间列表 - * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.live.list - * @return $this - */ - public function liveList(): self - { - $this->type = 'pdd.ddk.live.list'; - return $this; - } - - /** - * 生成直播间推广链接 - * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.live.url.gen - * @return $this - */ - public function liveUrlGen(): self - { - $this->type = 'pdd.ddk.live.url.gen'; - return $this; - } - - /** - * 多多客生成转盘抽免单url - * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.lottery.url.gen - * @return $this - */ - public function lotteryUrlGen(): self - { - $this->type = 'pdd.ddk.lottery.url.gen'; - return $this; - } - - /** - * 查询是否绑定备案 - * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.member.authority.query - * @return $this - */ - public function memberAuthorityQuery(): self - { - $this->type = 'pdd.ddk.member.authority.query'; - return $this; - } - - /** - * 查询商品标签列表 - * https://open.pinduoduo.com/application/document/api?id=pdd.goods.opt.get - * @return $this - */ - public function goodsOptGet(): self - { - $this->type = 'pdd.goods.opt.get'; - return $this; - } - - /** - * 自定义接口 - * @param string $type - * @return $this - */ - public function setMethod($type = ''): self - { - $this->type = $type; - return $this; - } - - - /** - * 返回数组数据 - * @return array|mixed - * @throws DtaException - */ - public function toArray() - { - //首先检测是否支持curl - if (!extension_loaded("curl")) { - throw new HttpException(404, '请开启curl模块!'); - } - if (empty($this->client_id)) { - $this->getConfig(); - } - if (empty($this->client_id)) { - throw new DtaException('请检查client_id参数'); - } - $this->param['type'] = $this->type; - $this->param['client_id'] = $this->client_id; - $this->param['timestamp'] = time(); - $this->param['data_type'] = $this->data_type; - $this->param['version'] = $this->version; - $this->http(); - if (isset($this->output['error_response'])) { - // 错误 - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - return $this->object2array($this->output); - } - return json_decode($this->output, true); - } - // 正常 - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - $this->output = $this->object2array($this->output); - return $this->output; - } - $this->output = json_decode($this->output, true); - return $this->output; - } - - /** - * @param $object - * @return array - */ - private function object2array(&$object): array - { - if (is_object($object)) { - $arr = (array)($object); - } else { - $arr = &$object; - } - if (is_array($arr)) { - foreach ($arr as $varName => $varValue) { - $arr[$varName] = $this->object2array($varValue); - } - } - return $arr; - } - - /** - * 签名 - * @return string - * @throws DtaException - */ - private function createSign(): string - { - if (empty($this->client_secret)) { - $this->getConfig(); - } - if (empty($this->client_secret)) { - throw new DtaException('请检查client_secret参数}'); - } - $sign = $this->client_secret; - ksort($this->param); - foreach ($this->param as $key => $val) { - if ($key !== '' && $val !== '') { - $sign .= $key . $val; - } - } - $sign .= $this->client_secret; - $sign = strtoupper(md5($sign)); - return $sign; - } - - /** - * 组参 - * @return string - */ - private function createStrParam(): string - { - $strParam = ''; - foreach ($this->param as $key => $val) { - if ($key !== '' && $val !== '' && !is_array($val)) { - $strParam .= $key . '=' . urlencode($val) . '&'; - } - } - return $strParam; - } - - /** - * 获取频道ID - * @return array[] - */ - public function getChannelTypeList(): array - { - return [ - [ - // https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.recommend.get - 'name' => '商品推荐', - 'list' => [ - [ - 'name' => '1.9包邮', - 'channel_type' => 0 - ], - [ - 'name' => '今日爆款', - 'channel_type' => 1 - ], - [ - 'name' => '品牌清仓', - 'channel_type' => 2 - ], - [ - 'name' => '相似商品推荐', - 'channel_type' => 3 - ], - [ - 'name' => '猜你喜欢', - 'channel_type' => 4 - ], - [ - 'name' => '实时热销', - 'channel_type' => 5 - ], - [ - 'name' => '实时收益', - 'channel_type' => 6 - ], - [ - 'name' => '今日畅销', - 'channel_type' => 7 - ], - [ - 'name' => '高佣榜单', - 'channel_type' => 8 - ], - ] - ], - ]; - } - - /** - * 获取频道来源ID - * @return array[] - */ - public function getResourceTypeList(): array - { - return [ - [ - // https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.resource.url.gen - 'name' => '频道推广', - 'list' => [ - [ - 'name' => '限时秒杀', - 'resource_type' => 4 - ], - [ - 'name' => '充值中心', - 'resource_type' => 39997 - ], - [ - 'name' => '转链', - 'resource_type' => 39998 - ], - [ - 'name' => '百亿补贴', - 'resource_type' => 39996 - ], - ] - ], - ]; - } -} +client_id = $clientId; + return $this; + } + + /** + * 配置开放平台分配的clientSecret + * @param string $clientSecret + * @return $this + */ + public function clientSecret(string $clientSecret): self + { + $this->client_secret = $clientSecret; + return $this; + } + + /** + * 响应格式,即返回数据的格式,JSON或者XML(二选一),默认JSON,注意是大写 + * @param string $dataType + * @return $this + */ + public function dataType(string $dataType): self + { + $this->data_type = $dataType; + return $this; + } + + /** + * 请求参数 + * @param array $param + * @return $this + */ + public function param(array $param): self + { + $this->param = $param; + return $this; + } + + /** + * 网络请求 + * @return $this + * @throws DtaException + */ + private function http(): self + { + //生成签名 + $sign = $this->createSign(); + //组织参数 + $strParam = $this->createStrParam(); + $strParam .= 'sign=' . $sign; + //访问服务 + $url = "{$this->url}?" . $strParam; + var_dump($url); + $result = file_get_contents($url); + $result = json_decode($result, true); + $this->output = $result; + return $this; + } + + /** + * 获取配置信息 + * @return $this + */ + private function getConfig(): self + { + $this->client_id = config('dtapp.pinduoduo.jinbao.client_id'); + $this->client_secret = config('dtapp.pinduoduo.jinbao.client_secret'); + return $this; + } + + /** + * 获取商品信息 - 多多进宝商品查询 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.search + * @return $this + */ + public function goodsSearch(): self + { + $this->type = 'pdd.ddk.goods.search'; + return $this; + } + + /** + * 新增推广位 - 创建多多进宝推广位 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.pid.generate + * @return $this + */ + public function goodsPidGenerate(): self + { + $this->type = 'pdd.ddk.goods.pid.generate'; + return $this; + } + + /** + * 管理推广位 - 查询已经生成的推广位信息 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.pid.query + * @return $this + */ + public function goodsPidQuery(): self + { + $this->type = 'pdd.ddk.goods.pid.query'; + return $this; + } + + /** + * CPS订单数据 - 查询订单详情 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.order.detail.get + * @return $this + */ + public function orderDetailGet(): self + { + $this->type = 'pdd.ddk.order.detail.get'; + return $this; + } + + /** + * CPS订单数据 - 最后更新时间段增量同步推广订单信息 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.order.list.increment.get + * @return $this + */ + public function orderListIncrementGet(): self + { + $this->type = 'pdd.ddk.order.list.increment.get'; + return $this; + } + + /** + * CPS订单数据 - 用时间段查询推广订单接口 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.order.list.range.get + * @return $this + */ + public function orderListRangeGet(): self + { + $this->type = 'pdd.ddk.order.list.range.get'; + return $this; + } + + /** + * CPA效果数据 - 查询CPA数据 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.finance.cpa.query + * @return $this + */ + public function financeCpaQuery(): self + { + $this->type = 'pdd.ddk.finance.cpa.query'; + return $this; + } + + /** + * 单品推广- 多多进宝推广链接生成 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.promotion.url.generate + * @return $this + */ + public function goodsPromotionUrlGenerate(): self + { + $this->type = 'pdd.ddk.goods.promotion.url.generate'; + return $this; + } + + /** + * 单品推广- 多多客生成单品推广小程序二维码url + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.weapp.qrcode.url.gen + * @return $this + */ + public function weAppQrcodeUrlGen(): self + { + $this->type = 'pdd.ddk.weapp.qrcode.url.gen'; + return $this; + } + + /** + * 单品推广- 多多进宝转链接口 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.zs.unit.url.gen + * @return $this + */ + public function goodsZsUitUrlGen(): self + { + $this->type = 'pdd.ddk.goods.zs.unit.url.gen'; + return $this; + } + + /** + * 活动转链 - 生成多多进宝频道推广 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.resource.url.gen + * @return $this + */ + public function resourceUrlGen(): self + { + $this->type = 'pdd.ddk.resource.url.gen'; + return $this; + } + + /** + * 活动转链 - 多多进宝主题推广链接生成 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.theme.prom.url.generate + * @return $this + */ + public function themePromUrlGenerate(): self + { + $this->type = 'pdd.ddk.theme.prom.url.generate'; + return $this; + } + + /** + * 店铺推广 - 多多客生成店铺推广链接 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.mall.url.gen + * @return $this + */ + public function mallUrlGen(): self + { + $this->type = 'pdd.ddk.mall.url.gen'; + return $this; + } + + /** + * 营销工具 - 生成营销工具推广链接 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.rp.prom.url.generate + * @return $this + */ + public function rpPromUrlGenerate(): self + { + $this->type = 'pdd.ddk.rp.prom.url.generate'; + return $this; + } + + /** + * 获取商品信息 - 多多进宝商品详情查询 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.detail + * @return $this + */ + public function goodsDetail(): self + { + $this->type = 'pdd.ddk.goods.detail'; + return $this; + } + + /** + * 获取商品信息 - 查询商品的推广计划 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.unit.query + * @return $this + */ + public function goodsUnitQuery(): self + { + $this->type = 'pdd.ddk.goods.unit.query'; + return $this; + } + + /** + * 商品&店铺检索 - 获取商品基本信息接口 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.basic.info.get + * @return $this + */ + public function goodsBasicInfoGet(): self + { + $this->type = 'pdd.ddk.goods.basic.info.get'; + return $this; + } + + /** + * 商品&店铺检索 - 查询优惠券信息 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.coupon.info.query + * @return $this + */ + public function couponInfoQuery(): self + { + $this->type = 'pdd.ddk.coupon.info.query'; + return $this; + } + + /** + * 商品&店铺检索 - 查询店铺商品 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.mall.goods.list.get + * @return $this + */ + public function goodsListGet(): self + { + $this->type = 'pdd.ddk.mall.goods.list.get'; + return $this; + } + + /** + * 多多客获取爆款排行商品接口 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.top.goods.list.query + * @return $this + */ + public function topGoodsListQuery(): self + { + $this->type = 'pdd.ddk.top.goods.list.query'; + return $this; + } + + /** + * 爆品推荐 - 多多进宝商品推荐API + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.recommend.get + * @return $this + */ + public function goodsRecommendGet(): self + { + $this->type = 'pdd.ddk.goods.recommend.get'; + return $this; + } + + /** + * 爆品推荐 - 多多进宝主题列表查询 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.theme.list.get + * @return $this + */ + public function themeListGet(): self + { + $this->type = 'pdd.ddk.theme.list.get'; + return $this; + } + + /** + * 活动选品库 - 多多进宝主题商品查询 + * https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.theme.goods.search + * @return $this + */ + public function themeGoodsSearch(): self + { + $this->type = 'pdd.ddk.theme.goods.search'; + return $this; + } + + /** + * 生成商城-频道推广链接 + * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.cms.prom.url. + * @return $this + */ + public function cmsPromUrlGenerate(): self + { + $this->type = 'pdd.ddk.cms.prom.url.generate'; + return $this; + } + + /** + * 查询直播间详情 + * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.live.detail + * @return $this + */ + public function liveDetail(): self + { + $this->type = 'pdd.ddk.live.detail'; + return $this; + } + + /** + * 查询直播间列表 + * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.live.list + * @return $this + */ + public function liveList(): self + { + $this->type = 'pdd.ddk.live.list'; + return $this; + } + + /** + * 生成直播间推广链接 + * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.live.url.gen + * @return $this + */ + public function liveUrlGen(): self + { + $this->type = 'pdd.ddk.live.url.gen'; + return $this; + } + + /** + * 多多客生成转盘抽免单url + * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.lottery.url.gen + * @return $this + */ + public function lotteryUrlGen(): self + { + $this->type = 'pdd.ddk.lottery.url.gen'; + return $this; + } + + /** + * 查询是否绑定备案 + * https://open.pinduoduo.com/application/document/api?id=pdd.ddk.member.authority.query + * @return $this + */ + public function memberAuthorityQuery(): self + { + $this->type = 'pdd.ddk.member.authority.query'; + return $this; + } + + /** + * 查询商品标签列表 + * https://open.pinduoduo.com/application/document/api?id=pdd.goods.opt.get + * @return $this + */ + public function goodsOptGet(): self + { + $this->type = 'pdd.goods.opt.get'; + return $this; + } + + /** + * 自定义接口 + * @param string $type + * @return $this + */ + public function setMethod($type = ''): self + { + $this->type = $type; + return $this; + } + + + /** + * 返回数组数据 + * @return array|mixed + * @throws DtaException + */ + public function toArray() + { + //首先检测是否支持curl + if (!extension_loaded("curl")) { + throw new HttpException(404, '请开启curl模块!'); + } + if (empty($this->client_id)) { + $this->getConfig(); + } + if (empty($this->client_id)) { + throw new DtaException('请检查client_id参数'); + } + $this->param['type'] = $this->type; + $this->param['client_id'] = $this->client_id; + $this->param['timestamp'] = time(); + $this->param['data_type'] = $this->data_type; + $this->param['version'] = $this->version; + $this->http(); + if (isset($this->output['error_response'])) { + // 错误 + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + return $this->object2array($this->output); + } + return json_decode($this->output, true); + } + // 正常 + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + $this->output = $this->object2array($this->output); + return $this->output; + } + $this->output = json_decode($this->output, true); + return $this->output; + } + + /** + * @param $object + * @return array + */ + private function object2array(&$object): array + { + if (is_object($object)) { + $arr = (array)($object); + } else { + $arr = &$object; + } + if (is_array($arr)) { + foreach ($arr as $varName => $varValue) { + $arr[$varName] = $this->object2array($varValue); + } + } + return $arr; + } + + /** + * 签名 + * @return string + * @throws DtaException + */ + private function createSign(): string + { + if (empty($this->client_secret)) { + $this->getConfig(); + } + if (empty($this->client_secret)) { + throw new DtaException('请检查client_secret参数}'); + } + $sign = $this->client_secret; + ksort($this->param); + foreach ($this->param as $key => $val) { + if ($key !== '' && $val !== '') { + $sign .= $key . $val; + } + } + $sign .= $this->client_secret; + $sign = strtoupper(md5($sign)); + return $sign; + } + + /** + * 组参 + * @return string + */ + private function createStrParam(): string + { + $strParam = ''; + foreach ($this->param as $key => $val) { + if ($key !== '' && $val !== '' && !is_array($val)) { + $strParam .= $key . '=' . urlencode($val) . '&'; + } + } + return $strParam; + } + + /** + * 获取频道ID + * @return array[] + */ + public function getChannelTypeList(): array + { + return [ + [ + // https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.goods.recommend.get + 'name' => '商品推荐', + 'list' => [ + [ + 'name' => '1.9包邮', + 'channel_type' => 0 + ], + [ + 'name' => '今日爆款', + 'channel_type' => 1 + ], + [ + 'name' => '品牌清仓', + 'channel_type' => 2 + ], + [ + 'name' => '相似商品推荐', + 'channel_type' => 3 + ], + [ + 'name' => '猜你喜欢', + 'channel_type' => 4 + ], + [ + 'name' => '实时热销', + 'channel_type' => 5 + ], + [ + 'name' => '实时收益', + 'channel_type' => 6 + ], + [ + 'name' => '今日畅销', + 'channel_type' => 7 + ], + [ + 'name' => '高佣榜单', + 'channel_type' => 8 + ], + ] + ], + ]; + } + + /** + * 获取频道来源ID + * @return array[] + */ + public function getResourceTypeList(): array + { + return [ + [ + // https://jinbao.pinduoduo.com/third-party/api-detail?apiName=pdd.ddk.resource.url.gen + 'name' => '频道推广', + 'list' => [ + [ + 'name' => '限时秒杀', + 'resource_type' => 4 + ], + [ + 'name' => '充值中心', + 'resource_type' => 39997 + ], + [ + 'name' => '转链', + 'resource_type' => 39998 + ], + [ + 'name' => '百亿补贴', + 'resource_type' => 39996 + ], + ] + ], + ]; + } +} diff --git a/src/service/pinduoduo/bin/example/PddAdApiAdvertiserOpenAccount.php b/src/service/pinduoduo/bin/example/PddAdApiAdvertiserOpenAccount.php index 12accdd..9140e0c 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiAdvertiserOpenAccount.php +++ b/src/service/pinduoduo/bin/example/PddAdApiAdvertiserOpenAccount.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryAccountBalance.php b/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryAccountBalance.php index 0bb5d56..5141b98 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryAccountBalance.php +++ b/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryAccountBalance.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryAccountInfo.php b/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryAccountInfo.php index 0a1d7e5..94b4f75 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryAccountInfo.php +++ b/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryAccountInfo.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryDetail.php b/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryDetail.php index 8d83e8e..7932ee8 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryDetail.php +++ b/src/service/pinduoduo/bin/example/PddAdApiAdvertiserQueryDetail.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryGalleryImages.php b/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryGalleryImages.php index a689f03..09a195a 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryGalleryImages.php +++ b/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryGalleryImages.php @@ -1,25 +1,25 @@ -setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryLongImages.php b/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryLongImages.php index 67fccc4..3cfb297 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryLongImages.php +++ b/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryLongImages.php @@ -1,25 +1,25 @@ -setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryPage.php b/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryPage.php index 4b62ebd..19dcc47 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryPage.php +++ b/src/service/pinduoduo/bin/example/PddAdApiGoodsQueryPage.php @@ -1,28 +1,28 @@ -setGoodsName('str'); -$request->setPageNumber(1); -$request->setPageSize(1); -$request->setPlanId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsName('str'); +$request->setPageNumber(1); +$request->setPageSize(1); +$request->setPlanId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiKeywordCreate.php b/src/service/pinduoduo/bin/example/PddAdApiKeywordCreate.php index 0da4f95..ae786f2 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiKeywordCreate.php +++ b/src/service/pinduoduo/bin/example/PddAdApiKeywordCreate.php @@ -1,26 +1,26 @@ -setAdId(1); -$request->setKeywordList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setKeywordList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiKeywordDelete.php b/src/service/pinduoduo/bin/example/PddAdApiKeywordDelete.php index c87e9b0..40e6f05 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiKeywordDelete.php +++ b/src/service/pinduoduo/bin/example/PddAdApiKeywordDelete.php @@ -1,26 +1,26 @@ -setAdId(1); -$request->setKeywordIds(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setKeywordIds(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiKeywordQueryList.php b/src/service/pinduoduo/bin/example/PddAdApiKeywordQueryList.php index ae086cf..76a3c1f 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiKeywordQueryList.php +++ b/src/service/pinduoduo/bin/example/PddAdApiKeywordQueryList.php @@ -1,29 +1,29 @@ -setAdId(1); -$request->setBeginDate('str'); -$request->setEndDate('str'); -$request->setOrderBy(1); -$request->setSortBy(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setBeginDate('str'); +$request->setEndDate('str'); +$request->setOrderBy(1); +$request->setSortBy(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiKeywordRecommendGet.php b/src/service/pinduoduo/bin/example/PddAdApiKeywordRecommendGet.php index b6417a1..10af012 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiKeywordRecommendGet.php +++ b/src/service/pinduoduo/bin/example/PddAdApiKeywordRecommendGet.php @@ -1,25 +1,25 @@ -setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiKeywordRelevanceGet.php b/src/service/pinduoduo/bin/example/PddAdApiKeywordRelevanceGet.php index 80c8b38..eecf093 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiKeywordRelevanceGet.php +++ b/src/service/pinduoduo/bin/example/PddAdApiKeywordRelevanceGet.php @@ -1,26 +1,26 @@ -setGoodsId(1); -$request->setWords(array('str')); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +$request->setWords(array('str')); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiKeywordUpdate.php b/src/service/pinduoduo/bin/example/PddAdApiKeywordUpdate.php index 790e11e..be6bd81 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiKeywordUpdate.php +++ b/src/service/pinduoduo/bin/example/PddAdApiKeywordUpdate.php @@ -1,26 +1,26 @@ -setAdId(1); -$request->setKeywords(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setKeywords(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiPlanCreate.php b/src/service/pinduoduo/bin/example/PddAdApiPlanCreate.php index fff6403..6265c0e 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiPlanCreate.php +++ b/src/service/pinduoduo/bin/example/PddAdApiPlanCreate.php @@ -1,28 +1,28 @@ -setAdPlanCreateMessage(); -$request->setAdUnitCreateComplexMessageList(); -$request->setPlanStrategy(1); -$request->setScenesType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdPlanCreateMessage(); +$request->setAdUnitCreateComplexMessageList(); +$request->setPlanStrategy(1); +$request->setScenesType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiPlanDelete.php b/src/service/pinduoduo/bin/example/PddAdApiPlanDelete.php index 2d11a4e..33cdbc8 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiPlanDelete.php +++ b/src/service/pinduoduo/bin/example/PddAdApiPlanDelete.php @@ -1,26 +1,26 @@ -setPlanId(1); -$request->setScenesType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPlanId(1); +$request->setScenesType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiPlanQueryCanCreateAdPlan.php b/src/service/pinduoduo/bin/example/PddAdApiPlanQueryCanCreateAdPlan.php index 57cb91d..76032cb 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiPlanQueryCanCreateAdPlan.php +++ b/src/service/pinduoduo/bin/example/PddAdApiPlanQueryCanCreateAdPlan.php @@ -1,26 +1,26 @@ -setPlanName('str'); -$request->setScenesType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPlanName('str'); +$request->setScenesType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiPlanQueryCanUpdateMaxCost.php b/src/service/pinduoduo/bin/example/PddAdApiPlanQueryCanUpdateMaxCost.php index 9f5c197..15eac5c 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiPlanQueryCanUpdateMaxCost.php +++ b/src/service/pinduoduo/bin/example/PddAdApiPlanQueryCanUpdateMaxCost.php @@ -1,25 +1,25 @@ -setPlanId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPlanId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiPlanQueryList.php b/src/service/pinduoduo/bin/example/PddAdApiPlanQueryList.php index 82db43e..32808f2 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiPlanQueryList.php +++ b/src/service/pinduoduo/bin/example/PddAdApiPlanQueryList.php @@ -1,29 +1,29 @@ -setBeginDate('str'); -$request->setEndDate('str'); -$request->setOrderBy(1); -$request->setScenesType(1); -$request->setSortBy(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBeginDate('str'); +$request->setEndDate('str'); +$request->setOrderBy(1); +$request->setScenesType(1); +$request->setSortBy(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiPlanUpdateDataOperateStatus.php b/src/service/pinduoduo/bin/example/PddAdApiPlanUpdateDataOperateStatus.php index 07c4e86..86c5c7a 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiPlanUpdateDataOperateStatus.php +++ b/src/service/pinduoduo/bin/example/PddAdApiPlanUpdateDataOperateStatus.php @@ -1,27 +1,27 @@ -setDataOperateStatus(1); -$request->setPlanIds(array(1)); -$request->setScenesType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDataOperateStatus(1); +$request->setPlanIds(array(1)); +$request->setScenesType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiPlanUpdateMaxCost.php b/src/service/pinduoduo/bin/example/PddAdApiPlanUpdateMaxCost.php index 77ebe6a..11d7374 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiPlanUpdateMaxCost.php +++ b/src/service/pinduoduo/bin/example/PddAdApiPlanUpdateMaxCost.php @@ -1,26 +1,26 @@ -setMaxCost(1); -$request->setPlanId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setMaxCost(1); +$request->setPlanId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiPlanUpdatePlanDiscount.php b/src/service/pinduoduo/bin/example/PddAdApiPlanUpdatePlanDiscount.php index da75401..8471b14 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiPlanUpdatePlanDiscount.php +++ b/src/service/pinduoduo/bin/example/PddAdApiPlanUpdatePlanDiscount.php @@ -1,26 +1,26 @@ -setPlanDiscount(); -$request->setPlanId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPlanDiscount(); +$request->setPlanId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiPlanUpdatePlanName.php b/src/service/pinduoduo/bin/example/PddAdApiPlanUpdatePlanName.php index 47cee38..bb4280b 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiPlanUpdatePlanName.php +++ b/src/service/pinduoduo/bin/example/PddAdApiPlanUpdatePlanName.php @@ -1,26 +1,26 @@ -setPlanId(1); -$request->setPlanName('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPlanId(1); +$request->setPlanName('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiReportDailyReportQuery.php b/src/service/pinduoduo/bin/example/PddAdApiReportDailyReportQuery.php index 524e8c0..5c016ce 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiReportDailyReportQuery.php +++ b/src/service/pinduoduo/bin/example/PddAdApiReportDailyReportQuery.php @@ -1,30 +1,30 @@ -setEndDateString('str'); -$request->setEntityId(1); -$request->setExternalParamMap(); -$request->setQueryDimensionType(1); -$request->setScenesType(1); -$request->setStartDateString('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setEndDateString('str'); +$request->setEntityId(1); +$request->setExternalParamMap(); +$request->setQueryDimensionType(1); +$request->setScenesType(1); +$request->setStartDateString('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiReportEntityReportQuery.php b/src/service/pinduoduo/bin/example/PddAdApiReportEntityReportQuery.php index 0b5378e..06d24b2 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiReportEntityReportQuery.php +++ b/src/service/pinduoduo/bin/example/PddAdApiReportEntityReportQuery.php @@ -1,34 +1,34 @@ -setEndDateString('str'); -$request->setEntityDimensionType(1); -$request->setEntityId(1); -$request->setExternalParamMap(); -$request->setOrderBy(1); -$request->setOrderType(1); -$request->setQueryDimensionType(1); -$request->setQueryRange(); -$request->setScenesType(1); -$request->setStartDateString('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setEndDateString('str'); +$request->setEntityDimensionType(1); +$request->setEntityId(1); +$request->setExternalParamMap(); +$request->setOrderBy(1); +$request->setOrderType(1); +$request->setQueryDimensionType(1); +$request->setQueryRange(); +$request->setScenesType(1); +$request->setStartDateString('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiReportHourlyReportQuery.php b/src/service/pinduoduo/bin/example/PddAdApiReportHourlyReportQuery.php index 8602c7f..068e128 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiReportHourlyReportQuery.php +++ b/src/service/pinduoduo/bin/example/PddAdApiReportHourlyReportQuery.php @@ -1,28 +1,28 @@ -setDateString('str'); -$request->setEntityId(1); -$request->setQueryDimensionType(1); -$request->setScenesType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDateString('str'); +$request->setEntityId(1); +$request->setQueryDimensionType(1); +$request->setScenesType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitBidDelete.php b/src/service/pinduoduo/bin/example/PddAdApiUnitBidDelete.php index db5e6c6..fed68a9 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitBidDelete.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitBidDelete.php @@ -1,26 +1,26 @@ -setAdId(1); -$request->setBidIds(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setBidIds(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryAudienceProfile.php b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryAudienceProfile.php index d11b8d2..e31368d 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryAudienceProfile.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryAudienceProfile.php @@ -1,25 +1,25 @@ -setDeliverType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDeliverType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryBaseLocationProfile.php b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryBaseLocationProfile.php index 3ab61b0..de6dfbe 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryBaseLocationProfile.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryBaseLocationProfile.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryBaseTargetProfile.php b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryBaseTargetProfile.php index 3df7164..4d81751 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryBaseTargetProfile.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryBaseTargetProfile.php @@ -1,26 +1,26 @@ -setGoodsId(1); -$request->setScenesType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +$request->setScenesType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryInterestProfile.php b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryInterestProfile.php index 32df0d5..1b905e0 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryInterestProfile.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryInterestProfile.php @@ -1,25 +1,25 @@ -setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryList.php b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryList.php index afcc5bf..4c3c30a 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryList.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryList.php @@ -1,30 +1,30 @@ -setAdId(1); -$request->setBeginDate('str'); -$request->setBidReferenceType(1); -$request->setEndDate('str'); -$request->setOrderBy(1); -$request->setSortBy(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setBeginDate('str'); +$request->setBidReferenceType(1); +$request->setEndDate('str'); +$request->setOrderBy(1); +$request->setSortBy(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryTargetingTagList.php b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryTargetingTagList.php index 4e85925..4265caa 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryTargetingTagList.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitBidQueryTargetingTagList.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitBidSync.php b/src/service/pinduoduo/bin/example/PddAdApiUnitBidSync.php index 7d4f9cd..55b5484 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitBidSync.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitBidSync.php @@ -1,27 +1,27 @@ -setAdId(1); -$request->setAdUnitBids(); -$request->setBidReferenceType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setAdUnitBids(); +$request->setBidReferenceType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitBidUpdate.php b/src/service/pinduoduo/bin/example/PddAdApiUnitBidUpdate.php index 61040b3..c5f5bac 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitBidUpdate.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitBidUpdate.php @@ -1,27 +1,27 @@ -setAdId(1); -$request->setAdUnitBids(); -$request->setBidReferenceType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setAdUnitBids(); +$request->setBidReferenceType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitCreate.php b/src/service/pinduoduo/bin/example/PddAdApiUnitCreate.php index 2197b21..e1c08e8 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitCreate.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitCreate.php @@ -1,27 +1,27 @@ -setAdUnitCreateComplexMessage(); -$request->setPlanId(1); -$request->setScenesType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdUnitCreateComplexMessage(); +$request->setPlanId(1); +$request->setScenesType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeCheckTitle.php b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeCheckTitle.php index dd0e4ba..4f06c88 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeCheckTitle.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeCheckTitle.php @@ -1,26 +1,26 @@ -setGoodsId(1); -$request->setTitle('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +$request->setTitle('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeCreate.php b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeCreate.php index 233a6cb..a0aa774 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeCreate.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeCreate.php @@ -1,26 +1,26 @@ -setAdCreativeCreateMessage(); -$request->setAdId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdCreativeCreateMessage(); +$request->setAdId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeDelete.php b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeDelete.php index 64f9088..2cd20df 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeDelete.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeDelete.php @@ -1,25 +1,25 @@ -setUnitCreativeId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setUnitCreativeId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeDistributeFlowRate.php b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeDistributeFlowRate.php index 37d8a4b..c7e4439 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeDistributeFlowRate.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeDistributeFlowRate.php @@ -1,26 +1,26 @@ -setAdId(1); -$request->setCreativeFlowRate(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setCreativeFlowRate(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeQueryFlowRate.php b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeQueryFlowRate.php index 6795099..4cfc7a5 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeQueryFlowRate.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeQueryFlowRate.php @@ -1,25 +1,25 @@ -setAdId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeQueryList.php b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeQueryList.php index 7d16bf8..d64f339 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeQueryList.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeQueryList.php @@ -1,29 +1,29 @@ -setAdId(1); -$request->setBeginDate('str'); -$request->setEndDate('str'); -$request->setOrderBy(1); -$request->setSortBy(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setBeginDate('str'); +$request->setEndDate('str'); +$request->setOrderBy(1); +$request->setSortBy(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateContent.php b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateContent.php index b6a293f..f89f2cb 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateContent.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateContent.php @@ -1,26 +1,26 @@ -setAdCreativeUpdateMessage(); -$request->setUnitCreativeId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdCreativeUpdateMessage(); +$request->setUnitCreativeId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateDataOperateStatus.php b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateDataOperateStatus.php index 8f9c6f6..8d2c957 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateDataOperateStatus.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateDataOperateStatus.php @@ -1,26 +1,26 @@ -setDataOperateStatus(1); -$request->setUnitCreativeIds(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDataOperateStatus(1); +$request->setUnitCreativeIds(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateSmartCreative.php b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateSmartCreative.php index b882a4e..dd32a23 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateSmartCreative.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitCreativeUpdateSmartCreative.php @@ -1,26 +1,26 @@ -setText('str'); -$request->setUnitCreativeId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setText('str'); +$request->setUnitCreativeId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitDelete.php b/src/service/pinduoduo/bin/example/PddAdApiUnitDelete.php index cbc48b8..22c8422 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitDelete.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitDelete.php @@ -1,26 +1,26 @@ -setAdId(1); -$request->setScenesType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setScenesType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitQueryList.php b/src/service/pinduoduo/bin/example/PddAdApiUnitQueryList.php index 57491f6..9ca4d43 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitQueryList.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitQueryList.php @@ -1,30 +1,30 @@ -setBeginDate('str'); -$request->setEndDate('str'); -$request->setOrderBy(1); -$request->setPlanId(1); -$request->setScenesType(1); -$request->setSortBy(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBeginDate('str'); +$request->setEndDate('str'); +$request->setOrderBy(1); +$request->setPlanId(1); +$request->setScenesType(1); +$request->setSortBy(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateDataOperateStatus.php b/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateDataOperateStatus.php index 98a16b6..b60e733 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateDataOperateStatus.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateDataOperateStatus.php @@ -1,26 +1,26 @@ -setAdIds(array(1)); -$request->setDataOperateStatus(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdIds(array(1)); +$request->setDataOperateStatus(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateOptimizationMessage.php b/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateOptimizationMessage.php index d043a56..dbe2921 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateOptimizationMessage.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateOptimizationMessage.php @@ -1,26 +1,26 @@ -setAdId(1); -$request->setOptimizationMessage(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setOptimizationMessage(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateUnitBid.php b/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateUnitBid.php index cb56437..7265bb5 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateUnitBid.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateUnitBid.php @@ -1,26 +1,26 @@ -setAdId(1); -$request->setBid(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setBid(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateUnitName.php b/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateUnitName.php index 194b2ac..69d959c 100644 --- a/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateUnitName.php +++ b/src/service/pinduoduo/bin/example/PddAdApiUnitUpdateUnitName.php @@ -1,26 +1,26 @@ -setAdId(1); -$request->setAdName('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAdId(1); +$request->setAdName('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudDtsOrderListIncrementGet.php b/src/service/pinduoduo/bin/example/PddCloudDtsOrderListIncrementGet.php index 91f60b5..dd80258 100644 --- a/src/service/pinduoduo/bin/example/PddCloudDtsOrderListIncrementGet.php +++ b/src/service/pinduoduo/bin/example/PddCloudDtsOrderListIncrementGet.php @@ -1,38 +1,38 @@ -setIsLuckyFlag(1); -$request->setOrderStatus(1); -$request->setStartUpdatedAt(1); -$request->setEndUpdatedAt(1); -$request->setPageSize(1); -$request->setPage(1); -$request->setRefundStatus(1); -$request->setTradeType(1); -$request->setUseHasNext(true); -$request->setMallId(1); -$request->setExtId(1); -$request->setToken('str'); -$request->setOrderSnList(array('str')); -$request->setExtendProps('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setIsLuckyFlag(1); +$request->setOrderStatus(1); +$request->setStartUpdatedAt(1); +$request->setEndUpdatedAt(1); +$request->setPageSize(1); +$request->setPage(1); +$request->setRefundStatus(1); +$request->setTradeType(1); +$request->setUseHasNext(true); +$request->setMallId(1); +$request->setExtId(1); +$request->setToken('str'); +$request->setOrderSnList(array('str')); +$request->setExtendProps('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudIsvPageCode.php b/src/service/pinduoduo/bin/example/PddCloudIsvPageCode.php index 19368ba..e838c02 100644 --- a/src/service/pinduoduo/bin/example/PddCloudIsvPageCode.php +++ b/src/service/pinduoduo/bin/example/PddCloudIsvPageCode.php @@ -1,27 +1,27 @@ -setMallIdList(array('str')); -$request->setHttpReferer('str'); -$request->setUserId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setMallIdList(array('str')); +$request->setHttpReferer('str'); +$request->setUserId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudLogisticsOnlineSend.php b/src/service/pinduoduo/bin/example/PddCloudLogisticsOnlineSend.php index 541d3c5..89dad1e 100644 --- a/src/service/pinduoduo/bin/example/PddCloudLogisticsOnlineSend.php +++ b/src/service/pinduoduo/bin/example/PddCloudLogisticsOnlineSend.php @@ -1,30 +1,30 @@ -setFeature('str'); -$request->setLogisticsId(1); -$request->setOrderSn('str'); -$request->setRefundAddressId('str'); -$request->setTrackingNumber('str'); -$request->setExtToken('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setFeature('str'); +$request->setLogisticsId(1); +$request->setOrderSn('str'); +$request->setRefundAddressId('str'); +$request->setTrackingNumber('str'); +$request->setExtToken('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudSecurityEventTrackingBatchOrder.php b/src/service/pinduoduo/bin/example/PddCloudSecurityEventTrackingBatchOrder.php index aa9edd0..d6d1a77 100644 --- a/src/service/pinduoduo/bin/example/PddCloudSecurityEventTrackingBatchOrder.php +++ b/src/service/pinduoduo/bin/example/PddCloudSecurityEventTrackingBatchOrder.php @@ -1,26 +1,26 @@ -setEventType(1); -$request->setOrderEvents(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setEventType(1); +$request->setOrderEvents(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudSecurityEventTrackingLogin.php b/src/service/pinduoduo/bin/example/PddCloudSecurityEventTrackingLogin.php index 63d9aa2..56943c4 100644 --- a/src/service/pinduoduo/bin/example/PddCloudSecurityEventTrackingLogin.php +++ b/src/service/pinduoduo/bin/example/PddCloudSecurityEventTrackingLogin.php @@ -1,31 +1,31 @@ -setLoginMessage('str'); -$request->setLoginResult(true); -$request->setMallIdList(array(1)); -$request->setPati('str'); -$request->setTimestamp(1); -$request->setUserId('str'); -$request->setUserIp('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setLoginMessage('str'); +$request->setLoginResult(true); +$request->setMallIdList(array(1)); +$request->setPati('str'); +$request->setTimestamp(1); +$request->setUserId('str'); +$request->setUserIp('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudWaybillGet.php b/src/service/pinduoduo/bin/example/PddCloudWaybillGet.php index 228bbd8..7660690 100644 --- a/src/service/pinduoduo/bin/example/PddCloudWaybillGet.php +++ b/src/service/pinduoduo/bin/example/PddCloudWaybillGet.php @@ -1,25 +1,25 @@ -setParamWaybillCloudPrintApplyNewRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParamWaybillCloudPrintApplyNewRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudWaybillUpdate.php b/src/service/pinduoduo/bin/example/PddCloudWaybillUpdate.php index d2efc4c..c4993c9 100644 --- a/src/service/pinduoduo/bin/example/PddCloudWaybillUpdate.php +++ b/src/service/pinduoduo/bin/example/PddCloudWaybillUpdate.php @@ -1,25 +1,25 @@ -setWaybillCloudPrintUpdateRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setWaybillCloudPrintUpdateRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudWebsessionSend.php b/src/service/pinduoduo/bin/example/PddCloudWebsessionSend.php index 25d569b..e0a3e1e 100644 --- a/src/service/pinduoduo/bin/example/PddCloudWebsessionSend.php +++ b/src/service/pinduoduo/bin/example/PddCloudWebsessionSend.php @@ -1,26 +1,26 @@ -setCacheType('str'); -$request->setSessionInfoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCacheType('str'); +$request->setSessionInfoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudWmsOrderSend.php b/src/service/pinduoduo/bin/example/PddCloudWmsOrderSend.php index 4dc6382..a7fcab5 100644 --- a/src/service/pinduoduo/bin/example/PddCloudWmsOrderSend.php +++ b/src/service/pinduoduo/bin/example/PddCloudWmsOrderSend.php @@ -1,25 +1,25 @@ -setWmsOrderSendRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setWmsOrderSendRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudprintCmdprintRender.php b/src/service/pinduoduo/bin/example/PddCloudprintCmdprintRender.php index 8e93b72..dd94593 100644 --- a/src/service/pinduoduo/bin/example/PddCloudprintCmdprintRender.php +++ b/src/service/pinduoduo/bin/example/PddCloudprintCmdprintRender.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudprintCustomaresGet.php b/src/service/pinduoduo/bin/example/PddCloudprintCustomaresGet.php index 106dbe6..e6bd07b 100644 --- a/src/service/pinduoduo/bin/example/PddCloudprintCustomaresGet.php +++ b/src/service/pinduoduo/bin/example/PddCloudprintCustomaresGet.php @@ -1,25 +1,25 @@ -setTemplateId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTemplateId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddCloudprintStdtemplatesGet.php b/src/service/pinduoduo/bin/example/PddCloudprintStdtemplatesGet.php index 2380bc9..ab38844 100644 --- a/src/service/pinduoduo/bin/example/PddCloudprintStdtemplatesGet.php +++ b/src/service/pinduoduo/bin/example/PddCloudprintStdtemplatesGet.php @@ -1,25 +1,25 @@ -setWpCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setWpCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkAllOrderListIncrementGet.php b/src/service/pinduoduo/bin/example/PddDdkAllOrderListIncrementGet.php index 93e4729..275a94f 100644 --- a/src/service/pinduoduo/bin/example/PddDdkAllOrderListIncrementGet.php +++ b/src/service/pinduoduo/bin/example/PddDdkAllOrderListIncrementGet.php @@ -1,29 +1,29 @@ -setEndUpdateTime(1); -$request->setPage(1); -$request->setPageSize(1); -$request->setStartUpdateTime(1); -$request->setQueryOrderType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setEndUpdateTime(1); +$request->setPage(1); +$request->setPageSize(1); +$request->setStartUpdateTime(1); +$request->setQueryOrderType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkCmsPromUrlGenerate.php b/src/service/pinduoduo/bin/example/PddDdkCmsPromUrlGenerate.php index b602bde..88e7084 100644 --- a/src/service/pinduoduo/bin/example/PddDdkCmsPromUrlGenerate.php +++ b/src/service/pinduoduo/bin/example/PddDdkCmsPromUrlGenerate.php @@ -1,34 +1,34 @@ -setChannelType(1); -$request->setCustomParameters('str'); -$request->setGenerateMobile(true); -$request->setGenerateSchemaUrl(true); -$request->setGenerateShortUrl(true); -$request->setGenerateWeappWebview(true); -$request->setMultiGroup(true); -$request->setPIdList(array('str')); -$request->setGenerateWeApp(true); -$request->setKeyword('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setChannelType(1); +$request->setCustomParameters('str'); +$request->setGenerateMobile(true); +$request->setGenerateSchemaUrl(true); +$request->setGenerateShortUrl(true); +$request->setGenerateWeappWebview(true); +$request->setMultiGroup(true); +$request->setPIdList(array('str')); +$request->setGenerateWeApp(true); +$request->setKeyword('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkGoodsDetail.php b/src/service/pinduoduo/bin/example/PddDdkGoodsDetail.php index cebc6bc..94cbcb1 100644 --- a/src/service/pinduoduo/bin/example/PddDdkGoodsDetail.php +++ b/src/service/pinduoduo/bin/example/PddDdkGoodsDetail.php @@ -1,31 +1,31 @@ -setCustomParameters('str'); -$request->setGoodsIdList(array(1)); -$request->setPid('str'); -$request->setPlanType(1); -$request->setSearchId('str'); -$request->setZsDuoId(1); -$request->setGoodsSign('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCustomParameters('str'); +$request->setGoodsIdList(array(1)); +$request->setPid('str'); +$request->setPlanType(1); +$request->setSearchId('str'); +$request->setZsDuoId(1); +$request->setGoodsSign('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkGoodsPidGenerate.php b/src/service/pinduoduo/bin/example/PddDdkGoodsPidGenerate.php index c8f43d1..07293c4 100644 --- a/src/service/pinduoduo/bin/example/PddDdkGoodsPidGenerate.php +++ b/src/service/pinduoduo/bin/example/PddDdkGoodsPidGenerate.php @@ -1,26 +1,26 @@ -setNumber(1); -$request->setPIdNameList(array('str')); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setNumber(1); +$request->setPIdNameList(array('str')); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkGoodsPidQuery.php b/src/service/pinduoduo/bin/example/PddDdkGoodsPidQuery.php index 3863bf6..b68aa86 100644 --- a/src/service/pinduoduo/bin/example/PddDdkGoodsPidQuery.php +++ b/src/service/pinduoduo/bin/example/PddDdkGoodsPidQuery.php @@ -1,28 +1,28 @@ -setPage(1); -$request->setPageSize(1); -$request->setPidList(array('str')); -$request->setStatus(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPage(1); +$request->setPageSize(1); +$request->setPidList(array('str')); +$request->setStatus(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkGoodsPromotionUrlGenerate.php b/src/service/pinduoduo/bin/example/PddDdkGoodsPromotionUrlGenerate.php index 8270daf..bc4c9b4 100644 --- a/src/service/pinduoduo/bin/example/PddDdkGoodsPromotionUrlGenerate.php +++ b/src/service/pinduoduo/bin/example/PddDdkGoodsPromotionUrlGenerate.php @@ -1,40 +1,40 @@ -setCustomParameters('str'); -$request->setGenerateMallCollectCoupon(true); -$request->setGenerateQqApp(true); -$request->setGenerateSchemaUrl(true); -$request->setGenerateShortUrl(true); -$request->setGenerateWeappWebview(true); -$request->setGenerateWeiboappWebview(true); -$request->setGenerateWeApp(true); -$request->setGoodsIdList(array(1)); -$request->setMultiGroup(true); -$request->setPId('str'); -$request->setSearchId('str'); -$request->setZsDuoId(1); -$request->setRoomIdList(array('str')); -$request->setTargetIdList(array('str')); -$request->setGenerateAuthorityUrl(true); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCustomParameters('str'); +$request->setGenerateMallCollectCoupon(true); +$request->setGenerateQqApp(true); +$request->setGenerateSchemaUrl(true); +$request->setGenerateShortUrl(true); +$request->setGenerateWeappWebview(true); +$request->setGenerateWeiboappWebview(true); +$request->setGenerateWeApp(true); +$request->setGoodsIdList(array(1)); +$request->setMultiGroup(true); +$request->setPId('str'); +$request->setSearchId('str'); +$request->setZsDuoId(1); +$request->setRoomIdList(array('str')); +$request->setTargetIdList(array('str')); +$request->setGenerateAuthorityUrl(true); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkGoodsRecommendGet.php b/src/service/pinduoduo/bin/example/PddDdkGoodsRecommendGet.php index 64f5c3d..3815f27 100644 --- a/src/service/pinduoduo/bin/example/PddDdkGoodsRecommendGet.php +++ b/src/service/pinduoduo/bin/example/PddDdkGoodsRecommendGet.php @@ -1,32 +1,32 @@ -setChannelType(1); -$request->setCustomParameters('str'); -$request->setLimit(1); -$request->setListId('str'); -$request->setOffset(1); -$request->setPid('str'); -$request->setCatId(1); -$request->setGoodsIds(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setChannelType(1); +$request->setCustomParameters('str'); +$request->setLimit(1); +$request->setListId('str'); +$request->setOffset(1); +$request->setPid('str'); +$request->setCatId(1); +$request->setGoodsIds(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkGoodsSearch.php b/src/service/pinduoduo/bin/example/PddDdkGoodsSearch.php index 91853d0..e62ecae 100644 --- a/src/service/pinduoduo/bin/example/PddDdkGoodsSearch.php +++ b/src/service/pinduoduo/bin/example/PddDdkGoodsSearch.php @@ -1,43 +1,43 @@ -setActivityTags(array(1)); -$request->setCatId(1); -$request->setCustomParameters('str'); -$request->setGoodsIdList(array(1)); -$request->setIsBrandGoods(true); -$request->setKeyword('str'); -$request->setListId('str'); -$request->setMerchantType(1); -$request->setMerchantTypeList(array(1)); -$request->setOptId(1); -$request->setPage(1); -$request->setPageSize(1); -$request->setPid('str'); -$request->setRangeList(); -$request->setSortType(1); -$request->setWithCoupon(true); -$request->setBlockCats(array(1)); -$request->setBlockCatPackages(array(1)); -$request->setGoodsSignList(array('str')); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setActivityTags(array(1)); +$request->setCatId(1); +$request->setCustomParameters('str'); +$request->setGoodsIdList(array(1)); +$request->setIsBrandGoods(true); +$request->setKeyword('str'); +$request->setListId('str'); +$request->setMerchantType(1); +$request->setMerchantTypeList(array(1)); +$request->setOptId(1); +$request->setPage(1); +$request->setPageSize(1); +$request->setPid('str'); +$request->setRangeList(); +$request->setSortType(1); +$request->setWithCoupon(true); +$request->setBlockCats(array(1)); +$request->setBlockCatPackages(array(1)); +$request->setGoodsSignList(array('str')); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkGoodsZsUnitUrlGen.php b/src/service/pinduoduo/bin/example/PddDdkGoodsZsUnitUrlGen.php index 3334ef0..e3b2039 100644 --- a/src/service/pinduoduo/bin/example/PddDdkGoodsZsUnitUrlGen.php +++ b/src/service/pinduoduo/bin/example/PddDdkGoodsZsUnitUrlGen.php @@ -1,27 +1,27 @@ -setPid('str'); -$request->setSourceUrl('str'); -$request->setCustomParameters('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPid('str'); +$request->setSourceUrl('str'); +$request->setCustomParameters('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkMemberAuthorityQuery.php b/src/service/pinduoduo/bin/example/PddDdkMemberAuthorityQuery.php index d23ffbd..2275fe5 100644 --- a/src/service/pinduoduo/bin/example/PddDdkMemberAuthorityQuery.php +++ b/src/service/pinduoduo/bin/example/PddDdkMemberAuthorityQuery.php @@ -1,26 +1,26 @@ -setPid('str'); -$request->setCustomParameters('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPid('str'); +$request->setCustomParameters('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthCmsPromUrlGenerate.php b/src/service/pinduoduo/bin/example/PddDdkOauthCmsPromUrlGenerate.php index e877d59..3734b26 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthCmsPromUrlGenerate.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthCmsPromUrlGenerate.php @@ -1,34 +1,34 @@ -setChannelType(1); -$request->setCustomParameters('str'); -$request->setGenerateMobile(true); -$request->setGenerateSchemaUrl(true); -$request->setGenerateShortUrl(true); -$request->setGenerateWeappWebview(true); -$request->setMultiGroup(true); -$request->setPIdList(array('str')); -$request->setGenerateWeApp(true); -$request->setKeyword('str'); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setChannelType(1); +$request->setCustomParameters('str'); +$request->setGenerateMobile(true); +$request->setGenerateSchemaUrl(true); +$request->setGenerateShortUrl(true); +$request->setGenerateWeappWebview(true); +$request->setMultiGroup(true); +$request->setPIdList(array('str')); +$request->setGenerateWeApp(true); +$request->setKeyword('str'); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPidGenerate.php b/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPidGenerate.php index 0ae0bfa..a2d7b3a 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPidGenerate.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPidGenerate.php @@ -1,26 +1,26 @@ -setNumber(1); -$request->setPIdNameList(array('str')); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setNumber(1); +$request->setPIdNameList(array('str')); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPidQuery.php b/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPidQuery.php index acffb69..ff12e82 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPidQuery.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPidQuery.php @@ -1,27 +1,27 @@ -setPage(1); -$request->setPageSize(1); -$request->setPidList(array('str')); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPage(1); +$request->setPageSize(1); +$request->setPidList(array('str')); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPromUrlGenerate.php b/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPromUrlGenerate.php index a5a6904..37b1749 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPromUrlGenerate.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthGoodsPromUrlGenerate.php @@ -1,39 +1,39 @@ -setCustomParameters('str'); -$request->setGenerateMallCollectCoupon(true); -$request->setGenerateQqApp(true); -$request->setGenerateSchemaUrl(true); -$request->setGenerateShortUrl(true); -$request->setGenerateWeappWebview(true); -$request->setGenerateWeiboappWebview(true); -$request->setGenerateWeApp(true); -$request->setGoodsIdList(array(1)); -$request->setMultiGroup(true); -$request->setPId('str'); -$request->setSearchId('str'); -$request->setZsDuoId(1); -$request->setForceDuoId(true); -$request->setGenerateAuthorityUrl(true); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCustomParameters('str'); +$request->setGenerateMallCollectCoupon(true); +$request->setGenerateQqApp(true); +$request->setGenerateSchemaUrl(true); +$request->setGenerateShortUrl(true); +$request->setGenerateWeappWebview(true); +$request->setGenerateWeiboappWebview(true); +$request->setGenerateWeApp(true); +$request->setGoodsIdList(array(1)); +$request->setMultiGroup(true); +$request->setPId('str'); +$request->setSearchId('str'); +$request->setZsDuoId(1); +$request->setForceDuoId(true); +$request->setGenerateAuthorityUrl(true); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthGoodsRecommendGet.php b/src/service/pinduoduo/bin/example/PddDdkOauthGoodsRecommendGet.php index 89b39f0..0abadf5 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthGoodsRecommendGet.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthGoodsRecommendGet.php @@ -1,30 +1,30 @@ -setChannelType(1); -$request->setCustomParameters('str'); -$request->setLimit(1); -$request->setListId('str'); -$request->setOffset(1); -$request->setPid('str'); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setChannelType(1); +$request->setCustomParameters('str'); +$request->setLimit(1); +$request->setListId('str'); +$request->setOffset(1); +$request->setPid('str'); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthGoodsZsUnitUrlGen.php b/src/service/pinduoduo/bin/example/PddDdkOauthGoodsZsUnitUrlGen.php index 167516c..7eec94d 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthGoodsZsUnitUrlGen.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthGoodsZsUnitUrlGen.php @@ -1,28 +1,28 @@ -setGenerateSchemaUrl(true); -$request->setPid('str'); -$request->setSourceUrl('str'); -$request->setCustomParameters('str'); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGenerateSchemaUrl(true); +$request->setPid('str'); +$request->setSourceUrl('str'); +$request->setCustomParameters('str'); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthMemberAuthorityQuery.php b/src/service/pinduoduo/bin/example/PddDdkOauthMemberAuthorityQuery.php index 0c1ea40..24477b2 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthMemberAuthorityQuery.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthMemberAuthorityQuery.php @@ -1,26 +1,26 @@ -setPid('str'); -$request->setCustomParameters('str'); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPid('str'); +$request->setCustomParameters('str'); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthOrderDetailGet.php b/src/service/pinduoduo/bin/example/PddDdkOauthOrderDetailGet.php index f963dac..e1ad068 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthOrderDetailGet.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthOrderDetailGet.php @@ -1,26 +1,26 @@ -setOrderSn('str'); -$request->setQueryOrderType(1); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +$request->setQueryOrderType(1); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthResourceUrlGen.php b/src/service/pinduoduo/bin/example/PddDdkOauthResourceUrlGen.php index 3e73c7d..5be24a3 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthResourceUrlGen.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthResourceUrlGen.php @@ -1,31 +1,31 @@ -setCustomParameters('str'); -$request->setGenerateWeApp(true); -$request->setPid('str'); -$request->setResourceType(1); -$request->setUrl('str'); -$request->setGenerateSchemaUrl(true); -$request->setGenerateQqApp(true); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCustomParameters('str'); +$request->setGenerateWeApp(true); +$request->setPid('str'); +$request->setResourceType(1); +$request->setUrl('str'); +$request->setGenerateSchemaUrl(true); +$request->setGenerateQqApp(true); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthRpPromUrlGenerate.php b/src/service/pinduoduo/bin/example/PddDdkOauthRpPromUrlGenerate.php index 152e130..cc79dd8 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthRpPromUrlGenerate.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthRpPromUrlGenerate.php @@ -1,35 +1,35 @@ -setChannelType(1); -$request->setCustomParameters('str'); -$request->setDiyLotteryParam(); -$request->setDiyRedPacketParam(); -$request->setGenerateQqApp(true); -$request->setGenerateSchemaUrl(true); -$request->setGenerateShortUrl(true); -$request->setGenerateWeApp(true); -$request->setPIdList(array('str')); -$request->setAmount(1); -$request->setScratchCardAmount(1); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setChannelType(1); +$request->setCustomParameters('str'); +$request->setDiyLotteryParam(); +$request->setDiyRedPacketParam(); +$request->setGenerateQqApp(true); +$request->setGenerateSchemaUrl(true); +$request->setGenerateShortUrl(true); +$request->setGenerateWeApp(true); +$request->setPIdList(array('str')); +$request->setAmount(1); +$request->setScratchCardAmount(1); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOauthTopGoodsListQuery.php b/src/service/pinduoduo/bin/example/PddDdkOauthTopGoodsListQuery.php index d4dcfb1..1f58fe4 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOauthTopGoodsListQuery.php +++ b/src/service/pinduoduo/bin/example/PddDdkOauthTopGoodsListQuery.php @@ -1,30 +1,30 @@ -setLimit(1); -$request->setListId('str'); -$request->setOffset(1); -$request->setPId('str'); -$request->setSortType(1); -$request->setCustomParameters('str'); -try{ - $response = $client->syncInvoke($request, Config::$accessToken); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setLimit(1); +$request->setListId('str'); +$request->setOffset(1); +$request->setPId('str'); +$request->setSortType(1); +$request->setCustomParameters('str'); +try{ + $response = $client->syncInvoke($request, Config::$accessToken); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOrderDetailGet.php b/src/service/pinduoduo/bin/example/PddDdkOrderDetailGet.php index 3853ec8..d1b54f1 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOrderDetailGet.php +++ b/src/service/pinduoduo/bin/example/PddDdkOrderDetailGet.php @@ -1,26 +1,26 @@ -setOrderSn('str'); -$request->setQueryOrderType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +$request->setQueryOrderType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOrderListIncrementGet.php b/src/service/pinduoduo/bin/example/PddDdkOrderListIncrementGet.php index 98f3377..783c80d 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOrderListIncrementGet.php +++ b/src/service/pinduoduo/bin/example/PddDdkOrderListIncrementGet.php @@ -1,30 +1,30 @@ -setEndUpdateTime(1); -$request->setPage(1); -$request->setPageSize(1); -$request->setReturnCount(true); -$request->setStartUpdateTime(1); -$request->setQueryOrderType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setEndUpdateTime(1); +$request->setPage(1); +$request->setPageSize(1); +$request->setReturnCount(true); +$request->setStartUpdateTime(1); +$request->setQueryOrderType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkOrderListRangeGet.php b/src/service/pinduoduo/bin/example/PddDdkOrderListRangeGet.php index 841ade0..b4c5eec 100644 --- a/src/service/pinduoduo/bin/example/PddDdkOrderListRangeGet.php +++ b/src/service/pinduoduo/bin/example/PddDdkOrderListRangeGet.php @@ -1,29 +1,29 @@ -setEndTime('str'); -$request->setLastOrderId('str'); -$request->setPageSize(1); -$request->setStartTime('str'); -$request->setQueryOrderType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setEndTime('str'); +$request->setLastOrderId('str'); +$request->setPageSize(1); +$request->setStartTime('str'); +$request->setQueryOrderType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkResourceUrlGen.php b/src/service/pinduoduo/bin/example/PddDdkResourceUrlGen.php index 2e810ce..1e35946 100644 --- a/src/service/pinduoduo/bin/example/PddDdkResourceUrlGen.php +++ b/src/service/pinduoduo/bin/example/PddDdkResourceUrlGen.php @@ -1,31 +1,31 @@ -setCustomParameters('str'); -$request->setGenerateQqApp(true); -$request->setGenerateSchemaUrl(true); -$request->setGenerateWeApp(true); -$request->setPid('str'); -$request->setResourceType(1); -$request->setUrl('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCustomParameters('str'); +$request->setGenerateQqApp(true); +$request->setGenerateSchemaUrl(true); +$request->setGenerateWeApp(true); +$request->setPid('str'); +$request->setResourceType(1); +$request->setUrl('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkRpPromUrlGenerate.php b/src/service/pinduoduo/bin/example/PddDdkRpPromUrlGenerate.php index 5d4a42c..4b72c71 100644 --- a/src/service/pinduoduo/bin/example/PddDdkRpPromUrlGenerate.php +++ b/src/service/pinduoduo/bin/example/PddDdkRpPromUrlGenerate.php @@ -1,35 +1,35 @@ -setChannelType(1); -$request->setCustomParameters('str'); -$request->setDiyLotteryParam(); -$request->setDiyRedPacketParam(); -$request->setGenerateQqApp(true); -$request->setGenerateSchemaUrl(true); -$request->setGenerateShortUrl(true); -$request->setGenerateWeApp(true); -$request->setPIdList(array('str')); -$request->setAmount(1); -$request->setScratchCardAmount(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setChannelType(1); +$request->setCustomParameters('str'); +$request->setDiyLotteryParam(); +$request->setDiyRedPacketParam(); +$request->setGenerateQqApp(true); +$request->setGenerateSchemaUrl(true); +$request->setGenerateShortUrl(true); +$request->setGenerateWeApp(true); +$request->setPIdList(array('str')); +$request->setAmount(1); +$request->setScratchCardAmount(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdkTopGoodsListQuery.php b/src/service/pinduoduo/bin/example/PddDdkTopGoodsListQuery.php index f96b3e7..d23b191 100644 --- a/src/service/pinduoduo/bin/example/PddDdkTopGoodsListQuery.php +++ b/src/service/pinduoduo/bin/example/PddDdkTopGoodsListQuery.php @@ -1,30 +1,30 @@ -setLimit(1); -$request->setListId('str'); -$request->setOffset(1); -$request->setPId('str'); -$request->setSortType(1); -$request->setCustomParameters('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setLimit(1); +$request->setListId('str'); +$request->setOffset(1); +$request->setPId('str'); +$request->setSortType(1); +$request->setCustomParameters('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdyPdpUserAdd.php b/src/service/pinduoduo/bin/example/PddDdyPdpUserAdd.php index 396224e..79dd51d 100644 --- a/src/service/pinduoduo/bin/example/PddDdyPdpUserAdd.php +++ b/src/service/pinduoduo/bin/example/PddDdyPdpUserAdd.php @@ -1,26 +1,26 @@ -setHistoryDays(1); -$request->setRdsId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setHistoryDays(1); +$request->setRdsId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdyPdpUserDelete.php b/src/service/pinduoduo/bin/example/PddDdyPdpUserDelete.php index 201d9ec..28b4ab9 100644 --- a/src/service/pinduoduo/bin/example/PddDdyPdpUserDelete.php +++ b/src/service/pinduoduo/bin/example/PddDdyPdpUserDelete.php @@ -1,25 +1,25 @@ -setOwnerId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOwnerId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDdyPdpUsersGet.php b/src/service/pinduoduo/bin/example/PddDdyPdpUsersGet.php index 6f9cd1b..8c639b5 100644 --- a/src/service/pinduoduo/bin/example/PddDdyPdpUsersGet.php +++ b/src/service/pinduoduo/bin/example/PddDdyPdpUsersGet.php @@ -1,29 +1,29 @@ -setOwnerId(1); -$request->setStartModified('str'); -$request->setEndModified('str'); -$request->setPageNo(1); -$request->setPageSize(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOwnerId(1); +$request->setStartModified('str'); +$request->setEndModified('str'); +$request->setPageNo(1); +$request->setPageSize(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDeleteDraftCommit.php b/src/service/pinduoduo/bin/example/PddDeleteDraftCommit.php index 144accb..293e1be 100644 --- a/src/service/pinduoduo/bin/example/PddDeleteDraftCommit.php +++ b/src/service/pinduoduo/bin/example/PddDeleteDraftCommit.php @@ -1,25 +1,25 @@ -setGoodsCommitId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsCommitId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddDeleteGoodsCommit.php b/src/service/pinduoduo/bin/example/PddDeleteGoodsCommit.php index e01516a..b3e3fa9 100644 --- a/src/service/pinduoduo/bin/example/PddDeleteGoodsCommit.php +++ b/src/service/pinduoduo/bin/example/PddDeleteGoodsCommit.php @@ -1,25 +1,25 @@ -setGoodsIds(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsIds(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddEinvoiceIssueInvoiceResultCallbackRuihong.php b/src/service/pinduoduo/bin/example/PddEinvoiceIssueInvoiceResultCallbackRuihong.php index c55f6a0..3d052f7 100644 --- a/src/service/pinduoduo/bin/example/PddEinvoiceIssueInvoiceResultCallbackRuihong.php +++ b/src/service/pinduoduo/bin/example/PddEinvoiceIssueInvoiceResultCallbackRuihong.php @@ -1,25 +1,25 @@ -setData(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setData(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddEinvoiceMallRegisterResult.php b/src/service/pinduoduo/bin/example/PddEinvoiceMallRegisterResult.php index ada4069..0dfc2be 100644 --- a/src/service/pinduoduo/bin/example/PddEinvoiceMallRegisterResult.php +++ b/src/service/pinduoduo/bin/example/PddEinvoiceMallRegisterResult.php @@ -1,25 +1,25 @@ -setData(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setData(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddEinvoiceOutboundQueryTaxpayerInfo.php b/src/service/pinduoduo/bin/example/PddEinvoiceOutboundQueryTaxpayerInfo.php index eb8ddfc..3eaf070 100644 --- a/src/service/pinduoduo/bin/example/PddEinvoiceOutboundQueryTaxpayerInfo.php +++ b/src/service/pinduoduo/bin/example/PddEinvoiceOutboundQueryTaxpayerInfo.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddEinvoiceOutboundRuihongQueryTaxDiskStatus.php b/src/service/pinduoduo/bin/example/PddEinvoiceOutboundRuihongQueryTaxDiskStatus.php index fbc02fd..ef3a498 100644 --- a/src/service/pinduoduo/bin/example/PddEinvoiceOutboundRuihongQueryTaxDiskStatus.php +++ b/src/service/pinduoduo/bin/example/PddEinvoiceOutboundRuihongQueryTaxDiskStatus.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddEinvoiceQueryMallRegisterOrder.php b/src/service/pinduoduo/bin/example/PddEinvoiceQueryMallRegisterOrder.php index fcb2390..eb282d1 100644 --- a/src/service/pinduoduo/bin/example/PddEinvoiceQueryMallRegisterOrder.php +++ b/src/service/pinduoduo/bin/example/PddEinvoiceQueryMallRegisterOrder.php @@ -1,25 +1,25 @@ -setData(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setData(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongInvoiceGet.php b/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongInvoiceGet.php index 3cfaa40..c6c9caa 100644 --- a/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongInvoiceGet.php +++ b/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongInvoiceGet.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongIssueInvoice.php b/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongIssueInvoice.php index ce5e1b4..9baad15 100644 --- a/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongIssueInvoice.php +++ b/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongIssueInvoice.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongIssueRedInvoice.php b/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongIssueRedInvoice.php index 4333696..5702b02 100644 --- a/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongIssueRedInvoice.php +++ b/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongIssueRedInvoice.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongMatchEnterprise.php b/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongMatchEnterprise.php index 3c46254..61f75db 100644 --- a/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongMatchEnterprise.php +++ b/src/service/pinduoduo/bin/example/PddEinvoiceVendorRuihongMatchEnterprise.php @@ -1,28 +1,28 @@ -setAppCode('str'); -$request->setCmdName('str'); -$request->setSign('str'); -$request->setCustomerName('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAppCode('str'); +$request->setCmdName('str'); +$request->setSign('str'); +$request->setCustomerName('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddErpOrderSync.php b/src/service/pinduoduo/bin/example/PddErpOrderSync.php index f490ffc..ef0596f 100644 --- a/src/service/pinduoduo/bin/example/PddErpOrderSync.php +++ b/src/service/pinduoduo/bin/example/PddErpOrderSync.php @@ -1,28 +1,28 @@ -setOrderSn('str'); -$request->setOrderState(1); -$request->setWaybillNo('str'); -$request->setLogisticsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +$request->setOrderState(1); +$request->setWaybillNo('str'); +$request->setLogisticsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddExpressAddDepot.php b/src/service/pinduoduo/bin/example/PddExpressAddDepot.php index ebea9ab..62fb492 100644 --- a/src/service/pinduoduo/bin/example/PddExpressAddDepot.php +++ b/src/service/pinduoduo/bin/example/PddExpressAddDepot.php @@ -1,35 +1,35 @@ -setContactName('str'); -$request->setDepotAddress('str'); -$request->setDepotAlias('str'); -$request->setDepotCityId(1); -$request->setDepotCode('str'); -$request->setDepotDistrictId(1); -$request->setDepotName('str'); -$request->setDepotProvinceId(1); -$request->setDepotRegion(); -$request->setTelephone('str'); -$request->setZipCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setContactName('str'); +$request->setDepotAddress('str'); +$request->setDepotAlias('str'); +$request->setDepotCityId(1); +$request->setDepotCode('str'); +$request->setDepotDistrictId(1); +$request->setDepotName('str'); +$request->setDepotProvinceId(1); +$request->setDepotRegion(); +$request->setTelephone('str'); +$request->setZipCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddExpressChangeDepotInfo.php b/src/service/pinduoduo/bin/example/PddExpressChangeDepotInfo.php index 6d472dd..fde1c59 100644 --- a/src/service/pinduoduo/bin/example/PddExpressChangeDepotInfo.php +++ b/src/service/pinduoduo/bin/example/PddExpressChangeDepotInfo.php @@ -1,35 +1,35 @@ -setDepotId(1); -$request->setDepotCode('str'); -$request->setDepotName('str'); -$request->setDepotAlias('str'); -$request->setDepotProvinceId(1); -$request->setDepotCityId(1); -$request->setDepotDistrictId(1); -$request->setDepotAddress('str'); -$request->setContactName('str'); -$request->setTelephone('str'); -$request->setDepotRegion('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDepotId(1); +$request->setDepotCode('str'); +$request->setDepotName('str'); +$request->setDepotAlias('str'); +$request->setDepotProvinceId(1); +$request->setDepotCityId(1); +$request->setDepotDistrictId(1); +$request->setDepotAddress('str'); +$request->setContactName('str'); +$request->setTelephone('str'); +$request->setDepotRegion('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddExpressDepotInfoGet.php b/src/service/pinduoduo/bin/example/PddExpressDepotInfoGet.php index 8d87f14..e7f291f 100644 --- a/src/service/pinduoduo/bin/example/PddExpressDepotInfoGet.php +++ b/src/service/pinduoduo/bin/example/PddExpressDepotInfoGet.php @@ -1,25 +1,25 @@ -setDepotId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDepotId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddExpressDepotListGet.php b/src/service/pinduoduo/bin/example/PddExpressDepotListGet.php index e7bbb99..03806cc 100644 --- a/src/service/pinduoduo/bin/example/PddExpressDepotListGet.php +++ b/src/service/pinduoduo/bin/example/PddExpressDepotListGet.php @@ -1,26 +1,26 @@ -setLength(1); -$request->setStart(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setLength(1); +$request->setStart(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddExpressMallDepotSimpleGet.php b/src/service/pinduoduo/bin/example/PddExpressMallDepotSimpleGet.php index 890bbc0..3fd8a1a 100644 --- a/src/service/pinduoduo/bin/example/PddExpressMallDepotSimpleGet.php +++ b/src/service/pinduoduo/bin/example/PddExpressMallDepotSimpleGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddExpressSearchDepot.php b/src/service/pinduoduo/bin/example/PddExpressSearchDepot.php index eb22dac..759b72a 100644 --- a/src/service/pinduoduo/bin/example/PddExpressSearchDepot.php +++ b/src/service/pinduoduo/bin/example/PddExpressSearchDepot.php @@ -1,28 +1,28 @@ -setCode('str'); -$request->setLength(1); -$request->setName('str'); -$request->setStart(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCode('str'); +$request->setLength(1); +$request->setName('str'); +$request->setStart(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFdsOrderGet.php b/src/service/pinduoduo/bin/example/PddFdsOrderGet.php index e0d981d..ca73efd 100644 --- a/src/service/pinduoduo/bin/example/PddFdsOrderGet.php +++ b/src/service/pinduoduo/bin/example/PddFdsOrderGet.php @@ -1,25 +1,25 @@ -setParamFdsOrderGetRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParamFdsOrderGetRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFdsOrderListGet.php b/src/service/pinduoduo/bin/example/PddFdsOrderListGet.php index 582dd75..7fd9706 100644 --- a/src/service/pinduoduo/bin/example/PddFdsOrderListGet.php +++ b/src/service/pinduoduo/bin/example/PddFdsOrderListGet.php @@ -1,25 +1,25 @@ -setParamFdsOrderListGetRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParamFdsOrderListGetRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFdsRoleGet.php b/src/service/pinduoduo/bin/example/PddFdsRoleGet.php index bec013f..6a23201 100644 --- a/src/service/pinduoduo/bin/example/PddFdsRoleGet.php +++ b/src/service/pinduoduo/bin/example/PddFdsRoleGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFdsWaybillCancel.php b/src/service/pinduoduo/bin/example/PddFdsWaybillCancel.php index 92d7599..c4c9355 100644 --- a/src/service/pinduoduo/bin/example/PddFdsWaybillCancel.php +++ b/src/service/pinduoduo/bin/example/PddFdsWaybillCancel.php @@ -1,25 +1,25 @@ -setPddFdsWaybillCancelRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPddFdsWaybillCancelRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFdsWaybillGet.php b/src/service/pinduoduo/bin/example/PddFdsWaybillGet.php index 552e318..7a72c28 100644 --- a/src/service/pinduoduo/bin/example/PddFdsWaybillGet.php +++ b/src/service/pinduoduo/bin/example/PddFdsWaybillGet.php @@ -1,25 +1,25 @@ -setParamFdsWaybillGetRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParamFdsWaybillGetRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFdsWaybillReturn.php b/src/service/pinduoduo/bin/example/PddFdsWaybillReturn.php index 60a522c..f68b4d7 100644 --- a/src/service/pinduoduo/bin/example/PddFdsWaybillReturn.php +++ b/src/service/pinduoduo/bin/example/PddFdsWaybillReturn.php @@ -1,25 +1,25 @@ -setParamFdsWaybillReturnRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParamFdsWaybillReturnRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFinanceBalanceDailyBillUrlGet.php b/src/service/pinduoduo/bin/example/PddFinanceBalanceDailyBillUrlGet.php index 01026a8..93a48f3 100644 --- a/src/service/pinduoduo/bin/example/PddFinanceBalanceDailyBillUrlGet.php +++ b/src/service/pinduoduo/bin/example/PddFinanceBalanceDailyBillUrlGet.php @@ -1,25 +1,25 @@ -setBillDate('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBillDate('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmChange.php b/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmChange.php index 3033639..5cb18ad 100644 --- a/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmChange.php +++ b/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmChange.php @@ -1,34 +1,34 @@ -setChangeTime('str'); -$request->setChangeType(1); -$request->setErrorCode(1); -$request->setErrorMsg('str'); -$request->setOutChangeNo('str'); -$request->setOutOrderNo('str'); -$request->setParentTravelSn('str'); -$request->setPassengerInfoList(); -$request->setSubTraceId('str'); -$request->setTraceId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setChangeTime('str'); +$request->setChangeType(1); +$request->setErrorCode(1); +$request->setErrorMsg('str'); +$request->setOutChangeNo('str'); +$request->setOutOrderNo('str'); +$request->setParentTravelSn('str'); +$request->setPassengerInfoList(); +$request->setSubTraceId('str'); +$request->setTraceId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmOrder.php b/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmOrder.php index eca579b..38d8420 100644 --- a/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmOrder.php +++ b/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmOrder.php @@ -1,37 +1,37 @@ -setErrorCode(1); -$request->setErrorMsg('str'); -$request->setFlightInfoList(); -$request->setOutOrderNo('str'); -$request->setParentTravelSn('str'); -$request->setPassengerInfoList(); -$request->setTicketStatus(1); -$request->setTicketTime('str'); -$request->setTotalAirportTax(1); -$request->setTotalFuelTax(1); -$request->setTotalPay(1); -$request->setTotalSettlePrice(1); -$request->setTraceId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setErrorCode(1); +$request->setErrorMsg('str'); +$request->setFlightInfoList(); +$request->setOutOrderNo('str'); +$request->setParentTravelSn('str'); +$request->setPassengerInfoList(); +$request->setTicketStatus(1); +$request->setTicketTime('str'); +$request->setTotalAirportTax(1); +$request->setTotalFuelTax(1); +$request->setTotalPay(1); +$request->setTotalSettlePrice(1); +$request->setTraceId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmRefund.php b/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmRefund.php index cff4a75..7247b07 100644 --- a/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmRefund.php +++ b/src/service/pinduoduo/bin/example/PddFlightCallbackConfirmRefund.php @@ -1,35 +1,35 @@ -setErrorCode(1); -$request->setErrorMsg('str'); -$request->setOutOrderNo('str'); -$request->setOutRefundNo('str'); -$request->setParentTravelSn('str'); -$request->setPassengerInfoList(); -$request->setRefundCallbackType(1); -$request->setRefundStatus(1); -$request->setRefundTime('str'); -$request->setSubRefundInfoList(); -$request->setTraceId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setErrorCode(1); +$request->setErrorMsg('str'); +$request->setOutOrderNo('str'); +$request->setOutRefundNo('str'); +$request->setParentTravelSn('str'); +$request->setPassengerInfoList(); +$request->setRefundCallbackType(1); +$request->setRefundStatus(1); +$request->setRefundTime('str'); +$request->setSubRefundInfoList(); +$request->setTraceId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightCallbackFlightchange.php b/src/service/pinduoduo/bin/example/PddFlightCallbackFlightchange.php index 7c44626..2d4f032 100644 --- a/src/service/pinduoduo/bin/example/PddFlightCallbackFlightchange.php +++ b/src/service/pinduoduo/bin/example/PddFlightCallbackFlightchange.php @@ -1,30 +1,30 @@ -setChangeEffectTime('str'); -$request->setChangeType(1); -$request->setFlightInfo(); -$request->setParentTravelSn('str'); -$request->setTraceId('str'); -$request->setTravelSn(array('str')); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setChangeEffectTime('str'); +$request->setChangeType(1); +$request->setFlightInfo(); +$request->setParentTravelSn('str'); +$request->setTraceId('str'); +$request->setTravelSn(array('str')); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightCallbackNotifyChangeapplyreply.php b/src/service/pinduoduo/bin/example/PddFlightCallbackNotifyChangeapplyreply.php index 232f23b..ae833af 100644 --- a/src/service/pinduoduo/bin/example/PddFlightCallbackNotifyChangeapplyreply.php +++ b/src/service/pinduoduo/bin/example/PddFlightCallbackNotifyChangeapplyreply.php @@ -1,33 +1,33 @@ -setErrorCode(1); -$request->setErrorMsg('str'); -$request->setOutChangeNo('str'); -$request->setOutOrderNo('str'); -$request->setParentTravelSn('str'); -$request->setPassengerInfoList(); -$request->setReviewChangeType(1); -$request->setSubTraceId('str'); -$request->setTraceId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setErrorCode(1); +$request->setErrorMsg('str'); +$request->setOutChangeNo('str'); +$request->setOutOrderNo('str'); +$request->setParentTravelSn('str'); +$request->setPassengerInfoList(); +$request->setReviewChangeType(1); +$request->setSubTraceId('str'); +$request->setTraceId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightChangeApply.php b/src/service/pinduoduo/bin/example/PddFlightChangeApply.php index 342001e..2b8f1a7 100644 --- a/src/service/pinduoduo/bin/example/PddFlightChangeApply.php +++ b/src/service/pinduoduo/bin/example/PddFlightChangeApply.php @@ -1,32 +1,32 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setOutOrderNo('str'); -$request->setParentTravelSn('str'); -$request->setChangeDate('str'); -$request->setAttachmentPath('str'); -$request->setPassengerInfoList(); -$request->setFlightInfoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setOutOrderNo('str'); +$request->setParentTravelSn('str'); +$request->setChangeDate('str'); +$request->setAttachmentPath('str'); +$request->setPassengerInfoList(); +$request->setFlightInfoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightChangeCancel.php b/src/service/pinduoduo/bin/example/PddFlightChangeCancel.php index ff9641a..2969252 100644 --- a/src/service/pinduoduo/bin/example/PddFlightChangeCancel.php +++ b/src/service/pinduoduo/bin/example/PddFlightChangeCancel.php @@ -1,30 +1,30 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setOutOrderNo('str'); -$request->setParentTravelSn('str'); -$request->setOutChangeNo('str'); -$request->setPassengerInfoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setOutOrderNo('str'); +$request->setParentTravelSn('str'); +$request->setOutChangeNo('str'); +$request->setPassengerInfoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightChangePay.php b/src/service/pinduoduo/bin/example/PddFlightChangePay.php index 972001f..44a13f1 100644 --- a/src/service/pinduoduo/bin/example/PddFlightChangePay.php +++ b/src/service/pinduoduo/bin/example/PddFlightChangePay.php @@ -1,33 +1,33 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setOutOrderNo('str'); -$request->setParentTravelSn('str'); -$request->setOutChangeNo('str'); -$request->setChangeDate('str'); -$request->setTotalPayFee(1); -$request->setTotalPay(1); -$request->setPassengerInfoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setOutOrderNo('str'); +$request->setParentTravelSn('str'); +$request->setOutChangeNo('str'); +$request->setChangeDate('str'); +$request->setTotalPayFee(1); +$request->setTotalPay(1); +$request->setPassengerInfoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightChangeableFlightList.php b/src/service/pinduoduo/bin/example/PddFlightChangeableFlightList.php index 10c3ced..b68771b 100644 --- a/src/service/pinduoduo/bin/example/PddFlightChangeableFlightList.php +++ b/src/service/pinduoduo/bin/example/PddFlightChangeableFlightList.php @@ -1,31 +1,31 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setTripType('str'); -$request->setParentTravelSn('str'); -$request->setOutOrderNo('str'); -$request->setChangeDate('str'); -$request->setPassengerInfoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setTripType('str'); +$request->setParentTravelSn('str'); +$request->setOutOrderNo('str'); +$request->setChangeDate('str'); +$request->setPassengerInfoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightOrderCancel.php b/src/service/pinduoduo/bin/example/PddFlightOrderCancel.php index efa4eaa..c87a359 100644 --- a/src/service/pinduoduo/bin/example/PddFlightOrderCancel.php +++ b/src/service/pinduoduo/bin/example/PddFlightOrderCancel.php @@ -1,28 +1,28 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setOutOrderNo('str'); -$request->setOutChangeNo('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setOutOrderNo('str'); +$request->setOutChangeNo('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightOrderCheckSeatPrice.php b/src/service/pinduoduo/bin/example/PddFlightOrderCheckSeatPrice.php index acf5b0c..2608aad 100644 --- a/src/service/pinduoduo/bin/example/PddFlightOrderCheckSeatPrice.php +++ b/src/service/pinduoduo/bin/example/PddFlightOrderCheckSeatPrice.php @@ -1,31 +1,31 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setTripType('str'); -$request->setProductType(1); -$request->setProductId('str'); -$request->setFlightInfoList(); -$request->setPriceInfoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setTripType('str'); +$request->setProductType(1); +$request->setProductId('str'); +$request->setFlightInfoList(); +$request->setPriceInfoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightOrderCreate.php b/src/service/pinduoduo/bin/example/PddFlightOrderCreate.php index c70a0f1..b752533 100644 --- a/src/service/pinduoduo/bin/example/PddFlightOrderCreate.php +++ b/src/service/pinduoduo/bin/example/PddFlightOrderCreate.php @@ -1,32 +1,32 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setTripType('str'); -$request->setFlightInfoList(); -$request->setPassengerInfoList(); -$request->setPriceInfoList(); -$request->setProductType(1); -$request->setProductId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setTripType('str'); +$request->setFlightInfoList(); +$request->setPassengerInfoList(); +$request->setPriceInfoList(); +$request->setProductType(1); +$request->setProductId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightOrderPayConfirm.php b/src/service/pinduoduo/bin/example/PddFlightOrderPayConfirm.php index 40ad273..a609f0c 100644 --- a/src/service/pinduoduo/bin/example/PddFlightOrderPayConfirm.php +++ b/src/service/pinduoduo/bin/example/PddFlightOrderPayConfirm.php @@ -1,30 +1,30 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setOutOrderNo('str'); -$request->setParentTravelSn('str'); -$request->setTotalPay(1); -$request->setPassengerInfoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setOutOrderNo('str'); +$request->setParentTravelSn('str'); +$request->setTotalPay(1); +$request->setPassengerInfoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightOrderPrePayCheck.php b/src/service/pinduoduo/bin/example/PddFlightOrderPrePayCheck.php index 2732517..ced70e1 100644 --- a/src/service/pinduoduo/bin/example/PddFlightOrderPrePayCheck.php +++ b/src/service/pinduoduo/bin/example/PddFlightOrderPrePayCheck.php @@ -1,28 +1,28 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setOutOrderNo('str'); -$request->setPassengerInfoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setOutOrderNo('str'); +$request->setPassengerInfoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightOrderQuerysn.php b/src/service/pinduoduo/bin/example/PddFlightOrderQuerysn.php index 1bcca17..dfe5dbc 100644 --- a/src/service/pinduoduo/bin/example/PddFlightOrderQuerysn.php +++ b/src/service/pinduoduo/bin/example/PddFlightOrderQuerysn.php @@ -1,26 +1,26 @@ -setTraceId('str'); -$request->setTravelSn('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setTravelSn('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightQueryFlightList.php b/src/service/pinduoduo/bin/example/PddFlightQueryFlightList.php index f10f3b2..8868d77 100644 --- a/src/service/pinduoduo/bin/example/PddFlightQueryFlightList.php +++ b/src/service/pinduoduo/bin/example/PddFlightQueryFlightList.php @@ -1,29 +1,29 @@ -setCarrierCodeList(array('str')); -$request->setSegmentList(); -$request->setSubTraceId('str'); -$request->setTraceId('str'); -$request->setTripType('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCarrierCodeList(array('str')); +$request->setSegmentList(); +$request->setSubTraceId('str'); +$request->setTraceId('str'); +$request->setTripType('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightQueryGuestRule.php b/src/service/pinduoduo/bin/example/PddFlightQueryGuestRule.php index 686a4b9..b2f79fa 100644 --- a/src/service/pinduoduo/bin/example/PddFlightQueryGuestRule.php +++ b/src/service/pinduoduo/bin/example/PddFlightQueryGuestRule.php @@ -1,28 +1,28 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setProductList(); -$request->setQueryStage(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setProductList(); +$request->setQueryStage(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightRefundApply.php b/src/service/pinduoduo/bin/example/PddFlightRefundApply.php index 1dfd723..c7f7a81 100644 --- a/src/service/pinduoduo/bin/example/PddFlightRefundApply.php +++ b/src/service/pinduoduo/bin/example/PddFlightRefundApply.php @@ -1,31 +1,31 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setOutOrderNo('str'); -$request->setParentTravelSn('str'); -$request->setRefundType(1); -$request->setRefundReason('str'); -$request->setPassengerInfoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setOutOrderNo('str'); +$request->setParentTravelSn('str'); +$request->setRefundType(1); +$request->setRefundReason('str'); +$request->setPassengerInfoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddFlightRefundable.php b/src/service/pinduoduo/bin/example/PddFlightRefundable.php index 0a5403f..24a0db9 100644 --- a/src/service/pinduoduo/bin/example/PddFlightRefundable.php +++ b/src/service/pinduoduo/bin/example/PddFlightRefundable.php @@ -1,32 +1,32 @@ -setTraceId('str'); -$request->setSubTraceId('str'); -$request->setOutOrderNo('str'); -$request->setParentTravelSn('str'); -$request->setRefundType(1); -$request->setRefundReason('str'); -$request->setAttachmentPath('str'); -$request->setPassengerInfoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTraceId('str'); +$request->setSubTraceId('str'); +$request->setOutOrderNo('str'); +$request->setParentTravelSn('str'); +$request->setRefundType(1); +$request->setRefundReason('str'); +$request->setAttachmentPath('str'); +$request->setPassengerInfoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsAdd.php b/src/service/pinduoduo/bin/example/PddGoodsAdd.php index cda0745..a5c372f 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsAdd.php +++ b/src/service/pinduoduo/bin/example/PddGoodsAdd.php @@ -1,73 +1,73 @@ -setBadFruitClaim(1); -$request->setBuyLimit(1); -$request->setCarouselGallery(array('str')); -$request->setCarouselVideo(); -$request->setCarouselVideoUrl('str'); -$request->setCatId(1); -$request->setCostTemplateId(1); -$request->setCountryId(1); -$request->setCustomerNum(1); -$request->setCustoms('str'); -$request->setDeliveryOneDay(1); -$request->setDetailGallery(array('str')); -$request->setElecGoodsAttributes(); -$request->setGoodsDesc('str'); -$request->setGoodsName('str'); -$request->setGoodsProperties(); -$request->setGoodsTradeAttr(); -$request->setGoodsTravelAttr(); -$request->setGoodsType(1); -$request->setImageUrl('str'); -$request->setInvoiceStatus(true); -$request->setIsCustoms(true); -$request->setIsFolt(true); -$request->setIsPreSale(true); -$request->setIsRefundable(true); -$request->setLackOfWeightClaim(1); -$request->setMaiJiaZiTi('str'); -$request->setMarketPrice(1); -$request->setOrderLimit(1); -$request->setOriginCountryId(1); -$request->setOutGoodsId('str'); -$request->setOutSourceGoodsId('str'); -$request->setOutSourceType(1); -$request->setOverseaGoods(); -$request->setOverseaType(1); -$request->setPreSaleTime(1); -$request->setQuanGuoLianBao(1); -$request->setSecondHand(true); -$request->setShangMenAnZhuang('str'); -$request->setShipmentLimitSecond(1); -$request->setSizeSpecId(1); -$request->setSkuList(); -$request->setSkuType(1); -$request->setSongHuoAnZhuang('str'); -$request->setSongHuoRuHu('str'); -$request->setTinyName('str'); -$request->setWarehouse('str'); -$request->setWarmTips('str'); -$request->setZhiHuanBuXiu(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBadFruitClaim(1); +$request->setBuyLimit(1); +$request->setCarouselGallery(array('str')); +$request->setCarouselVideo(); +$request->setCarouselVideoUrl('str'); +$request->setCatId(1); +$request->setCostTemplateId(1); +$request->setCountryId(1); +$request->setCustomerNum(1); +$request->setCustoms('str'); +$request->setDeliveryOneDay(1); +$request->setDetailGallery(array('str')); +$request->setElecGoodsAttributes(); +$request->setGoodsDesc('str'); +$request->setGoodsName('str'); +$request->setGoodsProperties(); +$request->setGoodsTradeAttr(); +$request->setGoodsTravelAttr(); +$request->setGoodsType(1); +$request->setImageUrl('str'); +$request->setInvoiceStatus(true); +$request->setIsCustoms(true); +$request->setIsFolt(true); +$request->setIsPreSale(true); +$request->setIsRefundable(true); +$request->setLackOfWeightClaim(1); +$request->setMaiJiaZiTi('str'); +$request->setMarketPrice(1); +$request->setOrderLimit(1); +$request->setOriginCountryId(1); +$request->setOutGoodsId('str'); +$request->setOutSourceGoodsId('str'); +$request->setOutSourceType(1); +$request->setOverseaGoods(); +$request->setOverseaType(1); +$request->setPreSaleTime(1); +$request->setQuanGuoLianBao(1); +$request->setSecondHand(true); +$request->setShangMenAnZhuang('str'); +$request->setShipmentLimitSecond(1); +$request->setSizeSpecId(1); +$request->setSkuList(); +$request->setSkuType(1); +$request->setSongHuoAnZhuang('str'); +$request->setSongHuoRuHu('str'); +$request->setTinyName('str'); +$request->setWarehouse('str'); +$request->setWarmTips('str'); +$request->setZhiHuanBuXiu(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsAuthorizationCats.php b/src/service/pinduoduo/bin/example/PddGoodsAuthorizationCats.php index b5aa313..c9997c1 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsAuthorizationCats.php +++ b/src/service/pinduoduo/bin/example/PddGoodsAuthorizationCats.php @@ -1,25 +1,25 @@ -setParentCatId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParentCatId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCatRuleGet.php b/src/service/pinduoduo/bin/example/PddGoodsCatRuleGet.php index 3ac67e8..54f5668 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCatRuleGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCatRuleGet.php @@ -1,25 +1,25 @@ -setCatId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCatId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCatTemplateGet.php b/src/service/pinduoduo/bin/example/PddGoodsCatTemplateGet.php index 8600577..d2ea794 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCatTemplateGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCatTemplateGet.php @@ -1,25 +1,25 @@ -setCatId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCatId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCatsGet.php b/src/service/pinduoduo/bin/example/PddGoodsCatsGet.php index 06310e7..c2bd7ed 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCatsGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCatsGet.php @@ -1,25 +1,25 @@ -setParentCatId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParentCatId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsChildSkuEdit.php b/src/service/pinduoduo/bin/example/PddGoodsChildSkuEdit.php index 70c1ac4..a7b2ba6 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsChildSkuEdit.php +++ b/src/service/pinduoduo/bin/example/PddGoodsChildSkuEdit.php @@ -1,28 +1,28 @@ -setGoodsCommitId(1); -$request->setGoodsId(1); -$request->setSkus(); -$request->setSyncGoodsOperate(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsCommitId(1); +$request->setGoodsId(1); +$request->setSkus(); +$request->setSyncGoodsOperate(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCommitDetailGet.php b/src/service/pinduoduo/bin/example/PddGoodsCommitDetailGet.php index 1b343ef..5daf8fa 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCommitDetailGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCommitDetailGet.php @@ -1,26 +1,26 @@ -setGoodsCommitId(1); -$request->setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsCommitId(1); +$request->setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCommitListGet.php b/src/service/pinduoduo/bin/example/PddGoodsCommitListGet.php index a6362a2..7e0098b 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCommitListGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCommitListGet.php @@ -1,28 +1,28 @@ -setCheckStatus(1); -$request->setGoodsId(1); -$request->setPage(1); -$request->setPageSize(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCheckStatus(1); +$request->setGoodsId(1); +$request->setPage(1); +$request->setPageSize(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCommitStatusGet.php b/src/service/pinduoduo/bin/example/PddGoodsCommitStatusGet.php index 9150b8b..8e3d6aa 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCommitStatusGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCommitStatusGet.php @@ -1,25 +1,25 @@ -setGoodsCommitIdList(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsCommitIdList(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCountryGet.php b/src/service/pinduoduo/bin/example/PddGoodsCountryGet.php index 0e43bb0..1bb94c1 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCountryGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCountryGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitChange.php b/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitChange.php index 2fded80..74c3d78 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitChange.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitChange.php @@ -1,25 +1,25 @@ -setRate(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRate(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitCreate.php b/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitCreate.php index 990b285..0f7edd9 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitCreate.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitCreate.php @@ -1,26 +1,26 @@ -setRate(1); -$request->setErpCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRate(1); +$request->setErpCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitPause.php b/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitPause.php index 09f4d35..107c4be 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitPause.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitPause.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitQuery.php b/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitQuery.php index 2872715..a91f9cf 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitQuery.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitQuery.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitResume.php b/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitResume.php index 24ac45b..564e274 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitResume.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCpsMallUnitResume.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCpsUnitChange.php b/src/service/pinduoduo/bin/example/PddGoodsCpsUnitChange.php index bc1d231..cb7e76f 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCpsUnitChange.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCpsUnitChange.php @@ -1,32 +1,32 @@ -setGoodsId(1); -$request->setRate(1); -$request->setCouponId(1); -$request->setCouponStartTime('str'); -$request->setCouponEndTime('str'); -$request->setDiscount(1); -$request->setInitQuantity(1); -$request->setRemainQuantity(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +$request->setRate(1); +$request->setCouponId(1); +$request->setCouponStartTime('str'); +$request->setCouponEndTime('str'); +$request->setDiscount(1); +$request->setInitQuantity(1); +$request->setRemainQuantity(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCpsUnitCreate.php b/src/service/pinduoduo/bin/example/PddGoodsCpsUnitCreate.php index f375e31..2889899 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCpsUnitCreate.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCpsUnitCreate.php @@ -1,25 +1,25 @@ -setUnits(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setUnits(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCpsUnitDelete.php b/src/service/pinduoduo/bin/example/PddGoodsCpsUnitDelete.php index 4bf0e64..daadb4d 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCpsUnitDelete.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCpsUnitDelete.php @@ -1,25 +1,25 @@ -setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsCpsUnitQuery.php b/src/service/pinduoduo/bin/example/PddGoodsCpsUnitQuery.php index f80e1a8..b3cef95 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsCpsUnitQuery.php +++ b/src/service/pinduoduo/bin/example/PddGoodsCpsUnitQuery.php @@ -1,25 +1,25 @@ -setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsDetailGet.php b/src/service/pinduoduo/bin/example/PddGoodsDetailGet.php index 63edc85..dc51ef4 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsDetailGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsDetailGet.php @@ -1,25 +1,25 @@ -setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsEditGoodsCommit.php b/src/service/pinduoduo/bin/example/PddGoodsEditGoodsCommit.php index be8d256..bece994 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsEditGoodsCommit.php +++ b/src/service/pinduoduo/bin/example/PddGoodsEditGoodsCommit.php @@ -1,73 +1,73 @@ -setBadFruitClaim(1); -$request->setBuyLimit(1); -$request->setCarouselGallery(array('str')); -$request->setCarouselVideo(); -$request->setCarouselVideoUrl('str'); -$request->setCatId(1); -$request->setCostTemplateId(1); -$request->setCountryId(1); -$request->setCustomerNum(1); -$request->setCustoms('str'); -$request->setDeliveryOneDay(1); -$request->setDetailGallery(array('str')); -$request->setElecGoodsAttributes(); -$request->setGoodsDesc('str'); -$request->setGoodsName('str'); -$request->setGoodsProperties(); -$request->setGoodsTradeAttr(); -$request->setGoodsTravelAttr(); -$request->setGoodsType(1); -$request->setImageUrl('str'); -$request->setInvoiceStatus(1); -$request->setIsCustoms(true); -$request->setIsFolt(true); -$request->setIsPreSale(true); -$request->setIsRefundable(true); -$request->setLackOfWeightClaim(1); -$request->setMaiJiaZiTi('str'); -$request->setMarketPrice(1); -$request->setOrderLimit(1); -$request->setOriginCountryId(1); -$request->setOutGoodsId('str'); -$request->setOutSourceGoodsId('str'); -$request->setOutSourceType(1); -$request->setOverseaGoods(); -$request->setOverseaType(1); -$request->setPreSaleTime(1); -$request->setQuanGuoLianBao(1); -$request->setSecondHand(true); -$request->setShangMenAnZhuang('str'); -$request->setShipmentLimitSecond(1); -$request->setSizeSpecId(1); -$request->setSkuList(); -$request->setSkuType(1); -$request->setSongHuoAnZhuang('str'); -$request->setSongHuoRuHu('str'); -$request->setTinyName('str'); -$request->setWarehouse('str'); -$request->setWarmTips('str'); -$request->setZhiHuanBuXiu(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBadFruitClaim(1); +$request->setBuyLimit(1); +$request->setCarouselGallery(array('str')); +$request->setCarouselVideo(); +$request->setCarouselVideoUrl('str'); +$request->setCatId(1); +$request->setCostTemplateId(1); +$request->setCountryId(1); +$request->setCustomerNum(1); +$request->setCustoms('str'); +$request->setDeliveryOneDay(1); +$request->setDetailGallery(array('str')); +$request->setElecGoodsAttributes(); +$request->setGoodsDesc('str'); +$request->setGoodsName('str'); +$request->setGoodsProperties(); +$request->setGoodsTradeAttr(); +$request->setGoodsTravelAttr(); +$request->setGoodsType(1); +$request->setImageUrl('str'); +$request->setInvoiceStatus(1); +$request->setIsCustoms(true); +$request->setIsFolt(true); +$request->setIsPreSale(true); +$request->setIsRefundable(true); +$request->setLackOfWeightClaim(1); +$request->setMaiJiaZiTi('str'); +$request->setMarketPrice(1); +$request->setOrderLimit(1); +$request->setOriginCountryId(1); +$request->setOutGoodsId('str'); +$request->setOutSourceGoodsId('str'); +$request->setOutSourceType(1); +$request->setOverseaGoods(); +$request->setOverseaType(1); +$request->setPreSaleTime(1); +$request->setQuanGuoLianBao(1); +$request->setSecondHand(true); +$request->setShangMenAnZhuang('str'); +$request->setShipmentLimitSecond(1); +$request->setSizeSpecId(1); +$request->setSkuList(); +$request->setSkuType(1); +$request->setSongHuoAnZhuang('str'); +$request->setSongHuoRuHu('str'); +$request->setTinyName('str'); +$request->setWarehouse('str'); +$request->setWarmTips('str'); +$request->setZhiHuanBuXiu(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsFilespaceImageUpload.php b/src/service/pinduoduo/bin/example/PddGoodsFilespaceImageUpload.php index 35d401c..80a0bff 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsFilespaceImageUpload.php +++ b/src/service/pinduoduo/bin/example/PddGoodsFilespaceImageUpload.php @@ -1,25 +1,25 @@ -setFile(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setFile(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsImageUpload.php b/src/service/pinduoduo/bin/example/PddGoodsImageUpload.php index c5f1451..091e1ad 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsImageUpload.php +++ b/src/service/pinduoduo/bin/example/PddGoodsImageUpload.php @@ -1,25 +1,25 @@ -setImage('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setImage('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsInformationGet.php b/src/service/pinduoduo/bin/example/PddGoodsInformationGet.php index 8af5c53..3f4cf51 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsInformationGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsInformationGet.php @@ -1,25 +1,25 @@ -setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsInformationUpdate.php b/src/service/pinduoduo/bin/example/PddGoodsInformationUpdate.php index c2e10de..a3cbe62 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsInformationUpdate.php +++ b/src/service/pinduoduo/bin/example/PddGoodsInformationUpdate.php @@ -1,76 +1,76 @@ -setBadFruitClaim(1); -$request->setBuyLimit(1); -$request->setCarouselGallery(array('str')); -$request->setCarouselVideo(); -$request->setCarouselVideoUrl('str'); -$request->setCatId(1); -$request->setCostTemplateId(1); -$request->setCountryId(1); -$request->setCustomerNum(1); -$request->setCustoms('str'); -$request->setDeliveryOneDay(1); -$request->setDetailGallery(array('str')); -$request->setElecGoodsAttributes(); -$request->setGoodsDesc('str'); -$request->setGoodsId(1); -$request->setGoodsName('str'); -$request->setGoodsProperties(); -$request->setGoodsTradeAttr(); -$request->setGoodsTravelAttr(); -$request->setGoodsType(1); -$request->setImageUrl('str'); -$request->setInvoiceStatus(1); -$request->setIsCustoms(true); -$request->setIsFolt(true); -$request->setIsPreSale(true); -$request->setIsRefundable(true); -$request->setLackOfWeightClaim(1); -$request->setMaiJiaZiTi('str'); -$request->setMarketPrice(1); -$request->setOperateType(1); -$request->setOrderLimit(1); -$request->setOriginCountryId(1); -$request->setOutGoodsId('str'); -$request->setOutSourceGoodsId('str'); -$request->setOutSourceType(1); -$request->setOverseaGoods(); -$request->setOverseaType(1); -$request->setPreSaleTime(1); -$request->setQuanGuoLianBao(1); -$request->setSecondHand(true); -$request->setShangMenAnZhuang('str'); -$request->setShipmentLimitSecond(1); -$request->setSizeSpecId(1); -$request->setSkuList(); -$request->setSkuType(1); -$request->setSongHuoAnZhuang('str'); -$request->setSongHuoRuHu('str'); -$request->setSyncGoodsOperate(1); -$request->setTinyName('str'); -$request->setWarehouse('str'); -$request->setWarmTips('str'); -$request->setZhiHuanBuXiu(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBadFruitClaim(1); +$request->setBuyLimit(1); +$request->setCarouselGallery(array('str')); +$request->setCarouselVideo(); +$request->setCarouselVideoUrl('str'); +$request->setCatId(1); +$request->setCostTemplateId(1); +$request->setCountryId(1); +$request->setCustomerNum(1); +$request->setCustoms('str'); +$request->setDeliveryOneDay(1); +$request->setDetailGallery(array('str')); +$request->setElecGoodsAttributes(); +$request->setGoodsDesc('str'); +$request->setGoodsId(1); +$request->setGoodsName('str'); +$request->setGoodsProperties(); +$request->setGoodsTradeAttr(); +$request->setGoodsTravelAttr(); +$request->setGoodsType(1); +$request->setImageUrl('str'); +$request->setInvoiceStatus(1); +$request->setIsCustoms(true); +$request->setIsFolt(true); +$request->setIsPreSale(true); +$request->setIsRefundable(true); +$request->setLackOfWeightClaim(1); +$request->setMaiJiaZiTi('str'); +$request->setMarketPrice(1); +$request->setOperateType(1); +$request->setOrderLimit(1); +$request->setOriginCountryId(1); +$request->setOutGoodsId('str'); +$request->setOutSourceGoodsId('str'); +$request->setOutSourceType(1); +$request->setOverseaGoods(); +$request->setOverseaType(1); +$request->setPreSaleTime(1); +$request->setQuanGuoLianBao(1); +$request->setSecondHand(true); +$request->setShangMenAnZhuang('str'); +$request->setShipmentLimitSecond(1); +$request->setSizeSpecId(1); +$request->setSkuList(); +$request->setSkuType(1); +$request->setSongHuoAnZhuang('str'); +$request->setSongHuoRuHu('str'); +$request->setSyncGoodsOperate(1); +$request->setTinyName('str'); +$request->setWarehouse('str'); +$request->setWarmTips('str'); +$request->setZhiHuanBuXiu(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsLatestCommitStatusGet.php b/src/service/pinduoduo/bin/example/PddGoodsLatestCommitStatusGet.php index 634fa47..d9c5785 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsLatestCommitStatusGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsLatestCommitStatusGet.php @@ -1,25 +1,25 @@ -setGoodsIdList(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsIdList(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsListGet.php b/src/service/pinduoduo/bin/example/PddGoodsListGet.php index 444d72c..8af30df 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsListGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsListGet.php @@ -1,31 +1,31 @@ -setOuterId('str'); -$request->setIsOnsale(1); -$request->setGoodsName('str'); -$request->setPageSize(1); -$request->setPage(1); -$request->setOuterGoodsId('str'); -$request->setCostTemplateId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOuterId('str'); +$request->setIsOnsale(1); +$request->setGoodsName('str'); +$request->setPageSize(1); +$request->setPage(1); +$request->setOuterGoodsId('str'); +$request->setCostTemplateId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateCreate.php b/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateCreate.php index 7682da7..01dac68 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateCreate.php +++ b/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateCreate.php @@ -1,29 +1,29 @@ -setTemplateType(1); -$request->setTemplateName('str'); -$request->setPriceUnit(1); -$request->setServiceAreaList(); -$request->setCatList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTemplateType(1); +$request->setTemplateName('str'); +$request->setPriceUnit(1); +$request->setServiceAreaList(); +$request->setCatList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateDelete.php b/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateDelete.php index 0bded6a..dcead43 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateDelete.php +++ b/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateDelete.php @@ -1,25 +1,25 @@ -setTemplateId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTemplateId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateDetail.php b/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateDetail.php index 5055006..4b23021 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateDetail.php +++ b/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateDetail.php @@ -1,25 +1,25 @@ -setTemplateId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTemplateId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateList.php b/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateList.php index 4ae7c19..c397b54 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateList.php +++ b/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateList.php @@ -1,28 +1,28 @@ -setTemplateType(1); -$request->setStart(1); -$request->setLength(1); -$request->setQueryType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTemplateType(1); +$request->setStart(1); +$request->setLength(1); +$request->setQueryType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateUpdate.php b/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateUpdate.php index 5f9d092..0e6b08a 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateUpdate.php +++ b/src/service/pinduoduo/bin/example/PddGoodsLogisticsSerTemplateUpdate.php @@ -1,30 +1,30 @@ -setTemplateId('str'); -$request->setTemplateType(1); -$request->setTemplateName('str'); -$request->setPriceUnit(1); -$request->setServiceAreaList(); -$request->setCatList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTemplateId('str'); +$request->setTemplateType(1); +$request->setTemplateName('str'); +$request->setPriceUnit(1); +$request->setServiceAreaList(); +$request->setCatList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsLogisticsTemplateCreate.php b/src/service/pinduoduo/bin/example/PddGoodsLogisticsTemplateCreate.php index 64176ac..03eeb1f 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsLogisticsTemplateCreate.php +++ b/src/service/pinduoduo/bin/example/PddGoodsLogisticsTemplateCreate.php @@ -1,31 +1,31 @@ -setCostTemplateList(); -$request->setFreeProvinceList(); -$request->setCostType(1); -$request->setTemplateName('str'); -$request->setProvinceId(1); -$request->setCityId(1); -$request->setDistrictId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCostTemplateList(); +$request->setFreeProvinceList(); +$request->setCostType(1); +$request->setTemplateName('str'); +$request->setProvinceId(1); +$request->setCityId(1); +$request->setDistrictId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsLogisticsTemplateGet.php b/src/service/pinduoduo/bin/example/PddGoodsLogisticsTemplateGet.php index 3a8b6cd..9424283 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsLogisticsTemplateGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsLogisticsTemplateGet.php @@ -1,26 +1,26 @@ -setPage(1); -$request->setPageSize(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPage(1); +$request->setPageSize(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsMaterialCreate.php b/src/service/pinduoduo/bin/example/PddGoodsMaterialCreate.php index 558b4fb..f19501b 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsMaterialCreate.php +++ b/src/service/pinduoduo/bin/example/PddGoodsMaterialCreate.php @@ -1,28 +1,28 @@ -setContent('str'); -$request->setFileId(1); -$request->setGoodsId(1); -$request->setMaterialType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setContent('str'); +$request->setFileId(1); +$request->setGoodsId(1); +$request->setMaterialType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsMaterialDelete.php b/src/service/pinduoduo/bin/example/PddGoodsMaterialDelete.php index 9ee05ff..32dc173 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsMaterialDelete.php +++ b/src/service/pinduoduo/bin/example/PddGoodsMaterialDelete.php @@ -1,25 +1,25 @@ -setMaterialId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setMaterialId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsMaterialQuery.php b/src/service/pinduoduo/bin/example/PddGoodsMaterialQuery.php index 823c102..2ca3ad1 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsMaterialQuery.php +++ b/src/service/pinduoduo/bin/example/PddGoodsMaterialQuery.php @@ -1,26 +1,26 @@ -setGoodsIdList(array(1)); -$request->setTypeList(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsIdList(array(1)); +$request->setTypeList(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsOptGet.php b/src/service/pinduoduo/bin/example/PddGoodsOptGet.php index 1dcfe95..08c5ac5 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsOptGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsOptGet.php @@ -1,25 +1,25 @@ -setParentOptId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParentOptId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsOutPropertyMappingGet.php b/src/service/pinduoduo/bin/example/PddGoodsOutPropertyMappingGet.php index df03a92..908075e 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsOutPropertyMappingGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsOutPropertyMappingGet.php @@ -1,27 +1,27 @@ -setCatId(1); -$request->setOutPropertyName('str'); -$request->setOutPropertyValueName('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCatId(1); +$request->setOutPropertyName('str'); +$request->setOutPropertyValueName('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsOuterCatMappingGet.php b/src/service/pinduoduo/bin/example/PddGoodsOuterCatMappingGet.php index 477ea50..9ca85eb 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsOuterCatMappingGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsOuterCatMappingGet.php @@ -1,27 +1,27 @@ -setOuterCatId(1); -$request->setOuterCatName('str'); -$request->setOuterGoodsName('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOuterCatId(1); +$request->setOuterCatName('str'); +$request->setOuterGoodsName('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsQuantityUpdate.php b/src/service/pinduoduo/bin/example/PddGoodsQuantityUpdate.php index c9591ae..bb07ca3 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsQuantityUpdate.php +++ b/src/service/pinduoduo/bin/example/PddGoodsQuantityUpdate.php @@ -1,29 +1,29 @@ -setGoodsId(1); -$request->setQuantity(1); -$request->setSkuId(1); -$request->setOuterId('str'); -$request->setUpdateType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +$request->setQuantity(1); +$request->setSkuId(1); +$request->setOuterId('str'); +$request->setUpdateType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSaleStatusSet.php b/src/service/pinduoduo/bin/example/PddGoodsSaleStatusSet.php index 08ec438..af26212 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSaleStatusSet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSaleStatusSet.php @@ -1,26 +1,26 @@ -setGoodsId(1); -$request->setIsOnsale(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +$request->setIsOnsale(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSizespecClassGet.php b/src/service/pinduoduo/bin/example/PddGoodsSizespecClassGet.php index 7d2f66e..85d5ee1 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSizespecClassGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSizespecClassGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSizespecMetaGet.php b/src/service/pinduoduo/bin/example/PddGoodsSizespecMetaGet.php index b35ff61..22ac1c7 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSizespecMetaGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSizespecMetaGet.php @@ -1,25 +1,25 @@ -setClassId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setClassId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateAdd.php b/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateAdd.php index fed5938..9f79e05 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateAdd.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateAdd.php @@ -1,25 +1,25 @@ -setSizeSpecDto(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setSizeSpecDto(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateDelete.php b/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateDelete.php index 6736e33..cd8ec83 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateDelete.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateDelete.php @@ -1,25 +1,25 @@ -setId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateGet.php b/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateGet.php index 9d91b0e..58191d0 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateGet.php @@ -1,25 +1,25 @@ -setId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateUpdate.php b/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateUpdate.php index e250e51..f716826 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateUpdate.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplateUpdate.php @@ -1,25 +1,25 @@ -setSizeSpecDto(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setSizeSpecDto(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplatesGet.php b/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplatesGet.php index a3d4a99..4f7aa0d 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplatesGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSizespecTemplatesGet.php @@ -1,27 +1,27 @@ -setClassId(1); -$request->setLimit(1); -$request->setOffset(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setClassId(1); +$request->setLimit(1); +$request->setOffset(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSkuPriceUpdate.php b/src/service/pinduoduo/bin/example/PddGoodsSkuPriceUpdate.php index f47364f..afe64e8 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSkuPriceUpdate.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSkuPriceUpdate.php @@ -1,29 +1,29 @@ -setGoodsId(1); -$request->setMarketPrice(1); -$request->setMarketPriceInYuan('str'); -$request->setSkuPriceList(); -$request->setSyncGoodsOperate(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +$request->setMarketPrice(1); +$request->setMarketPriceInYuan('str'); +$request->setSkuPriceList(); +$request->setSyncGoodsOperate(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSpecGet.php b/src/service/pinduoduo/bin/example/PddGoodsSpecGet.php index cc3ab1e..193bb8a 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSpecGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSpecGet.php @@ -1,25 +1,25 @@ -setCatId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCatId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSpecIdGet.php b/src/service/pinduoduo/bin/example/PddGoodsSpecIdGet.php index 3585ab0..fe76de2 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSpecIdGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSpecIdGet.php @@ -1,26 +1,26 @@ -setParentSpecId(1); -$request->setSpecName('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParentSpecId(1); +$request->setSpecName('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSpuGet.php b/src/service/pinduoduo/bin/example/PddGoodsSpuGet.php index 392617c..53acbfb 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSpuGet.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSpuGet.php @@ -1,26 +1,26 @@ -setCatId('str'); -$request->setKeyProp(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCatId('str'); +$request->setKeyProp(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSpuSearch.php b/src/service/pinduoduo/bin/example/PddGoodsSpuSearch.php index 6513d7e..6cd3487 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSpuSearch.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSpuSearch.php @@ -1,27 +1,27 @@ -setCatId(1); -$request->setKeyProp(); -$request->setSpuName('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCatId(1); +$request->setKeyProp(); +$request->setSpuName('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsSubmitGoodsCommit.php b/src/service/pinduoduo/bin/example/PddGoodsSubmitGoodsCommit.php index 5b2905d..de2c44d 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsSubmitGoodsCommit.php +++ b/src/service/pinduoduo/bin/example/PddGoodsSubmitGoodsCommit.php @@ -1,76 +1,76 @@ -setBadFruitClaim(1); -$request->setBuyLimit(1); -$request->setCarouselGallery(array('str')); -$request->setCarouselVideo(); -$request->setCarouselVideoUrl('str'); -$request->setCatId(1); -$request->setCostTemplateId(1); -$request->setCountryId(1); -$request->setCustomerNum(1); -$request->setCustoms('str'); -$request->setDeliveryOneDay(1); -$request->setDetailGallery(array('str')); -$request->setElecGoodsAttributes(); -$request->setGoodsCommitId(1); -$request->setGoodsDesc('str'); -$request->setGoodsId(1); -$request->setGoodsName('str'); -$request->setGoodsProperties(); -$request->setGoodsTradeAttr(); -$request->setGoodsTravelAttr(); -$request->setGoodsType(1); -$request->setImageUrl('str'); -$request->setInvoiceStatus(1); -$request->setIsCustoms(true); -$request->setIsFolt(true); -$request->setIsPreSale(true); -$request->setIsRefundable(true); -$request->setLackOfWeightClaim(1); -$request->setMaiJiaZiTi('str'); -$request->setMarketPrice(1); -$request->setOperateType(1); -$request->setOrderLimit(1); -$request->setOriginCountryId(1); -$request->setOutGoodsId('str'); -$request->setOutSourceGoodsId('str'); -$request->setOutSourceType(1); -$request->setOverseaGoods(); -$request->setOverseaType(1); -$request->setPreSaleTime(1); -$request->setQuanGuoLianBao(1); -$request->setSecondHand(true); -$request->setShangMenAnZhuang('str'); -$request->setShipmentLimitSecond(1); -$request->setSkuList(); -$request->setSkuType(1); -$request->setSongHuoAnZhuang('str'); -$request->setSongHuoRuHu('str'); -$request->setSyncGoodsOperate(1); -$request->setTinyName('str'); -$request->setWarehouse('str'); -$request->setWarmTips('str'); -$request->setZhiHuanBuXiu(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBadFruitClaim(1); +$request->setBuyLimit(1); +$request->setCarouselGallery(array('str')); +$request->setCarouselVideo(); +$request->setCarouselVideoUrl('str'); +$request->setCatId(1); +$request->setCostTemplateId(1); +$request->setCountryId(1); +$request->setCustomerNum(1); +$request->setCustoms('str'); +$request->setDeliveryOneDay(1); +$request->setDetailGallery(array('str')); +$request->setElecGoodsAttributes(); +$request->setGoodsCommitId(1); +$request->setGoodsDesc('str'); +$request->setGoodsId(1); +$request->setGoodsName('str'); +$request->setGoodsProperties(); +$request->setGoodsTradeAttr(); +$request->setGoodsTravelAttr(); +$request->setGoodsType(1); +$request->setImageUrl('str'); +$request->setInvoiceStatus(1); +$request->setIsCustoms(true); +$request->setIsFolt(true); +$request->setIsPreSale(true); +$request->setIsRefundable(true); +$request->setLackOfWeightClaim(1); +$request->setMaiJiaZiTi('str'); +$request->setMarketPrice(1); +$request->setOperateType(1); +$request->setOrderLimit(1); +$request->setOriginCountryId(1); +$request->setOutGoodsId('str'); +$request->setOutSourceGoodsId('str'); +$request->setOutSourceType(1); +$request->setOverseaGoods(); +$request->setOverseaType(1); +$request->setPreSaleTime(1); +$request->setQuanGuoLianBao(1); +$request->setSecondHand(true); +$request->setShangMenAnZhuang('str'); +$request->setShipmentLimitSecond(1); +$request->setSkuList(); +$request->setSkuType(1); +$request->setSongHuoAnZhuang('str'); +$request->setSongHuoRuHu('str'); +$request->setSyncGoodsOperate(1); +$request->setTinyName('str'); +$request->setWarehouse('str'); +$request->setWarmTips('str'); +$request->setZhiHuanBuXiu(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGoodsTemplatePropertyValueSearch.php b/src/service/pinduoduo/bin/example/PddGoodsTemplatePropertyValueSearch.php index eb2d645..5523856 100644 --- a/src/service/pinduoduo/bin/example/PddGoodsTemplatePropertyValueSearch.php +++ b/src/service/pinduoduo/bin/example/PddGoodsTemplatePropertyValueSearch.php @@ -1,31 +1,31 @@ -setCatId(1); -$request->setPageNum(1); -$request->setPageSize(1); -$request->setParentVid(1); -$request->setTemplatePid(1); -$request->setValue('str'); -$request->setRefPid(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCatId(1); +$request->setPageNum(1); +$request->setPageSize(1); +$request->setParentVid(1); +$request->setTemplatePid(1); +$request->setValue('str'); +$request->setRefPid(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddGooodsSkuMeasurementList.php b/src/service/pinduoduo/bin/example/PddGooodsSkuMeasurementList.php index bf82713..fccc015 100644 --- a/src/service/pinduoduo/bin/example/PddGooodsSkuMeasurementList.php +++ b/src/service/pinduoduo/bin/example/PddGooodsSkuMeasurementList.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddInvoiceApplicationQuery.php b/src/service/pinduoduo/bin/example/PddInvoiceApplicationQuery.php index d32eb24..2d33134 100644 --- a/src/service/pinduoduo/bin/example/PddInvoiceApplicationQuery.php +++ b/src/service/pinduoduo/bin/example/PddInvoiceApplicationQuery.php @@ -1,31 +1,31 @@ -setOrderSn('str'); -$request->setPage(1); -$request->setPageSize(1); -$request->setStatus(1); -$request->setUpdateEndTime(1); -$request->setUpdateStartTime(1); -$request->setQualityGoodsInvoice(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +$request->setPage(1); +$request->setPageSize(1); +$request->setStatus(1); +$request->setUpdateEndTime(1); +$request->setUpdateStartTime(1); +$request->setQualityGoodsInvoice(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddInvoiceDetailInvalid.php b/src/service/pinduoduo/bin/example/PddInvoiceDetailInvalid.php index 328eb71..434cccd 100644 --- a/src/service/pinduoduo/bin/example/PddInvoiceDetailInvalid.php +++ b/src/service/pinduoduo/bin/example/PddInvoiceDetailInvalid.php @@ -1,25 +1,25 @@ -setOrderSn('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddInvoiceDetailUpload.php b/src/service/pinduoduo/bin/example/PddInvoiceDetailUpload.php index e570a0d..9ff1f2b 100644 --- a/src/service/pinduoduo/bin/example/PddInvoiceDetailUpload.php +++ b/src/service/pinduoduo/bin/example/PddInvoiceDetailUpload.php @@ -1,46 +1,46 @@ -setBusinessType(1); -$request->setInvoiceAmount(1); -$request->setInvoiceCode('str'); -$request->setInvoiceFileContent('str'); -$request->setInvoiceKind(1); -$request->setInvoiceNo('str'); -$request->setInvoiceTime(1); -$request->setInvoiceType(1); -$request->setMemo('str'); -$request->setOrderSn('str'); -$request->setOriginalInvoiceCode('str'); -$request->setOriginalInvoiceNo('str'); -$request->setPayeeOperator('str'); -$request->setPayerAccount('str'); -$request->setPayerAddress('str'); -$request->setPayerBank('str'); -$request->setPayerName('str'); -$request->setPayerPhone('str'); -$request->setPayerRegisterNo('str'); -$request->setSumPrice(1); -$request->setSumTax(1); -$request->setTaxRate(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBusinessType(1); +$request->setInvoiceAmount(1); +$request->setInvoiceCode('str'); +$request->setInvoiceFileContent('str'); +$request->setInvoiceKind(1); +$request->setInvoiceNo('str'); +$request->setInvoiceTime(1); +$request->setInvoiceType(1); +$request->setMemo('str'); +$request->setOrderSn('str'); +$request->setOriginalInvoiceCode('str'); +$request->setOriginalInvoiceNo('str'); +$request->setPayeeOperator('str'); +$request->setPayerAccount('str'); +$request->setPayerAddress('str'); +$request->setPayerBank('str'); +$request->setPayerName('str'); +$request->setPayerPhone('str'); +$request->setPayerRegisterNo('str'); +$request->setSumPrice(1); +$request->setSumTax(1); +$request->setTaxRate(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttGoodsCreateSpec.php b/src/service/pinduoduo/bin/example/PddKttGoodsCreateSpec.php index fe64180..ee4879d 100644 --- a/src/service/pinduoduo/bin/example/PddKttGoodsCreateSpec.php +++ b/src/service/pinduoduo/bin/example/PddKttGoodsCreateSpec.php @@ -1,25 +1,25 @@ -setSpecMap(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setSpecMap(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttGoodsIncrQuantity.php b/src/service/pinduoduo/bin/example/PddKttGoodsIncrQuantity.php index 5ab5572..fed837e 100644 --- a/src/service/pinduoduo/bin/example/PddKttGoodsIncrQuantity.php +++ b/src/service/pinduoduo/bin/example/PddKttGoodsIncrQuantity.php @@ -1,28 +1,28 @@ -setGoodsId(1); -$request->setModifyQuantityType(1); -$request->setQuantityDelta(1); -$request->setSkuId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +$request->setModifyQuantityType(1); +$request->setQuantityDelta(1); +$request->setSkuId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttGoodsQueryList.php b/src/service/pinduoduo/bin/example/PddKttGoodsQueryList.php index 80f83da..ec227c2 100644 --- a/src/service/pinduoduo/bin/example/PddKttGoodsQueryList.php +++ b/src/service/pinduoduo/bin/example/PddKttGoodsQueryList.php @@ -1,26 +1,26 @@ -setPage(1); -$request->setSize(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPage(1); +$request->setSize(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttGoodsQuerySingle.php b/src/service/pinduoduo/bin/example/PddKttGoodsQuerySingle.php index 435a285..ad3a3ce 100644 --- a/src/service/pinduoduo/bin/example/PddKttGoodsQuerySingle.php +++ b/src/service/pinduoduo/bin/example/PddKttGoodsQuerySingle.php @@ -1,25 +1,25 @@ -setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttGoodsUploadImage.php b/src/service/pinduoduo/bin/example/PddKttGoodsUploadImage.php index b5a2a13..be65eee 100644 --- a/src/service/pinduoduo/bin/example/PddKttGoodsUploadImage.php +++ b/src/service/pinduoduo/bin/example/PddKttGoodsUploadImage.php @@ -1,25 +1,25 @@ -setUrl('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setUrl('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttGroupCreate.php b/src/service/pinduoduo/bin/example/PddKttGroupCreate.php index c252c07..73d4aed 100644 --- a/src/service/pinduoduo/bin/example/PddKttGroupCreate.php +++ b/src/service/pinduoduo/bin/example/PddKttGroupCreate.php @@ -1,30 +1,30 @@ -setEndTime(1); -$request->setGoodsList(); -$request->setIsvNo('str'); -$request->setIsSavePreview(1); -$request->setStartTime(1); -$request->setTitle('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setEndTime(1); +$request->setGoodsList(); +$request->setIsvNo('str'); +$request->setIsSavePreview(1); +$request->setStartTime(1); +$request->setTitle('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttGroupQueryStatus.php b/src/service/pinduoduo/bin/example/PddKttGroupQueryStatus.php index def1195..df50e3e 100644 --- a/src/service/pinduoduo/bin/example/PddKttGroupQueryStatus.php +++ b/src/service/pinduoduo/bin/example/PddKttGroupQueryStatus.php @@ -1,25 +1,25 @@ -setActivityNo('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setActivityNo('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttIncrementOrderQuery.php b/src/service/pinduoduo/bin/example/PddKttIncrementOrderQuery.php index e6e2dc8..1f5434b 100644 --- a/src/service/pinduoduo/bin/example/PddKttIncrementOrderQuery.php +++ b/src/service/pinduoduo/bin/example/PddKttIncrementOrderQuery.php @@ -1,32 +1,32 @@ -setAfterSalesStatus(1); -$request->setCancelStatus(1); -$request->setEndUpdatedAt(1); -$request->setPageNumber(1); -$request->setPageSize(1); -$request->setShippingStatus(1); -$request->setStartUpdatedAt(1); -$request->setVerificationStatus(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAfterSalesStatus(1); +$request->setCancelStatus(1); +$request->setEndUpdatedAt(1); +$request->setPageNumber(1); +$request->setPageSize(1); +$request->setShippingStatus(1); +$request->setStartUpdatedAt(1); +$request->setVerificationStatus(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttOrderGet.php b/src/service/pinduoduo/bin/example/PddKttOrderGet.php index 710e8ac..ff5244f 100644 --- a/src/service/pinduoduo/bin/example/PddKttOrderGet.php +++ b/src/service/pinduoduo/bin/example/PddKttOrderGet.php @@ -1,25 +1,25 @@ -setOrderSn('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttOrderList.php b/src/service/pinduoduo/bin/example/PddKttOrderList.php index 5b69dcd..38f2e67 100644 --- a/src/service/pinduoduo/bin/example/PddKttOrderList.php +++ b/src/service/pinduoduo/bin/example/PddKttOrderList.php @@ -1,32 +1,32 @@ -setAfterSalesStatus(1); -$request->setCancelStatus(1); -$request->setConfirmAtBegin(1); -$request->setConfirmAtEnd(1); -$request->setPageNumber(1); -$request->setPageSize(1); -$request->setShippingStatus(1); -$request->setVerificationStatus(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAfterSalesStatus(1); +$request->setCancelStatus(1); +$request->setConfirmAtBegin(1); +$request->setConfirmAtEnd(1); +$request->setPageNumber(1); +$request->setPageSize(1); +$request->setShippingStatus(1); +$request->setVerificationStatus(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttOrderLogisticCreate.php b/src/service/pinduoduo/bin/example/PddKttOrderLogisticCreate.php index 04eafce..1c24cd9 100644 --- a/src/service/pinduoduo/bin/example/PddKttOrderLogisticCreate.php +++ b/src/service/pinduoduo/bin/example/PddKttOrderLogisticCreate.php @@ -1,28 +1,28 @@ -setLogisticsId(1); -$request->setLogisticsName('str'); -$request->setOrderSn('str'); -$request->setWaybillNo('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setLogisticsId(1); +$request->setLogisticsName('str'); +$request->setOrderSn('str'); +$request->setWaybillNo('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddKttUserSitePagequery.php b/src/service/pinduoduo/bin/example/PddKttUserSitePagequery.php index fb245bc..535507e 100644 --- a/src/service/pinduoduo/bin/example/PddKttUserSitePagequery.php +++ b/src/service/pinduoduo/bin/example/PddKttUserSitePagequery.php @@ -1,26 +1,26 @@ -setPageNo(1); -$request->setPageSize(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPageNo(1); +$request->setPageSize(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsAddressGet.php b/src/service/pinduoduo/bin/example/PddLogisticsAddressGet.php index b44bc80..c55cab0 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsAddressGet.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsAddressGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsCompaniesGet.php b/src/service/pinduoduo/bin/example/PddLogisticsCompaniesGet.php index dfadd0d..b88a612 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsCompaniesGet.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsCompaniesGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsCsHistoryMessageGet.php b/src/service/pinduoduo/bin/example/PddLogisticsCsHistoryMessageGet.php index 0ad56c3..2191ab0 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsCsHistoryMessageGet.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsCsHistoryMessageGet.php @@ -1,25 +1,25 @@ -setSessionId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setSessionId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsCsMessageSend.php b/src/service/pinduoduo/bin/example/PddLogisticsCsMessageSend.php index 37d1fde..c551afb 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsCsMessageSend.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsCsMessageSend.php @@ -1,31 +1,31 @@ -setSessionId('str'); -$request->setWpSessionId('str'); -$request->setActionTime('str'); -$request->setMessageType(1); -$request->setText('str'); -$request->setAttach('str'); -$request->setPreview('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setSessionId('str'); +$request->setWpSessionId('str'); +$request->setActionTime('str'); +$request->setMessageType(1); +$request->setText('str'); +$request->setAttach('str'); +$request->setPreview('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsCsSessionClose.php b/src/service/pinduoduo/bin/example/PddLogisticsCsSessionClose.php index e45b606..ed1487d 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsCsSessionClose.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsCsSessionClose.php @@ -1,27 +1,27 @@ -setSessionId('str'); -$request->setWpSessionId('str'); -$request->setActionTime('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setSessionId('str'); +$request->setWpSessionId('str'); +$request->setActionTime('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsCsSessionStart.php b/src/service/pinduoduo/bin/example/PddLogisticsCsSessionStart.php index f61af3f..ba7c0a3 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsCsSessionStart.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsCsSessionStart.php @@ -1,35 +1,35 @@ -setSessionId('str'); -$request->setWpSessionId('str'); -$request->setActionTime('str'); -$request->setBizType(1); -$request->setDealerId('str'); -$request->setQueueId('str'); -$request->setQueueName('str'); -$request->setQueueIndex(1); -$request->setExceptionCode(1); -$request->setExceptionMsg('str'); -$request->setQueueAddress('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setSessionId('str'); +$request->setWpSessionId('str'); +$request->setActionTime('str'); +$request->setBizType(1); +$request->setDealerId('str'); +$request->setQueueId('str'); +$request->setQueueName('str'); +$request->setQueueIndex(1); +$request->setExceptionCode(1); +$request->setExceptionMsg('str'); +$request->setQueueAddress('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsIsvTraceNotifySub.php b/src/service/pinduoduo/bin/example/PddLogisticsIsvTraceNotifySub.php index 232fb96..e22bad4 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsIsvTraceNotifySub.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsIsvTraceNotifySub.php @@ -1,27 +1,27 @@ -setShipCode('str'); -$request->setTel('str'); -$request->setTrackNo('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setShipCode('str'); +$request->setTel('str'); +$request->setTrackNo('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsOnlineCreate.php b/src/service/pinduoduo/bin/example/PddLogisticsOnlineCreate.php index 734b425..eb42924 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsOnlineCreate.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsOnlineCreate.php @@ -1,32 +1,32 @@ -setTrackingNumber('str'); -$request->setShippingId(1); -$request->setReturnId('str'); -$request->setDeliveryPhone('str'); -$request->setDeliveryName('str'); -$request->setDeliveryAddress('str'); -$request->setDeliveryId('str'); -$request->setOrderSn('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTrackingNumber('str'); +$request->setShippingId(1); +$request->setReturnId('str'); +$request->setDeliveryPhone('str'); +$request->setDeliveryName('str'); +$request->setDeliveryAddress('str'); +$request->setDeliveryId('str'); +$request->setOrderSn('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsOnlineSend.php b/src/service/pinduoduo/bin/example/PddLogisticsOnlineSend.php index 67ea746..680511e 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsOnlineSend.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsOnlineSend.php @@ -1,29 +1,29 @@ -setFeature('str'); -$request->setLogisticsId(1); -$request->setOrderSn('str'); -$request->setRefundAddressId('str'); -$request->setTrackingNumber('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setFeature('str'); +$request->setLogisticsId(1); +$request->setOrderSn('str'); +$request->setRefundAddressId('str'); +$request->setTrackingNumber('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsOnlineStatusQuery.php b/src/service/pinduoduo/bin/example/PddLogisticsOnlineStatusQuery.php index bd40d63..70abe2c 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsOnlineStatusQuery.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsOnlineStatusQuery.php @@ -1,25 +1,25 @@ -setOrderSn('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsOrdertraceGet.php b/src/service/pinduoduo/bin/example/PddLogisticsOrdertraceGet.php index 06aaa06..42b9fe4 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsOrdertraceGet.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsOrdertraceGet.php @@ -1,27 +1,27 @@ -setCompanyCode('str'); -$request->setMailNo('str'); -$request->setCache(true); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCompanyCode('str'); +$request->setMailNo('str'); +$request->setCache(true); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsTicketGet.php b/src/service/pinduoduo/bin/example/PddLogisticsTicketGet.php index ef975be..bdd077e 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsTicketGet.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsTicketGet.php @@ -1,28 +1,28 @@ -setEndUpdatedAt(1); -$request->setPage(1); -$request->setPageSize(1); -$request->setStartUpdatedAt(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setEndUpdatedAt(1); +$request->setPage(1); +$request->setPageSize(1); +$request->setStartUpdatedAt(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsTicketImageUpload.php b/src/service/pinduoduo/bin/example/PddLogisticsTicketImageUpload.php index 33f80e0..f045aee 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsTicketImageUpload.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsTicketImageUpload.php @@ -1,25 +1,25 @@ -setImage('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setImage('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsTicketNotify.php b/src/service/pinduoduo/bin/example/PddLogisticsTicketNotify.php index 9cfb528..55b98ad 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsTicketNotify.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsTicketNotify.php @@ -1,34 +1,34 @@ -setAttachPathList(array('str')); -$request->setTicketId(1); -$request->setWaybillNo('str'); -$request->setHandleResult('str'); -$request->setSignState(1); -$request->setCompensateState(1); -$request->setCompensateAmount(1); -$request->setDuty(1); -$request->setExpressDealer('str'); -$request->setExpressDealerContact('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAttachPathList(array('str')); +$request->setTicketId(1); +$request->setWaybillNo('str'); +$request->setHandleResult('str'); +$request->setSignState(1); +$request->setCompensateState(1); +$request->setCompensateAmount(1); +$request->setDuty(1); +$request->setExpressDealer('str'); +$request->setExpressDealerContact('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddLogisticsTicketProblemTypeGet.php b/src/service/pinduoduo/bin/example/PddLogisticsTicketProblemTypeGet.php index d90a895..ae3b1a6 100644 --- a/src/service/pinduoduo/bin/example/PddLogisticsTicketProblemTypeGet.php +++ b/src/service/pinduoduo/bin/example/PddLogisticsTicketProblemTypeGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallCpsProtocolStatusQuery.php b/src/service/pinduoduo/bin/example/PddMallCpsProtocolStatusQuery.php index 2f5a608..92c738c 100644 --- a/src/service/pinduoduo/bin/example/PddMallCpsProtocolStatusQuery.php +++ b/src/service/pinduoduo/bin/example/PddMallCpsProtocolStatusQuery.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoBondedWarehouseGet.php b/src/service/pinduoduo/bin/example/PddMallInfoBondedWarehouseGet.php index e477fe4..d31a197 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoBondedWarehouseGet.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoBondedWarehouseGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoGet.php b/src/service/pinduoduo/bin/example/PddMallInfoGet.php index ba95b52..4ac0026 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoGet.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoGroupAddStorePost.php b/src/service/pinduoduo/bin/example/PddMallInfoGroupAddStorePost.php index 0276e0f..5f33686 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoGroupAddStorePost.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoGroupAddStorePost.php @@ -1,26 +1,26 @@ -setGroupId(1); -$request->setStoreIdList(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGroupId(1); +$request->setStoreIdList(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoGroupListStoreGet.php b/src/service/pinduoduo/bin/example/PddMallInfoGroupListStoreGet.php index ff6567e..4aedb44 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoGroupListStoreGet.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoGroupListStoreGet.php @@ -1,27 +1,27 @@ -setGroupId(1); -$request->setPageNumber(1); -$request->setPageSize(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGroupId(1); +$request->setPageNumber(1); +$request->setPageSize(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoGroupRemoveStoreGet.php b/src/service/pinduoduo/bin/example/PddMallInfoGroupRemoveStoreGet.php index 14c2c62..e93287f 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoGroupRemoveStoreGet.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoGroupRemoveStoreGet.php @@ -1,26 +1,26 @@ -setGroupId(1); -$request->setStoreIdList(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGroupId(1); +$request->setStoreIdList(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoStoreCreatePost.php b/src/service/pinduoduo/bin/example/PddMallInfoStoreCreatePost.php index 114b3fa..4e14a9f 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoStoreCreatePost.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoStoreCreatePost.php @@ -1,38 +1,38 @@ -setBusinessStatus(1); -$request->setBusinessWeekList(array(1)); -$request->setCity('str'); -$request->setDistrict('str'); -$request->setEndBusinessHour('str'); -$request->setPoiId('str'); -$request->setPoiLatitude(); -$request->setPoiLongitude(); -$request->setProvince('str'); -$request->setStartBusinessHour('str'); -$request->setStoreName('str'); -$request->setStoreNumber('str'); -$request->setStorePhone('str'); -$request->setTradeType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBusinessStatus(1); +$request->setBusinessWeekList(array(1)); +$request->setCity('str'); +$request->setDistrict('str'); +$request->setEndBusinessHour('str'); +$request->setPoiId('str'); +$request->setPoiLatitude(); +$request->setPoiLongitude(); +$request->setProvince('str'); +$request->setStartBusinessHour('str'); +$request->setStoreName('str'); +$request->setStoreNumber('str'); +$request->setStorePhone('str'); +$request->setTradeType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoStoreCreatePostNopoi.php b/src/service/pinduoduo/bin/example/PddMallInfoStoreCreatePostNopoi.php index 60d3f7c..458992d 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoStoreCreatePostNopoi.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoStoreCreatePostNopoi.php @@ -1,38 +1,38 @@ -setBusinessStatus(1); -$request->setBusinessWeekList(array(1)); -$request->setCity('str'); -$request->setDistrict('str'); -$request->setEndBusinessHour('str'); -$request->setPoiLatitude(); -$request->setPoiLongitude(); -$request->setProvince('str'); -$request->setStartBusinessHour('str'); -$request->setStoreAddress('str'); -$request->setStoreName('str'); -$request->setStoreNumber('str'); -$request->setStorePhone('str'); -$request->setTradeType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBusinessStatus(1); +$request->setBusinessWeekList(array(1)); +$request->setCity('str'); +$request->setDistrict('str'); +$request->setEndBusinessHour('str'); +$request->setPoiLatitude(); +$request->setPoiLongitude(); +$request->setProvince('str'); +$request->setStartBusinessHour('str'); +$request->setStoreAddress('str'); +$request->setStoreName('str'); +$request->setStoreNumber('str'); +$request->setStorePhone('str'); +$request->setTradeType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoStoreDeletePost.php b/src/service/pinduoduo/bin/example/PddMallInfoStoreDeletePost.php index 26fad22..bf6dbf9 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoStoreDeletePost.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoStoreDeletePost.php @@ -1,25 +1,25 @@ -setStoreIdList(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setStoreIdList(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoStoreGet.php b/src/service/pinduoduo/bin/example/PddMallInfoStoreGet.php index 676ac0f..c7291ba 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoStoreGet.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoStoreGet.php @@ -1,32 +1,32 @@ -setCity('str'); -$request->setDistrict('str'); -$request->setPageNumber(1); -$request->setPageSize(1); -$request->setProvince('str'); -$request->setStoreId(1); -$request->setStoreName('str'); -$request->setStoreNumber('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCity('str'); +$request->setDistrict('str'); +$request->setPageNumber(1); +$request->setPageSize(1); +$request->setProvince('str'); +$request->setStoreId(1); +$request->setStoreName('str'); +$request->setStoreNumber('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoStoreUpdatePost.php b/src/service/pinduoduo/bin/example/PddMallInfoStoreUpdatePost.php index 97d7764..247d20c 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoStoreUpdatePost.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoStoreUpdatePost.php @@ -1,40 +1,40 @@ -setBusinessStatus(1); -$request->setBusinessWeekList(array(1)); -$request->setCity('str'); -$request->setDistrict('str'); -$request->setEndBusinessHour('str'); -$request->setPoiId('str'); -$request->setPoiLatitude(); -$request->setPoiLongitude(); -$request->setProvince('str'); -$request->setStartBusinessHour('str'); -$request->setStoreAddress('str'); -$request->setStoreId(1); -$request->setStoreName('str'); -$request->setStoreNumber('str'); -$request->setStorePhone('str'); -$request->setTradeType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBusinessStatus(1); +$request->setBusinessWeekList(array(1)); +$request->setCity('str'); +$request->setDistrict('str'); +$request->setEndBusinessHour('str'); +$request->setPoiId('str'); +$request->setPoiLatitude(); +$request->setPoiLongitude(); +$request->setProvince('str'); +$request->setStartBusinessHour('str'); +$request->setStoreAddress('str'); +$request->setStoreId(1); +$request->setStoreName('str'); +$request->setStoreNumber('str'); +$request->setStorePhone('str'); +$request->setTradeType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallInfoStoreUpdatePostNopoi.php b/src/service/pinduoduo/bin/example/PddMallInfoStoreUpdatePostNopoi.php index 8439c48..aa9f461 100644 --- a/src/service/pinduoduo/bin/example/PddMallInfoStoreUpdatePostNopoi.php +++ b/src/service/pinduoduo/bin/example/PddMallInfoStoreUpdatePostNopoi.php @@ -1,39 +1,39 @@ -setBusinessStatus(1); -$request->setBusinessWeekList(array(1)); -$request->setCity('str'); -$request->setDistrict('str'); -$request->setEndBusinessHour('str'); -$request->setPoiLatitude(); -$request->setPoiLongitude(); -$request->setProvince('str'); -$request->setStartBusinessHour('str'); -$request->setStoreAddress('str'); -$request->setStoreId(1); -$request->setStoreName('str'); -$request->setStoreNumber('str'); -$request->setStorePhone('str'); -$request->setTradeType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBusinessStatus(1); +$request->setBusinessWeekList(array(1)); +$request->setCity('str'); +$request->setDistrict('str'); +$request->setEndBusinessHour('str'); +$request->setPoiLatitude(); +$request->setPoiLongitude(); +$request->setProvince('str'); +$request->setStartBusinessHour('str'); +$request->setStoreAddress('str'); +$request->setStoreId(1); +$request->setStoreName('str'); +$request->setStoreNumber('str'); +$request->setStorePhone('str'); +$request->setTradeType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallTicketDetail.php b/src/service/pinduoduo/bin/example/PddMallTicketDetail.php index 9b4be02..c598889 100644 --- a/src/service/pinduoduo/bin/example/PddMallTicketDetail.php +++ b/src/service/pinduoduo/bin/example/PddMallTicketDetail.php @@ -1,25 +1,25 @@ -setTicketId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTicketId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallTicketList.php b/src/service/pinduoduo/bin/example/PddMallTicketList.php index 22bf75b..ccaef7d 100644 --- a/src/service/pinduoduo/bin/example/PddMallTicketList.php +++ b/src/service/pinduoduo/bin/example/PddMallTicketList.php @@ -1,29 +1,29 @@ -setCreateEndTime(1); -$request->setCreateStartTime(1); -$request->setPageNum(1); -$request->setPageSize(1); -$request->setProgress(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCreateEndTime(1); +$request->setCreateStartTime(1); +$request->setPageNum(1); +$request->setPageSize(1); +$request->setProgress(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMallTicketNotify.php b/src/service/pinduoduo/bin/example/PddMallTicketNotify.php index 7d96521..2f680a8 100644 --- a/src/service/pinduoduo/bin/example/PddMallTicketNotify.php +++ b/src/service/pinduoduo/bin/example/PddMallTicketNotify.php @@ -1,27 +1,27 @@ -setContent('str'); -$request->setSynToUser(true); -$request->setTicketId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setContent('str'); +$request->setSynToUser(true); +$request->setTicketId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMedicineConsultClose.php b/src/service/pinduoduo/bin/example/PddMedicineConsultClose.php index 6ff492e..4f41b65 100644 --- a/src/service/pinduoduo/bin/example/PddMedicineConsultClose.php +++ b/src/service/pinduoduo/bin/example/PddMedicineConsultClose.php @@ -1,26 +1,26 @@ -setConsultNo('str'); -$request->setReason('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setConsultNo('str'); +$request->setReason('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddMedicineConsultReceive.php b/src/service/pinduoduo/bin/example/PddMedicineConsultReceive.php index 0a29b84..c264985 100644 --- a/src/service/pinduoduo/bin/example/PddMedicineConsultReceive.php +++ b/src/service/pinduoduo/bin/example/PddMedicineConsultReceive.php @@ -1,29 +1,29 @@ -setConsultNo('str'); -$request->setContent('str'); -$request->setDoctorId(1); -$request->setMsgId('str'); -$request->setReceiveType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setConsultNo('str'); +$request->setContent('str'); +$request->setDoctorId(1); +$request->setMsgId('str'); +$request->setReceiveType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddNextoneLogisticsWarehouseUpdate.php b/src/service/pinduoduo/bin/example/PddNextoneLogisticsWarehouseUpdate.php index daaa45d..59ef2fe 100644 --- a/src/service/pinduoduo/bin/example/PddNextoneLogisticsWarehouseUpdate.php +++ b/src/service/pinduoduo/bin/example/PddNextoneLogisticsWarehouseUpdate.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOneExpressCostTemplate.php b/src/service/pinduoduo/bin/example/PddOneExpressCostTemplate.php index 5ad7624..b53205a 100644 --- a/src/service/pinduoduo/bin/example/PddOneExpressCostTemplate.php +++ b/src/service/pinduoduo/bin/example/PddOneExpressCostTemplate.php @@ -1,25 +1,25 @@ -setCostTemplateId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCostTemplateId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOpenDecryptBatch.php b/src/service/pinduoduo/bin/example/PddOpenDecryptBatch.php index b38f291..32988bf 100644 --- a/src/service/pinduoduo/bin/example/PddOpenDecryptBatch.php +++ b/src/service/pinduoduo/bin/example/PddOpenDecryptBatch.php @@ -1,25 +1,25 @@ -setDataList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDataList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOpenDecryptMaskBatch.php b/src/service/pinduoduo/bin/example/PddOpenDecryptMaskBatch.php index 33ca45f..8fe52aa 100644 --- a/src/service/pinduoduo/bin/example/PddOpenDecryptMaskBatch.php +++ b/src/service/pinduoduo/bin/example/PddOpenDecryptMaskBatch.php @@ -1,25 +1,25 @@ -setDataList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDataList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOpenKmsEncryptBatch.php b/src/service/pinduoduo/bin/example/PddOpenKmsEncryptBatch.php index 82ac3ce..bdf43a1 100644 --- a/src/service/pinduoduo/bin/example/PddOpenKmsEncryptBatch.php +++ b/src/service/pinduoduo/bin/example/PddOpenKmsEncryptBatch.php @@ -1,25 +1,25 @@ -setDataList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDataList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOpenKmsSearchBatch.php b/src/service/pinduoduo/bin/example/PddOpenKmsSearchBatch.php index 89d2018..f2828fe 100644 --- a/src/service/pinduoduo/bin/example/PddOpenKmsSearchBatch.php +++ b/src/service/pinduoduo/bin/example/PddOpenKmsSearchBatch.php @@ -1,25 +1,25 @@ -setInputList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setInputList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOpenMsgServiceQueryExpressMsgRecord.php b/src/service/pinduoduo/bin/example/PddOpenMsgServiceQueryExpressMsgRecord.php index 33aa8fe..5de97f2 100644 --- a/src/service/pinduoduo/bin/example/PddOpenMsgServiceQueryExpressMsgRecord.php +++ b/src/service/pinduoduo/bin/example/PddOpenMsgServiceQueryExpressMsgRecord.php @@ -1,30 +1,30 @@ -setBizId('str'); -$request->setPageNumber(1); -$request->setPageSize(1); -$request->setSendDate('str'); -$request->setWaybillCode('str'); -$request->setWpCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBizId('str'); +$request->setPageNumber(1); +$request->setPageSize(1); +$request->setSendDate('str'); +$request->setWaybillCode('str'); +$request->setWpCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOpenMsgServiceQueryMsgRecord.php b/src/service/pinduoduo/bin/example/PddOpenMsgServiceQueryMsgRecord.php index a34ff88..4117e17 100644 --- a/src/service/pinduoduo/bin/example/PddOpenMsgServiceQueryMsgRecord.php +++ b/src/service/pinduoduo/bin/example/PddOpenMsgServiceQueryMsgRecord.php @@ -1,29 +1,29 @@ -setBizId('str'); -$request->setPageNumber(1); -$request->setPageSize(1); -$request->setPhoneNumber('str'); -$request->setSendDate('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBizId('str'); +$request->setPageNumber(1); +$request->setPageSize(1); +$request->setPhoneNumber('str'); +$request->setSendDate('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendBatchMsg.php b/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendBatchMsg.php index 928ea83..d04a7c6 100644 --- a/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendBatchMsg.php +++ b/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendBatchMsg.php @@ -1,30 +1,30 @@ -setPhoneNumbers(array('str')); -$request->setSignName('str'); -$request->setTemplateCode(1); -$request->setTemplateParamJson(); -$request->setOutId('str'); -$request->setSmsUpExtendCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPhoneNumbers(array('str')); +$request->setSignName('str'); +$request->setTemplateCode(1); +$request->setTemplateParamJson(); +$request->setOutId('str'); +$request->setSmsUpExtendCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendExpressMsg.php b/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendExpressMsg.php index 94eb24a..5d73807 100644 --- a/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendExpressMsg.php +++ b/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendExpressMsg.php @@ -1,31 +1,31 @@ -setSignName('str'); -$request->setTemplateCode(1); -$request->setTemplateParamJson(); -$request->setWaybillCodes(array('str')); -$request->setWpCode('str'); -$request->setOutId('str'); -$request->setSmsUpExtendCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setSignName('str'); +$request->setTemplateCode(1); +$request->setTemplateParamJson(); +$request->setWaybillCodes(array('str')); +$request->setWpCode('str'); +$request->setOutId('str'); +$request->setSmsUpExtendCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendMsg.php b/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendMsg.php index a8f9f85..e9e8a1c 100644 --- a/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendMsg.php +++ b/src/service/pinduoduo/bin/example/PddOpenMsgServiceSendMsg.php @@ -1,30 +1,30 @@ -setPhoneNumbers(array('str')); -$request->setSignName('str'); -$request->setTemplateCode(1); -$request->setTemplateParam(); -$request->setOutId('str'); -$request->setSmsUpExtendCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPhoneNumbers(array('str')); +$request->setSignName('str'); +$request->setTemplateCode(1); +$request->setTemplateParam(); +$request->setOutId('str'); +$request->setSmsUpExtendCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOrderBasicListGet.php b/src/service/pinduoduo/bin/example/PddOrderBasicListGet.php index 08db7f2..1ae5265 100644 --- a/src/service/pinduoduo/bin/example/PddOrderBasicListGet.php +++ b/src/service/pinduoduo/bin/example/PddOrderBasicListGet.php @@ -1,32 +1,32 @@ -setEndConfirmAt(1); -$request->setOrderStatus(1); -$request->setPage(1); -$request->setPageSize(1); -$request->setRefundStatus(1); -$request->setStartConfirmAt(1); -$request->setTradeType(1); -$request->setUseHasNext(true); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setEndConfirmAt(1); +$request->setOrderStatus(1); +$request->setPage(1); +$request->setPageSize(1); +$request->setRefundStatus(1); +$request->setStartConfirmAt(1); +$request->setTradeType(1); +$request->setUseHasNext(true); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOrderInformationGet.php b/src/service/pinduoduo/bin/example/PddOrderInformationGet.php index 4e632fa..daa581b 100644 --- a/src/service/pinduoduo/bin/example/PddOrderInformationGet.php +++ b/src/service/pinduoduo/bin/example/PddOrderInformationGet.php @@ -1,25 +1,25 @@ -setOrderSn('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOrderListGet.php b/src/service/pinduoduo/bin/example/PddOrderListGet.php index ea24fba..5bfd62f 100644 --- a/src/service/pinduoduo/bin/example/PddOrderListGet.php +++ b/src/service/pinduoduo/bin/example/PddOrderListGet.php @@ -1,32 +1,32 @@ -setOrderStatus(1); -$request->setRefundStatus(1); -$request->setStartConfirmAt(1); -$request->setEndConfirmAt(1); -$request->setPage(1); -$request->setPageSize(1); -$request->setTradeType(1); -$request->setUseHasNext(true); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderStatus(1); +$request->setRefundStatus(1); +$request->setStartConfirmAt(1); +$request->setEndConfirmAt(1); +$request->setPage(1); +$request->setPageSize(1); +$request->setTradeType(1); +$request->setUseHasNext(true); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOrderNumberListIncrementGet.php b/src/service/pinduoduo/bin/example/PddOrderNumberListIncrementGet.php index 0e8e887..88ecc91 100644 --- a/src/service/pinduoduo/bin/example/PddOrderNumberListIncrementGet.php +++ b/src/service/pinduoduo/bin/example/PddOrderNumberListIncrementGet.php @@ -1,33 +1,33 @@ -setIsLuckyFlag(1); -$request->setOrderStatus(1); -$request->setStartUpdatedAt(1); -$request->setEndUpdatedAt(1); -$request->setPageSize(1); -$request->setPage(1); -$request->setRefundStatus(1); -$request->setTradeType(1); -$request->setUseHasNext(true); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setIsLuckyFlag(1); +$request->setOrderStatus(1); +$request->setStartUpdatedAt(1); +$request->setEndUpdatedAt(1); +$request->setPageSize(1); +$request->setPage(1); +$request->setRefundStatus(1); +$request->setTradeType(1); +$request->setUseHasNext(true); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOrderPromiseInfoGet.php b/src/service/pinduoduo/bin/example/PddOrderPromiseInfoGet.php index 702c329..bf68e27 100644 --- a/src/service/pinduoduo/bin/example/PddOrderPromiseInfoGet.php +++ b/src/service/pinduoduo/bin/example/PddOrderPromiseInfoGet.php @@ -1,25 +1,25 @@ -setPromiseId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPromiseId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOrderStatusGet.php b/src/service/pinduoduo/bin/example/PddOrderStatusGet.php index a648f5b..950717a 100644 --- a/src/service/pinduoduo/bin/example/PddOrderStatusGet.php +++ b/src/service/pinduoduo/bin/example/PddOrderStatusGet.php @@ -1,25 +1,25 @@ -setOrderSns('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSns('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddOverseaClearanceGet.php b/src/service/pinduoduo/bin/example/PddOverseaClearanceGet.php index 25e278d..234c2da 100644 --- a/src/service/pinduoduo/bin/example/PddOverseaClearanceGet.php +++ b/src/service/pinduoduo/bin/example/PddOverseaClearanceGet.php @@ -1,25 +1,25 @@ -setOrderSn('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPmcAccrueQuery.php b/src/service/pinduoduo/bin/example/PddPmcAccrueQuery.php index f7c67ac..1601a60 100644 --- a/src/service/pinduoduo/bin/example/PddPmcAccrueQuery.php +++ b/src/service/pinduoduo/bin/example/PddPmcAccrueQuery.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPmcUserCancel.php b/src/service/pinduoduo/bin/example/PddPmcUserCancel.php index 64d2160..4d26a9c 100644 --- a/src/service/pinduoduo/bin/example/PddPmcUserCancel.php +++ b/src/service/pinduoduo/bin/example/PddPmcUserCancel.php @@ -1,25 +1,25 @@ -setOwnerId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOwnerId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPmcUserGet.php b/src/service/pinduoduo/bin/example/PddPmcUserGet.php index 04a33cd..83c4811 100644 --- a/src/service/pinduoduo/bin/example/PddPmcUserGet.php +++ b/src/service/pinduoduo/bin/example/PddPmcUserGet.php @@ -1,25 +1,25 @@ -setOwnerId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOwnerId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPmcUserPermit.php b/src/service/pinduoduo/bin/example/PddPmcUserPermit.php index c6cae12..d9ae023 100644 --- a/src/service/pinduoduo/bin/example/PddPmcUserPermit.php +++ b/src/service/pinduoduo/bin/example/PddPmcUserPermit.php @@ -1,25 +1,25 @@ -setTopics('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTopics('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPngMallStaffBatchSycn.php b/src/service/pinduoduo/bin/example/PddPngMallStaffBatchSycn.php index 56c6eb2..2b00221 100644 --- a/src/service/pinduoduo/bin/example/PddPngMallStaffBatchSycn.php +++ b/src/service/pinduoduo/bin/example/PddPngMallStaffBatchSycn.php @@ -1,26 +1,26 @@ -setStaffIds(array(1)); -$request->setToMallId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setStaffIds(array(1)); +$request->setToMallId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPngMallStaffPageQuery.php b/src/service/pinduoduo/bin/example/PddPngMallStaffPageQuery.php index 99b6627..8286c95 100644 --- a/src/service/pinduoduo/bin/example/PddPngMallStaffPageQuery.php +++ b/src/service/pinduoduo/bin/example/PddPngMallStaffPageQuery.php @@ -1,26 +1,26 @@ -setLimit(1); -$request->setStartId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setLimit(1); +$request->setStartId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPngPermissionsMallStaffPushApply.php b/src/service/pinduoduo/bin/example/PddPngPermissionsMallStaffPushApply.php index dc59083..8cb7ef3 100644 --- a/src/service/pinduoduo/bin/example/PddPngPermissionsMallStaffPushApply.php +++ b/src/service/pinduoduo/bin/example/PddPngPermissionsMallStaffPushApply.php @@ -1,25 +1,25 @@ -setToMallId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setToMallId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPngPermissionsMallStaffPushConfirm.php b/src/service/pinduoduo/bin/example/PddPngPermissionsMallStaffPushConfirm.php index f40d83c..7078d76 100644 --- a/src/service/pinduoduo/bin/example/PddPngPermissionsMallStaffPushConfirm.php +++ b/src/service/pinduoduo/bin/example/PddPngPermissionsMallStaffPushConfirm.php @@ -1,25 +1,25 @@ -setFromMallId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setFromMallId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPopAuthTokenCreate.php b/src/service/pinduoduo/bin/example/PddPopAuthTokenCreate.php index ffdceae..ab60578 100644 --- a/src/service/pinduoduo/bin/example/PddPopAuthTokenCreate.php +++ b/src/service/pinduoduo/bin/example/PddPopAuthTokenCreate.php @@ -1,25 +1,25 @@ -setCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPopAuthTokenRefresh.php b/src/service/pinduoduo/bin/example/PddPopAuthTokenRefresh.php index f42a8d6..5ce973f 100644 --- a/src/service/pinduoduo/bin/example/PddPopAuthTokenRefresh.php +++ b/src/service/pinduoduo/bin/example/PddPopAuthTokenRefresh.php @@ -1,25 +1,25 @@ -setRefreshToken('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRefreshToken('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionCouponClose.php b/src/service/pinduoduo/bin/example/PddPromotionCouponClose.php index 9408f1e..fa46e6c 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionCouponClose.php +++ b/src/service/pinduoduo/bin/example/PddPromotionCouponClose.php @@ -1,25 +1,25 @@ -setBatchId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBatchId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionCouponQuantityAdd.php b/src/service/pinduoduo/bin/example/PddPromotionCouponQuantityAdd.php index 43435d4..685c59d 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionCouponQuantityAdd.php +++ b/src/service/pinduoduo/bin/example/PddPromotionCouponQuantityAdd.php @@ -1,26 +1,26 @@ -setBatchId(1); -$request->setAddQuantity(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBatchId(1); +$request->setAddQuantity(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionGoodsCouponCreate.php b/src/service/pinduoduo/bin/example/PddPromotionGoodsCouponCreate.php index 3e5f175..cc0d09c 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionGoodsCouponCreate.php +++ b/src/service/pinduoduo/bin/example/PddPromotionGoodsCouponCreate.php @@ -1,31 +1,31 @@ -setBatchDesc('str'); -$request->setBatchStartTime(1); -$request->setBatchEndTime(1); -$request->setDiscount(1); -$request->setInitQuantity(1); -$request->setUserLimit(1); -$request->setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBatchDesc('str'); +$request->setBatchStartTime(1); +$request->setBatchEndTime(1); +$request->setDiscount(1); +$request->setInitQuantity(1); +$request->setUserLimit(1); +$request->setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionGoodsCouponListGet.php b/src/service/pinduoduo/bin/example/PddPromotionGoodsCouponListGet.php index fc2765b..856f6fc 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionGoodsCouponListGet.php +++ b/src/service/pinduoduo/bin/example/PddPromotionGoodsCouponListGet.php @@ -1,30 +1,30 @@ -setPage(1); -$request->setPageSize(1); -$request->setGoodsId(1); -$request->setQueryRange(1); -$request->setBatchStatus(1); -$request->setSortBy(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPage(1); +$request->setPageSize(1); +$request->setGoodsId(1); +$request->setQueryRange(1); +$request->setBatchStatus(1); +$request->setSortBy(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionHomeCouponCreate.php b/src/service/pinduoduo/bin/example/PddPromotionHomeCouponCreate.php index f4f9c90..998cd5e 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionHomeCouponCreate.php +++ b/src/service/pinduoduo/bin/example/PddPromotionHomeCouponCreate.php @@ -1,31 +1,31 @@ -setBatchDesc('str'); -$request->setBatchStartTime(1); -$request->setBatchEndTime(1); -$request->setDiscount(1); -$request->setMinOrderAmount(1); -$request->setInitQuantity(1); -$request->setUserLimit(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBatchDesc('str'); +$request->setBatchStartTime(1); +$request->setBatchEndTime(1); +$request->setDiscount(1); +$request->setMinOrderAmount(1); +$request->setInitQuantity(1); +$request->setUserLimit(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionLimitedActivityCancel.php b/src/service/pinduoduo/bin/example/PddPromotionLimitedActivityCancel.php index 22c385a..d1164d5 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionLimitedActivityCancel.php +++ b/src/service/pinduoduo/bin/example/PddPromotionLimitedActivityCancel.php @@ -1,26 +1,26 @@ -setDetailId(1); -$request->setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDetailId(1); +$request->setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionLimitedActivityCreate.php b/src/service/pinduoduo/bin/example/PddPromotionLimitedActivityCreate.php index 281314b..9da936d 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionLimitedActivityCreate.php +++ b/src/service/pinduoduo/bin/example/PddPromotionLimitedActivityCreate.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionLimitedDiscountListGet.php b/src/service/pinduoduo/bin/example/PddPromotionLimitedDiscountListGet.php index 1e11434..df96a42 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionLimitedDiscountListGet.php +++ b/src/service/pinduoduo/bin/example/PddPromotionLimitedDiscountListGet.php @@ -1,31 +1,31 @@ -setActivityTypes(array(1)); -$request->setGoodsIdList(array(1)); -$request->setJustCount(true); -$request->setOrder(1); -$request->setPageNo(1); -$request->setPageSize(1); -$request->setStatusList(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setActivityTypes(array(1)); +$request->setGoodsIdList(array(1)); +$request->setJustCount(true); +$request->setOrder(1); +$request->setPageNo(1); +$request->setPageSize(1); +$request->setStatusList(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionLimitedQualifiedGoodsGet.php b/src/service/pinduoduo/bin/example/PddPromotionLimitedQualifiedGoodsGet.php index b0283b6..17679d1 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionLimitedQualifiedGoodsGet.php +++ b/src/service/pinduoduo/bin/example/PddPromotionLimitedQualifiedGoodsGet.php @@ -1,28 +1,28 @@ -setGoodsIdList(array(1)); -$request->setIsValid(true); -$request->setPageNo(1); -$request->setPageSize(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsIdList(array(1)); +$request->setIsValid(true); +$request->setPageNo(1); +$request->setPageSize(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionLimitedQualifiedSkuGet.php b/src/service/pinduoduo/bin/example/PddPromotionLimitedQualifiedSkuGet.php index cba6ceb..2afdfac 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionLimitedQualifiedSkuGet.php +++ b/src/service/pinduoduo/bin/example/PddPromotionLimitedQualifiedSkuGet.php @@ -1,25 +1,25 @@ -setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddPromotionMerchantCouponListGet.php b/src/service/pinduoduo/bin/example/PddPromotionMerchantCouponListGet.php index 7db72e1..e4a9943 100644 --- a/src/service/pinduoduo/bin/example/PddPromotionMerchantCouponListGet.php +++ b/src/service/pinduoduo/bin/example/PddPromotionMerchantCouponListGet.php @@ -1,30 +1,30 @@ -setPage(1); -$request->setPageSize(1); -$request->setBatchStartTimeFrom(1); -$request->setBatchStartTimeTo(1); -$request->setBatchStatus(1); -$request->setSortBy(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPage(1); +$request->setPageSize(1); +$request->setBatchStartTimeFrom(1); +$request->setBatchStartTimeTo(1); +$request->setBatchStatus(1); +$request->setSortBy(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddQrpayPayeeRegister.php b/src/service/pinduoduo/bin/example/PddQrpayPayeeRegister.php index 3a1a8bd..ab45316 100644 --- a/src/service/pinduoduo/bin/example/PddQrpayPayeeRegister.php +++ b/src/service/pinduoduo/bin/example/PddQrpayPayeeRegister.php @@ -1,25 +1,25 @@ -setPayeeList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPayeeList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddRdcPddgeniusSendgoodsCancel.php b/src/service/pinduoduo/bin/example/PddRdcPddgeniusSendgoodsCancel.php index b0dc7b6..c8e74e1 100644 --- a/src/service/pinduoduo/bin/example/PddRdcPddgeniusSendgoodsCancel.php +++ b/src/service/pinduoduo/bin/example/PddRdcPddgeniusSendgoodsCancel.php @@ -1,25 +1,25 @@ -setParam(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParam(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddRefundAddressListGet.php b/src/service/pinduoduo/bin/example/PddRefundAddressListGet.php index a203caa..059e6c9 100644 --- a/src/service/pinduoduo/bin/example/PddRefundAddressListGet.php +++ b/src/service/pinduoduo/bin/example/PddRefundAddressListGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddRefundInformationGet.php b/src/service/pinduoduo/bin/example/PddRefundInformationGet.php index 98a2f7c..9cf7630 100644 --- a/src/service/pinduoduo/bin/example/PddRefundInformationGet.php +++ b/src/service/pinduoduo/bin/example/PddRefundInformationGet.php @@ -1,26 +1,26 @@ -setAfterSalesId(1); -$request->setOrderSn('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAfterSalesId(1); +$request->setOrderSn('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddRefundListIncrementGet.php b/src/service/pinduoduo/bin/example/PddRefundListIncrementGet.php index 2ad1910..ab370f7 100644 --- a/src/service/pinduoduo/bin/example/PddRefundListIncrementGet.php +++ b/src/service/pinduoduo/bin/example/PddRefundListIncrementGet.php @@ -1,30 +1,30 @@ -setAfterSalesStatus(1); -$request->setAfterSalesType(1); -$request->setEndUpdatedAt(1); -$request->setPage(1); -$request->setPageSize(1); -$request->setStartUpdatedAt(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAfterSalesStatus(1); +$request->setAfterSalesType(1); +$request->setEndUpdatedAt(1); +$request->setPage(1); +$request->setPageSize(1); +$request->setStartUpdatedAt(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddRefundStatusCheck.php b/src/service/pinduoduo/bin/example/PddRefundStatusCheck.php index e78d5cf..09137e7 100644 --- a/src/service/pinduoduo/bin/example/PddRefundStatusCheck.php +++ b/src/service/pinduoduo/bin/example/PddRefundStatusCheck.php @@ -1,25 +1,25 @@ -setOrderSns('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSns('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddServicemarketSettlementbillGet.php b/src/service/pinduoduo/bin/example/PddServicemarketSettlementbillGet.php index 3dd211f..f6b73ba 100644 --- a/src/service/pinduoduo/bin/example/PddServicemarketSettlementbillGet.php +++ b/src/service/pinduoduo/bin/example/PddServicemarketSettlementbillGet.php @@ -1,28 +1,28 @@ -setPage(1); -$request->setPageSize(1); -$request->setServiceOrderSn('str'); -$request->setSettleMonth('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPage(1); +$request->setPageSize(1); +$request->setServiceOrderSn('str'); +$request->setSettleMonth('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddServicemarketTradelistGet.php b/src/service/pinduoduo/bin/example/PddServicemarketTradelistGet.php index e4cac4f..d980a10 100644 --- a/src/service/pinduoduo/bin/example/PddServicemarketTradelistGet.php +++ b/src/service/pinduoduo/bin/example/PddServicemarketTradelistGet.php @@ -1,30 +1,30 @@ -setBeginTime(1); -$request->setEndTime(1); -$request->setGroupType(1); -$request->setPage(1); -$request->setPageSize(1); -$request->setServiceOrderSn('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBeginTime(1); +$request->setEndTime(1); +$request->setGroupType(1); +$request->setPage(1); +$request->setPageSize(1); +$request->setServiceOrderSn('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddSmsDetailbillPush.php b/src/service/pinduoduo/bin/example/PddSmsDetailbillPush.php index e0239c7..4f033d1 100644 --- a/src/service/pinduoduo/bin/example/PddSmsDetailbillPush.php +++ b/src/service/pinduoduo/bin/example/PddSmsDetailbillPush.php @@ -1,28 +1,28 @@ -setAccount('str'); -$request->setBatchVersion(1); -$request->setDate('str'); -$request->setDetails(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAccount('str'); +$request->setBatchVersion(1); +$request->setDate('str'); +$request->setDetails(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddSmsVendorComplaintCreate.php b/src/service/pinduoduo/bin/example/PddSmsVendorComplaintCreate.php index 320ff26..f42c2bf 100644 --- a/src/service/pinduoduo/bin/example/PddSmsVendorComplaintCreate.php +++ b/src/service/pinduoduo/bin/example/PddSmsVendorComplaintCreate.php @@ -1,32 +1,32 @@ -setAccount('str'); -$request->setComplaintTime('str'); -$request->setCount(1); -$request->setDeliverTime('str'); -$request->setMobile('str'); -$request->setOperator('str'); -$request->setProvince('str'); -$request->setSmsContent('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setAccount('str'); +$request->setComplaintTime('str'); +$request->setCount(1); +$request->setDeliverTime('str'); +$request->setMobile('str'); +$request->setOperator('str'); +$request->setProvince('str'); +$request->setSmsContent('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockDepotPriorityList.php b/src/service/pinduoduo/bin/example/PddStockDepotPriorityList.php index 062c010..c55f64e 100644 --- a/src/service/pinduoduo/bin/example/PddStockDepotPriorityList.php +++ b/src/service/pinduoduo/bin/example/PddStockDepotPriorityList.php @@ -1,30 +1,30 @@ -setProvinceId(1); -$request->setCityId(1); -$request->setDistrictId(1); -$request->setDepotCode('str'); -$request->setPageSize(1); -$request->setPageNum(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setProvinceId(1); +$request->setCityId(1); +$request->setDistrictId(1); +$request->setDepotCode('str'); +$request->setPageSize(1); +$request->setPageNum(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockDepotPriorityUpdate.php b/src/service/pinduoduo/bin/example/PddStockDepotPriorityUpdate.php index e7b764f..955bdff 100644 --- a/src/service/pinduoduo/bin/example/PddStockDepotPriorityUpdate.php +++ b/src/service/pinduoduo/bin/example/PddStockDepotPriorityUpdate.php @@ -1,25 +1,25 @@ -setPriorityList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPriorityList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockGoodsIdToSkuQuery.php b/src/service/pinduoduo/bin/example/PddStockGoodsIdToSkuQuery.php index faec76a..35186bb 100644 --- a/src/service/pinduoduo/bin/example/PddStockGoodsIdToSkuQuery.php +++ b/src/service/pinduoduo/bin/example/PddStockGoodsIdToSkuQuery.php @@ -1,26 +1,26 @@ -setGoodsId(1); -$request->setWareId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsId(1); +$request->setWareId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockWareCreate.php b/src/service/pinduoduo/bin/example/PddStockWareCreate.php index 308632f..87f3e5f 100644 --- a/src/service/pinduoduo/bin/example/PddStockWareCreate.php +++ b/src/service/pinduoduo/bin/example/PddStockWareCreate.php @@ -1,41 +1,41 @@ -setWareType(1); -$request->setWareInfos(); -$request->setWareSn('str'); -$request->setWareName('str'); -$request->setNote('str'); -$request->setServiceQuality(1); -$request->setVolume(1); -$request->setLength(1); -$request->setWidth(1); -$request->setHeight(1); -$request->setWeight(1); -$request->setGrossWeight(1); -$request->setNetWeight(1); -$request->setTareWeight(1); -$request->setPrice(1); -$request->setColor('str'); -$request->setPacking('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setWareType(1); +$request->setWareInfos(); +$request->setWareSn('str'); +$request->setWareName('str'); +$request->setNote('str'); +$request->setServiceQuality(1); +$request->setVolume(1); +$request->setLength(1); +$request->setWidth(1); +$request->setHeight(1); +$request->setWeight(1); +$request->setGrossWeight(1); +$request->setNetWeight(1); +$request->setTareWeight(1); +$request->setPrice(1); +$request->setColor('str'); +$request->setPacking('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockWareDelete.php b/src/service/pinduoduo/bin/example/PddStockWareDelete.php index 1fd5a8e..5f73feb 100644 --- a/src/service/pinduoduo/bin/example/PddStockWareDelete.php +++ b/src/service/pinduoduo/bin/example/PddStockWareDelete.php @@ -1,25 +1,25 @@ -setWareId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setWareId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockWareDetailQuery.php b/src/service/pinduoduo/bin/example/PddStockWareDetailQuery.php index da7ca03..391b323 100644 --- a/src/service/pinduoduo/bin/example/PddStockWareDetailQuery.php +++ b/src/service/pinduoduo/bin/example/PddStockWareDetailQuery.php @@ -1,25 +1,25 @@ -setWareId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setWareId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockWareInfoList.php b/src/service/pinduoduo/bin/example/PddStockWareInfoList.php index fbc9d63..99140d5 100644 --- a/src/service/pinduoduo/bin/example/PddStockWareInfoList.php +++ b/src/service/pinduoduo/bin/example/PddStockWareInfoList.php @@ -1,25 +1,25 @@ -setWareSnList(array('str')); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setWareSnList(array('str')); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockWareList.php b/src/service/pinduoduo/bin/example/PddStockWareList.php index e4ca9b2..b1057a7 100644 --- a/src/service/pinduoduo/bin/example/PddStockWareList.php +++ b/src/service/pinduoduo/bin/example/PddStockWareList.php @@ -1,30 +1,30 @@ -setId(1); -$request->setWareSn('str'); -$request->setWareName('str'); -$request->setWareType(1); -$request->setPage(1); -$request->setSize(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setId(1); +$request->setWareSn('str'); +$request->setWareName('str'); +$request->setWareType(1); +$request->setPage(1); +$request->setSize(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockWareMove.php b/src/service/pinduoduo/bin/example/PddStockWareMove.php index 5449891..8df5d7e 100644 --- a/src/service/pinduoduo/bin/example/PddStockWareMove.php +++ b/src/service/pinduoduo/bin/example/PddStockWareMove.php @@ -1,26 +1,26 @@ -setStockMoveOrderActionDto(); -$request->setStockMoveRecordActionDtoList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setStockMoveOrderActionDto(); +$request->setStockMoveRecordActionDtoList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockWareSkuUpdate.php b/src/service/pinduoduo/bin/example/PddStockWareSkuUpdate.php index 5901614..7880ff5 100644 --- a/src/service/pinduoduo/bin/example/PddStockWareSkuUpdate.php +++ b/src/service/pinduoduo/bin/example/PddStockWareSkuUpdate.php @@ -1,26 +1,26 @@ -setWareId(1); -$request->setWareSkus(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setWareId(1); +$request->setWareSkus(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockWareUpdate.php b/src/service/pinduoduo/bin/example/PddStockWareUpdate.php index c241649..b8fd303 100644 --- a/src/service/pinduoduo/bin/example/PddStockWareUpdate.php +++ b/src/service/pinduoduo/bin/example/PddStockWareUpdate.php @@ -1,42 +1,42 @@ -setId(1); -$request->setWareType(1); -$request->setWareInfos(); -$request->setWareSn('str'); -$request->setWareName('str'); -$request->setNote('str'); -$request->setServiceQuality(1); -$request->setVolume(1); -$request->setLength(1); -$request->setWidth(1); -$request->setHeight(1); -$request->setWeight(1); -$request->setGrossWeight(1); -$request->setNetWeight(1); -$request->setTareWeight(1); -$request->setPrice(1); -$request->setColor('str'); -$request->setPacking('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setId(1); +$request->setWareType(1); +$request->setWareInfos(); +$request->setWareSn('str'); +$request->setWareName('str'); +$request->setNote('str'); +$request->setServiceQuality(1); +$request->setVolume(1); +$request->setLength(1); +$request->setWidth(1); +$request->setHeight(1); +$request->setWeight(1); +$request->setGrossWeight(1); +$request->setNetWeight(1); +$request->setTareWeight(1); +$request->setPrice(1); +$request->setColor('str'); +$request->setPacking('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddStockWareWarehouseQuery.php b/src/service/pinduoduo/bin/example/PddStockWareWarehouseQuery.php index fdeaa08..e8abc1d 100644 --- a/src/service/pinduoduo/bin/example/PddStockWareWarehouseQuery.php +++ b/src/service/pinduoduo/bin/example/PddStockWareWarehouseQuery.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTicketGoodsQuery.php b/src/service/pinduoduo/bin/example/PddTicketGoodsQuery.php index 76699cb..3a61cd4 100644 --- a/src/service/pinduoduo/bin/example/PddTicketGoodsQuery.php +++ b/src/service/pinduoduo/bin/example/PddTicketGoodsQuery.php @@ -1,26 +1,26 @@ -setGoodsCommitId(1); -$request->setGoodsId(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsCommitId(1); +$request->setGoodsId(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTicketGoodsUpload.php b/src/service/pinduoduo/bin/example/PddTicketGoodsUpload.php index edbebee..b8d14b5 100644 --- a/src/service/pinduoduo/bin/example/PddTicketGoodsUpload.php +++ b/src/service/pinduoduo/bin/example/PddTicketGoodsUpload.php @@ -1,41 +1,41 @@ -setCarouselGallery(array('str')); -$request->setCarouselVideo(); -$request->setCatId(1); -$request->setCodeMode(1); -$request->setDetailGallery(array('str')); -$request->setGoodsCommitId(1); -$request->setGoodsDesc('str'); -$request->setGoodsId(1); -$request->setGoodsName('str'); -$request->setGoodsProperties(); -$request->setIsSubmit(1); -$request->setMarketPrice(1); -$request->setOutGoodsSn('str'); -$request->setReserveLimitRule('str'); -$request->setSkuList(); -$request->setSkuType(1); -$request->setSyncGoodsOperate(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCarouselGallery(array('str')); +$request->setCarouselVideo(); +$request->setCatId(1); +$request->setCodeMode(1); +$request->setDetailGallery(array('str')); +$request->setGoodsCommitId(1); +$request->setGoodsDesc('str'); +$request->setGoodsId(1); +$request->setGoodsName('str'); +$request->setGoodsProperties(); +$request->setIsSubmit(1); +$request->setMarketPrice(1); +$request->setOutGoodsSn('str'); +$request->setReserveLimitRule('str'); +$request->setSkuList(); +$request->setSkuType(1); +$request->setSyncGoodsOperate(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTicketOrderCreateNotifycation.php b/src/service/pinduoduo/bin/example/PddTicketOrderCreateNotifycation.php index e877ada..822dff7 100644 --- a/src/service/pinduoduo/bin/example/PddTicketOrderCreateNotifycation.php +++ b/src/service/pinduoduo/bin/example/PddTicketOrderCreateNotifycation.php @@ -1,32 +1,32 @@ -setCodeType(1); -$request->setFailedCode(1); -$request->setFailedReason('str'); -$request->setOrderNo('str'); -$request->setOutOrderSn('str'); -$request->setStatus(1); -$request->setTickets(); -$request->setTicketType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCodeType(1); +$request->setFailedCode(1); +$request->setFailedReason('str'); +$request->setOrderNo('str'); +$request->setOutOrderSn('str'); +$request->setStatus(1); +$request->setTickets(); +$request->setTicketType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTicketOrderRefundNotifycation.php b/src/service/pinduoduo/bin/example/PddTicketOrderRefundNotifycation.php index 7b198f0..fe4d603 100644 --- a/src/service/pinduoduo/bin/example/PddTicketOrderRefundNotifycation.php +++ b/src/service/pinduoduo/bin/example/PddTicketOrderRefundNotifycation.php @@ -1,29 +1,29 @@ -setOrderNo('str'); -$request->setRefundAmount(1); -$request->setRejectReason('str'); -$request->setSerialNo('str'); -$request->setStatus(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderNo('str'); +$request->setRefundAmount(1); +$request->setRejectReason('str'); +$request->setSerialNo('str'); +$request->setStatus(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTicketSkuRuleAdd.php b/src/service/pinduoduo/bin/example/PddTicketSkuRuleAdd.php index f4eeb88..1999e3b 100644 --- a/src/service/pinduoduo/bin/example/PddTicketSkuRuleAdd.php +++ b/src/service/pinduoduo/bin/example/PddTicketSkuRuleAdd.php @@ -1,33 +1,33 @@ -setBookerInfoLimitation(); -$request->setBookingNotice(); -$request->setOrderLimitation(); -$request->setOutRuleId('str'); -$request->setProviderContactInfo(); -$request->setRefundLimitations(); -$request->setRuleName('str'); -$request->setTravelerInfoLimitation(); -$request->setValidLimitation(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBookerInfoLimitation(); +$request->setBookingNotice(); +$request->setOrderLimitation(); +$request->setOutRuleId('str'); +$request->setProviderContactInfo(); +$request->setRefundLimitations(); +$request->setRuleName('str'); +$request->setTravelerInfoLimitation(); +$request->setValidLimitation(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTicketSkuRuleEdit.php b/src/service/pinduoduo/bin/example/PddTicketSkuRuleEdit.php index 819771e..dd008e4 100644 --- a/src/service/pinduoduo/bin/example/PddTicketSkuRuleEdit.php +++ b/src/service/pinduoduo/bin/example/PddTicketSkuRuleEdit.php @@ -1,35 +1,35 @@ -setBookerInfoLimitation(); -$request->setBookingNotice(); -$request->setOrderLimitation(); -$request->setOutRuleId('str'); -$request->setProviderContactInfo(); -$request->setRefundLimitations(); -$request->setRuleId('str'); -$request->setRuleName('str'); -$request->setRuleVersion('str'); -$request->setTravelerInfoLimitation(); -$request->setValidLimitation(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setBookerInfoLimitation(); +$request->setBookingNotice(); +$request->setOrderLimitation(); +$request->setOutRuleId('str'); +$request->setProviderContactInfo(); +$request->setRefundLimitations(); +$request->setRuleId('str'); +$request->setRuleName('str'); +$request->setRuleVersion('str'); +$request->setTravelerInfoLimitation(); +$request->setValidLimitation(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTicketSkuRuleGet.php b/src/service/pinduoduo/bin/example/PddTicketSkuRuleGet.php index 8018502..8aa6492 100644 --- a/src/service/pinduoduo/bin/example/PddTicketSkuRuleGet.php +++ b/src/service/pinduoduo/bin/example/PddTicketSkuRuleGet.php @@ -1,26 +1,26 @@ -setOutRuleId('str'); -$request->setRuleId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOutRuleId('str'); +$request->setRuleId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTicketVerificationNotifycation.php b/src/service/pinduoduo/bin/example/PddTicketVerificationNotifycation.php index 8d38ae6..138a035 100644 --- a/src/service/pinduoduo/bin/example/PddTicketVerificationNotifycation.php +++ b/src/service/pinduoduo/bin/example/PddTicketVerificationNotifycation.php @@ -1,26 +1,26 @@ -setOrderNo('str'); -$request->setVerifyTime(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderNo('str'); +$request->setVerifyTime(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTimeGet.php b/src/service/pinduoduo/bin/example/PddTimeGet.php index a01aa3f..30efdfe 100644 --- a/src/service/pinduoduo/bin/example/PddTimeGet.php +++ b/src/service/pinduoduo/bin/example/PddTimeGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCallbackChangeConfirm.php b/src/service/pinduoduo/bin/example/PddTrainCallbackChangeConfirm.php index 8149917..ab3a503 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCallbackChangeConfirm.php +++ b/src/service/pinduoduo/bin/example/PddTrainCallbackChangeConfirm.php @@ -1,32 +1,32 @@ -setCode(1); -$request->setCrhOrderId('str'); -$request->setGateNo('str'); -$request->setMsg('str'); -$request->setNewPassengers(); -$request->setOrderId('str'); -$request->setPddOrderId('str'); -$request->setVendorTime('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCode(1); +$request->setCrhOrderId('str'); +$request->setGateNo('str'); +$request->setMsg('str'); +$request->setNewPassengers(); +$request->setOrderId('str'); +$request->setPddOrderId('str'); +$request->setVendorTime('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCallbackChangeReserve.php b/src/service/pinduoduo/bin/example/PddTrainCallbackChangeReserve.php index 4ba8984..9691ed6 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCallbackChangeReserve.php +++ b/src/service/pinduoduo/bin/example/PddTrainCallbackChangeReserve.php @@ -1,43 +1,43 @@ -setArriveDate('str'); -$request->setArriveStation('str'); -$request->setArriveTime('str'); -$request->setChangePay(1); -$request->setChangeRefund(1); -$request->setCode(1); -$request->setCrhOrderId('str'); -$request->setDepartDate('str'); -$request->setDepartStation('str'); -$request->setDepartTime('str'); -$request->setMsg('str'); -$request->setNewPassengers(); -$request->setOrderId('str'); -$request->setPayLimitTime('str'); -$request->setPddOrderId('str'); -$request->setRequestId('str'); -$request->setTrainNo('str'); -$request->setUseIdCardIn(1); -$request->setVendorTime('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setArriveDate('str'); +$request->setArriveStation('str'); +$request->setArriveTime('str'); +$request->setChangePay(1); +$request->setChangeRefund(1); +$request->setCode(1); +$request->setCrhOrderId('str'); +$request->setDepartDate('str'); +$request->setDepartStation('str'); +$request->setDepartTime('str'); +$request->setMsg('str'); +$request->setNewPassengers(); +$request->setOrderId('str'); +$request->setPayLimitTime('str'); +$request->setPddOrderId('str'); +$request->setRequestId('str'); +$request->setTrainNo('str'); +$request->setUseIdCardIn(1); +$request->setVendorTime('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCallbackConfirmPay.php b/src/service/pinduoduo/bin/example/PddTrainCallbackConfirmPay.php index 0883d2d..de39a9b 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCallbackConfirmPay.php +++ b/src/service/pinduoduo/bin/example/PddTrainCallbackConfirmPay.php @@ -1,32 +1,32 @@ -setCode(1); -$request->setCrhOrderId('str'); -$request->setGateNo('str'); -$request->setMsg('str'); -$request->setOrderId('str'); -$request->setPddOrderId('str'); -$request->setRequestId('str'); -$request->setVendorTime('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCode(1); +$request->setCrhOrderId('str'); +$request->setGateNo('str'); +$request->setMsg('str'); +$request->setOrderId('str'); +$request->setPddOrderId('str'); +$request->setRequestId('str'); +$request->setVendorTime('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCallbackGrab.php b/src/service/pinduoduo/bin/example/PddTrainCallbackGrab.php index ba27eb4..e9d138f 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCallbackGrab.php +++ b/src/service/pinduoduo/bin/example/PddTrainCallbackGrab.php @@ -1,48 +1,48 @@ -setArriveStation('str'); -$request->setArriveStationCode('str'); -$request->setArriveTime('str'); -$request->setCode(1); -$request->setCrhOrderId('str'); -$request->setDepartStation('str'); -$request->setDepartStationCode('str'); -$request->setDepartTime('str'); -$request->setMsg('str'); -$request->setOrderId('str'); -$request->setOrderTicketPrice(1); -$request->setOrderTime('str'); -$request->setPassengers(); -$request->setPddOrderId('str'); -$request->setTicketNum(1); -$request->setTrainDate('str'); -$request->setTrainNo('str'); -$request->setTravelTime('str'); -$request->setVendorTime('str'); -$request->setEndTime('str'); -$request->setChannel(1); -$request->setIdCardCheckIn(1); -$request->setGateNo('str'); -$request->setDistance('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setArriveStation('str'); +$request->setArriveStationCode('str'); +$request->setArriveTime('str'); +$request->setCode(1); +$request->setCrhOrderId('str'); +$request->setDepartStation('str'); +$request->setDepartStationCode('str'); +$request->setDepartTime('str'); +$request->setMsg('str'); +$request->setOrderId('str'); +$request->setOrderTicketPrice(1); +$request->setOrderTime('str'); +$request->setPassengers(); +$request->setPddOrderId('str'); +$request->setTicketNum(1); +$request->setTrainDate('str'); +$request->setTrainNo('str'); +$request->setTravelTime('str'); +$request->setVendorTime('str'); +$request->setEndTime('str'); +$request->setChannel(1); +$request->setIdCardCheckIn(1); +$request->setGateNo('str'); +$request->setDistance('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCallbackOtcbook.php b/src/service/pinduoduo/bin/example/PddTrainCallbackOtcbook.php index 7a62ca5..55bd103 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCallbackOtcbook.php +++ b/src/service/pinduoduo/bin/example/PddTrainCallbackOtcbook.php @@ -1,40 +1,40 @@ -setArriveDate('str'); -$request->setArriveStation('str'); -$request->setArriveTime('str'); -$request->setCode(1); -$request->setCrhOrder('str'); -$request->setDepartDate('str'); -$request->setDepartStation('str'); -$request->setDepartTime('str'); -$request->setMsg('str'); -$request->setOrderId('str'); -$request->setPassengers(); -$request->setPddOrderId('str'); -$request->setRequestId('str'); -$request->setTrainNo('str'); -$request->setUseIdCardIn(1); -$request->setVendorTime('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setArriveDate('str'); +$request->setArriveStation('str'); +$request->setArriveTime('str'); +$request->setCode(1); +$request->setCrhOrder('str'); +$request->setDepartDate('str'); +$request->setDepartStation('str'); +$request->setDepartTime('str'); +$request->setMsg('str'); +$request->setOrderId('str'); +$request->setPassengers(); +$request->setPddOrderId('str'); +$request->setRequestId('str'); +$request->setTrainNo('str'); +$request->setUseIdCardIn(1); +$request->setVendorTime('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCallbackRefundConfirm.php b/src/service/pinduoduo/bin/example/PddTrainCallbackRefundConfirm.php index d9c71f2..85033db 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCallbackRefundConfirm.php +++ b/src/service/pinduoduo/bin/example/PddTrainCallbackRefundConfirm.php @@ -1,35 +1,35 @@ -setCardNo('str'); -$request->setCode(1); -$request->setMsg('str'); -$request->setName('str'); -$request->setPddOrderId('str'); -$request->setRefundMoney(1); -$request->setRefundType(1); -$request->setRequestId('str'); -$request->setSubOrderId('str'); -$request->setSubPddOrderId('str'); -$request->setVendorTime('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCardNo('str'); +$request->setCode(1); +$request->setMsg('str'); +$request->setName('str'); +$request->setPddOrderId('str'); +$request->setRefundMoney(1); +$request->setRefundType(1); +$request->setRequestId('str'); +$request->setSubOrderId('str'); +$request->setSubPddOrderId('str'); +$request->setVendorTime('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCallbackReserve.php b/src/service/pinduoduo/bin/example/PddTrainCallbackReserve.php index 40600ba..4dbd558 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCallbackReserve.php +++ b/src/service/pinduoduo/bin/example/PddTrainCallbackReserve.php @@ -1,41 +1,41 @@ -setArriveDate('str'); -$request->setArriveStation('str'); -$request->setArriveTime('str'); -$request->setCode(1); -$request->setCrhOrder('str'); -$request->setDepartDate('str'); -$request->setDepartStation('str'); -$request->setDepartTime('str'); -$request->setMsg('str'); -$request->setOrderId('str'); -$request->setPassengers(); -$request->setPayLimitTime('str'); -$request->setPddOrderId('str'); -$request->setRequestId('str'); -$request->setTrainNo('str'); -$request->setUseIdCardIn(1); -$request->setVendorTime('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setArriveDate('str'); +$request->setArriveStation('str'); +$request->setArriveTime('str'); +$request->setCode(1); +$request->setCrhOrder('str'); +$request->setDepartDate('str'); +$request->setDepartStation('str'); +$request->setDepartTime('str'); +$request->setMsg('str'); +$request->setOrderId('str'); +$request->setPassengers(); +$request->setPayLimitTime('str'); +$request->setPddOrderId('str'); +$request->setRequestId('str'); +$request->setTrainNo('str'); +$request->setUseIdCardIn(1); +$request->setVendorTime('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCancelChange.php b/src/service/pinduoduo/bin/example/PddTrainCancelChange.php index e86aea0..b2a4157 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCancelChange.php +++ b/src/service/pinduoduo/bin/example/PddTrainCancelChange.php @@ -1,27 +1,27 @@ -setPddOrderId('str'); -$request->setOrderId('str'); -$request->setPassengerInfos(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPddOrderId('str'); +$request->setOrderId('str'); +$request->setPassengerInfos(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCancelReserve.php b/src/service/pinduoduo/bin/example/PddTrainCancelReserve.php index de4f5a7..4a6cab0 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCancelReserve.php +++ b/src/service/pinduoduo/bin/example/PddTrainCancelReserve.php @@ -1,25 +1,25 @@ -setOrderId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainChangeTicket.php b/src/service/pinduoduo/bin/example/PddTrainChangeTicket.php index fca0ee2..fc162ad 100644 --- a/src/service/pinduoduo/bin/example/PddTrainChangeTicket.php +++ b/src/service/pinduoduo/bin/example/PddTrainChangeTicket.php @@ -1,35 +1,35 @@ -setPddOrderId('str'); -$request->setOrderId('str'); -$request->setNewDepartStation('str'); -$request->setNewArriveStation('str'); -$request->setNewTrainDate('str'); -$request->setNewTrainNo('str'); -$request->setNewDepartTime('str'); -$request->setNewArriveTime('str'); -$request->setNewSeatType(1); -$request->setNewChooseSeat('str'); -$request->setNewPassengerInfos(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPddOrderId('str'); +$request->setOrderId('str'); +$request->setNewDepartStation('str'); +$request->setNewArriveStation('str'); +$request->setNewTrainDate('str'); +$request->setNewTrainNo('str'); +$request->setNewDepartTime('str'); +$request->setNewArriveTime('str'); +$request->setNewSeatType(1); +$request->setNewChooseSeat('str'); +$request->setNewPassengerInfos(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainConfirmChange.php b/src/service/pinduoduo/bin/example/PddTrainConfirmChange.php index 65acb67..d404947 100644 --- a/src/service/pinduoduo/bin/example/PddTrainConfirmChange.php +++ b/src/service/pinduoduo/bin/example/PddTrainConfirmChange.php @@ -1,27 +1,27 @@ -setPddOrderId('str'); -$request->setOrderId('str'); -$request->setNewPassengerInfos(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPddOrderId('str'); +$request->setOrderId('str'); +$request->setNewPassengerInfos(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainConfirmPay.php b/src/service/pinduoduo/bin/example/PddTrainConfirmPay.php index 632d8ff..1d04aa3 100644 --- a/src/service/pinduoduo/bin/example/PddTrainConfirmPay.php +++ b/src/service/pinduoduo/bin/example/PddTrainConfirmPay.php @@ -1,27 +1,27 @@ -setOrderId('str'); -$request->setPddOrderId('str'); -$request->setOrderInfos(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderId('str'); +$request->setPddOrderId('str'); +$request->setOrderInfos(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCreateOtcbook.php b/src/service/pinduoduo/bin/example/PddTrainCreateOtcbook.php index 28244bc..698fcfd 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCreateOtcbook.php +++ b/src/service/pinduoduo/bin/example/PddTrainCreateOtcbook.php @@ -1,37 +1,37 @@ -setDepartStation('str'); -$request->setArriveStation('str'); -$request->setTrainDate('str'); -$request->setTrainNo('str'); -$request->setDepartTime('str'); -$request->setArriveTime('str'); -$request->setAcceptOtherSeat(1); -$request->setAcceptStandSeat(1); -$request->setPddOrderId('str'); -$request->setOtcChooseSeat(); -$request->setPassengerInfos(); -$request->setRequestId('str'); -$request->setComment('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setDepartStation('str'); +$request->setArriveStation('str'); +$request->setTrainDate('str'); +$request->setTrainNo('str'); +$request->setDepartTime('str'); +$request->setArriveTime('str'); +$request->setAcceptOtherSeat(1); +$request->setAcceptStandSeat(1); +$request->setPddOrderId('str'); +$request->setOtcChooseSeat(); +$request->setPassengerInfos(); +$request->setRequestId('str'); +$request->setComment('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainCreateReserve.php b/src/service/pinduoduo/bin/example/PddTrainCreateReserve.php index 2aa1613..1a665c7 100644 --- a/src/service/pinduoduo/bin/example/PddTrainCreateReserve.php +++ b/src/service/pinduoduo/bin/example/PddTrainCreateReserve.php @@ -1,37 +1,37 @@ -setPddOrderId('str'); -$request->setDepartStation('str'); -$request->setArriveStation('str'); -$request->setTrainDate('str'); -$request->setTrainNo('str'); -$request->setDepartTime('str'); -$request->setArriveTime('str'); -$request->setNoSeat(1); -$request->setChooseSeat('str'); -$request->setCrhAccount('str'); -$request->setCrhPassword('str'); -$request->setSwitchAccount(1); -$request->setPassengerInfos(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPddOrderId('str'); +$request->setDepartStation('str'); +$request->setArriveStation('str'); +$request->setTrainDate('str'); +$request->setTrainNo('str'); +$request->setDepartTime('str'); +$request->setArriveTime('str'); +$request->setNoSeat(1); +$request->setChooseSeat('str'); +$request->setCrhAccount('str'); +$request->setCrhPassword('str'); +$request->setSwitchAccount(1); +$request->setPassengerInfos(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainGrabCancel.php b/src/service/pinduoduo/bin/example/PddTrainGrabCancel.php index 9f28e50..f8f96c4 100644 --- a/src/service/pinduoduo/bin/example/PddTrainGrabCancel.php +++ b/src/service/pinduoduo/bin/example/PddTrainGrabCancel.php @@ -1,26 +1,26 @@ -setOrderId('str'); -$request->setPddOrderId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderId('str'); +$request->setPddOrderId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainGrabCreate.php b/src/service/pinduoduo/bin/example/PddTrainGrabCreate.php index e870312..a87d2e0 100644 --- a/src/service/pinduoduo/bin/example/PddTrainGrabCreate.php +++ b/src/service/pinduoduo/bin/example/PddTrainGrabCreate.php @@ -1,34 +1,34 @@ -setPddOrderId('str'); -$request->setEndTime('str'); -$request->setDepartDates(array('str')); -$request->setHaveAccount('str'); -$request->setCrhAccount('str'); -$request->setCrhPassword('str'); -$request->setSumTicketPrice('str'); -$request->setSeatTypes(array(1)); -$request->setTravelInfos(); -$request->setPassengerInfos(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPddOrderId('str'); +$request->setEndTime('str'); +$request->setDepartDates(array('str')); +$request->setHaveAccount('str'); +$request->setCrhAccount('str'); +$request->setCrhPassword('str'); +$request->setSumTicketPrice('str'); +$request->setSeatTypes(array(1)); +$request->setTravelInfos(); +$request->setPassengerInfos(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainGrabOrderQuery.php b/src/service/pinduoduo/bin/example/PddTrainGrabOrderQuery.php index b6dd9e2..23b09c8 100644 --- a/src/service/pinduoduo/bin/example/PddTrainGrabOrderQuery.php +++ b/src/service/pinduoduo/bin/example/PddTrainGrabOrderQuery.php @@ -1,26 +1,26 @@ -setOrderId('str'); -$request->setPddOrderId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderId('str'); +$request->setPddOrderId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainQueryOrderDetail.php b/src/service/pinduoduo/bin/example/PddTrainQueryOrderDetail.php index dbf1977..1b3dec5 100644 --- a/src/service/pinduoduo/bin/example/PddTrainQueryOrderDetail.php +++ b/src/service/pinduoduo/bin/example/PddTrainQueryOrderDetail.php @@ -1,25 +1,25 @@ -setPddOrderId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setPddOrderId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddTrainTicketRefund.php b/src/service/pinduoduo/bin/example/PddTrainTicketRefund.php index a65e60d..c01c577 100644 --- a/src/service/pinduoduo/bin/example/PddTrainTicketRefund.php +++ b/src/service/pinduoduo/bin/example/PddTrainTicketRefund.php @@ -1,25 +1,25 @@ -setSubOrderId('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setSubOrderId('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddVasOrderSearch.php b/src/service/pinduoduo/bin/example/PddVasOrderSearch.php index 7abcd4e..559797d 100644 --- a/src/service/pinduoduo/bin/example/PddVasOrderSearch.php +++ b/src/service/pinduoduo/bin/example/PddVasOrderSearch.php @@ -1,35 +1,35 @@ -setCreateTimeEnd(1); -$request->setCreateTimeStart(1); -$request->setMallId(1); -$request->setOrderSn('str'); -$request->setOrderStatus(1); -$request->setPage(1); -$request->setPageSize(1); -$request->setPayTimeEnd(1); -$request->setPayTimeStart(1); -$request->setSkuId(1); -$request->setRefundStatus(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCreateTimeEnd(1); +$request->setCreateTimeStart(1); +$request->setMallId(1); +$request->setOrderSn('str'); +$request->setOrderStatus(1); +$request->setPage(1); +$request->setPageSize(1); +$request->setPayTimeEnd(1); +$request->setPayTimeStart(1); +$request->setSkuId(1); +$request->setRefundStatus(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddVirtualGameServerQuery.php b/src/service/pinduoduo/bin/example/PddVirtualGameServerQuery.php index be67798..ad81376 100644 --- a/src/service/pinduoduo/bin/example/PddVirtualGameServerQuery.php +++ b/src/service/pinduoduo/bin/example/PddVirtualGameServerQuery.php @@ -1,25 +1,25 @@ -setGoodsConfigCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setGoodsConfigCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddVirtualMobileChargeNotify.php b/src/service/pinduoduo/bin/example/PddVirtualMobileChargeNotify.php index e98dac7..571f0d4 100644 --- a/src/service/pinduoduo/bin/example/PddVirtualMobileChargeNotify.php +++ b/src/service/pinduoduo/bin/example/PddVirtualMobileChargeNotify.php @@ -1,28 +1,28 @@ -setChargeCerti(); -$request->setOrderSn('str'); -$request->setOuterOrderSn('str'); -$request->setStatus('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setChargeCerti(); +$request->setOrderSn('str'); +$request->setOuterOrderSn('str'); +$request->setStatus('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddVoucherAppointmentInfoSend.php b/src/service/pinduoduo/bin/example/PddVoucherAppointmentInfoSend.php index 2d3c771..5752e0d 100644 --- a/src/service/pinduoduo/bin/example/PddVoucherAppointmentInfoSend.php +++ b/src/service/pinduoduo/bin/example/PddVoucherAppointmentInfoSend.php @@ -1,29 +1,29 @@ -setOrderSn('str'); -$request->setOutBizNo('str'); -$request->setVoucherList(); -$request->setLogisticsType(1); -$request->setAppointmentTime(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +$request->setOutBizNo('str'); +$request->setVoucherList(); +$request->setLogisticsType(1); +$request->setAppointmentTime(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddVoucherOtaCardVerification.php b/src/service/pinduoduo/bin/example/PddVoucherOtaCardVerification.php index 4fca08b..a3de229 100644 --- a/src/service/pinduoduo/bin/example/PddVoucherOtaCardVerification.php +++ b/src/service/pinduoduo/bin/example/PddVoucherOtaCardVerification.php @@ -1,27 +1,27 @@ -setCardNo('str'); -$request->setStoreId(1); -$request->setStoreName('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setCardNo('str'); +$request->setStoreId(1); +$request->setStoreName('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddVoucherPhysicalGoodsSend.php b/src/service/pinduoduo/bin/example/PddVoucherPhysicalGoodsSend.php index 6810bed..f40ccfd 100644 --- a/src/service/pinduoduo/bin/example/PddVoucherPhysicalGoodsSend.php +++ b/src/service/pinduoduo/bin/example/PddVoucherPhysicalGoodsSend.php @@ -1,34 +1,34 @@ -setOrderSn('str'); -$request->setOutBizNo('str'); -$request->setVoucherList(); -$request->setLogisticsType(1); -$request->setRecipient('str'); -$request->setRecipientMobile('str'); -$request->setRecipientAddress('str'); -$request->setLogisticsNo('str'); -$request->setLogisticsCompanyId('str'); -$request->setLogisticsCompany('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +$request->setOutBizNo('str'); +$request->setVoucherList(); +$request->setLogisticsType(1); +$request->setRecipient('str'); +$request->setRecipientMobile('str'); +$request->setRecipientAddress('str'); +$request->setLogisticsNo('str'); +$request->setLogisticsCompanyId('str'); +$request->setLogisticsCompany('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddVoucherRealtimeOrdernoGet.php b/src/service/pinduoduo/bin/example/PddVoucherRealtimeOrdernoGet.php index 0952843..40b3543 100644 --- a/src/service/pinduoduo/bin/example/PddVoucherRealtimeOrdernoGet.php +++ b/src/service/pinduoduo/bin/example/PddVoucherRealtimeOrdernoGet.php @@ -1,25 +1,25 @@ -setData(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setData(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddVoucherVirtualCardVerification.php b/src/service/pinduoduo/bin/example/PddVoucherVirtualCardVerification.php index 36680f9..c39d817 100644 --- a/src/service/pinduoduo/bin/example/PddVoucherVirtualCardVerification.php +++ b/src/service/pinduoduo/bin/example/PddVoucherVirtualCardVerification.php @@ -1,26 +1,26 @@ -setOrderSn('str'); -$request->setVoucherDataList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +$request->setVoucherDataList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddVoucherVoucherComplain.php b/src/service/pinduoduo/bin/example/PddVoucherVoucherComplain.php index 059c195..35fa885 100644 --- a/src/service/pinduoduo/bin/example/PddVoucherVoucherComplain.php +++ b/src/service/pinduoduo/bin/example/PddVoucherVoucherComplain.php @@ -1,32 +1,32 @@ -setOrderSn('str'); -$request->setOutBizNo('str'); -$request->setVoucherList(); -$request->setComplainUser('str'); -$request->setComplainUserMobile('str'); -$request->setComplainContent('str'); -$request->setComplainAttachmentList(array('str')); -$request->setComplainType(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +$request->setOutBizNo('str'); +$request->setVoucherList(); +$request->setComplainUser('str'); +$request->setComplainUserMobile('str'); +$request->setComplainContent('str'); +$request->setComplainAttachmentList(array('str')); +$request->setComplainType(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddVoucherVoucherInfoSend.php b/src/service/pinduoduo/bin/example/PddVoucherVoucherInfoSend.php index bce1788..87650f6 100644 --- a/src/service/pinduoduo/bin/example/PddVoucherVoucherInfoSend.php +++ b/src/service/pinduoduo/bin/example/PddVoucherVoucherInfoSend.php @@ -1,27 +1,27 @@ -setOrderSn('str'); -$request->setOutBizNo('str'); -$request->setVoucherList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setOrderSn('str'); +$request->setOutBizNo('str'); +$request->setVoucherList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWaybillCancel.php b/src/service/pinduoduo/bin/example/PddWaybillCancel.php index 5757f98..2a8da0e 100644 --- a/src/service/pinduoduo/bin/example/PddWaybillCancel.php +++ b/src/service/pinduoduo/bin/example/PddWaybillCancel.php @@ -1,26 +1,26 @@ -setWaybillCode('str'); -$request->setWpCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setWaybillCode('str'); +$request->setWpCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWaybillGet.php b/src/service/pinduoduo/bin/example/PddWaybillGet.php index 7c8d749..d53b627 100644 --- a/src/service/pinduoduo/bin/example/PddWaybillGet.php +++ b/src/service/pinduoduo/bin/example/PddWaybillGet.php @@ -1,25 +1,25 @@ -setParamWaybillCloudPrintApplyNewRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParamWaybillCloudPrintApplyNewRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWaybillQueryByWaybillcode.php b/src/service/pinduoduo/bin/example/PddWaybillQueryByWaybillcode.php index bf235e8..1f117b3 100644 --- a/src/service/pinduoduo/bin/example/PddWaybillQueryByWaybillcode.php +++ b/src/service/pinduoduo/bin/example/PddWaybillQueryByWaybillcode.php @@ -1,25 +1,25 @@ -setParamList(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParamList(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWaybillSearch.php b/src/service/pinduoduo/bin/example/PddWaybillSearch.php index e9cfaf1..6b6a128 100644 --- a/src/service/pinduoduo/bin/example/PddWaybillSearch.php +++ b/src/service/pinduoduo/bin/example/PddWaybillSearch.php @@ -1,25 +1,25 @@ -setWpCode('str'); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setWpCode('str'); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWaybillUpdate.php b/src/service/pinduoduo/bin/example/PddWaybillUpdate.php index 0215939..07ca3f4 100644 --- a/src/service/pinduoduo/bin/example/PddWaybillUpdate.php +++ b/src/service/pinduoduo/bin/example/PddWaybillUpdate.php @@ -1,25 +1,25 @@ -setParamWaybillCloudPrintUpdateRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setParamWaybillCloudPrintUpdateRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsDeliveryorderConfirm.php b/src/service/pinduoduo/bin/example/PddWmsDeliveryorderConfirm.php index b26cd8d..7e5ee35 100644 --- a/src/service/pinduoduo/bin/example/PddWmsDeliveryorderConfirm.php +++ b/src/service/pinduoduo/bin/example/PddWmsDeliveryorderConfirm.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsDeliveryorderCreate.php b/src/service/pinduoduo/bin/example/PddWmsDeliveryorderCreate.php index 0e58f87..22bfca8 100644 --- a/src/service/pinduoduo/bin/example/PddWmsDeliveryorderCreate.php +++ b/src/service/pinduoduo/bin/example/PddWmsDeliveryorderCreate.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsDepotTicketAck.php b/src/service/pinduoduo/bin/example/PddWmsDepotTicketAck.php index 2a6a198..85018d5 100644 --- a/src/service/pinduoduo/bin/example/PddWmsDepotTicketAck.php +++ b/src/service/pinduoduo/bin/example/PddWmsDepotTicketAck.php @@ -1,25 +1,25 @@ -setTicketIds(array(1)); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTicketIds(array(1)); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsDepotTicketGet.php b/src/service/pinduoduo/bin/example/PddWmsDepotTicketGet.php index f349d9f..292c716 100644 --- a/src/service/pinduoduo/bin/example/PddWmsDepotTicketGet.php +++ b/src/service/pinduoduo/bin/example/PddWmsDepotTicketGet.php @@ -1,29 +1,29 @@ -setNotAck(true); -$request->setCreatedAtGte(1); -$request->setCreatedAtLte(1); -$request->setPageNum(1); -$request->setPageSize(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setNotAck(true); +$request->setCreatedAtGte(1); +$request->setCreatedAtLte(1); +$request->setPageNum(1); +$request->setPageSize(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsDepotTicketNotify.php b/src/service/pinduoduo/bin/example/PddWmsDepotTicketNotify.php index 16cbc55..20884b1 100644 --- a/src/service/pinduoduo/bin/example/PddWmsDepotTicketNotify.php +++ b/src/service/pinduoduo/bin/example/PddWmsDepotTicketNotify.php @@ -1,29 +1,29 @@ -setTicketId(1); -$request->setContent('str'); -$request->setAttachUrl(); -$request->setServiceStatus(1); -$request->setCompensateAmount(1); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setTicketId(1); +$request->setContent('str'); +$request->setAttachUrl(); +$request->setServiceStatus(1); +$request->setCompensateAmount(1); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsDepotTicketProblemGet.php b/src/service/pinduoduo/bin/example/PddWmsDepotTicketProblemGet.php index 11ae3fe..8561fd0 100644 --- a/src/service/pinduoduo/bin/example/PddWmsDepotTicketProblemGet.php +++ b/src/service/pinduoduo/bin/example/PddWmsDepotTicketProblemGet.php @@ -1,24 +1,24 @@ -syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsInborderConfirm.php b/src/service/pinduoduo/bin/example/PddWmsInborderConfirm.php index ea7003d..34b9c6d 100644 --- a/src/service/pinduoduo/bin/example/PddWmsInborderConfirm.php +++ b/src/service/pinduoduo/bin/example/PddWmsInborderConfirm.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsInborderCreate.php b/src/service/pinduoduo/bin/example/PddWmsInborderCreate.php index 4b792b1..ffa9f4f 100644 --- a/src/service/pinduoduo/bin/example/PddWmsInborderCreate.php +++ b/src/service/pinduoduo/bin/example/PddWmsInborderCreate.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsOrderCallback.php b/src/service/pinduoduo/bin/example/PddWmsOrderCallback.php index 0b58cab..60009b2 100644 --- a/src/service/pinduoduo/bin/example/PddWmsOrderCallback.php +++ b/src/service/pinduoduo/bin/example/PddWmsOrderCallback.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsOrderCancel.php b/src/service/pinduoduo/bin/example/PddWmsOrderCancel.php index 2a6b28f..5a7b3c4 100644 --- a/src/service/pinduoduo/bin/example/PddWmsOrderCancel.php +++ b/src/service/pinduoduo/bin/example/PddWmsOrderCancel.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsOrderQuery.php b/src/service/pinduoduo/bin/example/PddWmsOrderQuery.php index 4b4d4eb..e60cc6e 100644 --- a/src/service/pinduoduo/bin/example/PddWmsOrderQuery.php +++ b/src/service/pinduoduo/bin/example/PddWmsOrderQuery.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsOrderstateSend.php b/src/service/pinduoduo/bin/example/PddWmsOrderstateSend.php index a4f4f36..e042033 100644 --- a/src/service/pinduoduo/bin/example/PddWmsOrderstateSend.php +++ b/src/service/pinduoduo/bin/example/PddWmsOrderstateSend.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsOuborderConfirm.php b/src/service/pinduoduo/bin/example/PddWmsOuborderConfirm.php index 790eaee..1878a40 100644 --- a/src/service/pinduoduo/bin/example/PddWmsOuborderConfirm.php +++ b/src/service/pinduoduo/bin/example/PddWmsOuborderConfirm.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsOuborderCreate.php b/src/service/pinduoduo/bin/example/PddWmsOuborderCreate.php index bbc7c6c..16759e8 100644 --- a/src/service/pinduoduo/bin/example/PddWmsOuborderCreate.php +++ b/src/service/pinduoduo/bin/example/PddWmsOuborderCreate.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsOutboundChangedate.php b/src/service/pinduoduo/bin/example/PddWmsOutboundChangedate.php index f59e58d..bf1afe1 100644 --- a/src/service/pinduoduo/bin/example/PddWmsOutboundChangedate.php +++ b/src/service/pinduoduo/bin/example/PddWmsOutboundChangedate.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsReturnorderConfirm.php b/src/service/pinduoduo/bin/example/PddWmsReturnorderConfirm.php index 5041f86..6f1efbe 100644 --- a/src/service/pinduoduo/bin/example/PddWmsReturnorderConfirm.php +++ b/src/service/pinduoduo/bin/example/PddWmsReturnorderConfirm.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsReturnorderCreate.php b/src/service/pinduoduo/bin/example/PddWmsReturnorderCreate.php index 6e1a641..69cabd2 100644 --- a/src/service/pinduoduo/bin/example/PddWmsReturnorderCreate.php +++ b/src/service/pinduoduo/bin/example/PddWmsReturnorderCreate.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsWareSynchronize.php b/src/service/pinduoduo/bin/example/PddWmsWareSynchronize.php index d166f89..65113d2 100644 --- a/src/service/pinduoduo/bin/example/PddWmsWareSynchronize.php +++ b/src/service/pinduoduo/bin/example/PddWmsWareSynchronize.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/example/PddWmsWareinformSend.php b/src/service/pinduoduo/bin/example/PddWmsWareinformSend.php index bc595a5..acc5f2a 100644 --- a/src/service/pinduoduo/bin/example/PddWmsWareinformSend.php +++ b/src/service/pinduoduo/bin/example/PddWmsWareinformSend.php @@ -1,25 +1,25 @@ -setRequest(); -try{ - $response = $client->syncInvoke($request); -} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ - echo $e->getMessage(); - exit; -} -$content = $response->getContent(); -if(isset($content['error_response'])){ - echo "异常返回"; -} +setRequest(); +try{ + $response = $client->syncInvoke($request); +} catch(Com\Pdd\Pop\Sdk\PopHttpException $e){ + echo $e->getMessage(); + exit; +} +$content = $response->getContent(); +if(isset($content['error_response'])){ + echo "异常返回"; +} echo json_encode($content,JSON_UNESCAPED_UNICODE); \ No newline at end of file diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiAdvertiserOpenAccountRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiAdvertiserOpenAccountRequest.php index 1aa45d1..b41dd11 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiAdvertiserOpenAccountRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiAdvertiserOpenAccountRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "goodsId", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.goods.query.gallery.images"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goodsId", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.goods.query.gallery.images"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiGoodsQueryLongImagesRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiGoodsQueryLongImagesRequest.php index 3c5722b..258d179 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiGoodsQueryLongImagesRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiGoodsQueryLongImagesRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goodsId", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.goods.query.long.images"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goodsId", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.goods.query.long.images"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiGoodsQueryPageRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiGoodsQueryPageRequest.php index 4f6a63d..f65dd28 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiGoodsQueryPageRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiGoodsQueryPageRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "goodsName", $this->goodsName); - $this->setUserParam($params, "pageNumber", $this->pageNumber); - $this->setUserParam($params, "pageSize", $this->pageSize); - $this->setUserParam($params, "planId", $this->planId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.goods.query.page"; - } - - public function setGoodsName($goodsName) - { - $this->goodsName = $goodsName; - } - - public function setPageNumber($pageNumber) - { - $this->pageNumber = $pageNumber; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setPlanId($planId) - { - $this->planId = $planId; - } - -} +setUserParam($params, "goodsName", $this->goodsName); + $this->setUserParam($params, "pageNumber", $this->pageNumber); + $this->setUserParam($params, "pageSize", $this->pageSize); + $this->setUserParam($params, "planId", $this->planId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.goods.query.page"; + } + + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + } + + public function setPageNumber($pageNumber) + { + $this->pageNumber = $pageNumber; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setPlanId($planId) + { + $this->planId = $planId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordCreateRequest.php index 07e3ecd..fa7c96e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordCreateRequest.php @@ -1,95 +1,95 @@ -, "keywordList") - */ - private $keywordList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "keywordList", $this->keywordList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.keyword.create"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setKeywordList($keywordList) - { - $this->keywordList = $keywordList; - } - -} - -class PddAdApiKeywordCreateRequest_KeywordListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "bid") - */ - private $bid; - - /** - * @JsonProperty(Long, "premiumRate") - */ - private $premiumRate; - - /** - * @JsonProperty(String, "word") - */ - private $word; - - public function setBid($bid) - { - $this->bid = $bid; - } - - public function setPremiumRate($premiumRate) - { - $this->premiumRate = $premiumRate; - } - - public function setWord($word) - { - $this->word = $word; - } - -} +, "keywordList") + */ + private $keywordList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "keywordList", $this->keywordList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.keyword.create"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setKeywordList($keywordList) + { + $this->keywordList = $keywordList; + } + +} + +class PddAdApiKeywordCreateRequest_KeywordListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "bid") + */ + private $bid; + + /** + * @JsonProperty(Long, "premiumRate") + */ + private $premiumRate; + + /** + * @JsonProperty(String, "word") + */ + private $word; + + public function setBid($bid) + { + $this->bid = $bid; + } + + public function setPremiumRate($premiumRate) + { + $this->premiumRate = $premiumRate; + } + + public function setWord($word) + { + $this->word = $word; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordDeleteRequest.php index 9652cc5..acc50bb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordDeleteRequest.php @@ -1,55 +1,55 @@ -, "keywordIds") - */ - private $keywordIds; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "keywordIds", $this->keywordIds); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.keyword.delete"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setKeywordIds($keywordIds) - { - $this->keywordIds = $keywordIds; - } - -} +, "keywordIds") + */ + private $keywordIds; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "keywordIds", $this->keywordIds); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.keyword.delete"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setKeywordIds($keywordIds) + { + $this->keywordIds = $keywordIds; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordQueryListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordQueryListRequest.php index 747e02f..c78bf95 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordQueryListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordQueryListRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "beginDate", $this->beginDate); - $this->setUserParam($params, "endDate", $this->endDate); - $this->setUserParam($params, "orderBy", $this->orderBy); - $this->setUserParam($params, "sortBy", $this->sortBy); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.keyword.query.list"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setBeginDate($beginDate) - { - $this->beginDate = $beginDate; - } - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - - public function setOrderBy($orderBy) - { - $this->orderBy = $orderBy; - } - - public function setSortBy($sortBy) - { - $this->sortBy = $sortBy; - } - -} +setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "beginDate", $this->beginDate); + $this->setUserParam($params, "endDate", $this->endDate); + $this->setUserParam($params, "orderBy", $this->orderBy); + $this->setUserParam($params, "sortBy", $this->sortBy); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.keyword.query.list"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setBeginDate($beginDate) + { + $this->beginDate = $beginDate; + } + + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + + public function setOrderBy($orderBy) + { + $this->orderBy = $orderBy; + } + + public function setSortBy($sortBy) + { + $this->sortBy = $sortBy; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordRecommendGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordRecommendGetRequest.php index 00c6cd4..b801aac 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordRecommendGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordRecommendGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goodsId", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.keyword.recommend.get"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goodsId", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.keyword.recommend.get"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordRelevanceGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordRelevanceGetRequest.php index 3cf3829..b115220 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordRelevanceGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordRelevanceGetRequest.php @@ -1,55 +1,55 @@ -, "words") - */ - private $words; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "goodsId", $this->goodsId); - $this->setUserParam($params, "words", $this->words); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.keyword.relevance.get"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setWords($words) - { - $this->words = $words; - } - -} +, "words") + */ + private $words; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "goodsId", $this->goodsId); + $this->setUserParam($params, "words", $this->words); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.keyword.relevance.get"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setWords($words) + { + $this->words = $words; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordUpdateRequest.php index f9d2b5c..cd31158 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiKeywordUpdateRequest.php @@ -1,95 +1,95 @@ -, "keywords") - */ - private $keywords; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "keywords", $this->keywords); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.keyword.update"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setKeywords($keywords) - { - $this->keywords = $keywords; - } - -} - -class PddAdApiKeywordUpdateRequest_KeywordsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "bid") - */ - private $bid; - - /** - * @JsonProperty(Long, "keywordId") - */ - private $keywordId; - - /** - * @JsonProperty(Long, "premiumRate") - */ - private $premiumRate; - - public function setBid($bid) - { - $this->bid = $bid; - } - - public function setKeywordId($keywordId) - { - $this->keywordId = $keywordId; - } - - public function setPremiumRate($premiumRate) - { - $this->premiumRate = $premiumRate; - } - -} +, "keywords") + */ + private $keywords; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "keywords", $this->keywords); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.keyword.update"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setKeywords($keywords) + { + $this->keywords = $keywords; + } + +} + +class PddAdApiKeywordUpdateRequest_KeywordsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "bid") + */ + private $bid; + + /** + * @JsonProperty(Long, "keywordId") + */ + private $keywordId; + + /** + * @JsonProperty(Long, "premiumRate") + */ + private $premiumRate; + + public function setBid($bid) + { + $this->bid = $bid; + } + + public function setKeywordId($keywordId) + { + $this->keywordId = $keywordId; + } + + public function setPremiumRate($premiumRate) + { + $this->premiumRate = $premiumRate; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanCreateRequest.php index 937095b..4b7e893 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanCreateRequest.php @@ -1,707 +1,707 @@ -, "adUnitCreateComplexMessageList") - */ - private $adUnitCreateComplexMessageList; - - /** - * @JsonProperty(Integer, "planStrategy") - */ - private $planStrategy; - - /** - * @JsonProperty(Integer, "scenesType") - */ - private $scenesType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "adPlanCreateMessage", $this->adPlanCreateMessage); - $this->setUserParam($params, "adUnitCreateComplexMessageList", $this->adUnitCreateComplexMessageList); - $this->setUserParam($params, "planStrategy", $this->planStrategy); - $this->setUserParam($params, "scenesType", $this->scenesType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.plan.create"; - } - - public function setAdPlanCreateMessage($adPlanCreateMessage) - { - $this->adPlanCreateMessage = $adPlanCreateMessage; - } - - public function setAdUnitCreateComplexMessageList($adUnitCreateComplexMessageList) - { - $this->adUnitCreateComplexMessageList = $adUnitCreateComplexMessageList; - } - - public function setPlanStrategy($planStrategy) - { - $this->planStrategy = $planStrategy; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - -} - -class PddAdApiPlanCreateRequest_AdPlanCreateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "maxCost") - */ - private $maxCost; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdPlanCreateMessagePlanDiscount, "planDiscount") - */ - private $planDiscount; - - /** - * @JsonProperty(String, "planName") - */ - private $planName; - - public function setMaxCost($maxCost) - { - $this->maxCost = $maxCost; - } - - public function setPlanDiscount($planDiscount) - { - $this->planDiscount = $planDiscount; - } - - public function setPlanName($planName) - { - $this->planName = $planName; - } - -} - -class PddAdApiPlanCreateRequest_AdPlanCreateMessagePlanDiscount extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdPlanCreateMessagePlanDiscountDiscountsItem>, "discounts") - */ - private $discounts; - - public function setDiscounts($discounts) - { - $this->discounts = $discounts; - } - -} - -class PddAdApiPlanCreateRequest_AdPlanCreateMessagePlanDiscountDiscountsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "index") - */ - private $index; - - /** - * @JsonProperty(Integer, "rate") - */ - private $rate; - - public function setIndex($index) - { - $this->index = $index; - } - - public function setRate($rate) - { - $this->rate = $rate; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItem>, "adCreativeCreateMessagesList") - */ - private $adCreativeCreateMessagesList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdKeywordCreateMessageListItem>, "adKeywordCreateMessageList") - */ - private $adKeywordCreateMessageList; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdKeywordSetMessage, "adKeywordSetMessage") - */ - private $adKeywordSetMessage; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdProductCreateMessage, "adProductCreateMessage") - */ - private $adProductCreateMessage; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdUnitCreateMessage, "adUnitCreateMessage") - */ - private $adUnitCreateMessage; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItem>, "audienceBidCreateMessageList") - */ - private $audienceBidCreateMessageList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemLocationBidCreateMessageListItem>, "locationBidCreateMessageList") - */ - private $locationBidCreateMessageList; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemSmartCreativeCreateMessage, "smartCreativeCreateMessage") - */ - private $smartCreativeCreateMessage; - - public function setAdCreativeCreateMessagesList($adCreativeCreateMessagesList) - { - $this->adCreativeCreateMessagesList = $adCreativeCreateMessagesList; - } - - public function setAdKeywordCreateMessageList($adKeywordCreateMessageList) - { - $this->adKeywordCreateMessageList = $adKeywordCreateMessageList; - } - - public function setAdKeywordSetMessage($adKeywordSetMessage) - { - $this->adKeywordSetMessage = $adKeywordSetMessage; - } - - public function setAdProductCreateMessage($adProductCreateMessage) - { - $this->adProductCreateMessage = $adProductCreateMessage; - } - - public function setAdUnitCreateMessage($adUnitCreateMessage) - { - $this->adUnitCreateMessage = $adUnitCreateMessage; - } - - public function setAudienceBidCreateMessageList($audienceBidCreateMessageList) - { - $this->audienceBidCreateMessageList = $audienceBidCreateMessageList; - } - - public function setLocationBidCreateMessageList($locationBidCreateMessageList) - { - $this->locationBidCreateMessageList = $locationBidCreateMessageList; - } - - public function setSmartCreativeCreateMessage($smartCreativeCreateMessage) - { - $this->smartCreativeCreateMessage = $smartCreativeCreateMessage; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItemAdImageVOListItem>, "adImageVOList") - */ - private $adImageVOList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItemAdTextVOListItem>, "adTextVOList") - */ - private $adTextVOList; - - /** - * @JsonProperty(Long, "creativeSpecificationId") - */ - private $creativeSpecificationId; - - public function setAdImageVOList($adImageVOList) - { - $this->adImageVOList = $adImageVOList; - } - - public function setAdTextVOList($adTextVOList) - { - $this->adTextVOList = $adTextVOList; - } - - public function setCreativeSpecificationId($creativeSpecificationId) - { - $this->creativeSpecificationId = $creativeSpecificationId; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItemAdImageVOListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "imageUrl") - */ - private $imageUrl; - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItemAdTextVOListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "text") - */ - private $text; - - public function setText($text) - { - $this->text = $text; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdKeywordCreateMessageListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "bid") - */ - private $bid; - - /** - * @JsonProperty(Long, "premiumRate") - */ - private $premiumRate; - - /** - * @JsonProperty(String, "word") - */ - private $word; - - public function setBid($bid) - { - $this->bid = $bid; - } - - public function setPremiumRate($premiumRate) - { - $this->premiumRate = $premiumRate; - } - - public function setWord($word) - { - $this->word = $word; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdKeywordSetMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "keywordSetBid") - */ - private $keywordSetBid; - - /** - * @JsonProperty(Integer, "performanceGoal") - */ - private $performanceGoal; - - public function setKeywordSetBid($keywordSetBid) - { - $this->keywordSetBid = $keywordSetBid; - } - - public function setPerformanceGoal($performanceGoal) - { - $this->performanceGoal = $performanceGoal; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdProductCreateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "goodsId") - */ - private $goodsId; - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdUnitCreateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "adName") - */ - private $adName; - - /** - * @JsonProperty(Long, "bid") - */ - private $bid; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdUnitCreateMessageOptimizationMessage, "optimizationMessage") - */ - private $optimizationMessage; - - public function setAdName($adName) - { - $this->adName = $adName; - } - - public function setBid($bid) - { - $this->bid = $bid; - } - - public function setOptimizationMessage($optimizationMessage) - { - $this->optimizationMessage = $optimizationMessage; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdUnitCreateMessageOptimizationMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "accumulationBid") - */ - private $accumulationBid; - - /** - * @JsonProperty(Long, "optimizationBid") - */ - private $optimizationBid; - - /** - * @JsonProperty(Integer, "optimizationGoal") - */ - private $optimizationGoal; - - /** - * @JsonProperty(Integer, "optimizationMethod") - */ - private $optimizationMethod; - - public function setAccumulationBid($accumulationBid) - { - $this->accumulationBid = $accumulationBid; - } - - public function setOptimizationBid($optimizationBid) - { - $this->optimizationBid = $optimizationBid; - } - - public function setOptimizationGoal($optimizationGoal) - { - $this->optimizationGoal = $optimizationGoal; - } - - public function setOptimizationMethod($optimizationMethod) - { - $this->optimizationMethod = $optimizationMethod; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessage, "adTargetingCreateMessage") - */ - private $adTargetingCreateMessage; - - /** - * @JsonProperty(Long, "bidReferenceId") - */ - private $bidReferenceId; - - /** - * @JsonProperty(Long, "bidValue") - */ - private $bidValue; - - /** - * @JsonProperty(Long, "subBidReferenceId") - */ - private $subBidReferenceId; - - public function setAdTargetingCreateMessage($adTargetingCreateMessage) - { - $this->adTargetingCreateMessage = $adTargetingCreateMessage; - } - - public function setBidReferenceId($bidReferenceId) - { - $this->bidReferenceId = $bidReferenceId; - } - - public function setBidValue($bidValue) - { - $this->bidValue = $bidValue; - } - - public function setSubBidReferenceId($subBidReferenceId) - { - $this->subBidReferenceId = $subBidReferenceId; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSet, "adTargetingSet") - */ - private $adTargetingSet; - - /** - * @JsonProperty(String, "targetingName") - */ - private $targetingName; - - public function setAdTargetingSet($adTargetingSet) - { - $this->adTargetingSet = $adTargetingSet; - } - - public function setTargetingName($targetingName) - { - $this->targetingName = $targetingName; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSet extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSetAreaStruct, "areaStruct") - */ - private $areaStruct; - - public function setAreaStruct($areaStruct) - { - $this->areaStruct = $areaStruct; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSetAreaStruct extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List, "areaIds") - */ - private $areaIds; - - public function setAreaIds($areaIds) - { - $this->areaIds = $areaIds; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemLocationBidCreateMessageListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "bidReferenceId") - */ - private $bidReferenceId; - - /** - * @JsonProperty(Long, "bidValue") - */ - private $bidValue; - - public function setBidReferenceId($bidReferenceId) - { - $this->bidReferenceId = $bidReferenceId; - } - - public function setBidValue($bidValue) - { - $this->bidValue = $bidValue; - } - -} - -class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemSmartCreativeCreateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "creativeFlowRate") - */ - private $creativeFlowRate; - - /** - * @JsonProperty(Integer, "enableSmartCreative") - */ - private $enableSmartCreative; - - /** - * @JsonProperty(String, "smartCreativeTitle") - */ - private $smartCreativeTitle; - - public function setCreativeFlowRate($creativeFlowRate) - { - $this->creativeFlowRate = $creativeFlowRate; - } - - public function setEnableSmartCreative($enableSmartCreative) - { - $this->enableSmartCreative = $enableSmartCreative; - } - - public function setSmartCreativeTitle($smartCreativeTitle) - { - $this->smartCreativeTitle = $smartCreativeTitle; - } - -} +, "adUnitCreateComplexMessageList") + */ + private $adUnitCreateComplexMessageList; + + /** + * @JsonProperty(Integer, "planStrategy") + */ + private $planStrategy; + + /** + * @JsonProperty(Integer, "scenesType") + */ + private $scenesType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "adPlanCreateMessage", $this->adPlanCreateMessage); + $this->setUserParam($params, "adUnitCreateComplexMessageList", $this->adUnitCreateComplexMessageList); + $this->setUserParam($params, "planStrategy", $this->planStrategy); + $this->setUserParam($params, "scenesType", $this->scenesType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.plan.create"; + } + + public function setAdPlanCreateMessage($adPlanCreateMessage) + { + $this->adPlanCreateMessage = $adPlanCreateMessage; + } + + public function setAdUnitCreateComplexMessageList($adUnitCreateComplexMessageList) + { + $this->adUnitCreateComplexMessageList = $adUnitCreateComplexMessageList; + } + + public function setPlanStrategy($planStrategy) + { + $this->planStrategy = $planStrategy; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + +} + +class PddAdApiPlanCreateRequest_AdPlanCreateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "maxCost") + */ + private $maxCost; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdPlanCreateMessagePlanDiscount, "planDiscount") + */ + private $planDiscount; + + /** + * @JsonProperty(String, "planName") + */ + private $planName; + + public function setMaxCost($maxCost) + { + $this->maxCost = $maxCost; + } + + public function setPlanDiscount($planDiscount) + { + $this->planDiscount = $planDiscount; + } + + public function setPlanName($planName) + { + $this->planName = $planName; + } + +} + +class PddAdApiPlanCreateRequest_AdPlanCreateMessagePlanDiscount extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdPlanCreateMessagePlanDiscountDiscountsItem>, "discounts") + */ + private $discounts; + + public function setDiscounts($discounts) + { + $this->discounts = $discounts; + } + +} + +class PddAdApiPlanCreateRequest_AdPlanCreateMessagePlanDiscountDiscountsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "index") + */ + private $index; + + /** + * @JsonProperty(Integer, "rate") + */ + private $rate; + + public function setIndex($index) + { + $this->index = $index; + } + + public function setRate($rate) + { + $this->rate = $rate; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItem>, "adCreativeCreateMessagesList") + */ + private $adCreativeCreateMessagesList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdKeywordCreateMessageListItem>, "adKeywordCreateMessageList") + */ + private $adKeywordCreateMessageList; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdKeywordSetMessage, "adKeywordSetMessage") + */ + private $adKeywordSetMessage; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdProductCreateMessage, "adProductCreateMessage") + */ + private $adProductCreateMessage; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdUnitCreateMessage, "adUnitCreateMessage") + */ + private $adUnitCreateMessage; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItem>, "audienceBidCreateMessageList") + */ + private $audienceBidCreateMessageList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemLocationBidCreateMessageListItem>, "locationBidCreateMessageList") + */ + private $locationBidCreateMessageList; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemSmartCreativeCreateMessage, "smartCreativeCreateMessage") + */ + private $smartCreativeCreateMessage; + + public function setAdCreativeCreateMessagesList($adCreativeCreateMessagesList) + { + $this->adCreativeCreateMessagesList = $adCreativeCreateMessagesList; + } + + public function setAdKeywordCreateMessageList($adKeywordCreateMessageList) + { + $this->adKeywordCreateMessageList = $adKeywordCreateMessageList; + } + + public function setAdKeywordSetMessage($adKeywordSetMessage) + { + $this->adKeywordSetMessage = $adKeywordSetMessage; + } + + public function setAdProductCreateMessage($adProductCreateMessage) + { + $this->adProductCreateMessage = $adProductCreateMessage; + } + + public function setAdUnitCreateMessage($adUnitCreateMessage) + { + $this->adUnitCreateMessage = $adUnitCreateMessage; + } + + public function setAudienceBidCreateMessageList($audienceBidCreateMessageList) + { + $this->audienceBidCreateMessageList = $audienceBidCreateMessageList; + } + + public function setLocationBidCreateMessageList($locationBidCreateMessageList) + { + $this->locationBidCreateMessageList = $locationBidCreateMessageList; + } + + public function setSmartCreativeCreateMessage($smartCreativeCreateMessage) + { + $this->smartCreativeCreateMessage = $smartCreativeCreateMessage; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItemAdImageVOListItem>, "adImageVOList") + */ + private $adImageVOList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItemAdTextVOListItem>, "adTextVOList") + */ + private $adTextVOList; + + /** + * @JsonProperty(Long, "creativeSpecificationId") + */ + private $creativeSpecificationId; + + public function setAdImageVOList($adImageVOList) + { + $this->adImageVOList = $adImageVOList; + } + + public function setAdTextVOList($adTextVOList) + { + $this->adTextVOList = $adTextVOList; + } + + public function setCreativeSpecificationId($creativeSpecificationId) + { + $this->creativeSpecificationId = $creativeSpecificationId; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItemAdImageVOListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "imageUrl") + */ + private $imageUrl; + + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdCreativeCreateMessagesListItemAdTextVOListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "text") + */ + private $text; + + public function setText($text) + { + $this->text = $text; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdKeywordCreateMessageListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "bid") + */ + private $bid; + + /** + * @JsonProperty(Long, "premiumRate") + */ + private $premiumRate; + + /** + * @JsonProperty(String, "word") + */ + private $word; + + public function setBid($bid) + { + $this->bid = $bid; + } + + public function setPremiumRate($premiumRate) + { + $this->premiumRate = $premiumRate; + } + + public function setWord($word) + { + $this->word = $word; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdKeywordSetMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "keywordSetBid") + */ + private $keywordSetBid; + + /** + * @JsonProperty(Integer, "performanceGoal") + */ + private $performanceGoal; + + public function setKeywordSetBid($keywordSetBid) + { + $this->keywordSetBid = $keywordSetBid; + } + + public function setPerformanceGoal($performanceGoal) + { + $this->performanceGoal = $performanceGoal; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdProductCreateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "goodsId") + */ + private $goodsId; + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdUnitCreateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "adName") + */ + private $adName; + + /** + * @JsonProperty(Long, "bid") + */ + private $bid; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdUnitCreateMessageOptimizationMessage, "optimizationMessage") + */ + private $optimizationMessage; + + public function setAdName($adName) + { + $this->adName = $adName; + } + + public function setBid($bid) + { + $this->bid = $bid; + } + + public function setOptimizationMessage($optimizationMessage) + { + $this->optimizationMessage = $optimizationMessage; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAdUnitCreateMessageOptimizationMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "accumulationBid") + */ + private $accumulationBid; + + /** + * @JsonProperty(Long, "optimizationBid") + */ + private $optimizationBid; + + /** + * @JsonProperty(Integer, "optimizationGoal") + */ + private $optimizationGoal; + + /** + * @JsonProperty(Integer, "optimizationMethod") + */ + private $optimizationMethod; + + public function setAccumulationBid($accumulationBid) + { + $this->accumulationBid = $accumulationBid; + } + + public function setOptimizationBid($optimizationBid) + { + $this->optimizationBid = $optimizationBid; + } + + public function setOptimizationGoal($optimizationGoal) + { + $this->optimizationGoal = $optimizationGoal; + } + + public function setOptimizationMethod($optimizationMethod) + { + $this->optimizationMethod = $optimizationMethod; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessage, "adTargetingCreateMessage") + */ + private $adTargetingCreateMessage; + + /** + * @JsonProperty(Long, "bidReferenceId") + */ + private $bidReferenceId; + + /** + * @JsonProperty(Long, "bidValue") + */ + private $bidValue; + + /** + * @JsonProperty(Long, "subBidReferenceId") + */ + private $subBidReferenceId; + + public function setAdTargetingCreateMessage($adTargetingCreateMessage) + { + $this->adTargetingCreateMessage = $adTargetingCreateMessage; + } + + public function setBidReferenceId($bidReferenceId) + { + $this->bidReferenceId = $bidReferenceId; + } + + public function setBidValue($bidValue) + { + $this->bidValue = $bidValue; + } + + public function setSubBidReferenceId($subBidReferenceId) + { + $this->subBidReferenceId = $subBidReferenceId; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSet, "adTargetingSet") + */ + private $adTargetingSet; + + /** + * @JsonProperty(String, "targetingName") + */ + private $targetingName; + + public function setAdTargetingSet($adTargetingSet) + { + $this->adTargetingSet = $adTargetingSet; + } + + public function setTargetingName($targetingName) + { + $this->targetingName = $targetingName; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSet extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSetAreaStruct, "areaStruct") + */ + private $areaStruct; + + public function setAreaStruct($areaStruct) + { + $this->areaStruct = $areaStruct; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSetAreaStruct extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List, "areaIds") + */ + private $areaIds; + + public function setAreaIds($areaIds) + { + $this->areaIds = $areaIds; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemLocationBidCreateMessageListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "bidReferenceId") + */ + private $bidReferenceId; + + /** + * @JsonProperty(Long, "bidValue") + */ + private $bidValue; + + public function setBidReferenceId($bidReferenceId) + { + $this->bidReferenceId = $bidReferenceId; + } + + public function setBidValue($bidValue) + { + $this->bidValue = $bidValue; + } + +} + +class PddAdApiPlanCreateRequest_AdUnitCreateComplexMessageListItemSmartCreativeCreateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "creativeFlowRate") + */ + private $creativeFlowRate; + + /** + * @JsonProperty(Integer, "enableSmartCreative") + */ + private $enableSmartCreative; + + /** + * @JsonProperty(String, "smartCreativeTitle") + */ + private $smartCreativeTitle; + + public function setCreativeFlowRate($creativeFlowRate) + { + $this->creativeFlowRate = $creativeFlowRate; + } + + public function setEnableSmartCreative($enableSmartCreative) + { + $this->enableSmartCreative = $enableSmartCreative; + } + + public function setSmartCreativeTitle($smartCreativeTitle) + { + $this->smartCreativeTitle = $smartCreativeTitle; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanDeleteRequest.php index 9890422..89dd8f8 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanDeleteRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "planId", $this->planId); - $this->setUserParam($params, "scenesType", $this->scenesType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.plan.delete"; - } - - public function setPlanId($planId) - { - $this->planId = $planId; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - -} +setUserParam($params, "planId", $this->planId); + $this->setUserParam($params, "scenesType", $this->scenesType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.plan.delete"; + } + + public function setPlanId($planId) + { + $this->planId = $planId; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryCanCreateAdPlanRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryCanCreateAdPlanRequest.php index 4bdcc27..b5dcb8e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryCanCreateAdPlanRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryCanCreateAdPlanRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "planName", $this->planName); - $this->setUserParam($params, "scenesType", $this->scenesType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.plan.query.can.create.ad.plan"; - } - - public function setPlanName($planName) - { - $this->planName = $planName; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - -} +setUserParam($params, "planName", $this->planName); + $this->setUserParam($params, "scenesType", $this->scenesType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.plan.query.can.create.ad.plan"; + } + + public function setPlanName($planName) + { + $this->planName = $planName; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryCanUpdateMaxCostRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryCanUpdateMaxCostRequest.php index 87d9bf5..e84ccca 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryCanUpdateMaxCostRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryCanUpdateMaxCostRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "planId", $this->planId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.plan.query.can.update.max.cost"; - } - - public function setPlanId($planId) - { - $this->planId = $planId; - } - -} +setUserParam($params, "planId", $this->planId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.plan.query.can.update.max.cost"; + } + + public function setPlanId($planId) + { + $this->planId = $planId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryListRequest.php index 316a073..547c771 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanQueryListRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "beginDate", $this->beginDate); - $this->setUserParam($params, "endDate", $this->endDate); - $this->setUserParam($params, "orderBy", $this->orderBy); - $this->setUserParam($params, "scenesType", $this->scenesType); - $this->setUserParam($params, "sortBy", $this->sortBy); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.plan.query.list"; - } - - public function setBeginDate($beginDate) - { - $this->beginDate = $beginDate; - } - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - - public function setOrderBy($orderBy) - { - $this->orderBy = $orderBy; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - - public function setSortBy($sortBy) - { - $this->sortBy = $sortBy; - } - -} +setUserParam($params, "beginDate", $this->beginDate); + $this->setUserParam($params, "endDate", $this->endDate); + $this->setUserParam($params, "orderBy", $this->orderBy); + $this->setUserParam($params, "scenesType", $this->scenesType); + $this->setUserParam($params, "sortBy", $this->sortBy); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.plan.query.list"; + } + + public function setBeginDate($beginDate) + { + $this->beginDate = $beginDate; + } + + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + + public function setOrderBy($orderBy) + { + $this->orderBy = $orderBy; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + + public function setSortBy($sortBy) + { + $this->sortBy = $sortBy; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdateDataOperateStatusRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdateDataOperateStatusRequest.php index 80fd096..8dc743a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdateDataOperateStatusRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdateDataOperateStatusRequest.php @@ -1,66 +1,66 @@ -, "planIds") - */ - private $planIds; - - /** - * @JsonProperty(Integer, "scenesType") - */ - private $scenesType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "dataOperateStatus", $this->dataOperateStatus); - $this->setUserParam($params, "planIds", $this->planIds); - $this->setUserParam($params, "scenesType", $this->scenesType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.plan.update.data.operate.status"; - } - - public function setDataOperateStatus($dataOperateStatus) - { - $this->dataOperateStatus = $dataOperateStatus; - } - - public function setPlanIds($planIds) - { - $this->planIds = $planIds; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - -} +, "planIds") + */ + private $planIds; + + /** + * @JsonProperty(Integer, "scenesType") + */ + private $scenesType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "dataOperateStatus", $this->dataOperateStatus); + $this->setUserParam($params, "planIds", $this->planIds); + $this->setUserParam($params, "scenesType", $this->scenesType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.plan.update.data.operate.status"; + } + + public function setDataOperateStatus($dataOperateStatus) + { + $this->dataOperateStatus = $dataOperateStatus; + } + + public function setPlanIds($planIds) + { + $this->planIds = $planIds; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdateMaxCostRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdateMaxCostRequest.php index 397d995..0116261 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdateMaxCostRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdateMaxCostRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "maxCost", $this->maxCost); - $this->setUserParam($params, "planId", $this->planId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.plan.update.max.cost"; - } - - public function setMaxCost($maxCost) - { - $this->maxCost = $maxCost; - } - - public function setPlanId($planId) - { - $this->planId = $planId; - } - -} +setUserParam($params, "maxCost", $this->maxCost); + $this->setUserParam($params, "planId", $this->planId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.plan.update.max.cost"; + } + + public function setMaxCost($maxCost) + { + $this->maxCost = $maxCost; + } + + public function setPlanId($planId) + { + $this->planId = $planId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdatePlanDiscountRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdatePlanDiscountRequest.php index 0c9d7b4..bb362fc 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdatePlanDiscountRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdatePlanDiscountRequest.php @@ -1,105 +1,105 @@ -setUserParam($params, "planDiscount", $this->planDiscount); - $this->setUserParam($params, "planId", $this->planId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.plan.update.plan.discount"; - } - - public function setPlanDiscount($planDiscount) - { - $this->planDiscount = $planDiscount; - } - - public function setPlanId($planId) - { - $this->planId = $planId; - } - -} - -class PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscount extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscountDiscountsItem>, "discounts") - */ - private $discounts; - - public function setDiscounts($discounts) - { - $this->discounts = $discounts; - } - -} - -class PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscountDiscountsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "index") - */ - private $index; - - /** - * @JsonProperty(Integer, "rate") - */ - private $rate; - - public function setIndex($index) - { - $this->index = $index; - } - - public function setRate($rate) - { - $this->rate = $rate; - } - -} +setUserParam($params, "planDiscount", $this->planDiscount); + $this->setUserParam($params, "planId", $this->planId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.plan.update.plan.discount"; + } + + public function setPlanDiscount($planDiscount) + { + $this->planDiscount = $planDiscount; + } + + public function setPlanId($planId) + { + $this->planId = $planId; + } + +} + +class PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscount extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscountDiscountsItem>, "discounts") + */ + private $discounts; + + public function setDiscounts($discounts) + { + $this->discounts = $discounts; + } + +} + +class PddAdApiPlanUpdatePlanDiscountRequest_PlanDiscountDiscountsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "index") + */ + private $index; + + /** + * @JsonProperty(Integer, "rate") + */ + private $rate; + + public function setIndex($index) + { + $this->index = $index; + } + + public function setRate($rate) + { + $this->rate = $rate; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdatePlanNameRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdatePlanNameRequest.php index 8fca2be..07f1b94 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdatePlanNameRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiPlanUpdatePlanNameRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "planId", $this->planId); - $this->setUserParam($params, "planName", $this->planName); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.plan.update.plan.name"; - } - - public function setPlanId($planId) - { - $this->planId = $planId; - } - - public function setPlanName($planName) - { - $this->planName = $planName; - } - -} +setUserParam($params, "planId", $this->planId); + $this->setUserParam($params, "planName", $this->planName); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.plan.update.plan.name"; + } + + public function setPlanId($planId) + { + $this->planId = $planId; + } + + public function setPlanName($planName) + { + $this->planName = $planName; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportDailyReportQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportDailyReportQueryRequest.php index 0e53f8c..d1a23cd 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportDailyReportQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportDailyReportQueryRequest.php @@ -1,99 +1,99 @@ -, "externalParamMap") - */ - private $externalParamMap; - - /** - * @JsonProperty(Integer, "queryDimensionType") - */ - private $queryDimensionType; - - /** - * @JsonProperty(Integer, "scenesType") - */ - private $scenesType; - - /** - * @JsonProperty(String, "startDateString") - */ - private $startDateString; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "endDateString", $this->endDateString); - $this->setUserParam($params, "entityId", $this->entityId); - $this->setUserParam($params, "externalParamMap", $this->externalParamMap); - $this->setUserParam($params, "queryDimensionType", $this->queryDimensionType); - $this->setUserParam($params, "scenesType", $this->scenesType); - $this->setUserParam($params, "startDateString", $this->startDateString); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.report.daily.report.query"; - } - - public function setEndDateString($endDateString) - { - $this->endDateString = $endDateString; - } - - public function setEntityId($entityId) - { - $this->entityId = $entityId; - } - - public function setExternalParamMap($externalParamMap) - { - $this->externalParamMap = $externalParamMap; - } - - public function setQueryDimensionType($queryDimensionType) - { - $this->queryDimensionType = $queryDimensionType; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - - public function setStartDateString($startDateString) - { - $this->startDateString = $startDateString; - } - -} +, "externalParamMap") + */ + private $externalParamMap; + + /** + * @JsonProperty(Integer, "queryDimensionType") + */ + private $queryDimensionType; + + /** + * @JsonProperty(Integer, "scenesType") + */ + private $scenesType; + + /** + * @JsonProperty(String, "startDateString") + */ + private $startDateString; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "endDateString", $this->endDateString); + $this->setUserParam($params, "entityId", $this->entityId); + $this->setUserParam($params, "externalParamMap", $this->externalParamMap); + $this->setUserParam($params, "queryDimensionType", $this->queryDimensionType); + $this->setUserParam($params, "scenesType", $this->scenesType); + $this->setUserParam($params, "startDateString", $this->startDateString); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.report.daily.report.query"; + } + + public function setEndDateString($endDateString) + { + $this->endDateString = $endDateString; + } + + public function setEntityId($entityId) + { + $this->entityId = $entityId; + } + + public function setExternalParamMap($externalParamMap) + { + $this->externalParamMap = $externalParamMap; + } + + public function setQueryDimensionType($queryDimensionType) + { + $this->queryDimensionType = $queryDimensionType; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + + public function setStartDateString($startDateString) + { + $this->startDateString = $startDateString; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportEntityReportQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportEntityReportQueryRequest.php index 7025015..3378238 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportEntityReportQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportEntityReportQueryRequest.php @@ -1,173 +1,173 @@ -, "externalParamMap") - */ - private $externalParamMap; - - /** - * @JsonProperty(Integer, "orderBy") - */ - private $orderBy; - - /** - * @JsonProperty(Integer, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(Integer, "queryDimensionType") - */ - private $queryDimensionType; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiReportEntityReportQueryRequest_QueryRange, "queryRange") - */ - private $queryRange; - - /** - * @JsonProperty(Integer, "scenesType") - */ - private $scenesType; - - /** - * @JsonProperty(String, "startDateString") - */ - private $startDateString; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "endDateString", $this->endDateString); - $this->setUserParam($params, "entityDimensionType", $this->entityDimensionType); - $this->setUserParam($params, "entityId", $this->entityId); - $this->setUserParam($params, "externalParamMap", $this->externalParamMap); - $this->setUserParam($params, "orderBy", $this->orderBy); - $this->setUserParam($params, "orderType", $this->orderType); - $this->setUserParam($params, "queryDimensionType", $this->queryDimensionType); - $this->setUserParam($params, "queryRange", $this->queryRange); - $this->setUserParam($params, "scenesType", $this->scenesType); - $this->setUserParam($params, "startDateString", $this->startDateString); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.report.entity.report.query"; - } - - public function setEndDateString($endDateString) - { - $this->endDateString = $endDateString; - } - - public function setEntityDimensionType($entityDimensionType) - { - $this->entityDimensionType = $entityDimensionType; - } - - public function setEntityId($entityId) - { - $this->entityId = $entityId; - } - - public function setExternalParamMap($externalParamMap) - { - $this->externalParamMap = $externalParamMap; - } - - public function setOrderBy($orderBy) - { - $this->orderBy = $orderBy; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setQueryDimensionType($queryDimensionType) - { - $this->queryDimensionType = $queryDimensionType; - } - - public function setQueryRange($queryRange) - { - $this->queryRange = $queryRange; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - - public function setStartDateString($startDateString) - { - $this->startDateString = $startDateString; - } - -} - -class PddAdApiReportEntityReportQueryRequest_QueryRange extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "pageNumber") - */ - private $pageNumber; - - /** - * @JsonProperty(Integer, "pageSize") - */ - private $pageSize; - - public function setPageNumber($pageNumber) - { - $this->pageNumber = $pageNumber; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - -} +, "externalParamMap") + */ + private $externalParamMap; + + /** + * @JsonProperty(Integer, "orderBy") + */ + private $orderBy; + + /** + * @JsonProperty(Integer, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(Integer, "queryDimensionType") + */ + private $queryDimensionType; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiReportEntityReportQueryRequest_QueryRange, "queryRange") + */ + private $queryRange; + + /** + * @JsonProperty(Integer, "scenesType") + */ + private $scenesType; + + /** + * @JsonProperty(String, "startDateString") + */ + private $startDateString; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "endDateString", $this->endDateString); + $this->setUserParam($params, "entityDimensionType", $this->entityDimensionType); + $this->setUserParam($params, "entityId", $this->entityId); + $this->setUserParam($params, "externalParamMap", $this->externalParamMap); + $this->setUserParam($params, "orderBy", $this->orderBy); + $this->setUserParam($params, "orderType", $this->orderType); + $this->setUserParam($params, "queryDimensionType", $this->queryDimensionType); + $this->setUserParam($params, "queryRange", $this->queryRange); + $this->setUserParam($params, "scenesType", $this->scenesType); + $this->setUserParam($params, "startDateString", $this->startDateString); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.report.entity.report.query"; + } + + public function setEndDateString($endDateString) + { + $this->endDateString = $endDateString; + } + + public function setEntityDimensionType($entityDimensionType) + { + $this->entityDimensionType = $entityDimensionType; + } + + public function setEntityId($entityId) + { + $this->entityId = $entityId; + } + + public function setExternalParamMap($externalParamMap) + { + $this->externalParamMap = $externalParamMap; + } + + public function setOrderBy($orderBy) + { + $this->orderBy = $orderBy; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setQueryDimensionType($queryDimensionType) + { + $this->queryDimensionType = $queryDimensionType; + } + + public function setQueryRange($queryRange) + { + $this->queryRange = $queryRange; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + + public function setStartDateString($startDateString) + { + $this->startDateString = $startDateString; + } + +} + +class PddAdApiReportEntityReportQueryRequest_QueryRange extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "pageNumber") + */ + private $pageNumber; + + /** + * @JsonProperty(Integer, "pageSize") + */ + private $pageSize; + + public function setPageNumber($pageNumber) + { + $this->pageNumber = $pageNumber; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportHourlyReportQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportHourlyReportQueryRequest.php index e24c55e..bbde8fa 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportHourlyReportQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiReportHourlyReportQueryRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "dateString", $this->dateString); - $this->setUserParam($params, "entityId", $this->entityId); - $this->setUserParam($params, "queryDimensionType", $this->queryDimensionType); - $this->setUserParam($params, "scenesType", $this->scenesType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.report.hourly.report.query"; - } - - public function setDateString($dateString) - { - $this->dateString = $dateString; - } - - public function setEntityId($entityId) - { - $this->entityId = $entityId; - } - - public function setQueryDimensionType($queryDimensionType) - { - $this->queryDimensionType = $queryDimensionType; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - -} +setUserParam($params, "dateString", $this->dateString); + $this->setUserParam($params, "entityId", $this->entityId); + $this->setUserParam($params, "queryDimensionType", $this->queryDimensionType); + $this->setUserParam($params, "scenesType", $this->scenesType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.report.hourly.report.query"; + } + + public function setDateString($dateString) + { + $this->dateString = $dateString; + } + + public function setEntityId($entityId) + { + $this->entityId = $entityId; + } + + public function setQueryDimensionType($queryDimensionType) + { + $this->queryDimensionType = $queryDimensionType; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidDeleteRequest.php index b68ff69..70d753e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidDeleteRequest.php @@ -1,55 +1,55 @@ -, "bidIds") - */ - private $bidIds; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "bidIds", $this->bidIds); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.bid.delete"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setBidIds($bidIds) - { - $this->bidIds = $bidIds; - } - -} +, "bidIds") + */ + private $bidIds; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "bidIds", $this->bidIds); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.bid.delete"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setBidIds($bidIds) + { + $this->bidIds = $bidIds; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryAudienceProfileRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryAudienceProfileRequest.php index f66de4f..442bee8 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryAudienceProfileRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryAudienceProfileRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "deliverType", $this->deliverType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.bid.query.audience.profile"; - } - - public function setDeliverType($deliverType) - { - $this->deliverType = $deliverType; - } - -} +setUserParam($params, "deliverType", $this->deliverType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.bid.query.audience.profile"; + } + + public function setDeliverType($deliverType) + { + $this->deliverType = $deliverType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryBaseLocationProfileRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryBaseLocationProfileRequest.php index 7b57479..f1a8ec0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryBaseLocationProfileRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryBaseLocationProfileRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "goodsId", $this->goodsId); - $this->setUserParam($params, "scenesType", $this->scenesType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.bid.query.base.target.profile"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - -} +setUserParam($params, "goodsId", $this->goodsId); + $this->setUserParam($params, "scenesType", $this->scenesType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.bid.query.base.target.profile"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryInterestProfileRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryInterestProfileRequest.php index c2d83a3..f60c350 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryInterestProfileRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryInterestProfileRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goodsId", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.bid.query.interest.profile"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goodsId", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.bid.query.interest.profile"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryListRequest.php index 257b5ea..d878bfd 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryListRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "beginDate", $this->beginDate); - $this->setUserParam($params, "bidReferenceType", $this->bidReferenceType); - $this->setUserParam($params, "endDate", $this->endDate); - $this->setUserParam($params, "orderBy", $this->orderBy); - $this->setUserParam($params, "sortBy", $this->sortBy); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.bid.query.list"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setBeginDate($beginDate) - { - $this->beginDate = $beginDate; - } - - public function setBidReferenceType($bidReferenceType) - { - $this->bidReferenceType = $bidReferenceType; - } - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - - public function setOrderBy($orderBy) - { - $this->orderBy = $orderBy; - } - - public function setSortBy($sortBy) - { - $this->sortBy = $sortBy; - } - -} +setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "beginDate", $this->beginDate); + $this->setUserParam($params, "bidReferenceType", $this->bidReferenceType); + $this->setUserParam($params, "endDate", $this->endDate); + $this->setUserParam($params, "orderBy", $this->orderBy); + $this->setUserParam($params, "sortBy", $this->sortBy); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.bid.query.list"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setBeginDate($beginDate) + { + $this->beginDate = $beginDate; + } + + public function setBidReferenceType($bidReferenceType) + { + $this->bidReferenceType = $bidReferenceType; + } + + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + + public function setOrderBy($orderBy) + { + $this->orderBy = $orderBy; + } + + public function setSortBy($sortBy) + { + $this->sortBy = $sortBy; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryTargetingTagListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryTargetingTagListRequest.php index c2d43b9..5847cba 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryTargetingTagListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidQueryTargetingTagListRequest.php @@ -1,33 +1,33 @@ -, "adUnitBids") - */ - private $adUnitBids; - - /** - * @JsonProperty(Integer, "bidReferenceType") - */ - private $bidReferenceType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "adUnitBids", $this->adUnitBids); - $this->setUserParam($params, "bidReferenceType", $this->bidReferenceType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.bid.sync"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setAdUnitBids($adUnitBids) - { - $this->adUnitBids = $adUnitBids; - } - - public function setBidReferenceType($bidReferenceType) - { - $this->bidReferenceType = $bidReferenceType; - } - -} - -class PddAdApiUnitBidSyncRequest_AdUnitBidsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVO, "adTargetingVO") - */ - private $adTargetingVO; - - /** - * @JsonProperty(Long, "bidReferenceId") - */ - private $bidReferenceId; - - /** - * @JsonProperty(Long, "bidValue") - */ - private $bidValue; - - /** - * @JsonProperty(Long, "subBidReferenceId") - */ - private $subBidReferenceId; - - public function setAdTargetingVO($adTargetingVO) - { - $this->adTargetingVO = $adTargetingVO; - } - - public function setBidReferenceId($bidReferenceId) - { - $this->bidReferenceId = $bidReferenceId; - } - - public function setBidValue($bidValue) - { - $this->bidValue = $bidValue; - } - - public function setSubBidReferenceId($subBidReferenceId) - { - $this->subBidReferenceId = $subBidReferenceId; - } - -} - -class PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVO extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSet, "adTargetingSet") - */ - private $adTargetingSet; - - /** - * @JsonProperty(String, "targetingName") - */ - private $targetingName; - - public function setAdTargetingSet($adTargetingSet) - { - $this->adTargetingSet = $adTargetingSet; - } - - public function setTargetingName($targetingName) - { - $this->targetingName = $targetingName; - } - -} - -class PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSet extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSetAreaStruct, "areaStruct") - */ - private $areaStruct; - - public function setAreaStruct($areaStruct) - { - $this->areaStruct = $areaStruct; - } - -} - -class PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSetAreaStruct extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List, "areaIds") - */ - private $areaIds; - - public function setAreaIds($areaIds) - { - $this->areaIds = $areaIds; - } - -} +, "adUnitBids") + */ + private $adUnitBids; + + /** + * @JsonProperty(Integer, "bidReferenceType") + */ + private $bidReferenceType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "adUnitBids", $this->adUnitBids); + $this->setUserParam($params, "bidReferenceType", $this->bidReferenceType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.bid.sync"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setAdUnitBids($adUnitBids) + { + $this->adUnitBids = $adUnitBids; + } + + public function setBidReferenceType($bidReferenceType) + { + $this->bidReferenceType = $bidReferenceType; + } + +} + +class PddAdApiUnitBidSyncRequest_AdUnitBidsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVO, "adTargetingVO") + */ + private $adTargetingVO; + + /** + * @JsonProperty(Long, "bidReferenceId") + */ + private $bidReferenceId; + + /** + * @JsonProperty(Long, "bidValue") + */ + private $bidValue; + + /** + * @JsonProperty(Long, "subBidReferenceId") + */ + private $subBidReferenceId; + + public function setAdTargetingVO($adTargetingVO) + { + $this->adTargetingVO = $adTargetingVO; + } + + public function setBidReferenceId($bidReferenceId) + { + $this->bidReferenceId = $bidReferenceId; + } + + public function setBidValue($bidValue) + { + $this->bidValue = $bidValue; + } + + public function setSubBidReferenceId($subBidReferenceId) + { + $this->subBidReferenceId = $subBidReferenceId; + } + +} + +class PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVO extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSet, "adTargetingSet") + */ + private $adTargetingSet; + + /** + * @JsonProperty(String, "targetingName") + */ + private $targetingName; + + public function setAdTargetingSet($adTargetingSet) + { + $this->adTargetingSet = $adTargetingSet; + } + + public function setTargetingName($targetingName) + { + $this->targetingName = $targetingName; + } + +} + +class PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSet extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSetAreaStruct, "areaStruct") + */ + private $areaStruct; + + public function setAreaStruct($areaStruct) + { + $this->areaStruct = $areaStruct; + } + +} + +class PddAdApiUnitBidSyncRequest_AdUnitBidsItemAdTargetingVOAdTargetingSetAreaStruct extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List, "areaIds") + */ + private $areaIds; + + public function setAreaIds($areaIds) + { + $this->areaIds = $areaIds; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidUpdateRequest.php index ec465e2..27c8b08 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitBidUpdateRequest.php @@ -1,96 +1,96 @@ -, "adUnitBids") - */ - private $adUnitBids; - - /** - * @JsonProperty(Integer, "bidReferenceType") - */ - private $bidReferenceType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "adUnitBids", $this->adUnitBids); - $this->setUserParam($params, "bidReferenceType", $this->bidReferenceType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.bid.update"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setAdUnitBids($adUnitBids) - { - $this->adUnitBids = $adUnitBids; - } - - public function setBidReferenceType($bidReferenceType) - { - $this->bidReferenceType = $bidReferenceType; - } - -} - -class PddAdApiUnitBidUpdateRequest_AdUnitBidsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "bidId") - */ - private $bidId; - - /** - * @JsonProperty(Long, "bidValue") - */ - private $bidValue; - - public function setBidId($bidId) - { - $this->bidId = $bidId; - } - - public function setBidValue($bidValue) - { - $this->bidValue = $bidValue; - } - -} +, "adUnitBids") + */ + private $adUnitBids; + + /** + * @JsonProperty(Integer, "bidReferenceType") + */ + private $bidReferenceType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "adUnitBids", $this->adUnitBids); + $this->setUserParam($params, "bidReferenceType", $this->bidReferenceType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.bid.update"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setAdUnitBids($adUnitBids) + { + $this->adUnitBids = $adUnitBids; + } + + public function setBidReferenceType($bidReferenceType) + { + $this->bidReferenceType = $bidReferenceType; + } + +} + +class PddAdApiUnitBidUpdateRequest_AdUnitBidsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "bidId") + */ + private $bidId; + + /** + * @JsonProperty(Long, "bidValue") + */ + private $bidValue; + + public function setBidId($bidId) + { + $this->bidId = $bidId; + } + + public function setBidValue($bidValue) + { + $this->bidValue = $bidValue; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreateRequest.php index a0d9b73..7b88c83 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreateRequest.php @@ -1,606 +1,606 @@ -setUserParam($params, "adUnitCreateComplexMessage", $this->adUnitCreateComplexMessage); - $this->setUserParam($params, "planId", $this->planId); - $this->setUserParam($params, "scenesType", $this->scenesType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.create"; - } - - public function setAdUnitCreateComplexMessage($adUnitCreateComplexMessage) - { - $this->adUnitCreateComplexMessage = $adUnitCreateComplexMessage; - } - - public function setPlanId($planId) - { - $this->planId = $planId; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItem>, "adCreativeCreateMessagesList") - */ - private $adCreativeCreateMessagesList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdKeywordCreateMessageListItem>, "adKeywordCreateMessageList") - */ - private $adKeywordCreateMessageList; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdKeywordSetMessage, "adKeywordSetMessage") - */ - private $adKeywordSetMessage; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdProductCreateMessage, "adProductCreateMessage") - */ - private $adProductCreateMessage; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdUnitCreateMessage, "adUnitCreateMessage") - */ - private $adUnitCreateMessage; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItem>, "audienceBidCreateMessageList") - */ - private $audienceBidCreateMessageList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageLocationBidCreateMessageListItem>, "locationBidCreateMessageList") - */ - private $locationBidCreateMessageList; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageSmartCreativeCreateMessage, "smartCreativeCreateMessage") - */ - private $smartCreativeCreateMessage; - - public function setAdCreativeCreateMessagesList($adCreativeCreateMessagesList) - { - $this->adCreativeCreateMessagesList = $adCreativeCreateMessagesList; - } - - public function setAdKeywordCreateMessageList($adKeywordCreateMessageList) - { - $this->adKeywordCreateMessageList = $adKeywordCreateMessageList; - } - - public function setAdKeywordSetMessage($adKeywordSetMessage) - { - $this->adKeywordSetMessage = $adKeywordSetMessage; - } - - public function setAdProductCreateMessage($adProductCreateMessage) - { - $this->adProductCreateMessage = $adProductCreateMessage; - } - - public function setAdUnitCreateMessage($adUnitCreateMessage) - { - $this->adUnitCreateMessage = $adUnitCreateMessage; - } - - public function setAudienceBidCreateMessageList($audienceBidCreateMessageList) - { - $this->audienceBidCreateMessageList = $audienceBidCreateMessageList; - } - - public function setLocationBidCreateMessageList($locationBidCreateMessageList) - { - $this->locationBidCreateMessageList = $locationBidCreateMessageList; - } - - public function setSmartCreativeCreateMessage($smartCreativeCreateMessage) - { - $this->smartCreativeCreateMessage = $smartCreativeCreateMessage; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItemAdImageVOListItem>, "adImageVOList") - */ - private $adImageVOList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItemAdTextVOListItem>, "adTextVOList") - */ - private $adTextVOList; - - /** - * @JsonProperty(Long, "creativeSpecificationId") - */ - private $creativeSpecificationId; - - public function setAdImageVOList($adImageVOList) - { - $this->adImageVOList = $adImageVOList; - } - - public function setAdTextVOList($adTextVOList) - { - $this->adTextVOList = $adTextVOList; - } - - public function setCreativeSpecificationId($creativeSpecificationId) - { - $this->creativeSpecificationId = $creativeSpecificationId; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItemAdImageVOListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "imageUrl") - */ - private $imageUrl; - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItemAdTextVOListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "text") - */ - private $text; - - public function setText($text) - { - $this->text = $text; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdKeywordCreateMessageListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "bid") - */ - private $bid; - - /** - * @JsonProperty(Long, "premiumRate") - */ - private $premiumRate; - - /** - * @JsonProperty(String, "word") - */ - private $word; - - public function setBid($bid) - { - $this->bid = $bid; - } - - public function setPremiumRate($premiumRate) - { - $this->premiumRate = $premiumRate; - } - - public function setWord($word) - { - $this->word = $word; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdKeywordSetMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "keywordSetBid") - */ - private $keywordSetBid; - - /** - * @JsonProperty(Integer, "performanceGoal") - */ - private $performanceGoal; - - public function setKeywordSetBid($keywordSetBid) - { - $this->keywordSetBid = $keywordSetBid; - } - - public function setPerformanceGoal($performanceGoal) - { - $this->performanceGoal = $performanceGoal; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdProductCreateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "goodsId") - */ - private $goodsId; - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdUnitCreateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "adName") - */ - private $adName; - - /** - * @JsonProperty(Long, "bid") - */ - private $bid; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdUnitCreateMessageOptimizationMessage, "optimizationMessage") - */ - private $optimizationMessage; - - public function setAdName($adName) - { - $this->adName = $adName; - } - - public function setBid($bid) - { - $this->bid = $bid; - } - - public function setOptimizationMessage($optimizationMessage) - { - $this->optimizationMessage = $optimizationMessage; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdUnitCreateMessageOptimizationMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "accumulationBid") - */ - private $accumulationBid; - - /** - * @JsonProperty(Long, "optimizationBid") - */ - private $optimizationBid; - - /** - * @JsonProperty(Integer, "optimizationGoal") - */ - private $optimizationGoal; - - /** - * @JsonProperty(Integer, "optimizationMethod") - */ - private $optimizationMethod; - - public function setAccumulationBid($accumulationBid) - { - $this->accumulationBid = $accumulationBid; - } - - public function setOptimizationBid($optimizationBid) - { - $this->optimizationBid = $optimizationBid; - } - - public function setOptimizationGoal($optimizationGoal) - { - $this->optimizationGoal = $optimizationGoal; - } - - public function setOptimizationMethod($optimizationMethod) - { - $this->optimizationMethod = $optimizationMethod; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessage, "adTargetingCreateMessage") - */ - private $adTargetingCreateMessage; - - /** - * @JsonProperty(Long, "bidReferenceId") - */ - private $bidReferenceId; - - /** - * @JsonProperty(Long, "bidValue") - */ - private $bidValue; - - /** - * @JsonProperty(Long, "subBidReferenceId") - */ - private $subBidReferenceId; - - public function setAdTargetingCreateMessage($adTargetingCreateMessage) - { - $this->adTargetingCreateMessage = $adTargetingCreateMessage; - } - - public function setBidReferenceId($bidReferenceId) - { - $this->bidReferenceId = $bidReferenceId; - } - - public function setBidValue($bidValue) - { - $this->bidValue = $bidValue; - } - - public function setSubBidReferenceId($subBidReferenceId) - { - $this->subBidReferenceId = $subBidReferenceId; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSet, "adTargetingSet") - */ - private $adTargetingSet; - - /** - * @JsonProperty(String, "targetingName") - */ - private $targetingName; - - public function setAdTargetingSet($adTargetingSet) - { - $this->adTargetingSet = $adTargetingSet; - } - - public function setTargetingName($targetingName) - { - $this->targetingName = $targetingName; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSet extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSetAreaStruct, "areaStruct") - */ - private $areaStruct; - - public function setAreaStruct($areaStruct) - { - $this->areaStruct = $areaStruct; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSetAreaStruct extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List, "areaIds") - */ - private $areaIds; - - public function setAreaIds($areaIds) - { - $this->areaIds = $areaIds; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageLocationBidCreateMessageListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "bidReferenceId") - */ - private $bidReferenceId; - - /** - * @JsonProperty(Long, "bidValue") - */ - private $bidValue; - - public function setBidReferenceId($bidReferenceId) - { - $this->bidReferenceId = $bidReferenceId; - } - - public function setBidValue($bidValue) - { - $this->bidValue = $bidValue; - } - -} - -class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageSmartCreativeCreateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "creativeFlowRate") - */ - private $creativeFlowRate; - - /** - * @JsonProperty(Integer, "enableSmartCreative") - */ - private $enableSmartCreative; - - /** - * @JsonProperty(String, "smartCreativeTitle") - */ - private $smartCreativeTitle; - - public function setCreativeFlowRate($creativeFlowRate) - { - $this->creativeFlowRate = $creativeFlowRate; - } - - public function setEnableSmartCreative($enableSmartCreative) - { - $this->enableSmartCreative = $enableSmartCreative; - } - - public function setSmartCreativeTitle($smartCreativeTitle) - { - $this->smartCreativeTitle = $smartCreativeTitle; - } - -} +setUserParam($params, "adUnitCreateComplexMessage", $this->adUnitCreateComplexMessage); + $this->setUserParam($params, "planId", $this->planId); + $this->setUserParam($params, "scenesType", $this->scenesType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.create"; + } + + public function setAdUnitCreateComplexMessage($adUnitCreateComplexMessage) + { + $this->adUnitCreateComplexMessage = $adUnitCreateComplexMessage; + } + + public function setPlanId($planId) + { + $this->planId = $planId; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItem>, "adCreativeCreateMessagesList") + */ + private $adCreativeCreateMessagesList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdKeywordCreateMessageListItem>, "adKeywordCreateMessageList") + */ + private $adKeywordCreateMessageList; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdKeywordSetMessage, "adKeywordSetMessage") + */ + private $adKeywordSetMessage; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdProductCreateMessage, "adProductCreateMessage") + */ + private $adProductCreateMessage; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdUnitCreateMessage, "adUnitCreateMessage") + */ + private $adUnitCreateMessage; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItem>, "audienceBidCreateMessageList") + */ + private $audienceBidCreateMessageList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageLocationBidCreateMessageListItem>, "locationBidCreateMessageList") + */ + private $locationBidCreateMessageList; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageSmartCreativeCreateMessage, "smartCreativeCreateMessage") + */ + private $smartCreativeCreateMessage; + + public function setAdCreativeCreateMessagesList($adCreativeCreateMessagesList) + { + $this->adCreativeCreateMessagesList = $adCreativeCreateMessagesList; + } + + public function setAdKeywordCreateMessageList($adKeywordCreateMessageList) + { + $this->adKeywordCreateMessageList = $adKeywordCreateMessageList; + } + + public function setAdKeywordSetMessage($adKeywordSetMessage) + { + $this->adKeywordSetMessage = $adKeywordSetMessage; + } + + public function setAdProductCreateMessage($adProductCreateMessage) + { + $this->adProductCreateMessage = $adProductCreateMessage; + } + + public function setAdUnitCreateMessage($adUnitCreateMessage) + { + $this->adUnitCreateMessage = $adUnitCreateMessage; + } + + public function setAudienceBidCreateMessageList($audienceBidCreateMessageList) + { + $this->audienceBidCreateMessageList = $audienceBidCreateMessageList; + } + + public function setLocationBidCreateMessageList($locationBidCreateMessageList) + { + $this->locationBidCreateMessageList = $locationBidCreateMessageList; + } + + public function setSmartCreativeCreateMessage($smartCreativeCreateMessage) + { + $this->smartCreativeCreateMessage = $smartCreativeCreateMessage; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItemAdImageVOListItem>, "adImageVOList") + */ + private $adImageVOList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItemAdTextVOListItem>, "adTextVOList") + */ + private $adTextVOList; + + /** + * @JsonProperty(Long, "creativeSpecificationId") + */ + private $creativeSpecificationId; + + public function setAdImageVOList($adImageVOList) + { + $this->adImageVOList = $adImageVOList; + } + + public function setAdTextVOList($adTextVOList) + { + $this->adTextVOList = $adTextVOList; + } + + public function setCreativeSpecificationId($creativeSpecificationId) + { + $this->creativeSpecificationId = $creativeSpecificationId; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItemAdImageVOListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "imageUrl") + */ + private $imageUrl; + + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdCreativeCreateMessagesListItemAdTextVOListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "text") + */ + private $text; + + public function setText($text) + { + $this->text = $text; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdKeywordCreateMessageListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "bid") + */ + private $bid; + + /** + * @JsonProperty(Long, "premiumRate") + */ + private $premiumRate; + + /** + * @JsonProperty(String, "word") + */ + private $word; + + public function setBid($bid) + { + $this->bid = $bid; + } + + public function setPremiumRate($premiumRate) + { + $this->premiumRate = $premiumRate; + } + + public function setWord($word) + { + $this->word = $word; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdKeywordSetMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "keywordSetBid") + */ + private $keywordSetBid; + + /** + * @JsonProperty(Integer, "performanceGoal") + */ + private $performanceGoal; + + public function setKeywordSetBid($keywordSetBid) + { + $this->keywordSetBid = $keywordSetBid; + } + + public function setPerformanceGoal($performanceGoal) + { + $this->performanceGoal = $performanceGoal; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdProductCreateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "goodsId") + */ + private $goodsId; + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdUnitCreateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "adName") + */ + private $adName; + + /** + * @JsonProperty(Long, "bid") + */ + private $bid; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdUnitCreateMessageOptimizationMessage, "optimizationMessage") + */ + private $optimizationMessage; + + public function setAdName($adName) + { + $this->adName = $adName; + } + + public function setBid($bid) + { + $this->bid = $bid; + } + + public function setOptimizationMessage($optimizationMessage) + { + $this->optimizationMessage = $optimizationMessage; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAdUnitCreateMessageOptimizationMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "accumulationBid") + */ + private $accumulationBid; + + /** + * @JsonProperty(Long, "optimizationBid") + */ + private $optimizationBid; + + /** + * @JsonProperty(Integer, "optimizationGoal") + */ + private $optimizationGoal; + + /** + * @JsonProperty(Integer, "optimizationMethod") + */ + private $optimizationMethod; + + public function setAccumulationBid($accumulationBid) + { + $this->accumulationBid = $accumulationBid; + } + + public function setOptimizationBid($optimizationBid) + { + $this->optimizationBid = $optimizationBid; + } + + public function setOptimizationGoal($optimizationGoal) + { + $this->optimizationGoal = $optimizationGoal; + } + + public function setOptimizationMethod($optimizationMethod) + { + $this->optimizationMethod = $optimizationMethod; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessage, "adTargetingCreateMessage") + */ + private $adTargetingCreateMessage; + + /** + * @JsonProperty(Long, "bidReferenceId") + */ + private $bidReferenceId; + + /** + * @JsonProperty(Long, "bidValue") + */ + private $bidValue; + + /** + * @JsonProperty(Long, "subBidReferenceId") + */ + private $subBidReferenceId; + + public function setAdTargetingCreateMessage($adTargetingCreateMessage) + { + $this->adTargetingCreateMessage = $adTargetingCreateMessage; + } + + public function setBidReferenceId($bidReferenceId) + { + $this->bidReferenceId = $bidReferenceId; + } + + public function setBidValue($bidValue) + { + $this->bidValue = $bidValue; + } + + public function setSubBidReferenceId($subBidReferenceId) + { + $this->subBidReferenceId = $subBidReferenceId; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSet, "adTargetingSet") + */ + private $adTargetingSet; + + /** + * @JsonProperty(String, "targetingName") + */ + private $targetingName; + + public function setAdTargetingSet($adTargetingSet) + { + $this->adTargetingSet = $adTargetingSet; + } + + public function setTargetingName($targetingName) + { + $this->targetingName = $targetingName; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSet extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSetAreaStruct, "areaStruct") + */ + private $areaStruct; + + public function setAreaStruct($areaStruct) + { + $this->areaStruct = $areaStruct; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageAudienceBidCreateMessageListItemAdTargetingCreateMessageAdTargetingSetAreaStruct extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List, "areaIds") + */ + private $areaIds; + + public function setAreaIds($areaIds) + { + $this->areaIds = $areaIds; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageLocationBidCreateMessageListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "bidReferenceId") + */ + private $bidReferenceId; + + /** + * @JsonProperty(Long, "bidValue") + */ + private $bidValue; + + public function setBidReferenceId($bidReferenceId) + { + $this->bidReferenceId = $bidReferenceId; + } + + public function setBidValue($bidValue) + { + $this->bidValue = $bidValue; + } + +} + +class PddAdApiUnitCreateRequest_AdUnitCreateComplexMessageSmartCreativeCreateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "creativeFlowRate") + */ + private $creativeFlowRate; + + /** + * @JsonProperty(Integer, "enableSmartCreative") + */ + private $enableSmartCreative; + + /** + * @JsonProperty(String, "smartCreativeTitle") + */ + private $smartCreativeTitle; + + public function setCreativeFlowRate($creativeFlowRate) + { + $this->creativeFlowRate = $creativeFlowRate; + } + + public function setEnableSmartCreative($enableSmartCreative) + { + $this->enableSmartCreative = $enableSmartCreative; + } + + public function setSmartCreativeTitle($smartCreativeTitle) + { + $this->smartCreativeTitle = $smartCreativeTitle; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeCheckTitleRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeCheckTitleRequest.php index 92bf881..75b2f9a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeCheckTitleRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeCheckTitleRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "goodsId", $this->goodsId); - $this->setUserParam($params, "title", $this->title); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.creative.check.title"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setTitle($title) - { - $this->title = $title; - } - -} +setUserParam($params, "goodsId", $this->goodsId); + $this->setUserParam($params, "title", $this->title); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.creative.check.title"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setTitle($title) + { + $this->title = $title; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeCreateRequest.php index 247de61..35d5811 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeCreateRequest.php @@ -1,135 +1,135 @@ -setUserParam($params, "adCreativeCreateMessage", $this->adCreativeCreateMessage); - $this->setUserParam($params, "adId", $this->adId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.creative.create"; - } - - public function setAdCreativeCreateMessage($adCreativeCreateMessage) - { - $this->adCreativeCreateMessage = $adCreativeCreateMessage; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - -} - -class PddAdApiUnitCreativeCreateRequest_AdCreativeCreateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreativeCreateRequest_AdCreativeCreateMessageAdImageVOListItem>, "adImageVOList") - */ - private $adImageVOList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreativeCreateRequest_AdCreativeCreateMessageAdTextVOListItem>, "adTextVOList") - */ - private $adTextVOList; - - /** - * @JsonProperty(Long, "creativeSpecificationId") - */ - private $creativeSpecificationId; - - public function setAdImageVOList($adImageVOList) - { - $this->adImageVOList = $adImageVOList; - } - - public function setAdTextVOList($adTextVOList) - { - $this->adTextVOList = $adTextVOList; - } - - public function setCreativeSpecificationId($creativeSpecificationId) - { - $this->creativeSpecificationId = $creativeSpecificationId; - } - -} - -class PddAdApiUnitCreativeCreateRequest_AdCreativeCreateMessageAdImageVOListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "imageUrl") - */ - private $imageUrl; - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - -} - -class PddAdApiUnitCreativeCreateRequest_AdCreativeCreateMessageAdTextVOListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "text") - */ - private $text; - - public function setText($text) - { - $this->text = $text; - } - -} +setUserParam($params, "adCreativeCreateMessage", $this->adCreativeCreateMessage); + $this->setUserParam($params, "adId", $this->adId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.creative.create"; + } + + public function setAdCreativeCreateMessage($adCreativeCreateMessage) + { + $this->adCreativeCreateMessage = $adCreativeCreateMessage; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + +} + +class PddAdApiUnitCreativeCreateRequest_AdCreativeCreateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreativeCreateRequest_AdCreativeCreateMessageAdImageVOListItem>, "adImageVOList") + */ + private $adImageVOList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreativeCreateRequest_AdCreativeCreateMessageAdTextVOListItem>, "adTextVOList") + */ + private $adTextVOList; + + /** + * @JsonProperty(Long, "creativeSpecificationId") + */ + private $creativeSpecificationId; + + public function setAdImageVOList($adImageVOList) + { + $this->adImageVOList = $adImageVOList; + } + + public function setAdTextVOList($adTextVOList) + { + $this->adTextVOList = $adTextVOList; + } + + public function setCreativeSpecificationId($creativeSpecificationId) + { + $this->creativeSpecificationId = $creativeSpecificationId; + } + +} + +class PddAdApiUnitCreativeCreateRequest_AdCreativeCreateMessageAdImageVOListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "imageUrl") + */ + private $imageUrl; + + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + +} + +class PddAdApiUnitCreativeCreateRequest_AdCreativeCreateMessageAdTextVOListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "text") + */ + private $text; + + public function setText($text) + { + $this->text = $text; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeDeleteRequest.php index de89260..212e19a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeDeleteRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "unitCreativeId", $this->unitCreativeId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.creative.delete"; - } - - public function setUnitCreativeId($unitCreativeId) - { - $this->unitCreativeId = $unitCreativeId; - } - -} +setUserParam($params, "unitCreativeId", $this->unitCreativeId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.creative.delete"; + } + + public function setUnitCreativeId($unitCreativeId) + { + $this->unitCreativeId = $unitCreativeId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeDistributeFlowRateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeDistributeFlowRateRequest.php index c78e147..2198679 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeDistributeFlowRateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeDistributeFlowRateRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "creativeFlowRate", $this->creativeFlowRate); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.creative.distribute.flow.rate"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setCreativeFlowRate($creativeFlowRate) - { - $this->creativeFlowRate = $creativeFlowRate; - } - -} +setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "creativeFlowRate", $this->creativeFlowRate); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.creative.distribute.flow.rate"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setCreativeFlowRate($creativeFlowRate) + { + $this->creativeFlowRate = $creativeFlowRate; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeQueryFlowRateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeQueryFlowRateRequest.php index ad0692d..48dc28f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeQueryFlowRateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeQueryFlowRateRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "adId", $this->adId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.creative.query.flow.rate"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - -} +setUserParam($params, "adId", $this->adId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.creative.query.flow.rate"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeQueryListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeQueryListRequest.php index 15c0c8f..b1d541d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeQueryListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeQueryListRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "beginDate", $this->beginDate); - $this->setUserParam($params, "endDate", $this->endDate); - $this->setUserParam($params, "orderBy", $this->orderBy); - $this->setUserParam($params, "sortBy", $this->sortBy); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.creative.query.list"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setBeginDate($beginDate) - { - $this->beginDate = $beginDate; - } - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - - public function setOrderBy($orderBy) - { - $this->orderBy = $orderBy; - } - - public function setSortBy($sortBy) - { - $this->sortBy = $sortBy; - } - -} +setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "beginDate", $this->beginDate); + $this->setUserParam($params, "endDate", $this->endDate); + $this->setUserParam($params, "orderBy", $this->orderBy); + $this->setUserParam($params, "sortBy", $this->sortBy); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.creative.query.list"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setBeginDate($beginDate) + { + $this->beginDate = $beginDate; + } + + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + + public function setOrderBy($orderBy) + { + $this->orderBy = $orderBy; + } + + public function setSortBy($sortBy) + { + $this->sortBy = $sortBy; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateContentRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateContentRequest.php index e55adf6..0025cee 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateContentRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateContentRequest.php @@ -1,135 +1,135 @@ -setUserParam($params, "adCreativeUpdateMessage", $this->adCreativeUpdateMessage); - $this->setUserParam($params, "unitCreativeId", $this->unitCreativeId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.creative.update.content"; - } - - public function setAdCreativeUpdateMessage($adCreativeUpdateMessage) - { - $this->adCreativeUpdateMessage = $adCreativeUpdateMessage; - } - - public function setUnitCreativeId($unitCreativeId) - { - $this->unitCreativeId = $unitCreativeId; - } - -} - -class PddAdApiUnitCreativeUpdateContentRequest_AdCreativeUpdateMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreativeUpdateContentRequest_AdCreativeUpdateMessageAdImageVOListItem>, "adImageVOList") - */ - private $adImageVOList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreativeUpdateContentRequest_AdCreativeUpdateMessageAdTextVOListItem>, "adTextVOList") - */ - private $adTextVOList; - - /** - * @JsonProperty(Long, "creativeSpecificationId") - */ - private $creativeSpecificationId; - - public function setAdImageVOList($adImageVOList) - { - $this->adImageVOList = $adImageVOList; - } - - public function setAdTextVOList($adTextVOList) - { - $this->adTextVOList = $adTextVOList; - } - - public function setCreativeSpecificationId($creativeSpecificationId) - { - $this->creativeSpecificationId = $creativeSpecificationId; - } - -} - -class PddAdApiUnitCreativeUpdateContentRequest_AdCreativeUpdateMessageAdImageVOListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "imageUrl") - */ - private $imageUrl; - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - -} - -class PddAdApiUnitCreativeUpdateContentRequest_AdCreativeUpdateMessageAdTextVOListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "text") - */ - private $text; - - public function setText($text) - { - $this->text = $text; - } - -} +setUserParam($params, "adCreativeUpdateMessage", $this->adCreativeUpdateMessage); + $this->setUserParam($params, "unitCreativeId", $this->unitCreativeId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.creative.update.content"; + } + + public function setAdCreativeUpdateMessage($adCreativeUpdateMessage) + { + $this->adCreativeUpdateMessage = $adCreativeUpdateMessage; + } + + public function setUnitCreativeId($unitCreativeId) + { + $this->unitCreativeId = $unitCreativeId; + } + +} + +class PddAdApiUnitCreativeUpdateContentRequest_AdCreativeUpdateMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreativeUpdateContentRequest_AdCreativeUpdateMessageAdImageVOListItem>, "adImageVOList") + */ + private $adImageVOList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddAdApiUnitCreativeUpdateContentRequest_AdCreativeUpdateMessageAdTextVOListItem>, "adTextVOList") + */ + private $adTextVOList; + + /** + * @JsonProperty(Long, "creativeSpecificationId") + */ + private $creativeSpecificationId; + + public function setAdImageVOList($adImageVOList) + { + $this->adImageVOList = $adImageVOList; + } + + public function setAdTextVOList($adTextVOList) + { + $this->adTextVOList = $adTextVOList; + } + + public function setCreativeSpecificationId($creativeSpecificationId) + { + $this->creativeSpecificationId = $creativeSpecificationId; + } + +} + +class PddAdApiUnitCreativeUpdateContentRequest_AdCreativeUpdateMessageAdImageVOListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "imageUrl") + */ + private $imageUrl; + + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + +} + +class PddAdApiUnitCreativeUpdateContentRequest_AdCreativeUpdateMessageAdTextVOListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "text") + */ + private $text; + + public function setText($text) + { + $this->text = $text; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateDataOperateStatusRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateDataOperateStatusRequest.php index 5609e4e..05510d4 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateDataOperateStatusRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateDataOperateStatusRequest.php @@ -1,55 +1,55 @@ -, "unitCreativeIds") - */ - private $unitCreativeIds; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "dataOperateStatus", $this->dataOperateStatus); - $this->setUserParam($params, "unitCreativeIds", $this->unitCreativeIds); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.creative.update.data.operate.status"; - } - - public function setDataOperateStatus($dataOperateStatus) - { - $this->dataOperateStatus = $dataOperateStatus; - } - - public function setUnitCreativeIds($unitCreativeIds) - { - $this->unitCreativeIds = $unitCreativeIds; - } - -} +, "unitCreativeIds") + */ + private $unitCreativeIds; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "dataOperateStatus", $this->dataOperateStatus); + $this->setUserParam($params, "unitCreativeIds", $this->unitCreativeIds); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.creative.update.data.operate.status"; + } + + public function setDataOperateStatus($dataOperateStatus) + { + $this->dataOperateStatus = $dataOperateStatus; + } + + public function setUnitCreativeIds($unitCreativeIds) + { + $this->unitCreativeIds = $unitCreativeIds; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateSmartCreativeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateSmartCreativeRequest.php index 70ccb56..644ae97 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateSmartCreativeRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitCreativeUpdateSmartCreativeRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "text", $this->text); - $this->setUserParam($params, "unitCreativeId", $this->unitCreativeId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.creative.update.smart.creative"; - } - - public function setText($text) - { - $this->text = $text; - } - - public function setUnitCreativeId($unitCreativeId) - { - $this->unitCreativeId = $unitCreativeId; - } - -} +setUserParam($params, "text", $this->text); + $this->setUserParam($params, "unitCreativeId", $this->unitCreativeId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.creative.update.smart.creative"; + } + + public function setText($text) + { + $this->text = $text; + } + + public function setUnitCreativeId($unitCreativeId) + { + $this->unitCreativeId = $unitCreativeId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitDeleteRequest.php index 3b375bc..5fb4581 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitDeleteRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "scenesType", $this->scenesType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.delete"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - -} +setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "scenesType", $this->scenesType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.delete"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitQueryListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitQueryListRequest.php index 72730dd..495a819 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitQueryListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitQueryListRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "beginDate", $this->beginDate); - $this->setUserParam($params, "endDate", $this->endDate); - $this->setUserParam($params, "orderBy", $this->orderBy); - $this->setUserParam($params, "planId", $this->planId); - $this->setUserParam($params, "scenesType", $this->scenesType); - $this->setUserParam($params, "sortBy", $this->sortBy); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.query.list"; - } - - public function setBeginDate($beginDate) - { - $this->beginDate = $beginDate; - } - - public function setEndDate($endDate) - { - $this->endDate = $endDate; - } - - public function setOrderBy($orderBy) - { - $this->orderBy = $orderBy; - } - - public function setPlanId($planId) - { - $this->planId = $planId; - } - - public function setScenesType($scenesType) - { - $this->scenesType = $scenesType; - } - - public function setSortBy($sortBy) - { - $this->sortBy = $sortBy; - } - -} +setUserParam($params, "beginDate", $this->beginDate); + $this->setUserParam($params, "endDate", $this->endDate); + $this->setUserParam($params, "orderBy", $this->orderBy); + $this->setUserParam($params, "planId", $this->planId); + $this->setUserParam($params, "scenesType", $this->scenesType); + $this->setUserParam($params, "sortBy", $this->sortBy); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.query.list"; + } + + public function setBeginDate($beginDate) + { + $this->beginDate = $beginDate; + } + + public function setEndDate($endDate) + { + $this->endDate = $endDate; + } + + public function setOrderBy($orderBy) + { + $this->orderBy = $orderBy; + } + + public function setPlanId($planId) + { + $this->planId = $planId; + } + + public function setScenesType($scenesType) + { + $this->scenesType = $scenesType; + } + + public function setSortBy($sortBy) + { + $this->sortBy = $sortBy; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateDataOperateStatusRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateDataOperateStatusRequest.php index cfa6e1c..9c8fe21 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateDataOperateStatusRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateDataOperateStatusRequest.php @@ -1,55 +1,55 @@ -, "adIds") - */ - private $adIds; - - /** - * @JsonProperty(Integer, "dataOperateStatus") - */ - private $dataOperateStatus; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "adIds", $this->adIds); - $this->setUserParam($params, "dataOperateStatus", $this->dataOperateStatus); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.update.data.operate.status"; - } - - public function setAdIds($adIds) - { - $this->adIds = $adIds; - } - - public function setDataOperateStatus($dataOperateStatus) - { - $this->dataOperateStatus = $dataOperateStatus; - } - -} +, "adIds") + */ + private $adIds; + + /** + * @JsonProperty(Integer, "dataOperateStatus") + */ + private $dataOperateStatus; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "adIds", $this->adIds); + $this->setUserParam($params, "dataOperateStatus", $this->dataOperateStatus); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.update.data.operate.status"; + } + + public function setAdIds($adIds) + { + $this->adIds = $adIds; + } + + public function setDataOperateStatus($dataOperateStatus) + { + $this->dataOperateStatus = $dataOperateStatus; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateOptimizationMessageRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateOptimizationMessageRequest.php index 568ea18..393d49d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateOptimizationMessageRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateOptimizationMessageRequest.php @@ -1,105 +1,105 @@ -setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "optimizationMessage", $this->optimizationMessage); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.update.optimization.message"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setOptimizationMessage($optimizationMessage) - { - $this->optimizationMessage = $optimizationMessage; - } - -} - -class PddAdApiUnitUpdateOptimizationMessageRequest_OptimizationMessage extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "accumulationBid") - */ - private $accumulationBid; - - /** - * @JsonProperty(Long, "optimizationBid") - */ - private $optimizationBid; - - /** - * @JsonProperty(Integer, "optimizationGoal") - */ - private $optimizationGoal; - - /** - * @JsonProperty(Integer, "optimizationMethod") - */ - private $optimizationMethod; - - public function setAccumulationBid($accumulationBid) - { - $this->accumulationBid = $accumulationBid; - } - - public function setOptimizationBid($optimizationBid) - { - $this->optimizationBid = $optimizationBid; - } - - public function setOptimizationGoal($optimizationGoal) - { - $this->optimizationGoal = $optimizationGoal; - } - - public function setOptimizationMethod($optimizationMethod) - { - $this->optimizationMethod = $optimizationMethod; - } - -} +setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "optimizationMessage", $this->optimizationMessage); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.update.optimization.message"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setOptimizationMessage($optimizationMessage) + { + $this->optimizationMessage = $optimizationMessage; + } + +} + +class PddAdApiUnitUpdateOptimizationMessageRequest_OptimizationMessage extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "accumulationBid") + */ + private $accumulationBid; + + /** + * @JsonProperty(Long, "optimizationBid") + */ + private $optimizationBid; + + /** + * @JsonProperty(Integer, "optimizationGoal") + */ + private $optimizationGoal; + + /** + * @JsonProperty(Integer, "optimizationMethod") + */ + private $optimizationMethod; + + public function setAccumulationBid($accumulationBid) + { + $this->accumulationBid = $accumulationBid; + } + + public function setOptimizationBid($optimizationBid) + { + $this->optimizationBid = $optimizationBid; + } + + public function setOptimizationGoal($optimizationGoal) + { + $this->optimizationGoal = $optimizationGoal; + } + + public function setOptimizationMethod($optimizationMethod) + { + $this->optimizationMethod = $optimizationMethod; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateUnitBidRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateUnitBidRequest.php index 6a8e537..bb2a62c 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateUnitBidRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateUnitBidRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "bid", $this->bid); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.update.unit.bid"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setBid($bid) - { - $this->bid = $bid; - } - -} +setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "bid", $this->bid); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.update.unit.bid"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setBid($bid) + { + $this->bid = $bid; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateUnitNameRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateUnitNameRequest.php index 3844196..634a718 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateUnitNameRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddAdApiUnitUpdateUnitNameRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "adId", $this->adId); - $this->setUserParam($params, "adName", $this->adName); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ad.api.unit.update.unit.name"; - } - - public function setAdId($adId) - { - $this->adId = $adId; - } - - public function setAdName($adName) - { - $this->adName = $adName; - } - -} +setUserParam($params, "adId", $this->adId); + $this->setUserParam($params, "adName", $this->adName); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ad.api.unit.update.unit.name"; + } + + public function setAdId($adId) + { + $this->adId = $adId; + } + + public function setAdName($adName) + { + $this->adName = $adName; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudDtsOrderListIncrementGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudDtsOrderListIncrementGetRequest.php index 813243f..a829719 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudDtsOrderListIncrementGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudDtsOrderListIncrementGetRequest.php @@ -1,187 +1,187 @@ -, "order_sn_list") - */ - private $orderSnList; - - /** - * @JsonProperty(String, "extendProps") - */ - private $extendProps; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "is_lucky_flag", $this->isLuckyFlag); - $this->setUserParam($params, "order_status", $this->orderStatus); - $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt); - $this->setUserParam($params, "end_updated_at", $this->endUpdatedAt); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "refund_status", $this->refundStatus); - $this->setUserParam($params, "trade_type", $this->tradeType); - $this->setUserParam($params, "use_has_next", $this->useHasNext); - $this->setUserParam($params, "mall_id", $this->mallId); - $this->setUserParam($params, "ext_id", $this->extId); - $this->setUserParam($params, "token", $this->token); - $this->setUserParam($params, "order_sn_list", $this->orderSnList); - $this->setUserParam($params, "extendProps", $this->extendProps); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloud.dts.order.list.increment.get"; - } - - public function setIsLuckyFlag($isLuckyFlag) - { - $this->isLuckyFlag = $isLuckyFlag; - } - - public function setOrderStatus($orderStatus) - { - $this->orderStatus = $orderStatus; - } - - public function setStartUpdatedAt($startUpdatedAt) - { - $this->startUpdatedAt = $startUpdatedAt; - } - - public function setEndUpdatedAt($endUpdatedAt) - { - $this->endUpdatedAt = $endUpdatedAt; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setRefundStatus($refundStatus) - { - $this->refundStatus = $refundStatus; - } - - public function setTradeType($tradeType) - { - $this->tradeType = $tradeType; - } - - public function setUseHasNext($useHasNext) - { - $this->useHasNext = $useHasNext; - } - - public function setMallId($mallId) - { - $this->mallId = $mallId; - } - - public function setExtId($extId) - { - $this->extId = $extId; - } - - public function setToken($token) - { - $this->token = $token; - } - - public function setOrderSnList($orderSnList) - { - $this->orderSnList = $orderSnList; - } - - public function setExtendProps($extendProps) - { - $this->extendProps = $extendProps; - } - -} +, "order_sn_list") + */ + private $orderSnList; + + /** + * @JsonProperty(String, "extendProps") + */ + private $extendProps; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "is_lucky_flag", $this->isLuckyFlag); + $this->setUserParam($params, "order_status", $this->orderStatus); + $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt); + $this->setUserParam($params, "end_updated_at", $this->endUpdatedAt); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "refund_status", $this->refundStatus); + $this->setUserParam($params, "trade_type", $this->tradeType); + $this->setUserParam($params, "use_has_next", $this->useHasNext); + $this->setUserParam($params, "mall_id", $this->mallId); + $this->setUserParam($params, "ext_id", $this->extId); + $this->setUserParam($params, "token", $this->token); + $this->setUserParam($params, "order_sn_list", $this->orderSnList); + $this->setUserParam($params, "extendProps", $this->extendProps); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloud.dts.order.list.increment.get"; + } + + public function setIsLuckyFlag($isLuckyFlag) + { + $this->isLuckyFlag = $isLuckyFlag; + } + + public function setOrderStatus($orderStatus) + { + $this->orderStatus = $orderStatus; + } + + public function setStartUpdatedAt($startUpdatedAt) + { + $this->startUpdatedAt = $startUpdatedAt; + } + + public function setEndUpdatedAt($endUpdatedAt) + { + $this->endUpdatedAt = $endUpdatedAt; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setRefundStatus($refundStatus) + { + $this->refundStatus = $refundStatus; + } + + public function setTradeType($tradeType) + { + $this->tradeType = $tradeType; + } + + public function setUseHasNext($useHasNext) + { + $this->useHasNext = $useHasNext; + } + + public function setMallId($mallId) + { + $this->mallId = $mallId; + } + + public function setExtId($extId) + { + $this->extId = $extId; + } + + public function setToken($token) + { + $this->token = $token; + } + + public function setOrderSnList($orderSnList) + { + $this->orderSnList = $orderSnList; + } + + public function setExtendProps($extendProps) + { + $this->extendProps = $extendProps; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudIsvPageCodeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudIsvPageCodeRequest.php index 99e38fe..195125b 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudIsvPageCodeRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudIsvPageCodeRequest.php @@ -1,66 +1,66 @@ -, "mallIdList") - */ - private $mallIdList; - - /** - * @JsonProperty(String, "httpReferer") - */ - private $httpReferer; - - /** - * @JsonProperty(String, "userId") - */ - private $userId; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "mallIdList", $this->mallIdList); - $this->setUserParam($params, "httpReferer", $this->httpReferer); - $this->setUserParam($params, "userId", $this->userId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloud.isv.page.code"; - } - - public function setMallIdList($mallIdList) - { - $this->mallIdList = $mallIdList; - } - - public function setHttpReferer($httpReferer) - { - $this->httpReferer = $httpReferer; - } - - public function setUserId($userId) - { - $this->userId = $userId; - } - -} +, "mallIdList") + */ + private $mallIdList; + + /** + * @JsonProperty(String, "httpReferer") + */ + private $httpReferer; + + /** + * @JsonProperty(String, "userId") + */ + private $userId; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "mallIdList", $this->mallIdList); + $this->setUserParam($params, "httpReferer", $this->httpReferer); + $this->setUserParam($params, "userId", $this->userId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloud.isv.page.code"; + } + + public function setMallIdList($mallIdList) + { + $this->mallIdList = $mallIdList; + } + + public function setHttpReferer($httpReferer) + { + $this->httpReferer = $httpReferer; + } + + public function setUserId($userId) + { + $this->userId = $userId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudLogisticsOnlineSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudLogisticsOnlineSendRequest.php index 8290770..5d33332 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudLogisticsOnlineSendRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudLogisticsOnlineSendRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "feature", $this->feature); - $this->setUserParam($params, "logistics_id", $this->logisticsId); - $this->setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "refund_address_id", $this->refundAddressId); - $this->setUserParam($params, "tracking_number", $this->trackingNumber); - $this->setUserParam($params, "ext_token", $this->extToken); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloud.logistics.online.send"; - } - - public function setFeature($feature) - { - $this->feature = $feature; - } - - public function setLogisticsId($logisticsId) - { - $this->logisticsId = $logisticsId; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setRefundAddressId($refundAddressId) - { - $this->refundAddressId = $refundAddressId; - } - - public function setTrackingNumber($trackingNumber) - { - $this->trackingNumber = $trackingNumber; - } - - public function setExtToken($extToken) - { - $this->extToken = $extToken; - } - -} +setUserParam($params, "feature", $this->feature); + $this->setUserParam($params, "logistics_id", $this->logisticsId); + $this->setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "refund_address_id", $this->refundAddressId); + $this->setUserParam($params, "tracking_number", $this->trackingNumber); + $this->setUserParam($params, "ext_token", $this->extToken); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloud.logistics.online.send"; + } + + public function setFeature($feature) + { + $this->feature = $feature; + } + + public function setLogisticsId($logisticsId) + { + $this->logisticsId = $logisticsId; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setRefundAddressId($refundAddressId) + { + $this->refundAddressId = $refundAddressId; + } + + public function setTrackingNumber($trackingNumber) + { + $this->trackingNumber = $trackingNumber; + } + + public function setExtToken($extToken) + { + $this->extToken = $extToken; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudSecurityEventTrackingBatchOrderRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudSecurityEventTrackingBatchOrderRequest.php index ef0d460..f45ace7 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudSecurityEventTrackingBatchOrderRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudSecurityEventTrackingBatchOrderRequest.php @@ -1,155 +1,155 @@ -, "orderEvents") - */ - private $orderEvents; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "eventType", $this->eventType); - $this->setUserParam($params, "orderEvents", $this->orderEvents); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloud.security.event.tracking.batch.order"; - } - - public function setEventType($eventType) - { - $this->eventType = $eventType; - } - - public function setOrderEvents($orderEvents) - { - $this->orderEvents = $orderEvents; - } - -} - -class PddCloudSecurityEventTrackingBatchOrderRequest_OrderEventsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List, "mallIdList") - */ - private $mallIdList; - - /** - * @JsonProperty(String, "operation") - */ - private $operation; - - /** - * @JsonProperty(List, "orderList") - */ - private $orderList; - - /** - * @JsonProperty(String, "pati") - */ - private $pati; - - /** - * @JsonProperty(String, "sendTo") - */ - private $sendTo; - - /** - * @JsonProperty(Long, "timestamp") - */ - private $timestamp; - - /** - * @JsonProperty(String, "url") - */ - private $url; - - /** - * @JsonProperty(String, "userId") - */ - private $userId; - - /** - * @JsonProperty(String, "userIp") - */ - private $userIp; - - public function setMallIdList($mallIdList) - { - $this->mallIdList = $mallIdList; - } - - public function setOperation($operation) - { - $this->operation = $operation; - } - - public function setOrderList($orderList) - { - $this->orderList = $orderList; - } - - public function setPati($pati) - { - $this->pati = $pati; - } - - public function setSendTo($sendTo) - { - $this->sendTo = $sendTo; - } - - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function setUserId($userId) - { - $this->userId = $userId; - } - - public function setUserIp($userIp) - { - $this->userIp = $userIp; - } - -} +, "orderEvents") + */ + private $orderEvents; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "eventType", $this->eventType); + $this->setUserParam($params, "orderEvents", $this->orderEvents); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloud.security.event.tracking.batch.order"; + } + + public function setEventType($eventType) + { + $this->eventType = $eventType; + } + + public function setOrderEvents($orderEvents) + { + $this->orderEvents = $orderEvents; + } + +} + +class PddCloudSecurityEventTrackingBatchOrderRequest_OrderEventsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List, "mallIdList") + */ + private $mallIdList; + + /** + * @JsonProperty(String, "operation") + */ + private $operation; + + /** + * @JsonProperty(List, "orderList") + */ + private $orderList; + + /** + * @JsonProperty(String, "pati") + */ + private $pati; + + /** + * @JsonProperty(String, "sendTo") + */ + private $sendTo; + + /** + * @JsonProperty(Long, "timestamp") + */ + private $timestamp; + + /** + * @JsonProperty(String, "url") + */ + private $url; + + /** + * @JsonProperty(String, "userId") + */ + private $userId; + + /** + * @JsonProperty(String, "userIp") + */ + private $userIp; + + public function setMallIdList($mallIdList) + { + $this->mallIdList = $mallIdList; + } + + public function setOperation($operation) + { + $this->operation = $operation; + } + + public function setOrderList($orderList) + { + $this->orderList = $orderList; + } + + public function setPati($pati) + { + $this->pati = $pati; + } + + public function setSendTo($sendTo) + { + $this->sendTo = $sendTo; + } + + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + + public function setUrl($url) + { + $this->url = $url; + } + + public function setUserId($userId) + { + $this->userId = $userId; + } + + public function setUserIp($userIp) + { + $this->userIp = $userIp; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudSecurityEventTrackingLoginRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudSecurityEventTrackingLoginRequest.php index ef2e09e..9a50734 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudSecurityEventTrackingLoginRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudSecurityEventTrackingLoginRequest.php @@ -1,110 +1,110 @@ -, "mallIdList") - */ - private $mallIdList; - - /** - * @JsonProperty(String, "pati") - */ - private $pati; - - /** - * @JsonProperty(Long, "timestamp") - */ - private $timestamp; - - /** - * @JsonProperty(String, "userId") - */ - private $userId; - - /** - * @JsonProperty(String, "userIp") - */ - private $userIp; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "loginMessage", $this->loginMessage); - $this->setUserParam($params, "loginResult", $this->loginResult); - $this->setUserParam($params, "mallIdList", $this->mallIdList); - $this->setUserParam($params, "pati", $this->pati); - $this->setUserParam($params, "timestamp", $this->timestamp); - $this->setUserParam($params, "userId", $this->userId); - $this->setUserParam($params, "userIp", $this->userIp); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloud.security.event.tracking.login"; - } - - public function setLoginMessage($loginMessage) - { - $this->loginMessage = $loginMessage; - } - - public function setLoginResult($loginResult) - { - $this->loginResult = $loginResult; - } - - public function setMallIdList($mallIdList) - { - $this->mallIdList = $mallIdList; - } - - public function setPati($pati) - { - $this->pati = $pati; - } - - public function setTimestamp($timestamp) - { - $this->timestamp = $timestamp; - } - - public function setUserId($userId) - { - $this->userId = $userId; - } - - public function setUserIp($userIp) - { - $this->userIp = $userIp; - } - -} +, "mallIdList") + */ + private $mallIdList; + + /** + * @JsonProperty(String, "pati") + */ + private $pati; + + /** + * @JsonProperty(Long, "timestamp") + */ + private $timestamp; + + /** + * @JsonProperty(String, "userId") + */ + private $userId; + + /** + * @JsonProperty(String, "userIp") + */ + private $userIp; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "loginMessage", $this->loginMessage); + $this->setUserParam($params, "loginResult", $this->loginResult); + $this->setUserParam($params, "mallIdList", $this->mallIdList); + $this->setUserParam($params, "pati", $this->pati); + $this->setUserParam($params, "timestamp", $this->timestamp); + $this->setUserParam($params, "userId", $this->userId); + $this->setUserParam($params, "userIp", $this->userIp); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloud.security.event.tracking.login"; + } + + public function setLoginMessage($loginMessage) + { + $this->loginMessage = $loginMessage; + } + + public function setLoginResult($loginResult) + { + $this->loginResult = $loginResult; + } + + public function setMallIdList($mallIdList) + { + $this->mallIdList = $mallIdList; + } + + public function setPati($pati) + { + $this->pati = $pati; + } + + public function setTimestamp($timestamp) + { + $this->timestamp = $timestamp; + } + + public function setUserId($userId) + { + $this->userId = $userId; + } + + public function setUserIp($userIp) + { + $this->userIp = $userIp; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudWaybillGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudWaybillGetRequest.php index 65dbbe7..259608e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudWaybillGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudWaybillGetRequest.php @@ -1,594 +1,594 @@ -setUserParam($params, "param_waybill_cloud_print_apply_new_request", $this->paramWaybillCloudPrintApplyNewRequest); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloud.waybill.get"; - } - - public function setParamWaybillCloudPrintApplyNewRequest($paramWaybillCloudPrintApplyNewRequest) - { - $this->paramWaybillCloudPrintApplyNewRequest = $paramWaybillCloudPrintApplyNewRequest; - } - -} - -class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Boolean, "need_encrypt") - */ - private $needEncrypt; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender, "sender") - */ - private $sender; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem>, "trade_order_info_dtos") - */ - private $tradeOrderInfoDtos; - - /** - * @JsonProperty(String, "wp_code") - */ - private $wpCode; - - /** - * @JsonProperty(String, "token") - */ - private $token; - - /** - * @JsonProperty(Long, "ext_id") - */ - private $extId; - - /** - * @JsonProperty(String, "extendProps") - */ - private $extendProps; - - /** - * @JsonProperty(String, "order_sn") - */ - private $orderSn; - - public function setNeedEncrypt($needEncrypt) - { - $this->needEncrypt = $needEncrypt; - } - - public function setSender($sender) - { - $this->sender = $sender; - } - - public function setTradeOrderInfoDtos($tradeOrderInfoDtos) - { - $this->tradeOrderInfoDtos = $tradeOrderInfoDtos; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - - public function setToken($token) - { - $this->token = $token; - } - - public function setExtId($extId) - { - $this->extId = $extId; - } - - public function setExtendProps($extendProps) - { - $this->extendProps = $extendProps; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} - -class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress, "address") - */ - private $address; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - -} - -class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "detail") - */ - private $detail; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "town") - */ - private $town; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - public function setCity($city) - { - $this->city = $city; - } - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setTown($town) - { - $this->town = $town; - } - - public function setCountry($country) - { - $this->country = $country; - } - -} - -class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "logistics_services") - */ - private $logisticsServices; - - /** - * @JsonProperty(String, "object_id") - */ - private $objectId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo, "order_info") - */ - private $orderInfo; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo, "package_info") - */ - private $packageInfo; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient, "recipient") - */ - private $recipient; - - /** - * @JsonProperty(String, "user_id") - */ - private $userId; - - /** - * @JsonProperty(String, "template_url") - */ - private $templateUrl; - - public function setLogisticsServices($logisticsServices) - { - $this->logisticsServices = $logisticsServices; - } - - public function setObjectId($objectId) - { - $this->objectId = $objectId; - } - - public function setOrderInfo($orderInfo) - { - $this->orderInfo = $orderInfo; - } - - public function setPackageInfo($packageInfo) - { - $this->packageInfo = $packageInfo; - } - - public function setRecipient($recipient) - { - $this->recipient = $recipient; - } - - public function setUserId($userId) - { - $this->userId = $userId; - } - - public function setTemplateUrl($templateUrl) - { - $this->templateUrl = $templateUrl; - } - -} - -class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "order_channels_type") - */ - private $orderChannelsType; - - /** - * @JsonProperty(List, "trade_order_list") - */ - private $tradeOrderList; - - public function setOrderChannelsType($orderChannelsType) - { - $this->orderChannelsType = $orderChannelsType; - } - - public function setTradeOrderList($tradeOrderList) - { - $this->tradeOrderList = $tradeOrderList; - } - -} - -class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "goods_description") - */ - private $goodsDescription; - - /** - * @JsonProperty(String, "id") - */ - private $id; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem>, "items") - */ - private $items; - - /** - * @JsonProperty(String, "packaging_description") - */ - private $packagingDescription; - - /** - * @JsonProperty(String, "total_packages_count") - */ - private $totalPackagesCount; - - /** - * @JsonProperty(String, "volume") - */ - private $volume; - - /** - * @JsonProperty(String, "weight") - */ - private $weight; - - public function setGoodsDescription($goodsDescription) - { - $this->goodsDescription = $goodsDescription; - } - - public function setId($id) - { - $this->id = $id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function setPackagingDescription($packagingDescription) - { - $this->packagingDescription = $packagingDescription; - } - - public function setTotalPackagesCount($totalPackagesCount) - { - $this->totalPackagesCount = $totalPackagesCount; - } - - public function setVolume($volume) - { - $this->volume = $volume; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - -} - -class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "count") - */ - private $count; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setCount($count) - { - $this->count = $count; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress, "address") - */ - private $address; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - -} - -class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "detail") - */ - private $detail; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "town") - */ - private $town; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - public function setCity($city) - { - $this->city = $city; - } - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setTown($town) - { - $this->town = $town; - } - - public function setCountry($country) - { - $this->country = $country; - } - -} +setUserParam($params, "param_waybill_cloud_print_apply_new_request", $this->paramWaybillCloudPrintApplyNewRequest); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloud.waybill.get"; + } + + public function setParamWaybillCloudPrintApplyNewRequest($paramWaybillCloudPrintApplyNewRequest) + { + $this->paramWaybillCloudPrintApplyNewRequest = $paramWaybillCloudPrintApplyNewRequest; + } + +} + +class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Boolean, "need_encrypt") + */ + private $needEncrypt; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender, "sender") + */ + private $sender; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem>, "trade_order_info_dtos") + */ + private $tradeOrderInfoDtos; + + /** + * @JsonProperty(String, "wp_code") + */ + private $wpCode; + + /** + * @JsonProperty(String, "token") + */ + private $token; + + /** + * @JsonProperty(Long, "ext_id") + */ + private $extId; + + /** + * @JsonProperty(String, "extendProps") + */ + private $extendProps; + + /** + * @JsonProperty(String, "order_sn") + */ + private $orderSn; + + public function setNeedEncrypt($needEncrypt) + { + $this->needEncrypt = $needEncrypt; + } + + public function setSender($sender) + { + $this->sender = $sender; + } + + public function setTradeOrderInfoDtos($tradeOrderInfoDtos) + { + $this->tradeOrderInfoDtos = $tradeOrderInfoDtos; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + + public function setToken($token) + { + $this->token = $token; + } + + public function setExtId($extId) + { + $this->extId = $extId; + } + + public function setExtendProps($extendProps) + { + $this->extendProps = $extendProps; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} + +class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress, "address") + */ + private $address; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + +} + +class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "detail") + */ + private $detail; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "town") + */ + private $town; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + public function setCity($city) + { + $this->city = $city; + } + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setTown($town) + { + $this->town = $town; + } + + public function setCountry($country) + { + $this->country = $country; + } + +} + +class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "logistics_services") + */ + private $logisticsServices; + + /** + * @JsonProperty(String, "object_id") + */ + private $objectId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo, "order_info") + */ + private $orderInfo; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo, "package_info") + */ + private $packageInfo; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient, "recipient") + */ + private $recipient; + + /** + * @JsonProperty(String, "user_id") + */ + private $userId; + + /** + * @JsonProperty(String, "template_url") + */ + private $templateUrl; + + public function setLogisticsServices($logisticsServices) + { + $this->logisticsServices = $logisticsServices; + } + + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + + public function setOrderInfo($orderInfo) + { + $this->orderInfo = $orderInfo; + } + + public function setPackageInfo($packageInfo) + { + $this->packageInfo = $packageInfo; + } + + public function setRecipient($recipient) + { + $this->recipient = $recipient; + } + + public function setUserId($userId) + { + $this->userId = $userId; + } + + public function setTemplateUrl($templateUrl) + { + $this->templateUrl = $templateUrl; + } + +} + +class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "order_channels_type") + */ + private $orderChannelsType; + + /** + * @JsonProperty(List, "trade_order_list") + */ + private $tradeOrderList; + + public function setOrderChannelsType($orderChannelsType) + { + $this->orderChannelsType = $orderChannelsType; + } + + public function setTradeOrderList($tradeOrderList) + { + $this->tradeOrderList = $tradeOrderList; + } + +} + +class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "goods_description") + */ + private $goodsDescription; + + /** + * @JsonProperty(String, "id") + */ + private $id; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem>, "items") + */ + private $items; + + /** + * @JsonProperty(String, "packaging_description") + */ + private $packagingDescription; + + /** + * @JsonProperty(String, "total_packages_count") + */ + private $totalPackagesCount; + + /** + * @JsonProperty(String, "volume") + */ + private $volume; + + /** + * @JsonProperty(String, "weight") + */ + private $weight; + + public function setGoodsDescription($goodsDescription) + { + $this->goodsDescription = $goodsDescription; + } + + public function setId($id) + { + $this->id = $id; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function setPackagingDescription($packagingDescription) + { + $this->packagingDescription = $packagingDescription; + } + + public function setTotalPackagesCount($totalPackagesCount) + { + $this->totalPackagesCount = $totalPackagesCount; + } + + public function setVolume($volume) + { + $this->volume = $volume; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + +} + +class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "count") + */ + private $count; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setCount($count) + { + $this->count = $count; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress, "address") + */ + private $address; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + +} + +class PddCloudWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "detail") + */ + private $detail; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "town") + */ + private $town; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + public function setCity($city) + { + $this->city = $city; + } + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setTown($town) + { + $this->town = $town; + } + + public function setCountry($country) + { + $this->country = $country; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudWaybillUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudWaybillUpdateRequest.php index fc08d71..0ba58b0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudWaybillUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudWaybillUpdateRequest.php @@ -1,404 +1,404 @@ -setUserParam($params, "waybill_cloud_print_update_request", $this->waybillCloudPrintUpdateRequest); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloud.waybill.update"; - } - - public function setWaybillCloudPrintUpdateRequest($waybillCloudPrintUpdateRequest) - { - $this->waybillCloudPrintUpdateRequest = $waybillCloudPrintUpdateRequest; - } - -} - -class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "object_id") - */ - private $objectId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfo, "package_info") - */ - private $packageInfo; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipient, "recipient") - */ - private $recipient; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestSender, "sender") - */ - private $sender; - - /** - * @JsonProperty(String, "template_url") - */ - private $templateUrl; - - /** - * @JsonProperty(String, "waybill_code") - */ - private $waybillCode; - - /** - * @JsonProperty(String, "wp_code") - */ - private $wpCode; - - /** - * @JsonProperty(String, "token") - */ - private $token; - - /** - * @JsonProperty(Long, "ext_id") - */ - private $extId; - - /** - * @JsonProperty(String, "ext_fields") - */ - private $extFields; - - /** - * @JsonProperty(String, "order_sn") - */ - private $orderSn; - - public function setObjectId($objectId) - { - $this->objectId = $objectId; - } - - public function setPackageInfo($packageInfo) - { - $this->packageInfo = $packageInfo; - } - - public function setRecipient($recipient) - { - $this->recipient = $recipient; - } - - public function setSender($sender) - { - $this->sender = $sender; - } - - public function setTemplateUrl($templateUrl) - { - $this->templateUrl = $templateUrl; - } - - public function setWaybillCode($waybillCode) - { - $this->waybillCode = $waybillCode; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - - public function setToken($token) - { - $this->token = $token; - } - - public function setExtId($extId) - { - $this->extId = $extId; - } - - public function setExtFields($extFields) - { - $this->extFields = $extFields; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} - -class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfoItemsItem>, "items") - */ - private $items; - - /** - * @JsonProperty(Long, "volume") - */ - private $volume; - - /** - * @JsonProperty(Long, "weight") - */ - private $weight; - - public function setItems($items) - { - $this->items = $items; - } - - public function setVolume($volume) - { - $this->volume = $volume; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - -} - -class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfoItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "count") - */ - private $count; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "ext_json") - */ - private $extJson; - - public function setCount($count) - { - $this->count = $count; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setExtJson($extJson) - { - $this->extJson = $extJson; - } - -} - -class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipient extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipientAddress, "address") - */ - private $address; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - -} - -class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipientAddress extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "detail") - */ - private $detail; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "town") - */ - private $town; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - public function setCity($city) - { - $this->city = $city; - } - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setTown($town) - { - $this->town = $town; - } - - public function setCountry($country) - { - $this->country = $country; - } - -} - -class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestSender extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - -} +setUserParam($params, "waybill_cloud_print_update_request", $this->waybillCloudPrintUpdateRequest); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloud.waybill.update"; + } + + public function setWaybillCloudPrintUpdateRequest($waybillCloudPrintUpdateRequest) + { + $this->waybillCloudPrintUpdateRequest = $waybillCloudPrintUpdateRequest; + } + +} + +class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "object_id") + */ + private $objectId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfo, "package_info") + */ + private $packageInfo; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipient, "recipient") + */ + private $recipient; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestSender, "sender") + */ + private $sender; + + /** + * @JsonProperty(String, "template_url") + */ + private $templateUrl; + + /** + * @JsonProperty(String, "waybill_code") + */ + private $waybillCode; + + /** + * @JsonProperty(String, "wp_code") + */ + private $wpCode; + + /** + * @JsonProperty(String, "token") + */ + private $token; + + /** + * @JsonProperty(Long, "ext_id") + */ + private $extId; + + /** + * @JsonProperty(String, "ext_fields") + */ + private $extFields; + + /** + * @JsonProperty(String, "order_sn") + */ + private $orderSn; + + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + + public function setPackageInfo($packageInfo) + { + $this->packageInfo = $packageInfo; + } + + public function setRecipient($recipient) + { + $this->recipient = $recipient; + } + + public function setSender($sender) + { + $this->sender = $sender; + } + + public function setTemplateUrl($templateUrl) + { + $this->templateUrl = $templateUrl; + } + + public function setWaybillCode($waybillCode) + { + $this->waybillCode = $waybillCode; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + + public function setToken($token) + { + $this->token = $token; + } + + public function setExtId($extId) + { + $this->extId = $extId; + } + + public function setExtFields($extFields) + { + $this->extFields = $extFields; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} + +class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfoItemsItem>, "items") + */ + private $items; + + /** + * @JsonProperty(Long, "volume") + */ + private $volume; + + /** + * @JsonProperty(Long, "weight") + */ + private $weight; + + public function setItems($items) + { + $this->items = $items; + } + + public function setVolume($volume) + { + $this->volume = $volume; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + +} + +class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestPackageInfoItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "count") + */ + private $count; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "ext_json") + */ + private $extJson; + + public function setCount($count) + { + $this->count = $count; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setExtJson($extJson) + { + $this->extJson = $extJson; + } + +} + +class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipient extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipientAddress, "address") + */ + private $address; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + +} + +class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestRecipientAddress extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "detail") + */ + private $detail; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "town") + */ + private $town; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + public function setCity($city) + { + $this->city = $city; + } + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setTown($town) + { + $this->town = $town; + } + + public function setCountry($country) + { + $this->country = $country; + } + +} + +class PddCloudWaybillUpdateRequest_WaybillCloudPrintUpdateRequestSender extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudWebsessionSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudWebsessionSendRequest.php index f674365..f2baa87 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudWebsessionSendRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudWebsessionSendRequest.php @@ -1,105 +1,105 @@ -, "session_info_list") - */ - private $sessionInfoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "cache_type", $this->cacheType); - $this->setUserParam($params, "session_info_list", $this->sessionInfoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloud.websession.send"; - } - - public function setCacheType($cacheType) - { - $this->cacheType = $cacheType; - } - - public function setSessionInfoList($sessionInfoList) - { - $this->sessionInfoList = $sessionInfoList; - } - -} - -class PddCloudWebsessionSendRequest_SessionInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "key") - */ - private $key; - - /** - * @JsonProperty(String, "value") - */ - private $value; - - /** - * @JsonProperty(Long, "expir_time") - */ - private $expirTime; - - /** - * @JsonProperty(String, "function") - */ - private $function; - - public function setKey($key) - { - $this->key = $key; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setExpirTime($expirTime) - { - $this->expirTime = $expirTime; - } - - public function setFunction($function) - { - $this->function = $function; - } - -} +, "session_info_list") + */ + private $sessionInfoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "cache_type", $this->cacheType); + $this->setUserParam($params, "session_info_list", $this->sessionInfoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloud.websession.send"; + } + + public function setCacheType($cacheType) + { + $this->cacheType = $cacheType; + } + + public function setSessionInfoList($sessionInfoList) + { + $this->sessionInfoList = $sessionInfoList; + } + +} + +class PddCloudWebsessionSendRequest_SessionInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "key") + */ + private $key; + + /** + * @JsonProperty(String, "value") + */ + private $value; + + /** + * @JsonProperty(Long, "expir_time") + */ + private $expirTime; + + /** + * @JsonProperty(String, "function") + */ + private $function; + + public function setKey($key) + { + $this->key = $key; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setExpirTime($expirTime) + { + $this->expirTime = $expirTime; + } + + public function setFunction($function) + { + $this->function = $function; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudWmsOrderSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudWmsOrderSendRequest.php index 84b324d..36510c3 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudWmsOrderSendRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudWmsOrderSendRequest.php @@ -1,864 +1,864 @@ -setUserParam($params, "wms_order_send_request", $this->wmsOrderSendRequest); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloud.wms.order.send"; - } - - public function setWmsOrderSendRequest($wmsOrderSendRequest) - { - $this->wmsOrderSendRequest = $wmsOrderSendRequest; - } - -} - -class PddCloudWmsOrderSendRequest_WmsOrderSendRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "owner_code") - */ - private $ownerCode; - - /** - * @JsonProperty(String, "owner_name") - */ - private $ownerName; - - /** - * @JsonProperty(String, "warehouse_code") - */ - private $warehouseCode; - - /** - * @JsonProperty(String, "warehouse_type") - */ - private $warehouseType; - - /** - * @JsonProperty(String, "order_type") - */ - private $orderType; - - /** - * @JsonProperty(String, "delivery_order_code") - */ - private $deliveryOrderCode; - - /** - * @JsonProperty(String, "source_order_code") - */ - private $sourceOrderCode; - - /** - * @JsonProperty(String, "source_platform_code") - */ - private $sourcePlatformCode; - - /** - * @JsonProperty(String, "shop_nick") - */ - private $shopNick; - - /** - * @JsonProperty(String, "seller_nick") - */ - private $sellerNick; - - /** - * @JsonProperty(String, "buyer_nick") - */ - private $buyerNick; - - /** - * @JsonProperty(String, "create_time") - */ - private $createTime; - - /** - * @JsonProperty(String, "order_time") - */ - private $orderTime; - - /** - * @JsonProperty(String, "pay_time") - */ - private $payTime; - - /** - * @JsonProperty(String, "operate_time") - */ - private $operateTime; - - /** - * @JsonProperty(String, "order_flag") - */ - private $orderFlag; - - /** - * @JsonProperty(Integer, "total_amount") - */ - private $totalAmount; - - /** - * @JsonProperty(Integer, "discount_amount") - */ - private $discountAmount; - - /** - * @JsonProperty(Integer, "freight") - */ - private $freight; - - /** - * @JsonProperty(Integer, "actual_amount") - */ - private $actualAmount; - - /** - * @JsonProperty(String, "logistics_code") - */ - private $logisticsCode; - - /** - * @JsonProperty(String, "logistics_no") - */ - private $logisticsNo; - - /** - * @JsonProperty(String, "seller_message") - */ - private $sellerMessage; - - /** - * @JsonProperty(String, "buyer_message") - */ - private $buyerMessage; - - /** - * @JsonProperty(Boolean, "invoice_flag") - */ - private $invoiceFlag; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestInvoiceInfo, "invoice_info") - */ - private $invoiceInfo; - - /** - * @JsonProperty(String, "remark") - */ - private $remark; - - /** - * @JsonProperty(String, "no_stack_tag") - */ - private $noStackTag; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfo, "senderInfo") - */ - private $senderInfo; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfo, "receiverInfo") - */ - private $receiverInfo; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestOrderLineListItem>, "order_line_list") - */ - private $orderLineList; - - /** - * @JsonProperty(String, "extendProps") - */ - private $extendProps; - - /** - * @JsonProperty(String, "token") - */ - private $token; - - /** - * @JsonProperty(String, "customerId") - */ - private $customerId; - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setOwnerName($ownerName) - { - $this->ownerName = $ownerName; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - - public function setWarehouseType($warehouseType) - { - $this->warehouseType = $warehouseType; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setDeliveryOrderCode($deliveryOrderCode) - { - $this->deliveryOrderCode = $deliveryOrderCode; - } - - public function setSourceOrderCode($sourceOrderCode) - { - $this->sourceOrderCode = $sourceOrderCode; - } - - public function setSourcePlatformCode($sourcePlatformCode) - { - $this->sourcePlatformCode = $sourcePlatformCode; - } - - public function setShopNick($shopNick) - { - $this->shopNick = $shopNick; - } - - public function setSellerNick($sellerNick) - { - $this->sellerNick = $sellerNick; - } - - public function setBuyerNick($buyerNick) - { - $this->buyerNick = $buyerNick; - } - - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - - public function setOrderTime($orderTime) - { - $this->orderTime = $orderTime; - } - - public function setPayTime($payTime) - { - $this->payTime = $payTime; - } - - public function setOperateTime($operateTime) - { - $this->operateTime = $operateTime; - } - - public function setOrderFlag($orderFlag) - { - $this->orderFlag = $orderFlag; - } - - public function setTotalAmount($totalAmount) - { - $this->totalAmount = $totalAmount; - } - - public function setDiscountAmount($discountAmount) - { - $this->discountAmount = $discountAmount; - } - - public function setFreight($freight) - { - $this->freight = $freight; - } - - public function setActualAmount($actualAmount) - { - $this->actualAmount = $actualAmount; - } - - public function setLogisticsCode($logisticsCode) - { - $this->logisticsCode = $logisticsCode; - } - - public function setLogisticsNo($logisticsNo) - { - $this->logisticsNo = $logisticsNo; - } - - public function setSellerMessage($sellerMessage) - { - $this->sellerMessage = $sellerMessage; - } - - public function setBuyerMessage($buyerMessage) - { - $this->buyerMessage = $buyerMessage; - } - - public function setInvoiceFlag($invoiceFlag) - { - $this->invoiceFlag = $invoiceFlag; - } - - public function setInvoiceInfo($invoiceInfo) - { - $this->invoiceInfo = $invoiceInfo; - } - - public function setRemark($remark) - { - $this->remark = $remark; - } - - public function setNoStackTag($noStackTag) - { - $this->noStackTag = $noStackTag; - } - - public function setSenderInfo($senderInfo) - { - $this->senderInfo = $senderInfo; - } - - public function setReceiverInfo($receiverInfo) - { - $this->receiverInfo = $receiverInfo; - } - - public function setOrderLineList($orderLineList) - { - $this->orderLineList = $orderLineList; - } - - public function setExtendProps($extendProps) - { - $this->extendProps = $extendProps; - } - - public function setToken($token) - { - $this->token = $token; - } - - public function setCustomerId($customerId) - { - $this->customerId = $customerId; - } - -} - -class PddCloudWmsOrderSendRequest_WmsOrderSendRequestInvoiceInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "invoice_type") - */ - private $invoiceType; - - /** - * @JsonProperty(String, "invoice_head") - */ - private $invoiceHead; - - /** - * @JsonProperty(String, "invoice_content") - */ - private $invoiceContent; - - /** - * @JsonProperty(String, "invoice_tax_number") - */ - private $invoiceTaxNumber; - - /** - * @JsonProperty(String, "invoice_ext_fields") - */ - private $invoiceExtFields; - - public function setInvoiceType($invoiceType) - { - $this->invoiceType = $invoiceType; - } - - public function setInvoiceHead($invoiceHead) - { - $this->invoiceHead = $invoiceHead; - } - - public function setInvoiceContent($invoiceContent) - { - $this->invoiceContent = $invoiceContent; - } - - public function setInvoiceTaxNumber($invoiceTaxNumber) - { - $this->invoiceTaxNumber = $invoiceTaxNumber; - } - - public function setInvoiceExtFields($invoiceExtFields) - { - $this->invoiceExtFields = $invoiceExtFields; - } - -} - -class PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfoAddress, "address") - */ - private $address; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - /** - * @JsonProperty(String, "zipcode") - */ - private $zipcode; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - - public function setZipcode($zipcode) - { - $this->zipcode = $zipcode; - } - -} - -class PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfoAddress extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "detail") - */ - private $detail; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "town") - */ - private $town; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - public function setCity($city) - { - $this->city = $city; - } - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setTown($town) - { - $this->town = $town; - } - - public function setCountry($country) - { - $this->country = $country; - } - -} - -class PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfoAddress, "address") - */ - private $address; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - /** - * @JsonProperty(String, "zipcode") - */ - private $zipcode; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - - public function setZipcode($zipcode) - { - $this->zipcode = $zipcode; - } - -} - -class PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfoAddress extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "detail") - */ - private $detail; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "town") - */ - private $town; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - public function setCity($city) - { - $this->city = $city; - } - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setTown($town) - { - $this->town = $town; - } - - public function setCountry($country) - { - $this->country = $country; - } - -} - -class PddCloudWmsOrderSendRequest_WmsOrderSendRequestOrderLineListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "order_line_no") - */ - private $orderLineNo; - - /** - * @JsonProperty(String, "source_order_code") - */ - private $sourceOrderCode; - - /** - * @JsonProperty(String, "sub_source_order_code") - */ - private $subSourceOrderCode; - - /** - * @JsonProperty(String, "owner_code") - */ - private $ownerCode; - - /** - * @JsonProperty(String, "item_id") - */ - private $itemId; - - /** - * @JsonProperty(String, "item_code") - */ - private $itemCode; - - /** - * @JsonProperty(String, "item_name") - */ - private $itemName; - - /** - * @JsonProperty(Integer, "item_quantity") - */ - private $itemQuantity; - - /** - * @JsonProperty(String, "retail_price") - */ - private $retailPrice; - - /** - * @JsonProperty(String, "actual_price") - */ - private $actualPrice; - - /** - * @JsonProperty(String, "discount_amount") - */ - private $discountAmount; - - /** - * @JsonProperty(String, "batch_code") - */ - private $batchCode; - - /** - * @JsonProperty(String, "remark") - */ - private $remark; - - /** - * @JsonProperty(String, "order_ext_fields") - */ - private $orderExtFields; - - public function setOrderLineNo($orderLineNo) - { - $this->orderLineNo = $orderLineNo; - } - - public function setSourceOrderCode($sourceOrderCode) - { - $this->sourceOrderCode = $sourceOrderCode; - } - - public function setSubSourceOrderCode($subSourceOrderCode) - { - $this->subSourceOrderCode = $subSourceOrderCode; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setItemId($itemId) - { - $this->itemId = $itemId; - } - - public function setItemCode($itemCode) - { - $this->itemCode = $itemCode; - } - - public function setItemName($itemName) - { - $this->itemName = $itemName; - } - - public function setItemQuantity($itemQuantity) - { - $this->itemQuantity = $itemQuantity; - } - - public function setRetailPrice($retailPrice) - { - $this->retailPrice = $retailPrice; - } - - public function setActualPrice($actualPrice) - { - $this->actualPrice = $actualPrice; - } - - public function setDiscountAmount($discountAmount) - { - $this->discountAmount = $discountAmount; - } - - public function setBatchCode($batchCode) - { - $this->batchCode = $batchCode; - } - - public function setRemark($remark) - { - $this->remark = $remark; - } - - public function setOrderExtFields($orderExtFields) - { - $this->orderExtFields = $orderExtFields; - } - -} +setUserParam($params, "wms_order_send_request", $this->wmsOrderSendRequest); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloud.wms.order.send"; + } + + public function setWmsOrderSendRequest($wmsOrderSendRequest) + { + $this->wmsOrderSendRequest = $wmsOrderSendRequest; + } + +} + +class PddCloudWmsOrderSendRequest_WmsOrderSendRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "owner_code") + */ + private $ownerCode; + + /** + * @JsonProperty(String, "owner_name") + */ + private $ownerName; + + /** + * @JsonProperty(String, "warehouse_code") + */ + private $warehouseCode; + + /** + * @JsonProperty(String, "warehouse_type") + */ + private $warehouseType; + + /** + * @JsonProperty(String, "order_type") + */ + private $orderType; + + /** + * @JsonProperty(String, "delivery_order_code") + */ + private $deliveryOrderCode; + + /** + * @JsonProperty(String, "source_order_code") + */ + private $sourceOrderCode; + + /** + * @JsonProperty(String, "source_platform_code") + */ + private $sourcePlatformCode; + + /** + * @JsonProperty(String, "shop_nick") + */ + private $shopNick; + + /** + * @JsonProperty(String, "seller_nick") + */ + private $sellerNick; + + /** + * @JsonProperty(String, "buyer_nick") + */ + private $buyerNick; + + /** + * @JsonProperty(String, "create_time") + */ + private $createTime; + + /** + * @JsonProperty(String, "order_time") + */ + private $orderTime; + + /** + * @JsonProperty(String, "pay_time") + */ + private $payTime; + + /** + * @JsonProperty(String, "operate_time") + */ + private $operateTime; + + /** + * @JsonProperty(String, "order_flag") + */ + private $orderFlag; + + /** + * @JsonProperty(Integer, "total_amount") + */ + private $totalAmount; + + /** + * @JsonProperty(Integer, "discount_amount") + */ + private $discountAmount; + + /** + * @JsonProperty(Integer, "freight") + */ + private $freight; + + /** + * @JsonProperty(Integer, "actual_amount") + */ + private $actualAmount; + + /** + * @JsonProperty(String, "logistics_code") + */ + private $logisticsCode; + + /** + * @JsonProperty(String, "logistics_no") + */ + private $logisticsNo; + + /** + * @JsonProperty(String, "seller_message") + */ + private $sellerMessage; + + /** + * @JsonProperty(String, "buyer_message") + */ + private $buyerMessage; + + /** + * @JsonProperty(Boolean, "invoice_flag") + */ + private $invoiceFlag; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestInvoiceInfo, "invoice_info") + */ + private $invoiceInfo; + + /** + * @JsonProperty(String, "remark") + */ + private $remark; + + /** + * @JsonProperty(String, "no_stack_tag") + */ + private $noStackTag; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfo, "senderInfo") + */ + private $senderInfo; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfo, "receiverInfo") + */ + private $receiverInfo; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestOrderLineListItem>, "order_line_list") + */ + private $orderLineList; + + /** + * @JsonProperty(String, "extendProps") + */ + private $extendProps; + + /** + * @JsonProperty(String, "token") + */ + private $token; + + /** + * @JsonProperty(String, "customerId") + */ + private $customerId; + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setOwnerName($ownerName) + { + $this->ownerName = $ownerName; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + + public function setWarehouseType($warehouseType) + { + $this->warehouseType = $warehouseType; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setDeliveryOrderCode($deliveryOrderCode) + { + $this->deliveryOrderCode = $deliveryOrderCode; + } + + public function setSourceOrderCode($sourceOrderCode) + { + $this->sourceOrderCode = $sourceOrderCode; + } + + public function setSourcePlatformCode($sourcePlatformCode) + { + $this->sourcePlatformCode = $sourcePlatformCode; + } + + public function setShopNick($shopNick) + { + $this->shopNick = $shopNick; + } + + public function setSellerNick($sellerNick) + { + $this->sellerNick = $sellerNick; + } + + public function setBuyerNick($buyerNick) + { + $this->buyerNick = $buyerNick; + } + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + + public function setOrderTime($orderTime) + { + $this->orderTime = $orderTime; + } + + public function setPayTime($payTime) + { + $this->payTime = $payTime; + } + + public function setOperateTime($operateTime) + { + $this->operateTime = $operateTime; + } + + public function setOrderFlag($orderFlag) + { + $this->orderFlag = $orderFlag; + } + + public function setTotalAmount($totalAmount) + { + $this->totalAmount = $totalAmount; + } + + public function setDiscountAmount($discountAmount) + { + $this->discountAmount = $discountAmount; + } + + public function setFreight($freight) + { + $this->freight = $freight; + } + + public function setActualAmount($actualAmount) + { + $this->actualAmount = $actualAmount; + } + + public function setLogisticsCode($logisticsCode) + { + $this->logisticsCode = $logisticsCode; + } + + public function setLogisticsNo($logisticsNo) + { + $this->logisticsNo = $logisticsNo; + } + + public function setSellerMessage($sellerMessage) + { + $this->sellerMessage = $sellerMessage; + } + + public function setBuyerMessage($buyerMessage) + { + $this->buyerMessage = $buyerMessage; + } + + public function setInvoiceFlag($invoiceFlag) + { + $this->invoiceFlag = $invoiceFlag; + } + + public function setInvoiceInfo($invoiceInfo) + { + $this->invoiceInfo = $invoiceInfo; + } + + public function setRemark($remark) + { + $this->remark = $remark; + } + + public function setNoStackTag($noStackTag) + { + $this->noStackTag = $noStackTag; + } + + public function setSenderInfo($senderInfo) + { + $this->senderInfo = $senderInfo; + } + + public function setReceiverInfo($receiverInfo) + { + $this->receiverInfo = $receiverInfo; + } + + public function setOrderLineList($orderLineList) + { + $this->orderLineList = $orderLineList; + } + + public function setExtendProps($extendProps) + { + $this->extendProps = $extendProps; + } + + public function setToken($token) + { + $this->token = $token; + } + + public function setCustomerId($customerId) + { + $this->customerId = $customerId; + } + +} + +class PddCloudWmsOrderSendRequest_WmsOrderSendRequestInvoiceInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "invoice_type") + */ + private $invoiceType; + + /** + * @JsonProperty(String, "invoice_head") + */ + private $invoiceHead; + + /** + * @JsonProperty(String, "invoice_content") + */ + private $invoiceContent; + + /** + * @JsonProperty(String, "invoice_tax_number") + */ + private $invoiceTaxNumber; + + /** + * @JsonProperty(String, "invoice_ext_fields") + */ + private $invoiceExtFields; + + public function setInvoiceType($invoiceType) + { + $this->invoiceType = $invoiceType; + } + + public function setInvoiceHead($invoiceHead) + { + $this->invoiceHead = $invoiceHead; + } + + public function setInvoiceContent($invoiceContent) + { + $this->invoiceContent = $invoiceContent; + } + + public function setInvoiceTaxNumber($invoiceTaxNumber) + { + $this->invoiceTaxNumber = $invoiceTaxNumber; + } + + public function setInvoiceExtFields($invoiceExtFields) + { + $this->invoiceExtFields = $invoiceExtFields; + } + +} + +class PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfoAddress, "address") + */ + private $address; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + /** + * @JsonProperty(String, "zipcode") + */ + private $zipcode; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + + public function setZipcode($zipcode) + { + $this->zipcode = $zipcode; + } + +} + +class PddCloudWmsOrderSendRequest_WmsOrderSendRequestSenderInfoAddress extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "detail") + */ + private $detail; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "town") + */ + private $town; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + public function setCity($city) + { + $this->city = $city; + } + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setTown($town) + { + $this->town = $town; + } + + public function setCountry($country) + { + $this->country = $country; + } + +} + +class PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfoAddress, "address") + */ + private $address; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + /** + * @JsonProperty(String, "zipcode") + */ + private $zipcode; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + + public function setZipcode($zipcode) + { + $this->zipcode = $zipcode; + } + +} + +class PddCloudWmsOrderSendRequest_WmsOrderSendRequestReceiverInfoAddress extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "detail") + */ + private $detail; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "town") + */ + private $town; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + public function setCity($city) + { + $this->city = $city; + } + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setTown($town) + { + $this->town = $town; + } + + public function setCountry($country) + { + $this->country = $country; + } + +} + +class PddCloudWmsOrderSendRequest_WmsOrderSendRequestOrderLineListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "order_line_no") + */ + private $orderLineNo; + + /** + * @JsonProperty(String, "source_order_code") + */ + private $sourceOrderCode; + + /** + * @JsonProperty(String, "sub_source_order_code") + */ + private $subSourceOrderCode; + + /** + * @JsonProperty(String, "owner_code") + */ + private $ownerCode; + + /** + * @JsonProperty(String, "item_id") + */ + private $itemId; + + /** + * @JsonProperty(String, "item_code") + */ + private $itemCode; + + /** + * @JsonProperty(String, "item_name") + */ + private $itemName; + + /** + * @JsonProperty(Integer, "item_quantity") + */ + private $itemQuantity; + + /** + * @JsonProperty(String, "retail_price") + */ + private $retailPrice; + + /** + * @JsonProperty(String, "actual_price") + */ + private $actualPrice; + + /** + * @JsonProperty(String, "discount_amount") + */ + private $discountAmount; + + /** + * @JsonProperty(String, "batch_code") + */ + private $batchCode; + + /** + * @JsonProperty(String, "remark") + */ + private $remark; + + /** + * @JsonProperty(String, "order_ext_fields") + */ + private $orderExtFields; + + public function setOrderLineNo($orderLineNo) + { + $this->orderLineNo = $orderLineNo; + } + + public function setSourceOrderCode($sourceOrderCode) + { + $this->sourceOrderCode = $sourceOrderCode; + } + + public function setSubSourceOrderCode($subSourceOrderCode) + { + $this->subSourceOrderCode = $subSourceOrderCode; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setItemId($itemId) + { + $this->itemId = $itemId; + } + + public function setItemCode($itemCode) + { + $this->itemCode = $itemCode; + } + + public function setItemName($itemName) + { + $this->itemName = $itemName; + } + + public function setItemQuantity($itemQuantity) + { + $this->itemQuantity = $itemQuantity; + } + + public function setRetailPrice($retailPrice) + { + $this->retailPrice = $retailPrice; + } + + public function setActualPrice($actualPrice) + { + $this->actualPrice = $actualPrice; + } + + public function setDiscountAmount($discountAmount) + { + $this->discountAmount = $discountAmount; + } + + public function setBatchCode($batchCode) + { + $this->batchCode = $batchCode; + } + + public function setRemark($remark) + { + $this->remark = $remark; + } + + public function setOrderExtFields($orderExtFields) + { + $this->orderExtFields = $orderExtFields; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintCmdprintRenderRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintCmdprintRenderRequest.php index baf850f..e4fc397 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintCmdprintRenderRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintCmdprintRenderRequest.php @@ -1,274 +1,274 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloudprint.cmdprint.render"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddCloudprintCmdprintRenderRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "client_side_id") - */ - private $clientSideId; - - /** - * @JsonProperty(String, "client_type") - */ - private $clientType; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestConfig, "config") - */ - private $config; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestDocument, "document") - */ - private $document; - - /** - * @JsonProperty(String, "printer_name") - */ - private $printerName; - - /** - * @JsonProperty(String, "print_command_type") - */ - private $printCommandType; - - public function setClientSideId($clientSideId) - { - $this->clientSideId = $clientSideId; - } - - public function setClientType($clientType) - { - $this->clientType = $clientType; - } - - public function setConfig($config) - { - $this->config = $config; - } - - public function setDocument($document) - { - $this->document = $document; - } - - public function setPrinterName($printerName) - { - $this->printerName = $printerName; - } - - public function setPrintCommandType($printCommandType) - { - $this->printCommandType = $printCommandType; - } - -} - -class PddCloudprintCmdprintRenderRequest_RequestConfig extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Double, "horizontal_offset") - */ - private $horizontalOffset; - - /** - * @JsonProperty(Boolean, "need_bottom_logo") - */ - private $needBottomLogo; - - /** - * @JsonProperty(Boolean, "need_middle_logo") - */ - private $needMiddleLogo; - - /** - * @JsonProperty(Boolean, "need_top_logo") - */ - private $needTopLogo; - - /** - * @JsonProperty(String, "orientation") - */ - private $orientation; - - /** - * @JsonProperty(Double, "vertical_offset") - */ - private $verticalOffset; - - public function setHorizontalOffset($horizontalOffset) - { - $this->horizontalOffset = $horizontalOffset; - } - - public function setNeedBottomLogo($needBottomLogo) - { - $this->needBottomLogo = $needBottomLogo; - } - - public function setNeedMiddleLogo($needMiddleLogo) - { - $this->needMiddleLogo = $needMiddleLogo; - } - - public function setNeedTopLogo($needTopLogo) - { - $this->needTopLogo = $needTopLogo; - } - - public function setOrientation($orientation) - { - $this->orientation = $orientation; - } - - public function setVerticalOffset($verticalOffset) - { - $this->verticalOffset = $verticalOffset; - } - -} - -class PddCloudprintCmdprintRenderRequest_RequestDocument extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestDocumentContentsItem>, "contents") - */ - private $contents; - - public function setContents($contents) - { - $this->contents = $contents; - } - -} - -class PddCloudprintCmdprintRenderRequest_RequestDocumentContentsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "add_data") - */ - private $addData; - - /** - * @JsonProperty(Boolean, "encrypted") - */ - private $encrypted; - - /** - * @JsonProperty(String, "print_data") - */ - private $printData; - - /** - * @JsonProperty(String, "signature") - */ - private $signature; - - /** - * @JsonProperty(String, "template_url") - */ - private $templateUrl; - - /** - * @JsonProperty(String, "ver") - */ - private $ver; - - public function setAddData($addData) - { - $this->addData = $addData; - } - - public function setEncrypted($encrypted) - { - $this->encrypted = $encrypted; - } - - public function setPrintData($printData) - { - $this->printData = $printData; - } - - public function setSignature($signature) - { - $this->signature = $signature; - } - - public function setTemplateUrl($templateUrl) - { - $this->templateUrl = $templateUrl; - } - - public function setVer($ver) - { - $this->ver = $ver; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloudprint.cmdprint.render"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddCloudprintCmdprintRenderRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "client_side_id") + */ + private $clientSideId; + + /** + * @JsonProperty(String, "client_type") + */ + private $clientType; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestConfig, "config") + */ + private $config; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestDocument, "document") + */ + private $document; + + /** + * @JsonProperty(String, "printer_name") + */ + private $printerName; + + /** + * @JsonProperty(String, "print_command_type") + */ + private $printCommandType; + + public function setClientSideId($clientSideId) + { + $this->clientSideId = $clientSideId; + } + + public function setClientType($clientType) + { + $this->clientType = $clientType; + } + + public function setConfig($config) + { + $this->config = $config; + } + + public function setDocument($document) + { + $this->document = $document; + } + + public function setPrinterName($printerName) + { + $this->printerName = $printerName; + } + + public function setPrintCommandType($printCommandType) + { + $this->printCommandType = $printCommandType; + } + +} + +class PddCloudprintCmdprintRenderRequest_RequestConfig extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Double, "horizontal_offset") + */ + private $horizontalOffset; + + /** + * @JsonProperty(Boolean, "need_bottom_logo") + */ + private $needBottomLogo; + + /** + * @JsonProperty(Boolean, "need_middle_logo") + */ + private $needMiddleLogo; + + /** + * @JsonProperty(Boolean, "need_top_logo") + */ + private $needTopLogo; + + /** + * @JsonProperty(String, "orientation") + */ + private $orientation; + + /** + * @JsonProperty(Double, "vertical_offset") + */ + private $verticalOffset; + + public function setHorizontalOffset($horizontalOffset) + { + $this->horizontalOffset = $horizontalOffset; + } + + public function setNeedBottomLogo($needBottomLogo) + { + $this->needBottomLogo = $needBottomLogo; + } + + public function setNeedMiddleLogo($needMiddleLogo) + { + $this->needMiddleLogo = $needMiddleLogo; + } + + public function setNeedTopLogo($needTopLogo) + { + $this->needTopLogo = $needTopLogo; + } + + public function setOrientation($orientation) + { + $this->orientation = $orientation; + } + + public function setVerticalOffset($verticalOffset) + { + $this->verticalOffset = $verticalOffset; + } + +} + +class PddCloudprintCmdprintRenderRequest_RequestDocument extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddCloudprintCmdprintRenderRequest_RequestDocumentContentsItem>, "contents") + */ + private $contents; + + public function setContents($contents) + { + $this->contents = $contents; + } + +} + +class PddCloudprintCmdprintRenderRequest_RequestDocumentContentsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "add_data") + */ + private $addData; + + /** + * @JsonProperty(Boolean, "encrypted") + */ + private $encrypted; + + /** + * @JsonProperty(String, "print_data") + */ + private $printData; + + /** + * @JsonProperty(String, "signature") + */ + private $signature; + + /** + * @JsonProperty(String, "template_url") + */ + private $templateUrl; + + /** + * @JsonProperty(String, "ver") + */ + private $ver; + + public function setAddData($addData) + { + $this->addData = $addData; + } + + public function setEncrypted($encrypted) + { + $this->encrypted = $encrypted; + } + + public function setPrintData($printData) + { + $this->printData = $printData; + } + + public function setSignature($signature) + { + $this->signature = $signature; + } + + public function setTemplateUrl($templateUrl) + { + $this->templateUrl = $templateUrl; + } + + public function setVer($ver) + { + $this->ver = $ver; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintCustomaresGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintCustomaresGetRequest.php index 37c8550..728e720 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintCustomaresGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintCustomaresGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "template_id", $this->templateId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloudprint.customares.get"; - } - - public function setTemplateId($templateId) - { - $this->templateId = $templateId; - } - -} +setUserParam($params, "template_id", $this->templateId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloudprint.customares.get"; + } + + public function setTemplateId($templateId) + { + $this->templateId = $templateId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintStdtemplatesGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintStdtemplatesGetRequest.php index ecccd7c..ecec3b5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintStdtemplatesGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddCloudprintStdtemplatesGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "wp_code", $this->wpCode); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.cloudprint.stdtemplates.get"; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - -} +setUserParam($params, "wp_code", $this->wpCode); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.cloudprint.stdtemplates.get"; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkAllOrderListIncrementGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkAllOrderListIncrementGetRequest.php index c55bdbe..e2871df 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkAllOrderListIncrementGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkAllOrderListIncrementGetRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "end_update_time", $this->endUpdateTime); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "start_update_time", $this->startUpdateTime); - $this->setUserParam($params, "query_order_type", $this->queryOrderType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.all.order.list.increment.get"; - } - - public function setEndUpdateTime($endUpdateTime) - { - $this->endUpdateTime = $endUpdateTime; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setStartUpdateTime($startUpdateTime) - { - $this->startUpdateTime = $startUpdateTime; - } - - public function setQueryOrderType($queryOrderType) - { - $this->queryOrderType = $queryOrderType; - } - -} +setUserParam($params, "end_update_time", $this->endUpdateTime); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "start_update_time", $this->startUpdateTime); + $this->setUserParam($params, "query_order_type", $this->queryOrderType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.all.order.list.increment.get"; + } + + public function setEndUpdateTime($endUpdateTime) + { + $this->endUpdateTime = $endUpdateTime; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setStartUpdateTime($startUpdateTime) + { + $this->startUpdateTime = $startUpdateTime; + } + + public function setQueryOrderType($queryOrderType) + { + $this->queryOrderType = $queryOrderType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkCmsPromUrlGenerateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkCmsPromUrlGenerateRequest.php index dc2ae67..ddc8e64 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkCmsPromUrlGenerateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkCmsPromUrlGenerateRequest.php @@ -1,143 +1,143 @@ -, "p_id_list") - */ - private $pIdList; - - /** - * @JsonProperty(Boolean, "generate_we_app") - */ - private $generateWeApp; - - /** - * @JsonProperty(String, "keyword") - */ - private $keyword; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "channel_type", $this->channelType); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "generate_mobile", $this->generateMobile); - $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); - $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); - $this->setUserParam($params, "generate_weapp_webview", $this->generateWeappWebview); - $this->setUserParam($params, "multi_group", $this->multiGroup); - $this->setUserParam($params, "p_id_list", $this->pIdList); - $this->setUserParam($params, "generate_we_app", $this->generateWeApp); - $this->setUserParam($params, "keyword", $this->keyword); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.cms.prom.url.generate"; - } - - public function setChannelType($channelType) - { - $this->channelType = $channelType; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setGenerateMobile($generateMobile) - { - $this->generateMobile = $generateMobile; - } - - public function setGenerateSchemaUrl($generateSchemaUrl) - { - $this->generateSchemaUrl = $generateSchemaUrl; - } - - public function setGenerateShortUrl($generateShortUrl) - { - $this->generateShortUrl = $generateShortUrl; - } - - public function setGenerateWeappWebview($generateWeappWebview) - { - $this->generateWeappWebview = $generateWeappWebview; - } - - public function setMultiGroup($multiGroup) - { - $this->multiGroup = $multiGroup; - } - - public function setPIdList($pIdList) - { - $this->pIdList = $pIdList; - } - - public function setGenerateWeApp($generateWeApp) - { - $this->generateWeApp = $generateWeApp; - } - - public function setKeyword($keyword) - { - $this->keyword = $keyword; - } - -} +, "p_id_list") + */ + private $pIdList; + + /** + * @JsonProperty(Boolean, "generate_we_app") + */ + private $generateWeApp; + + /** + * @JsonProperty(String, "keyword") + */ + private $keyword; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "channel_type", $this->channelType); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "generate_mobile", $this->generateMobile); + $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); + $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); + $this->setUserParam($params, "generate_weapp_webview", $this->generateWeappWebview); + $this->setUserParam($params, "multi_group", $this->multiGroup); + $this->setUserParam($params, "p_id_list", $this->pIdList); + $this->setUserParam($params, "generate_we_app", $this->generateWeApp); + $this->setUserParam($params, "keyword", $this->keyword); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.cms.prom.url.generate"; + } + + public function setChannelType($channelType) + { + $this->channelType = $channelType; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setGenerateMobile($generateMobile) + { + $this->generateMobile = $generateMobile; + } + + public function setGenerateSchemaUrl($generateSchemaUrl) + { + $this->generateSchemaUrl = $generateSchemaUrl; + } + + public function setGenerateShortUrl($generateShortUrl) + { + $this->generateShortUrl = $generateShortUrl; + } + + public function setGenerateWeappWebview($generateWeappWebview) + { + $this->generateWeappWebview = $generateWeappWebview; + } + + public function setMultiGroup($multiGroup) + { + $this->multiGroup = $multiGroup; + } + + public function setPIdList($pIdList) + { + $this->pIdList = $pIdList; + } + + public function setGenerateWeApp($generateWeApp) + { + $this->generateWeApp = $generateWeApp; + } + + public function setKeyword($keyword) + { + $this->keyword = $keyword; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsDetailRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsDetailRequest.php index 679bbc1..42f0062 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsDetailRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsDetailRequest.php @@ -1,110 +1,110 @@ -, "goods_id_list") - */ - private $goodsIdList; - - /** - * @JsonProperty(String, "pid") - */ - private $pid; - - /** - * @JsonProperty(Integer, "plan_type") - */ - private $planType; - - /** - * @JsonProperty(String, "search_id") - */ - private $searchId; - - /** - * @JsonProperty(Long, "zs_duo_id") - */ - private $zsDuoId; - - /** - * @JsonProperty(String, "goods_sign") - */ - private $goodsSign; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "goods_id_list", $this->goodsIdList); - $this->setUserParam($params, "pid", $this->pid); - $this->setUserParam($params, "plan_type", $this->planType); - $this->setUserParam($params, "search_id", $this->searchId); - $this->setUserParam($params, "zs_duo_id", $this->zsDuoId); - $this->setUserParam($params, "goods_sign", $this->goodsSign); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.goods.detail"; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setGoodsIdList($goodsIdList) - { - $this->goodsIdList = $goodsIdList; - } - - public function setPid($pid) - { - $this->pid = $pid; - } - - public function setPlanType($planType) - { - $this->planType = $planType; - } - - public function setSearchId($searchId) - { - $this->searchId = $searchId; - } - - public function setZsDuoId($zsDuoId) - { - $this->zsDuoId = $zsDuoId; - } - - public function setGoodsSign($goodsSign) - { - $this->goodsSign = $goodsSign; - } - -} +, "goods_id_list") + */ + private $goodsIdList; + + /** + * @JsonProperty(String, "pid") + */ + private $pid; + + /** + * @JsonProperty(Integer, "plan_type") + */ + private $planType; + + /** + * @JsonProperty(String, "search_id") + */ + private $searchId; + + /** + * @JsonProperty(Long, "zs_duo_id") + */ + private $zsDuoId; + + /** + * @JsonProperty(String, "goods_sign") + */ + private $goodsSign; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "goods_id_list", $this->goodsIdList); + $this->setUserParam($params, "pid", $this->pid); + $this->setUserParam($params, "plan_type", $this->planType); + $this->setUserParam($params, "search_id", $this->searchId); + $this->setUserParam($params, "zs_duo_id", $this->zsDuoId); + $this->setUserParam($params, "goods_sign", $this->goodsSign); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.goods.detail"; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setGoodsIdList($goodsIdList) + { + $this->goodsIdList = $goodsIdList; + } + + public function setPid($pid) + { + $this->pid = $pid; + } + + public function setPlanType($planType) + { + $this->planType = $planType; + } + + public function setSearchId($searchId) + { + $this->searchId = $searchId; + } + + public function setZsDuoId($zsDuoId) + { + $this->zsDuoId = $zsDuoId; + } + + public function setGoodsSign($goodsSign) + { + $this->goodsSign = $goodsSign; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPidGenerateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPidGenerateRequest.php index 6e5ed5c..32fe039 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPidGenerateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPidGenerateRequest.php @@ -1,55 +1,55 @@ -, "p_id_name_list") - */ - private $pIdNameList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "number", $this->number); - $this->setUserParam($params, "p_id_name_list", $this->pIdNameList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.goods.pid.generate"; - } - - public function setNumber($number) - { - $this->number = $number; - } - - public function setPIdNameList($pIdNameList) - { - $this->pIdNameList = $pIdNameList; - } - -} +, "p_id_name_list") + */ + private $pIdNameList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "number", $this->number); + $this->setUserParam($params, "p_id_name_list", $this->pIdNameList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.goods.pid.generate"; + } + + public function setNumber($number) + { + $this->number = $number; + } + + public function setPIdNameList($pIdNameList) + { + $this->pIdNameList = $pIdNameList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPidQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPidQueryRequest.php index 776be4e..598fda0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPidQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPidQueryRequest.php @@ -1,77 +1,77 @@ -, "pid_list") - */ - private $pidList; - - /** - * @JsonProperty(Integer, "status") - */ - private $status; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "pid_list", $this->pidList); - $this->setUserParam($params, "status", $this->status); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.goods.pid.query"; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setPidList($pidList) - { - $this->pidList = $pidList; - } - - public function setStatus($status) - { - $this->status = $status; - } - -} +, "pid_list") + */ + private $pidList; + + /** + * @JsonProperty(Integer, "status") + */ + private $status; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "pid_list", $this->pidList); + $this->setUserParam($params, "status", $this->status); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.goods.pid.query"; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setPidList($pidList) + { + $this->pidList = $pidList; + } + + public function setStatus($status) + { + $this->status = $status; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPromotionUrlGenerateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPromotionUrlGenerateRequest.php index 68402bb..f7d4a81 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPromotionUrlGenerateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsPromotionUrlGenerateRequest.php @@ -1,209 +1,209 @@ -, "goods_id_list") - */ - private $goodsIdList; - - /** - * @JsonProperty(Boolean, "multi_group") - */ - private $multiGroup; - - /** - * @JsonProperty(String, "p_id") - */ - private $pId; - - /** - * @JsonProperty(String, "search_id") - */ - private $searchId; - - /** - * @JsonProperty(Long, "zs_duo_id") - */ - private $zsDuoId; - - /** - * @JsonProperty(List, "room_id_list") - */ - private $roomIdList; - - /** - * @JsonProperty(List, "target_id_list") - */ - private $targetIdList; - - /** - * @JsonProperty(Boolean, "generate_authority_url") - */ - private $generateAuthorityUrl; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "generate_mall_collect_coupon", $this->generateMallCollectCoupon); - $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); - $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); - $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); - $this->setUserParam($params, "generate_weapp_webview", $this->generateWeappWebview); - $this->setUserParam($params, "generate_weiboapp_webview", $this->generateWeiboappWebview); - $this->setUserParam($params, "generate_we_app", $this->generateWeApp); - $this->setUserParam($params, "goods_id_list", $this->goodsIdList); - $this->setUserParam($params, "multi_group", $this->multiGroup); - $this->setUserParam($params, "p_id", $this->pId); - $this->setUserParam($params, "search_id", $this->searchId); - $this->setUserParam($params, "zs_duo_id", $this->zsDuoId); - $this->setUserParam($params, "room_id_list", $this->roomIdList); - $this->setUserParam($params, "target_id_list", $this->targetIdList); - $this->setUserParam($params, "generate_authority_url", $this->generateAuthorityUrl); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.goods.promotion.url.generate"; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setGenerateMallCollectCoupon($generateMallCollectCoupon) - { - $this->generateMallCollectCoupon = $generateMallCollectCoupon; - } - - public function setGenerateQqApp($generateQqApp) - { - $this->generateQqApp = $generateQqApp; - } - - public function setGenerateSchemaUrl($generateSchemaUrl) - { - $this->generateSchemaUrl = $generateSchemaUrl; - } - - public function setGenerateShortUrl($generateShortUrl) - { - $this->generateShortUrl = $generateShortUrl; - } - - public function setGenerateWeappWebview($generateWeappWebview) - { - $this->generateWeappWebview = $generateWeappWebview; - } - - public function setGenerateWeiboappWebview($generateWeiboappWebview) - { - $this->generateWeiboappWebview = $generateWeiboappWebview; - } - - public function setGenerateWeApp($generateWeApp) - { - $this->generateWeApp = $generateWeApp; - } - - public function setGoodsIdList($goodsIdList) - { - $this->goodsIdList = $goodsIdList; - } - - public function setMultiGroup($multiGroup) - { - $this->multiGroup = $multiGroup; - } - - public function setPId($pId) - { - $this->pId = $pId; - } - - public function setSearchId($searchId) - { - $this->searchId = $searchId; - } - - public function setZsDuoId($zsDuoId) - { - $this->zsDuoId = $zsDuoId; - } - - public function setRoomIdList($roomIdList) - { - $this->roomIdList = $roomIdList; - } - - public function setTargetIdList($targetIdList) - { - $this->targetIdList = $targetIdList; - } - - public function setGenerateAuthorityUrl($generateAuthorityUrl) - { - $this->generateAuthorityUrl = $generateAuthorityUrl; - } - -} +, "goods_id_list") + */ + private $goodsIdList; + + /** + * @JsonProperty(Boolean, "multi_group") + */ + private $multiGroup; + + /** + * @JsonProperty(String, "p_id") + */ + private $pId; + + /** + * @JsonProperty(String, "search_id") + */ + private $searchId; + + /** + * @JsonProperty(Long, "zs_duo_id") + */ + private $zsDuoId; + + /** + * @JsonProperty(List, "room_id_list") + */ + private $roomIdList; + + /** + * @JsonProperty(List, "target_id_list") + */ + private $targetIdList; + + /** + * @JsonProperty(Boolean, "generate_authority_url") + */ + private $generateAuthorityUrl; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "generate_mall_collect_coupon", $this->generateMallCollectCoupon); + $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); + $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); + $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); + $this->setUserParam($params, "generate_weapp_webview", $this->generateWeappWebview); + $this->setUserParam($params, "generate_weiboapp_webview", $this->generateWeiboappWebview); + $this->setUserParam($params, "generate_we_app", $this->generateWeApp); + $this->setUserParam($params, "goods_id_list", $this->goodsIdList); + $this->setUserParam($params, "multi_group", $this->multiGroup); + $this->setUserParam($params, "p_id", $this->pId); + $this->setUserParam($params, "search_id", $this->searchId); + $this->setUserParam($params, "zs_duo_id", $this->zsDuoId); + $this->setUserParam($params, "room_id_list", $this->roomIdList); + $this->setUserParam($params, "target_id_list", $this->targetIdList); + $this->setUserParam($params, "generate_authority_url", $this->generateAuthorityUrl); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.goods.promotion.url.generate"; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setGenerateMallCollectCoupon($generateMallCollectCoupon) + { + $this->generateMallCollectCoupon = $generateMallCollectCoupon; + } + + public function setGenerateQqApp($generateQqApp) + { + $this->generateQqApp = $generateQqApp; + } + + public function setGenerateSchemaUrl($generateSchemaUrl) + { + $this->generateSchemaUrl = $generateSchemaUrl; + } + + public function setGenerateShortUrl($generateShortUrl) + { + $this->generateShortUrl = $generateShortUrl; + } + + public function setGenerateWeappWebview($generateWeappWebview) + { + $this->generateWeappWebview = $generateWeappWebview; + } + + public function setGenerateWeiboappWebview($generateWeiboappWebview) + { + $this->generateWeiboappWebview = $generateWeiboappWebview; + } + + public function setGenerateWeApp($generateWeApp) + { + $this->generateWeApp = $generateWeApp; + } + + public function setGoodsIdList($goodsIdList) + { + $this->goodsIdList = $goodsIdList; + } + + public function setMultiGroup($multiGroup) + { + $this->multiGroup = $multiGroup; + } + + public function setPId($pId) + { + $this->pId = $pId; + } + + public function setSearchId($searchId) + { + $this->searchId = $searchId; + } + + public function setZsDuoId($zsDuoId) + { + $this->zsDuoId = $zsDuoId; + } + + public function setRoomIdList($roomIdList) + { + $this->roomIdList = $roomIdList; + } + + public function setTargetIdList($targetIdList) + { + $this->targetIdList = $targetIdList; + } + + public function setGenerateAuthorityUrl($generateAuthorityUrl) + { + $this->generateAuthorityUrl = $generateAuthorityUrl; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsRecommendGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsRecommendGetRequest.php index 8134598..a7b90d5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsRecommendGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsRecommendGetRequest.php @@ -1,121 +1,121 @@ -, "goods_ids") - */ - private $goodsIds; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "channel_type", $this->channelType); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "limit", $this->limit); - $this->setUserParam($params, "list_id", $this->listId); - $this->setUserParam($params, "offset", $this->offset); - $this->setUserParam($params, "pid", $this->pid); - $this->setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "goods_ids", $this->goodsIds); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.goods.recommend.get"; - } - - public function setChannelType($channelType) - { - $this->channelType = $channelType; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setLimit($limit) - { - $this->limit = $limit; - } - - public function setListId($listId) - { - $this->listId = $listId; - } - - public function setOffset($offset) - { - $this->offset = $offset; - } - - public function setPid($pid) - { - $this->pid = $pid; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setGoodsIds($goodsIds) - { - $this->goodsIds = $goodsIds; - } - -} +, "goods_ids") + */ + private $goodsIds; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "channel_type", $this->channelType); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "limit", $this->limit); + $this->setUserParam($params, "list_id", $this->listId); + $this->setUserParam($params, "offset", $this->offset); + $this->setUserParam($params, "pid", $this->pid); + $this->setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "goods_ids", $this->goodsIds); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.goods.recommend.get"; + } + + public function setChannelType($channelType) + { + $this->channelType = $channelType; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setLimit($limit) + { + $this->limit = $limit; + } + + public function setListId($listId) + { + $this->listId = $listId; + } + + public function setOffset($offset) + { + $this->offset = $offset; + } + + public function setPid($pid) + { + $this->pid = $pid; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setGoodsIds($goodsIds) + { + $this->goodsIds = $goodsIds; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsSearchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsSearchRequest.php index f221f2b..f79c7de 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsSearchRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsSearchRequest.php @@ -1,282 +1,282 @@ -, "activity_tags") - */ - private $activityTags; - - /** - * @JsonProperty(Long, "cat_id") - */ - private $catId; - - /** - * @JsonProperty(String, "custom_parameters") - */ - private $customParameters; - - /** - * @JsonProperty(List, "goods_id_list") - */ - private $goodsIdList; - - /** - * @JsonProperty(Boolean, "is_brand_goods") - */ - private $isBrandGoods; - - /** - * @JsonProperty(String, "keyword") - */ - private $keyword; - - /** - * @JsonProperty(String, "list_id") - */ - private $listId; - - /** - * @JsonProperty(Integer, "merchant_type") - */ - private $merchantType; - - /** - * @JsonProperty(List, "merchant_type_list") - */ - private $merchantTypeList; - - /** - * @JsonProperty(Long, "opt_id") - */ - private $optId; - - /** - * @JsonProperty(Integer, "page") - */ - private $page; - - /** - * @JsonProperty(Integer, "page_size") - */ - private $pageSize; - - /** - * @JsonProperty(String, "pid") - */ - private $pid; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkGoodsSearchRequest_RangeListItem>, "range_list") - */ - private $rangeList; - - /** - * @JsonProperty(Integer, "sort_type") - */ - private $sortType; - - /** - * @JsonProperty(Boolean, "with_coupon") - */ - private $withCoupon; - - /** - * @JsonProperty(List, "block_cats") - */ - private $blockCats; - - /** - * @JsonProperty(List, "block_cat_packages") - */ - private $blockCatPackages; - - /** - * @JsonProperty(List, "goods_sign_list") - */ - private $goodsSignList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "activity_tags", $this->activityTags); - $this->setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "goods_id_list", $this->goodsIdList); - $this->setUserParam($params, "is_brand_goods", $this->isBrandGoods); - $this->setUserParam($params, "keyword", $this->keyword); - $this->setUserParam($params, "list_id", $this->listId); - $this->setUserParam($params, "merchant_type", $this->merchantType); - $this->setUserParam($params, "merchant_type_list", $this->merchantTypeList); - $this->setUserParam($params, "opt_id", $this->optId); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "pid", $this->pid); - $this->setUserParam($params, "range_list", $this->rangeList); - $this->setUserParam($params, "sort_type", $this->sortType); - $this->setUserParam($params, "with_coupon", $this->withCoupon); - $this->setUserParam($params, "block_cats", $this->blockCats); - $this->setUserParam($params, "block_cat_packages", $this->blockCatPackages); - $this->setUserParam($params, "goods_sign_list", $this->goodsSignList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.goods.search"; - } - - public function setActivityTags($activityTags) - { - $this->activityTags = $activityTags; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setGoodsIdList($goodsIdList) - { - $this->goodsIdList = $goodsIdList; - } - - public function setIsBrandGoods($isBrandGoods) - { - $this->isBrandGoods = $isBrandGoods; - } - - public function setKeyword($keyword) - { - $this->keyword = $keyword; - } - - public function setListId($listId) - { - $this->listId = $listId; - } - - public function setMerchantType($merchantType) - { - $this->merchantType = $merchantType; - } - - public function setMerchantTypeList($merchantTypeList) - { - $this->merchantTypeList = $merchantTypeList; - } - - public function setOptId($optId) - { - $this->optId = $optId; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setPid($pid) - { - $this->pid = $pid; - } - - public function setRangeList($rangeList) - { - $this->rangeList = $rangeList; - } - - public function setSortType($sortType) - { - $this->sortType = $sortType; - } - - public function setWithCoupon($withCoupon) - { - $this->withCoupon = $withCoupon; - } - - public function setBlockCats($blockCats) - { - $this->blockCats = $blockCats; - } - - public function setBlockCatPackages($blockCatPackages) - { - $this->blockCatPackages = $blockCatPackages; - } - - public function setGoodsSignList($goodsSignList) - { - $this->goodsSignList = $goodsSignList; - } - -} - -class PddDdkGoodsSearchRequest_RangeListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "range_from") - */ - private $rangeFrom; - - /** - * @JsonProperty(Integer, "range_id") - */ - private $rangeId; - - /** - * @JsonProperty(Long, "range_to") - */ - private $rangeTo; - - public function setRangeFrom($rangeFrom) - { - $this->rangeFrom = $rangeFrom; - } - - public function setRangeId($rangeId) - { - $this->rangeId = $rangeId; - } - - public function setRangeTo($rangeTo) - { - $this->rangeTo = $rangeTo; - } - -} +, "activity_tags") + */ + private $activityTags; + + /** + * @JsonProperty(Long, "cat_id") + */ + private $catId; + + /** + * @JsonProperty(String, "custom_parameters") + */ + private $customParameters; + + /** + * @JsonProperty(List, "goods_id_list") + */ + private $goodsIdList; + + /** + * @JsonProperty(Boolean, "is_brand_goods") + */ + private $isBrandGoods; + + /** + * @JsonProperty(String, "keyword") + */ + private $keyword; + + /** + * @JsonProperty(String, "list_id") + */ + private $listId; + + /** + * @JsonProperty(Integer, "merchant_type") + */ + private $merchantType; + + /** + * @JsonProperty(List, "merchant_type_list") + */ + private $merchantTypeList; + + /** + * @JsonProperty(Long, "opt_id") + */ + private $optId; + + /** + * @JsonProperty(Integer, "page") + */ + private $page; + + /** + * @JsonProperty(Integer, "page_size") + */ + private $pageSize; + + /** + * @JsonProperty(String, "pid") + */ + private $pid; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkGoodsSearchRequest_RangeListItem>, "range_list") + */ + private $rangeList; + + /** + * @JsonProperty(Integer, "sort_type") + */ + private $sortType; + + /** + * @JsonProperty(Boolean, "with_coupon") + */ + private $withCoupon; + + /** + * @JsonProperty(List, "block_cats") + */ + private $blockCats; + + /** + * @JsonProperty(List, "block_cat_packages") + */ + private $blockCatPackages; + + /** + * @JsonProperty(List, "goods_sign_list") + */ + private $goodsSignList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "activity_tags", $this->activityTags); + $this->setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "goods_id_list", $this->goodsIdList); + $this->setUserParam($params, "is_brand_goods", $this->isBrandGoods); + $this->setUserParam($params, "keyword", $this->keyword); + $this->setUserParam($params, "list_id", $this->listId); + $this->setUserParam($params, "merchant_type", $this->merchantType); + $this->setUserParam($params, "merchant_type_list", $this->merchantTypeList); + $this->setUserParam($params, "opt_id", $this->optId); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "pid", $this->pid); + $this->setUserParam($params, "range_list", $this->rangeList); + $this->setUserParam($params, "sort_type", $this->sortType); + $this->setUserParam($params, "with_coupon", $this->withCoupon); + $this->setUserParam($params, "block_cats", $this->blockCats); + $this->setUserParam($params, "block_cat_packages", $this->blockCatPackages); + $this->setUserParam($params, "goods_sign_list", $this->goodsSignList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.goods.search"; + } + + public function setActivityTags($activityTags) + { + $this->activityTags = $activityTags; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setGoodsIdList($goodsIdList) + { + $this->goodsIdList = $goodsIdList; + } + + public function setIsBrandGoods($isBrandGoods) + { + $this->isBrandGoods = $isBrandGoods; + } + + public function setKeyword($keyword) + { + $this->keyword = $keyword; + } + + public function setListId($listId) + { + $this->listId = $listId; + } + + public function setMerchantType($merchantType) + { + $this->merchantType = $merchantType; + } + + public function setMerchantTypeList($merchantTypeList) + { + $this->merchantTypeList = $merchantTypeList; + } + + public function setOptId($optId) + { + $this->optId = $optId; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setPid($pid) + { + $this->pid = $pid; + } + + public function setRangeList($rangeList) + { + $this->rangeList = $rangeList; + } + + public function setSortType($sortType) + { + $this->sortType = $sortType; + } + + public function setWithCoupon($withCoupon) + { + $this->withCoupon = $withCoupon; + } + + public function setBlockCats($blockCats) + { + $this->blockCats = $blockCats; + } + + public function setBlockCatPackages($blockCatPackages) + { + $this->blockCatPackages = $blockCatPackages; + } + + public function setGoodsSignList($goodsSignList) + { + $this->goodsSignList = $goodsSignList; + } + +} + +class PddDdkGoodsSearchRequest_RangeListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "range_from") + */ + private $rangeFrom; + + /** + * @JsonProperty(Integer, "range_id") + */ + private $rangeId; + + /** + * @JsonProperty(Long, "range_to") + */ + private $rangeTo; + + public function setRangeFrom($rangeFrom) + { + $this->rangeFrom = $rangeFrom; + } + + public function setRangeId($rangeId) + { + $this->rangeId = $rangeId; + } + + public function setRangeTo($rangeTo) + { + $this->rangeTo = $rangeTo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsZsUnitUrlGenRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsZsUnitUrlGenRequest.php index 57b2c61..3ee1a40 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsZsUnitUrlGenRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkGoodsZsUnitUrlGenRequest.php @@ -1,66 +1,66 @@ -setUserParam($params, "pid", $this->pid); - $this->setUserParam($params, "source_url", $this->sourceUrl); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.goods.zs.unit.url.gen"; - } - - public function setPid($pid) - { - $this->pid = $pid; - } - - public function setSourceUrl($sourceUrl) - { - $this->sourceUrl = $sourceUrl; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - -} +setUserParam($params, "pid", $this->pid); + $this->setUserParam($params, "source_url", $this->sourceUrl); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.goods.zs.unit.url.gen"; + } + + public function setPid($pid) + { + $this->pid = $pid; + } + + public function setSourceUrl($sourceUrl) + { + $this->sourceUrl = $sourceUrl; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkMemberAuthorityQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkMemberAuthorityQueryRequest.php index 3201f4a..e231c0d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkMemberAuthorityQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkMemberAuthorityQueryRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "pid", $this->pid); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.member.authority.query"; - } - - public function setPid($pid) - { - $this->pid = $pid; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - -} +setUserParam($params, "pid", $this->pid); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.member.authority.query"; + } + + public function setPid($pid) + { + $this->pid = $pid; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthCmsPromUrlGenerateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthCmsPromUrlGenerateRequest.php index 881b74d..5709557 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthCmsPromUrlGenerateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthCmsPromUrlGenerateRequest.php @@ -1,143 +1,143 @@ -, "p_id_list") - */ - private $pIdList; - - /** - * @JsonProperty(Boolean, "generate_we_app") - */ - private $generateWeApp; - - /** - * @JsonProperty(String, "keyword") - */ - private $keyword; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "channel_type", $this->channelType); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "generate_mobile", $this->generateMobile); - $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); - $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); - $this->setUserParam($params, "generate_weapp_webview", $this->generateWeappWebview); - $this->setUserParam($params, "multi_group", $this->multiGroup); - $this->setUserParam($params, "p_id_list", $this->pIdList); - $this->setUserParam($params, "generate_we_app", $this->generateWeApp); - $this->setUserParam($params, "keyword", $this->keyword); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.cms.prom.url.generate"; - } - - public function setChannelType($channelType) - { - $this->channelType = $channelType; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setGenerateMobile($generateMobile) - { - $this->generateMobile = $generateMobile; - } - - public function setGenerateSchemaUrl($generateSchemaUrl) - { - $this->generateSchemaUrl = $generateSchemaUrl; - } - - public function setGenerateShortUrl($generateShortUrl) - { - $this->generateShortUrl = $generateShortUrl; - } - - public function setGenerateWeappWebview($generateWeappWebview) - { - $this->generateWeappWebview = $generateWeappWebview; - } - - public function setMultiGroup($multiGroup) - { - $this->multiGroup = $multiGroup; - } - - public function setPIdList($pIdList) - { - $this->pIdList = $pIdList; - } - - public function setGenerateWeApp($generateWeApp) - { - $this->generateWeApp = $generateWeApp; - } - - public function setKeyword($keyword) - { - $this->keyword = $keyword; - } - -} +, "p_id_list") + */ + private $pIdList; + + /** + * @JsonProperty(Boolean, "generate_we_app") + */ + private $generateWeApp; + + /** + * @JsonProperty(String, "keyword") + */ + private $keyword; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "channel_type", $this->channelType); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "generate_mobile", $this->generateMobile); + $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); + $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); + $this->setUserParam($params, "generate_weapp_webview", $this->generateWeappWebview); + $this->setUserParam($params, "multi_group", $this->multiGroup); + $this->setUserParam($params, "p_id_list", $this->pIdList); + $this->setUserParam($params, "generate_we_app", $this->generateWeApp); + $this->setUserParam($params, "keyword", $this->keyword); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.cms.prom.url.generate"; + } + + public function setChannelType($channelType) + { + $this->channelType = $channelType; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setGenerateMobile($generateMobile) + { + $this->generateMobile = $generateMobile; + } + + public function setGenerateSchemaUrl($generateSchemaUrl) + { + $this->generateSchemaUrl = $generateSchemaUrl; + } + + public function setGenerateShortUrl($generateShortUrl) + { + $this->generateShortUrl = $generateShortUrl; + } + + public function setGenerateWeappWebview($generateWeappWebview) + { + $this->generateWeappWebview = $generateWeappWebview; + } + + public function setMultiGroup($multiGroup) + { + $this->multiGroup = $multiGroup; + } + + public function setPIdList($pIdList) + { + $this->pIdList = $pIdList; + } + + public function setGenerateWeApp($generateWeApp) + { + $this->generateWeApp = $generateWeApp; + } + + public function setKeyword($keyword) + { + $this->keyword = $keyword; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPidGenerateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPidGenerateRequest.php index f6c4d47..3f6ea70 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPidGenerateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPidGenerateRequest.php @@ -1,55 +1,55 @@ -, "p_id_name_list") - */ - private $pIdNameList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "number", $this->number); - $this->setUserParam($params, "p_id_name_list", $this->pIdNameList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.goods.pid.generate"; - } - - public function setNumber($number) - { - $this->number = $number; - } - - public function setPIdNameList($pIdNameList) - { - $this->pIdNameList = $pIdNameList; - } - -} +, "p_id_name_list") + */ + private $pIdNameList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "number", $this->number); + $this->setUserParam($params, "p_id_name_list", $this->pIdNameList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.goods.pid.generate"; + } + + public function setNumber($number) + { + $this->number = $number; + } + + public function setPIdNameList($pIdNameList) + { + $this->pIdNameList = $pIdNameList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPidQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPidQueryRequest.php index 0d262f8..0924b23 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPidQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPidQueryRequest.php @@ -1,66 +1,66 @@ -, "pid_list") - */ - private $pidList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "pid_list", $this->pidList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.goods.pid.query"; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setPidList($pidList) - { - $this->pidList = $pidList; - } - -} +, "pid_list") + */ + private $pidList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "pid_list", $this->pidList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.goods.pid.query"; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setPidList($pidList) + { + $this->pidList = $pidList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPromUrlGenerateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPromUrlGenerateRequest.php index 2994319..59f55ca 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPromUrlGenerateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsPromUrlGenerateRequest.php @@ -1,198 +1,198 @@ -, "goods_id_list") - */ - private $goodsIdList; - - /** - * @JsonProperty(Boolean, "multi_group") - */ - private $multiGroup; - - /** - * @JsonProperty(String, "p_id") - */ - private $pId; - - /** - * @JsonProperty(String, "search_id") - */ - private $searchId; - - /** - * @JsonProperty(Long, "zs_duo_id") - */ - private $zsDuoId; - - /** - * @JsonProperty(Boolean, "force_duo_id") - */ - private $forceDuoId; - - /** - * @JsonProperty(Boolean, "generate_authority_url") - */ - private $generateAuthorityUrl; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "generate_mall_collect_coupon", $this->generateMallCollectCoupon); - $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); - $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); - $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); - $this->setUserParam($params, "generate_weapp_webview", $this->generateWeappWebview); - $this->setUserParam($params, "generate_weiboapp_webview", $this->generateWeiboappWebview); - $this->setUserParam($params, "generate_we_app", $this->generateWeApp); - $this->setUserParam($params, "goods_id_list", $this->goodsIdList); - $this->setUserParam($params, "multi_group", $this->multiGroup); - $this->setUserParam($params, "p_id", $this->pId); - $this->setUserParam($params, "search_id", $this->searchId); - $this->setUserParam($params, "zs_duo_id", $this->zsDuoId); - $this->setUserParam($params, "force_duo_id", $this->forceDuoId); - $this->setUserParam($params, "generate_authority_url", $this->generateAuthorityUrl); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.goods.prom.url.generate"; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setGenerateMallCollectCoupon($generateMallCollectCoupon) - { - $this->generateMallCollectCoupon = $generateMallCollectCoupon; - } - - public function setGenerateQqApp($generateQqApp) - { - $this->generateQqApp = $generateQqApp; - } - - public function setGenerateSchemaUrl($generateSchemaUrl) - { - $this->generateSchemaUrl = $generateSchemaUrl; - } - - public function setGenerateShortUrl($generateShortUrl) - { - $this->generateShortUrl = $generateShortUrl; - } - - public function setGenerateWeappWebview($generateWeappWebview) - { - $this->generateWeappWebview = $generateWeappWebview; - } - - public function setGenerateWeiboappWebview($generateWeiboappWebview) - { - $this->generateWeiboappWebview = $generateWeiboappWebview; - } - - public function setGenerateWeApp($generateWeApp) - { - $this->generateWeApp = $generateWeApp; - } - - public function setGoodsIdList($goodsIdList) - { - $this->goodsIdList = $goodsIdList; - } - - public function setMultiGroup($multiGroup) - { - $this->multiGroup = $multiGroup; - } - - public function setPId($pId) - { - $this->pId = $pId; - } - - public function setSearchId($searchId) - { - $this->searchId = $searchId; - } - - public function setZsDuoId($zsDuoId) - { - $this->zsDuoId = $zsDuoId; - } - - public function setForceDuoId($forceDuoId) - { - $this->forceDuoId = $forceDuoId; - } - - public function setGenerateAuthorityUrl($generateAuthorityUrl) - { - $this->generateAuthorityUrl = $generateAuthorityUrl; - } - -} +, "goods_id_list") + */ + private $goodsIdList; + + /** + * @JsonProperty(Boolean, "multi_group") + */ + private $multiGroup; + + /** + * @JsonProperty(String, "p_id") + */ + private $pId; + + /** + * @JsonProperty(String, "search_id") + */ + private $searchId; + + /** + * @JsonProperty(Long, "zs_duo_id") + */ + private $zsDuoId; + + /** + * @JsonProperty(Boolean, "force_duo_id") + */ + private $forceDuoId; + + /** + * @JsonProperty(Boolean, "generate_authority_url") + */ + private $generateAuthorityUrl; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "generate_mall_collect_coupon", $this->generateMallCollectCoupon); + $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); + $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); + $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); + $this->setUserParam($params, "generate_weapp_webview", $this->generateWeappWebview); + $this->setUserParam($params, "generate_weiboapp_webview", $this->generateWeiboappWebview); + $this->setUserParam($params, "generate_we_app", $this->generateWeApp); + $this->setUserParam($params, "goods_id_list", $this->goodsIdList); + $this->setUserParam($params, "multi_group", $this->multiGroup); + $this->setUserParam($params, "p_id", $this->pId); + $this->setUserParam($params, "search_id", $this->searchId); + $this->setUserParam($params, "zs_duo_id", $this->zsDuoId); + $this->setUserParam($params, "force_duo_id", $this->forceDuoId); + $this->setUserParam($params, "generate_authority_url", $this->generateAuthorityUrl); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.goods.prom.url.generate"; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setGenerateMallCollectCoupon($generateMallCollectCoupon) + { + $this->generateMallCollectCoupon = $generateMallCollectCoupon; + } + + public function setGenerateQqApp($generateQqApp) + { + $this->generateQqApp = $generateQqApp; + } + + public function setGenerateSchemaUrl($generateSchemaUrl) + { + $this->generateSchemaUrl = $generateSchemaUrl; + } + + public function setGenerateShortUrl($generateShortUrl) + { + $this->generateShortUrl = $generateShortUrl; + } + + public function setGenerateWeappWebview($generateWeappWebview) + { + $this->generateWeappWebview = $generateWeappWebview; + } + + public function setGenerateWeiboappWebview($generateWeiboappWebview) + { + $this->generateWeiboappWebview = $generateWeiboappWebview; + } + + public function setGenerateWeApp($generateWeApp) + { + $this->generateWeApp = $generateWeApp; + } + + public function setGoodsIdList($goodsIdList) + { + $this->goodsIdList = $goodsIdList; + } + + public function setMultiGroup($multiGroup) + { + $this->multiGroup = $multiGroup; + } + + public function setPId($pId) + { + $this->pId = $pId; + } + + public function setSearchId($searchId) + { + $this->searchId = $searchId; + } + + public function setZsDuoId($zsDuoId) + { + $this->zsDuoId = $zsDuoId; + } + + public function setForceDuoId($forceDuoId) + { + $this->forceDuoId = $forceDuoId; + } + + public function setGenerateAuthorityUrl($generateAuthorityUrl) + { + $this->generateAuthorityUrl = $generateAuthorityUrl; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsRecommendGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsRecommendGetRequest.php index 213285c..05905fb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsRecommendGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsRecommendGetRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "channel_type", $this->channelType); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "limit", $this->limit); - $this->setUserParam($params, "list_id", $this->listId); - $this->setUserParam($params, "offset", $this->offset); - $this->setUserParam($params, "pid", $this->pid); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.goods.recommend.get"; - } - - public function setChannelType($channelType) - { - $this->channelType = $channelType; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setLimit($limit) - { - $this->limit = $limit; - } - - public function setListId($listId) - { - $this->listId = $listId; - } - - public function setOffset($offset) - { - $this->offset = $offset; - } - - public function setPid($pid) - { - $this->pid = $pid; - } - -} +setUserParam($params, "channel_type", $this->channelType); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "limit", $this->limit); + $this->setUserParam($params, "list_id", $this->listId); + $this->setUserParam($params, "offset", $this->offset); + $this->setUserParam($params, "pid", $this->pid); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.goods.recommend.get"; + } + + public function setChannelType($channelType) + { + $this->channelType = $channelType; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setLimit($limit) + { + $this->limit = $limit; + } + + public function setListId($listId) + { + $this->listId = $listId; + } + + public function setOffset($offset) + { + $this->offset = $offset; + } + + public function setPid($pid) + { + $this->pid = $pid; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsZsUnitUrlGenRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsZsUnitUrlGenRequest.php index 02feaaf..21531c5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsZsUnitUrlGenRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthGoodsZsUnitUrlGenRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); - $this->setUserParam($params, "pid", $this->pid); - $this->setUserParam($params, "source_url", $this->sourceUrl); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.goods.zs.unit.url.gen"; - } - - public function setGenerateSchemaUrl($generateSchemaUrl) - { - $this->generateSchemaUrl = $generateSchemaUrl; - } - - public function setPid($pid) - { - $this->pid = $pid; - } - - public function setSourceUrl($sourceUrl) - { - $this->sourceUrl = $sourceUrl; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - -} +setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); + $this->setUserParam($params, "pid", $this->pid); + $this->setUserParam($params, "source_url", $this->sourceUrl); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.goods.zs.unit.url.gen"; + } + + public function setGenerateSchemaUrl($generateSchemaUrl) + { + $this->generateSchemaUrl = $generateSchemaUrl; + } + + public function setPid($pid) + { + $this->pid = $pid; + } + + public function setSourceUrl($sourceUrl) + { + $this->sourceUrl = $sourceUrl; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthMemberAuthorityQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthMemberAuthorityQueryRequest.php index be32999..c28a81f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthMemberAuthorityQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthMemberAuthorityQueryRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "pid", $this->pid); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.member.authority.query"; - } - - public function setPid($pid) - { - $this->pid = $pid; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - -} +setUserParam($params, "pid", $this->pid); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.member.authority.query"; + } + + public function setPid($pid) + { + $this->pid = $pid; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthOrderDetailGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthOrderDetailGetRequest.php index 1bdb584..7fbff72 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthOrderDetailGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthOrderDetailGetRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "query_order_type", $this->queryOrderType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.order.detail.get"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setQueryOrderType($queryOrderType) - { - $this->queryOrderType = $queryOrderType; - } - -} +setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "query_order_type", $this->queryOrderType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.order.detail.get"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setQueryOrderType($queryOrderType) + { + $this->queryOrderType = $queryOrderType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthResourceUrlGenRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthResourceUrlGenRequest.php index 5d48257..2c5f392 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthResourceUrlGenRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthResourceUrlGenRequest.php @@ -1,110 +1,110 @@ -setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "generate_we_app", $this->generateWeApp); - $this->setUserParam($params, "pid", $this->pid); - $this->setUserParam($params, "resource_type", $this->resourceType); - $this->setUserParam($params, "url", $this->url); - $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); - $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.resource.url.gen"; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setGenerateWeApp($generateWeApp) - { - $this->generateWeApp = $generateWeApp; - } - - public function setPid($pid) - { - $this->pid = $pid; - } - - public function setResourceType($resourceType) - { - $this->resourceType = $resourceType; - } - - public function setUrl($url) - { - $this->url = $url; - } - - public function setGenerateSchemaUrl($generateSchemaUrl) - { - $this->generateSchemaUrl = $generateSchemaUrl; - } - - public function setGenerateQqApp($generateQqApp) - { - $this->generateQqApp = $generateQqApp; - } - -} +setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "generate_we_app", $this->generateWeApp); + $this->setUserParam($params, "pid", $this->pid); + $this->setUserParam($params, "resource_type", $this->resourceType); + $this->setUserParam($params, "url", $this->url); + $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); + $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.resource.url.gen"; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setGenerateWeApp($generateWeApp) + { + $this->generateWeApp = $generateWeApp; + } + + public function setPid($pid) + { + $this->pid = $pid; + } + + public function setResourceType($resourceType) + { + $this->resourceType = $resourceType; + } + + public function setUrl($url) + { + $this->url = $url; + } + + public function setGenerateSchemaUrl($generateSchemaUrl) + { + $this->generateSchemaUrl = $generateSchemaUrl; + } + + public function setGenerateQqApp($generateQqApp) + { + $this->generateQqApp = $generateQqApp; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthRpPromUrlGenerateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthRpPromUrlGenerateRequest.php index 77ed25a..23807de 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthRpPromUrlGenerateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthRpPromUrlGenerateRequest.php @@ -1,324 +1,324 @@ -, "p_id_list") - */ - private $pIdList; - - /** - * @JsonProperty(Long, "amount") - */ - private $amount; - - /** - * @JsonProperty(Long, "scratch_card_amount") - */ - private $scratchCardAmount; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "channel_type", $this->channelType); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "diy_lottery_param", $this->diyLotteryParam); - $this->setUserParam($params, "diy_red_packet_param", $this->diyRedPacketParam); - $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); - $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); - $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); - $this->setUserParam($params, "generate_we_app", $this->generateWeApp); - $this->setUserParam($params, "p_id_list", $this->pIdList); - $this->setUserParam($params, "amount", $this->amount); - $this->setUserParam($params, "scratch_card_amount", $this->scratchCardAmount); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.rp.prom.url.generate"; - } - - public function setChannelType($channelType) - { - $this->channelType = $channelType; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setDiyLotteryParam($diyLotteryParam) - { - $this->diyLotteryParam = $diyLotteryParam; - } - - public function setDiyRedPacketParam($diyRedPacketParam) - { - $this->diyRedPacketParam = $diyRedPacketParam; - } - - public function setGenerateQqApp($generateQqApp) - { - $this->generateQqApp = $generateQqApp; - } - - public function setGenerateSchemaUrl($generateSchemaUrl) - { - $this->generateSchemaUrl = $generateSchemaUrl; - } - - public function setGenerateShortUrl($generateShortUrl) - { - $this->generateShortUrl = $generateShortUrl; - } - - public function setGenerateWeApp($generateWeApp) - { - $this->generateWeApp = $generateWeApp; - } - - public function setPIdList($pIdList) - { - $this->pIdList = $pIdList; - } - - public function setAmount($amount) - { - $this->amount = $amount; - } - - public function setScratchCardAmount($scratchCardAmount) - { - $this->scratchCardAmount = $scratchCardAmount; - } - -} - -class PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParam extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "opt_id") - */ - private $optId; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem>, "range_items") - */ - private $rangeItems; - - public function setOptId($optId) - { - $this->optId = $optId; - } - - public function setRangeItems($rangeItems) - { - $this->rangeItems = $rangeItems; - } - -} - -class PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "range_from") - */ - private $rangeFrom; - - /** - * @JsonProperty(Integer, "range_id") - */ - private $rangeId; - - /** - * @JsonProperty(Long, "range_to") - */ - private $rangeTo; - - public function setRangeFrom($rangeFrom) - { - $this->rangeFrom = $rangeFrom; - } - - public function setRangeId($rangeId) - { - $this->rangeId = $rangeId; - } - - public function setRangeTo($rangeTo) - { - $this->rangeTo = $rangeTo; - } - -} - -class PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParam extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List, "amount_probability") - */ - private $amountProbability; - - /** - * @JsonProperty(Boolean, "dis_text") - */ - private $disText; - - /** - * @JsonProperty(Boolean, "not_show_background") - */ - private $notShowBackground; - - /** - * @JsonProperty(Integer, "opt_id") - */ - private $optId; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem>, "range_items") - */ - private $rangeItems; - - public function setAmountProbability($amountProbability) - { - $this->amountProbability = $amountProbability; - } - - public function setDisText($disText) - { - $this->disText = $disText; - } - - public function setNotShowBackground($notShowBackground) - { - $this->notShowBackground = $notShowBackground; - } - - public function setOptId($optId) - { - $this->optId = $optId; - } - - public function setRangeItems($rangeItems) - { - $this->rangeItems = $rangeItems; - } - -} - -class PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "range_from") - */ - private $rangeFrom; - - /** - * @JsonProperty(Integer, "range_id") - */ - private $rangeId; - - /** - * @JsonProperty(Long, "range_to") - */ - private $rangeTo; - - public function setRangeFrom($rangeFrom) - { - $this->rangeFrom = $rangeFrom; - } - - public function setRangeId($rangeId) - { - $this->rangeId = $rangeId; - } - - public function setRangeTo($rangeTo) - { - $this->rangeTo = $rangeTo; - } - -} +, "p_id_list") + */ + private $pIdList; + + /** + * @JsonProperty(Long, "amount") + */ + private $amount; + + /** + * @JsonProperty(Long, "scratch_card_amount") + */ + private $scratchCardAmount; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "channel_type", $this->channelType); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "diy_lottery_param", $this->diyLotteryParam); + $this->setUserParam($params, "diy_red_packet_param", $this->diyRedPacketParam); + $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); + $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); + $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); + $this->setUserParam($params, "generate_we_app", $this->generateWeApp); + $this->setUserParam($params, "p_id_list", $this->pIdList); + $this->setUserParam($params, "amount", $this->amount); + $this->setUserParam($params, "scratch_card_amount", $this->scratchCardAmount); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.rp.prom.url.generate"; + } + + public function setChannelType($channelType) + { + $this->channelType = $channelType; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setDiyLotteryParam($diyLotteryParam) + { + $this->diyLotteryParam = $diyLotteryParam; + } + + public function setDiyRedPacketParam($diyRedPacketParam) + { + $this->diyRedPacketParam = $diyRedPacketParam; + } + + public function setGenerateQqApp($generateQqApp) + { + $this->generateQqApp = $generateQqApp; + } + + public function setGenerateSchemaUrl($generateSchemaUrl) + { + $this->generateSchemaUrl = $generateSchemaUrl; + } + + public function setGenerateShortUrl($generateShortUrl) + { + $this->generateShortUrl = $generateShortUrl; + } + + public function setGenerateWeApp($generateWeApp) + { + $this->generateWeApp = $generateWeApp; + } + + public function setPIdList($pIdList) + { + $this->pIdList = $pIdList; + } + + public function setAmount($amount) + { + $this->amount = $amount; + } + + public function setScratchCardAmount($scratchCardAmount) + { + $this->scratchCardAmount = $scratchCardAmount; + } + +} + +class PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParam extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "opt_id") + */ + private $optId; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem>, "range_items") + */ + private $rangeItems; + + public function setOptId($optId) + { + $this->optId = $optId; + } + + public function setRangeItems($rangeItems) + { + $this->rangeItems = $rangeItems; + } + +} + +class PddDdkOauthRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "range_from") + */ + private $rangeFrom; + + /** + * @JsonProperty(Integer, "range_id") + */ + private $rangeId; + + /** + * @JsonProperty(Long, "range_to") + */ + private $rangeTo; + + public function setRangeFrom($rangeFrom) + { + $this->rangeFrom = $rangeFrom; + } + + public function setRangeId($rangeId) + { + $this->rangeId = $rangeId; + } + + public function setRangeTo($rangeTo) + { + $this->rangeTo = $rangeTo; + } + +} + +class PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParam extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List, "amount_probability") + */ + private $amountProbability; + + /** + * @JsonProperty(Boolean, "dis_text") + */ + private $disText; + + /** + * @JsonProperty(Boolean, "not_show_background") + */ + private $notShowBackground; + + /** + * @JsonProperty(Integer, "opt_id") + */ + private $optId; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem>, "range_items") + */ + private $rangeItems; + + public function setAmountProbability($amountProbability) + { + $this->amountProbability = $amountProbability; + } + + public function setDisText($disText) + { + $this->disText = $disText; + } + + public function setNotShowBackground($notShowBackground) + { + $this->notShowBackground = $notShowBackground; + } + + public function setOptId($optId) + { + $this->optId = $optId; + } + + public function setRangeItems($rangeItems) + { + $this->rangeItems = $rangeItems; + } + +} + +class PddDdkOauthRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "range_from") + */ + private $rangeFrom; + + /** + * @JsonProperty(Integer, "range_id") + */ + private $rangeId; + + /** + * @JsonProperty(Long, "range_to") + */ + private $rangeTo; + + public function setRangeFrom($rangeFrom) + { + $this->rangeFrom = $rangeFrom; + } + + public function setRangeId($rangeId) + { + $this->rangeId = $rangeId; + } + + public function setRangeTo($rangeTo) + { + $this->rangeTo = $rangeTo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthTopGoodsListQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthTopGoodsListQueryRequest.php index 2592878..7212681 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthTopGoodsListQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOauthTopGoodsListQueryRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "limit", $this->limit); - $this->setUserParam($params, "list_id", $this->listId); - $this->setUserParam($params, "offset", $this->offset); - $this->setUserParam($params, "p_id", $this->pId); - $this->setUserParam($params, "sort_type", $this->sortType); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.oauth.top.goods.list.query"; - } - - public function setLimit($limit) - { - $this->limit = $limit; - } - - public function setListId($listId) - { - $this->listId = $listId; - } - - public function setOffset($offset) - { - $this->offset = $offset; - } - - public function setPId($pId) - { - $this->pId = $pId; - } - - public function setSortType($sortType) - { - $this->sortType = $sortType; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - -} +setUserParam($params, "limit", $this->limit); + $this->setUserParam($params, "list_id", $this->listId); + $this->setUserParam($params, "offset", $this->offset); + $this->setUserParam($params, "p_id", $this->pId); + $this->setUserParam($params, "sort_type", $this->sortType); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.oauth.top.goods.list.query"; + } + + public function setLimit($limit) + { + $this->limit = $limit; + } + + public function setListId($listId) + { + $this->listId = $listId; + } + + public function setOffset($offset) + { + $this->offset = $offset; + } + + public function setPId($pId) + { + $this->pId = $pId; + } + + public function setSortType($sortType) + { + $this->sortType = $sortType; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderDetailGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderDetailGetRequest.php index eb47d23..aa46bd0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderDetailGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderDetailGetRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "query_order_type", $this->queryOrderType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.order.detail.get"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setQueryOrderType($queryOrderType) - { - $this->queryOrderType = $queryOrderType; - } - -} +setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "query_order_type", $this->queryOrderType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.order.detail.get"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setQueryOrderType($queryOrderType) + { + $this->queryOrderType = $queryOrderType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderListIncrementGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderListIncrementGetRequest.php index 585cfa7..592bdce 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderListIncrementGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderListIncrementGetRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "end_update_time", $this->endUpdateTime); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "return_count", $this->returnCount); - $this->setUserParam($params, "start_update_time", $this->startUpdateTime); - $this->setUserParam($params, "query_order_type", $this->queryOrderType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.order.list.increment.get"; - } - - public function setEndUpdateTime($endUpdateTime) - { - $this->endUpdateTime = $endUpdateTime; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setReturnCount($returnCount) - { - $this->returnCount = $returnCount; - } - - public function setStartUpdateTime($startUpdateTime) - { - $this->startUpdateTime = $startUpdateTime; - } - - public function setQueryOrderType($queryOrderType) - { - $this->queryOrderType = $queryOrderType; - } - -} +setUserParam($params, "end_update_time", $this->endUpdateTime); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "return_count", $this->returnCount); + $this->setUserParam($params, "start_update_time", $this->startUpdateTime); + $this->setUserParam($params, "query_order_type", $this->queryOrderType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.order.list.increment.get"; + } + + public function setEndUpdateTime($endUpdateTime) + { + $this->endUpdateTime = $endUpdateTime; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setReturnCount($returnCount) + { + $this->returnCount = $returnCount; + } + + public function setStartUpdateTime($startUpdateTime) + { + $this->startUpdateTime = $startUpdateTime; + } + + public function setQueryOrderType($queryOrderType) + { + $this->queryOrderType = $queryOrderType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderListRangeGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderListRangeGetRequest.php index 7f1bbe7..b103ddb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderListRangeGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkOrderListRangeGetRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "end_time", $this->endTime); - $this->setUserParam($params, "last_order_id", $this->lastOrderId); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "start_time", $this->startTime); - $this->setUserParam($params, "query_order_type", $this->queryOrderType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.order.list.range.get"; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setLastOrderId($lastOrderId) - { - $this->lastOrderId = $lastOrderId; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - - public function setQueryOrderType($queryOrderType) - { - $this->queryOrderType = $queryOrderType; - } - -} +setUserParam($params, "end_time", $this->endTime); + $this->setUserParam($params, "last_order_id", $this->lastOrderId); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "start_time", $this->startTime); + $this->setUserParam($params, "query_order_type", $this->queryOrderType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.order.list.range.get"; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setLastOrderId($lastOrderId) + { + $this->lastOrderId = $lastOrderId; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + + public function setQueryOrderType($queryOrderType) + { + $this->queryOrderType = $queryOrderType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkResourceUrlGenRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkResourceUrlGenRequest.php index 2123d5b..9fd8856 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkResourceUrlGenRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkResourceUrlGenRequest.php @@ -1,110 +1,110 @@ -setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); - $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); - $this->setUserParam($params, "generate_we_app", $this->generateWeApp); - $this->setUserParam($params, "pid", $this->pid); - $this->setUserParam($params, "resource_type", $this->resourceType); - $this->setUserParam($params, "url", $this->url); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.resource.url.gen"; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setGenerateQqApp($generateQqApp) - { - $this->generateQqApp = $generateQqApp; - } - - public function setGenerateSchemaUrl($generateSchemaUrl) - { - $this->generateSchemaUrl = $generateSchemaUrl; - } - - public function setGenerateWeApp($generateWeApp) - { - $this->generateWeApp = $generateWeApp; - } - - public function setPid($pid) - { - $this->pid = $pid; - } - - public function setResourceType($resourceType) - { - $this->resourceType = $resourceType; - } - - public function setUrl($url) - { - $this->url = $url; - } - -} +setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); + $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); + $this->setUserParam($params, "generate_we_app", $this->generateWeApp); + $this->setUserParam($params, "pid", $this->pid); + $this->setUserParam($params, "resource_type", $this->resourceType); + $this->setUserParam($params, "url", $this->url); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.resource.url.gen"; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setGenerateQqApp($generateQqApp) + { + $this->generateQqApp = $generateQqApp; + } + + public function setGenerateSchemaUrl($generateSchemaUrl) + { + $this->generateSchemaUrl = $generateSchemaUrl; + } + + public function setGenerateWeApp($generateWeApp) + { + $this->generateWeApp = $generateWeApp; + } + + public function setPid($pid) + { + $this->pid = $pid; + } + + public function setResourceType($resourceType) + { + $this->resourceType = $resourceType; + } + + public function setUrl($url) + { + $this->url = $url; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkRpPromUrlGenerateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkRpPromUrlGenerateRequest.php index 4b315de..7808249 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkRpPromUrlGenerateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkRpPromUrlGenerateRequest.php @@ -1,324 +1,324 @@ -, "p_id_list") - */ - private $pIdList; - - /** - * @JsonProperty(Long, "amount") - */ - private $amount; - - /** - * @JsonProperty(Long, "scratch_card_amount") - */ - private $scratchCardAmount; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "channel_type", $this->channelType); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - $this->setUserParam($params, "diy_lottery_param", $this->diyLotteryParam); - $this->setUserParam($params, "diy_red_packet_param", $this->diyRedPacketParam); - $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); - $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); - $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); - $this->setUserParam($params, "generate_we_app", $this->generateWeApp); - $this->setUserParam($params, "p_id_list", $this->pIdList); - $this->setUserParam($params, "amount", $this->amount); - $this->setUserParam($params, "scratch_card_amount", $this->scratchCardAmount); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.rp.prom.url.generate"; - } - - public function setChannelType($channelType) - { - $this->channelType = $channelType; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - - public function setDiyLotteryParam($diyLotteryParam) - { - $this->diyLotteryParam = $diyLotteryParam; - } - - public function setDiyRedPacketParam($diyRedPacketParam) - { - $this->diyRedPacketParam = $diyRedPacketParam; - } - - public function setGenerateQqApp($generateQqApp) - { - $this->generateQqApp = $generateQqApp; - } - - public function setGenerateSchemaUrl($generateSchemaUrl) - { - $this->generateSchemaUrl = $generateSchemaUrl; - } - - public function setGenerateShortUrl($generateShortUrl) - { - $this->generateShortUrl = $generateShortUrl; - } - - public function setGenerateWeApp($generateWeApp) - { - $this->generateWeApp = $generateWeApp; - } - - public function setPIdList($pIdList) - { - $this->pIdList = $pIdList; - } - - public function setAmount($amount) - { - $this->amount = $amount; - } - - public function setScratchCardAmount($scratchCardAmount) - { - $this->scratchCardAmount = $scratchCardAmount; - } - -} - -class PddDdkRpPromUrlGenerateRequest_DiyLotteryParam extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "opt_id") - */ - private $optId; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem>, "range_items") - */ - private $rangeItems; - - public function setOptId($optId) - { - $this->optId = $optId; - } - - public function setRangeItems($rangeItems) - { - $this->rangeItems = $rangeItems; - } - -} - -class PddDdkRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "range_from") - */ - private $rangeFrom; - - /** - * @JsonProperty(Integer, "range_id") - */ - private $rangeId; - - /** - * @JsonProperty(Long, "range_to") - */ - private $rangeTo; - - public function setRangeFrom($rangeFrom) - { - $this->rangeFrom = $rangeFrom; - } - - public function setRangeId($rangeId) - { - $this->rangeId = $rangeId; - } - - public function setRangeTo($rangeTo) - { - $this->rangeTo = $rangeTo; - } - -} - -class PddDdkRpPromUrlGenerateRequest_DiyRedPacketParam extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List, "amount_probability") - */ - private $amountProbability; - - /** - * @JsonProperty(Boolean, "dis_text") - */ - private $disText; - - /** - * @JsonProperty(Boolean, "not_show_background") - */ - private $notShowBackground; - - /** - * @JsonProperty(Integer, "opt_id") - */ - private $optId; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem>, "range_items") - */ - private $rangeItems; - - public function setAmountProbability($amountProbability) - { - $this->amountProbability = $amountProbability; - } - - public function setDisText($disText) - { - $this->disText = $disText; - } - - public function setNotShowBackground($notShowBackground) - { - $this->notShowBackground = $notShowBackground; - } - - public function setOptId($optId) - { - $this->optId = $optId; - } - - public function setRangeItems($rangeItems) - { - $this->rangeItems = $rangeItems; - } - -} - -class PddDdkRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "range_from") - */ - private $rangeFrom; - - /** - * @JsonProperty(Integer, "range_id") - */ - private $rangeId; - - /** - * @JsonProperty(Long, "range_to") - */ - private $rangeTo; - - public function setRangeFrom($rangeFrom) - { - $this->rangeFrom = $rangeFrom; - } - - public function setRangeId($rangeId) - { - $this->rangeId = $rangeId; - } - - public function setRangeTo($rangeTo) - { - $this->rangeTo = $rangeTo; - } - -} +, "p_id_list") + */ + private $pIdList; + + /** + * @JsonProperty(Long, "amount") + */ + private $amount; + + /** + * @JsonProperty(Long, "scratch_card_amount") + */ + private $scratchCardAmount; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "channel_type", $this->channelType); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + $this->setUserParam($params, "diy_lottery_param", $this->diyLotteryParam); + $this->setUserParam($params, "diy_red_packet_param", $this->diyRedPacketParam); + $this->setUserParam($params, "generate_qq_app", $this->generateQqApp); + $this->setUserParam($params, "generate_schema_url", $this->generateSchemaUrl); + $this->setUserParam($params, "generate_short_url", $this->generateShortUrl); + $this->setUserParam($params, "generate_we_app", $this->generateWeApp); + $this->setUserParam($params, "p_id_list", $this->pIdList); + $this->setUserParam($params, "amount", $this->amount); + $this->setUserParam($params, "scratch_card_amount", $this->scratchCardAmount); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.rp.prom.url.generate"; + } + + public function setChannelType($channelType) + { + $this->channelType = $channelType; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + + public function setDiyLotteryParam($diyLotteryParam) + { + $this->diyLotteryParam = $diyLotteryParam; + } + + public function setDiyRedPacketParam($diyRedPacketParam) + { + $this->diyRedPacketParam = $diyRedPacketParam; + } + + public function setGenerateQqApp($generateQqApp) + { + $this->generateQqApp = $generateQqApp; + } + + public function setGenerateSchemaUrl($generateSchemaUrl) + { + $this->generateSchemaUrl = $generateSchemaUrl; + } + + public function setGenerateShortUrl($generateShortUrl) + { + $this->generateShortUrl = $generateShortUrl; + } + + public function setGenerateWeApp($generateWeApp) + { + $this->generateWeApp = $generateWeApp; + } + + public function setPIdList($pIdList) + { + $this->pIdList = $pIdList; + } + + public function setAmount($amount) + { + $this->amount = $amount; + } + + public function setScratchCardAmount($scratchCardAmount) + { + $this->scratchCardAmount = $scratchCardAmount; + } + +} + +class PddDdkRpPromUrlGenerateRequest_DiyLotteryParam extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "opt_id") + */ + private $optId; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem>, "range_items") + */ + private $rangeItems; + + public function setOptId($optId) + { + $this->optId = $optId; + } + + public function setRangeItems($rangeItems) + { + $this->rangeItems = $rangeItems; + } + +} + +class PddDdkRpPromUrlGenerateRequest_DiyLotteryParamRangeItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "range_from") + */ + private $rangeFrom; + + /** + * @JsonProperty(Integer, "range_id") + */ + private $rangeId; + + /** + * @JsonProperty(Long, "range_to") + */ + private $rangeTo; + + public function setRangeFrom($rangeFrom) + { + $this->rangeFrom = $rangeFrom; + } + + public function setRangeId($rangeId) + { + $this->rangeId = $rangeId; + } + + public function setRangeTo($rangeTo) + { + $this->rangeTo = $rangeTo; + } + +} + +class PddDdkRpPromUrlGenerateRequest_DiyRedPacketParam extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List, "amount_probability") + */ + private $amountProbability; + + /** + * @JsonProperty(Boolean, "dis_text") + */ + private $disText; + + /** + * @JsonProperty(Boolean, "not_show_background") + */ + private $notShowBackground; + + /** + * @JsonProperty(Integer, "opt_id") + */ + private $optId; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddDdkRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem>, "range_items") + */ + private $rangeItems; + + public function setAmountProbability($amountProbability) + { + $this->amountProbability = $amountProbability; + } + + public function setDisText($disText) + { + $this->disText = $disText; + } + + public function setNotShowBackground($notShowBackground) + { + $this->notShowBackground = $notShowBackground; + } + + public function setOptId($optId) + { + $this->optId = $optId; + } + + public function setRangeItems($rangeItems) + { + $this->rangeItems = $rangeItems; + } + +} + +class PddDdkRpPromUrlGenerateRequest_DiyRedPacketParamRangeItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "range_from") + */ + private $rangeFrom; + + /** + * @JsonProperty(Integer, "range_id") + */ + private $rangeId; + + /** + * @JsonProperty(Long, "range_to") + */ + private $rangeTo; + + public function setRangeFrom($rangeFrom) + { + $this->rangeFrom = $rangeFrom; + } + + public function setRangeId($rangeId) + { + $this->rangeId = $rangeId; + } + + public function setRangeTo($rangeTo) + { + $this->rangeTo = $rangeTo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdkTopGoodsListQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdkTopGoodsListQueryRequest.php index c98a7bd..744c947 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdkTopGoodsListQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdkTopGoodsListQueryRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "limit", $this->limit); - $this->setUserParam($params, "list_id", $this->listId); - $this->setUserParam($params, "offset", $this->offset); - $this->setUserParam($params, "p_id", $this->pId); - $this->setUserParam($params, "sort_type", $this->sortType); - $this->setUserParam($params, "custom_parameters", $this->customParameters); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddk.top.goods.list.query"; - } - - public function setLimit($limit) - { - $this->limit = $limit; - } - - public function setListId($listId) - { - $this->listId = $listId; - } - - public function setOffset($offset) - { - $this->offset = $offset; - } - - public function setPId($pId) - { - $this->pId = $pId; - } - - public function setSortType($sortType) - { - $this->sortType = $sortType; - } - - public function setCustomParameters($customParameters) - { - $this->customParameters = $customParameters; - } - -} +setUserParam($params, "limit", $this->limit); + $this->setUserParam($params, "list_id", $this->listId); + $this->setUserParam($params, "offset", $this->offset); + $this->setUserParam($params, "p_id", $this->pId); + $this->setUserParam($params, "sort_type", $this->sortType); + $this->setUserParam($params, "custom_parameters", $this->customParameters); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddk.top.goods.list.query"; + } + + public function setLimit($limit) + { + $this->limit = $limit; + } + + public function setListId($listId) + { + $this->listId = $listId; + } + + public function setOffset($offset) + { + $this->offset = $offset; + } + + public function setPId($pId) + { + $this->pId = $pId; + } + + public function setSortType($sortType) + { + $this->sortType = $sortType; + } + + public function setCustomParameters($customParameters) + { + $this->customParameters = $customParameters; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUserAddRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUserAddRequest.php index fb3d895..bcac69d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUserAddRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUserAddRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "history_days", $this->historyDays); - $this->setUserParam($params, "rds_id", $this->rdsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddy.pdp.user.add"; - } - - public function setHistoryDays($historyDays) - { - $this->historyDays = $historyDays; - } - - public function setRdsId($rdsId) - { - $this->rdsId = $rdsId; - } - -} +setUserParam($params, "history_days", $this->historyDays); + $this->setUserParam($params, "rds_id", $this->rdsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddy.pdp.user.add"; + } + + public function setHistoryDays($historyDays) + { + $this->historyDays = $historyDays; + } + + public function setRdsId($rdsId) + { + $this->rdsId = $rdsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUserDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUserDeleteRequest.php index 60adcf7..fa915fd 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUserDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUserDeleteRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "owner_id", $this->ownerId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddy.pdp.user.delete"; - } - - public function setOwnerId($ownerId) - { - $this->ownerId = $ownerId; - } - -} +setUserParam($params, "owner_id", $this->ownerId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddy.pdp.user.delete"; + } + + public function setOwnerId($ownerId) + { + $this->ownerId = $ownerId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUsersGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUsersGetRequest.php index 07caf10..480757f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUsersGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDdyPdpUsersGetRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "owner_id", $this->ownerId); - $this->setUserParam($params, "start_modified", $this->startModified); - $this->setUserParam($params, "end_modified", $this->endModified); - $this->setUserParam($params, "page_no", $this->pageNo); - $this->setUserParam($params, "page_size", $this->pageSize); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ddy.pdp.users.get"; - } - - public function setOwnerId($ownerId) - { - $this->ownerId = $ownerId; - } - - public function setStartModified($startModified) - { - $this->startModified = $startModified; - } - - public function setEndModified($endModified) - { - $this->endModified = $endModified; - } - - public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - -} +setUserParam($params, "owner_id", $this->ownerId); + $this->setUserParam($params, "start_modified", $this->startModified); + $this->setUserParam($params, "end_modified", $this->endModified); + $this->setUserParam($params, "page_no", $this->pageNo); + $this->setUserParam($params, "page_size", $this->pageSize); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ddy.pdp.users.get"; + } + + public function setOwnerId($ownerId) + { + $this->ownerId = $ownerId; + } + + public function setStartModified($startModified) + { + $this->startModified = $startModified; + } + + public function setEndModified($endModified) + { + $this->endModified = $endModified; + } + + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDeleteDraftCommitRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDeleteDraftCommitRequest.php index 2663f2d..6ff01cc 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDeleteDraftCommitRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDeleteDraftCommitRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goods_commit_id", $this->goodsCommitId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.delete.draft.commit"; - } - - public function setGoodsCommitId($goodsCommitId) - { - $this->goodsCommitId = $goodsCommitId; - } - -} +setUserParam($params, "goods_commit_id", $this->goodsCommitId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.delete.draft.commit"; + } + + public function setGoodsCommitId($goodsCommitId) + { + $this->goodsCommitId = $goodsCommitId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddDeleteGoodsCommitRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddDeleteGoodsCommitRequest.php index fb3d3ad..8c5f13f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddDeleteGoodsCommitRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddDeleteGoodsCommitRequest.php @@ -1,44 +1,44 @@ -, "goods_ids") - */ - private $goodsIds; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "goods_ids", $this->goodsIds); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.delete.goods.commit"; - } - - public function setGoodsIds($goodsIds) - { - $this->goodsIds = $goodsIds; - } - -} +, "goods_ids") + */ + private $goodsIds; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "goods_ids", $this->goodsIds); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.delete.goods.commit"; + } + + public function setGoodsIds($goodsIds) + { + $this->goodsIds = $goodsIds; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceIssueInvoiceResultCallbackRuihongRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceIssueInvoiceResultCallbackRuihongRequest.php index 323cac9..f261c57 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceIssueInvoiceResultCallbackRuihongRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceIssueInvoiceResultCallbackRuihongRequest.php @@ -1,644 +1,644 @@ -setUserParam($params, "data", $this->data); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.einvoice.issue.invoice.result.callback.ruihong"; - } - - public function setData($data) - { - $this->data = $data; - } - -} - -class PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_Data extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "code") - */ - private $code; - - /** - * @JsonProperty(String, "einvoiceApiVersion") - */ - private $einvoiceApiVersion; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoice, "invoice") - */ - private $invoice; - - /** - * @JsonProperty(String, "mallId") - */ - private $mallId; - - /** - * @JsonProperty(String, "message") - */ - private $message; - - /** - * @JsonProperty(String, "orderNo") - */ - private $orderNo; - - /** - * @JsonProperty(String, "serialNo") - */ - private $serialNo; - - public function setCode($code) - { - $this->code = $code; - } - - public function setEinvoiceApiVersion($einvoiceApiVersion) - { - $this->einvoiceApiVersion = $einvoiceApiVersion; - } - - public function setInvoice($invoice) - { - $this->invoice = $invoice; - } - - public function setMallId($mallId) - { - $this->mallId = $mallId; - } - - public function setMessage($message) - { - $this->message = $message; - } - - public function setOrderNo($orderNo) - { - $this->orderNo = $orderNo; - } - - public function setSerialNo($serialNo) - { - $this->serialNo = $serialNo; - } - -} - -class PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoice extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "checkCode") - */ - private $checkCode; - - /** - * @JsonProperty(String, "code") - */ - private $code; - - /** - * @JsonProperty(String, "customerAddress") - */ - private $customerAddress; - - /** - * @JsonProperty(String, "customerBankAccount") - */ - private $customerBankAccount; - - /** - * @JsonProperty(String, "customerBankName") - */ - private $customerBankName; - - /** - * @JsonProperty(String, "customerCode") - */ - private $customerCode; - - /** - * @JsonProperty(String, "customerName") - */ - private $customerName; - - /** - * @JsonProperty(String, "customerTel") - */ - private $customerTel; - - /** - * @JsonProperty(String, "drawer") - */ - private $drawer; - - /** - * @JsonProperty(String, "fiscalCode") - */ - private $fiscalCode; - - /** - * @JsonProperty(String, "generateTime") - */ - private $generateTime; - - /** - * @JsonProperty(String, "invPdf") - */ - private $invPdf; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoiceItemsItem>, "items") - */ - private $items; - - /** - * @JsonProperty(String, "noTaxAmount") - */ - private $noTaxAmount; - - /** - * @JsonProperty(String, "orderNo") - */ - private $orderNo; - - /** - * @JsonProperty(String, "payee") - */ - private $payee; - - /** - * @JsonProperty(String, "pdfUnsignedUrl") - */ - private $pdfUnsignedUrl; - - /** - * @JsonProperty(String, "relatedCode") - */ - private $relatedCode; - - /** - * @JsonProperty(String, "remark") - */ - private $remark; - - /** - * @JsonProperty(String, "reviewer") - */ - private $reviewer; - - /** - * @JsonProperty(String, "status") - */ - private $status; - - /** - * @JsonProperty(String, "taxAmount") - */ - private $taxAmount; - - /** - * @JsonProperty(String, "taxDeviceNo") - */ - private $taxDeviceNo; - - /** - * @JsonProperty(String, "taxpayerAddress") - */ - private $taxpayerAddress; - - /** - * @JsonProperty(String, "taxpayerBankAccount") - */ - private $taxpayerBankAccount; - - /** - * @JsonProperty(String, "taxpayerBankName") - */ - private $taxpayerBankName; - - /** - * @JsonProperty(String, "taxpayerCode") - */ - private $taxpayerCode; - - /** - * @JsonProperty(String, "taxpayerName") - */ - private $taxpayerName; - - /** - * @JsonProperty(String, "taxpayerTel") - */ - private $taxpayerTel; - - /** - * @JsonProperty(String, "totalAmount") - */ - private $totalAmount; - - /** - * @JsonProperty(String, "validReason") - */ - private $validReason; - - /** - * @JsonProperty(String, "validTime") - */ - private $validTime; - - /** - * @JsonProperty(String, "viewUrl") - */ - private $viewUrl; - - /** - * @JsonProperty(String, "cipherText") - */ - private $cipherText; - - /** - * @JsonProperty(String, "qrCode") - */ - private $qrCode; - - public function setCheckCode($checkCode) - { - $this->checkCode = $checkCode; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setCustomerAddress($customerAddress) - { - $this->customerAddress = $customerAddress; - } - - public function setCustomerBankAccount($customerBankAccount) - { - $this->customerBankAccount = $customerBankAccount; - } - - public function setCustomerBankName($customerBankName) - { - $this->customerBankName = $customerBankName; - } - - public function setCustomerCode($customerCode) - { - $this->customerCode = $customerCode; - } - - public function setCustomerName($customerName) - { - $this->customerName = $customerName; - } - - public function setCustomerTel($customerTel) - { - $this->customerTel = $customerTel; - } - - public function setDrawer($drawer) - { - $this->drawer = $drawer; - } - - public function setFiscalCode($fiscalCode) - { - $this->fiscalCode = $fiscalCode; - } - - public function setGenerateTime($generateTime) - { - $this->generateTime = $generateTime; - } - - public function setInvPdf($invPdf) - { - $this->invPdf = $invPdf; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function setNoTaxAmount($noTaxAmount) - { - $this->noTaxAmount = $noTaxAmount; - } - - public function setOrderNo($orderNo) - { - $this->orderNo = $orderNo; - } - - public function setPayee($payee) - { - $this->payee = $payee; - } - - public function setPdfUnsignedUrl($pdfUnsignedUrl) - { - $this->pdfUnsignedUrl = $pdfUnsignedUrl; - } - - public function setRelatedCode($relatedCode) - { - $this->relatedCode = $relatedCode; - } - - public function setRemark($remark) - { - $this->remark = $remark; - } - - public function setReviewer($reviewer) - { - $this->reviewer = $reviewer; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function setTaxAmount($taxAmount) - { - $this->taxAmount = $taxAmount; - } - - public function setTaxDeviceNo($taxDeviceNo) - { - $this->taxDeviceNo = $taxDeviceNo; - } - - public function setTaxpayerAddress($taxpayerAddress) - { - $this->taxpayerAddress = $taxpayerAddress; - } - - public function setTaxpayerBankAccount($taxpayerBankAccount) - { - $this->taxpayerBankAccount = $taxpayerBankAccount; - } - - public function setTaxpayerBankName($taxpayerBankName) - { - $this->taxpayerBankName = $taxpayerBankName; - } - - public function setTaxpayerCode($taxpayerCode) - { - $this->taxpayerCode = $taxpayerCode; - } - - public function setTaxpayerName($taxpayerName) - { - $this->taxpayerName = $taxpayerName; - } - - public function setTaxpayerTel($taxpayerTel) - { - $this->taxpayerTel = $taxpayerTel; - } - - public function setTotalAmount($totalAmount) - { - $this->totalAmount = $totalAmount; - } - - public function setValidReason($validReason) - { - $this->validReason = $validReason; - } - - public function setValidTime($validTime) - { - $this->validTime = $validTime; - } - - public function setViewUrl($viewUrl) - { - $this->viewUrl = $viewUrl; - } - - public function setCipherText($cipherText) - { - $this->cipherText = $cipherText; - } - - public function setQrCode($qrCode) - { - $this->qrCode = $qrCode; - } - -} - -class PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoiceItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "addedValueTaxFlg") - */ - private $addedValueTaxFlg; - - /** - * @JsonProperty(String, "amount") - */ - private $amount; - - /** - * @JsonProperty(String, "catalogCode") - */ - private $catalogCode; - - /** - * @JsonProperty(String, "code") - */ - private $code; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "noTaxAmount") - */ - private $noTaxAmount; - - /** - * @JsonProperty(String, "preferentialPolicyFlg") - */ - private $preferentialPolicyFlg; - - /** - * @JsonProperty(String, "price") - */ - private $price; - - /** - * @JsonProperty(String, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(String, "spec") - */ - private $spec; - - /** - * @JsonProperty(String, "taxAmount") - */ - private $taxAmount; - - /** - * @JsonProperty(String, "taxRate") - */ - private $taxRate; - - /** - * @JsonProperty(String, "type") - */ - private $type; - - /** - * @JsonProperty(String, "uom") - */ - private $uom; - - /** - * @JsonProperty(String, "zeroTaxRateFlg") - */ - private $zeroTaxRateFlg; - - public function setAddedValueTaxFlg($addedValueTaxFlg) - { - $this->addedValueTaxFlg = $addedValueTaxFlg; - } - - public function setAmount($amount) - { - $this->amount = $amount; - } - - public function setCatalogCode($catalogCode) - { - $this->catalogCode = $catalogCode; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setNoTaxAmount($noTaxAmount) - { - $this->noTaxAmount = $noTaxAmount; - } - - public function setPreferentialPolicyFlg($preferentialPolicyFlg) - { - $this->preferentialPolicyFlg = $preferentialPolicyFlg; - } - - public function setPrice($price) - { - $this->price = $price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setSpec($spec) - { - $this->spec = $spec; - } - - public function setTaxAmount($taxAmount) - { - $this->taxAmount = $taxAmount; - } - - public function setTaxRate($taxRate) - { - $this->taxRate = $taxRate; - } - - public function setType($type) - { - $this->type = $type; - } - - public function setUom($uom) - { - $this->uom = $uom; - } - - public function setZeroTaxRateFlg($zeroTaxRateFlg) - { - $this->zeroTaxRateFlg = $zeroTaxRateFlg; - } - -} +setUserParam($params, "data", $this->data); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.einvoice.issue.invoice.result.callback.ruihong"; + } + + public function setData($data) + { + $this->data = $data; + } + +} + +class PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_Data extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "code") + */ + private $code; + + /** + * @JsonProperty(String, "einvoiceApiVersion") + */ + private $einvoiceApiVersion; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoice, "invoice") + */ + private $invoice; + + /** + * @JsonProperty(String, "mallId") + */ + private $mallId; + + /** + * @JsonProperty(String, "message") + */ + private $message; + + /** + * @JsonProperty(String, "orderNo") + */ + private $orderNo; + + /** + * @JsonProperty(String, "serialNo") + */ + private $serialNo; + + public function setCode($code) + { + $this->code = $code; + } + + public function setEinvoiceApiVersion($einvoiceApiVersion) + { + $this->einvoiceApiVersion = $einvoiceApiVersion; + } + + public function setInvoice($invoice) + { + $this->invoice = $invoice; + } + + public function setMallId($mallId) + { + $this->mallId = $mallId; + } + + public function setMessage($message) + { + $this->message = $message; + } + + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + } + + public function setSerialNo($serialNo) + { + $this->serialNo = $serialNo; + } + +} + +class PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoice extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "checkCode") + */ + private $checkCode; + + /** + * @JsonProperty(String, "code") + */ + private $code; + + /** + * @JsonProperty(String, "customerAddress") + */ + private $customerAddress; + + /** + * @JsonProperty(String, "customerBankAccount") + */ + private $customerBankAccount; + + /** + * @JsonProperty(String, "customerBankName") + */ + private $customerBankName; + + /** + * @JsonProperty(String, "customerCode") + */ + private $customerCode; + + /** + * @JsonProperty(String, "customerName") + */ + private $customerName; + + /** + * @JsonProperty(String, "customerTel") + */ + private $customerTel; + + /** + * @JsonProperty(String, "drawer") + */ + private $drawer; + + /** + * @JsonProperty(String, "fiscalCode") + */ + private $fiscalCode; + + /** + * @JsonProperty(String, "generateTime") + */ + private $generateTime; + + /** + * @JsonProperty(String, "invPdf") + */ + private $invPdf; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoiceItemsItem>, "items") + */ + private $items; + + /** + * @JsonProperty(String, "noTaxAmount") + */ + private $noTaxAmount; + + /** + * @JsonProperty(String, "orderNo") + */ + private $orderNo; + + /** + * @JsonProperty(String, "payee") + */ + private $payee; + + /** + * @JsonProperty(String, "pdfUnsignedUrl") + */ + private $pdfUnsignedUrl; + + /** + * @JsonProperty(String, "relatedCode") + */ + private $relatedCode; + + /** + * @JsonProperty(String, "remark") + */ + private $remark; + + /** + * @JsonProperty(String, "reviewer") + */ + private $reviewer; + + /** + * @JsonProperty(String, "status") + */ + private $status; + + /** + * @JsonProperty(String, "taxAmount") + */ + private $taxAmount; + + /** + * @JsonProperty(String, "taxDeviceNo") + */ + private $taxDeviceNo; + + /** + * @JsonProperty(String, "taxpayerAddress") + */ + private $taxpayerAddress; + + /** + * @JsonProperty(String, "taxpayerBankAccount") + */ + private $taxpayerBankAccount; + + /** + * @JsonProperty(String, "taxpayerBankName") + */ + private $taxpayerBankName; + + /** + * @JsonProperty(String, "taxpayerCode") + */ + private $taxpayerCode; + + /** + * @JsonProperty(String, "taxpayerName") + */ + private $taxpayerName; + + /** + * @JsonProperty(String, "taxpayerTel") + */ + private $taxpayerTel; + + /** + * @JsonProperty(String, "totalAmount") + */ + private $totalAmount; + + /** + * @JsonProperty(String, "validReason") + */ + private $validReason; + + /** + * @JsonProperty(String, "validTime") + */ + private $validTime; + + /** + * @JsonProperty(String, "viewUrl") + */ + private $viewUrl; + + /** + * @JsonProperty(String, "cipherText") + */ + private $cipherText; + + /** + * @JsonProperty(String, "qrCode") + */ + private $qrCode; + + public function setCheckCode($checkCode) + { + $this->checkCode = $checkCode; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setCustomerAddress($customerAddress) + { + $this->customerAddress = $customerAddress; + } + + public function setCustomerBankAccount($customerBankAccount) + { + $this->customerBankAccount = $customerBankAccount; + } + + public function setCustomerBankName($customerBankName) + { + $this->customerBankName = $customerBankName; + } + + public function setCustomerCode($customerCode) + { + $this->customerCode = $customerCode; + } + + public function setCustomerName($customerName) + { + $this->customerName = $customerName; + } + + public function setCustomerTel($customerTel) + { + $this->customerTel = $customerTel; + } + + public function setDrawer($drawer) + { + $this->drawer = $drawer; + } + + public function setFiscalCode($fiscalCode) + { + $this->fiscalCode = $fiscalCode; + } + + public function setGenerateTime($generateTime) + { + $this->generateTime = $generateTime; + } + + public function setInvPdf($invPdf) + { + $this->invPdf = $invPdf; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function setNoTaxAmount($noTaxAmount) + { + $this->noTaxAmount = $noTaxAmount; + } + + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + } + + public function setPayee($payee) + { + $this->payee = $payee; + } + + public function setPdfUnsignedUrl($pdfUnsignedUrl) + { + $this->pdfUnsignedUrl = $pdfUnsignedUrl; + } + + public function setRelatedCode($relatedCode) + { + $this->relatedCode = $relatedCode; + } + + public function setRemark($remark) + { + $this->remark = $remark; + } + + public function setReviewer($reviewer) + { + $this->reviewer = $reviewer; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function setTaxAmount($taxAmount) + { + $this->taxAmount = $taxAmount; + } + + public function setTaxDeviceNo($taxDeviceNo) + { + $this->taxDeviceNo = $taxDeviceNo; + } + + public function setTaxpayerAddress($taxpayerAddress) + { + $this->taxpayerAddress = $taxpayerAddress; + } + + public function setTaxpayerBankAccount($taxpayerBankAccount) + { + $this->taxpayerBankAccount = $taxpayerBankAccount; + } + + public function setTaxpayerBankName($taxpayerBankName) + { + $this->taxpayerBankName = $taxpayerBankName; + } + + public function setTaxpayerCode($taxpayerCode) + { + $this->taxpayerCode = $taxpayerCode; + } + + public function setTaxpayerName($taxpayerName) + { + $this->taxpayerName = $taxpayerName; + } + + public function setTaxpayerTel($taxpayerTel) + { + $this->taxpayerTel = $taxpayerTel; + } + + public function setTotalAmount($totalAmount) + { + $this->totalAmount = $totalAmount; + } + + public function setValidReason($validReason) + { + $this->validReason = $validReason; + } + + public function setValidTime($validTime) + { + $this->validTime = $validTime; + } + + public function setViewUrl($viewUrl) + { + $this->viewUrl = $viewUrl; + } + + public function setCipherText($cipherText) + { + $this->cipherText = $cipherText; + } + + public function setQrCode($qrCode) + { + $this->qrCode = $qrCode; + } + +} + +class PddEinvoiceIssueInvoiceResultCallbackRuihongRequest_DataInvoiceItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "addedValueTaxFlg") + */ + private $addedValueTaxFlg; + + /** + * @JsonProperty(String, "amount") + */ + private $amount; + + /** + * @JsonProperty(String, "catalogCode") + */ + private $catalogCode; + + /** + * @JsonProperty(String, "code") + */ + private $code; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "noTaxAmount") + */ + private $noTaxAmount; + + /** + * @JsonProperty(String, "preferentialPolicyFlg") + */ + private $preferentialPolicyFlg; + + /** + * @JsonProperty(String, "price") + */ + private $price; + + /** + * @JsonProperty(String, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(String, "spec") + */ + private $spec; + + /** + * @JsonProperty(String, "taxAmount") + */ + private $taxAmount; + + /** + * @JsonProperty(String, "taxRate") + */ + private $taxRate; + + /** + * @JsonProperty(String, "type") + */ + private $type; + + /** + * @JsonProperty(String, "uom") + */ + private $uom; + + /** + * @JsonProperty(String, "zeroTaxRateFlg") + */ + private $zeroTaxRateFlg; + + public function setAddedValueTaxFlg($addedValueTaxFlg) + { + $this->addedValueTaxFlg = $addedValueTaxFlg; + } + + public function setAmount($amount) + { + $this->amount = $amount; + } + + public function setCatalogCode($catalogCode) + { + $this->catalogCode = $catalogCode; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setNoTaxAmount($noTaxAmount) + { + $this->noTaxAmount = $noTaxAmount; + } + + public function setPreferentialPolicyFlg($preferentialPolicyFlg) + { + $this->preferentialPolicyFlg = $preferentialPolicyFlg; + } + + public function setPrice($price) + { + $this->price = $price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setSpec($spec) + { + $this->spec = $spec; + } + + public function setTaxAmount($taxAmount) + { + $this->taxAmount = $taxAmount; + } + + public function setTaxRate($taxRate) + { + $this->taxRate = $taxRate; + } + + public function setType($type) + { + $this->type = $type; + } + + public function setUom($uom) + { + $this->uom = $uom; + } + + public function setZeroTaxRateFlg($zeroTaxRateFlg) + { + $this->zeroTaxRateFlg = $zeroTaxRateFlg; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceMallRegisterResultRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceMallRegisterResultRequest.php index ba2c782..b2687d8 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceMallRegisterResultRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceMallRegisterResultRequest.php @@ -1,124 +1,124 @@ -setUserParam($params, "data", $this->data); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.einvoice.mall.register.result"; - } - - public function setData($data) - { - $this->data = $data; - } - -} - -class PddEinvoiceMallRegisterResultRequest_Data extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "einvoiceApiVersion") - */ - private $einvoiceApiVersion; - - /** - * @JsonProperty(String, "eventSerialNo") - */ - private $eventSerialNo; - - /** - * @JsonProperty(String, "mallId") - */ - private $mallId; - - /** - * @JsonProperty(String, "refuseReason") - */ - private $refuseReason; - - /** - * @JsonProperty(String, "registerId") - */ - private $registerId; - - /** - * @JsonProperty(Integer, "registerStatus") - */ - private $registerStatus; - - /** - * @JsonProperty(String, "taxNo") - */ - private $taxNo; - - public function setEinvoiceApiVersion($einvoiceApiVersion) - { - $this->einvoiceApiVersion = $einvoiceApiVersion; - } - - public function setEventSerialNo($eventSerialNo) - { - $this->eventSerialNo = $eventSerialNo; - } - - public function setMallId($mallId) - { - $this->mallId = $mallId; - } - - public function setRefuseReason($refuseReason) - { - $this->refuseReason = $refuseReason; - } - - public function setRegisterId($registerId) - { - $this->registerId = $registerId; - } - - public function setRegisterStatus($registerStatus) - { - $this->registerStatus = $registerStatus; - } - - public function setTaxNo($taxNo) - { - $this->taxNo = $taxNo; - } - -} +setUserParam($params, "data", $this->data); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.einvoice.mall.register.result"; + } + + public function setData($data) + { + $this->data = $data; + } + +} + +class PddEinvoiceMallRegisterResultRequest_Data extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "einvoiceApiVersion") + */ + private $einvoiceApiVersion; + + /** + * @JsonProperty(String, "eventSerialNo") + */ + private $eventSerialNo; + + /** + * @JsonProperty(String, "mallId") + */ + private $mallId; + + /** + * @JsonProperty(String, "refuseReason") + */ + private $refuseReason; + + /** + * @JsonProperty(String, "registerId") + */ + private $registerId; + + /** + * @JsonProperty(Integer, "registerStatus") + */ + private $registerStatus; + + /** + * @JsonProperty(String, "taxNo") + */ + private $taxNo; + + public function setEinvoiceApiVersion($einvoiceApiVersion) + { + $this->einvoiceApiVersion = $einvoiceApiVersion; + } + + public function setEventSerialNo($eventSerialNo) + { + $this->eventSerialNo = $eventSerialNo; + } + + public function setMallId($mallId) + { + $this->mallId = $mallId; + } + + public function setRefuseReason($refuseReason) + { + $this->refuseReason = $refuseReason; + } + + public function setRegisterId($registerId) + { + $this->registerId = $registerId; + } + + public function setRegisterStatus($registerStatus) + { + $this->registerStatus = $registerStatus; + } + + public function setTaxNo($taxNo) + { + $this->taxNo = $taxNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceOutboundQueryTaxpayerInfoRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceOutboundQueryTaxpayerInfoRequest.php index ff2cea8..ac13898 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceOutboundQueryTaxpayerInfoRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceOutboundQueryTaxpayerInfoRequest.php @@ -1,114 +1,114 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.einvoice.outbound.query.taxpayer.info"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddEinvoiceOutboundQueryTaxpayerInfoRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "appCode") - */ - private $appCode; - - /** - * @JsonProperty(String, "cmdName") - */ - private $cmdName; - - /** - * @JsonProperty(String, "sign") - */ - private $sign; - - /** - * @JsonProperty(String, "serialNo") - */ - private $serialNo; - - /** - * @JsonProperty(String, "postTime") - */ - private $postTime; - - /** - * @JsonProperty(String, "taxpayerCode") - */ - private $taxpayerCode; - - public function setAppCode($appCode) - { - $this->appCode = $appCode; - } - - public function setCmdName($cmdName) - { - $this->cmdName = $cmdName; - } - - public function setSign($sign) - { - $this->sign = $sign; - } - - public function setSerialNo($serialNo) - { - $this->serialNo = $serialNo; - } - - public function setPostTime($postTime) - { - $this->postTime = $postTime; - } - - public function setTaxpayerCode($taxpayerCode) - { - $this->taxpayerCode = $taxpayerCode; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.einvoice.outbound.query.taxpayer.info"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddEinvoiceOutboundQueryTaxpayerInfoRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "appCode") + */ + private $appCode; + + /** + * @JsonProperty(String, "cmdName") + */ + private $cmdName; + + /** + * @JsonProperty(String, "sign") + */ + private $sign; + + /** + * @JsonProperty(String, "serialNo") + */ + private $serialNo; + + /** + * @JsonProperty(String, "postTime") + */ + private $postTime; + + /** + * @JsonProperty(String, "taxpayerCode") + */ + private $taxpayerCode; + + public function setAppCode($appCode) + { + $this->appCode = $appCode; + } + + public function setCmdName($cmdName) + { + $this->cmdName = $cmdName; + } + + public function setSign($sign) + { + $this->sign = $sign; + } + + public function setSerialNo($serialNo) + { + $this->serialNo = $serialNo; + } + + public function setPostTime($postTime) + { + $this->postTime = $postTime; + } + + public function setTaxpayerCode($taxpayerCode) + { + $this->taxpayerCode = $taxpayerCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceOutboundRuihongQueryTaxDiskStatusRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceOutboundRuihongQueryTaxDiskStatusRequest.php index 31ccedf..6ae3784 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceOutboundRuihongQueryTaxDiskStatusRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceOutboundRuihongQueryTaxDiskStatusRequest.php @@ -1,124 +1,124 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.einvoice.outbound.ruihong.query.tax.disk.status"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddEinvoiceOutboundRuihongQueryTaxDiskStatusRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "appCode") - */ - private $appCode; - - /** - * @JsonProperty(String, "cmdName") - */ - private $cmdName; - - /** - * @JsonProperty(String, "sign") - */ - private $sign; - - /** - * @JsonProperty(String, "serialNo") - */ - private $serialNo; - - /** - * @JsonProperty(String, "postTime") - */ - private $postTime; - - /** - * @JsonProperty(String, "taxpayerCode") - */ - private $taxpayerCode; - - /** - * @JsonProperty(String, "taxDiskNo") - */ - private $taxDiskNo; - - public function setAppCode($appCode) - { - $this->appCode = $appCode; - } - - public function setCmdName($cmdName) - { - $this->cmdName = $cmdName; - } - - public function setSign($sign) - { - $this->sign = $sign; - } - - public function setSerialNo($serialNo) - { - $this->serialNo = $serialNo; - } - - public function setPostTime($postTime) - { - $this->postTime = $postTime; - } - - public function setTaxpayerCode($taxpayerCode) - { - $this->taxpayerCode = $taxpayerCode; - } - - public function setTaxDiskNo($taxDiskNo) - { - $this->taxDiskNo = $taxDiskNo; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.einvoice.outbound.ruihong.query.tax.disk.status"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddEinvoiceOutboundRuihongQueryTaxDiskStatusRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "appCode") + */ + private $appCode; + + /** + * @JsonProperty(String, "cmdName") + */ + private $cmdName; + + /** + * @JsonProperty(String, "sign") + */ + private $sign; + + /** + * @JsonProperty(String, "serialNo") + */ + private $serialNo; + + /** + * @JsonProperty(String, "postTime") + */ + private $postTime; + + /** + * @JsonProperty(String, "taxpayerCode") + */ + private $taxpayerCode; + + /** + * @JsonProperty(String, "taxDiskNo") + */ + private $taxDiskNo; + + public function setAppCode($appCode) + { + $this->appCode = $appCode; + } + + public function setCmdName($cmdName) + { + $this->cmdName = $cmdName; + } + + public function setSign($sign) + { + $this->sign = $sign; + } + + public function setSerialNo($serialNo) + { + $this->serialNo = $serialNo; + } + + public function setPostTime($postTime) + { + $this->postTime = $postTime; + } + + public function setTaxpayerCode($taxpayerCode) + { + $this->taxpayerCode = $taxpayerCode; + } + + public function setTaxDiskNo($taxDiskNo) + { + $this->taxDiskNo = $taxDiskNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceQueryMallRegisterOrderRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceQueryMallRegisterOrderRequest.php index 34e5e92..59ff613 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceQueryMallRegisterOrderRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceQueryMallRegisterOrderRequest.php @@ -1,134 +1,134 @@ -setUserParam($params, "data", $this->data); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.einvoice.query.mall.register.order"; - } - - public function setData($data) - { - $this->data = $data; - } - -} - -class PddEinvoiceQueryMallRegisterOrderRequest_Data extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "page") - */ - private $page; - - /** - * @JsonProperty(Integer, "pageSize") - */ - private $pageSize; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceQueryMallRegisterOrderRequest_DataRequest, "request") - */ - private $request; - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddEinvoiceQueryMallRegisterOrderRequest_DataRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "einvoiceApiVersion") - */ - private $einvoiceApiVersion; - - /** - * @JsonProperty(Long, "endTime") - */ - private $endTime; - - /** - * @JsonProperty(List, "registerStatusList") - */ - private $registerStatusList; - - /** - * @JsonProperty(Long, "startTime") - */ - private $startTime; - - public function setEinvoiceApiVersion($einvoiceApiVersion) - { - $this->einvoiceApiVersion = $einvoiceApiVersion; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setRegisterStatusList($registerStatusList) - { - $this->registerStatusList = $registerStatusList; - } - - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - -} +setUserParam($params, "data", $this->data); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.einvoice.query.mall.register.order"; + } + + public function setData($data) + { + $this->data = $data; + } + +} + +class PddEinvoiceQueryMallRegisterOrderRequest_Data extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "page") + */ + private $page; + + /** + * @JsonProperty(Integer, "pageSize") + */ + private $pageSize; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceQueryMallRegisterOrderRequest_DataRequest, "request") + */ + private $request; + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddEinvoiceQueryMallRegisterOrderRequest_DataRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "einvoiceApiVersion") + */ + private $einvoiceApiVersion; + + /** + * @JsonProperty(Long, "endTime") + */ + private $endTime; + + /** + * @JsonProperty(List, "registerStatusList") + */ + private $registerStatusList; + + /** + * @JsonProperty(Long, "startTime") + */ + private $startTime; + + public function setEinvoiceApiVersion($einvoiceApiVersion) + { + $this->einvoiceApiVersion = $einvoiceApiVersion; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setRegisterStatusList($registerStatusList) + { + $this->registerStatusList = $registerStatusList; + } + + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongInvoiceGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongInvoiceGetRequest.php index 6262c62..07c82f5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongInvoiceGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongInvoiceGetRequest.php @@ -1,144 +1,144 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.einvoice.vendor.ruihong.invoice.get"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddEinvoiceVendorRuihongInvoiceGetRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "serialNo") - */ - private $serialNo; - - /** - * @JsonProperty(String, "postTime") - */ - private $postTime; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongInvoiceGetRequest_RequestCriteriaItem>, "criteria") - */ - private $criteria; - - /** - * @JsonProperty(String, "cmdName") - */ - private $cmdName; - - /** - * @JsonProperty(String, "appCode") - */ - private $appCode; - - /** - * @JsonProperty(String, "sign") - */ - private $sign; - - public function setSerialNo($serialNo) - { - $this->serialNo = $serialNo; - } - - public function setPostTime($postTime) - { - $this->postTime = $postTime; - } - - public function setCriteria($criteria) - { - $this->criteria = $criteria; - } - - public function setCmdName($cmdName) - { - $this->cmdName = $cmdName; - } - - public function setAppCode($appCode) - { - $this->appCode = $appCode; - } - - public function setSign($sign) - { - $this->sign = $sign; - } - -} - -class PddEinvoiceVendorRuihongInvoiceGetRequest_RequestCriteriaItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "value") - */ - private $value; - - public function setName($name) - { - $this->name = $name; - } - - public function setValue($value) - { - $this->value = $value; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.einvoice.vendor.ruihong.invoice.get"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddEinvoiceVendorRuihongInvoiceGetRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "serialNo") + */ + private $serialNo; + + /** + * @JsonProperty(String, "postTime") + */ + private $postTime; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongInvoiceGetRequest_RequestCriteriaItem>, "criteria") + */ + private $criteria; + + /** + * @JsonProperty(String, "cmdName") + */ + private $cmdName; + + /** + * @JsonProperty(String, "appCode") + */ + private $appCode; + + /** + * @JsonProperty(String, "sign") + */ + private $sign; + + public function setSerialNo($serialNo) + { + $this->serialNo = $serialNo; + } + + public function setPostTime($postTime) + { + $this->postTime = $postTime; + } + + public function setCriteria($criteria) + { + $this->criteria = $criteria; + } + + public function setCmdName($cmdName) + { + $this->cmdName = $cmdName; + } + + public function setAppCode($appCode) + { + $this->appCode = $appCode; + } + + public function setSign($sign) + { + $this->sign = $sign; + } + +} + +class PddEinvoiceVendorRuihongInvoiceGetRequest_RequestCriteriaItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "value") + */ + private $value; + + public function setName($name) + { + $this->name = $name; + } + + public function setValue($value) + { + $this->value = $value; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongIssueInvoiceRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongIssueInvoiceRequest.php index 069e2e4..db637c6 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongIssueInvoiceRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongIssueInvoiceRequest.php @@ -1,504 +1,504 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.einvoice.vendor.ruihong.issue.invoice"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddEinvoiceVendorRuihongIssueInvoiceRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "serialNo") - */ - private $serialNo; - - /** - * @JsonProperty(String, "postTime") - */ - private $postTime; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestOrder, "order") - */ - private $order; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestInvoice, "invoice") - */ - private $invoice; - - /** - * @JsonProperty(String, "appCode") - */ - private $appCode; - - /** - * @JsonProperty(String, "cmdName") - */ - private $cmdName; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestExtendedParams, "extendedParams") - */ - private $extendedParams; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestDynamicParams, "dynamicParams") - */ - private $dynamicParams; - - public function setSerialNo($serialNo) - { - $this->serialNo = $serialNo; - } - - public function setPostTime($postTime) - { - $this->postTime = $postTime; - } - - public function setOrder($order) - { - $this->order = $order; - } - - public function setInvoice($invoice) - { - $this->invoice = $invoice; - } - - public function setAppCode($appCode) - { - $this->appCode = $appCode; - } - - public function setCmdName($cmdName) - { - $this->cmdName = $cmdName; - } - - public function setExtendedParams($extendedParams) - { - $this->extendedParams = $extendedParams; - } - - public function setDynamicParams($dynamicParams) - { - $this->dynamicParams = $dynamicParams; - } - -} - -class PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestOrder extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "orderNo") - */ - private $orderNo; - - public function setOrderNo($orderNo) - { - $this->orderNo = $orderNo; - } - -} - -class PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestInvoice extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "taxpayerCode") - */ - private $taxpayerCode; - - /** - * @JsonProperty(String, "taxpayerName") - */ - private $taxpayerName; - - /** - * @JsonProperty(String, "taxpayerAddress") - */ - private $taxpayerAddress; - - /** - * @JsonProperty(String, "taxpayerTel") - */ - private $taxpayerTel; - - /** - * @JsonProperty(String, "taxpayerBankName") - */ - private $taxpayerBankName; - - /** - * @JsonProperty(String, "taxpayerBankAccount") - */ - private $taxpayerBankAccount; - - /** - * @JsonProperty(String, "customerName") - */ - private $customerName; - - /** - * @JsonProperty(String, "customerCode") - */ - private $customerCode; - - /** - * @JsonProperty(String, "customerAddress") - */ - private $customerAddress; - - /** - * @JsonProperty(String, "customerTel") - */ - private $customerTel; - - /** - * @JsonProperty(String, "customerBankName") - */ - private $customerBankName; - - /** - * @JsonProperty(String, "customerBankAccount") - */ - private $customerBankAccount; - - /** - * @JsonProperty(String, "invoiceType") - */ - private $invoiceType; - - /** - * @JsonProperty(String, "drawer") - */ - private $drawer; - - /** - * @JsonProperty(String, "payee") - */ - private $payee; - - /** - * @JsonProperty(String, "reviewer") - */ - private $reviewer; - - /** - * @JsonProperty(String, "totalAmount") - */ - private $totalAmount; - - /** - * @JsonProperty(String, "remark") - */ - private $remark; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestInvoiceItemsItem>, "items") - */ - private $items; - - public function setTaxpayerCode($taxpayerCode) - { - $this->taxpayerCode = $taxpayerCode; - } - - public function setTaxpayerName($taxpayerName) - { - $this->taxpayerName = $taxpayerName; - } - - public function setTaxpayerAddress($taxpayerAddress) - { - $this->taxpayerAddress = $taxpayerAddress; - } - - public function setTaxpayerTel($taxpayerTel) - { - $this->taxpayerTel = $taxpayerTel; - } - - public function setTaxpayerBankName($taxpayerBankName) - { - $this->taxpayerBankName = $taxpayerBankName; - } - - public function setTaxpayerBankAccount($taxpayerBankAccount) - { - $this->taxpayerBankAccount = $taxpayerBankAccount; - } - - public function setCustomerName($customerName) - { - $this->customerName = $customerName; - } - - public function setCustomerCode($customerCode) - { - $this->customerCode = $customerCode; - } - - public function setCustomerAddress($customerAddress) - { - $this->customerAddress = $customerAddress; - } - - public function setCustomerTel($customerTel) - { - $this->customerTel = $customerTel; - } - - public function setCustomerBankName($customerBankName) - { - $this->customerBankName = $customerBankName; - } - - public function setCustomerBankAccount($customerBankAccount) - { - $this->customerBankAccount = $customerBankAccount; - } - - public function setInvoiceType($invoiceType) - { - $this->invoiceType = $invoiceType; - } - - public function setDrawer($drawer) - { - $this->drawer = $drawer; - } - - public function setPayee($payee) - { - $this->payee = $payee; - } - - public function setReviewer($reviewer) - { - $this->reviewer = $reviewer; - } - - public function setTotalAmount($totalAmount) - { - $this->totalAmount = $totalAmount; - } - - public function setRemark($remark) - { - $this->remark = $remark; - } - - public function setItems($items) - { - $this->items = $items; - } - -} - -class PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestInvoiceItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "type") - */ - private $type; - - /** - * @JsonProperty(String, "catalogCode") - */ - private $catalogCode; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "spec") - */ - private $spec; - - /** - * @JsonProperty(String, "price") - */ - private $price; - - /** - * @JsonProperty(String, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(String, "uom") - */ - private $uom; - - /** - * @JsonProperty(String, "taxRate") - */ - private $taxRate; - - /** - * @JsonProperty(String, "amount") - */ - private $amount; - - /** - * @JsonProperty(String, "preferentialPolicyFlg") - */ - private $preferentialPolicyFlg; - - /** - * @JsonProperty(String, "addedValueTaxFlg") - */ - private $addedValueTaxFlg; - - /** - * @JsonProperty(String, "zeroTaxRateFlg") - */ - private $zeroTaxRateFlg; - - public function setType($type) - { - $this->type = $type; - } - - public function setCatalogCode($catalogCode) - { - $this->catalogCode = $catalogCode; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setSpec($spec) - { - $this->spec = $spec; - } - - public function setPrice($price) - { - $this->price = $price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setUom($uom) - { - $this->uom = $uom; - } - - public function setTaxRate($taxRate) - { - $this->taxRate = $taxRate; - } - - public function setAmount($amount) - { - $this->amount = $amount; - } - - public function setPreferentialPolicyFlg($preferentialPolicyFlg) - { - $this->preferentialPolicyFlg = $preferentialPolicyFlg; - } - - public function setAddedValueTaxFlg($addedValueTaxFlg) - { - $this->addedValueTaxFlg = $addedValueTaxFlg; - } - - public function setZeroTaxRateFlg($zeroTaxRateFlg) - { - $this->zeroTaxRateFlg = $zeroTaxRateFlg; - } - -} - -class PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestExtendedParams extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - -} - -class PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestDynamicParams extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.einvoice.vendor.ruihong.issue.invoice"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddEinvoiceVendorRuihongIssueInvoiceRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "serialNo") + */ + private $serialNo; + + /** + * @JsonProperty(String, "postTime") + */ + private $postTime; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestOrder, "order") + */ + private $order; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestInvoice, "invoice") + */ + private $invoice; + + /** + * @JsonProperty(String, "appCode") + */ + private $appCode; + + /** + * @JsonProperty(String, "cmdName") + */ + private $cmdName; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestExtendedParams, "extendedParams") + */ + private $extendedParams; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestDynamicParams, "dynamicParams") + */ + private $dynamicParams; + + public function setSerialNo($serialNo) + { + $this->serialNo = $serialNo; + } + + public function setPostTime($postTime) + { + $this->postTime = $postTime; + } + + public function setOrder($order) + { + $this->order = $order; + } + + public function setInvoice($invoice) + { + $this->invoice = $invoice; + } + + public function setAppCode($appCode) + { + $this->appCode = $appCode; + } + + public function setCmdName($cmdName) + { + $this->cmdName = $cmdName; + } + + public function setExtendedParams($extendedParams) + { + $this->extendedParams = $extendedParams; + } + + public function setDynamicParams($dynamicParams) + { + $this->dynamicParams = $dynamicParams; + } + +} + +class PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestOrder extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "orderNo") + */ + private $orderNo; + + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + } + +} + +class PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestInvoice extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "taxpayerCode") + */ + private $taxpayerCode; + + /** + * @JsonProperty(String, "taxpayerName") + */ + private $taxpayerName; + + /** + * @JsonProperty(String, "taxpayerAddress") + */ + private $taxpayerAddress; + + /** + * @JsonProperty(String, "taxpayerTel") + */ + private $taxpayerTel; + + /** + * @JsonProperty(String, "taxpayerBankName") + */ + private $taxpayerBankName; + + /** + * @JsonProperty(String, "taxpayerBankAccount") + */ + private $taxpayerBankAccount; + + /** + * @JsonProperty(String, "customerName") + */ + private $customerName; + + /** + * @JsonProperty(String, "customerCode") + */ + private $customerCode; + + /** + * @JsonProperty(String, "customerAddress") + */ + private $customerAddress; + + /** + * @JsonProperty(String, "customerTel") + */ + private $customerTel; + + /** + * @JsonProperty(String, "customerBankName") + */ + private $customerBankName; + + /** + * @JsonProperty(String, "customerBankAccount") + */ + private $customerBankAccount; + + /** + * @JsonProperty(String, "invoiceType") + */ + private $invoiceType; + + /** + * @JsonProperty(String, "drawer") + */ + private $drawer; + + /** + * @JsonProperty(String, "payee") + */ + private $payee; + + /** + * @JsonProperty(String, "reviewer") + */ + private $reviewer; + + /** + * @JsonProperty(String, "totalAmount") + */ + private $totalAmount; + + /** + * @JsonProperty(String, "remark") + */ + private $remark; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestInvoiceItemsItem>, "items") + */ + private $items; + + public function setTaxpayerCode($taxpayerCode) + { + $this->taxpayerCode = $taxpayerCode; + } + + public function setTaxpayerName($taxpayerName) + { + $this->taxpayerName = $taxpayerName; + } + + public function setTaxpayerAddress($taxpayerAddress) + { + $this->taxpayerAddress = $taxpayerAddress; + } + + public function setTaxpayerTel($taxpayerTel) + { + $this->taxpayerTel = $taxpayerTel; + } + + public function setTaxpayerBankName($taxpayerBankName) + { + $this->taxpayerBankName = $taxpayerBankName; + } + + public function setTaxpayerBankAccount($taxpayerBankAccount) + { + $this->taxpayerBankAccount = $taxpayerBankAccount; + } + + public function setCustomerName($customerName) + { + $this->customerName = $customerName; + } + + public function setCustomerCode($customerCode) + { + $this->customerCode = $customerCode; + } + + public function setCustomerAddress($customerAddress) + { + $this->customerAddress = $customerAddress; + } + + public function setCustomerTel($customerTel) + { + $this->customerTel = $customerTel; + } + + public function setCustomerBankName($customerBankName) + { + $this->customerBankName = $customerBankName; + } + + public function setCustomerBankAccount($customerBankAccount) + { + $this->customerBankAccount = $customerBankAccount; + } + + public function setInvoiceType($invoiceType) + { + $this->invoiceType = $invoiceType; + } + + public function setDrawer($drawer) + { + $this->drawer = $drawer; + } + + public function setPayee($payee) + { + $this->payee = $payee; + } + + public function setReviewer($reviewer) + { + $this->reviewer = $reviewer; + } + + public function setTotalAmount($totalAmount) + { + $this->totalAmount = $totalAmount; + } + + public function setRemark($remark) + { + $this->remark = $remark; + } + + public function setItems($items) + { + $this->items = $items; + } + +} + +class PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestInvoiceItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "type") + */ + private $type; + + /** + * @JsonProperty(String, "catalogCode") + */ + private $catalogCode; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "spec") + */ + private $spec; + + /** + * @JsonProperty(String, "price") + */ + private $price; + + /** + * @JsonProperty(String, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(String, "uom") + */ + private $uom; + + /** + * @JsonProperty(String, "taxRate") + */ + private $taxRate; + + /** + * @JsonProperty(String, "amount") + */ + private $amount; + + /** + * @JsonProperty(String, "preferentialPolicyFlg") + */ + private $preferentialPolicyFlg; + + /** + * @JsonProperty(String, "addedValueTaxFlg") + */ + private $addedValueTaxFlg; + + /** + * @JsonProperty(String, "zeroTaxRateFlg") + */ + private $zeroTaxRateFlg; + + public function setType($type) + { + $this->type = $type; + } + + public function setCatalogCode($catalogCode) + { + $this->catalogCode = $catalogCode; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setSpec($spec) + { + $this->spec = $spec; + } + + public function setPrice($price) + { + $this->price = $price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setUom($uom) + { + $this->uom = $uom; + } + + public function setTaxRate($taxRate) + { + $this->taxRate = $taxRate; + } + + public function setAmount($amount) + { + $this->amount = $amount; + } + + public function setPreferentialPolicyFlg($preferentialPolicyFlg) + { + $this->preferentialPolicyFlg = $preferentialPolicyFlg; + } + + public function setAddedValueTaxFlg($addedValueTaxFlg) + { + $this->addedValueTaxFlg = $addedValueTaxFlg; + } + + public function setZeroTaxRateFlg($zeroTaxRateFlg) + { + $this->zeroTaxRateFlg = $zeroTaxRateFlg; + } + +} + +class PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestExtendedParams extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + +} + +class PddEinvoiceVendorRuihongIssueInvoiceRequest_RequestDynamicParams extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongIssueRedInvoiceRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongIssueRedInvoiceRequest.php index 51d6a6c..8a83acc 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongIssueRedInvoiceRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongIssueRedInvoiceRequest.php @@ -1,294 +1,294 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.einvoice.vendor.ruihong.issue.red.invoice"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddEinvoiceVendorRuihongIssueRedInvoiceRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "serialNo") - */ - private $serialNo; - - /** - * @JsonProperty(String, "postTime") - */ - private $postTime; - - /** - * @JsonProperty(String, "originalCode") - */ - private $originalCode; - - /** - * @JsonProperty(String, "reason") - */ - private $reason; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestItemsItem>, "items") - */ - private $items; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestExtendedParams, "extendedParams") - */ - private $extendedParams; - - /** - * @JsonProperty(String, "appCode") - */ - private $appCode; - - /** - * @JsonProperty(String, "cmdName") - */ - private $cmdName; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestDynamicParams, "dynamicParams") - */ - private $dynamicParams; - - public function setSerialNo($serialNo) - { - $this->serialNo = $serialNo; - } - - public function setPostTime($postTime) - { - $this->postTime = $postTime; - } - - public function setOriginalCode($originalCode) - { - $this->originalCode = $originalCode; - } - - public function setReason($reason) - { - $this->reason = $reason; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function setExtendedParams($extendedParams) - { - $this->extendedParams = $extendedParams; - } - - public function setAppCode($appCode) - { - $this->appCode = $appCode; - } - - public function setCmdName($cmdName) - { - $this->cmdName = $cmdName; - } - - public function setDynamicParams($dynamicParams) - { - $this->dynamicParams = $dynamicParams; - } - -} - -class PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "type") - */ - private $type; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "spec") - */ - private $spec; - - /** - * @JsonProperty(String, "price") - */ - private $price; - - /** - * @JsonProperty(String, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(String, "uom") - */ - private $uom; - - /** - * @JsonProperty(String, "taxRate") - */ - private $taxRate; - - /** - * @JsonProperty(String, "amount") - */ - private $amount; - - /** - * @JsonProperty(String, "catalogCode") - */ - private $catalogCode; - - /** - * @JsonProperty(String, "preferentialPolicyFlg") - */ - private $preferentialPolicyFlg; - - /** - * @JsonProperty(String, "addedValueTaxFlg") - */ - private $addedValueTaxFlg; - - /** - * @JsonProperty(String, "zeroTaxRateFlg") - */ - private $zeroTaxRateFlg; - - public function setType($type) - { - $this->type = $type; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setSpec($spec) - { - $this->spec = $spec; - } - - public function setPrice($price) - { - $this->price = $price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setUom($uom) - { - $this->uom = $uom; - } - - public function setTaxRate($taxRate) - { - $this->taxRate = $taxRate; - } - - public function setAmount($amount) - { - $this->amount = $amount; - } - - public function setCatalogCode($catalogCode) - { - $this->catalogCode = $catalogCode; - } - - public function setPreferentialPolicyFlg($preferentialPolicyFlg) - { - $this->preferentialPolicyFlg = $preferentialPolicyFlg; - } - - public function setAddedValueTaxFlg($addedValueTaxFlg) - { - $this->addedValueTaxFlg = $addedValueTaxFlg; - } - - public function setZeroTaxRateFlg($zeroTaxRateFlg) - { - $this->zeroTaxRateFlg = $zeroTaxRateFlg; - } - -} - -class PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestExtendedParams extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - -} - -class PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestDynamicParams extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.einvoice.vendor.ruihong.issue.red.invoice"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddEinvoiceVendorRuihongIssueRedInvoiceRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "serialNo") + */ + private $serialNo; + + /** + * @JsonProperty(String, "postTime") + */ + private $postTime; + + /** + * @JsonProperty(String, "originalCode") + */ + private $originalCode; + + /** + * @JsonProperty(String, "reason") + */ + private $reason; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestItemsItem>, "items") + */ + private $items; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestExtendedParams, "extendedParams") + */ + private $extendedParams; + + /** + * @JsonProperty(String, "appCode") + */ + private $appCode; + + /** + * @JsonProperty(String, "cmdName") + */ + private $cmdName; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestDynamicParams, "dynamicParams") + */ + private $dynamicParams; + + public function setSerialNo($serialNo) + { + $this->serialNo = $serialNo; + } + + public function setPostTime($postTime) + { + $this->postTime = $postTime; + } + + public function setOriginalCode($originalCode) + { + $this->originalCode = $originalCode; + } + + public function setReason($reason) + { + $this->reason = $reason; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function setExtendedParams($extendedParams) + { + $this->extendedParams = $extendedParams; + } + + public function setAppCode($appCode) + { + $this->appCode = $appCode; + } + + public function setCmdName($cmdName) + { + $this->cmdName = $cmdName; + } + + public function setDynamicParams($dynamicParams) + { + $this->dynamicParams = $dynamicParams; + } + +} + +class PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "type") + */ + private $type; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "spec") + */ + private $spec; + + /** + * @JsonProperty(String, "price") + */ + private $price; + + /** + * @JsonProperty(String, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(String, "uom") + */ + private $uom; + + /** + * @JsonProperty(String, "taxRate") + */ + private $taxRate; + + /** + * @JsonProperty(String, "amount") + */ + private $amount; + + /** + * @JsonProperty(String, "catalogCode") + */ + private $catalogCode; + + /** + * @JsonProperty(String, "preferentialPolicyFlg") + */ + private $preferentialPolicyFlg; + + /** + * @JsonProperty(String, "addedValueTaxFlg") + */ + private $addedValueTaxFlg; + + /** + * @JsonProperty(String, "zeroTaxRateFlg") + */ + private $zeroTaxRateFlg; + + public function setType($type) + { + $this->type = $type; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setSpec($spec) + { + $this->spec = $spec; + } + + public function setPrice($price) + { + $this->price = $price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setUom($uom) + { + $this->uom = $uom; + } + + public function setTaxRate($taxRate) + { + $this->taxRate = $taxRate; + } + + public function setAmount($amount) + { + $this->amount = $amount; + } + + public function setCatalogCode($catalogCode) + { + $this->catalogCode = $catalogCode; + } + + public function setPreferentialPolicyFlg($preferentialPolicyFlg) + { + $this->preferentialPolicyFlg = $preferentialPolicyFlg; + } + + public function setAddedValueTaxFlg($addedValueTaxFlg) + { + $this->addedValueTaxFlg = $addedValueTaxFlg; + } + + public function setZeroTaxRateFlg($zeroTaxRateFlg) + { + $this->zeroTaxRateFlg = $zeroTaxRateFlg; + } + +} + +class PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestExtendedParams extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + +} + +class PddEinvoiceVendorRuihongIssueRedInvoiceRequest_RequestDynamicParams extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongMatchEnterpriseRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongMatchEnterpriseRequest.php index f62e366..2c5df92 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongMatchEnterpriseRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddEinvoiceVendorRuihongMatchEnterpriseRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "appCode", $this->appCode); - $this->setUserParam($params, "cmdName", $this->cmdName); - $this->setUserParam($params, "sign", $this->sign); - $this->setUserParam($params, "customerName", $this->customerName); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.einvoice.vendor.ruihong.match.enterprise"; - } - - public function setAppCode($appCode) - { - $this->appCode = $appCode; - } - - public function setCmdName($cmdName) - { - $this->cmdName = $cmdName; - } - - public function setSign($sign) - { - $this->sign = $sign; - } - - public function setCustomerName($customerName) - { - $this->customerName = $customerName; - } - -} +setUserParam($params, "appCode", $this->appCode); + $this->setUserParam($params, "cmdName", $this->cmdName); + $this->setUserParam($params, "sign", $this->sign); + $this->setUserParam($params, "customerName", $this->customerName); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.einvoice.vendor.ruihong.match.enterprise"; + } + + public function setAppCode($appCode) + { + $this->appCode = $appCode; + } + + public function setCmdName($cmdName) + { + $this->cmdName = $cmdName; + } + + public function setSign($sign) + { + $this->sign = $sign; + } + + public function setCustomerName($customerName) + { + $this->customerName = $customerName; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddErpOrderSyncRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddErpOrderSyncRequest.php index fea61b0..1da3b8e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddErpOrderSyncRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddErpOrderSyncRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "order_state", $this->orderState); - $this->setUserParam($params, "waybill_no", $this->waybillNo); - $this->setUserParam($params, "logistics_id", $this->logisticsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.erp.order.sync"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setOrderState($orderState) - { - $this->orderState = $orderState; - } - - public function setWaybillNo($waybillNo) - { - $this->waybillNo = $waybillNo; - } - - public function setLogisticsId($logisticsId) - { - $this->logisticsId = $logisticsId; - } - -} +setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "order_state", $this->orderState); + $this->setUserParam($params, "waybill_no", $this->waybillNo); + $this->setUserParam($params, "logistics_id", $this->logisticsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.erp.order.sync"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setOrderState($orderState) + { + $this->orderState = $orderState; + } + + public function setWaybillNo($waybillNo) + { + $this->waybillNo = $waybillNo; + } + + public function setLogisticsId($logisticsId) + { + $this->logisticsId = $logisticsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddExpressAddDepotRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddExpressAddDepotRequest.php index 9d860a6..6b38b51 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddExpressAddDepotRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddExpressAddDepotRequest.php @@ -1,154 +1,154 @@ ->>, "depot_region") - */ - private $depotRegion; - - /** - * @JsonProperty(String, "telephone") - */ - private $telephone; - - /** - * @JsonProperty(String, "zip_code") - */ - private $zipCode; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "contact_name", $this->contactName); - $this->setUserParam($params, "depot_address", $this->depotAddress); - $this->setUserParam($params, "depot_alias", $this->depotAlias); - $this->setUserParam($params, "depot_city_id", $this->depotCityId); - $this->setUserParam($params, "depot_code", $this->depotCode); - $this->setUserParam($params, "depot_district_id", $this->depotDistrictId); - $this->setUserParam($params, "depot_name", $this->depotName); - $this->setUserParam($params, "depot_province_id", $this->depotProvinceId); - $this->setUserParam($params, "depot_region", $this->depotRegion); - $this->setUserParam($params, "telephone", $this->telephone); - $this->setUserParam($params, "zip_code", $this->zipCode); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.express.add.depot"; - } - - public function setContactName($contactName) - { - $this->contactName = $contactName; - } - - public function setDepotAddress($depotAddress) - { - $this->depotAddress = $depotAddress; - } - - public function setDepotAlias($depotAlias) - { - $this->depotAlias = $depotAlias; - } - - public function setDepotCityId($depotCityId) - { - $this->depotCityId = $depotCityId; - } - - public function setDepotCode($depotCode) - { - $this->depotCode = $depotCode; - } - - public function setDepotDistrictId($depotDistrictId) - { - $this->depotDistrictId = $depotDistrictId; - } - - public function setDepotName($depotName) - { - $this->depotName = $depotName; - } - - public function setDepotProvinceId($depotProvinceId) - { - $this->depotProvinceId = $depotProvinceId; - } - - public function setDepotRegion($depotRegion) - { - $this->depotRegion = $depotRegion; - } - - public function setTelephone($telephone) - { - $this->telephone = $telephone; - } - - public function setZipCode($zipCode) - { - $this->zipCode = $zipCode; - } - -} +>>, "depot_region") + */ + private $depotRegion; + + /** + * @JsonProperty(String, "telephone") + */ + private $telephone; + + /** + * @JsonProperty(String, "zip_code") + */ + private $zipCode; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "contact_name", $this->contactName); + $this->setUserParam($params, "depot_address", $this->depotAddress); + $this->setUserParam($params, "depot_alias", $this->depotAlias); + $this->setUserParam($params, "depot_city_id", $this->depotCityId); + $this->setUserParam($params, "depot_code", $this->depotCode); + $this->setUserParam($params, "depot_district_id", $this->depotDistrictId); + $this->setUserParam($params, "depot_name", $this->depotName); + $this->setUserParam($params, "depot_province_id", $this->depotProvinceId); + $this->setUserParam($params, "depot_region", $this->depotRegion); + $this->setUserParam($params, "telephone", $this->telephone); + $this->setUserParam($params, "zip_code", $this->zipCode); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.express.add.depot"; + } + + public function setContactName($contactName) + { + $this->contactName = $contactName; + } + + public function setDepotAddress($depotAddress) + { + $this->depotAddress = $depotAddress; + } + + public function setDepotAlias($depotAlias) + { + $this->depotAlias = $depotAlias; + } + + public function setDepotCityId($depotCityId) + { + $this->depotCityId = $depotCityId; + } + + public function setDepotCode($depotCode) + { + $this->depotCode = $depotCode; + } + + public function setDepotDistrictId($depotDistrictId) + { + $this->depotDistrictId = $depotDistrictId; + } + + public function setDepotName($depotName) + { + $this->depotName = $depotName; + } + + public function setDepotProvinceId($depotProvinceId) + { + $this->depotProvinceId = $depotProvinceId; + } + + public function setDepotRegion($depotRegion) + { + $this->depotRegion = $depotRegion; + } + + public function setTelephone($telephone) + { + $this->telephone = $telephone; + } + + public function setZipCode($zipCode) + { + $this->zipCode = $zipCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddExpressChangeDepotInfoRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddExpressChangeDepotInfoRequest.php index 9b64c44..84fb296 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddExpressChangeDepotInfoRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddExpressChangeDepotInfoRequest.php @@ -1,154 +1,154 @@ -setUserParam($params, "depot_id", $this->depotId); - $this->setUserParam($params, "depot_code", $this->depotCode); - $this->setUserParam($params, "depot_name", $this->depotName); - $this->setUserParam($params, "depot_alias", $this->depotAlias); - $this->setUserParam($params, "depot_province_id", $this->depotProvinceId); - $this->setUserParam($params, "depot_city_id", $this->depotCityId); - $this->setUserParam($params, "depot_district_id", $this->depotDistrictId); - $this->setUserParam($params, "depot_address", $this->depotAddress); - $this->setUserParam($params, "contact_name", $this->contactName); - $this->setUserParam($params, "telephone", $this->telephone); - $this->setUserParam($params, "depot_region", $this->depotRegion); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.express.change.depot.info"; - } - - public function setDepotId($depotId) - { - $this->depotId = $depotId; - } - - public function setDepotCode($depotCode) - { - $this->depotCode = $depotCode; - } - - public function setDepotName($depotName) - { - $this->depotName = $depotName; - } - - public function setDepotAlias($depotAlias) - { - $this->depotAlias = $depotAlias; - } - - public function setDepotProvinceId($depotProvinceId) - { - $this->depotProvinceId = $depotProvinceId; - } - - public function setDepotCityId($depotCityId) - { - $this->depotCityId = $depotCityId; - } - - public function setDepotDistrictId($depotDistrictId) - { - $this->depotDistrictId = $depotDistrictId; - } - - public function setDepotAddress($depotAddress) - { - $this->depotAddress = $depotAddress; - } - - public function setContactName($contactName) - { - $this->contactName = $contactName; - } - - public function setTelephone($telephone) - { - $this->telephone = $telephone; - } - - public function setDepotRegion($depotRegion) - { - $this->depotRegion = $depotRegion; - } - -} +setUserParam($params, "depot_id", $this->depotId); + $this->setUserParam($params, "depot_code", $this->depotCode); + $this->setUserParam($params, "depot_name", $this->depotName); + $this->setUserParam($params, "depot_alias", $this->depotAlias); + $this->setUserParam($params, "depot_province_id", $this->depotProvinceId); + $this->setUserParam($params, "depot_city_id", $this->depotCityId); + $this->setUserParam($params, "depot_district_id", $this->depotDistrictId); + $this->setUserParam($params, "depot_address", $this->depotAddress); + $this->setUserParam($params, "contact_name", $this->contactName); + $this->setUserParam($params, "telephone", $this->telephone); + $this->setUserParam($params, "depot_region", $this->depotRegion); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.express.change.depot.info"; + } + + public function setDepotId($depotId) + { + $this->depotId = $depotId; + } + + public function setDepotCode($depotCode) + { + $this->depotCode = $depotCode; + } + + public function setDepotName($depotName) + { + $this->depotName = $depotName; + } + + public function setDepotAlias($depotAlias) + { + $this->depotAlias = $depotAlias; + } + + public function setDepotProvinceId($depotProvinceId) + { + $this->depotProvinceId = $depotProvinceId; + } + + public function setDepotCityId($depotCityId) + { + $this->depotCityId = $depotCityId; + } + + public function setDepotDistrictId($depotDistrictId) + { + $this->depotDistrictId = $depotDistrictId; + } + + public function setDepotAddress($depotAddress) + { + $this->depotAddress = $depotAddress; + } + + public function setContactName($contactName) + { + $this->contactName = $contactName; + } + + public function setTelephone($telephone) + { + $this->telephone = $telephone; + } + + public function setDepotRegion($depotRegion) + { + $this->depotRegion = $depotRegion; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddExpressDepotInfoGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddExpressDepotInfoGetRequest.php index 27189ec..fce59bf 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddExpressDepotInfoGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddExpressDepotInfoGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "depot_id", $this->depotId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.express.depot.info.get"; - } - - public function setDepotId($depotId) - { - $this->depotId = $depotId; - } - -} +setUserParam($params, "depot_id", $this->depotId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.express.depot.info.get"; + } + + public function setDepotId($depotId) + { + $this->depotId = $depotId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddExpressDepotListGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddExpressDepotListGetRequest.php index 246d358..2bc4d7c 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddExpressDepotListGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddExpressDepotListGetRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "length", $this->length); - $this->setUserParam($params, "start", $this->start); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.express.depot.list.get"; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setStart($start) - { - $this->start = $start; - } - -} +setUserParam($params, "length", $this->length); + $this->setUserParam($params, "start", $this->start); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.express.depot.list.get"; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setStart($start) + { + $this->start = $start; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddExpressMallDepotSimpleGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddExpressMallDepotSimpleGetRequest.php index 74d90b9..158a6ff 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddExpressMallDepotSimpleGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddExpressMallDepotSimpleGetRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "code", $this->code); - $this->setUserParam($params, "length", $this->length); - $this->setUserParam($params, "name", $this->name); - $this->setUserParam($params, "start", $this->start); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.express.search.depot"; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setStart($start) - { - $this->start = $start; - } - -} +setUserParam($params, "code", $this->code); + $this->setUserParam($params, "length", $this->length); + $this->setUserParam($params, "name", $this->name); + $this->setUserParam($params, "start", $this->start); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.express.search.depot"; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setStart($start) + { + $this->start = $start; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFdsOrderGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFdsOrderGetRequest.php index a5bd605..22619e3 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFdsOrderGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFdsOrderGetRequest.php @@ -1,74 +1,74 @@ -setUserParam($params, "param_fds_order_get_request", $this->paramFdsOrderGetRequest); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.fds.order.get"; - } - - public function setParamFdsOrderGetRequest($paramFdsOrderGetRequest) - { - $this->paramFdsOrderGetRequest = $paramFdsOrderGetRequest; - } - -} - -class PddFdsOrderGetRequest_ParamFdsOrderGetRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "mall_mask_id") - */ - private $mallMaskId; - - /** - * @JsonProperty(String, "order_mask_sn") - */ - private $orderMaskSn; - - public function setMallMaskId($mallMaskId) - { - $this->mallMaskId = $mallMaskId; - } - - public function setOrderMaskSn($orderMaskSn) - { - $this->orderMaskSn = $orderMaskSn; - } - -} +setUserParam($params, "param_fds_order_get_request", $this->paramFdsOrderGetRequest); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.fds.order.get"; + } + + public function setParamFdsOrderGetRequest($paramFdsOrderGetRequest) + { + $this->paramFdsOrderGetRequest = $paramFdsOrderGetRequest; + } + +} + +class PddFdsOrderGetRequest_ParamFdsOrderGetRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "mall_mask_id") + */ + private $mallMaskId; + + /** + * @JsonProperty(String, "order_mask_sn") + */ + private $orderMaskSn; + + public function setMallMaskId($mallMaskId) + { + $this->mallMaskId = $mallMaskId; + } + + public function setOrderMaskSn($orderMaskSn) + { + $this->orderMaskSn = $orderMaskSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFdsOrderListGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFdsOrderListGetRequest.php index 749a5fd..09d52ea 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFdsOrderListGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFdsOrderListGetRequest.php @@ -1,94 +1,94 @@ -setUserParam($params, "param_fds_order_list_get_request", $this->paramFdsOrderListGetRequest); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.fds.order.list.get"; - } - - public function setParamFdsOrderListGetRequest($paramFdsOrderListGetRequest) - { - $this->paramFdsOrderListGetRequest = $paramFdsOrderListGetRequest; - } - -} - -class PddFdsOrderListGetRequest_ParamFdsOrderListGetRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "end_updated_time") - */ - private $endUpdatedTime; - - /** - * @JsonProperty(Integer, "page") - */ - private $page; - - /** - * @JsonProperty(Integer, "page_size") - */ - private $pageSize; - - /** - * @JsonProperty(Long, "start_updated_time") - */ - private $startUpdatedTime; - - public function setEndUpdatedTime($endUpdatedTime) - { - $this->endUpdatedTime = $endUpdatedTime; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setStartUpdatedTime($startUpdatedTime) - { - $this->startUpdatedTime = $startUpdatedTime; - } - -} +setUserParam($params, "param_fds_order_list_get_request", $this->paramFdsOrderListGetRequest); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.fds.order.list.get"; + } + + public function setParamFdsOrderListGetRequest($paramFdsOrderListGetRequest) + { + $this->paramFdsOrderListGetRequest = $paramFdsOrderListGetRequest; + } + +} + +class PddFdsOrderListGetRequest_ParamFdsOrderListGetRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "end_updated_time") + */ + private $endUpdatedTime; + + /** + * @JsonProperty(Integer, "page") + */ + private $page; + + /** + * @JsonProperty(Integer, "page_size") + */ + private $pageSize; + + /** + * @JsonProperty(Long, "start_updated_time") + */ + private $startUpdatedTime; + + public function setEndUpdatedTime($endUpdatedTime) + { + $this->endUpdatedTime = $endUpdatedTime; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setStartUpdatedTime($startUpdatedTime) + { + $this->startUpdatedTime = $startUpdatedTime; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFdsRoleGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFdsRoleGetRequest.php index 961ad05..bcbc5e2 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFdsRoleGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFdsRoleGetRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "pdd_fds_waybill_cancel_request", $this->pddFdsWaybillCancelRequest); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.fds.waybill.cancel"; - } - - public function setPddFdsWaybillCancelRequest($pddFdsWaybillCancelRequest) - { - $this->pddFdsWaybillCancelRequest = $pddFdsWaybillCancelRequest; - } - -} - -class PddFdsWaybillCancelRequest_InnerPddFdsWaybillCancelRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "mall_mask_id") - */ - private $mallMaskId; - - /** - * @JsonProperty(String, "order_mask_sn") - */ - private $orderMaskSn; - - /** - * @JsonProperty(String, "waybill_code") - */ - private $waybillCode; - - /** - * @JsonProperty(String, "wp_code") - */ - private $wpCode; - - public function setMallMaskId($mallMaskId) - { - $this->mallMaskId = $mallMaskId; - } - - public function setOrderMaskSn($orderMaskSn) - { - $this->orderMaskSn = $orderMaskSn; - } - - public function setWaybillCode($waybillCode) - { - $this->waybillCode = $waybillCode; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - -} +setUserParam($params, "pdd_fds_waybill_cancel_request", $this->pddFdsWaybillCancelRequest); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.fds.waybill.cancel"; + } + + public function setPddFdsWaybillCancelRequest($pddFdsWaybillCancelRequest) + { + $this->pddFdsWaybillCancelRequest = $pddFdsWaybillCancelRequest; + } + +} + +class PddFdsWaybillCancelRequest_InnerPddFdsWaybillCancelRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "mall_mask_id") + */ + private $mallMaskId; + + /** + * @JsonProperty(String, "order_mask_sn") + */ + private $orderMaskSn; + + /** + * @JsonProperty(String, "waybill_code") + */ + private $waybillCode; + + /** + * @JsonProperty(String, "wp_code") + */ + private $wpCode; + + public function setMallMaskId($mallMaskId) + { + $this->mallMaskId = $mallMaskId; + } + + public function setOrderMaskSn($orderMaskSn) + { + $this->orderMaskSn = $orderMaskSn; + } + + public function setWaybillCode($waybillCode) + { + $this->waybillCode = $waybillCode; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFdsWaybillGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFdsWaybillGetRequest.php index 45898fa..4f42792 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFdsWaybillGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFdsWaybillGetRequest.php @@ -1,444 +1,444 @@ -setUserParam($params, "param_fds_waybill_get_request", $this->paramFdsWaybillGetRequest); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.fds.waybill.get"; - } - - public function setParamFdsWaybillGetRequest($paramFdsWaybillGetRequest) - { - $this->paramFdsWaybillGetRequest = $paramFdsWaybillGetRequest; - } - -} - -class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSender, "sender") - */ - private $sender; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItem>, "trade_order_info_dtos") - */ - private $tradeOrderInfoDtos; - - /** - * @JsonProperty(String, "wp_code") - */ - private $wpCode; - - public function setSender($sender) - { - $this->sender = $sender; - } - - public function setTradeOrderInfoDtos($tradeOrderInfoDtos) - { - $this->tradeOrderInfoDtos = $tradeOrderInfoDtos; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - -} - -class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSender extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSenderAddress, "address") - */ - private $address; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - -} - -class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSenderAddress extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - /** - * @JsonProperty(String, "detail") - */ - private $detail; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "town") - */ - private $town; - - public function setCity($city) - { - $this->city = $city; - } - - public function setCountry($country) - { - $this->country = $country; - } - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setTown($town) - { - $this->town = $town; - } - -} - -class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "logistics_services") - */ - private $logisticsServices; - - /** - * @JsonProperty(String, "object_id") - */ - private $objectId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfo, "order_info") - */ - private $orderInfo; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfo, "package_info") - */ - private $packageInfo; - - /** - * @JsonProperty(String, "template_url") - */ - private $templateUrl; - - /** - * @JsonProperty(Long, "user_id") - */ - private $userId; - - public function setLogisticsServices($logisticsServices) - { - $this->logisticsServices = $logisticsServices; - } - - public function setObjectId($objectId) - { - $this->objectId = $objectId; - } - - public function setOrderInfo($orderInfo) - { - $this->orderInfo = $orderInfo; - } - - public function setPackageInfo($packageInfo) - { - $this->packageInfo = $packageInfo; - } - - public function setTemplateUrl($templateUrl) - { - $this->templateUrl = $templateUrl; - } - - public function setUserId($userId) - { - $this->userId = $userId; - } - -} - -class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "order_channels_type") - */ - private $orderChannelsType; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfoTradeOrderListItem>, "trade_order_list") - */ - private $tradeOrderList; - - public function setOrderChannelsType($orderChannelsType) - { - $this->orderChannelsType = $orderChannelsType; - } - - public function setTradeOrderList($tradeOrderList) - { - $this->tradeOrderList = $tradeOrderList; - } - -} - -class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfoTradeOrderListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "mall_mask_id") - */ - private $mallMaskId; - - /** - * @JsonProperty(String, "order_mask_sn") - */ - private $orderMaskSn; - - public function setMallMaskId($mallMaskId) - { - $this->mallMaskId = $mallMaskId; - } - - public function setOrderMaskSn($orderMaskSn) - { - $this->orderMaskSn = $orderMaskSn; - } - -} - -class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "goods_description") - */ - private $goodsDescription; - - /** - * @JsonProperty(String, "id") - */ - private $id; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfoItemsItem>, "items") - */ - private $items; - - /** - * @JsonProperty(String, "packaging_description") - */ - private $packagingDescription; - - /** - * @JsonProperty(String, "total_packages_count") - */ - private $totalPackagesCount; - - /** - * @JsonProperty(Integer, "volume") - */ - private $volume; - - /** - * @JsonProperty(Integer, "weight") - */ - private $weight; - - public function setGoodsDescription($goodsDescription) - { - $this->goodsDescription = $goodsDescription; - } - - public function setId($id) - { - $this->id = $id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function setPackagingDescription($packagingDescription) - { - $this->packagingDescription = $packagingDescription; - } - - public function setTotalPackagesCount($totalPackagesCount) - { - $this->totalPackagesCount = $totalPackagesCount; - } - - public function setVolume($volume) - { - $this->volume = $volume; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - -} - -class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfoItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "count") - */ - private $count; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setCount($count) - { - $this->count = $count; - } - - public function setName($name) - { - $this->name = $name; - } - -} +setUserParam($params, "param_fds_waybill_get_request", $this->paramFdsWaybillGetRequest); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.fds.waybill.get"; + } + + public function setParamFdsWaybillGetRequest($paramFdsWaybillGetRequest) + { + $this->paramFdsWaybillGetRequest = $paramFdsWaybillGetRequest; + } + +} + +class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSender, "sender") + */ + private $sender; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItem>, "trade_order_info_dtos") + */ + private $tradeOrderInfoDtos; + + /** + * @JsonProperty(String, "wp_code") + */ + private $wpCode; + + public function setSender($sender) + { + $this->sender = $sender; + } + + public function setTradeOrderInfoDtos($tradeOrderInfoDtos) + { + $this->tradeOrderInfoDtos = $tradeOrderInfoDtos; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + +} + +class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSender extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSenderAddress, "address") + */ + private $address; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + +} + +class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestSenderAddress extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + /** + * @JsonProperty(String, "detail") + */ + private $detail; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "town") + */ + private $town; + + public function setCity($city) + { + $this->city = $city; + } + + public function setCountry($country) + { + $this->country = $country; + } + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setTown($town) + { + $this->town = $town; + } + +} + +class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "logistics_services") + */ + private $logisticsServices; + + /** + * @JsonProperty(String, "object_id") + */ + private $objectId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfo, "order_info") + */ + private $orderInfo; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfo, "package_info") + */ + private $packageInfo; + + /** + * @JsonProperty(String, "template_url") + */ + private $templateUrl; + + /** + * @JsonProperty(Long, "user_id") + */ + private $userId; + + public function setLogisticsServices($logisticsServices) + { + $this->logisticsServices = $logisticsServices; + } + + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + + public function setOrderInfo($orderInfo) + { + $this->orderInfo = $orderInfo; + } + + public function setPackageInfo($packageInfo) + { + $this->packageInfo = $packageInfo; + } + + public function setTemplateUrl($templateUrl) + { + $this->templateUrl = $templateUrl; + } + + public function setUserId($userId) + { + $this->userId = $userId; + } + +} + +class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "order_channels_type") + */ + private $orderChannelsType; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfoTradeOrderListItem>, "trade_order_list") + */ + private $tradeOrderList; + + public function setOrderChannelsType($orderChannelsType) + { + $this->orderChannelsType = $orderChannelsType; + } + + public function setTradeOrderList($tradeOrderList) + { + $this->tradeOrderList = $tradeOrderList; + } + +} + +class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemOrderInfoTradeOrderListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "mall_mask_id") + */ + private $mallMaskId; + + /** + * @JsonProperty(String, "order_mask_sn") + */ + private $orderMaskSn; + + public function setMallMaskId($mallMaskId) + { + $this->mallMaskId = $mallMaskId; + } + + public function setOrderMaskSn($orderMaskSn) + { + $this->orderMaskSn = $orderMaskSn; + } + +} + +class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "goods_description") + */ + private $goodsDescription; + + /** + * @JsonProperty(String, "id") + */ + private $id; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfoItemsItem>, "items") + */ + private $items; + + /** + * @JsonProperty(String, "packaging_description") + */ + private $packagingDescription; + + /** + * @JsonProperty(String, "total_packages_count") + */ + private $totalPackagesCount; + + /** + * @JsonProperty(Integer, "volume") + */ + private $volume; + + /** + * @JsonProperty(Integer, "weight") + */ + private $weight; + + public function setGoodsDescription($goodsDescription) + { + $this->goodsDescription = $goodsDescription; + } + + public function setId($id) + { + $this->id = $id; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function setPackagingDescription($packagingDescription) + { + $this->packagingDescription = $packagingDescription; + } + + public function setTotalPackagesCount($totalPackagesCount) + { + $this->totalPackagesCount = $totalPackagesCount; + } + + public function setVolume($volume) + { + $this->volume = $volume; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + +} + +class PddFdsWaybillGetRequest_ParamFdsWaybillGetRequestTradeOrderInfoDtosItemPackageInfoItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "count") + */ + private $count; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setCount($count) + { + $this->count = $count; + } + + public function setName($name) + { + $this->name = $name; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFdsWaybillReturnRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFdsWaybillReturnRequest.php index 53bc332..30f87e0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFdsWaybillReturnRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFdsWaybillReturnRequest.php @@ -1,94 +1,94 @@ -setUserParam($params, "param_fds_waybill_return_request", $this->paramFdsWaybillReturnRequest); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.fds.waybill.return"; - } - - public function setParamFdsWaybillReturnRequest($paramFdsWaybillReturnRequest) - { - $this->paramFdsWaybillReturnRequest = $paramFdsWaybillReturnRequest; - } - -} - -class PddFdsWaybillReturnRequest_ParamFdsWaybillReturnRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "mall_mask_id") - */ - private $mallMaskId; - - /** - * @JsonProperty(String, "order_mask_sn") - */ - private $orderMaskSn; - - /** - * @JsonProperty(String, "waybill_code") - */ - private $waybillCode; - - /** - * @JsonProperty(String, "wp_code") - */ - private $wpCode; - - public function setMallMaskId($mallMaskId) - { - $this->mallMaskId = $mallMaskId; - } - - public function setOrderMaskSn($orderMaskSn) - { - $this->orderMaskSn = $orderMaskSn; - } - - public function setWaybillCode($waybillCode) - { - $this->waybillCode = $waybillCode; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - -} +setUserParam($params, "param_fds_waybill_return_request", $this->paramFdsWaybillReturnRequest); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.fds.waybill.return"; + } + + public function setParamFdsWaybillReturnRequest($paramFdsWaybillReturnRequest) + { + $this->paramFdsWaybillReturnRequest = $paramFdsWaybillReturnRequest; + } + +} + +class PddFdsWaybillReturnRequest_ParamFdsWaybillReturnRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "mall_mask_id") + */ + private $mallMaskId; + + /** + * @JsonProperty(String, "order_mask_sn") + */ + private $orderMaskSn; + + /** + * @JsonProperty(String, "waybill_code") + */ + private $waybillCode; + + /** + * @JsonProperty(String, "wp_code") + */ + private $wpCode; + + public function setMallMaskId($mallMaskId) + { + $this->mallMaskId = $mallMaskId; + } + + public function setOrderMaskSn($orderMaskSn) + { + $this->orderMaskSn = $orderMaskSn; + } + + public function setWaybillCode($waybillCode) + { + $this->waybillCode = $waybillCode; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFinanceBalanceDailyBillUrlGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFinanceBalanceDailyBillUrlGetRequest.php index 8b6c879..c7c3178 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFinanceBalanceDailyBillUrlGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFinanceBalanceDailyBillUrlGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "bill_date", $this->billDate); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.finance.balance.daily.bill.url.get"; - } - - public function setBillDate($billDate) - { - $this->billDate = $billDate; - } - -} +setUserParam($params, "bill_date", $this->billDate); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.finance.balance.daily.bill.url.get"; + } + + public function setBillDate($billDate) + { + $this->billDate = $billDate; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmChangeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmChangeRequest.php index db70dea..dc9998b 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmChangeRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmChangeRequest.php @@ -1,313 +1,313 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - /** - * @JsonProperty(String, "sub_trace_id") - */ - private $subTraceId; - - /** - * @JsonProperty(String, "trace_id") - */ - private $traceId; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "change_time", $this->changeTime); - $this->setUserParam($params, "change_type", $this->changeType); - $this->setUserParam($params, "error_code", $this->errorCode); - $this->setUserParam($params, "error_msg", $this->errorMsg); - $this->setUserParam($params, "out_change_no", $this->outChangeNo); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "trace_id", $this->traceId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.callback.confirm.change"; - } - - public function setChangeTime($changeTime) - { - $this->changeTime = $changeTime; - } - - public function setChangeType($changeType) - { - $this->changeType = $changeType; - } - - public function setErrorCode($errorCode) - { - $this->errorCode = $errorCode; - } - - public function setErrorMsg($errorMsg) - { - $this->errorMsg = $errorMsg; - } - - public function setOutChangeNo($outChangeNo) - { - $this->outChangeNo = $outChangeNo; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - -} - -class PddFlightCallbackConfirmChangeRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "airport_tax") - */ - private $airportTax; - - /** - * @JsonProperty(String, "change_ticket_no") - */ - private $changeTicketNo; - - /** - * @JsonProperty(Long, "fuel_tax") - */ - private $fuelTax; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "origin_pnr") - */ - private $originPnr; - - /** - * @JsonProperty(String, "origin_ticket_no") - */ - private $originTicketNo; - - /** - * @JsonProperty(Long, "pay") - */ - private $pay; - - /** - * @JsonProperty(Long, "pay_airline_tax") - */ - private $payAirlineTax; - - /** - * @JsonProperty(Long, "pay_fee") - */ - private $payFee; - - /** - * @JsonProperty(Long, "pay_fuel_tax") - */ - private $payFuelTax; - - /** - * @JsonProperty(Long, "pay_price") - */ - private $payPrice; - - /** - * @JsonProperty(Long, "price") - */ - private $price; - - /** - * @JsonProperty(String, "sub_out_change_no") - */ - private $subOutChangeNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - public function setAirportTax($airportTax) - { - $this->airportTax = $airportTax; - } - - public function setChangeTicketNo($changeTicketNo) - { - $this->changeTicketNo = $changeTicketNo; - } - - public function setFuelTax($fuelTax) - { - $this->fuelTax = $fuelTax; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setOriginPnr($originPnr) - { - $this->originPnr = $originPnr; - } - - public function setOriginTicketNo($originTicketNo) - { - $this->originTicketNo = $originTicketNo; - } - - public function setPay($pay) - { - $this->pay = $pay; - } - - public function setPayAirlineTax($payAirlineTax) - { - $this->payAirlineTax = $payAirlineTax; - } - - public function setPayFee($payFee) - { - $this->payFee = $payFee; - } - - public function setPayFuelTax($payFuelTax) - { - $this->payFuelTax = $payFuelTax; - } - - public function setPayPrice($payPrice) - { - $this->payPrice = $payPrice; - } - - public function setPrice($price) - { - $this->price = $price; - } - - public function setSubOutChangeNo($subOutChangeNo) - { - $this->subOutChangeNo = $subOutChangeNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + /** + * @JsonProperty(String, "sub_trace_id") + */ + private $subTraceId; + + /** + * @JsonProperty(String, "trace_id") + */ + private $traceId; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "change_time", $this->changeTime); + $this->setUserParam($params, "change_type", $this->changeType); + $this->setUserParam($params, "error_code", $this->errorCode); + $this->setUserParam($params, "error_msg", $this->errorMsg); + $this->setUserParam($params, "out_change_no", $this->outChangeNo); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "trace_id", $this->traceId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.callback.confirm.change"; + } + + public function setChangeTime($changeTime) + { + $this->changeTime = $changeTime; + } + + public function setChangeType($changeType) + { + $this->changeType = $changeType; + } + + public function setErrorCode($errorCode) + { + $this->errorCode = $errorCode; + } + + public function setErrorMsg($errorMsg) + { + $this->errorMsg = $errorMsg; + } + + public function setOutChangeNo($outChangeNo) + { + $this->outChangeNo = $outChangeNo; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + +} + +class PddFlightCallbackConfirmChangeRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "airport_tax") + */ + private $airportTax; + + /** + * @JsonProperty(String, "change_ticket_no") + */ + private $changeTicketNo; + + /** + * @JsonProperty(Long, "fuel_tax") + */ + private $fuelTax; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "origin_pnr") + */ + private $originPnr; + + /** + * @JsonProperty(String, "origin_ticket_no") + */ + private $originTicketNo; + + /** + * @JsonProperty(Long, "pay") + */ + private $pay; + + /** + * @JsonProperty(Long, "pay_airline_tax") + */ + private $payAirlineTax; + + /** + * @JsonProperty(Long, "pay_fee") + */ + private $payFee; + + /** + * @JsonProperty(Long, "pay_fuel_tax") + */ + private $payFuelTax; + + /** + * @JsonProperty(Long, "pay_price") + */ + private $payPrice; + + /** + * @JsonProperty(Long, "price") + */ + private $price; + + /** + * @JsonProperty(String, "sub_out_change_no") + */ + private $subOutChangeNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + public function setAirportTax($airportTax) + { + $this->airportTax = $airportTax; + } + + public function setChangeTicketNo($changeTicketNo) + { + $this->changeTicketNo = $changeTicketNo; + } + + public function setFuelTax($fuelTax) + { + $this->fuelTax = $fuelTax; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setOriginPnr($originPnr) + { + $this->originPnr = $originPnr; + } + + public function setOriginTicketNo($originTicketNo) + { + $this->originTicketNo = $originTicketNo; + } + + public function setPay($pay) + { + $this->pay = $pay; + } + + public function setPayAirlineTax($payAirlineTax) + { + $this->payAirlineTax = $payAirlineTax; + } + + public function setPayFee($payFee) + { + $this->payFee = $payFee; + } + + public function setPayFuelTax($payFuelTax) + { + $this->payFuelTax = $payFuelTax; + } + + public function setPayPrice($payPrice) + { + $this->payPrice = $payPrice; + } + + public function setPrice($price) + { + $this->price = $price; + } + + public function setSubOutChangeNo($subOutChangeNo) + { + $this->subOutChangeNo = $subOutChangeNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmOrderRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmOrderRequest.php index ce6a414..8d604f0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmOrderRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmOrderRequest.php @@ -1,476 +1,476 @@ -, "flight_info_list") - */ - private $flightInfoList; - - /** - * @JsonProperty(String, "out_order_no") - */ - private $outOrderNo; - - /** - * @JsonProperty(String, "parent_travel_sn") - */ - private $parentTravelSn; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightCallbackConfirmOrderRequest_PassengerInfoListItem>, "passenger_info_list") - */ - private $passengerInfoList; - - /** - * @JsonProperty(Integer, "ticket_status") - */ - private $ticketStatus; - - /** - * @JsonProperty(String, "ticket_time") - */ - private $ticketTime; - - /** - * @JsonProperty(Long, "total_airport_tax") - */ - private $totalAirportTax; - - /** - * @JsonProperty(Long, "total_fuel_tax") - */ - private $totalFuelTax; - - /** - * @JsonProperty(Long, "total_pay") - */ - private $totalPay; - - /** - * @JsonProperty(Long, "total_settle_price") - */ - private $totalSettlePrice; - - /** - * @JsonProperty(String, "trace_id") - */ - private $traceId; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "error_code", $this->errorCode); - $this->setUserParam($params, "error_msg", $this->errorMsg); - $this->setUserParam($params, "flight_info_list", $this->flightInfoList); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - $this->setUserParam($params, "ticket_status", $this->ticketStatus); - $this->setUserParam($params, "ticket_time", $this->ticketTime); - $this->setUserParam($params, "total_airport_tax", $this->totalAirportTax); - $this->setUserParam($params, "total_fuel_tax", $this->totalFuelTax); - $this->setUserParam($params, "total_pay", $this->totalPay); - $this->setUserParam($params, "total_settle_price", $this->totalSettlePrice); - $this->setUserParam($params, "trace_id", $this->traceId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.callback.confirm.order"; - } - - public function setErrorCode($errorCode) - { - $this->errorCode = $errorCode; - } - - public function setErrorMsg($errorMsg) - { - $this->errorMsg = $errorMsg; - } - - public function setFlightInfoList($flightInfoList) - { - $this->flightInfoList = $flightInfoList; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - - public function setTicketStatus($ticketStatus) - { - $this->ticketStatus = $ticketStatus; - } - - public function setTicketTime($ticketTime) - { - $this->ticketTime = $ticketTime; - } - - public function setTotalAirportTax($totalAirportTax) - { - $this->totalAirportTax = $totalAirportTax; - } - - public function setTotalFuelTax($totalFuelTax) - { - $this->totalFuelTax = $totalFuelTax; - } - - public function setTotalPay($totalPay) - { - $this->totalPay = $totalPay; - } - - public function setTotalSettlePrice($totalSettlePrice) - { - $this->totalSettlePrice = $totalSettlePrice; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - -} - -class PddFlightCallbackConfirmOrderRequest_FlightInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "arrival_airport_code") - */ - private $arrivalAirportCode; - - /** - * @JsonProperty(String, "arrival_date_time") - */ - private $arrivalDateTime; - - /** - * @JsonProperty(String, "arrival_terminal") - */ - private $arrivalTerminal; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightCallbackConfirmOrderRequest_FlightInfoListItemCabinInfoListItem>, "cabin_info_list") - */ - private $cabinInfoList; - - /** - * @JsonProperty(String, "carrier_code") - */ - private $carrierCode; - - /** - * @JsonProperty(String, "departure_airport_code") - */ - private $departureAirportCode; - - /** - * @JsonProperty(String, "departure_date_time") - */ - private $departureDateTime; - - /** - * @JsonProperty(String, "departure_terminal") - */ - private $departureTerminal; - - /** - * @JsonProperty(String, "flight_no") - */ - private $flightNo; - - /** - * @JsonProperty(String, "operate_carrier_code") - */ - private $operateCarrierCode; - - /** - * @JsonProperty(String, "operate_flight_no") - */ - private $operateFlightNo; - - /** - * @JsonProperty(Integer, "segment_no") - */ - private $segmentNo; - - /** - * @JsonProperty(Integer, "sequence_no") - */ - private $sequenceNo; - - /** - * @JsonProperty(Boolean, "shared") - */ - private $shared; - - public function setArrivalAirportCode($arrivalAirportCode) - { - $this->arrivalAirportCode = $arrivalAirportCode; - } - - public function setArrivalDateTime($arrivalDateTime) - { - $this->arrivalDateTime = $arrivalDateTime; - } - - public function setArrivalTerminal($arrivalTerminal) - { - $this->arrivalTerminal = $arrivalTerminal; - } - - public function setCabinInfoList($cabinInfoList) - { - $this->cabinInfoList = $cabinInfoList; - } - - public function setCarrierCode($carrierCode) - { - $this->carrierCode = $carrierCode; - } - - public function setDepartureAirportCode($departureAirportCode) - { - $this->departureAirportCode = $departureAirportCode; - } - - public function setDepartureDateTime($departureDateTime) - { - $this->departureDateTime = $departureDateTime; - } - - public function setDepartureTerminal($departureTerminal) - { - $this->departureTerminal = $departureTerminal; - } - - public function setFlightNo($flightNo) - { - $this->flightNo = $flightNo; - } - - public function setOperateCarrierCode($operateCarrierCode) - { - $this->operateCarrierCode = $operateCarrierCode; - } - - public function setOperateFlightNo($operateFlightNo) - { - $this->operateFlightNo = $operateFlightNo; - } - - public function setSegmentNo($segmentNo) - { - $this->segmentNo = $segmentNo; - } - - public function setSequenceNo($sequenceNo) - { - $this->sequenceNo = $sequenceNo; - } - - public function setShared($shared) - { - $this->shared = $shared; - } - -} - -class PddFlightCallbackConfirmOrderRequest_FlightInfoListItemCabinInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "sub_class") - */ - private $subClass; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setSubClass($subClass) - { - $this->subClass = $subClass; - } - -} - -class PddFlightCallbackConfirmOrderRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "airport_tax") - */ - private $airportTax; - - /** - * @JsonProperty(Long, "fuel_tax") - */ - private $fuelTax; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "out_sub_order_no") - */ - private $outSubOrderNo; - - /** - * @JsonProperty(Long, "pay") - */ - private $pay; - - /** - * @JsonProperty(String, "pnr") - */ - private $pnr; - - /** - * @JsonProperty(Long, "settle_price") - */ - private $settlePrice; - - /** - * @JsonProperty(String, "ticket_no") - */ - private $ticketNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - public function setAirportTax($airportTax) - { - $this->airportTax = $airportTax; - } - - public function setFuelTax($fuelTax) - { - $this->fuelTax = $fuelTax; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setOutSubOrderNo($outSubOrderNo) - { - $this->outSubOrderNo = $outSubOrderNo; - } - - public function setPay($pay) - { - $this->pay = $pay; - } - - public function setPnr($pnr) - { - $this->pnr = $pnr; - } - - public function setSettlePrice($settlePrice) - { - $this->settlePrice = $settlePrice; - } - - public function setTicketNo($ticketNo) - { - $this->ticketNo = $ticketNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - -} +, "flight_info_list") + */ + private $flightInfoList; + + /** + * @JsonProperty(String, "out_order_no") + */ + private $outOrderNo; + + /** + * @JsonProperty(String, "parent_travel_sn") + */ + private $parentTravelSn; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightCallbackConfirmOrderRequest_PassengerInfoListItem>, "passenger_info_list") + */ + private $passengerInfoList; + + /** + * @JsonProperty(Integer, "ticket_status") + */ + private $ticketStatus; + + /** + * @JsonProperty(String, "ticket_time") + */ + private $ticketTime; + + /** + * @JsonProperty(Long, "total_airport_tax") + */ + private $totalAirportTax; + + /** + * @JsonProperty(Long, "total_fuel_tax") + */ + private $totalFuelTax; + + /** + * @JsonProperty(Long, "total_pay") + */ + private $totalPay; + + /** + * @JsonProperty(Long, "total_settle_price") + */ + private $totalSettlePrice; + + /** + * @JsonProperty(String, "trace_id") + */ + private $traceId; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "error_code", $this->errorCode); + $this->setUserParam($params, "error_msg", $this->errorMsg); + $this->setUserParam($params, "flight_info_list", $this->flightInfoList); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + $this->setUserParam($params, "ticket_status", $this->ticketStatus); + $this->setUserParam($params, "ticket_time", $this->ticketTime); + $this->setUserParam($params, "total_airport_tax", $this->totalAirportTax); + $this->setUserParam($params, "total_fuel_tax", $this->totalFuelTax); + $this->setUserParam($params, "total_pay", $this->totalPay); + $this->setUserParam($params, "total_settle_price", $this->totalSettlePrice); + $this->setUserParam($params, "trace_id", $this->traceId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.callback.confirm.order"; + } + + public function setErrorCode($errorCode) + { + $this->errorCode = $errorCode; + } + + public function setErrorMsg($errorMsg) + { + $this->errorMsg = $errorMsg; + } + + public function setFlightInfoList($flightInfoList) + { + $this->flightInfoList = $flightInfoList; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + + public function setTicketStatus($ticketStatus) + { + $this->ticketStatus = $ticketStatus; + } + + public function setTicketTime($ticketTime) + { + $this->ticketTime = $ticketTime; + } + + public function setTotalAirportTax($totalAirportTax) + { + $this->totalAirportTax = $totalAirportTax; + } + + public function setTotalFuelTax($totalFuelTax) + { + $this->totalFuelTax = $totalFuelTax; + } + + public function setTotalPay($totalPay) + { + $this->totalPay = $totalPay; + } + + public function setTotalSettlePrice($totalSettlePrice) + { + $this->totalSettlePrice = $totalSettlePrice; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + +} + +class PddFlightCallbackConfirmOrderRequest_FlightInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "arrival_airport_code") + */ + private $arrivalAirportCode; + + /** + * @JsonProperty(String, "arrival_date_time") + */ + private $arrivalDateTime; + + /** + * @JsonProperty(String, "arrival_terminal") + */ + private $arrivalTerminal; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightCallbackConfirmOrderRequest_FlightInfoListItemCabinInfoListItem>, "cabin_info_list") + */ + private $cabinInfoList; + + /** + * @JsonProperty(String, "carrier_code") + */ + private $carrierCode; + + /** + * @JsonProperty(String, "departure_airport_code") + */ + private $departureAirportCode; + + /** + * @JsonProperty(String, "departure_date_time") + */ + private $departureDateTime; + + /** + * @JsonProperty(String, "departure_terminal") + */ + private $departureTerminal; + + /** + * @JsonProperty(String, "flight_no") + */ + private $flightNo; + + /** + * @JsonProperty(String, "operate_carrier_code") + */ + private $operateCarrierCode; + + /** + * @JsonProperty(String, "operate_flight_no") + */ + private $operateFlightNo; + + /** + * @JsonProperty(Integer, "segment_no") + */ + private $segmentNo; + + /** + * @JsonProperty(Integer, "sequence_no") + */ + private $sequenceNo; + + /** + * @JsonProperty(Boolean, "shared") + */ + private $shared; + + public function setArrivalAirportCode($arrivalAirportCode) + { + $this->arrivalAirportCode = $arrivalAirportCode; + } + + public function setArrivalDateTime($arrivalDateTime) + { + $this->arrivalDateTime = $arrivalDateTime; + } + + public function setArrivalTerminal($arrivalTerminal) + { + $this->arrivalTerminal = $arrivalTerminal; + } + + public function setCabinInfoList($cabinInfoList) + { + $this->cabinInfoList = $cabinInfoList; + } + + public function setCarrierCode($carrierCode) + { + $this->carrierCode = $carrierCode; + } + + public function setDepartureAirportCode($departureAirportCode) + { + $this->departureAirportCode = $departureAirportCode; + } + + public function setDepartureDateTime($departureDateTime) + { + $this->departureDateTime = $departureDateTime; + } + + public function setDepartureTerminal($departureTerminal) + { + $this->departureTerminal = $departureTerminal; + } + + public function setFlightNo($flightNo) + { + $this->flightNo = $flightNo; + } + + public function setOperateCarrierCode($operateCarrierCode) + { + $this->operateCarrierCode = $operateCarrierCode; + } + + public function setOperateFlightNo($operateFlightNo) + { + $this->operateFlightNo = $operateFlightNo; + } + + public function setSegmentNo($segmentNo) + { + $this->segmentNo = $segmentNo; + } + + public function setSequenceNo($sequenceNo) + { + $this->sequenceNo = $sequenceNo; + } + + public function setShared($shared) + { + $this->shared = $shared; + } + +} + +class PddFlightCallbackConfirmOrderRequest_FlightInfoListItemCabinInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "sub_class") + */ + private $subClass; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setSubClass($subClass) + { + $this->subClass = $subClass; + } + +} + +class PddFlightCallbackConfirmOrderRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "airport_tax") + */ + private $airportTax; + + /** + * @JsonProperty(Long, "fuel_tax") + */ + private $fuelTax; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "out_sub_order_no") + */ + private $outSubOrderNo; + + /** + * @JsonProperty(Long, "pay") + */ + private $pay; + + /** + * @JsonProperty(String, "pnr") + */ + private $pnr; + + /** + * @JsonProperty(Long, "settle_price") + */ + private $settlePrice; + + /** + * @JsonProperty(String, "ticket_no") + */ + private $ticketNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + public function setAirportTax($airportTax) + { + $this->airportTax = $airportTax; + } + + public function setFuelTax($fuelTax) + { + $this->fuelTax = $fuelTax; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setOutSubOrderNo($outSubOrderNo) + { + $this->outSubOrderNo = $outSubOrderNo; + } + + public function setPay($pay) + { + $this->pay = $pay; + } + + public function setPnr($pnr) + { + $this->pnr = $pnr; + } + + public function setSettlePrice($settlePrice) + { + $this->settlePrice = $settlePrice; + } + + public function setTicketNo($ticketNo) + { + $this->ticketNo = $ticketNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmRefundRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmRefundRequest.php index 1da6df3..ffadbc3 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmRefundRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackConfirmRefundRequest.php @@ -1,364 +1,364 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - /** - * @JsonProperty(Integer, "refund_callback_type") - */ - private $refundCallbackType; - - /** - * @JsonProperty(Integer, "refund_status") - */ - private $refundStatus; - - /** - * @JsonProperty(String, "refund_time") - */ - private $refundTime; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightCallbackConfirmRefundRequest_SubRefundInfoListItem>, "sub_refund_info_list") - */ - private $subRefundInfoList; - - /** - * @JsonProperty(String, "trace_id") - */ - private $traceId; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "error_code", $this->errorCode); - $this->setUserParam($params, "error_msg", $this->errorMsg); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "out_refund_no", $this->outRefundNo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - $this->setUserParam($params, "refund_callback_type", $this->refundCallbackType); - $this->setUserParam($params, "refund_status", $this->refundStatus); - $this->setUserParam($params, "refund_time", $this->refundTime); - $this->setUserParam($params, "sub_refund_info_list", $this->subRefundInfoList); - $this->setUserParam($params, "trace_id", $this->traceId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.callback.confirm.refund"; - } - - public function setErrorCode($errorCode) - { - $this->errorCode = $errorCode; - } - - public function setErrorMsg($errorMsg) - { - $this->errorMsg = $errorMsg; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setOutRefundNo($outRefundNo) - { - $this->outRefundNo = $outRefundNo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - - public function setRefundCallbackType($refundCallbackType) - { - $this->refundCallbackType = $refundCallbackType; - } - - public function setRefundStatus($refundStatus) - { - $this->refundStatus = $refundStatus; - } - - public function setRefundTime($refundTime) - { - $this->refundTime = $refundTime; - } - - public function setSubRefundInfoList($subRefundInfoList) - { - $this->subRefundInfoList = $subRefundInfoList; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - -} - -class PddFlightCallbackConfirmRefundRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(Long, "refund_airport_tax") - */ - private $refundAirportTax; - - /** - * @JsonProperty(Long, "refund_fee") - */ - private $refundFee; - - /** - * @JsonProperty(Long, "refund_fuel_tax") - */ - private $refundFuelTax; - - /** - * @JsonProperty(Long, "refund_settle_price") - */ - private $refundSettlePrice; - - /** - * @JsonProperty(String, "sub_out_refund_no") - */ - private $subOutRefundNo; - - /** - * @JsonProperty(String, "ticket_no") - */ - private $ticketNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - public function setName($name) - { - $this->name = $name; - } - - public function setRefundAirportTax($refundAirportTax) - { - $this->refundAirportTax = $refundAirportTax; - } - - public function setRefundFee($refundFee) - { - $this->refundFee = $refundFee; - } - - public function setRefundFuelTax($refundFuelTax) - { - $this->refundFuelTax = $refundFuelTax; - } - - public function setRefundSettlePrice($refundSettlePrice) - { - $this->refundSettlePrice = $refundSettlePrice; - } - - public function setSubOutRefundNo($subOutRefundNo) - { - $this->subOutRefundNo = $subOutRefundNo; - } - - public function setTicketNo($ticketNo) - { - $this->ticketNo = $ticketNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - -} - -class PddFlightCallbackConfirmRefundRequest_SubRefundInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "no") - */ - private $no; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightCallbackConfirmRefundRequest_SubRefundInfoListItemPassengerInfoListItem>, "passenger_info_list") - */ - private $passengerInfoList; - - public function setNo($no) - { - $this->no = $no; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - -} - -class PddFlightCallbackConfirmRefundRequest_SubRefundInfoListItemPassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(Long, "refund_airport_tax") - */ - private $refundAirportTax; - - /** - * @JsonProperty(Long, "refund_fee") - */ - private $refundFee; - - /** - * @JsonProperty(Long, "refund_fuel_tax") - */ - private $refundFuelTax; - - /** - * @JsonProperty(Long, "refund_settle_price") - */ - private $refundSettlePrice; - - /** - * @JsonProperty(String, "sub_out_refund_no") - */ - private $subOutRefundNo; - - /** - * @JsonProperty(String, "ticket_no") - */ - private $ticketNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - public function setName($name) - { - $this->name = $name; - } - - public function setRefundAirportTax($refundAirportTax) - { - $this->refundAirportTax = $refundAirportTax; - } - - public function setRefundFee($refundFee) - { - $this->refundFee = $refundFee; - } - - public function setRefundFuelTax($refundFuelTax) - { - $this->refundFuelTax = $refundFuelTax; - } - - public function setRefundSettlePrice($refundSettlePrice) - { - $this->refundSettlePrice = $refundSettlePrice; - } - - public function setSubOutRefundNo($subOutRefundNo) - { - $this->subOutRefundNo = $subOutRefundNo; - } - - public function setTicketNo($ticketNo) - { - $this->ticketNo = $ticketNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + /** + * @JsonProperty(Integer, "refund_callback_type") + */ + private $refundCallbackType; + + /** + * @JsonProperty(Integer, "refund_status") + */ + private $refundStatus; + + /** + * @JsonProperty(String, "refund_time") + */ + private $refundTime; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightCallbackConfirmRefundRequest_SubRefundInfoListItem>, "sub_refund_info_list") + */ + private $subRefundInfoList; + + /** + * @JsonProperty(String, "trace_id") + */ + private $traceId; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "error_code", $this->errorCode); + $this->setUserParam($params, "error_msg", $this->errorMsg); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "out_refund_no", $this->outRefundNo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + $this->setUserParam($params, "refund_callback_type", $this->refundCallbackType); + $this->setUserParam($params, "refund_status", $this->refundStatus); + $this->setUserParam($params, "refund_time", $this->refundTime); + $this->setUserParam($params, "sub_refund_info_list", $this->subRefundInfoList); + $this->setUserParam($params, "trace_id", $this->traceId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.callback.confirm.refund"; + } + + public function setErrorCode($errorCode) + { + $this->errorCode = $errorCode; + } + + public function setErrorMsg($errorMsg) + { + $this->errorMsg = $errorMsg; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setOutRefundNo($outRefundNo) + { + $this->outRefundNo = $outRefundNo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + + public function setRefundCallbackType($refundCallbackType) + { + $this->refundCallbackType = $refundCallbackType; + } + + public function setRefundStatus($refundStatus) + { + $this->refundStatus = $refundStatus; + } + + public function setRefundTime($refundTime) + { + $this->refundTime = $refundTime; + } + + public function setSubRefundInfoList($subRefundInfoList) + { + $this->subRefundInfoList = $subRefundInfoList; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + +} + +class PddFlightCallbackConfirmRefundRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(Long, "refund_airport_tax") + */ + private $refundAirportTax; + + /** + * @JsonProperty(Long, "refund_fee") + */ + private $refundFee; + + /** + * @JsonProperty(Long, "refund_fuel_tax") + */ + private $refundFuelTax; + + /** + * @JsonProperty(Long, "refund_settle_price") + */ + private $refundSettlePrice; + + /** + * @JsonProperty(String, "sub_out_refund_no") + */ + private $subOutRefundNo; + + /** + * @JsonProperty(String, "ticket_no") + */ + private $ticketNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + public function setName($name) + { + $this->name = $name; + } + + public function setRefundAirportTax($refundAirportTax) + { + $this->refundAirportTax = $refundAirportTax; + } + + public function setRefundFee($refundFee) + { + $this->refundFee = $refundFee; + } + + public function setRefundFuelTax($refundFuelTax) + { + $this->refundFuelTax = $refundFuelTax; + } + + public function setRefundSettlePrice($refundSettlePrice) + { + $this->refundSettlePrice = $refundSettlePrice; + } + + public function setSubOutRefundNo($subOutRefundNo) + { + $this->subOutRefundNo = $subOutRefundNo; + } + + public function setTicketNo($ticketNo) + { + $this->ticketNo = $ticketNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + +} + +class PddFlightCallbackConfirmRefundRequest_SubRefundInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "no") + */ + private $no; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightCallbackConfirmRefundRequest_SubRefundInfoListItemPassengerInfoListItem>, "passenger_info_list") + */ + private $passengerInfoList; + + public function setNo($no) + { + $this->no = $no; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + +} + +class PddFlightCallbackConfirmRefundRequest_SubRefundInfoListItemPassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(Long, "refund_airport_tax") + */ + private $refundAirportTax; + + /** + * @JsonProperty(Long, "refund_fee") + */ + private $refundFee; + + /** + * @JsonProperty(Long, "refund_fuel_tax") + */ + private $refundFuelTax; + + /** + * @JsonProperty(Long, "refund_settle_price") + */ + private $refundSettlePrice; + + /** + * @JsonProperty(String, "sub_out_refund_no") + */ + private $subOutRefundNo; + + /** + * @JsonProperty(String, "ticket_no") + */ + private $ticketNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + public function setName($name) + { + $this->name = $name; + } + + public function setRefundAirportTax($refundAirportTax) + { + $this->refundAirportTax = $refundAirportTax; + } + + public function setRefundFee($refundFee) + { + $this->refundFee = $refundFee; + } + + public function setRefundFuelTax($refundFuelTax) + { + $this->refundFuelTax = $refundFuelTax; + } + + public function setRefundSettlePrice($refundSettlePrice) + { + $this->refundSettlePrice = $refundSettlePrice; + } + + public function setSubOutRefundNo($subOutRefundNo) + { + $this->subOutRefundNo = $subOutRefundNo; + } + + public function setTicketNo($ticketNo) + { + $this->ticketNo = $ticketNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackFlightchangeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackFlightchangeRequest.php index d3ad41b..918d1c1 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackFlightchangeRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackFlightchangeRequest.php @@ -1,189 +1,189 @@ -, "travel_sn") - */ - private $travelSn; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "change_effect_time", $this->changeEffectTime); - $this->setUserParam($params, "change_type", $this->changeType); - $this->setUserParam($params, "flight_info", $this->flightInfo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "travel_sn", $this->travelSn); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.callback.flightchange"; - } - - public function setChangeEffectTime($changeEffectTime) - { - $this->changeEffectTime = $changeEffectTime; - } - - public function setChangeType($changeType) - { - $this->changeType = $changeType; - } - - public function setFlightInfo($flightInfo) - { - $this->flightInfo = $flightInfo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - -} - -class PddFlightCallbackFlightchangeRequest_FlightInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "arrival_airport_code") - */ - private $arrivalAirportCode; - - /** - * @JsonProperty(String, "arrival_date_time") - */ - private $arrivalDateTime; - - /** - * @JsonProperty(String, "departure_airport_code") - */ - private $departureAirportCode; - - /** - * @JsonProperty(String, "departure_date_time") - */ - private $departureDateTime; - - /** - * @JsonProperty(String, "flight_no") - */ - private $flightNo; - - /** - * @JsonProperty(String, "origin_arrival_date_time") - */ - private $originArrivalDateTime; - - /** - * @JsonProperty(String, "origin_departure_date_time") - */ - private $originDepartureDateTime; - - /** - * @JsonProperty(String, "origin_flight_no") - */ - private $originFlightNo; - - public function setArrivalAirportCode($arrivalAirportCode) - { - $this->arrivalAirportCode = $arrivalAirportCode; - } - - public function setArrivalDateTime($arrivalDateTime) - { - $this->arrivalDateTime = $arrivalDateTime; - } - - public function setDepartureAirportCode($departureAirportCode) - { - $this->departureAirportCode = $departureAirportCode; - } - - public function setDepartureDateTime($departureDateTime) - { - $this->departureDateTime = $departureDateTime; - } - - public function setFlightNo($flightNo) - { - $this->flightNo = $flightNo; - } - - public function setOriginArrivalDateTime($originArrivalDateTime) - { - $this->originArrivalDateTime = $originArrivalDateTime; - } - - public function setOriginDepartureDateTime($originDepartureDateTime) - { - $this->originDepartureDateTime = $originDepartureDateTime; - } - - public function setOriginFlightNo($originFlightNo) - { - $this->originFlightNo = $originFlightNo; - } - -} +, "travel_sn") + */ + private $travelSn; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "change_effect_time", $this->changeEffectTime); + $this->setUserParam($params, "change_type", $this->changeType); + $this->setUserParam($params, "flight_info", $this->flightInfo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "travel_sn", $this->travelSn); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.callback.flightchange"; + } + + public function setChangeEffectTime($changeEffectTime) + { + $this->changeEffectTime = $changeEffectTime; + } + + public function setChangeType($changeType) + { + $this->changeType = $changeType; + } + + public function setFlightInfo($flightInfo) + { + $this->flightInfo = $flightInfo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + +} + +class PddFlightCallbackFlightchangeRequest_FlightInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "arrival_airport_code") + */ + private $arrivalAirportCode; + + /** + * @JsonProperty(String, "arrival_date_time") + */ + private $arrivalDateTime; + + /** + * @JsonProperty(String, "departure_airport_code") + */ + private $departureAirportCode; + + /** + * @JsonProperty(String, "departure_date_time") + */ + private $departureDateTime; + + /** + * @JsonProperty(String, "flight_no") + */ + private $flightNo; + + /** + * @JsonProperty(String, "origin_arrival_date_time") + */ + private $originArrivalDateTime; + + /** + * @JsonProperty(String, "origin_departure_date_time") + */ + private $originDepartureDateTime; + + /** + * @JsonProperty(String, "origin_flight_no") + */ + private $originFlightNo; + + public function setArrivalAirportCode($arrivalAirportCode) + { + $this->arrivalAirportCode = $arrivalAirportCode; + } + + public function setArrivalDateTime($arrivalDateTime) + { + $this->arrivalDateTime = $arrivalDateTime; + } + + public function setDepartureAirportCode($departureAirportCode) + { + $this->departureAirportCode = $departureAirportCode; + } + + public function setDepartureDateTime($departureDateTime) + { + $this->departureDateTime = $departureDateTime; + } + + public function setFlightNo($flightNo) + { + $this->flightNo = $flightNo; + } + + public function setOriginArrivalDateTime($originArrivalDateTime) + { + $this->originArrivalDateTime = $originArrivalDateTime; + } + + public function setOriginDepartureDateTime($originDepartureDateTime) + { + $this->originDepartureDateTime = $originDepartureDateTime; + } + + public function setOriginFlightNo($originFlightNo) + { + $this->originFlightNo = $originFlightNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackNotifyChangeapplyreplyRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackNotifyChangeapplyreplyRequest.php index 2624fda..81d6541 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackNotifyChangeapplyreplyRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightCallbackNotifyChangeapplyreplyRequest.php @@ -1,252 +1,252 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - /** - * @JsonProperty(Integer, "review_change_type") - */ - private $reviewChangeType; - - /** - * @JsonProperty(String, "sub_trace_id") - */ - private $subTraceId; - - /** - * @JsonProperty(String, "trace_id") - */ - private $traceId; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "error_code", $this->errorCode); - $this->setUserParam($params, "error_msg", $this->errorMsg); - $this->setUserParam($params, "out_change_no", $this->outChangeNo); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - $this->setUserParam($params, "review_change_type", $this->reviewChangeType); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "trace_id", $this->traceId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.callback.notify.changeapplyreply"; - } - - public function setErrorCode($errorCode) - { - $this->errorCode = $errorCode; - } - - public function setErrorMsg($errorMsg) - { - $this->errorMsg = $errorMsg; - } - - public function setOutChangeNo($outChangeNo) - { - $this->outChangeNo = $outChangeNo; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - - public function setReviewChangeType($reviewChangeType) - { - $this->reviewChangeType = $reviewChangeType; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - -} - -class PddFlightCallbackNotifyChangeapplyreplyRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "airport_tax") - */ - private $airportTax; - - /** - * @JsonProperty(Long, "airport_tax_diff") - */ - private $airportTaxDiff; - - /** - * @JsonProperty(Long, "base_price") - */ - private $basePrice; - - /** - * @JsonProperty(Long, "base_price_diff") - */ - private $basePriceDiff; - - /** - * @JsonProperty(String, "fuel_tax") - */ - private $fuelTax; - - /** - * @JsonProperty(Long, "fuel_tax_diff") - */ - private $fuelTaxDiff; - - /** - * @JsonProperty(String, "origin_ticket_no") - */ - private $originTicketNo; - - /** - * @JsonProperty(Long, "pay") - */ - private $pay; - - /** - * @JsonProperty(Long, "pay_fee") - */ - private $payFee; - - /** - * @JsonProperty(String, "sub_out_change_no") - */ - private $subOutChangeNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - public function setAirportTax($airportTax) - { - $this->airportTax = $airportTax; - } - - public function setAirportTaxDiff($airportTaxDiff) - { - $this->airportTaxDiff = $airportTaxDiff; - } - - public function setBasePrice($basePrice) - { - $this->basePrice = $basePrice; - } - - public function setBasePriceDiff($basePriceDiff) - { - $this->basePriceDiff = $basePriceDiff; - } - - public function setFuelTax($fuelTax) - { - $this->fuelTax = $fuelTax; - } - - public function setFuelTaxDiff($fuelTaxDiff) - { - $this->fuelTaxDiff = $fuelTaxDiff; - } - - public function setOriginTicketNo($originTicketNo) - { - $this->originTicketNo = $originTicketNo; - } - - public function setPay($pay) - { - $this->pay = $pay; - } - - public function setPayFee($payFee) - { - $this->payFee = $payFee; - } - - public function setSubOutChangeNo($subOutChangeNo) - { - $this->subOutChangeNo = $subOutChangeNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + /** + * @JsonProperty(Integer, "review_change_type") + */ + private $reviewChangeType; + + /** + * @JsonProperty(String, "sub_trace_id") + */ + private $subTraceId; + + /** + * @JsonProperty(String, "trace_id") + */ + private $traceId; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "error_code", $this->errorCode); + $this->setUserParam($params, "error_msg", $this->errorMsg); + $this->setUserParam($params, "out_change_no", $this->outChangeNo); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + $this->setUserParam($params, "review_change_type", $this->reviewChangeType); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "trace_id", $this->traceId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.callback.notify.changeapplyreply"; + } + + public function setErrorCode($errorCode) + { + $this->errorCode = $errorCode; + } + + public function setErrorMsg($errorMsg) + { + $this->errorMsg = $errorMsg; + } + + public function setOutChangeNo($outChangeNo) + { + $this->outChangeNo = $outChangeNo; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + + public function setReviewChangeType($reviewChangeType) + { + $this->reviewChangeType = $reviewChangeType; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + +} + +class PddFlightCallbackNotifyChangeapplyreplyRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "airport_tax") + */ + private $airportTax; + + /** + * @JsonProperty(Long, "airport_tax_diff") + */ + private $airportTaxDiff; + + /** + * @JsonProperty(Long, "base_price") + */ + private $basePrice; + + /** + * @JsonProperty(Long, "base_price_diff") + */ + private $basePriceDiff; + + /** + * @JsonProperty(String, "fuel_tax") + */ + private $fuelTax; + + /** + * @JsonProperty(Long, "fuel_tax_diff") + */ + private $fuelTaxDiff; + + /** + * @JsonProperty(String, "origin_ticket_no") + */ + private $originTicketNo; + + /** + * @JsonProperty(Long, "pay") + */ + private $pay; + + /** + * @JsonProperty(Long, "pay_fee") + */ + private $payFee; + + /** + * @JsonProperty(String, "sub_out_change_no") + */ + private $subOutChangeNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + public function setAirportTax($airportTax) + { + $this->airportTax = $airportTax; + } + + public function setAirportTaxDiff($airportTaxDiff) + { + $this->airportTaxDiff = $airportTaxDiff; + } + + public function setBasePrice($basePrice) + { + $this->basePrice = $basePrice; + } + + public function setBasePriceDiff($basePriceDiff) + { + $this->basePriceDiff = $basePriceDiff; + } + + public function setFuelTax($fuelTax) + { + $this->fuelTax = $fuelTax; + } + + public function setFuelTaxDiff($fuelTaxDiff) + { + $this->fuelTaxDiff = $fuelTaxDiff; + } + + public function setOriginTicketNo($originTicketNo) + { + $this->originTicketNo = $originTicketNo; + } + + public function setPay($pay) + { + $this->pay = $pay; + } + + public function setPayFee($payFee) + { + $this->payFee = $payFee; + } + + public function setSubOutChangeNo($subOutChangeNo) + { + $this->subOutChangeNo = $subOutChangeNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeApplyRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeApplyRequest.php index 0f4d365..9dc5f36 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeApplyRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeApplyRequest.php @@ -1,281 +1,281 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightChangeApplyRequest_FlightInfoListItem>, "flight_info_list") - */ - private $flightInfoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "change_date", $this->changeDate); - $this->setUserParam($params, "attachment_path", $this->attachmentPath); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - $this->setUserParam($params, "flight_info_list", $this->flightInfoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.change.apply"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setChangeDate($changeDate) - { - $this->changeDate = $changeDate; - } - - public function setAttachmentPath($attachmentPath) - { - $this->attachmentPath = $attachmentPath; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - - public function setFlightInfoList($flightInfoList) - { - $this->flightInfoList = $flightInfoList; - } - -} - -class PddFlightChangeApplyRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - /** - * @JsonProperty(String, "ticket_no") - */ - private $ticketNo; - - /** - * @JsonProperty(String, "old_travel_sn") - */ - private $oldTravelSn; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - - public function setTicketNo($ticketNo) - { - $this->ticketNo = $ticketNo; - } - - public function setOldTravelSn($oldTravelSn) - { - $this->oldTravelSn = $oldTravelSn; - } - -} - -class PddFlightChangeApplyRequest_FlightInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "flight_no") - */ - private $flightNo; - - /** - * @JsonProperty(Integer, "segment_no") - */ - private $segmentNo; - - /** - * @JsonProperty(Integer, "sequence_no") - */ - private $sequenceNo; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightChangeApplyRequest_FlightInfoListItemCabinInfoListItem>, "cabin_info_list") - */ - private $cabinInfoList; - - public function setFlightNo($flightNo) - { - $this->flightNo = $flightNo; - } - - public function setSegmentNo($segmentNo) - { - $this->segmentNo = $segmentNo; - } - - public function setSequenceNo($sequenceNo) - { - $this->sequenceNo = $sequenceNo; - } - - public function setCabinInfoList($cabinInfoList) - { - $this->cabinInfoList = $cabinInfoList; - } - -} - -class PddFlightChangeApplyRequest_FlightInfoListItemCabinInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "sub_class") - */ - private $subClass; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setSubClass($subClass) - { - $this->subClass = $subClass; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightChangeApplyRequest_FlightInfoListItem>, "flight_info_list") + */ + private $flightInfoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "change_date", $this->changeDate); + $this->setUserParam($params, "attachment_path", $this->attachmentPath); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + $this->setUserParam($params, "flight_info_list", $this->flightInfoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.change.apply"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setChangeDate($changeDate) + { + $this->changeDate = $changeDate; + } + + public function setAttachmentPath($attachmentPath) + { + $this->attachmentPath = $attachmentPath; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + + public function setFlightInfoList($flightInfoList) + { + $this->flightInfoList = $flightInfoList; + } + +} + +class PddFlightChangeApplyRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + /** + * @JsonProperty(String, "ticket_no") + */ + private $ticketNo; + + /** + * @JsonProperty(String, "old_travel_sn") + */ + private $oldTravelSn; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + + public function setTicketNo($ticketNo) + { + $this->ticketNo = $ticketNo; + } + + public function setOldTravelSn($oldTravelSn) + { + $this->oldTravelSn = $oldTravelSn; + } + +} + +class PddFlightChangeApplyRequest_FlightInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "flight_no") + */ + private $flightNo; + + /** + * @JsonProperty(Integer, "segment_no") + */ + private $segmentNo; + + /** + * @JsonProperty(Integer, "sequence_no") + */ + private $sequenceNo; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightChangeApplyRequest_FlightInfoListItemCabinInfoListItem>, "cabin_info_list") + */ + private $cabinInfoList; + + public function setFlightNo($flightNo) + { + $this->flightNo = $flightNo; + } + + public function setSegmentNo($segmentNo) + { + $this->segmentNo = $segmentNo; + } + + public function setSequenceNo($sequenceNo) + { + $this->sequenceNo = $sequenceNo; + } + + public function setCabinInfoList($cabinInfoList) + { + $this->cabinInfoList = $cabinInfoList; + } + +} + +class PddFlightChangeApplyRequest_FlightInfoListItemCabinInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "sub_class") + */ + private $subClass; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setSubClass($subClass) + { + $this->subClass = $subClass; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeCancelRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeCancelRequest.php index 09fcfa5..2ea7bb2 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeCancelRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeCancelRequest.php @@ -1,159 +1,159 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "out_change_no", $this->outChangeNo); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.change.cancel"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setOutChangeNo($outChangeNo) - { - $this->outChangeNo = $outChangeNo; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - -} - -class PddFlightChangeCancelRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "sub_out_change_no") - */ - private $subOutChangeNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - public function setName($name) - { - $this->name = $name; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setSubOutChangeNo($subOutChangeNo) - { - $this->subOutChangeNo = $subOutChangeNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "out_change_no", $this->outChangeNo); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.change.cancel"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setOutChangeNo($outChangeNo) + { + $this->outChangeNo = $outChangeNo; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + +} + +class PddFlightChangeCancelRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "sub_out_change_no") + */ + private $subOutChangeNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + public function setName($name) + { + $this->name = $name; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setSubOutChangeNo($subOutChangeNo) + { + $this->subOutChangeNo = $subOutChangeNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangePayRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangePayRequest.php index 015046e..ef5ecf3 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangePayRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangePayRequest.php @@ -1,262 +1,262 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "out_change_no", $this->outChangeNo); - $this->setUserParam($params, "change_date", $this->changeDate); - $this->setUserParam($params, "total_pay_fee", $this->totalPayFee); - $this->setUserParam($params, "total_pay", $this->totalPay); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.change.pay"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setOutChangeNo($outChangeNo) - { - $this->outChangeNo = $outChangeNo; - } - - public function setChangeDate($changeDate) - { - $this->changeDate = $changeDate; - } - - public function setTotalPayFee($totalPayFee) - { - $this->totalPayFee = $totalPayFee; - } - - public function setTotalPay($totalPay) - { - $this->totalPay = $totalPay; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - -} - -class PddFlightChangePayRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "sub_out_change_no") - */ - private $subOutChangeNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - /** - * @JsonProperty(String, "ticket_no") - */ - private $ticketNo; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightChangePayRequest_PassengerInfoListItemFlightListItem>, "flight_list") - */ - private $flightList; - - public function setName($name) - { - $this->name = $name; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setSubOutChangeNo($subOutChangeNo) - { - $this->subOutChangeNo = $subOutChangeNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - - public function setTicketNo($ticketNo) - { - $this->ticketNo = $ticketNo; - } - - public function setFlightList($flightList) - { - $this->flightList = $flightList; - } - -} - -class PddFlightChangePayRequest_PassengerInfoListItemFlightListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "flight_no") - */ - private $flightNo; - - /** - * @JsonProperty(Integer, "segment_no") - */ - private $segmentNo; - - /** - * @JsonProperty(Integer, "sequence_no") - */ - private $sequenceNo; - - /** - * @JsonProperty(String, "sub_class") - */ - private $subClass; - - public function setFlightNo($flightNo) - { - $this->flightNo = $flightNo; - } - - public function setSegmentNo($segmentNo) - { - $this->segmentNo = $segmentNo; - } - - public function setSequenceNo($sequenceNo) - { - $this->sequenceNo = $sequenceNo; - } - - public function setSubClass($subClass) - { - $this->subClass = $subClass; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "out_change_no", $this->outChangeNo); + $this->setUserParam($params, "change_date", $this->changeDate); + $this->setUserParam($params, "total_pay_fee", $this->totalPayFee); + $this->setUserParam($params, "total_pay", $this->totalPay); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.change.pay"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setOutChangeNo($outChangeNo) + { + $this->outChangeNo = $outChangeNo; + } + + public function setChangeDate($changeDate) + { + $this->changeDate = $changeDate; + } + + public function setTotalPayFee($totalPayFee) + { + $this->totalPayFee = $totalPayFee; + } + + public function setTotalPay($totalPay) + { + $this->totalPay = $totalPay; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + +} + +class PddFlightChangePayRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "sub_out_change_no") + */ + private $subOutChangeNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + /** + * @JsonProperty(String, "ticket_no") + */ + private $ticketNo; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightChangePayRequest_PassengerInfoListItemFlightListItem>, "flight_list") + */ + private $flightList; + + public function setName($name) + { + $this->name = $name; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setSubOutChangeNo($subOutChangeNo) + { + $this->subOutChangeNo = $subOutChangeNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + + public function setTicketNo($ticketNo) + { + $this->ticketNo = $ticketNo; + } + + public function setFlightList($flightList) + { + $this->flightList = $flightList; + } + +} + +class PddFlightChangePayRequest_PassengerInfoListItemFlightListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "flight_no") + */ + private $flightNo; + + /** + * @JsonProperty(Integer, "segment_no") + */ + private $segmentNo; + + /** + * @JsonProperty(Integer, "sequence_no") + */ + private $sequenceNo; + + /** + * @JsonProperty(String, "sub_class") + */ + private $subClass; + + public function setFlightNo($flightNo) + { + $this->flightNo = $flightNo; + } + + public function setSegmentNo($segmentNo) + { + $this->segmentNo = $segmentNo; + } + + public function setSequenceNo($sequenceNo) + { + $this->sequenceNo = $sequenceNo; + } + + public function setSubClass($subClass) + { + $this->subClass = $subClass; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeableFlightListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeableFlightListRequest.php index b6abeed..4964c3b 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeableFlightListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightChangeableFlightListRequest.php @@ -1,240 +1,240 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "trip_type", $this->tripType); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "change_date", $this->changeDate); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.changeable.flight.list"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setTripType($tripType) - { - $this->tripType = $tripType; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setChangeDate($changeDate) - { - $this->changeDate = $changeDate; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - -} - -class PddFlightChangeableFlightListRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - /** - * @JsonProperty(String, "ticket_no") - */ - private $ticketNo; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightChangeableFlightListRequest_PassengerInfoListItemFlightListItem>, "flight_list") - */ - private $flightList; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - - public function setTicketNo($ticketNo) - { - $this->ticketNo = $ticketNo; - } - - public function setFlightList($flightList) - { - $this->flightList = $flightList; - } - -} - -class PddFlightChangeableFlightListRequest_PassengerInfoListItemFlightListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "flight_no") - */ - private $flightNo; - - /** - * @JsonProperty(Integer, "segment_no") - */ - private $segmentNo; - - /** - * @JsonProperty(Integer, "sequence_no") - */ - private $sequenceNo; - - /** - * @JsonProperty(String, "sub_class") - */ - private $subClass; - - public function setFlightNo($flightNo) - { - $this->flightNo = $flightNo; - } - - public function setSegmentNo($segmentNo) - { - $this->segmentNo = $segmentNo; - } - - public function setSequenceNo($sequenceNo) - { - $this->sequenceNo = $sequenceNo; - } - - public function setSubClass($subClass) - { - $this->subClass = $subClass; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "trip_type", $this->tripType); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "change_date", $this->changeDate); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.changeable.flight.list"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setTripType($tripType) + { + $this->tripType = $tripType; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setChangeDate($changeDate) + { + $this->changeDate = $changeDate; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + +} + +class PddFlightChangeableFlightListRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + /** + * @JsonProperty(String, "ticket_no") + */ + private $ticketNo; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightChangeableFlightListRequest_PassengerInfoListItemFlightListItem>, "flight_list") + */ + private $flightList; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + + public function setTicketNo($ticketNo) + { + $this->ticketNo = $ticketNo; + } + + public function setFlightList($flightList) + { + $this->flightList = $flightList; + } + +} + +class PddFlightChangeableFlightListRequest_PassengerInfoListItemFlightListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "flight_no") + */ + private $flightNo; + + /** + * @JsonProperty(Integer, "segment_no") + */ + private $segmentNo; + + /** + * @JsonProperty(Integer, "sequence_no") + */ + private $sequenceNo; + + /** + * @JsonProperty(String, "sub_class") + */ + private $subClass; + + public function setFlightNo($flightNo) + { + $this->flightNo = $flightNo; + } + + public function setSegmentNo($segmentNo) + { + $this->segmentNo = $segmentNo; + } + + public function setSequenceNo($sequenceNo) + { + $this->sequenceNo = $sequenceNo; + } + + public function setSubClass($subClass) + { + $this->subClass = $subClass; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCancelRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCancelRequest.php index 9b9883e..96d4cf4 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCancelRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCancelRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "out_change_no", $this->outChangeNo); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.order.cancel"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setOutChangeNo($outChangeNo) - { - $this->outChangeNo = $outChangeNo; - } - -} +setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "out_change_no", $this->outChangeNo); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.order.cancel"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setOutChangeNo($outChangeNo) + { + $this->outChangeNo = $outChangeNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCheckSeatPriceRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCheckSeatPriceRequest.php index 9401040..06819f9 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCheckSeatPriceRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCheckSeatPriceRequest.php @@ -1,370 +1,370 @@ -, "flight_info_list") - */ - private $flightInfoList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightOrderCheckSeatPriceRequest_PriceInfoListItem>, "price_info_list") - */ - private $priceInfoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "trip_type", $this->tripType); - $this->setUserParam($params, "product_type", $this->productType); - $this->setUserParam($params, "product_id", $this->productId); - $this->setUserParam($params, "flight_info_list", $this->flightInfoList); - $this->setUserParam($params, "price_info_list", $this->priceInfoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.order.check.seat.price"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setTripType($tripType) - { - $this->tripType = $tripType; - } - - public function setProductType($productType) - { - $this->productType = $productType; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - - public function setFlightInfoList($flightInfoList) - { - $this->flightInfoList = $flightInfoList; - } - - public function setPriceInfoList($priceInfoList) - { - $this->priceInfoList = $priceInfoList; - } - -} - -class PddFlightOrderCheckSeatPriceRequest_FlightInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "flight_no") - */ - private $flightNo; - - /** - * @JsonProperty(String, "carrier_code") - */ - private $carrierCode; - - /** - * @JsonProperty(Boolean, "shared") - */ - private $shared; - - /** - * @JsonProperty(String, "shared_carrier_code") - */ - private $sharedCarrierCode; - - /** - * @JsonProperty(String, "shared_flight_no") - */ - private $sharedFlightNo; - - /** - * @JsonProperty(String, "departure_date_time") - */ - private $departureDateTime; - - /** - * @JsonProperty(String, "departure_airport_code") - */ - private $departureAirportCode; - - /** - * @JsonProperty(String, "departure_terminal") - */ - private $departureTerminal; - - /** - * @JsonProperty(String, "arrival_date_time") - */ - private $arrivalDateTime; - - /** - * @JsonProperty(String, "arrival_airport_code") - */ - private $arrivalAirportCode; - - /** - * @JsonProperty(String, "arrival_terminal") - */ - private $arrivalTerminal; - - /** - * @JsonProperty(Integer, "segment_no") - */ - private $segmentNo; - - /** - * @JsonProperty(Integer, "sequence_no") - */ - private $sequenceNo; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightOrderCheckSeatPriceRequest_FlightInfoListItemCabinInfoListItem>, "cabin_info_list") - */ - private $cabinInfoList; - - public function setFlightNo($flightNo) - { - $this->flightNo = $flightNo; - } - - public function setCarrierCode($carrierCode) - { - $this->carrierCode = $carrierCode; - } - - public function setShared($shared) - { - $this->shared = $shared; - } - - public function setSharedCarrierCode($sharedCarrierCode) - { - $this->sharedCarrierCode = $sharedCarrierCode; - } - - public function setSharedFlightNo($sharedFlightNo) - { - $this->sharedFlightNo = $sharedFlightNo; - } - - public function setDepartureDateTime($departureDateTime) - { - $this->departureDateTime = $departureDateTime; - } - - public function setDepartureAirportCode($departureAirportCode) - { - $this->departureAirportCode = $departureAirportCode; - } - - public function setDepartureTerminal($departureTerminal) - { - $this->departureTerminal = $departureTerminal; - } - - public function setArrivalDateTime($arrivalDateTime) - { - $this->arrivalDateTime = $arrivalDateTime; - } - - public function setArrivalAirportCode($arrivalAirportCode) - { - $this->arrivalAirportCode = $arrivalAirportCode; - } - - public function setArrivalTerminal($arrivalTerminal) - { - $this->arrivalTerminal = $arrivalTerminal; - } - - public function setSegmentNo($segmentNo) - { - $this->segmentNo = $segmentNo; - } - - public function setSequenceNo($sequenceNo) - { - $this->sequenceNo = $sequenceNo; - } - - public function setCabinInfoList($cabinInfoList) - { - $this->cabinInfoList = $cabinInfoList; - } - -} - -class PddFlightOrderCheckSeatPriceRequest_FlightInfoListItemCabinInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "sub_class") - */ - private $subClass; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setSubClass($subClass) - { - $this->subClass = $subClass; - } - -} - -class PddFlightOrderCheckSeatPriceRequest_PriceInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(Long, "base_price") - */ - private $basePrice; - - /** - * @JsonProperty(Long, "settle_price") - */ - private $settlePrice; - - /** - * @JsonProperty(Long, "airport_tax") - */ - private $airportTax; - - /** - * @JsonProperty(Long, "fuel_tax") - */ - private $fuelTax; - - /** - * @JsonProperty(Double, "commission_point") - */ - private $commissionPoint; - - /** - * @JsonProperty(Long, "commission_money") - */ - private $commissionMoney; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setBasePrice($basePrice) - { - $this->basePrice = $basePrice; - } - - public function setSettlePrice($settlePrice) - { - $this->settlePrice = $settlePrice; - } - - public function setAirportTax($airportTax) - { - $this->airportTax = $airportTax; - } - - public function setFuelTax($fuelTax) - { - $this->fuelTax = $fuelTax; - } - - public function setCommissionPoint($commissionPoint) - { - $this->commissionPoint = $commissionPoint; - } - - public function setCommissionMoney($commissionMoney) - { - $this->commissionMoney = $commissionMoney; - } - -} +, "flight_info_list") + */ + private $flightInfoList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightOrderCheckSeatPriceRequest_PriceInfoListItem>, "price_info_list") + */ + private $priceInfoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "trip_type", $this->tripType); + $this->setUserParam($params, "product_type", $this->productType); + $this->setUserParam($params, "product_id", $this->productId); + $this->setUserParam($params, "flight_info_list", $this->flightInfoList); + $this->setUserParam($params, "price_info_list", $this->priceInfoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.order.check.seat.price"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setTripType($tripType) + { + $this->tripType = $tripType; + } + + public function setProductType($productType) + { + $this->productType = $productType; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + + public function setFlightInfoList($flightInfoList) + { + $this->flightInfoList = $flightInfoList; + } + + public function setPriceInfoList($priceInfoList) + { + $this->priceInfoList = $priceInfoList; + } + +} + +class PddFlightOrderCheckSeatPriceRequest_FlightInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "flight_no") + */ + private $flightNo; + + /** + * @JsonProperty(String, "carrier_code") + */ + private $carrierCode; + + /** + * @JsonProperty(Boolean, "shared") + */ + private $shared; + + /** + * @JsonProperty(String, "shared_carrier_code") + */ + private $sharedCarrierCode; + + /** + * @JsonProperty(String, "shared_flight_no") + */ + private $sharedFlightNo; + + /** + * @JsonProperty(String, "departure_date_time") + */ + private $departureDateTime; + + /** + * @JsonProperty(String, "departure_airport_code") + */ + private $departureAirportCode; + + /** + * @JsonProperty(String, "departure_terminal") + */ + private $departureTerminal; + + /** + * @JsonProperty(String, "arrival_date_time") + */ + private $arrivalDateTime; + + /** + * @JsonProperty(String, "arrival_airport_code") + */ + private $arrivalAirportCode; + + /** + * @JsonProperty(String, "arrival_terminal") + */ + private $arrivalTerminal; + + /** + * @JsonProperty(Integer, "segment_no") + */ + private $segmentNo; + + /** + * @JsonProperty(Integer, "sequence_no") + */ + private $sequenceNo; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightOrderCheckSeatPriceRequest_FlightInfoListItemCabinInfoListItem>, "cabin_info_list") + */ + private $cabinInfoList; + + public function setFlightNo($flightNo) + { + $this->flightNo = $flightNo; + } + + public function setCarrierCode($carrierCode) + { + $this->carrierCode = $carrierCode; + } + + public function setShared($shared) + { + $this->shared = $shared; + } + + public function setSharedCarrierCode($sharedCarrierCode) + { + $this->sharedCarrierCode = $sharedCarrierCode; + } + + public function setSharedFlightNo($sharedFlightNo) + { + $this->sharedFlightNo = $sharedFlightNo; + } + + public function setDepartureDateTime($departureDateTime) + { + $this->departureDateTime = $departureDateTime; + } + + public function setDepartureAirportCode($departureAirportCode) + { + $this->departureAirportCode = $departureAirportCode; + } + + public function setDepartureTerminal($departureTerminal) + { + $this->departureTerminal = $departureTerminal; + } + + public function setArrivalDateTime($arrivalDateTime) + { + $this->arrivalDateTime = $arrivalDateTime; + } + + public function setArrivalAirportCode($arrivalAirportCode) + { + $this->arrivalAirportCode = $arrivalAirportCode; + } + + public function setArrivalTerminal($arrivalTerminal) + { + $this->arrivalTerminal = $arrivalTerminal; + } + + public function setSegmentNo($segmentNo) + { + $this->segmentNo = $segmentNo; + } + + public function setSequenceNo($sequenceNo) + { + $this->sequenceNo = $sequenceNo; + } + + public function setCabinInfoList($cabinInfoList) + { + $this->cabinInfoList = $cabinInfoList; + } + +} + +class PddFlightOrderCheckSeatPriceRequest_FlightInfoListItemCabinInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "sub_class") + */ + private $subClass; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setSubClass($subClass) + { + $this->subClass = $subClass; + } + +} + +class PddFlightOrderCheckSeatPriceRequest_PriceInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(Long, "base_price") + */ + private $basePrice; + + /** + * @JsonProperty(Long, "settle_price") + */ + private $settlePrice; + + /** + * @JsonProperty(Long, "airport_tax") + */ + private $airportTax; + + /** + * @JsonProperty(Long, "fuel_tax") + */ + private $fuelTax; + + /** + * @JsonProperty(Double, "commission_point") + */ + private $commissionPoint; + + /** + * @JsonProperty(Long, "commission_money") + */ + private $commissionMoney; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setBasePrice($basePrice) + { + $this->basePrice = $basePrice; + } + + public function setSettlePrice($settlePrice) + { + $this->settlePrice = $settlePrice; + } + + public function setAirportTax($airportTax) + { + $this->airportTax = $airportTax; + } + + public function setFuelTax($fuelTax) + { + $this->fuelTax = $fuelTax; + } + + public function setCommissionPoint($commissionPoint) + { + $this->commissionPoint = $commissionPoint; + } + + public function setCommissionMoney($commissionMoney) + { + $this->commissionMoney = $commissionMoney; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCreateRequest.php index cc46a46..9573988 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderCreateRequest.php @@ -1,451 +1,451 @@ -, "flight_info_list") - */ - private $flightInfoList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightOrderCreateRequest_PassengerInfoListItem>, "passenger_info_list") - */ - private $passengerInfoList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightOrderCreateRequest_PriceInfoListItem>, "price_info_list") - */ - private $priceInfoList; - - /** - * @JsonProperty(Integer, "product_type") - */ - private $productType; - - /** - * @JsonProperty(String, "product_id") - */ - private $productId; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "trip_type", $this->tripType); - $this->setUserParam($params, "flight_info_list", $this->flightInfoList); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - $this->setUserParam($params, "price_info_list", $this->priceInfoList); - $this->setUserParam($params, "product_type", $this->productType); - $this->setUserParam($params, "product_id", $this->productId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.order.create"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setTripType($tripType) - { - $this->tripType = $tripType; - } - - public function setFlightInfoList($flightInfoList) - { - $this->flightInfoList = $flightInfoList; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - - public function setPriceInfoList($priceInfoList) - { - $this->priceInfoList = $priceInfoList; - } - - public function setProductType($productType) - { - $this->productType = $productType; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - -} - -class PddFlightOrderCreateRequest_FlightInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "flight_no") - */ - private $flightNo; - - /** - * @JsonProperty(String, "carrier_code") - */ - private $carrierCode; - - /** - * @JsonProperty(Boolean, "shared") - */ - private $shared; - - /** - * @JsonProperty(String, "departure_date_time") - */ - private $departureDateTime; - - /** - * @JsonProperty(String, "departure_airport_code") - */ - private $departureAirportCode; - - /** - * @JsonProperty(String, "departure_terminal") - */ - private $departureTerminal; - - /** - * @JsonProperty(String, "arrival_date_time") - */ - private $arrivalDateTime; - - /** - * @JsonProperty(String, "arrival_airport_code") - */ - private $arrivalAirportCode; - - /** - * @JsonProperty(String, "arrival_terminal") - */ - private $arrivalTerminal; - - /** - * @JsonProperty(Integer, "segment_no") - */ - private $segmentNo; - - /** - * @JsonProperty(Integer, "sequence_no") - */ - private $sequenceNo; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightOrderCreateRequest_FlightInfoListItemCabinInfoListItem>, "cabin_info_list") - */ - private $cabinInfoList; - - public function setFlightNo($flightNo) - { - $this->flightNo = $flightNo; - } - - public function setCarrierCode($carrierCode) - { - $this->carrierCode = $carrierCode; - } - - public function setShared($shared) - { - $this->shared = $shared; - } - - public function setDepartureDateTime($departureDateTime) - { - $this->departureDateTime = $departureDateTime; - } - - public function setDepartureAirportCode($departureAirportCode) - { - $this->departureAirportCode = $departureAirportCode; - } - - public function setDepartureTerminal($departureTerminal) - { - $this->departureTerminal = $departureTerminal; - } - - public function setArrivalDateTime($arrivalDateTime) - { - $this->arrivalDateTime = $arrivalDateTime; - } - - public function setArrivalAirportCode($arrivalAirportCode) - { - $this->arrivalAirportCode = $arrivalAirportCode; - } - - public function setArrivalTerminal($arrivalTerminal) - { - $this->arrivalTerminal = $arrivalTerminal; - } - - public function setSegmentNo($segmentNo) - { - $this->segmentNo = $segmentNo; - } - - public function setSequenceNo($sequenceNo) - { - $this->sequenceNo = $sequenceNo; - } - - public function setCabinInfoList($cabinInfoList) - { - $this->cabinInfoList = $cabinInfoList; - } - -} - -class PddFlightOrderCreateRequest_FlightInfoListItemCabinInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "sub_class") - */ - private $subClass; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setSubClass($subClass) - { - $this->subClass = $subClass; - } - -} - -class PddFlightOrderCreateRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "gender") - */ - private $gender; - - /** - * @JsonProperty(String, "birthday") - */ - private $birthday; - - /** - * @JsonProperty(String, "effective_date") - */ - private $effectiveDate; - - /** - * @JsonProperty(String, "phone_num") - */ - private $phoneNum; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setGender($gender) - { - $this->gender = $gender; - } - - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } - - public function setEffectiveDate($effectiveDate) - { - $this->effectiveDate = $effectiveDate; - } - - public function setPhoneNum($phoneNum) - { - $this->phoneNum = $phoneNum; - } - -} - -class PddFlightOrderCreateRequest_PriceInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(Long, "base_price") - */ - private $basePrice; - - /** - * @JsonProperty(Long, "settle_price") - */ - private $settlePrice; - - /** - * @JsonProperty(Long, "airport_tax") - */ - private $airportTax; - - /** - * @JsonProperty(Long, "fuel_tax") - */ - private $fuelTax; - - /** - * @JsonProperty(Double, "commission_point") - */ - private $commissionPoint; - - /** - * @JsonProperty(Long, "commission_money") - */ - private $commissionMoney; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setBasePrice($basePrice) - { - $this->basePrice = $basePrice; - } - - public function setSettlePrice($settlePrice) - { - $this->settlePrice = $settlePrice; - } - - public function setAirportTax($airportTax) - { - $this->airportTax = $airportTax; - } - - public function setFuelTax($fuelTax) - { - $this->fuelTax = $fuelTax; - } - - public function setCommissionPoint($commissionPoint) - { - $this->commissionPoint = $commissionPoint; - } - - public function setCommissionMoney($commissionMoney) - { - $this->commissionMoney = $commissionMoney; - } - -} +, "flight_info_list") + */ + private $flightInfoList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightOrderCreateRequest_PassengerInfoListItem>, "passenger_info_list") + */ + private $passengerInfoList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightOrderCreateRequest_PriceInfoListItem>, "price_info_list") + */ + private $priceInfoList; + + /** + * @JsonProperty(Integer, "product_type") + */ + private $productType; + + /** + * @JsonProperty(String, "product_id") + */ + private $productId; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "trip_type", $this->tripType); + $this->setUserParam($params, "flight_info_list", $this->flightInfoList); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + $this->setUserParam($params, "price_info_list", $this->priceInfoList); + $this->setUserParam($params, "product_type", $this->productType); + $this->setUserParam($params, "product_id", $this->productId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.order.create"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setTripType($tripType) + { + $this->tripType = $tripType; + } + + public function setFlightInfoList($flightInfoList) + { + $this->flightInfoList = $flightInfoList; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + + public function setPriceInfoList($priceInfoList) + { + $this->priceInfoList = $priceInfoList; + } + + public function setProductType($productType) + { + $this->productType = $productType; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + +} + +class PddFlightOrderCreateRequest_FlightInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "flight_no") + */ + private $flightNo; + + /** + * @JsonProperty(String, "carrier_code") + */ + private $carrierCode; + + /** + * @JsonProperty(Boolean, "shared") + */ + private $shared; + + /** + * @JsonProperty(String, "departure_date_time") + */ + private $departureDateTime; + + /** + * @JsonProperty(String, "departure_airport_code") + */ + private $departureAirportCode; + + /** + * @JsonProperty(String, "departure_terminal") + */ + private $departureTerminal; + + /** + * @JsonProperty(String, "arrival_date_time") + */ + private $arrivalDateTime; + + /** + * @JsonProperty(String, "arrival_airport_code") + */ + private $arrivalAirportCode; + + /** + * @JsonProperty(String, "arrival_terminal") + */ + private $arrivalTerminal; + + /** + * @JsonProperty(Integer, "segment_no") + */ + private $segmentNo; + + /** + * @JsonProperty(Integer, "sequence_no") + */ + private $sequenceNo; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightOrderCreateRequest_FlightInfoListItemCabinInfoListItem>, "cabin_info_list") + */ + private $cabinInfoList; + + public function setFlightNo($flightNo) + { + $this->flightNo = $flightNo; + } + + public function setCarrierCode($carrierCode) + { + $this->carrierCode = $carrierCode; + } + + public function setShared($shared) + { + $this->shared = $shared; + } + + public function setDepartureDateTime($departureDateTime) + { + $this->departureDateTime = $departureDateTime; + } + + public function setDepartureAirportCode($departureAirportCode) + { + $this->departureAirportCode = $departureAirportCode; + } + + public function setDepartureTerminal($departureTerminal) + { + $this->departureTerminal = $departureTerminal; + } + + public function setArrivalDateTime($arrivalDateTime) + { + $this->arrivalDateTime = $arrivalDateTime; + } + + public function setArrivalAirportCode($arrivalAirportCode) + { + $this->arrivalAirportCode = $arrivalAirportCode; + } + + public function setArrivalTerminal($arrivalTerminal) + { + $this->arrivalTerminal = $arrivalTerminal; + } + + public function setSegmentNo($segmentNo) + { + $this->segmentNo = $segmentNo; + } + + public function setSequenceNo($sequenceNo) + { + $this->sequenceNo = $sequenceNo; + } + + public function setCabinInfoList($cabinInfoList) + { + $this->cabinInfoList = $cabinInfoList; + } + +} + +class PddFlightOrderCreateRequest_FlightInfoListItemCabinInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "sub_class") + */ + private $subClass; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setSubClass($subClass) + { + $this->subClass = $subClass; + } + +} + +class PddFlightOrderCreateRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "gender") + */ + private $gender; + + /** + * @JsonProperty(String, "birthday") + */ + private $birthday; + + /** + * @JsonProperty(String, "effective_date") + */ + private $effectiveDate; + + /** + * @JsonProperty(String, "phone_num") + */ + private $phoneNum; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setGender($gender) + { + $this->gender = $gender; + } + + public function setBirthday($birthday) + { + $this->birthday = $birthday; + } + + public function setEffectiveDate($effectiveDate) + { + $this->effectiveDate = $effectiveDate; + } + + public function setPhoneNum($phoneNum) + { + $this->phoneNum = $phoneNum; + } + +} + +class PddFlightOrderCreateRequest_PriceInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(Long, "base_price") + */ + private $basePrice; + + /** + * @JsonProperty(Long, "settle_price") + */ + private $settlePrice; + + /** + * @JsonProperty(Long, "airport_tax") + */ + private $airportTax; + + /** + * @JsonProperty(Long, "fuel_tax") + */ + private $fuelTax; + + /** + * @JsonProperty(Double, "commission_point") + */ + private $commissionPoint; + + /** + * @JsonProperty(Long, "commission_money") + */ + private $commissionMoney; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setBasePrice($basePrice) + { + $this->basePrice = $basePrice; + } + + public function setSettlePrice($settlePrice) + { + $this->settlePrice = $settlePrice; + } + + public function setAirportTax($airportTax) + { + $this->airportTax = $airportTax; + } + + public function setFuelTax($fuelTax) + { + $this->fuelTax = $fuelTax; + } + + public function setCommissionPoint($commissionPoint) + { + $this->commissionPoint = $commissionPoint; + } + + public function setCommissionMoney($commissionMoney) + { + $this->commissionMoney = $commissionMoney; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderPayConfirmRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderPayConfirmRequest.php index eca26bc..7df4ddf 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderPayConfirmRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderPayConfirmRequest.php @@ -1,169 +1,169 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "total_pay", $this->totalPay); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.order.pay.confirm"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setTotalPay($totalPay) - { - $this->totalPay = $totalPay; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - -} - -class PddFlightOrderPayConfirmRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "pnr") - */ - private $pnr; - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setPnr($pnr) - { - $this->pnr = $pnr; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "total_pay", $this->totalPay); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.order.pay.confirm"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setTotalPay($totalPay) + { + $this->totalPay = $totalPay; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + +} + +class PddFlightOrderPayConfirmRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "pnr") + */ + private $pnr; + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setPnr($pnr) + { + $this->pnr = $pnr; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderPrePayCheckRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderPrePayCheckRequest.php index 280867a..bae935e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderPrePayCheckRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderPrePayCheckRequest.php @@ -1,147 +1,147 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.order.pre.pay.check"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - -} - -class PddFlightOrderPrePayCheckRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(Integer, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "pnr") - */ - private $pnr; - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setPnr($pnr) - { - $this->pnr = $pnr; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.order.pre.pay.check"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + +} + +class PddFlightOrderPrePayCheckRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(Integer, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "pnr") + */ + private $pnr; + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setPnr($pnr) + { + $this->pnr = $pnr; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderQuerysnRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderQuerysnRequest.php index dc2c4f7..0f7285d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderQuerysnRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightOrderQuerysnRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "travel_sn", $this->travelSn); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.order.querysn"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - -} +setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "travel_sn", $this->travelSn); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.order.querysn"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightQueryFlightListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightQueryFlightListRequest.php index eff4ba9..5184ecb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightQueryFlightListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightQueryFlightListRequest.php @@ -1,158 +1,158 @@ -, "carrier_code_list") - */ - private $carrierCodeList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightQueryFlightListRequest_SegmentListItem>, "segment_list") - */ - private $segmentList; - - /** - * @JsonProperty(String, "sub_trace_id") - */ - private $subTraceId; - - /** - * @JsonProperty(String, "trace_id") - */ - private $traceId; - - /** - * @JsonProperty(String, "trip_type") - */ - private $tripType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "carrier_code_list", $this->carrierCodeList); - $this->setUserParam($params, "segment_list", $this->segmentList); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "trip_type", $this->tripType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.query.flight.list"; - } - - public function setCarrierCodeList($carrierCodeList) - { - $this->carrierCodeList = $carrierCodeList; - } - - public function setSegmentList($segmentList) - { - $this->segmentList = $segmentList; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setTripType($tripType) - { - $this->tripType = $tripType; - } - -} - -class PddFlightQueryFlightListRequest_SegmentListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List, "arrival_airport_code_list") - */ - private $arrivalAirportCodeList; - - /** - * @JsonProperty(String, "arrival_city_code") - */ - private $arrivalCityCode; - - /** - * @JsonProperty(List, "departure_airport_code_list") - */ - private $departureAirportCodeList; - - /** - * @JsonProperty(String, "departure_city_code") - */ - private $departureCityCode; - - /** - * @JsonProperty(String, "departure_date") - */ - private $departureDate; - - /** - * @JsonProperty(Integer, "segment_no") - */ - private $segmentNo; - - public function setArrivalAirportCodeList($arrivalAirportCodeList) - { - $this->arrivalAirportCodeList = $arrivalAirportCodeList; - } - - public function setArrivalCityCode($arrivalCityCode) - { - $this->arrivalCityCode = $arrivalCityCode; - } - - public function setDepartureAirportCodeList($departureAirportCodeList) - { - $this->departureAirportCodeList = $departureAirportCodeList; - } - - public function setDepartureCityCode($departureCityCode) - { - $this->departureCityCode = $departureCityCode; - } - - public function setDepartureDate($departureDate) - { - $this->departureDate = $departureDate; - } - - public function setSegmentNo($segmentNo) - { - $this->segmentNo = $segmentNo; - } - -} +, "carrier_code_list") + */ + private $carrierCodeList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightQueryFlightListRequest_SegmentListItem>, "segment_list") + */ + private $segmentList; + + /** + * @JsonProperty(String, "sub_trace_id") + */ + private $subTraceId; + + /** + * @JsonProperty(String, "trace_id") + */ + private $traceId; + + /** + * @JsonProperty(String, "trip_type") + */ + private $tripType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "carrier_code_list", $this->carrierCodeList); + $this->setUserParam($params, "segment_list", $this->segmentList); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "trip_type", $this->tripType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.query.flight.list"; + } + + public function setCarrierCodeList($carrierCodeList) + { + $this->carrierCodeList = $carrierCodeList; + } + + public function setSegmentList($segmentList) + { + $this->segmentList = $segmentList; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setTripType($tripType) + { + $this->tripType = $tripType; + } + +} + +class PddFlightQueryFlightListRequest_SegmentListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List, "arrival_airport_code_list") + */ + private $arrivalAirportCodeList; + + /** + * @JsonProperty(String, "arrival_city_code") + */ + private $arrivalCityCode; + + /** + * @JsonProperty(List, "departure_airport_code_list") + */ + private $departureAirportCodeList; + + /** + * @JsonProperty(String, "departure_city_code") + */ + private $departureCityCode; + + /** + * @JsonProperty(String, "departure_date") + */ + private $departureDate; + + /** + * @JsonProperty(Integer, "segment_no") + */ + private $segmentNo; + + public function setArrivalAirportCodeList($arrivalAirportCodeList) + { + $this->arrivalAirportCodeList = $arrivalAirportCodeList; + } + + public function setArrivalCityCode($arrivalCityCode) + { + $this->arrivalCityCode = $arrivalCityCode; + } + + public function setDepartureAirportCodeList($departureAirportCodeList) + { + $this->departureAirportCodeList = $departureAirportCodeList; + } + + public function setDepartureCityCode($departureCityCode) + { + $this->departureCityCode = $departureCityCode; + } + + public function setDepartureDate($departureDate) + { + $this->departureDate = $departureDate; + } + + public function setSegmentNo($segmentNo) + { + $this->segmentNo = $segmentNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightQueryGuestRuleRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightQueryGuestRuleRequest.php index bd70945..c7e8409 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightQueryGuestRuleRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightQueryGuestRuleRequest.php @@ -1,347 +1,347 @@ -, "product_list") - */ - private $productList; - - /** - * @JsonProperty(Integer, "query_stage") - */ - private $queryStage; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "product_list", $this->productList); - $this->setUserParam($params, "query_stage", $this->queryStage); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.query.guest.rule"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setProductList($productList) - { - $this->productList = $productList; - } - - public function setQueryStage($queryStage) - { - $this->queryStage = $queryStage; - } - -} - -class PddFlightQueryGuestRuleRequest_ProductListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List, "passenger_type_list") - */ - private $passengerTypeList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightQueryGuestRuleRequest_ProductListItemFlightInfoListItem>, "flight_info_list") - */ - private $flightInfoList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItem>, "flight_cabin_info_list") - */ - private $flightCabinInfoList; - - /** - * @JsonProperty(String, "trip_type") - */ - private $tripType; - - /** - * @JsonProperty(String, "product_id") - */ - private $productId; - - /** - * @JsonProperty(Integer, "product_type") - */ - private $productType; - - public function setPassengerTypeList($passengerTypeList) - { - $this->passengerTypeList = $passengerTypeList; - } - - public function setFlightInfoList($flightInfoList) - { - $this->flightInfoList = $flightInfoList; - } - - public function setFlightCabinInfoList($flightCabinInfoList) - { - $this->flightCabinInfoList = $flightCabinInfoList; - } - - public function setTripType($tripType) - { - $this->tripType = $tripType; - } - - public function setProductId($productId) - { - $this->productId = $productId; - } - - public function setProductType($productType) - { - $this->productType = $productType; - } - -} - -class PddFlightQueryGuestRuleRequest_ProductListItemFlightInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "segment_no") - */ - private $segmentNo; - - /** - * @JsonProperty(Integer, "sequence_no") - */ - private $sequenceNo; - - /** - * @JsonProperty(String, "departure_date_time") - */ - private $departureDateTime; - - /** - * @JsonProperty(String, "departure_airport_code") - */ - private $departureAirportCode; - - /** - * @JsonProperty(String, "arrival_date_time") - */ - private $arrivalDateTime; - - /** - * @JsonProperty(String, "arrival_airport_code") - */ - private $arrivalAirportCode; - - /** - * @JsonProperty(String, "flight_no") - */ - private $flightNo; - - /** - * @JsonProperty(String, "carrier_code") - */ - private $carrierCode; - - public function setSegmentNo($segmentNo) - { - $this->segmentNo = $segmentNo; - } - - public function setSequenceNo($sequenceNo) - { - $this->sequenceNo = $sequenceNo; - } - - public function setDepartureDateTime($departureDateTime) - { - $this->departureDateTime = $departureDateTime; - } - - public function setDepartureAirportCode($departureAirportCode) - { - $this->departureAirportCode = $departureAirportCode; - } - - public function setArrivalDateTime($arrivalDateTime) - { - $this->arrivalDateTime = $arrivalDateTime; - } - - public function setArrivalAirportCode($arrivalAirportCode) - { - $this->arrivalAirportCode = $arrivalAirportCode; - } - - public function setFlightNo($flightNo) - { - $this->flightNo = $flightNo; - } - - public function setCarrierCode($carrierCode) - { - $this->carrierCode = $carrierCode; - } - -} - -class PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "segment_no") - */ - private $segmentNo; - - /** - * @JsonProperty(Integer, "sequence_no") - */ - private $sequenceNo; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItemCabinInfoListItem>, "cabin_info_list") - */ - private $cabinInfoList; - - public function setSegmentNo($segmentNo) - { - $this->segmentNo = $segmentNo; - } - - public function setSequenceNo($sequenceNo) - { - $this->sequenceNo = $sequenceNo; - } - - public function setCabinInfoList($cabinInfoList) - { - $this->cabinInfoList = $cabinInfoList; - } - -} - -class PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItemCabinInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "segment_no") - */ - private $segmentNo; - - /** - * @JsonProperty(String, "sequence_no") - */ - private $sequenceNo; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItemCabinInfoListItemCabinInfoListItem>, "cabin_info_list") - */ - private $cabinInfoList; - - public function setSegmentNo($segmentNo) - { - $this->segmentNo = $segmentNo; - } - - public function setSequenceNo($sequenceNo) - { - $this->sequenceNo = $sequenceNo; - } - - public function setCabinInfoList($cabinInfoList) - { - $this->cabinInfoList = $cabinInfoList; - } - -} - -class PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItemCabinInfoListItemCabinInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "sub_class") - */ - private $subClass; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setSubClass($subClass) - { - $this->subClass = $subClass; - } - -} +, "product_list") + */ + private $productList; + + /** + * @JsonProperty(Integer, "query_stage") + */ + private $queryStage; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "product_list", $this->productList); + $this->setUserParam($params, "query_stage", $this->queryStage); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.query.guest.rule"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setProductList($productList) + { + $this->productList = $productList; + } + + public function setQueryStage($queryStage) + { + $this->queryStage = $queryStage; + } + +} + +class PddFlightQueryGuestRuleRequest_ProductListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List, "passenger_type_list") + */ + private $passengerTypeList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightQueryGuestRuleRequest_ProductListItemFlightInfoListItem>, "flight_info_list") + */ + private $flightInfoList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItem>, "flight_cabin_info_list") + */ + private $flightCabinInfoList; + + /** + * @JsonProperty(String, "trip_type") + */ + private $tripType; + + /** + * @JsonProperty(String, "product_id") + */ + private $productId; + + /** + * @JsonProperty(Integer, "product_type") + */ + private $productType; + + public function setPassengerTypeList($passengerTypeList) + { + $this->passengerTypeList = $passengerTypeList; + } + + public function setFlightInfoList($flightInfoList) + { + $this->flightInfoList = $flightInfoList; + } + + public function setFlightCabinInfoList($flightCabinInfoList) + { + $this->flightCabinInfoList = $flightCabinInfoList; + } + + public function setTripType($tripType) + { + $this->tripType = $tripType; + } + + public function setProductId($productId) + { + $this->productId = $productId; + } + + public function setProductType($productType) + { + $this->productType = $productType; + } + +} + +class PddFlightQueryGuestRuleRequest_ProductListItemFlightInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "segment_no") + */ + private $segmentNo; + + /** + * @JsonProperty(Integer, "sequence_no") + */ + private $sequenceNo; + + /** + * @JsonProperty(String, "departure_date_time") + */ + private $departureDateTime; + + /** + * @JsonProperty(String, "departure_airport_code") + */ + private $departureAirportCode; + + /** + * @JsonProperty(String, "arrival_date_time") + */ + private $arrivalDateTime; + + /** + * @JsonProperty(String, "arrival_airport_code") + */ + private $arrivalAirportCode; + + /** + * @JsonProperty(String, "flight_no") + */ + private $flightNo; + + /** + * @JsonProperty(String, "carrier_code") + */ + private $carrierCode; + + public function setSegmentNo($segmentNo) + { + $this->segmentNo = $segmentNo; + } + + public function setSequenceNo($sequenceNo) + { + $this->sequenceNo = $sequenceNo; + } + + public function setDepartureDateTime($departureDateTime) + { + $this->departureDateTime = $departureDateTime; + } + + public function setDepartureAirportCode($departureAirportCode) + { + $this->departureAirportCode = $departureAirportCode; + } + + public function setArrivalDateTime($arrivalDateTime) + { + $this->arrivalDateTime = $arrivalDateTime; + } + + public function setArrivalAirportCode($arrivalAirportCode) + { + $this->arrivalAirportCode = $arrivalAirportCode; + } + + public function setFlightNo($flightNo) + { + $this->flightNo = $flightNo; + } + + public function setCarrierCode($carrierCode) + { + $this->carrierCode = $carrierCode; + } + +} + +class PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "segment_no") + */ + private $segmentNo; + + /** + * @JsonProperty(Integer, "sequence_no") + */ + private $sequenceNo; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItemCabinInfoListItem>, "cabin_info_list") + */ + private $cabinInfoList; + + public function setSegmentNo($segmentNo) + { + $this->segmentNo = $segmentNo; + } + + public function setSequenceNo($sequenceNo) + { + $this->sequenceNo = $sequenceNo; + } + + public function setCabinInfoList($cabinInfoList) + { + $this->cabinInfoList = $cabinInfoList; + } + +} + +class PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItemCabinInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "segment_no") + */ + private $segmentNo; + + /** + * @JsonProperty(String, "sequence_no") + */ + private $sequenceNo; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItemCabinInfoListItemCabinInfoListItem>, "cabin_info_list") + */ + private $cabinInfoList; + + public function setSegmentNo($segmentNo) + { + $this->segmentNo = $segmentNo; + } + + public function setSequenceNo($sequenceNo) + { + $this->sequenceNo = $sequenceNo; + } + + public function setCabinInfoList($cabinInfoList) + { + $this->cabinInfoList = $cabinInfoList; + } + +} + +class PddFlightQueryGuestRuleRequest_ProductListItemFlightCabinInfoListItemCabinInfoListItemCabinInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "sub_class") + */ + private $subClass; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setSubClass($subClass) + { + $this->subClass = $subClass; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightRefundApplyRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightRefundApplyRequest.php index 2190e43..5e2a940 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightRefundApplyRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightRefundApplyRequest.php @@ -1,190 +1,190 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "refund_type", $this->refundType); - $this->setUserParam($params, "refund_reason", $this->refundReason); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.refund.apply"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setRefundType($refundType) - { - $this->refundType = $refundType; - } - - public function setRefundReason($refundReason) - { - $this->refundReason = $refundReason; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - -} - -class PddFlightRefundApplyRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - /** - * @JsonProperty(String, "ticket_no") - */ - private $ticketNo; - - /** - * @JsonProperty(String, "old_ticket_no") - */ - private $oldTicketNo; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - - public function setTicketNo($ticketNo) - { - $this->ticketNo = $ticketNo; - } - - public function setOldTicketNo($oldTicketNo) - { - $this->oldTicketNo = $oldTicketNo; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "refund_type", $this->refundType); + $this->setUserParam($params, "refund_reason", $this->refundReason); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.refund.apply"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setRefundType($refundType) + { + $this->refundType = $refundType; + } + + public function setRefundReason($refundReason) + { + $this->refundReason = $refundReason; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + +} + +class PddFlightRefundApplyRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + /** + * @JsonProperty(String, "ticket_no") + */ + private $ticketNo; + + /** + * @JsonProperty(String, "old_ticket_no") + */ + private $oldTicketNo; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + + public function setTicketNo($ticketNo) + { + $this->ticketNo = $ticketNo; + } + + public function setOldTicketNo($oldTicketNo) + { + $this->oldTicketNo = $oldTicketNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddFlightRefundableRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddFlightRefundableRequest.php index 8365602..635619e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddFlightRefundableRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddFlightRefundableRequest.php @@ -1,191 +1,191 @@ -, "passenger_info_list") - */ - private $passengerInfoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "trace_id", $this->traceId); - $this->setUserParam($params, "sub_trace_id", $this->subTraceId); - $this->setUserParam($params, "out_order_no", $this->outOrderNo); - $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); - $this->setUserParam($params, "refund_type", $this->refundType); - $this->setUserParam($params, "refund_reason", $this->refundReason); - $this->setUserParam($params, "attachment_path", $this->attachmentPath); - $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.flight.refundable"; - } - - public function setTraceId($traceId) - { - $this->traceId = $traceId; - } - - public function setSubTraceId($subTraceId) - { - $this->subTraceId = $subTraceId; - } - - public function setOutOrderNo($outOrderNo) - { - $this->outOrderNo = $outOrderNo; - } - - public function setParentTravelSn($parentTravelSn) - { - $this->parentTravelSn = $parentTravelSn; - } - - public function setRefundType($refundType) - { - $this->refundType = $refundType; - } - - public function setRefundReason($refundReason) - { - $this->refundReason = $refundReason; - } - - public function setAttachmentPath($attachmentPath) - { - $this->attachmentPath = $attachmentPath; - } - - public function setPassengerInfoList($passengerInfoList) - { - $this->passengerInfoList = $passengerInfoList; - } - -} - -class PddFlightRefundableRequest_PassengerInfoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "passenger_type") - */ - private $passengerType; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "identity_type") - */ - private $identityType; - - /** - * @JsonProperty(String, "identity_no") - */ - private $identityNo; - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - /** - * @JsonProperty(String, "ticket_no") - */ - private $ticketNo; - - public function setPassengerType($passengerType) - { - $this->passengerType = $passengerType; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setIdentityType($identityType) - { - $this->identityType = $identityType; - } - - public function setIdentityNo($identityNo) - { - $this->identityNo = $identityNo; - } - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - - public function setTicketNo($ticketNo) - { - $this->ticketNo = $ticketNo; - } - -} +, "passenger_info_list") + */ + private $passengerInfoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "trace_id", $this->traceId); + $this->setUserParam($params, "sub_trace_id", $this->subTraceId); + $this->setUserParam($params, "out_order_no", $this->outOrderNo); + $this->setUserParam($params, "parent_travel_sn", $this->parentTravelSn); + $this->setUserParam($params, "refund_type", $this->refundType); + $this->setUserParam($params, "refund_reason", $this->refundReason); + $this->setUserParam($params, "attachment_path", $this->attachmentPath); + $this->setUserParam($params, "passenger_info_list", $this->passengerInfoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.flight.refundable"; + } + + public function setTraceId($traceId) + { + $this->traceId = $traceId; + } + + public function setSubTraceId($subTraceId) + { + $this->subTraceId = $subTraceId; + } + + public function setOutOrderNo($outOrderNo) + { + $this->outOrderNo = $outOrderNo; + } + + public function setParentTravelSn($parentTravelSn) + { + $this->parentTravelSn = $parentTravelSn; + } + + public function setRefundType($refundType) + { + $this->refundType = $refundType; + } + + public function setRefundReason($refundReason) + { + $this->refundReason = $refundReason; + } + + public function setAttachmentPath($attachmentPath) + { + $this->attachmentPath = $attachmentPath; + } + + public function setPassengerInfoList($passengerInfoList) + { + $this->passengerInfoList = $passengerInfoList; + } + +} + +class PddFlightRefundableRequest_PassengerInfoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "passenger_type") + */ + private $passengerType; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "identity_type") + */ + private $identityType; + + /** + * @JsonProperty(String, "identity_no") + */ + private $identityNo; + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + /** + * @JsonProperty(String, "ticket_no") + */ + private $ticketNo; + + public function setPassengerType($passengerType) + { + $this->passengerType = $passengerType; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + } + + public function setIdentityNo($identityNo) + { + $this->identityNo = $identityNo; + } + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + + public function setTicketNo($ticketNo) + { + $this->ticketNo = $ticketNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsAddRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsAddRequest.php index 72170bd..e89e5d7 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsAddRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsAddRequest.php @@ -1,1082 +1,1082 @@ -, "carousel_gallery") - */ - private $carouselGallery; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_CarouselVideoItem>, "carousel_video") - */ - private $carouselVideo; - - /** - * @JsonProperty(String, "carousel_video_url") - */ - private $carouselVideoUrl; - - /** - * @JsonProperty(Long, "cat_id") - */ - private $catId; - - /** - * @JsonProperty(Long, "cost_template_id") - */ - private $costTemplateId; - - /** - * @JsonProperty(Integer, "country_id") - */ - private $countryId; - - /** - * @JsonProperty(Long, "customer_num") - */ - private $customerNum; - - /** - * @JsonProperty(String, "customs") - */ - private $customs; - - /** - * @JsonProperty(Integer, "delivery_one_day") - */ - private $deliveryOneDay; - - /** - * @JsonProperty(List, "detail_gallery") - */ - private $detailGallery; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_ElecGoodsAttributes, "elec_goods_attributes") - */ - private $elecGoodsAttributes; - - /** - * @JsonProperty(String, "goods_desc") - */ - private $goodsDesc; - - /** - * @JsonProperty(String, "goods_name") - */ - private $goodsName; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_GoodsPropertiesItem>, "goods_properties") - */ - private $goodsProperties; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_GoodsTradeAttr, "goods_trade_attr") - */ - private $goodsTradeAttr; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_GoodsTravelAttr, "goods_travel_attr") - */ - private $goodsTravelAttr; - - /** - * @JsonProperty(Integer, "goods_type") - */ - private $goodsType; - - /** - * @JsonProperty(String, "image_url") - */ - private $imageUrl; - - /** - * @JsonProperty(Boolean, "invoice_status") - */ - private $invoiceStatus; - - /** - * @JsonProperty(Boolean, "is_customs") - */ - private $isCustoms; - - /** - * @JsonProperty(Boolean, "is_folt") - */ - private $isFolt; - - /** - * @JsonProperty(Boolean, "is_pre_sale") - */ - private $isPreSale; - - /** - * @JsonProperty(Boolean, "is_refundable") - */ - private $isRefundable; - - /** - * @JsonProperty(Integer, "lack_of_weight_claim") - */ - private $lackOfWeightClaim; - - /** - * @JsonProperty(String, "mai_jia_zi_ti") - */ - private $maiJiaZiTi; - - /** - * @JsonProperty(Long, "market_price") - */ - private $marketPrice; - - /** - * @JsonProperty(Integer, "order_limit") - */ - private $orderLimit; - - /** - * @JsonProperty(Integer, "origin_country_id") - */ - private $originCountryId; - - /** - * @JsonProperty(String, "out_goods_id") - */ - private $outGoodsId; - - /** - * @JsonProperty(String, "out_source_goods_id") - */ - private $outSourceGoodsId; - - /** - * @JsonProperty(Integer, "out_source_type") - */ - private $outSourceType; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_OverseaGoods, "oversea_goods") - */ - private $overseaGoods; - - /** - * @JsonProperty(Integer, "oversea_type") - */ - private $overseaType; - - /** - * @JsonProperty(Long, "pre_sale_time") - */ - private $preSaleTime; - - /** - * @JsonProperty(Integer, "quan_guo_lian_bao") - */ - private $quanGuoLianBao; - - /** - * @JsonProperty(Boolean, "second_hand") - */ - private $secondHand; - - /** - * @JsonProperty(String, "shang_men_an_zhuang") - */ - private $shangMenAnZhuang; - - /** - * @JsonProperty(Long, "shipment_limit_second") - */ - private $shipmentLimitSecond; - - /** - * @JsonProperty(Long, "size_spec_id") - */ - private $sizeSpecId; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_SkuListItem>, "sku_list") - */ - private $skuList; - - /** - * @JsonProperty(Integer, "sku_type") - */ - private $skuType; - - /** - * @JsonProperty(String, "song_huo_an_zhuang") - */ - private $songHuoAnZhuang; - - /** - * @JsonProperty(String, "song_huo_ru_hu") - */ - private $songHuoRuHu; - - /** - * @JsonProperty(String, "tiny_name") - */ - private $tinyName; - - /** - * @JsonProperty(String, "warehouse") - */ - private $warehouse; - - /** - * @JsonProperty(String, "warm_tips") - */ - private $warmTips; - - /** - * @JsonProperty(Integer, "zhi_huan_bu_xiu") - */ - private $zhiHuanBuXiu; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "bad_fruit_claim", $this->badFruitClaim); - $this->setUserParam($params, "buy_limit", $this->buyLimit); - $this->setUserParam($params, "carousel_gallery", $this->carouselGallery); - $this->setUserParam($params, "carousel_video", $this->carouselVideo); - $this->setUserParam($params, "carousel_video_url", $this->carouselVideoUrl); - $this->setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "cost_template_id", $this->costTemplateId); - $this->setUserParam($params, "country_id", $this->countryId); - $this->setUserParam($params, "customer_num", $this->customerNum); - $this->setUserParam($params, "customs", $this->customs); - $this->setUserParam($params, "delivery_one_day", $this->deliveryOneDay); - $this->setUserParam($params, "detail_gallery", $this->detailGallery); - $this->setUserParam($params, "elec_goods_attributes", $this->elecGoodsAttributes); - $this->setUserParam($params, "goods_desc", $this->goodsDesc); - $this->setUserParam($params, "goods_name", $this->goodsName); - $this->setUserParam($params, "goods_properties", $this->goodsProperties); - $this->setUserParam($params, "goods_trade_attr", $this->goodsTradeAttr); - $this->setUserParam($params, "goods_travel_attr", $this->goodsTravelAttr); - $this->setUserParam($params, "goods_type", $this->goodsType); - $this->setUserParam($params, "image_url", $this->imageUrl); - $this->setUserParam($params, "invoice_status", $this->invoiceStatus); - $this->setUserParam($params, "is_customs", $this->isCustoms); - $this->setUserParam($params, "is_folt", $this->isFolt); - $this->setUserParam($params, "is_pre_sale", $this->isPreSale); - $this->setUserParam($params, "is_refundable", $this->isRefundable); - $this->setUserParam($params, "lack_of_weight_claim", $this->lackOfWeightClaim); - $this->setUserParam($params, "mai_jia_zi_ti", $this->maiJiaZiTi); - $this->setUserParam($params, "market_price", $this->marketPrice); - $this->setUserParam($params, "order_limit", $this->orderLimit); - $this->setUserParam($params, "origin_country_id", $this->originCountryId); - $this->setUserParam($params, "out_goods_id", $this->outGoodsId); - $this->setUserParam($params, "out_source_goods_id", $this->outSourceGoodsId); - $this->setUserParam($params, "out_source_type", $this->outSourceType); - $this->setUserParam($params, "oversea_goods", $this->overseaGoods); - $this->setUserParam($params, "oversea_type", $this->overseaType); - $this->setUserParam($params, "pre_sale_time", $this->preSaleTime); - $this->setUserParam($params, "quan_guo_lian_bao", $this->quanGuoLianBao); - $this->setUserParam($params, "second_hand", $this->secondHand); - $this->setUserParam($params, "shang_men_an_zhuang", $this->shangMenAnZhuang); - $this->setUserParam($params, "shipment_limit_second", $this->shipmentLimitSecond); - $this->setUserParam($params, "size_spec_id", $this->sizeSpecId); - $this->setUserParam($params, "sku_list", $this->skuList); - $this->setUserParam($params, "sku_type", $this->skuType); - $this->setUserParam($params, "song_huo_an_zhuang", $this->songHuoAnZhuang); - $this->setUserParam($params, "song_huo_ru_hu", $this->songHuoRuHu); - $this->setUserParam($params, "tiny_name", $this->tinyName); - $this->setUserParam($params, "warehouse", $this->warehouse); - $this->setUserParam($params, "warm_tips", $this->warmTips); - $this->setUserParam($params, "zhi_huan_bu_xiu", $this->zhiHuanBuXiu); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.add"; - } - - public function setBadFruitClaim($badFruitClaim) - { - $this->badFruitClaim = $badFruitClaim; - } - - public function setBuyLimit($buyLimit) - { - $this->buyLimit = $buyLimit; - } - - public function setCarouselGallery($carouselGallery) - { - $this->carouselGallery = $carouselGallery; - } - - public function setCarouselVideo($carouselVideo) - { - $this->carouselVideo = $carouselVideo; - } - - public function setCarouselVideoUrl($carouselVideoUrl) - { - $this->carouselVideoUrl = $carouselVideoUrl; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setCostTemplateId($costTemplateId) - { - $this->costTemplateId = $costTemplateId; - } - - public function setCountryId($countryId) - { - $this->countryId = $countryId; - } - - public function setCustomerNum($customerNum) - { - $this->customerNum = $customerNum; - } - - public function setCustoms($customs) - { - $this->customs = $customs; - } - - public function setDeliveryOneDay($deliveryOneDay) - { - $this->deliveryOneDay = $deliveryOneDay; - } - - public function setDetailGallery($detailGallery) - { - $this->detailGallery = $detailGallery; - } - - public function setElecGoodsAttributes($elecGoodsAttributes) - { - $this->elecGoodsAttributes = $elecGoodsAttributes; - } - - public function setGoodsDesc($goodsDesc) - { - $this->goodsDesc = $goodsDesc; - } - - public function setGoodsName($goodsName) - { - $this->goodsName = $goodsName; - } - - public function setGoodsProperties($goodsProperties) - { - $this->goodsProperties = $goodsProperties; - } - - public function setGoodsTradeAttr($goodsTradeAttr) - { - $this->goodsTradeAttr = $goodsTradeAttr; - } - - public function setGoodsTravelAttr($goodsTravelAttr) - { - $this->goodsTravelAttr = $goodsTravelAttr; - } - - public function setGoodsType($goodsType) - { - $this->goodsType = $goodsType; - } - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - - public function setInvoiceStatus($invoiceStatus) - { - $this->invoiceStatus = $invoiceStatus; - } - - public function setIsCustoms($isCustoms) - { - $this->isCustoms = $isCustoms; - } - - public function setIsFolt($isFolt) - { - $this->isFolt = $isFolt; - } - - public function setIsPreSale($isPreSale) - { - $this->isPreSale = $isPreSale; - } - - public function setIsRefundable($isRefundable) - { - $this->isRefundable = $isRefundable; - } - - public function setLackOfWeightClaim($lackOfWeightClaim) - { - $this->lackOfWeightClaim = $lackOfWeightClaim; - } - - public function setMaiJiaZiTi($maiJiaZiTi) - { - $this->maiJiaZiTi = $maiJiaZiTi; - } - - public function setMarketPrice($marketPrice) - { - $this->marketPrice = $marketPrice; - } - - public function setOrderLimit($orderLimit) - { - $this->orderLimit = $orderLimit; - } - - public function setOriginCountryId($originCountryId) - { - $this->originCountryId = $originCountryId; - } - - public function setOutGoodsId($outGoodsId) - { - $this->outGoodsId = $outGoodsId; - } - - public function setOutSourceGoodsId($outSourceGoodsId) - { - $this->outSourceGoodsId = $outSourceGoodsId; - } - - public function setOutSourceType($outSourceType) - { - $this->outSourceType = $outSourceType; - } - - public function setOverseaGoods($overseaGoods) - { - $this->overseaGoods = $overseaGoods; - } - - public function setOverseaType($overseaType) - { - $this->overseaType = $overseaType; - } - - public function setPreSaleTime($preSaleTime) - { - $this->preSaleTime = $preSaleTime; - } - - public function setQuanGuoLianBao($quanGuoLianBao) - { - $this->quanGuoLianBao = $quanGuoLianBao; - } - - public function setSecondHand($secondHand) - { - $this->secondHand = $secondHand; - } - - public function setShangMenAnZhuang($shangMenAnZhuang) - { - $this->shangMenAnZhuang = $shangMenAnZhuang; - } - - public function setShipmentLimitSecond($shipmentLimitSecond) - { - $this->shipmentLimitSecond = $shipmentLimitSecond; - } - - public function setSizeSpecId($sizeSpecId) - { - $this->sizeSpecId = $sizeSpecId; - } - - public function setSkuList($skuList) - { - $this->skuList = $skuList; - } - - public function setSkuType($skuType) - { - $this->skuType = $skuType; - } - - public function setSongHuoAnZhuang($songHuoAnZhuang) - { - $this->songHuoAnZhuang = $songHuoAnZhuang; - } - - public function setSongHuoRuHu($songHuoRuHu) - { - $this->songHuoRuHu = $songHuoRuHu; - } - - public function setTinyName($tinyName) - { - $this->tinyName = $tinyName; - } - - public function setWarehouse($warehouse) - { - $this->warehouse = $warehouse; - } - - public function setWarmTips($warmTips) - { - $this->warmTips = $warmTips; - } - - public function setZhiHuanBuXiu($zhiHuanBuXiu) - { - $this->zhiHuanBuXiu = $zhiHuanBuXiu; - } - -} - -class PddGoodsAddRequest_CarouselVideoItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "file_id") - */ - private $fileId; - - /** - * @JsonProperty(String, "video_url") - */ - private $videoUrl; - - public function setFileId($fileId) - { - $this->fileId = $fileId; - } - - public function setVideoUrl($videoUrl) - { - $this->videoUrl = $videoUrl; - } - -} - -class PddGoodsAddRequest_ElecGoodsAttributes extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "begin_time") - */ - private $beginTime; - - /** - * @JsonProperty(Integer, "days_time") - */ - private $daysTime; - - /** - * @JsonProperty(Long, "end_time") - */ - private $endTime; - - /** - * @JsonProperty(Integer, "time_type") - */ - private $timeType; - - public function setBeginTime($beginTime) - { - $this->beginTime = $beginTime; - } - - public function setDaysTime($daysTime) - { - $this->daysTime = $daysTime; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setTimeType($timeType) - { - $this->timeType = $timeType; - } - -} - -class PddGoodsAddRequest_GoodsPropertiesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "group_id") - */ - private $groupId; - - /** - * @JsonProperty(String, "img_url") - */ - private $imgUrl; - - /** - * @JsonProperty(String, "note") - */ - private $note; - - /** - * @JsonProperty(Long, "parent_spec_id") - */ - private $parentSpecId; - - /** - * @JsonProperty(Long, "ref_pid") - */ - private $refPid; - - /** - * @JsonProperty(Long, "spec_id") - */ - private $specId; - - /** - * @JsonProperty(Long, "template_pid") - */ - private $templatePid; - - /** - * @JsonProperty(String, "value") - */ - private $value; - - /** - * @JsonProperty(String, "value_unit") - */ - private $valueUnit; - - /** - * @JsonProperty(Long, "vid") - */ - private $vid; - - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - - public function setImgUrl($imgUrl) - { - $this->imgUrl = $imgUrl; - } - - public function setNote($note) - { - $this->note = $note; - } - - public function setParentSpecId($parentSpecId) - { - $this->parentSpecId = $parentSpecId; - } - - public function setRefPid($refPid) - { - $this->refPid = $refPid; - } - - public function setSpecId($specId) - { - $this->specId = $specId; - } - - public function setTemplatePid($templatePid) - { - $this->templatePid = $templatePid; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setValueUnit($valueUnit) - { - $this->valueUnit = $valueUnit; - } - - public function setVid($vid) - { - $this->vid = $vid; - } - -} - -class PddGoodsAddRequest_GoodsTradeAttr extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "advances_days") - */ - private $advancesDays; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_GoodsTradeAttrBookingNotes, "booking_notes") - */ - private $bookingNotes; - - /** - * @JsonProperty(Integer, "life_span") - */ - private $lifeSpan; - - public function setAdvancesDays($advancesDays) - { - $this->advancesDays = $advancesDays; - } - - public function setBookingNotes($bookingNotes) - { - $this->bookingNotes = $bookingNotes; - } - - public function setLifeSpan($lifeSpan) - { - $this->lifeSpan = $lifeSpan; - } - -} - -class PddGoodsAddRequest_GoodsTradeAttrBookingNotes extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "url") - */ - private $url; - - public function setUrl($url) - { - $this->url = $url; - } - -} - -class PddGoodsAddRequest_GoodsTravelAttr extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Boolean, "need_tourist") - */ - private $needTourist; - - /** - * @JsonProperty(Integer, "type") - */ - private $type; - - public function setNeedTourist($needTourist) - { - $this->needTourist = $needTourist; - } - - public function setType($type) - { - $this->type = $type; - } - -} - -class PddGoodsAddRequest_OverseaGoods extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "bonded_warehouse_key") - */ - private $bondedWarehouseKey; - - /** - * @JsonProperty(Integer, "consumption_tax_rate") - */ - private $consumptionTaxRate; - - /** - * @JsonProperty(String, "customs_broker") - */ - private $customsBroker; - - /** - * @JsonProperty(String, "hs_code") - */ - private $hsCode; - - /** - * @JsonProperty(Integer, "value_added_tax_rate") - */ - private $valueAddedTaxRate; - - public function setBondedWarehouseKey($bondedWarehouseKey) - { - $this->bondedWarehouseKey = $bondedWarehouseKey; - } - - public function setConsumptionTaxRate($consumptionTaxRate) - { - $this->consumptionTaxRate = $consumptionTaxRate; - } - - public function setCustomsBroker($customsBroker) - { - $this->customsBroker = $customsBroker; - } - - public function setHsCode($hsCode) - { - $this->hsCode = $hsCode; - } - - public function setValueAddedTaxRate($valueAddedTaxRate) - { - $this->valueAddedTaxRate = $valueAddedTaxRate; - } - -} - -class PddGoodsAddRequest_SkuListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "is_onsale") - */ - private $isOnsale; - - /** - * @JsonProperty(Long, "length") - */ - private $length; - - /** - * @JsonProperty(Long, "limit_quantity") - */ - private $limitQuantity; - - /** - * @JsonProperty(Long, "multi_price") - */ - private $multiPrice; - - /** - * @JsonProperty(String, "out_sku_sn") - */ - private $outSkuSn; - - /** - * @JsonProperty(String, "out_source_sku_id") - */ - private $outSourceSkuId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_SkuListItemOverseaSku, "oversea_sku") - */ - private $overseaSku; - - /** - * @JsonProperty(Long, "price") - */ - private $price; - - /** - * @JsonProperty(Long, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(String, "spec_id_list") - */ - private $specIdList; - - /** - * @JsonProperty(String, "thumb_url") - */ - private $thumbUrl; - - /** - * @JsonProperty(Long, "weight") - */ - private $weight; - - public function setIsOnsale($isOnsale) - { - $this->isOnsale = $isOnsale; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setLimitQuantity($limitQuantity) - { - $this->limitQuantity = $limitQuantity; - } - - public function setMultiPrice($multiPrice) - { - $this->multiPrice = $multiPrice; - } - - public function setOutSkuSn($outSkuSn) - { - $this->outSkuSn = $outSkuSn; - } - - public function setOutSourceSkuId($outSourceSkuId) - { - $this->outSourceSkuId = $outSourceSkuId; - } - - public function setOverseaSku($overseaSku) - { - $this->overseaSku = $overseaSku; - } - - public function setPrice($price) - { - $this->price = $price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setSpecIdList($specIdList) - { - $this->specIdList = $specIdList; - } - - public function setThumbUrl($thumbUrl) - { - $this->thumbUrl = $thumbUrl; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - -} - -class PddGoodsAddRequest_SkuListItemOverseaSku extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "measurement_code") - */ - private $measurementCode; - - /** - * @JsonProperty(String, "specifications") - */ - private $specifications; - - /** - * @JsonProperty(Integer, "taxation") - */ - private $taxation; - - public function setMeasurementCode($measurementCode) - { - $this->measurementCode = $measurementCode; - } - - public function setSpecifications($specifications) - { - $this->specifications = $specifications; - } - - public function setTaxation($taxation) - { - $this->taxation = $taxation; - } - -} +, "carousel_gallery") + */ + private $carouselGallery; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_CarouselVideoItem>, "carousel_video") + */ + private $carouselVideo; + + /** + * @JsonProperty(String, "carousel_video_url") + */ + private $carouselVideoUrl; + + /** + * @JsonProperty(Long, "cat_id") + */ + private $catId; + + /** + * @JsonProperty(Long, "cost_template_id") + */ + private $costTemplateId; + + /** + * @JsonProperty(Integer, "country_id") + */ + private $countryId; + + /** + * @JsonProperty(Long, "customer_num") + */ + private $customerNum; + + /** + * @JsonProperty(String, "customs") + */ + private $customs; + + /** + * @JsonProperty(Integer, "delivery_one_day") + */ + private $deliveryOneDay; + + /** + * @JsonProperty(List, "detail_gallery") + */ + private $detailGallery; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_ElecGoodsAttributes, "elec_goods_attributes") + */ + private $elecGoodsAttributes; + + /** + * @JsonProperty(String, "goods_desc") + */ + private $goodsDesc; + + /** + * @JsonProperty(String, "goods_name") + */ + private $goodsName; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_GoodsPropertiesItem>, "goods_properties") + */ + private $goodsProperties; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_GoodsTradeAttr, "goods_trade_attr") + */ + private $goodsTradeAttr; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_GoodsTravelAttr, "goods_travel_attr") + */ + private $goodsTravelAttr; + + /** + * @JsonProperty(Integer, "goods_type") + */ + private $goodsType; + + /** + * @JsonProperty(String, "image_url") + */ + private $imageUrl; + + /** + * @JsonProperty(Boolean, "invoice_status") + */ + private $invoiceStatus; + + /** + * @JsonProperty(Boolean, "is_customs") + */ + private $isCustoms; + + /** + * @JsonProperty(Boolean, "is_folt") + */ + private $isFolt; + + /** + * @JsonProperty(Boolean, "is_pre_sale") + */ + private $isPreSale; + + /** + * @JsonProperty(Boolean, "is_refundable") + */ + private $isRefundable; + + /** + * @JsonProperty(Integer, "lack_of_weight_claim") + */ + private $lackOfWeightClaim; + + /** + * @JsonProperty(String, "mai_jia_zi_ti") + */ + private $maiJiaZiTi; + + /** + * @JsonProperty(Long, "market_price") + */ + private $marketPrice; + + /** + * @JsonProperty(Integer, "order_limit") + */ + private $orderLimit; + + /** + * @JsonProperty(Integer, "origin_country_id") + */ + private $originCountryId; + + /** + * @JsonProperty(String, "out_goods_id") + */ + private $outGoodsId; + + /** + * @JsonProperty(String, "out_source_goods_id") + */ + private $outSourceGoodsId; + + /** + * @JsonProperty(Integer, "out_source_type") + */ + private $outSourceType; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_OverseaGoods, "oversea_goods") + */ + private $overseaGoods; + + /** + * @JsonProperty(Integer, "oversea_type") + */ + private $overseaType; + + /** + * @JsonProperty(Long, "pre_sale_time") + */ + private $preSaleTime; + + /** + * @JsonProperty(Integer, "quan_guo_lian_bao") + */ + private $quanGuoLianBao; + + /** + * @JsonProperty(Boolean, "second_hand") + */ + private $secondHand; + + /** + * @JsonProperty(String, "shang_men_an_zhuang") + */ + private $shangMenAnZhuang; + + /** + * @JsonProperty(Long, "shipment_limit_second") + */ + private $shipmentLimitSecond; + + /** + * @JsonProperty(Long, "size_spec_id") + */ + private $sizeSpecId; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_SkuListItem>, "sku_list") + */ + private $skuList; + + /** + * @JsonProperty(Integer, "sku_type") + */ + private $skuType; + + /** + * @JsonProperty(String, "song_huo_an_zhuang") + */ + private $songHuoAnZhuang; + + /** + * @JsonProperty(String, "song_huo_ru_hu") + */ + private $songHuoRuHu; + + /** + * @JsonProperty(String, "tiny_name") + */ + private $tinyName; + + /** + * @JsonProperty(String, "warehouse") + */ + private $warehouse; + + /** + * @JsonProperty(String, "warm_tips") + */ + private $warmTips; + + /** + * @JsonProperty(Integer, "zhi_huan_bu_xiu") + */ + private $zhiHuanBuXiu; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "bad_fruit_claim", $this->badFruitClaim); + $this->setUserParam($params, "buy_limit", $this->buyLimit); + $this->setUserParam($params, "carousel_gallery", $this->carouselGallery); + $this->setUserParam($params, "carousel_video", $this->carouselVideo); + $this->setUserParam($params, "carousel_video_url", $this->carouselVideoUrl); + $this->setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "cost_template_id", $this->costTemplateId); + $this->setUserParam($params, "country_id", $this->countryId); + $this->setUserParam($params, "customer_num", $this->customerNum); + $this->setUserParam($params, "customs", $this->customs); + $this->setUserParam($params, "delivery_one_day", $this->deliveryOneDay); + $this->setUserParam($params, "detail_gallery", $this->detailGallery); + $this->setUserParam($params, "elec_goods_attributes", $this->elecGoodsAttributes); + $this->setUserParam($params, "goods_desc", $this->goodsDesc); + $this->setUserParam($params, "goods_name", $this->goodsName); + $this->setUserParam($params, "goods_properties", $this->goodsProperties); + $this->setUserParam($params, "goods_trade_attr", $this->goodsTradeAttr); + $this->setUserParam($params, "goods_travel_attr", $this->goodsTravelAttr); + $this->setUserParam($params, "goods_type", $this->goodsType); + $this->setUserParam($params, "image_url", $this->imageUrl); + $this->setUserParam($params, "invoice_status", $this->invoiceStatus); + $this->setUserParam($params, "is_customs", $this->isCustoms); + $this->setUserParam($params, "is_folt", $this->isFolt); + $this->setUserParam($params, "is_pre_sale", $this->isPreSale); + $this->setUserParam($params, "is_refundable", $this->isRefundable); + $this->setUserParam($params, "lack_of_weight_claim", $this->lackOfWeightClaim); + $this->setUserParam($params, "mai_jia_zi_ti", $this->maiJiaZiTi); + $this->setUserParam($params, "market_price", $this->marketPrice); + $this->setUserParam($params, "order_limit", $this->orderLimit); + $this->setUserParam($params, "origin_country_id", $this->originCountryId); + $this->setUserParam($params, "out_goods_id", $this->outGoodsId); + $this->setUserParam($params, "out_source_goods_id", $this->outSourceGoodsId); + $this->setUserParam($params, "out_source_type", $this->outSourceType); + $this->setUserParam($params, "oversea_goods", $this->overseaGoods); + $this->setUserParam($params, "oversea_type", $this->overseaType); + $this->setUserParam($params, "pre_sale_time", $this->preSaleTime); + $this->setUserParam($params, "quan_guo_lian_bao", $this->quanGuoLianBao); + $this->setUserParam($params, "second_hand", $this->secondHand); + $this->setUserParam($params, "shang_men_an_zhuang", $this->shangMenAnZhuang); + $this->setUserParam($params, "shipment_limit_second", $this->shipmentLimitSecond); + $this->setUserParam($params, "size_spec_id", $this->sizeSpecId); + $this->setUserParam($params, "sku_list", $this->skuList); + $this->setUserParam($params, "sku_type", $this->skuType); + $this->setUserParam($params, "song_huo_an_zhuang", $this->songHuoAnZhuang); + $this->setUserParam($params, "song_huo_ru_hu", $this->songHuoRuHu); + $this->setUserParam($params, "tiny_name", $this->tinyName); + $this->setUserParam($params, "warehouse", $this->warehouse); + $this->setUserParam($params, "warm_tips", $this->warmTips); + $this->setUserParam($params, "zhi_huan_bu_xiu", $this->zhiHuanBuXiu); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.add"; + } + + public function setBadFruitClaim($badFruitClaim) + { + $this->badFruitClaim = $badFruitClaim; + } + + public function setBuyLimit($buyLimit) + { + $this->buyLimit = $buyLimit; + } + + public function setCarouselGallery($carouselGallery) + { + $this->carouselGallery = $carouselGallery; + } + + public function setCarouselVideo($carouselVideo) + { + $this->carouselVideo = $carouselVideo; + } + + public function setCarouselVideoUrl($carouselVideoUrl) + { + $this->carouselVideoUrl = $carouselVideoUrl; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setCostTemplateId($costTemplateId) + { + $this->costTemplateId = $costTemplateId; + } + + public function setCountryId($countryId) + { + $this->countryId = $countryId; + } + + public function setCustomerNum($customerNum) + { + $this->customerNum = $customerNum; + } + + public function setCustoms($customs) + { + $this->customs = $customs; + } + + public function setDeliveryOneDay($deliveryOneDay) + { + $this->deliveryOneDay = $deliveryOneDay; + } + + public function setDetailGallery($detailGallery) + { + $this->detailGallery = $detailGallery; + } + + public function setElecGoodsAttributes($elecGoodsAttributes) + { + $this->elecGoodsAttributes = $elecGoodsAttributes; + } + + public function setGoodsDesc($goodsDesc) + { + $this->goodsDesc = $goodsDesc; + } + + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + } + + public function setGoodsProperties($goodsProperties) + { + $this->goodsProperties = $goodsProperties; + } + + public function setGoodsTradeAttr($goodsTradeAttr) + { + $this->goodsTradeAttr = $goodsTradeAttr; + } + + public function setGoodsTravelAttr($goodsTravelAttr) + { + $this->goodsTravelAttr = $goodsTravelAttr; + } + + public function setGoodsType($goodsType) + { + $this->goodsType = $goodsType; + } + + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + + public function setInvoiceStatus($invoiceStatus) + { + $this->invoiceStatus = $invoiceStatus; + } + + public function setIsCustoms($isCustoms) + { + $this->isCustoms = $isCustoms; + } + + public function setIsFolt($isFolt) + { + $this->isFolt = $isFolt; + } + + public function setIsPreSale($isPreSale) + { + $this->isPreSale = $isPreSale; + } + + public function setIsRefundable($isRefundable) + { + $this->isRefundable = $isRefundable; + } + + public function setLackOfWeightClaim($lackOfWeightClaim) + { + $this->lackOfWeightClaim = $lackOfWeightClaim; + } + + public function setMaiJiaZiTi($maiJiaZiTi) + { + $this->maiJiaZiTi = $maiJiaZiTi; + } + + public function setMarketPrice($marketPrice) + { + $this->marketPrice = $marketPrice; + } + + public function setOrderLimit($orderLimit) + { + $this->orderLimit = $orderLimit; + } + + public function setOriginCountryId($originCountryId) + { + $this->originCountryId = $originCountryId; + } + + public function setOutGoodsId($outGoodsId) + { + $this->outGoodsId = $outGoodsId; + } + + public function setOutSourceGoodsId($outSourceGoodsId) + { + $this->outSourceGoodsId = $outSourceGoodsId; + } + + public function setOutSourceType($outSourceType) + { + $this->outSourceType = $outSourceType; + } + + public function setOverseaGoods($overseaGoods) + { + $this->overseaGoods = $overseaGoods; + } + + public function setOverseaType($overseaType) + { + $this->overseaType = $overseaType; + } + + public function setPreSaleTime($preSaleTime) + { + $this->preSaleTime = $preSaleTime; + } + + public function setQuanGuoLianBao($quanGuoLianBao) + { + $this->quanGuoLianBao = $quanGuoLianBao; + } + + public function setSecondHand($secondHand) + { + $this->secondHand = $secondHand; + } + + public function setShangMenAnZhuang($shangMenAnZhuang) + { + $this->shangMenAnZhuang = $shangMenAnZhuang; + } + + public function setShipmentLimitSecond($shipmentLimitSecond) + { + $this->shipmentLimitSecond = $shipmentLimitSecond; + } + + public function setSizeSpecId($sizeSpecId) + { + $this->sizeSpecId = $sizeSpecId; + } + + public function setSkuList($skuList) + { + $this->skuList = $skuList; + } + + public function setSkuType($skuType) + { + $this->skuType = $skuType; + } + + public function setSongHuoAnZhuang($songHuoAnZhuang) + { + $this->songHuoAnZhuang = $songHuoAnZhuang; + } + + public function setSongHuoRuHu($songHuoRuHu) + { + $this->songHuoRuHu = $songHuoRuHu; + } + + public function setTinyName($tinyName) + { + $this->tinyName = $tinyName; + } + + public function setWarehouse($warehouse) + { + $this->warehouse = $warehouse; + } + + public function setWarmTips($warmTips) + { + $this->warmTips = $warmTips; + } + + public function setZhiHuanBuXiu($zhiHuanBuXiu) + { + $this->zhiHuanBuXiu = $zhiHuanBuXiu; + } + +} + +class PddGoodsAddRequest_CarouselVideoItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "file_id") + */ + private $fileId; + + /** + * @JsonProperty(String, "video_url") + */ + private $videoUrl; + + public function setFileId($fileId) + { + $this->fileId = $fileId; + } + + public function setVideoUrl($videoUrl) + { + $this->videoUrl = $videoUrl; + } + +} + +class PddGoodsAddRequest_ElecGoodsAttributes extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "begin_time") + */ + private $beginTime; + + /** + * @JsonProperty(Integer, "days_time") + */ + private $daysTime; + + /** + * @JsonProperty(Long, "end_time") + */ + private $endTime; + + /** + * @JsonProperty(Integer, "time_type") + */ + private $timeType; + + public function setBeginTime($beginTime) + { + $this->beginTime = $beginTime; + } + + public function setDaysTime($daysTime) + { + $this->daysTime = $daysTime; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setTimeType($timeType) + { + $this->timeType = $timeType; + } + +} + +class PddGoodsAddRequest_GoodsPropertiesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "group_id") + */ + private $groupId; + + /** + * @JsonProperty(String, "img_url") + */ + private $imgUrl; + + /** + * @JsonProperty(String, "note") + */ + private $note; + + /** + * @JsonProperty(Long, "parent_spec_id") + */ + private $parentSpecId; + + /** + * @JsonProperty(Long, "ref_pid") + */ + private $refPid; + + /** + * @JsonProperty(Long, "spec_id") + */ + private $specId; + + /** + * @JsonProperty(Long, "template_pid") + */ + private $templatePid; + + /** + * @JsonProperty(String, "value") + */ + private $value; + + /** + * @JsonProperty(String, "value_unit") + */ + private $valueUnit; + + /** + * @JsonProperty(Long, "vid") + */ + private $vid; + + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + + public function setImgUrl($imgUrl) + { + $this->imgUrl = $imgUrl; + } + + public function setNote($note) + { + $this->note = $note; + } + + public function setParentSpecId($parentSpecId) + { + $this->parentSpecId = $parentSpecId; + } + + public function setRefPid($refPid) + { + $this->refPid = $refPid; + } + + public function setSpecId($specId) + { + $this->specId = $specId; + } + + public function setTemplatePid($templatePid) + { + $this->templatePid = $templatePid; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setValueUnit($valueUnit) + { + $this->valueUnit = $valueUnit; + } + + public function setVid($vid) + { + $this->vid = $vid; + } + +} + +class PddGoodsAddRequest_GoodsTradeAttr extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "advances_days") + */ + private $advancesDays; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_GoodsTradeAttrBookingNotes, "booking_notes") + */ + private $bookingNotes; + + /** + * @JsonProperty(Integer, "life_span") + */ + private $lifeSpan; + + public function setAdvancesDays($advancesDays) + { + $this->advancesDays = $advancesDays; + } + + public function setBookingNotes($bookingNotes) + { + $this->bookingNotes = $bookingNotes; + } + + public function setLifeSpan($lifeSpan) + { + $this->lifeSpan = $lifeSpan; + } + +} + +class PddGoodsAddRequest_GoodsTradeAttrBookingNotes extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "url") + */ + private $url; + + public function setUrl($url) + { + $this->url = $url; + } + +} + +class PddGoodsAddRequest_GoodsTravelAttr extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Boolean, "need_tourist") + */ + private $needTourist; + + /** + * @JsonProperty(Integer, "type") + */ + private $type; + + public function setNeedTourist($needTourist) + { + $this->needTourist = $needTourist; + } + + public function setType($type) + { + $this->type = $type; + } + +} + +class PddGoodsAddRequest_OverseaGoods extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "bonded_warehouse_key") + */ + private $bondedWarehouseKey; + + /** + * @JsonProperty(Integer, "consumption_tax_rate") + */ + private $consumptionTaxRate; + + /** + * @JsonProperty(String, "customs_broker") + */ + private $customsBroker; + + /** + * @JsonProperty(String, "hs_code") + */ + private $hsCode; + + /** + * @JsonProperty(Integer, "value_added_tax_rate") + */ + private $valueAddedTaxRate; + + public function setBondedWarehouseKey($bondedWarehouseKey) + { + $this->bondedWarehouseKey = $bondedWarehouseKey; + } + + public function setConsumptionTaxRate($consumptionTaxRate) + { + $this->consumptionTaxRate = $consumptionTaxRate; + } + + public function setCustomsBroker($customsBroker) + { + $this->customsBroker = $customsBroker; + } + + public function setHsCode($hsCode) + { + $this->hsCode = $hsCode; + } + + public function setValueAddedTaxRate($valueAddedTaxRate) + { + $this->valueAddedTaxRate = $valueAddedTaxRate; + } + +} + +class PddGoodsAddRequest_SkuListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "is_onsale") + */ + private $isOnsale; + + /** + * @JsonProperty(Long, "length") + */ + private $length; + + /** + * @JsonProperty(Long, "limit_quantity") + */ + private $limitQuantity; + + /** + * @JsonProperty(Long, "multi_price") + */ + private $multiPrice; + + /** + * @JsonProperty(String, "out_sku_sn") + */ + private $outSkuSn; + + /** + * @JsonProperty(String, "out_source_sku_id") + */ + private $outSourceSkuId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsAddRequest_SkuListItemOverseaSku, "oversea_sku") + */ + private $overseaSku; + + /** + * @JsonProperty(Long, "price") + */ + private $price; + + /** + * @JsonProperty(Long, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(String, "spec_id_list") + */ + private $specIdList; + + /** + * @JsonProperty(String, "thumb_url") + */ + private $thumbUrl; + + /** + * @JsonProperty(Long, "weight") + */ + private $weight; + + public function setIsOnsale($isOnsale) + { + $this->isOnsale = $isOnsale; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setLimitQuantity($limitQuantity) + { + $this->limitQuantity = $limitQuantity; + } + + public function setMultiPrice($multiPrice) + { + $this->multiPrice = $multiPrice; + } + + public function setOutSkuSn($outSkuSn) + { + $this->outSkuSn = $outSkuSn; + } + + public function setOutSourceSkuId($outSourceSkuId) + { + $this->outSourceSkuId = $outSourceSkuId; + } + + public function setOverseaSku($overseaSku) + { + $this->overseaSku = $overseaSku; + } + + public function setPrice($price) + { + $this->price = $price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setSpecIdList($specIdList) + { + $this->specIdList = $specIdList; + } + + public function setThumbUrl($thumbUrl) + { + $this->thumbUrl = $thumbUrl; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + +} + +class PddGoodsAddRequest_SkuListItemOverseaSku extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "measurement_code") + */ + private $measurementCode; + + /** + * @JsonProperty(String, "specifications") + */ + private $specifications; + + /** + * @JsonProperty(Integer, "taxation") + */ + private $taxation; + + public function setMeasurementCode($measurementCode) + { + $this->measurementCode = $measurementCode; + } + + public function setSpecifications($specifications) + { + $this->specifications = $specifications; + } + + public function setTaxation($taxation) + { + $this->taxation = $taxation; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsAuthorizationCatsRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsAuthorizationCatsRequest.php index d072bf0..08bbba3 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsAuthorizationCatsRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsAuthorizationCatsRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "parent_cat_id", $this->parentCatId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.authorization.cats"; - } - - public function setParentCatId($parentCatId) - { - $this->parentCatId = $parentCatId; - } - -} +setUserParam($params, "parent_cat_id", $this->parentCatId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.authorization.cats"; + } + + public function setParentCatId($parentCatId) + { + $this->parentCatId = $parentCatId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatRuleGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatRuleGetRequest.php index 611b9e7..36e201a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatRuleGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatRuleGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "cat_id", $this->catId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.cat.rule.get"; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - -} +setUserParam($params, "cat_id", $this->catId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.cat.rule.get"; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatTemplateGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatTemplateGetRequest.php index d3d0eab..3e02dea 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatTemplateGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatTemplateGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "cat_id", $this->catId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.cat.template.get"; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - -} +setUserParam($params, "cat_id", $this->catId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.cat.template.get"; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatsGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatsGetRequest.php index b790363..617d19c 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatsGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCatsGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "parent_cat_id", $this->parentCatId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.cats.get"; - } - - public function setParentCatId($parentCatId) - { - $this->parentCatId = $parentCatId; - } - -} +setUserParam($params, "parent_cat_id", $this->parentCatId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.cats.get"; + } + + public function setParentCatId($parentCatId) + { + $this->parentCatId = $parentCatId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsChildSkuEditRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsChildSkuEditRequest.php index 83b2afd..a055fa9 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsChildSkuEditRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsChildSkuEditRequest.php @@ -1,177 +1,177 @@ -, "skus") - */ - private $skus; - - /** - * @JsonProperty(Integer, "sync_goods_operate") - */ - private $syncGoodsOperate; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "goods_commit_id", $this->goodsCommitId); - $this->setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "skus", $this->skus); - $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.child.sku.edit"; - } - - public function setGoodsCommitId($goodsCommitId) - { - $this->goodsCommitId = $goodsCommitId; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setSkus($skus) - { - $this->skus = $skus; - } - - public function setSyncGoodsOperate($syncGoodsOperate) - { - $this->syncGoodsOperate = $syncGoodsOperate; - } - -} - -class PddGoodsChildSkuEditRequest_SkusItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsChildSkuEditRequest_SkusItemChildSkusItem>, "child_skus") - */ - private $childSkus; - - /** - * @JsonProperty(Integer, "is_onsale") - */ - private $isOnsale; - - /** - * @JsonProperty(String, "out_sku_sn") - */ - private $outSkuSn; - - /** - * @JsonProperty(Long, "sku_id") - */ - private $skuId; - - public function setChildSkus($childSkus) - { - $this->childSkus = $childSkus; - } - - public function setIsOnsale($isOnsale) - { - $this->isOnsale = $isOnsale; - } - - public function setOutSkuSn($outSkuSn) - { - $this->outSkuSn = $outSkuSn; - } - - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } - -} - -class PddGoodsChildSkuEditRequest_SkusItemChildSkusItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "date") - */ - private $date; - - /** - * @JsonProperty(Long, "group_price") - */ - private $groupPrice; - - /** - * @JsonProperty(Long, "quantity_delta") - */ - private $quantityDelta; - - /** - * @JsonProperty(Long, "single_price") - */ - private $singlePrice; - - public function setDate($date) - { - $this->date = $date; - } - - public function setGroupPrice($groupPrice) - { - $this->groupPrice = $groupPrice; - } - - public function setQuantityDelta($quantityDelta) - { - $this->quantityDelta = $quantityDelta; - } - - public function setSinglePrice($singlePrice) - { - $this->singlePrice = $singlePrice; - } - -} +, "skus") + */ + private $skus; + + /** + * @JsonProperty(Integer, "sync_goods_operate") + */ + private $syncGoodsOperate; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "goods_commit_id", $this->goodsCommitId); + $this->setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "skus", $this->skus); + $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.child.sku.edit"; + } + + public function setGoodsCommitId($goodsCommitId) + { + $this->goodsCommitId = $goodsCommitId; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setSkus($skus) + { + $this->skus = $skus; + } + + public function setSyncGoodsOperate($syncGoodsOperate) + { + $this->syncGoodsOperate = $syncGoodsOperate; + } + +} + +class PddGoodsChildSkuEditRequest_SkusItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsChildSkuEditRequest_SkusItemChildSkusItem>, "child_skus") + */ + private $childSkus; + + /** + * @JsonProperty(Integer, "is_onsale") + */ + private $isOnsale; + + /** + * @JsonProperty(String, "out_sku_sn") + */ + private $outSkuSn; + + /** + * @JsonProperty(Long, "sku_id") + */ + private $skuId; + + public function setChildSkus($childSkus) + { + $this->childSkus = $childSkus; + } + + public function setIsOnsale($isOnsale) + { + $this->isOnsale = $isOnsale; + } + + public function setOutSkuSn($outSkuSn) + { + $this->outSkuSn = $outSkuSn; + } + + public function setSkuId($skuId) + { + $this->skuId = $skuId; + } + +} + +class PddGoodsChildSkuEditRequest_SkusItemChildSkusItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "date") + */ + private $date; + + /** + * @JsonProperty(Long, "group_price") + */ + private $groupPrice; + + /** + * @JsonProperty(Long, "quantity_delta") + */ + private $quantityDelta; + + /** + * @JsonProperty(Long, "single_price") + */ + private $singlePrice; + + public function setDate($date) + { + $this->date = $date; + } + + public function setGroupPrice($groupPrice) + { + $this->groupPrice = $groupPrice; + } + + public function setQuantityDelta($quantityDelta) + { + $this->quantityDelta = $quantityDelta; + } + + public function setSinglePrice($singlePrice) + { + $this->singlePrice = $singlePrice; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitDetailGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitDetailGetRequest.php index 2d90f94..1e25609 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitDetailGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitDetailGetRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "goods_commit_id", $this->goodsCommitId); - $this->setUserParam($params, "goods_id", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.commit.detail.get"; - } - - public function setGoodsCommitId($goodsCommitId) - { - $this->goodsCommitId = $goodsCommitId; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goods_commit_id", $this->goodsCommitId); + $this->setUserParam($params, "goods_id", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.commit.detail.get"; + } + + public function setGoodsCommitId($goodsCommitId) + { + $this->goodsCommitId = $goodsCommitId; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitListGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitListGetRequest.php index 39feed6..eb9dff7 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitListGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitListGetRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "check_status", $this->checkStatus); - $this->setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.commit.list.get"; - } - - public function setCheckStatus($checkStatus) - { - $this->checkStatus = $checkStatus; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - -} +setUserParam($params, "check_status", $this->checkStatus); + $this->setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.commit.list.get"; + } + + public function setCheckStatus($checkStatus) + { + $this->checkStatus = $checkStatus; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitStatusGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitStatusGetRequest.php index f7a4c8f..f3a13d1 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitStatusGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCommitStatusGetRequest.php @@ -1,44 +1,44 @@ -, "goods_commit_id_list") - */ - private $goodsCommitIdList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "goods_commit_id_list", $this->goodsCommitIdList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.commit.status.get"; - } - - public function setGoodsCommitIdList($goodsCommitIdList) - { - $this->goodsCommitIdList = $goodsCommitIdList; - } - -} +, "goods_commit_id_list") + */ + private $goodsCommitIdList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "goods_commit_id_list", $this->goodsCommitIdList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.commit.status.get"; + } + + public function setGoodsCommitIdList($goodsCommitIdList) + { + $this->goodsCommitIdList = $goodsCommitIdList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCountryGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCountryGetRequest.php index 8da178f..813d8f4 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCountryGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCountryGetRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "rate", $this->rate); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.cps.mall.unit.change"; - } - - public function setRate($rate) - { - $this->rate = $rate; - } - -} +setUserParam($params, "rate", $this->rate); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.cps.mall.unit.change"; + } + + public function setRate($rate) + { + $this->rate = $rate; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsMallUnitCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsMallUnitCreateRequest.php index 20f455c..c56f911 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsMallUnitCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsMallUnitCreateRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "rate", $this->rate); - $this->setUserParam($params, "erp_code", $this->erpCode); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.cps.mall.unit.create"; - } - - public function setRate($rate) - { - $this->rate = $rate; - } - - public function setErpCode($erpCode) - { - $this->erpCode = $erpCode; - } - -} +setUserParam($params, "rate", $this->rate); + $this->setUserParam($params, "erp_code", $this->erpCode); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.cps.mall.unit.create"; + } + + public function setRate($rate) + { + $this->rate = $rate; + } + + public function setErpCode($erpCode) + { + $this->erpCode = $erpCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsMallUnitPauseRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsMallUnitPauseRequest.php index f0c7ca3..b208333 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsMallUnitPauseRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsMallUnitPauseRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "rate", $this->rate); - $this->setUserParam($params, "coupon_id", $this->couponId); - $this->setUserParam($params, "coupon_start_time", $this->couponStartTime); - $this->setUserParam($params, "coupon_end_time", $this->couponEndTime); - $this->setUserParam($params, "discount", $this->discount); - $this->setUserParam($params, "init_quantity", $this->initQuantity); - $this->setUserParam($params, "remain_quantity", $this->remainQuantity); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.cps.unit.change"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setRate($rate) - { - $this->rate = $rate; - } - - public function setCouponId($couponId) - { - $this->couponId = $couponId; - } - - public function setCouponStartTime($couponStartTime) - { - $this->couponStartTime = $couponStartTime; - } - - public function setCouponEndTime($couponEndTime) - { - $this->couponEndTime = $couponEndTime; - } - - public function setDiscount($discount) - { - $this->discount = $discount; - } - - public function setInitQuantity($initQuantity) - { - $this->initQuantity = $initQuantity; - } - - public function setRemainQuantity($remainQuantity) - { - $this->remainQuantity = $remainQuantity; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "rate", $this->rate); + $this->setUserParam($params, "coupon_id", $this->couponId); + $this->setUserParam($params, "coupon_start_time", $this->couponStartTime); + $this->setUserParam($params, "coupon_end_time", $this->couponEndTime); + $this->setUserParam($params, "discount", $this->discount); + $this->setUserParam($params, "init_quantity", $this->initQuantity); + $this->setUserParam($params, "remain_quantity", $this->remainQuantity); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.cps.unit.change"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setRate($rate) + { + $this->rate = $rate; + } + + public function setCouponId($couponId) + { + $this->couponId = $couponId; + } + + public function setCouponStartTime($couponStartTime) + { + $this->couponStartTime = $couponStartTime; + } + + public function setCouponEndTime($couponEndTime) + { + $this->couponEndTime = $couponEndTime; + } + + public function setDiscount($discount) + { + $this->discount = $discount; + } + + public function setInitQuantity($initQuantity) + { + $this->initQuantity = $initQuantity; + } + + public function setRemainQuantity($remainQuantity) + { + $this->remainQuantity = $remainQuantity; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitCreateRequest.php index bcdbb26..d6f4db3 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitCreateRequest.php @@ -1,134 +1,134 @@ -, "units") - */ - private $units; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "units", $this->units); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.cps.unit.create"; - } - - public function setUnits($units) - { - $this->units = $units; - } - -} - -class PddGoodsCpsUnitCreateRequest_UnitsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "goods_id") - */ - private $goodsId; - - /** - * @JsonProperty(Long, "rate") - */ - private $rate; - - /** - * @JsonProperty(Long, "coupon_id") - */ - private $couponId; - - /** - * @JsonProperty(String, "coupon_start_time") - */ - private $couponStartTime; - - /** - * @JsonProperty(String, "coupon_end_time") - */ - private $couponEndTime; - - /** - * @JsonProperty(Long, "discount") - */ - private $discount; - - /** - * @JsonProperty(Long, "init_quantity") - */ - private $initQuantity; - - /** - * @JsonProperty(Long, "remain_quantity") - */ - private $remainQuantity; - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setRate($rate) - { - $this->rate = $rate; - } - - public function setCouponId($couponId) - { - $this->couponId = $couponId; - } - - public function setCouponStartTime($couponStartTime) - { - $this->couponStartTime = $couponStartTime; - } - - public function setCouponEndTime($couponEndTime) - { - $this->couponEndTime = $couponEndTime; - } - - public function setDiscount($discount) - { - $this->discount = $discount; - } - - public function setInitQuantity($initQuantity) - { - $this->initQuantity = $initQuantity; - } - - public function setRemainQuantity($remainQuantity) - { - $this->remainQuantity = $remainQuantity; - } - -} +, "units") + */ + private $units; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "units", $this->units); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.cps.unit.create"; + } + + public function setUnits($units) + { + $this->units = $units; + } + +} + +class PddGoodsCpsUnitCreateRequest_UnitsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "goods_id") + */ + private $goodsId; + + /** + * @JsonProperty(Long, "rate") + */ + private $rate; + + /** + * @JsonProperty(Long, "coupon_id") + */ + private $couponId; + + /** + * @JsonProperty(String, "coupon_start_time") + */ + private $couponStartTime; + + /** + * @JsonProperty(String, "coupon_end_time") + */ + private $couponEndTime; + + /** + * @JsonProperty(Long, "discount") + */ + private $discount; + + /** + * @JsonProperty(Long, "init_quantity") + */ + private $initQuantity; + + /** + * @JsonProperty(Long, "remain_quantity") + */ + private $remainQuantity; + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setRate($rate) + { + $this->rate = $rate; + } + + public function setCouponId($couponId) + { + $this->couponId = $couponId; + } + + public function setCouponStartTime($couponStartTime) + { + $this->couponStartTime = $couponStartTime; + } + + public function setCouponEndTime($couponEndTime) + { + $this->couponEndTime = $couponEndTime; + } + + public function setDiscount($discount) + { + $this->discount = $discount; + } + + public function setInitQuantity($initQuantity) + { + $this->initQuantity = $initQuantity; + } + + public function setRemainQuantity($remainQuantity) + { + $this->remainQuantity = $remainQuantity; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitDeleteRequest.php index c83fa9f..624d9ee 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitDeleteRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goods_id", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.cps.unit.delete"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.cps.unit.delete"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitQueryRequest.php index b087a4b..d1d4033 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsCpsUnitQueryRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goods_id", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.cps.unit.query"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.cps.unit.query"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsDetailGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsDetailGetRequest.php index 8a67bf2..1b4bec9 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsDetailGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsDetailGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goods_id", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.detail.get"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.detail.get"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsEditGoodsCommitRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsEditGoodsCommitRequest.php index ff67829..5155f65 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsEditGoodsCommitRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsEditGoodsCommitRequest.php @@ -1,1082 +1,1082 @@ -, "carousel_gallery") - */ - private $carouselGallery; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_CarouselVideoItem>, "carousel_video") - */ - private $carouselVideo; - - /** - * @JsonProperty(String, "carousel_video_url") - */ - private $carouselVideoUrl; - - /** - * @JsonProperty(Long, "cat_id") - */ - private $catId; - - /** - * @JsonProperty(Long, "cost_template_id") - */ - private $costTemplateId; - - /** - * @JsonProperty(Integer, "country_id") - */ - private $countryId; - - /** - * @JsonProperty(Long, "customer_num") - */ - private $customerNum; - - /** - * @JsonProperty(String, "customs") - */ - private $customs; - - /** - * @JsonProperty(Integer, "delivery_one_day") - */ - private $deliveryOneDay; - - /** - * @JsonProperty(List, "detail_gallery") - */ - private $detailGallery; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_ElecGoodsAttributes, "elec_goods_attributes") - */ - private $elecGoodsAttributes; - - /** - * @JsonProperty(String, "goods_desc") - */ - private $goodsDesc; - - /** - * @JsonProperty(String, "goods_name") - */ - private $goodsName; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_GoodsPropertiesItem>, "goods_properties") - */ - private $goodsProperties; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_GoodsTradeAttr, "goods_trade_attr") - */ - private $goodsTradeAttr; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_GoodsTravelAttr, "goods_travel_attr") - */ - private $goodsTravelAttr; - - /** - * @JsonProperty(Integer, "goods_type") - */ - private $goodsType; - - /** - * @JsonProperty(String, "image_url") - */ - private $imageUrl; - - /** - * @JsonProperty(Integer, "invoice_status") - */ - private $invoiceStatus; - - /** - * @JsonProperty(Boolean, "is_customs") - */ - private $isCustoms; - - /** - * @JsonProperty(Boolean, "is_folt") - */ - private $isFolt; - - /** - * @JsonProperty(Boolean, "is_pre_sale") - */ - private $isPreSale; - - /** - * @JsonProperty(Boolean, "is_refundable") - */ - private $isRefundable; - - /** - * @JsonProperty(Integer, "lack_of_weight_claim") - */ - private $lackOfWeightClaim; - - /** - * @JsonProperty(String, "mai_jia_zi_ti") - */ - private $maiJiaZiTi; - - /** - * @JsonProperty(Long, "market_price") - */ - private $marketPrice; - - /** - * @JsonProperty(Long, "order_limit") - */ - private $orderLimit; - - /** - * @JsonProperty(Integer, "origin_country_id") - */ - private $originCountryId; - - /** - * @JsonProperty(String, "out_goods_id") - */ - private $outGoodsId; - - /** - * @JsonProperty(String, "out_source_goods_id") - */ - private $outSourceGoodsId; - - /** - * @JsonProperty(Integer, "out_source_type") - */ - private $outSourceType; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_OverseaGoods, "oversea_goods") - */ - private $overseaGoods; - - /** - * @JsonProperty(Integer, "oversea_type") - */ - private $overseaType; - - /** - * @JsonProperty(Long, "pre_sale_time") - */ - private $preSaleTime; - - /** - * @JsonProperty(Integer, "quan_guo_lian_bao") - */ - private $quanGuoLianBao; - - /** - * @JsonProperty(Boolean, "second_hand") - */ - private $secondHand; - - /** - * @JsonProperty(String, "shang_men_an_zhuang") - */ - private $shangMenAnZhuang; - - /** - * @JsonProperty(Long, "shipment_limit_second") - */ - private $shipmentLimitSecond; - - /** - * @JsonProperty(Long, "size_spec_id") - */ - private $sizeSpecId; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_SkuListItem>, "sku_list") - */ - private $skuList; - - /** - * @JsonProperty(Integer, "sku_type") - */ - private $skuType; - - /** - * @JsonProperty(String, "song_huo_an_zhuang") - */ - private $songHuoAnZhuang; - - /** - * @JsonProperty(String, "song_huo_ru_hu") - */ - private $songHuoRuHu; - - /** - * @JsonProperty(String, "tiny_name") - */ - private $tinyName; - - /** - * @JsonProperty(String, "warehouse") - */ - private $warehouse; - - /** - * @JsonProperty(String, "warm_tips") - */ - private $warmTips; - - /** - * @JsonProperty(Integer, "zhi_huan_bu_xiu") - */ - private $zhiHuanBuXiu; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "bad_fruit_claim", $this->badFruitClaim); - $this->setUserParam($params, "buy_limit", $this->buyLimit); - $this->setUserParam($params, "carousel_gallery", $this->carouselGallery); - $this->setUserParam($params, "carousel_video", $this->carouselVideo); - $this->setUserParam($params, "carousel_video_url", $this->carouselVideoUrl); - $this->setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "cost_template_id", $this->costTemplateId); - $this->setUserParam($params, "country_id", $this->countryId); - $this->setUserParam($params, "customer_num", $this->customerNum); - $this->setUserParam($params, "customs", $this->customs); - $this->setUserParam($params, "delivery_one_day", $this->deliveryOneDay); - $this->setUserParam($params, "detail_gallery", $this->detailGallery); - $this->setUserParam($params, "elec_goods_attributes", $this->elecGoodsAttributes); - $this->setUserParam($params, "goods_desc", $this->goodsDesc); - $this->setUserParam($params, "goods_name", $this->goodsName); - $this->setUserParam($params, "goods_properties", $this->goodsProperties); - $this->setUserParam($params, "goods_trade_attr", $this->goodsTradeAttr); - $this->setUserParam($params, "goods_travel_attr", $this->goodsTravelAttr); - $this->setUserParam($params, "goods_type", $this->goodsType); - $this->setUserParam($params, "image_url", $this->imageUrl); - $this->setUserParam($params, "invoice_status", $this->invoiceStatus); - $this->setUserParam($params, "is_customs", $this->isCustoms); - $this->setUserParam($params, "is_folt", $this->isFolt); - $this->setUserParam($params, "is_pre_sale", $this->isPreSale); - $this->setUserParam($params, "is_refundable", $this->isRefundable); - $this->setUserParam($params, "lack_of_weight_claim", $this->lackOfWeightClaim); - $this->setUserParam($params, "mai_jia_zi_ti", $this->maiJiaZiTi); - $this->setUserParam($params, "market_price", $this->marketPrice); - $this->setUserParam($params, "order_limit", $this->orderLimit); - $this->setUserParam($params, "origin_country_id", $this->originCountryId); - $this->setUserParam($params, "out_goods_id", $this->outGoodsId); - $this->setUserParam($params, "out_source_goods_id", $this->outSourceGoodsId); - $this->setUserParam($params, "out_source_type", $this->outSourceType); - $this->setUserParam($params, "oversea_goods", $this->overseaGoods); - $this->setUserParam($params, "oversea_type", $this->overseaType); - $this->setUserParam($params, "pre_sale_time", $this->preSaleTime); - $this->setUserParam($params, "quan_guo_lian_bao", $this->quanGuoLianBao); - $this->setUserParam($params, "second_hand", $this->secondHand); - $this->setUserParam($params, "shang_men_an_zhuang", $this->shangMenAnZhuang); - $this->setUserParam($params, "shipment_limit_second", $this->shipmentLimitSecond); - $this->setUserParam($params, "size_spec_id", $this->sizeSpecId); - $this->setUserParam($params, "sku_list", $this->skuList); - $this->setUserParam($params, "sku_type", $this->skuType); - $this->setUserParam($params, "song_huo_an_zhuang", $this->songHuoAnZhuang); - $this->setUserParam($params, "song_huo_ru_hu", $this->songHuoRuHu); - $this->setUserParam($params, "tiny_name", $this->tinyName); - $this->setUserParam($params, "warehouse", $this->warehouse); - $this->setUserParam($params, "warm_tips", $this->warmTips); - $this->setUserParam($params, "zhi_huan_bu_xiu", $this->zhiHuanBuXiu); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.edit.goods.commit"; - } - - public function setBadFruitClaim($badFruitClaim) - { - $this->badFruitClaim = $badFruitClaim; - } - - public function setBuyLimit($buyLimit) - { - $this->buyLimit = $buyLimit; - } - - public function setCarouselGallery($carouselGallery) - { - $this->carouselGallery = $carouselGallery; - } - - public function setCarouselVideo($carouselVideo) - { - $this->carouselVideo = $carouselVideo; - } - - public function setCarouselVideoUrl($carouselVideoUrl) - { - $this->carouselVideoUrl = $carouselVideoUrl; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setCostTemplateId($costTemplateId) - { - $this->costTemplateId = $costTemplateId; - } - - public function setCountryId($countryId) - { - $this->countryId = $countryId; - } - - public function setCustomerNum($customerNum) - { - $this->customerNum = $customerNum; - } - - public function setCustoms($customs) - { - $this->customs = $customs; - } - - public function setDeliveryOneDay($deliveryOneDay) - { - $this->deliveryOneDay = $deliveryOneDay; - } - - public function setDetailGallery($detailGallery) - { - $this->detailGallery = $detailGallery; - } - - public function setElecGoodsAttributes($elecGoodsAttributes) - { - $this->elecGoodsAttributes = $elecGoodsAttributes; - } - - public function setGoodsDesc($goodsDesc) - { - $this->goodsDesc = $goodsDesc; - } - - public function setGoodsName($goodsName) - { - $this->goodsName = $goodsName; - } - - public function setGoodsProperties($goodsProperties) - { - $this->goodsProperties = $goodsProperties; - } - - public function setGoodsTradeAttr($goodsTradeAttr) - { - $this->goodsTradeAttr = $goodsTradeAttr; - } - - public function setGoodsTravelAttr($goodsTravelAttr) - { - $this->goodsTravelAttr = $goodsTravelAttr; - } - - public function setGoodsType($goodsType) - { - $this->goodsType = $goodsType; - } - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - - public function setInvoiceStatus($invoiceStatus) - { - $this->invoiceStatus = $invoiceStatus; - } - - public function setIsCustoms($isCustoms) - { - $this->isCustoms = $isCustoms; - } - - public function setIsFolt($isFolt) - { - $this->isFolt = $isFolt; - } - - public function setIsPreSale($isPreSale) - { - $this->isPreSale = $isPreSale; - } - - public function setIsRefundable($isRefundable) - { - $this->isRefundable = $isRefundable; - } - - public function setLackOfWeightClaim($lackOfWeightClaim) - { - $this->lackOfWeightClaim = $lackOfWeightClaim; - } - - public function setMaiJiaZiTi($maiJiaZiTi) - { - $this->maiJiaZiTi = $maiJiaZiTi; - } - - public function setMarketPrice($marketPrice) - { - $this->marketPrice = $marketPrice; - } - - public function setOrderLimit($orderLimit) - { - $this->orderLimit = $orderLimit; - } - - public function setOriginCountryId($originCountryId) - { - $this->originCountryId = $originCountryId; - } - - public function setOutGoodsId($outGoodsId) - { - $this->outGoodsId = $outGoodsId; - } - - public function setOutSourceGoodsId($outSourceGoodsId) - { - $this->outSourceGoodsId = $outSourceGoodsId; - } - - public function setOutSourceType($outSourceType) - { - $this->outSourceType = $outSourceType; - } - - public function setOverseaGoods($overseaGoods) - { - $this->overseaGoods = $overseaGoods; - } - - public function setOverseaType($overseaType) - { - $this->overseaType = $overseaType; - } - - public function setPreSaleTime($preSaleTime) - { - $this->preSaleTime = $preSaleTime; - } - - public function setQuanGuoLianBao($quanGuoLianBao) - { - $this->quanGuoLianBao = $quanGuoLianBao; - } - - public function setSecondHand($secondHand) - { - $this->secondHand = $secondHand; - } - - public function setShangMenAnZhuang($shangMenAnZhuang) - { - $this->shangMenAnZhuang = $shangMenAnZhuang; - } - - public function setShipmentLimitSecond($shipmentLimitSecond) - { - $this->shipmentLimitSecond = $shipmentLimitSecond; - } - - public function setSizeSpecId($sizeSpecId) - { - $this->sizeSpecId = $sizeSpecId; - } - - public function setSkuList($skuList) - { - $this->skuList = $skuList; - } - - public function setSkuType($skuType) - { - $this->skuType = $skuType; - } - - public function setSongHuoAnZhuang($songHuoAnZhuang) - { - $this->songHuoAnZhuang = $songHuoAnZhuang; - } - - public function setSongHuoRuHu($songHuoRuHu) - { - $this->songHuoRuHu = $songHuoRuHu; - } - - public function setTinyName($tinyName) - { - $this->tinyName = $tinyName; - } - - public function setWarehouse($warehouse) - { - $this->warehouse = $warehouse; - } - - public function setWarmTips($warmTips) - { - $this->warmTips = $warmTips; - } - - public function setZhiHuanBuXiu($zhiHuanBuXiu) - { - $this->zhiHuanBuXiu = $zhiHuanBuXiu; - } - -} - -class PddGoodsEditGoodsCommitRequest_CarouselVideoItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "file_id") - */ - private $fileId; - - /** - * @JsonProperty(String, "video_url") - */ - private $videoUrl; - - public function setFileId($fileId) - { - $this->fileId = $fileId; - } - - public function setVideoUrl($videoUrl) - { - $this->videoUrl = $videoUrl; - } - -} - -class PddGoodsEditGoodsCommitRequest_ElecGoodsAttributes extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "begin_time") - */ - private $beginTime; - - /** - * @JsonProperty(Integer, "days_time") - */ - private $daysTime; - - /** - * @JsonProperty(Long, "end_time") - */ - private $endTime; - - /** - * @JsonProperty(Integer, "time_type") - */ - private $timeType; - - public function setBeginTime($beginTime) - { - $this->beginTime = $beginTime; - } - - public function setDaysTime($daysTime) - { - $this->daysTime = $daysTime; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setTimeType($timeType) - { - $this->timeType = $timeType; - } - -} - -class PddGoodsEditGoodsCommitRequest_GoodsPropertiesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "group_id") - */ - private $groupId; - - /** - * @JsonProperty(String, "img_url") - */ - private $imgUrl; - - /** - * @JsonProperty(String, "note") - */ - private $note; - - /** - * @JsonProperty(Long, "parent_spec_id") - */ - private $parentSpecId; - - /** - * @JsonProperty(Long, "ref_pid") - */ - private $refPid; - - /** - * @JsonProperty(Long, "spec_id") - */ - private $specId; - - /** - * @JsonProperty(Long, "template_pid") - */ - private $templatePid; - - /** - * @JsonProperty(String, "value") - */ - private $value; - - /** - * @JsonProperty(String, "value_unit") - */ - private $valueUnit; - - /** - * @JsonProperty(Long, "vid") - */ - private $vid; - - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - - public function setImgUrl($imgUrl) - { - $this->imgUrl = $imgUrl; - } - - public function setNote($note) - { - $this->note = $note; - } - - public function setParentSpecId($parentSpecId) - { - $this->parentSpecId = $parentSpecId; - } - - public function setRefPid($refPid) - { - $this->refPid = $refPid; - } - - public function setSpecId($specId) - { - $this->specId = $specId; - } - - public function setTemplatePid($templatePid) - { - $this->templatePid = $templatePid; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setValueUnit($valueUnit) - { - $this->valueUnit = $valueUnit; - } - - public function setVid($vid) - { - $this->vid = $vid; - } - -} - -class PddGoodsEditGoodsCommitRequest_GoodsTradeAttr extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "advances_days") - */ - private $advancesDays; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_GoodsTradeAttrBookingNotes, "booking_notes") - */ - private $bookingNotes; - - /** - * @JsonProperty(Integer, "life_span") - */ - private $lifeSpan; - - public function setAdvancesDays($advancesDays) - { - $this->advancesDays = $advancesDays; - } - - public function setBookingNotes($bookingNotes) - { - $this->bookingNotes = $bookingNotes; - } - - public function setLifeSpan($lifeSpan) - { - $this->lifeSpan = $lifeSpan; - } - -} - -class PddGoodsEditGoodsCommitRequest_GoodsTradeAttrBookingNotes extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "url") - */ - private $url; - - public function setUrl($url) - { - $this->url = $url; - } - -} - -class PddGoodsEditGoodsCommitRequest_GoodsTravelAttr extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Boolean, "need_tourist") - */ - private $needTourist; - - /** - * @JsonProperty(Integer, "type") - */ - private $type; - - public function setNeedTourist($needTourist) - { - $this->needTourist = $needTourist; - } - - public function setType($type) - { - $this->type = $type; - } - -} - -class PddGoodsEditGoodsCommitRequest_OverseaGoods extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "bonded_warehouse_key") - */ - private $bondedWarehouseKey; - - /** - * @JsonProperty(Integer, "consumption_tax_rate") - */ - private $consumptionTaxRate; - - /** - * @JsonProperty(String, "customs_broker") - */ - private $customsBroker; - - /** - * @JsonProperty(String, "hs_code") - */ - private $hsCode; - - /** - * @JsonProperty(Integer, "value_added_tax_rate") - */ - private $valueAddedTaxRate; - - public function setBondedWarehouseKey($bondedWarehouseKey) - { - $this->bondedWarehouseKey = $bondedWarehouseKey; - } - - public function setConsumptionTaxRate($consumptionTaxRate) - { - $this->consumptionTaxRate = $consumptionTaxRate; - } - - public function setCustomsBroker($customsBroker) - { - $this->customsBroker = $customsBroker; - } - - public function setHsCode($hsCode) - { - $this->hsCode = $hsCode; - } - - public function setValueAddedTaxRate($valueAddedTaxRate) - { - $this->valueAddedTaxRate = $valueAddedTaxRate; - } - -} - -class PddGoodsEditGoodsCommitRequest_SkuListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "is_onsale") - */ - private $isOnsale; - - /** - * @JsonProperty(Long, "length") - */ - private $length; - - /** - * @JsonProperty(Long, "limit_quantity") - */ - private $limitQuantity; - - /** - * @JsonProperty(Long, "multi_price") - */ - private $multiPrice; - - /** - * @JsonProperty(String, "out_sku_sn") - */ - private $outSkuSn; - - /** - * @JsonProperty(String, "out_source_sku_id") - */ - private $outSourceSkuId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_SkuListItemOverseaSku, "oversea_sku") - */ - private $overseaSku; - - /** - * @JsonProperty(Long, "price") - */ - private $price; - - /** - * @JsonProperty(Long, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(String, "spec_id_list") - */ - private $specIdList; - - /** - * @JsonProperty(String, "thumb_url") - */ - private $thumbUrl; - - /** - * @JsonProperty(Long, "weight") - */ - private $weight; - - public function setIsOnsale($isOnsale) - { - $this->isOnsale = $isOnsale; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setLimitQuantity($limitQuantity) - { - $this->limitQuantity = $limitQuantity; - } - - public function setMultiPrice($multiPrice) - { - $this->multiPrice = $multiPrice; - } - - public function setOutSkuSn($outSkuSn) - { - $this->outSkuSn = $outSkuSn; - } - - public function setOutSourceSkuId($outSourceSkuId) - { - $this->outSourceSkuId = $outSourceSkuId; - } - - public function setOverseaSku($overseaSku) - { - $this->overseaSku = $overseaSku; - } - - public function setPrice($price) - { - $this->price = $price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setSpecIdList($specIdList) - { - $this->specIdList = $specIdList; - } - - public function setThumbUrl($thumbUrl) - { - $this->thumbUrl = $thumbUrl; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - -} - -class PddGoodsEditGoodsCommitRequest_SkuListItemOverseaSku extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "measurement_code") - */ - private $measurementCode; - - /** - * @JsonProperty(String, "specifications") - */ - private $specifications; - - /** - * @JsonProperty(Integer, "taxation") - */ - private $taxation; - - public function setMeasurementCode($measurementCode) - { - $this->measurementCode = $measurementCode; - } - - public function setSpecifications($specifications) - { - $this->specifications = $specifications; - } - - public function setTaxation($taxation) - { - $this->taxation = $taxation; - } - -} +, "carousel_gallery") + */ + private $carouselGallery; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_CarouselVideoItem>, "carousel_video") + */ + private $carouselVideo; + + /** + * @JsonProperty(String, "carousel_video_url") + */ + private $carouselVideoUrl; + + /** + * @JsonProperty(Long, "cat_id") + */ + private $catId; + + /** + * @JsonProperty(Long, "cost_template_id") + */ + private $costTemplateId; + + /** + * @JsonProperty(Integer, "country_id") + */ + private $countryId; + + /** + * @JsonProperty(Long, "customer_num") + */ + private $customerNum; + + /** + * @JsonProperty(String, "customs") + */ + private $customs; + + /** + * @JsonProperty(Integer, "delivery_one_day") + */ + private $deliveryOneDay; + + /** + * @JsonProperty(List, "detail_gallery") + */ + private $detailGallery; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_ElecGoodsAttributes, "elec_goods_attributes") + */ + private $elecGoodsAttributes; + + /** + * @JsonProperty(String, "goods_desc") + */ + private $goodsDesc; + + /** + * @JsonProperty(String, "goods_name") + */ + private $goodsName; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_GoodsPropertiesItem>, "goods_properties") + */ + private $goodsProperties; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_GoodsTradeAttr, "goods_trade_attr") + */ + private $goodsTradeAttr; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_GoodsTravelAttr, "goods_travel_attr") + */ + private $goodsTravelAttr; + + /** + * @JsonProperty(Integer, "goods_type") + */ + private $goodsType; + + /** + * @JsonProperty(String, "image_url") + */ + private $imageUrl; + + /** + * @JsonProperty(Integer, "invoice_status") + */ + private $invoiceStatus; + + /** + * @JsonProperty(Boolean, "is_customs") + */ + private $isCustoms; + + /** + * @JsonProperty(Boolean, "is_folt") + */ + private $isFolt; + + /** + * @JsonProperty(Boolean, "is_pre_sale") + */ + private $isPreSale; + + /** + * @JsonProperty(Boolean, "is_refundable") + */ + private $isRefundable; + + /** + * @JsonProperty(Integer, "lack_of_weight_claim") + */ + private $lackOfWeightClaim; + + /** + * @JsonProperty(String, "mai_jia_zi_ti") + */ + private $maiJiaZiTi; + + /** + * @JsonProperty(Long, "market_price") + */ + private $marketPrice; + + /** + * @JsonProperty(Long, "order_limit") + */ + private $orderLimit; + + /** + * @JsonProperty(Integer, "origin_country_id") + */ + private $originCountryId; + + /** + * @JsonProperty(String, "out_goods_id") + */ + private $outGoodsId; + + /** + * @JsonProperty(String, "out_source_goods_id") + */ + private $outSourceGoodsId; + + /** + * @JsonProperty(Integer, "out_source_type") + */ + private $outSourceType; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_OverseaGoods, "oversea_goods") + */ + private $overseaGoods; + + /** + * @JsonProperty(Integer, "oversea_type") + */ + private $overseaType; + + /** + * @JsonProperty(Long, "pre_sale_time") + */ + private $preSaleTime; + + /** + * @JsonProperty(Integer, "quan_guo_lian_bao") + */ + private $quanGuoLianBao; + + /** + * @JsonProperty(Boolean, "second_hand") + */ + private $secondHand; + + /** + * @JsonProperty(String, "shang_men_an_zhuang") + */ + private $shangMenAnZhuang; + + /** + * @JsonProperty(Long, "shipment_limit_second") + */ + private $shipmentLimitSecond; + + /** + * @JsonProperty(Long, "size_spec_id") + */ + private $sizeSpecId; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_SkuListItem>, "sku_list") + */ + private $skuList; + + /** + * @JsonProperty(Integer, "sku_type") + */ + private $skuType; + + /** + * @JsonProperty(String, "song_huo_an_zhuang") + */ + private $songHuoAnZhuang; + + /** + * @JsonProperty(String, "song_huo_ru_hu") + */ + private $songHuoRuHu; + + /** + * @JsonProperty(String, "tiny_name") + */ + private $tinyName; + + /** + * @JsonProperty(String, "warehouse") + */ + private $warehouse; + + /** + * @JsonProperty(String, "warm_tips") + */ + private $warmTips; + + /** + * @JsonProperty(Integer, "zhi_huan_bu_xiu") + */ + private $zhiHuanBuXiu; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "bad_fruit_claim", $this->badFruitClaim); + $this->setUserParam($params, "buy_limit", $this->buyLimit); + $this->setUserParam($params, "carousel_gallery", $this->carouselGallery); + $this->setUserParam($params, "carousel_video", $this->carouselVideo); + $this->setUserParam($params, "carousel_video_url", $this->carouselVideoUrl); + $this->setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "cost_template_id", $this->costTemplateId); + $this->setUserParam($params, "country_id", $this->countryId); + $this->setUserParam($params, "customer_num", $this->customerNum); + $this->setUserParam($params, "customs", $this->customs); + $this->setUserParam($params, "delivery_one_day", $this->deliveryOneDay); + $this->setUserParam($params, "detail_gallery", $this->detailGallery); + $this->setUserParam($params, "elec_goods_attributes", $this->elecGoodsAttributes); + $this->setUserParam($params, "goods_desc", $this->goodsDesc); + $this->setUserParam($params, "goods_name", $this->goodsName); + $this->setUserParam($params, "goods_properties", $this->goodsProperties); + $this->setUserParam($params, "goods_trade_attr", $this->goodsTradeAttr); + $this->setUserParam($params, "goods_travel_attr", $this->goodsTravelAttr); + $this->setUserParam($params, "goods_type", $this->goodsType); + $this->setUserParam($params, "image_url", $this->imageUrl); + $this->setUserParam($params, "invoice_status", $this->invoiceStatus); + $this->setUserParam($params, "is_customs", $this->isCustoms); + $this->setUserParam($params, "is_folt", $this->isFolt); + $this->setUserParam($params, "is_pre_sale", $this->isPreSale); + $this->setUserParam($params, "is_refundable", $this->isRefundable); + $this->setUserParam($params, "lack_of_weight_claim", $this->lackOfWeightClaim); + $this->setUserParam($params, "mai_jia_zi_ti", $this->maiJiaZiTi); + $this->setUserParam($params, "market_price", $this->marketPrice); + $this->setUserParam($params, "order_limit", $this->orderLimit); + $this->setUserParam($params, "origin_country_id", $this->originCountryId); + $this->setUserParam($params, "out_goods_id", $this->outGoodsId); + $this->setUserParam($params, "out_source_goods_id", $this->outSourceGoodsId); + $this->setUserParam($params, "out_source_type", $this->outSourceType); + $this->setUserParam($params, "oversea_goods", $this->overseaGoods); + $this->setUserParam($params, "oversea_type", $this->overseaType); + $this->setUserParam($params, "pre_sale_time", $this->preSaleTime); + $this->setUserParam($params, "quan_guo_lian_bao", $this->quanGuoLianBao); + $this->setUserParam($params, "second_hand", $this->secondHand); + $this->setUserParam($params, "shang_men_an_zhuang", $this->shangMenAnZhuang); + $this->setUserParam($params, "shipment_limit_second", $this->shipmentLimitSecond); + $this->setUserParam($params, "size_spec_id", $this->sizeSpecId); + $this->setUserParam($params, "sku_list", $this->skuList); + $this->setUserParam($params, "sku_type", $this->skuType); + $this->setUserParam($params, "song_huo_an_zhuang", $this->songHuoAnZhuang); + $this->setUserParam($params, "song_huo_ru_hu", $this->songHuoRuHu); + $this->setUserParam($params, "tiny_name", $this->tinyName); + $this->setUserParam($params, "warehouse", $this->warehouse); + $this->setUserParam($params, "warm_tips", $this->warmTips); + $this->setUserParam($params, "zhi_huan_bu_xiu", $this->zhiHuanBuXiu); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.edit.goods.commit"; + } + + public function setBadFruitClaim($badFruitClaim) + { + $this->badFruitClaim = $badFruitClaim; + } + + public function setBuyLimit($buyLimit) + { + $this->buyLimit = $buyLimit; + } + + public function setCarouselGallery($carouselGallery) + { + $this->carouselGallery = $carouselGallery; + } + + public function setCarouselVideo($carouselVideo) + { + $this->carouselVideo = $carouselVideo; + } + + public function setCarouselVideoUrl($carouselVideoUrl) + { + $this->carouselVideoUrl = $carouselVideoUrl; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setCostTemplateId($costTemplateId) + { + $this->costTemplateId = $costTemplateId; + } + + public function setCountryId($countryId) + { + $this->countryId = $countryId; + } + + public function setCustomerNum($customerNum) + { + $this->customerNum = $customerNum; + } + + public function setCustoms($customs) + { + $this->customs = $customs; + } + + public function setDeliveryOneDay($deliveryOneDay) + { + $this->deliveryOneDay = $deliveryOneDay; + } + + public function setDetailGallery($detailGallery) + { + $this->detailGallery = $detailGallery; + } + + public function setElecGoodsAttributes($elecGoodsAttributes) + { + $this->elecGoodsAttributes = $elecGoodsAttributes; + } + + public function setGoodsDesc($goodsDesc) + { + $this->goodsDesc = $goodsDesc; + } + + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + } + + public function setGoodsProperties($goodsProperties) + { + $this->goodsProperties = $goodsProperties; + } + + public function setGoodsTradeAttr($goodsTradeAttr) + { + $this->goodsTradeAttr = $goodsTradeAttr; + } + + public function setGoodsTravelAttr($goodsTravelAttr) + { + $this->goodsTravelAttr = $goodsTravelAttr; + } + + public function setGoodsType($goodsType) + { + $this->goodsType = $goodsType; + } + + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + + public function setInvoiceStatus($invoiceStatus) + { + $this->invoiceStatus = $invoiceStatus; + } + + public function setIsCustoms($isCustoms) + { + $this->isCustoms = $isCustoms; + } + + public function setIsFolt($isFolt) + { + $this->isFolt = $isFolt; + } + + public function setIsPreSale($isPreSale) + { + $this->isPreSale = $isPreSale; + } + + public function setIsRefundable($isRefundable) + { + $this->isRefundable = $isRefundable; + } + + public function setLackOfWeightClaim($lackOfWeightClaim) + { + $this->lackOfWeightClaim = $lackOfWeightClaim; + } + + public function setMaiJiaZiTi($maiJiaZiTi) + { + $this->maiJiaZiTi = $maiJiaZiTi; + } + + public function setMarketPrice($marketPrice) + { + $this->marketPrice = $marketPrice; + } + + public function setOrderLimit($orderLimit) + { + $this->orderLimit = $orderLimit; + } + + public function setOriginCountryId($originCountryId) + { + $this->originCountryId = $originCountryId; + } + + public function setOutGoodsId($outGoodsId) + { + $this->outGoodsId = $outGoodsId; + } + + public function setOutSourceGoodsId($outSourceGoodsId) + { + $this->outSourceGoodsId = $outSourceGoodsId; + } + + public function setOutSourceType($outSourceType) + { + $this->outSourceType = $outSourceType; + } + + public function setOverseaGoods($overseaGoods) + { + $this->overseaGoods = $overseaGoods; + } + + public function setOverseaType($overseaType) + { + $this->overseaType = $overseaType; + } + + public function setPreSaleTime($preSaleTime) + { + $this->preSaleTime = $preSaleTime; + } + + public function setQuanGuoLianBao($quanGuoLianBao) + { + $this->quanGuoLianBao = $quanGuoLianBao; + } + + public function setSecondHand($secondHand) + { + $this->secondHand = $secondHand; + } + + public function setShangMenAnZhuang($shangMenAnZhuang) + { + $this->shangMenAnZhuang = $shangMenAnZhuang; + } + + public function setShipmentLimitSecond($shipmentLimitSecond) + { + $this->shipmentLimitSecond = $shipmentLimitSecond; + } + + public function setSizeSpecId($sizeSpecId) + { + $this->sizeSpecId = $sizeSpecId; + } + + public function setSkuList($skuList) + { + $this->skuList = $skuList; + } + + public function setSkuType($skuType) + { + $this->skuType = $skuType; + } + + public function setSongHuoAnZhuang($songHuoAnZhuang) + { + $this->songHuoAnZhuang = $songHuoAnZhuang; + } + + public function setSongHuoRuHu($songHuoRuHu) + { + $this->songHuoRuHu = $songHuoRuHu; + } + + public function setTinyName($tinyName) + { + $this->tinyName = $tinyName; + } + + public function setWarehouse($warehouse) + { + $this->warehouse = $warehouse; + } + + public function setWarmTips($warmTips) + { + $this->warmTips = $warmTips; + } + + public function setZhiHuanBuXiu($zhiHuanBuXiu) + { + $this->zhiHuanBuXiu = $zhiHuanBuXiu; + } + +} + +class PddGoodsEditGoodsCommitRequest_CarouselVideoItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "file_id") + */ + private $fileId; + + /** + * @JsonProperty(String, "video_url") + */ + private $videoUrl; + + public function setFileId($fileId) + { + $this->fileId = $fileId; + } + + public function setVideoUrl($videoUrl) + { + $this->videoUrl = $videoUrl; + } + +} + +class PddGoodsEditGoodsCommitRequest_ElecGoodsAttributes extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "begin_time") + */ + private $beginTime; + + /** + * @JsonProperty(Integer, "days_time") + */ + private $daysTime; + + /** + * @JsonProperty(Long, "end_time") + */ + private $endTime; + + /** + * @JsonProperty(Integer, "time_type") + */ + private $timeType; + + public function setBeginTime($beginTime) + { + $this->beginTime = $beginTime; + } + + public function setDaysTime($daysTime) + { + $this->daysTime = $daysTime; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setTimeType($timeType) + { + $this->timeType = $timeType; + } + +} + +class PddGoodsEditGoodsCommitRequest_GoodsPropertiesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "group_id") + */ + private $groupId; + + /** + * @JsonProperty(String, "img_url") + */ + private $imgUrl; + + /** + * @JsonProperty(String, "note") + */ + private $note; + + /** + * @JsonProperty(Long, "parent_spec_id") + */ + private $parentSpecId; + + /** + * @JsonProperty(Long, "ref_pid") + */ + private $refPid; + + /** + * @JsonProperty(Long, "spec_id") + */ + private $specId; + + /** + * @JsonProperty(Long, "template_pid") + */ + private $templatePid; + + /** + * @JsonProperty(String, "value") + */ + private $value; + + /** + * @JsonProperty(String, "value_unit") + */ + private $valueUnit; + + /** + * @JsonProperty(Long, "vid") + */ + private $vid; + + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + + public function setImgUrl($imgUrl) + { + $this->imgUrl = $imgUrl; + } + + public function setNote($note) + { + $this->note = $note; + } + + public function setParentSpecId($parentSpecId) + { + $this->parentSpecId = $parentSpecId; + } + + public function setRefPid($refPid) + { + $this->refPid = $refPid; + } + + public function setSpecId($specId) + { + $this->specId = $specId; + } + + public function setTemplatePid($templatePid) + { + $this->templatePid = $templatePid; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setValueUnit($valueUnit) + { + $this->valueUnit = $valueUnit; + } + + public function setVid($vid) + { + $this->vid = $vid; + } + +} + +class PddGoodsEditGoodsCommitRequest_GoodsTradeAttr extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "advances_days") + */ + private $advancesDays; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_GoodsTradeAttrBookingNotes, "booking_notes") + */ + private $bookingNotes; + + /** + * @JsonProperty(Integer, "life_span") + */ + private $lifeSpan; + + public function setAdvancesDays($advancesDays) + { + $this->advancesDays = $advancesDays; + } + + public function setBookingNotes($bookingNotes) + { + $this->bookingNotes = $bookingNotes; + } + + public function setLifeSpan($lifeSpan) + { + $this->lifeSpan = $lifeSpan; + } + +} + +class PddGoodsEditGoodsCommitRequest_GoodsTradeAttrBookingNotes extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "url") + */ + private $url; + + public function setUrl($url) + { + $this->url = $url; + } + +} + +class PddGoodsEditGoodsCommitRequest_GoodsTravelAttr extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Boolean, "need_tourist") + */ + private $needTourist; + + /** + * @JsonProperty(Integer, "type") + */ + private $type; + + public function setNeedTourist($needTourist) + { + $this->needTourist = $needTourist; + } + + public function setType($type) + { + $this->type = $type; + } + +} + +class PddGoodsEditGoodsCommitRequest_OverseaGoods extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "bonded_warehouse_key") + */ + private $bondedWarehouseKey; + + /** + * @JsonProperty(Integer, "consumption_tax_rate") + */ + private $consumptionTaxRate; + + /** + * @JsonProperty(String, "customs_broker") + */ + private $customsBroker; + + /** + * @JsonProperty(String, "hs_code") + */ + private $hsCode; + + /** + * @JsonProperty(Integer, "value_added_tax_rate") + */ + private $valueAddedTaxRate; + + public function setBondedWarehouseKey($bondedWarehouseKey) + { + $this->bondedWarehouseKey = $bondedWarehouseKey; + } + + public function setConsumptionTaxRate($consumptionTaxRate) + { + $this->consumptionTaxRate = $consumptionTaxRate; + } + + public function setCustomsBroker($customsBroker) + { + $this->customsBroker = $customsBroker; + } + + public function setHsCode($hsCode) + { + $this->hsCode = $hsCode; + } + + public function setValueAddedTaxRate($valueAddedTaxRate) + { + $this->valueAddedTaxRate = $valueAddedTaxRate; + } + +} + +class PddGoodsEditGoodsCommitRequest_SkuListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "is_onsale") + */ + private $isOnsale; + + /** + * @JsonProperty(Long, "length") + */ + private $length; + + /** + * @JsonProperty(Long, "limit_quantity") + */ + private $limitQuantity; + + /** + * @JsonProperty(Long, "multi_price") + */ + private $multiPrice; + + /** + * @JsonProperty(String, "out_sku_sn") + */ + private $outSkuSn; + + /** + * @JsonProperty(String, "out_source_sku_id") + */ + private $outSourceSkuId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsEditGoodsCommitRequest_SkuListItemOverseaSku, "oversea_sku") + */ + private $overseaSku; + + /** + * @JsonProperty(Long, "price") + */ + private $price; + + /** + * @JsonProperty(Long, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(String, "spec_id_list") + */ + private $specIdList; + + /** + * @JsonProperty(String, "thumb_url") + */ + private $thumbUrl; + + /** + * @JsonProperty(Long, "weight") + */ + private $weight; + + public function setIsOnsale($isOnsale) + { + $this->isOnsale = $isOnsale; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setLimitQuantity($limitQuantity) + { + $this->limitQuantity = $limitQuantity; + } + + public function setMultiPrice($multiPrice) + { + $this->multiPrice = $multiPrice; + } + + public function setOutSkuSn($outSkuSn) + { + $this->outSkuSn = $outSkuSn; + } + + public function setOutSourceSkuId($outSourceSkuId) + { + $this->outSourceSkuId = $outSourceSkuId; + } + + public function setOverseaSku($overseaSku) + { + $this->overseaSku = $overseaSku; + } + + public function setPrice($price) + { + $this->price = $price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setSpecIdList($specIdList) + { + $this->specIdList = $specIdList; + } + + public function setThumbUrl($thumbUrl) + { + $this->thumbUrl = $thumbUrl; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + +} + +class PddGoodsEditGoodsCommitRequest_SkuListItemOverseaSku extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "measurement_code") + */ + private $measurementCode; + + /** + * @JsonProperty(String, "specifications") + */ + private $specifications; + + /** + * @JsonProperty(Integer, "taxation") + */ + private $taxation; + + public function setMeasurementCode($measurementCode) + { + $this->measurementCode = $measurementCode; + } + + public function setSpecifications($specifications) + { + $this->specifications = $specifications; + } + + public function setTaxation($taxation) + { + $this->taxation = $taxation; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsFilespaceImageUploadRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsFilespaceImageUploadRequest.php index 66aebdc..6d89dfb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsFilespaceImageUploadRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsFilespaceImageUploadRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "file", $this->file); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.filespace.image.upload"; - } - - public function setFile($file) - { - $this->file = $file; - } - -} +setUserParam($params, "file", $this->file); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.filespace.image.upload"; + } + + public function setFile($file) + { + $this->file = $file; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsImageUploadRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsImageUploadRequest.php index eec43cb..95c2e26 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsImageUploadRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsImageUploadRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "image", $this->image); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.image.upload"; - } - - public function setImage($image) - { - $this->image = $image; - } - -} +setUserParam($params, "image", $this->image); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.image.upload"; + } + + public function setImage($image) + { + $this->image = $image; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsInformationGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsInformationGetRequest.php index cef62eb..14ac9ff 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsInformationGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsInformationGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goods_id", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.information.get"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.information.get"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsInformationUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsInformationUpdateRequest.php index eea0e9d..be2dce6 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsInformationUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsInformationUpdateRequest.php @@ -1,1125 +1,1125 @@ -, "carousel_gallery") - */ - private $carouselGallery; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_CarouselVideoItem>, "carousel_video") - */ - private $carouselVideo; - - /** - * @JsonProperty(String, "carousel_video_url") - */ - private $carouselVideoUrl; - - /** - * @JsonProperty(Long, "cat_id") - */ - private $catId; - - /** - * @JsonProperty(Long, "cost_template_id") - */ - private $costTemplateId; - - /** - * @JsonProperty(Integer, "country_id") - */ - private $countryId; - - /** - * @JsonProperty(Integer, "customer_num") - */ - private $customerNum; - - /** - * @JsonProperty(String, "customs") - */ - private $customs; - - /** - * @JsonProperty(Integer, "delivery_one_day") - */ - private $deliveryOneDay; - - /** - * @JsonProperty(List, "detail_gallery") - */ - private $detailGallery; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_ElecGoodsAttributes, "elec_goods_attributes") - */ - private $elecGoodsAttributes; - - /** - * @JsonProperty(String, "goods_desc") - */ - private $goodsDesc; - - /** - * @JsonProperty(Long, "goods_id") - */ - private $goodsId; - - /** - * @JsonProperty(String, "goods_name") - */ - private $goodsName; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_GoodsPropertiesItem>, "goods_properties") - */ - private $goodsProperties; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_GoodsTradeAttr, "goods_trade_attr") - */ - private $goodsTradeAttr; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_GoodsTravelAttr, "goods_travel_attr") - */ - private $goodsTravelAttr; - - /** - * @JsonProperty(Integer, "goods_type") - */ - private $goodsType; - - /** - * @JsonProperty(String, "image_url") - */ - private $imageUrl; - - /** - * @JsonProperty(Integer, "invoice_status") - */ - private $invoiceStatus; - - /** - * @JsonProperty(Boolean, "is_customs") - */ - private $isCustoms; - - /** - * @JsonProperty(Boolean, "is_folt") - */ - private $isFolt; - - /** - * @JsonProperty(Boolean, "is_pre_sale") - */ - private $isPreSale; - - /** - * @JsonProperty(Boolean, "is_refundable") - */ - private $isRefundable; - - /** - * @JsonProperty(Integer, "lack_of_weight_claim") - */ - private $lackOfWeightClaim; - - /** - * @JsonProperty(String, "mai_jia_zi_ti") - */ - private $maiJiaZiTi; - - /** - * @JsonProperty(Long, "market_price") - */ - private $marketPrice; - - /** - * @JsonProperty(Integer, "operate_type") - */ - private $operateType; - - /** - * @JsonProperty(Long, "order_limit") - */ - private $orderLimit; - - /** - * @JsonProperty(Integer, "origin_country_id") - */ - private $originCountryId; - - /** - * @JsonProperty(String, "out_goods_id") - */ - private $outGoodsId; - - /** - * @JsonProperty(String, "out_source_goods_id") - */ - private $outSourceGoodsId; - - /** - * @JsonProperty(Integer, "out_source_type") - */ - private $outSourceType; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_OverseaGoods, "oversea_goods") - */ - private $overseaGoods; - - /** - * @JsonProperty(Integer, "oversea_type") - */ - private $overseaType; - - /** - * @JsonProperty(Long, "pre_sale_time") - */ - private $preSaleTime; - - /** - * @JsonProperty(Integer, "quan_guo_lian_bao") - */ - private $quanGuoLianBao; - - /** - * @JsonProperty(Boolean, "second_hand") - */ - private $secondHand; - - /** - * @JsonProperty(String, "shang_men_an_zhuang") - */ - private $shangMenAnZhuang; - - /** - * @JsonProperty(Long, "shipment_limit_second") - */ - private $shipmentLimitSecond; - - /** - * @JsonProperty(Long, "size_spec_id") - */ - private $sizeSpecId; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_SkuListItem>, "sku_list") - */ - private $skuList; - - /** - * @JsonProperty(Integer, "sku_type") - */ - private $skuType; - - /** - * @JsonProperty(String, "song_huo_an_zhuang") - */ - private $songHuoAnZhuang; - - /** - * @JsonProperty(String, "song_huo_ru_hu") - */ - private $songHuoRuHu; - - /** - * @JsonProperty(Integer, "sync_goods_operate") - */ - private $syncGoodsOperate; - - /** - * @JsonProperty(String, "tiny_name") - */ - private $tinyName; - - /** - * @JsonProperty(String, "warehouse") - */ - private $warehouse; - - /** - * @JsonProperty(String, "warm_tips") - */ - private $warmTips; - - /** - * @JsonProperty(Integer, "zhi_huan_bu_xiu") - */ - private $zhiHuanBuXiu; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "bad_fruit_claim", $this->badFruitClaim); - $this->setUserParam($params, "buy_limit", $this->buyLimit); - $this->setUserParam($params, "carousel_gallery", $this->carouselGallery); - $this->setUserParam($params, "carousel_video", $this->carouselVideo); - $this->setUserParam($params, "carousel_video_url", $this->carouselVideoUrl); - $this->setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "cost_template_id", $this->costTemplateId); - $this->setUserParam($params, "country_id", $this->countryId); - $this->setUserParam($params, "customer_num", $this->customerNum); - $this->setUserParam($params, "customs", $this->customs); - $this->setUserParam($params, "delivery_one_day", $this->deliveryOneDay); - $this->setUserParam($params, "detail_gallery", $this->detailGallery); - $this->setUserParam($params, "elec_goods_attributes", $this->elecGoodsAttributes); - $this->setUserParam($params, "goods_desc", $this->goodsDesc); - $this->setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "goods_name", $this->goodsName); - $this->setUserParam($params, "goods_properties", $this->goodsProperties); - $this->setUserParam($params, "goods_trade_attr", $this->goodsTradeAttr); - $this->setUserParam($params, "goods_travel_attr", $this->goodsTravelAttr); - $this->setUserParam($params, "goods_type", $this->goodsType); - $this->setUserParam($params, "image_url", $this->imageUrl); - $this->setUserParam($params, "invoice_status", $this->invoiceStatus); - $this->setUserParam($params, "is_customs", $this->isCustoms); - $this->setUserParam($params, "is_folt", $this->isFolt); - $this->setUserParam($params, "is_pre_sale", $this->isPreSale); - $this->setUserParam($params, "is_refundable", $this->isRefundable); - $this->setUserParam($params, "lack_of_weight_claim", $this->lackOfWeightClaim); - $this->setUserParam($params, "mai_jia_zi_ti", $this->maiJiaZiTi); - $this->setUserParam($params, "market_price", $this->marketPrice); - $this->setUserParam($params, "operate_type", $this->operateType); - $this->setUserParam($params, "order_limit", $this->orderLimit); - $this->setUserParam($params, "origin_country_id", $this->originCountryId); - $this->setUserParam($params, "out_goods_id", $this->outGoodsId); - $this->setUserParam($params, "out_source_goods_id", $this->outSourceGoodsId); - $this->setUserParam($params, "out_source_type", $this->outSourceType); - $this->setUserParam($params, "oversea_goods", $this->overseaGoods); - $this->setUserParam($params, "oversea_type", $this->overseaType); - $this->setUserParam($params, "pre_sale_time", $this->preSaleTime); - $this->setUserParam($params, "quan_guo_lian_bao", $this->quanGuoLianBao); - $this->setUserParam($params, "second_hand", $this->secondHand); - $this->setUserParam($params, "shang_men_an_zhuang", $this->shangMenAnZhuang); - $this->setUserParam($params, "shipment_limit_second", $this->shipmentLimitSecond); - $this->setUserParam($params, "size_spec_id", $this->sizeSpecId); - $this->setUserParam($params, "sku_list", $this->skuList); - $this->setUserParam($params, "sku_type", $this->skuType); - $this->setUserParam($params, "song_huo_an_zhuang", $this->songHuoAnZhuang); - $this->setUserParam($params, "song_huo_ru_hu", $this->songHuoRuHu); - $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate); - $this->setUserParam($params, "tiny_name", $this->tinyName); - $this->setUserParam($params, "warehouse", $this->warehouse); - $this->setUserParam($params, "warm_tips", $this->warmTips); - $this->setUserParam($params, "zhi_huan_bu_xiu", $this->zhiHuanBuXiu); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.information.update"; - } - - public function setBadFruitClaim($badFruitClaim) - { - $this->badFruitClaim = $badFruitClaim; - } - - public function setBuyLimit($buyLimit) - { - $this->buyLimit = $buyLimit; - } - - public function setCarouselGallery($carouselGallery) - { - $this->carouselGallery = $carouselGallery; - } - - public function setCarouselVideo($carouselVideo) - { - $this->carouselVideo = $carouselVideo; - } - - public function setCarouselVideoUrl($carouselVideoUrl) - { - $this->carouselVideoUrl = $carouselVideoUrl; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setCostTemplateId($costTemplateId) - { - $this->costTemplateId = $costTemplateId; - } - - public function setCountryId($countryId) - { - $this->countryId = $countryId; - } - - public function setCustomerNum($customerNum) - { - $this->customerNum = $customerNum; - } - - public function setCustoms($customs) - { - $this->customs = $customs; - } - - public function setDeliveryOneDay($deliveryOneDay) - { - $this->deliveryOneDay = $deliveryOneDay; - } - - public function setDetailGallery($detailGallery) - { - $this->detailGallery = $detailGallery; - } - - public function setElecGoodsAttributes($elecGoodsAttributes) - { - $this->elecGoodsAttributes = $elecGoodsAttributes; - } - - public function setGoodsDesc($goodsDesc) - { - $this->goodsDesc = $goodsDesc; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setGoodsName($goodsName) - { - $this->goodsName = $goodsName; - } - - public function setGoodsProperties($goodsProperties) - { - $this->goodsProperties = $goodsProperties; - } - - public function setGoodsTradeAttr($goodsTradeAttr) - { - $this->goodsTradeAttr = $goodsTradeAttr; - } - - public function setGoodsTravelAttr($goodsTravelAttr) - { - $this->goodsTravelAttr = $goodsTravelAttr; - } - - public function setGoodsType($goodsType) - { - $this->goodsType = $goodsType; - } - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - - public function setInvoiceStatus($invoiceStatus) - { - $this->invoiceStatus = $invoiceStatus; - } - - public function setIsCustoms($isCustoms) - { - $this->isCustoms = $isCustoms; - } - - public function setIsFolt($isFolt) - { - $this->isFolt = $isFolt; - } - - public function setIsPreSale($isPreSale) - { - $this->isPreSale = $isPreSale; - } - - public function setIsRefundable($isRefundable) - { - $this->isRefundable = $isRefundable; - } - - public function setLackOfWeightClaim($lackOfWeightClaim) - { - $this->lackOfWeightClaim = $lackOfWeightClaim; - } - - public function setMaiJiaZiTi($maiJiaZiTi) - { - $this->maiJiaZiTi = $maiJiaZiTi; - } - - public function setMarketPrice($marketPrice) - { - $this->marketPrice = $marketPrice; - } - - public function setOperateType($operateType) - { - $this->operateType = $operateType; - } - - public function setOrderLimit($orderLimit) - { - $this->orderLimit = $orderLimit; - } - - public function setOriginCountryId($originCountryId) - { - $this->originCountryId = $originCountryId; - } - - public function setOutGoodsId($outGoodsId) - { - $this->outGoodsId = $outGoodsId; - } - - public function setOutSourceGoodsId($outSourceGoodsId) - { - $this->outSourceGoodsId = $outSourceGoodsId; - } - - public function setOutSourceType($outSourceType) - { - $this->outSourceType = $outSourceType; - } - - public function setOverseaGoods($overseaGoods) - { - $this->overseaGoods = $overseaGoods; - } - - public function setOverseaType($overseaType) - { - $this->overseaType = $overseaType; - } - - public function setPreSaleTime($preSaleTime) - { - $this->preSaleTime = $preSaleTime; - } - - public function setQuanGuoLianBao($quanGuoLianBao) - { - $this->quanGuoLianBao = $quanGuoLianBao; - } - - public function setSecondHand($secondHand) - { - $this->secondHand = $secondHand; - } - - public function setShangMenAnZhuang($shangMenAnZhuang) - { - $this->shangMenAnZhuang = $shangMenAnZhuang; - } - - public function setShipmentLimitSecond($shipmentLimitSecond) - { - $this->shipmentLimitSecond = $shipmentLimitSecond; - } - - public function setSizeSpecId($sizeSpecId) - { - $this->sizeSpecId = $sizeSpecId; - } - - public function setSkuList($skuList) - { - $this->skuList = $skuList; - } - - public function setSkuType($skuType) - { - $this->skuType = $skuType; - } - - public function setSongHuoAnZhuang($songHuoAnZhuang) - { - $this->songHuoAnZhuang = $songHuoAnZhuang; - } - - public function setSongHuoRuHu($songHuoRuHu) - { - $this->songHuoRuHu = $songHuoRuHu; - } - - public function setSyncGoodsOperate($syncGoodsOperate) - { - $this->syncGoodsOperate = $syncGoodsOperate; - } - - public function setTinyName($tinyName) - { - $this->tinyName = $tinyName; - } - - public function setWarehouse($warehouse) - { - $this->warehouse = $warehouse; - } - - public function setWarmTips($warmTips) - { - $this->warmTips = $warmTips; - } - - public function setZhiHuanBuXiu($zhiHuanBuXiu) - { - $this->zhiHuanBuXiu = $zhiHuanBuXiu; - } - -} - -class PddGoodsInformationUpdateRequest_CarouselVideoItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "file_id") - */ - private $fileId; - - /** - * @JsonProperty(String, "video_url") - */ - private $videoUrl; - - public function setFileId($fileId) - { - $this->fileId = $fileId; - } - - public function setVideoUrl($videoUrl) - { - $this->videoUrl = $videoUrl; - } - -} - -class PddGoodsInformationUpdateRequest_ElecGoodsAttributes extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "begin_time") - */ - private $beginTime; - - /** - * @JsonProperty(Integer, "days_time") - */ - private $daysTime; - - /** - * @JsonProperty(Long, "end_time") - */ - private $endTime; - - /** - * @JsonProperty(Integer, "time_type") - */ - private $timeType; - - public function setBeginTime($beginTime) - { - $this->beginTime = $beginTime; - } - - public function setDaysTime($daysTime) - { - $this->daysTime = $daysTime; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setTimeType($timeType) - { - $this->timeType = $timeType; - } - -} - -class PddGoodsInformationUpdateRequest_GoodsPropertiesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "group_id") - */ - private $groupId; - - /** - * @JsonProperty(String, "img_url") - */ - private $imgUrl; - - /** - * @JsonProperty(String, "note") - */ - private $note; - - /** - * @JsonProperty(Long, "parent_spec_id") - */ - private $parentSpecId; - - /** - * @JsonProperty(Long, "ref_pid") - */ - private $refPid; - - /** - * @JsonProperty(Long, "spec_id") - */ - private $specId; - - /** - * @JsonProperty(Long, "template_pid") - */ - private $templatePid; - - /** - * @JsonProperty(String, "value") - */ - private $value; - - /** - * @JsonProperty(String, "value_unit") - */ - private $valueUnit; - - /** - * @JsonProperty(Long, "vid") - */ - private $vid; - - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - - public function setImgUrl($imgUrl) - { - $this->imgUrl = $imgUrl; - } - - public function setNote($note) - { - $this->note = $note; - } - - public function setParentSpecId($parentSpecId) - { - $this->parentSpecId = $parentSpecId; - } - - public function setRefPid($refPid) - { - $this->refPid = $refPid; - } - - public function setSpecId($specId) - { - $this->specId = $specId; - } - - public function setTemplatePid($templatePid) - { - $this->templatePid = $templatePid; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setValueUnit($valueUnit) - { - $this->valueUnit = $valueUnit; - } - - public function setVid($vid) - { - $this->vid = $vid; - } - -} - -class PddGoodsInformationUpdateRequest_GoodsTradeAttr extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "advances_days") - */ - private $advancesDays; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_GoodsTradeAttrBookingNotes, "booking_notes") - */ - private $bookingNotes; - - /** - * @JsonProperty(Integer, "life_span") - */ - private $lifeSpan; - - public function setAdvancesDays($advancesDays) - { - $this->advancesDays = $advancesDays; - } - - public function setBookingNotes($bookingNotes) - { - $this->bookingNotes = $bookingNotes; - } - - public function setLifeSpan($lifeSpan) - { - $this->lifeSpan = $lifeSpan; - } - -} - -class PddGoodsInformationUpdateRequest_GoodsTradeAttrBookingNotes extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "url") - */ - private $url; - - public function setUrl($url) - { - $this->url = $url; - } - -} - -class PddGoodsInformationUpdateRequest_GoodsTravelAttr extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Boolean, "need_tourist") - */ - private $needTourist; - - /** - * @JsonProperty(Integer, "type") - */ - private $type; - - public function setNeedTourist($needTourist) - { - $this->needTourist = $needTourist; - } - - public function setType($type) - { - $this->type = $type; - } - -} - -class PddGoodsInformationUpdateRequest_OverseaGoods extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "bonded_warehouse_key") - */ - private $bondedWarehouseKey; - - /** - * @JsonProperty(Integer, "consumption_tax_rate") - */ - private $consumptionTaxRate; - - /** - * @JsonProperty(String, "customs_broker") - */ - private $customsBroker; - - /** - * @JsonProperty(String, "hs_code") - */ - private $hsCode; - - /** - * @JsonProperty(Integer, "value_added_tax_rate") - */ - private $valueAddedTaxRate; - - public function setBondedWarehouseKey($bondedWarehouseKey) - { - $this->bondedWarehouseKey = $bondedWarehouseKey; - } - - public function setConsumptionTaxRate($consumptionTaxRate) - { - $this->consumptionTaxRate = $consumptionTaxRate; - } - - public function setCustomsBroker($customsBroker) - { - $this->customsBroker = $customsBroker; - } - - public function setHsCode($hsCode) - { - $this->hsCode = $hsCode; - } - - public function setValueAddedTaxRate($valueAddedTaxRate) - { - $this->valueAddedTaxRate = $valueAddedTaxRate; - } - -} - -class PddGoodsInformationUpdateRequest_SkuListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "is_onsale") - */ - private $isOnsale; - - /** - * @JsonProperty(Long, "length") - */ - private $length; - - /** - * @JsonProperty(Long, "limit_quantity") - */ - private $limitQuantity; - - /** - * @JsonProperty(Long, "multi_price") - */ - private $multiPrice; - - /** - * @JsonProperty(String, "out_sku_sn") - */ - private $outSkuSn; - - /** - * @JsonProperty(String, "out_source_sku_id") - */ - private $outSourceSkuId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_SkuListItemOverseaSku, "oversea_sku") - */ - private $overseaSku; - - /** - * @JsonProperty(Long, "price") - */ - private $price; - - /** - * @JsonProperty(Long, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(Long, "sku_id") - */ - private $skuId; - - /** - * @JsonProperty(String, "spec_id_list") - */ - private $specIdList; - - /** - * @JsonProperty(String, "thumb_url") - */ - private $thumbUrl; - - /** - * @JsonProperty(Long, "weight") - */ - private $weight; - - public function setIsOnsale($isOnsale) - { - $this->isOnsale = $isOnsale; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setLimitQuantity($limitQuantity) - { - $this->limitQuantity = $limitQuantity; - } - - public function setMultiPrice($multiPrice) - { - $this->multiPrice = $multiPrice; - } - - public function setOutSkuSn($outSkuSn) - { - $this->outSkuSn = $outSkuSn; - } - - public function setOutSourceSkuId($outSourceSkuId) - { - $this->outSourceSkuId = $outSourceSkuId; - } - - public function setOverseaSku($overseaSku) - { - $this->overseaSku = $overseaSku; - } - - public function setPrice($price) - { - $this->price = $price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } - - public function setSpecIdList($specIdList) - { - $this->specIdList = $specIdList; - } - - public function setThumbUrl($thumbUrl) - { - $this->thumbUrl = $thumbUrl; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - -} - -class PddGoodsInformationUpdateRequest_SkuListItemOverseaSku extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "measurement_code") - */ - private $measurementCode; - - /** - * @JsonProperty(String, "specifications") - */ - private $specifications; - - /** - * @JsonProperty(Integer, "taxation") - */ - private $taxation; - - public function setMeasurementCode($measurementCode) - { - $this->measurementCode = $measurementCode; - } - - public function setSpecifications($specifications) - { - $this->specifications = $specifications; - } - - public function setTaxation($taxation) - { - $this->taxation = $taxation; - } - -} +, "carousel_gallery") + */ + private $carouselGallery; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_CarouselVideoItem>, "carousel_video") + */ + private $carouselVideo; + + /** + * @JsonProperty(String, "carousel_video_url") + */ + private $carouselVideoUrl; + + /** + * @JsonProperty(Long, "cat_id") + */ + private $catId; + + /** + * @JsonProperty(Long, "cost_template_id") + */ + private $costTemplateId; + + /** + * @JsonProperty(Integer, "country_id") + */ + private $countryId; + + /** + * @JsonProperty(Integer, "customer_num") + */ + private $customerNum; + + /** + * @JsonProperty(String, "customs") + */ + private $customs; + + /** + * @JsonProperty(Integer, "delivery_one_day") + */ + private $deliveryOneDay; + + /** + * @JsonProperty(List, "detail_gallery") + */ + private $detailGallery; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_ElecGoodsAttributes, "elec_goods_attributes") + */ + private $elecGoodsAttributes; + + /** + * @JsonProperty(String, "goods_desc") + */ + private $goodsDesc; + + /** + * @JsonProperty(Long, "goods_id") + */ + private $goodsId; + + /** + * @JsonProperty(String, "goods_name") + */ + private $goodsName; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_GoodsPropertiesItem>, "goods_properties") + */ + private $goodsProperties; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_GoodsTradeAttr, "goods_trade_attr") + */ + private $goodsTradeAttr; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_GoodsTravelAttr, "goods_travel_attr") + */ + private $goodsTravelAttr; + + /** + * @JsonProperty(Integer, "goods_type") + */ + private $goodsType; + + /** + * @JsonProperty(String, "image_url") + */ + private $imageUrl; + + /** + * @JsonProperty(Integer, "invoice_status") + */ + private $invoiceStatus; + + /** + * @JsonProperty(Boolean, "is_customs") + */ + private $isCustoms; + + /** + * @JsonProperty(Boolean, "is_folt") + */ + private $isFolt; + + /** + * @JsonProperty(Boolean, "is_pre_sale") + */ + private $isPreSale; + + /** + * @JsonProperty(Boolean, "is_refundable") + */ + private $isRefundable; + + /** + * @JsonProperty(Integer, "lack_of_weight_claim") + */ + private $lackOfWeightClaim; + + /** + * @JsonProperty(String, "mai_jia_zi_ti") + */ + private $maiJiaZiTi; + + /** + * @JsonProperty(Long, "market_price") + */ + private $marketPrice; + + /** + * @JsonProperty(Integer, "operate_type") + */ + private $operateType; + + /** + * @JsonProperty(Long, "order_limit") + */ + private $orderLimit; + + /** + * @JsonProperty(Integer, "origin_country_id") + */ + private $originCountryId; + + /** + * @JsonProperty(String, "out_goods_id") + */ + private $outGoodsId; + + /** + * @JsonProperty(String, "out_source_goods_id") + */ + private $outSourceGoodsId; + + /** + * @JsonProperty(Integer, "out_source_type") + */ + private $outSourceType; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_OverseaGoods, "oversea_goods") + */ + private $overseaGoods; + + /** + * @JsonProperty(Integer, "oversea_type") + */ + private $overseaType; + + /** + * @JsonProperty(Long, "pre_sale_time") + */ + private $preSaleTime; + + /** + * @JsonProperty(Integer, "quan_guo_lian_bao") + */ + private $quanGuoLianBao; + + /** + * @JsonProperty(Boolean, "second_hand") + */ + private $secondHand; + + /** + * @JsonProperty(String, "shang_men_an_zhuang") + */ + private $shangMenAnZhuang; + + /** + * @JsonProperty(Long, "shipment_limit_second") + */ + private $shipmentLimitSecond; + + /** + * @JsonProperty(Long, "size_spec_id") + */ + private $sizeSpecId; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_SkuListItem>, "sku_list") + */ + private $skuList; + + /** + * @JsonProperty(Integer, "sku_type") + */ + private $skuType; + + /** + * @JsonProperty(String, "song_huo_an_zhuang") + */ + private $songHuoAnZhuang; + + /** + * @JsonProperty(String, "song_huo_ru_hu") + */ + private $songHuoRuHu; + + /** + * @JsonProperty(Integer, "sync_goods_operate") + */ + private $syncGoodsOperate; + + /** + * @JsonProperty(String, "tiny_name") + */ + private $tinyName; + + /** + * @JsonProperty(String, "warehouse") + */ + private $warehouse; + + /** + * @JsonProperty(String, "warm_tips") + */ + private $warmTips; + + /** + * @JsonProperty(Integer, "zhi_huan_bu_xiu") + */ + private $zhiHuanBuXiu; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "bad_fruit_claim", $this->badFruitClaim); + $this->setUserParam($params, "buy_limit", $this->buyLimit); + $this->setUserParam($params, "carousel_gallery", $this->carouselGallery); + $this->setUserParam($params, "carousel_video", $this->carouselVideo); + $this->setUserParam($params, "carousel_video_url", $this->carouselVideoUrl); + $this->setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "cost_template_id", $this->costTemplateId); + $this->setUserParam($params, "country_id", $this->countryId); + $this->setUserParam($params, "customer_num", $this->customerNum); + $this->setUserParam($params, "customs", $this->customs); + $this->setUserParam($params, "delivery_one_day", $this->deliveryOneDay); + $this->setUserParam($params, "detail_gallery", $this->detailGallery); + $this->setUserParam($params, "elec_goods_attributes", $this->elecGoodsAttributes); + $this->setUserParam($params, "goods_desc", $this->goodsDesc); + $this->setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "goods_name", $this->goodsName); + $this->setUserParam($params, "goods_properties", $this->goodsProperties); + $this->setUserParam($params, "goods_trade_attr", $this->goodsTradeAttr); + $this->setUserParam($params, "goods_travel_attr", $this->goodsTravelAttr); + $this->setUserParam($params, "goods_type", $this->goodsType); + $this->setUserParam($params, "image_url", $this->imageUrl); + $this->setUserParam($params, "invoice_status", $this->invoiceStatus); + $this->setUserParam($params, "is_customs", $this->isCustoms); + $this->setUserParam($params, "is_folt", $this->isFolt); + $this->setUserParam($params, "is_pre_sale", $this->isPreSale); + $this->setUserParam($params, "is_refundable", $this->isRefundable); + $this->setUserParam($params, "lack_of_weight_claim", $this->lackOfWeightClaim); + $this->setUserParam($params, "mai_jia_zi_ti", $this->maiJiaZiTi); + $this->setUserParam($params, "market_price", $this->marketPrice); + $this->setUserParam($params, "operate_type", $this->operateType); + $this->setUserParam($params, "order_limit", $this->orderLimit); + $this->setUserParam($params, "origin_country_id", $this->originCountryId); + $this->setUserParam($params, "out_goods_id", $this->outGoodsId); + $this->setUserParam($params, "out_source_goods_id", $this->outSourceGoodsId); + $this->setUserParam($params, "out_source_type", $this->outSourceType); + $this->setUserParam($params, "oversea_goods", $this->overseaGoods); + $this->setUserParam($params, "oversea_type", $this->overseaType); + $this->setUserParam($params, "pre_sale_time", $this->preSaleTime); + $this->setUserParam($params, "quan_guo_lian_bao", $this->quanGuoLianBao); + $this->setUserParam($params, "second_hand", $this->secondHand); + $this->setUserParam($params, "shang_men_an_zhuang", $this->shangMenAnZhuang); + $this->setUserParam($params, "shipment_limit_second", $this->shipmentLimitSecond); + $this->setUserParam($params, "size_spec_id", $this->sizeSpecId); + $this->setUserParam($params, "sku_list", $this->skuList); + $this->setUserParam($params, "sku_type", $this->skuType); + $this->setUserParam($params, "song_huo_an_zhuang", $this->songHuoAnZhuang); + $this->setUserParam($params, "song_huo_ru_hu", $this->songHuoRuHu); + $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate); + $this->setUserParam($params, "tiny_name", $this->tinyName); + $this->setUserParam($params, "warehouse", $this->warehouse); + $this->setUserParam($params, "warm_tips", $this->warmTips); + $this->setUserParam($params, "zhi_huan_bu_xiu", $this->zhiHuanBuXiu); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.information.update"; + } + + public function setBadFruitClaim($badFruitClaim) + { + $this->badFruitClaim = $badFruitClaim; + } + + public function setBuyLimit($buyLimit) + { + $this->buyLimit = $buyLimit; + } + + public function setCarouselGallery($carouselGallery) + { + $this->carouselGallery = $carouselGallery; + } + + public function setCarouselVideo($carouselVideo) + { + $this->carouselVideo = $carouselVideo; + } + + public function setCarouselVideoUrl($carouselVideoUrl) + { + $this->carouselVideoUrl = $carouselVideoUrl; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setCostTemplateId($costTemplateId) + { + $this->costTemplateId = $costTemplateId; + } + + public function setCountryId($countryId) + { + $this->countryId = $countryId; + } + + public function setCustomerNum($customerNum) + { + $this->customerNum = $customerNum; + } + + public function setCustoms($customs) + { + $this->customs = $customs; + } + + public function setDeliveryOneDay($deliveryOneDay) + { + $this->deliveryOneDay = $deliveryOneDay; + } + + public function setDetailGallery($detailGallery) + { + $this->detailGallery = $detailGallery; + } + + public function setElecGoodsAttributes($elecGoodsAttributes) + { + $this->elecGoodsAttributes = $elecGoodsAttributes; + } + + public function setGoodsDesc($goodsDesc) + { + $this->goodsDesc = $goodsDesc; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + } + + public function setGoodsProperties($goodsProperties) + { + $this->goodsProperties = $goodsProperties; + } + + public function setGoodsTradeAttr($goodsTradeAttr) + { + $this->goodsTradeAttr = $goodsTradeAttr; + } + + public function setGoodsTravelAttr($goodsTravelAttr) + { + $this->goodsTravelAttr = $goodsTravelAttr; + } + + public function setGoodsType($goodsType) + { + $this->goodsType = $goodsType; + } + + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + + public function setInvoiceStatus($invoiceStatus) + { + $this->invoiceStatus = $invoiceStatus; + } + + public function setIsCustoms($isCustoms) + { + $this->isCustoms = $isCustoms; + } + + public function setIsFolt($isFolt) + { + $this->isFolt = $isFolt; + } + + public function setIsPreSale($isPreSale) + { + $this->isPreSale = $isPreSale; + } + + public function setIsRefundable($isRefundable) + { + $this->isRefundable = $isRefundable; + } + + public function setLackOfWeightClaim($lackOfWeightClaim) + { + $this->lackOfWeightClaim = $lackOfWeightClaim; + } + + public function setMaiJiaZiTi($maiJiaZiTi) + { + $this->maiJiaZiTi = $maiJiaZiTi; + } + + public function setMarketPrice($marketPrice) + { + $this->marketPrice = $marketPrice; + } + + public function setOperateType($operateType) + { + $this->operateType = $operateType; + } + + public function setOrderLimit($orderLimit) + { + $this->orderLimit = $orderLimit; + } + + public function setOriginCountryId($originCountryId) + { + $this->originCountryId = $originCountryId; + } + + public function setOutGoodsId($outGoodsId) + { + $this->outGoodsId = $outGoodsId; + } + + public function setOutSourceGoodsId($outSourceGoodsId) + { + $this->outSourceGoodsId = $outSourceGoodsId; + } + + public function setOutSourceType($outSourceType) + { + $this->outSourceType = $outSourceType; + } + + public function setOverseaGoods($overseaGoods) + { + $this->overseaGoods = $overseaGoods; + } + + public function setOverseaType($overseaType) + { + $this->overseaType = $overseaType; + } + + public function setPreSaleTime($preSaleTime) + { + $this->preSaleTime = $preSaleTime; + } + + public function setQuanGuoLianBao($quanGuoLianBao) + { + $this->quanGuoLianBao = $quanGuoLianBao; + } + + public function setSecondHand($secondHand) + { + $this->secondHand = $secondHand; + } + + public function setShangMenAnZhuang($shangMenAnZhuang) + { + $this->shangMenAnZhuang = $shangMenAnZhuang; + } + + public function setShipmentLimitSecond($shipmentLimitSecond) + { + $this->shipmentLimitSecond = $shipmentLimitSecond; + } + + public function setSizeSpecId($sizeSpecId) + { + $this->sizeSpecId = $sizeSpecId; + } + + public function setSkuList($skuList) + { + $this->skuList = $skuList; + } + + public function setSkuType($skuType) + { + $this->skuType = $skuType; + } + + public function setSongHuoAnZhuang($songHuoAnZhuang) + { + $this->songHuoAnZhuang = $songHuoAnZhuang; + } + + public function setSongHuoRuHu($songHuoRuHu) + { + $this->songHuoRuHu = $songHuoRuHu; + } + + public function setSyncGoodsOperate($syncGoodsOperate) + { + $this->syncGoodsOperate = $syncGoodsOperate; + } + + public function setTinyName($tinyName) + { + $this->tinyName = $tinyName; + } + + public function setWarehouse($warehouse) + { + $this->warehouse = $warehouse; + } + + public function setWarmTips($warmTips) + { + $this->warmTips = $warmTips; + } + + public function setZhiHuanBuXiu($zhiHuanBuXiu) + { + $this->zhiHuanBuXiu = $zhiHuanBuXiu; + } + +} + +class PddGoodsInformationUpdateRequest_CarouselVideoItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "file_id") + */ + private $fileId; + + /** + * @JsonProperty(String, "video_url") + */ + private $videoUrl; + + public function setFileId($fileId) + { + $this->fileId = $fileId; + } + + public function setVideoUrl($videoUrl) + { + $this->videoUrl = $videoUrl; + } + +} + +class PddGoodsInformationUpdateRequest_ElecGoodsAttributes extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "begin_time") + */ + private $beginTime; + + /** + * @JsonProperty(Integer, "days_time") + */ + private $daysTime; + + /** + * @JsonProperty(Long, "end_time") + */ + private $endTime; + + /** + * @JsonProperty(Integer, "time_type") + */ + private $timeType; + + public function setBeginTime($beginTime) + { + $this->beginTime = $beginTime; + } + + public function setDaysTime($daysTime) + { + $this->daysTime = $daysTime; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setTimeType($timeType) + { + $this->timeType = $timeType; + } + +} + +class PddGoodsInformationUpdateRequest_GoodsPropertiesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "group_id") + */ + private $groupId; + + /** + * @JsonProperty(String, "img_url") + */ + private $imgUrl; + + /** + * @JsonProperty(String, "note") + */ + private $note; + + /** + * @JsonProperty(Long, "parent_spec_id") + */ + private $parentSpecId; + + /** + * @JsonProperty(Long, "ref_pid") + */ + private $refPid; + + /** + * @JsonProperty(Long, "spec_id") + */ + private $specId; + + /** + * @JsonProperty(Long, "template_pid") + */ + private $templatePid; + + /** + * @JsonProperty(String, "value") + */ + private $value; + + /** + * @JsonProperty(String, "value_unit") + */ + private $valueUnit; + + /** + * @JsonProperty(Long, "vid") + */ + private $vid; + + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + + public function setImgUrl($imgUrl) + { + $this->imgUrl = $imgUrl; + } + + public function setNote($note) + { + $this->note = $note; + } + + public function setParentSpecId($parentSpecId) + { + $this->parentSpecId = $parentSpecId; + } + + public function setRefPid($refPid) + { + $this->refPid = $refPid; + } + + public function setSpecId($specId) + { + $this->specId = $specId; + } + + public function setTemplatePid($templatePid) + { + $this->templatePid = $templatePid; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setValueUnit($valueUnit) + { + $this->valueUnit = $valueUnit; + } + + public function setVid($vid) + { + $this->vid = $vid; + } + +} + +class PddGoodsInformationUpdateRequest_GoodsTradeAttr extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "advances_days") + */ + private $advancesDays; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_GoodsTradeAttrBookingNotes, "booking_notes") + */ + private $bookingNotes; + + /** + * @JsonProperty(Integer, "life_span") + */ + private $lifeSpan; + + public function setAdvancesDays($advancesDays) + { + $this->advancesDays = $advancesDays; + } + + public function setBookingNotes($bookingNotes) + { + $this->bookingNotes = $bookingNotes; + } + + public function setLifeSpan($lifeSpan) + { + $this->lifeSpan = $lifeSpan; + } + +} + +class PddGoodsInformationUpdateRequest_GoodsTradeAttrBookingNotes extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "url") + */ + private $url; + + public function setUrl($url) + { + $this->url = $url; + } + +} + +class PddGoodsInformationUpdateRequest_GoodsTravelAttr extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Boolean, "need_tourist") + */ + private $needTourist; + + /** + * @JsonProperty(Integer, "type") + */ + private $type; + + public function setNeedTourist($needTourist) + { + $this->needTourist = $needTourist; + } + + public function setType($type) + { + $this->type = $type; + } + +} + +class PddGoodsInformationUpdateRequest_OverseaGoods extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "bonded_warehouse_key") + */ + private $bondedWarehouseKey; + + /** + * @JsonProperty(Integer, "consumption_tax_rate") + */ + private $consumptionTaxRate; + + /** + * @JsonProperty(String, "customs_broker") + */ + private $customsBroker; + + /** + * @JsonProperty(String, "hs_code") + */ + private $hsCode; + + /** + * @JsonProperty(Integer, "value_added_tax_rate") + */ + private $valueAddedTaxRate; + + public function setBondedWarehouseKey($bondedWarehouseKey) + { + $this->bondedWarehouseKey = $bondedWarehouseKey; + } + + public function setConsumptionTaxRate($consumptionTaxRate) + { + $this->consumptionTaxRate = $consumptionTaxRate; + } + + public function setCustomsBroker($customsBroker) + { + $this->customsBroker = $customsBroker; + } + + public function setHsCode($hsCode) + { + $this->hsCode = $hsCode; + } + + public function setValueAddedTaxRate($valueAddedTaxRate) + { + $this->valueAddedTaxRate = $valueAddedTaxRate; + } + +} + +class PddGoodsInformationUpdateRequest_SkuListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "is_onsale") + */ + private $isOnsale; + + /** + * @JsonProperty(Long, "length") + */ + private $length; + + /** + * @JsonProperty(Long, "limit_quantity") + */ + private $limitQuantity; + + /** + * @JsonProperty(Long, "multi_price") + */ + private $multiPrice; + + /** + * @JsonProperty(String, "out_sku_sn") + */ + private $outSkuSn; + + /** + * @JsonProperty(String, "out_source_sku_id") + */ + private $outSourceSkuId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsInformationUpdateRequest_SkuListItemOverseaSku, "oversea_sku") + */ + private $overseaSku; + + /** + * @JsonProperty(Long, "price") + */ + private $price; + + /** + * @JsonProperty(Long, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(Long, "sku_id") + */ + private $skuId; + + /** + * @JsonProperty(String, "spec_id_list") + */ + private $specIdList; + + /** + * @JsonProperty(String, "thumb_url") + */ + private $thumbUrl; + + /** + * @JsonProperty(Long, "weight") + */ + private $weight; + + public function setIsOnsale($isOnsale) + { + $this->isOnsale = $isOnsale; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setLimitQuantity($limitQuantity) + { + $this->limitQuantity = $limitQuantity; + } + + public function setMultiPrice($multiPrice) + { + $this->multiPrice = $multiPrice; + } + + public function setOutSkuSn($outSkuSn) + { + $this->outSkuSn = $outSkuSn; + } + + public function setOutSourceSkuId($outSourceSkuId) + { + $this->outSourceSkuId = $outSourceSkuId; + } + + public function setOverseaSku($overseaSku) + { + $this->overseaSku = $overseaSku; + } + + public function setPrice($price) + { + $this->price = $price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setSkuId($skuId) + { + $this->skuId = $skuId; + } + + public function setSpecIdList($specIdList) + { + $this->specIdList = $specIdList; + } + + public function setThumbUrl($thumbUrl) + { + $this->thumbUrl = $thumbUrl; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + +} + +class PddGoodsInformationUpdateRequest_SkuListItemOverseaSku extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "measurement_code") + */ + private $measurementCode; + + /** + * @JsonProperty(String, "specifications") + */ + private $specifications; + + /** + * @JsonProperty(Integer, "taxation") + */ + private $taxation; + + public function setMeasurementCode($measurementCode) + { + $this->measurementCode = $measurementCode; + } + + public function setSpecifications($specifications) + { + $this->specifications = $specifications; + } + + public function setTaxation($taxation) + { + $this->taxation = $taxation; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLatestCommitStatusGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLatestCommitStatusGetRequest.php index 7c313d7..a326de7 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLatestCommitStatusGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLatestCommitStatusGetRequest.php @@ -1,44 +1,44 @@ -, "goods_id_list") - */ - private $goodsIdList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "goods_id_list", $this->goodsIdList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.latest.commit.status.get"; - } - - public function setGoodsIdList($goodsIdList) - { - $this->goodsIdList = $goodsIdList; - } - -} +, "goods_id_list") + */ + private $goodsIdList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "goods_id_list", $this->goodsIdList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.latest.commit.status.get"; + } + + public function setGoodsIdList($goodsIdList) + { + $this->goodsIdList = $goodsIdList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsListGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsListGetRequest.php index 70e053f..3210be5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsListGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsListGetRequest.php @@ -1,110 +1,110 @@ -setUserParam($params, "outer_id", $this->outerId); - $this->setUserParam($params, "is_onsale", $this->isOnsale); - $this->setUserParam($params, "goods_name", $this->goodsName); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "outer_goods_id", $this->outerGoodsId); - $this->setUserParam($params, "cost_template_id", $this->costTemplateId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.list.get"; - } - - public function setOuterId($outerId) - { - $this->outerId = $outerId; - } - - public function setIsOnsale($isOnsale) - { - $this->isOnsale = $isOnsale; - } - - public function setGoodsName($goodsName) - { - $this->goodsName = $goodsName; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setOuterGoodsId($outerGoodsId) - { - $this->outerGoodsId = $outerGoodsId; - } - - public function setCostTemplateId($costTemplateId) - { - $this->costTemplateId = $costTemplateId; - } - -} +setUserParam($params, "outer_id", $this->outerId); + $this->setUserParam($params, "is_onsale", $this->isOnsale); + $this->setUserParam($params, "goods_name", $this->goodsName); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "outer_goods_id", $this->outerGoodsId); + $this->setUserParam($params, "cost_template_id", $this->costTemplateId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.list.get"; + } + + public function setOuterId($outerId) + { + $this->outerId = $outerId; + } + + public function setIsOnsale($isOnsale) + { + $this->isOnsale = $isOnsale; + } + + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setOuterGoodsId($outerGoodsId) + { + $this->outerGoodsId = $outerGoodsId; + } + + public function setCostTemplateId($costTemplateId) + { + $this->costTemplateId = $costTemplateId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateCreateRequest.php index f251e4e..19b3e74 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateCreateRequest.php @@ -1,258 +1,258 @@ -, "service_area_list") - */ - private $serviceAreaList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateCreateRequest_CatListItem>, "cat_list") - */ - private $catList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "template_type", $this->templateType); - $this->setUserParam($params, "template_name", $this->templateName); - $this->setUserParam($params, "price_unit", $this->priceUnit); - $this->setUserParam($params, "service_area_list", $this->serviceAreaList); - $this->setUserParam($params, "cat_list", $this->catList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.logistics.ser.template.create"; - } - - public function setTemplateType($templateType) - { - $this->templateType = $templateType; - } - - public function setTemplateName($templateName) - { - $this->templateName = $templateName; - } - - public function setPriceUnit($priceUnit) - { - $this->priceUnit = $priceUnit; - } - - public function setServiceAreaList($serviceAreaList) - { - $this->serviceAreaList = $serviceAreaList; - } - - public function setCatList($catList) - { - $this->catList = $catList; - } - -} - -class PddGoodsLogisticsSerTemplateCreateRequest_ServiceAreaListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "value") - */ - private $value; - - /** - * @JsonProperty(String, "district_id") - */ - private $districtId; - - /** - * @JsonProperty(String, "city_id") - */ - private $cityId; - - /** - * @JsonProperty(String, "province_id") - */ - private $provinceId; - - public function setValue($value) - { - $this->value = $value; - } - - public function setDistrictId($districtId) - { - $this->districtId = $districtId; - } - - public function setCityId($cityId) - { - $this->cityId = $cityId; - } - - public function setProvinceId($provinceId) - { - $this->provinceId = $provinceId; - } - -} - -class PddGoodsLogisticsSerTemplateCreateRequest_CatListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateCreateRequest_CatListItemListItem>, "list") - */ - private $list; - - /** - * @JsonProperty(Long, "cat_id4") - */ - private $catId4; - - /** - * @JsonProperty(Long, "cat_id3") - */ - private $catId3; - - public function setList($list) - { - $this->list = $list; - } - - public function setCatId4($catId4) - { - $this->catId4 = $catId4; - } - - public function setCatId3($catId3) - { - $this->catId3 = $catId3; - } - -} - -class PddGoodsLogisticsSerTemplateCreateRequest_CatListItemListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateCreateRequest_CatListItemListItemContentItem>, "content") - */ - private $content; - - /** - * @JsonProperty(Long, "value") - */ - private $value; - - /** - * @JsonProperty(Integer, "limit_type") - */ - private $limitType; - - public function setContent($content) - { - $this->content = $content; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setLimitType($limitType) - { - $this->limitType = $limitType; - } - -} - -class PddGoodsLogisticsSerTemplateCreateRequest_CatListItemListItemContentItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "price") - */ - private $price; - - /** - * @JsonProperty(Long, "max_pro") - */ - private $maxPro; - - /** - * @JsonProperty(Long, "min_pro") - */ - private $minPro; - - public function setPrice($price) - { - $this->price = $price; - } - - public function setMaxPro($maxPro) - { - $this->maxPro = $maxPro; - } - - public function setMinPro($minPro) - { - $this->minPro = $minPro; - } - -} +, "service_area_list") + */ + private $serviceAreaList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateCreateRequest_CatListItem>, "cat_list") + */ + private $catList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "template_type", $this->templateType); + $this->setUserParam($params, "template_name", $this->templateName); + $this->setUserParam($params, "price_unit", $this->priceUnit); + $this->setUserParam($params, "service_area_list", $this->serviceAreaList); + $this->setUserParam($params, "cat_list", $this->catList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.logistics.ser.template.create"; + } + + public function setTemplateType($templateType) + { + $this->templateType = $templateType; + } + + public function setTemplateName($templateName) + { + $this->templateName = $templateName; + } + + public function setPriceUnit($priceUnit) + { + $this->priceUnit = $priceUnit; + } + + public function setServiceAreaList($serviceAreaList) + { + $this->serviceAreaList = $serviceAreaList; + } + + public function setCatList($catList) + { + $this->catList = $catList; + } + +} + +class PddGoodsLogisticsSerTemplateCreateRequest_ServiceAreaListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "value") + */ + private $value; + + /** + * @JsonProperty(String, "district_id") + */ + private $districtId; + + /** + * @JsonProperty(String, "city_id") + */ + private $cityId; + + /** + * @JsonProperty(String, "province_id") + */ + private $provinceId; + + public function setValue($value) + { + $this->value = $value; + } + + public function setDistrictId($districtId) + { + $this->districtId = $districtId; + } + + public function setCityId($cityId) + { + $this->cityId = $cityId; + } + + public function setProvinceId($provinceId) + { + $this->provinceId = $provinceId; + } + +} + +class PddGoodsLogisticsSerTemplateCreateRequest_CatListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateCreateRequest_CatListItemListItem>, "list") + */ + private $list; + + /** + * @JsonProperty(Long, "cat_id4") + */ + private $catId4; + + /** + * @JsonProperty(Long, "cat_id3") + */ + private $catId3; + + public function setList($list) + { + $this->list = $list; + } + + public function setCatId4($catId4) + { + $this->catId4 = $catId4; + } + + public function setCatId3($catId3) + { + $this->catId3 = $catId3; + } + +} + +class PddGoodsLogisticsSerTemplateCreateRequest_CatListItemListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateCreateRequest_CatListItemListItemContentItem>, "content") + */ + private $content; + + /** + * @JsonProperty(Long, "value") + */ + private $value; + + /** + * @JsonProperty(Integer, "limit_type") + */ + private $limitType; + + public function setContent($content) + { + $this->content = $content; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setLimitType($limitType) + { + $this->limitType = $limitType; + } + +} + +class PddGoodsLogisticsSerTemplateCreateRequest_CatListItemListItemContentItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "price") + */ + private $price; + + /** + * @JsonProperty(Long, "max_pro") + */ + private $maxPro; + + /** + * @JsonProperty(Long, "min_pro") + */ + private $minPro; + + public function setPrice($price) + { + $this->price = $price; + } + + public function setMaxPro($maxPro) + { + $this->maxPro = $maxPro; + } + + public function setMinPro($minPro) + { + $this->minPro = $minPro; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateDeleteRequest.php index 574aeb8..8310422 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateDeleteRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "template_id", $this->templateId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.logistics.ser.template.delete"; - } - - public function setTemplateId($templateId) - { - $this->templateId = $templateId; - } - -} +setUserParam($params, "template_id", $this->templateId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.logistics.ser.template.delete"; + } + + public function setTemplateId($templateId) + { + $this->templateId = $templateId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateDetailRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateDetailRequest.php index 23bdef0..aa77c64 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateDetailRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateDetailRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "template_id", $this->templateId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.logistics.ser.template.detail"; - } - - public function setTemplateId($templateId) - { - $this->templateId = $templateId; - } - -} +setUserParam($params, "template_id", $this->templateId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.logistics.ser.template.detail"; + } + + public function setTemplateId($templateId) + { + $this->templateId = $templateId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateListRequest.php index 288a270..a9f46a5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateListRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "template_type", $this->templateType); - $this->setUserParam($params, "start", $this->start); - $this->setUserParam($params, "length", $this->length); - $this->setUserParam($params, "query_type", $this->queryType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.logistics.ser.template.list"; - } - - public function setTemplateType($templateType) - { - $this->templateType = $templateType; - } - - public function setStart($start) - { - $this->start = $start; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setQueryType($queryType) - { - $this->queryType = $queryType; - } - -} +setUserParam($params, "template_type", $this->templateType); + $this->setUserParam($params, "start", $this->start); + $this->setUserParam($params, "length", $this->length); + $this->setUserParam($params, "query_type", $this->queryType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.logistics.ser.template.list"; + } + + public function setTemplateType($templateType) + { + $this->templateType = $templateType; + } + + public function setStart($start) + { + $this->start = $start; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setQueryType($queryType) + { + $this->queryType = $queryType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateUpdateRequest.php index a53283b..3242986 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsSerTemplateUpdateRequest.php @@ -1,269 +1,269 @@ -, "service_area_list") - */ - private $serviceAreaList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItem>, "cat_list") - */ - private $catList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "template_id", $this->templateId); - $this->setUserParam($params, "template_type", $this->templateType); - $this->setUserParam($params, "template_name", $this->templateName); - $this->setUserParam($params, "price_unit", $this->priceUnit); - $this->setUserParam($params, "service_area_list", $this->serviceAreaList); - $this->setUserParam($params, "cat_list", $this->catList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.logistics.ser.template.update"; - } - - public function setTemplateId($templateId) - { - $this->templateId = $templateId; - } - - public function setTemplateType($templateType) - { - $this->templateType = $templateType; - } - - public function setTemplateName($templateName) - { - $this->templateName = $templateName; - } - - public function setPriceUnit($priceUnit) - { - $this->priceUnit = $priceUnit; - } - - public function setServiceAreaList($serviceAreaList) - { - $this->serviceAreaList = $serviceAreaList; - } - - public function setCatList($catList) - { - $this->catList = $catList; - } - -} - -class PddGoodsLogisticsSerTemplateUpdateRequest_ServiceAreaListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "value") - */ - private $value; - - /** - * @JsonProperty(String, "district_id") - */ - private $districtId; - - /** - * @JsonProperty(String, "city_id") - */ - private $cityId; - - /** - * @JsonProperty(String, "province_id") - */ - private $provinceId; - - public function setValue($value) - { - $this->value = $value; - } - - public function setDistrictId($districtId) - { - $this->districtId = $districtId; - } - - public function setCityId($cityId) - { - $this->cityId = $cityId; - } - - public function setProvinceId($provinceId) - { - $this->provinceId = $provinceId; - } - -} - -class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItem>, "list") - */ - private $list; - - /** - * @JsonProperty(Long, "cat_id4") - */ - private $catId4; - - /** - * @JsonProperty(Long, "cat_id3") - */ - private $catId3; - - public function setList($list) - { - $this->list = $list; - } - - public function setCatId4($catId4) - { - $this->catId4 = $catId4; - } - - public function setCatId3($catId3) - { - $this->catId3 = $catId3; - } - -} - -class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItemContentItem>, "content") - */ - private $content; - - /** - * @JsonProperty(Long, "value") - */ - private $value; - - /** - * @JsonProperty(Integer, "limit_type") - */ - private $limitType; - - public function setContent($content) - { - $this->content = $content; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setLimitType($limitType) - { - $this->limitType = $limitType; - } - -} - -class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItemContentItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "price") - */ - private $price; - - /** - * @JsonProperty(Long, "max_pro") - */ - private $maxPro; - - /** - * @JsonProperty(Long, "min_pro") - */ - private $minPro; - - public function setPrice($price) - { - $this->price = $price; - } - - public function setMaxPro($maxPro) - { - $this->maxPro = $maxPro; - } - - public function setMinPro($minPro) - { - $this->minPro = $minPro; - } - -} +, "service_area_list") + */ + private $serviceAreaList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItem>, "cat_list") + */ + private $catList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "template_id", $this->templateId); + $this->setUserParam($params, "template_type", $this->templateType); + $this->setUserParam($params, "template_name", $this->templateName); + $this->setUserParam($params, "price_unit", $this->priceUnit); + $this->setUserParam($params, "service_area_list", $this->serviceAreaList); + $this->setUserParam($params, "cat_list", $this->catList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.logistics.ser.template.update"; + } + + public function setTemplateId($templateId) + { + $this->templateId = $templateId; + } + + public function setTemplateType($templateType) + { + $this->templateType = $templateType; + } + + public function setTemplateName($templateName) + { + $this->templateName = $templateName; + } + + public function setPriceUnit($priceUnit) + { + $this->priceUnit = $priceUnit; + } + + public function setServiceAreaList($serviceAreaList) + { + $this->serviceAreaList = $serviceAreaList; + } + + public function setCatList($catList) + { + $this->catList = $catList; + } + +} + +class PddGoodsLogisticsSerTemplateUpdateRequest_ServiceAreaListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "value") + */ + private $value; + + /** + * @JsonProperty(String, "district_id") + */ + private $districtId; + + /** + * @JsonProperty(String, "city_id") + */ + private $cityId; + + /** + * @JsonProperty(String, "province_id") + */ + private $provinceId; + + public function setValue($value) + { + $this->value = $value; + } + + public function setDistrictId($districtId) + { + $this->districtId = $districtId; + } + + public function setCityId($cityId) + { + $this->cityId = $cityId; + } + + public function setProvinceId($provinceId) + { + $this->provinceId = $provinceId; + } + +} + +class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItem>, "list") + */ + private $list; + + /** + * @JsonProperty(Long, "cat_id4") + */ + private $catId4; + + /** + * @JsonProperty(Long, "cat_id3") + */ + private $catId3; + + public function setList($list) + { + $this->list = $list; + } + + public function setCatId4($catId4) + { + $this->catId4 = $catId4; + } + + public function setCatId3($catId3) + { + $this->catId3 = $catId3; + } + +} + +class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItemContentItem>, "content") + */ + private $content; + + /** + * @JsonProperty(Long, "value") + */ + private $value; + + /** + * @JsonProperty(Integer, "limit_type") + */ + private $limitType; + + public function setContent($content) + { + $this->content = $content; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setLimitType($limitType) + { + $this->limitType = $limitType; + } + +} + +class PddGoodsLogisticsSerTemplateUpdateRequest_CatListItemListItemContentItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "price") + */ + private $price; + + /** + * @JsonProperty(Long, "max_pro") + */ + private $maxPro; + + /** + * @JsonProperty(Long, "min_pro") + */ + private $minPro; + + public function setPrice($price) + { + $this->price = $price; + } + + public function setMaxPro($maxPro) + { + $this->maxPro = $maxPro; + } + + public function setMinPro($minPro) + { + $this->minPro = $minPro; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsTemplateCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsTemplateCreateRequest.php index 9713c2e..2402c5e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsTemplateCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsTemplateCreateRequest.php @@ -1,250 +1,250 @@ -, "cost_template_list") - */ - private $costTemplateList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsTemplateCreateRequest_FreeProvinceListItem>, "free_province_list") - */ - private $freeProvinceList; - - /** - * @JsonProperty(Integer, "cost_type") - */ - private $costType; - - /** - * @JsonProperty(String, "template_name") - */ - private $templateName; - - /** - * @JsonProperty(Integer, "province_id") - */ - private $provinceId; - - /** - * @JsonProperty(Integer, "city_id") - */ - private $cityId; - - /** - * @JsonProperty(Integer, "district_id") - */ - private $districtId; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "cost_template_list", $this->costTemplateList); - $this->setUserParam($params, "free_province_list", $this->freeProvinceList); - $this->setUserParam($params, "cost_type", $this->costType); - $this->setUserParam($params, "template_name", $this->templateName); - $this->setUserParam($params, "province_id", $this->provinceId); - $this->setUserParam($params, "city_id", $this->cityId); - $this->setUserParam($params, "district_id", $this->districtId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.logistics.template.create"; - } - - public function setCostTemplateList($costTemplateList) - { - $this->costTemplateList = $costTemplateList; - } - - public function setFreeProvinceList($freeProvinceList) - { - $this->freeProvinceList = $freeProvinceList; - } - - public function setCostType($costType) - { - $this->costType = $costType; - } - - public function setTemplateName($templateName) - { - $this->templateName = $templateName; - } - - public function setProvinceId($provinceId) - { - $this->provinceId = $provinceId; - } - - public function setCityId($cityId) - { - $this->cityId = $cityId; - } - - public function setDistrictId($districtId) - { - $this->districtId = $districtId; - } - -} - -class PddGoodsLogisticsTemplateCreateRequest_CostTemplateListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "first_standard") - */ - private $firstStandard; - - /** - * @JsonProperty(Long, "first_cost") - */ - private $firstCost; - - /** - * @JsonProperty(Long, "add_standard") - */ - private $addStandard; - - /** - * @JsonProperty(Long, "add_cost") - */ - private $addCost; - - /** - * @JsonProperty(Boolean, "is_have_free_min_count") - */ - private $isHaveFreeMinCount; - - /** - * @JsonProperty(Integer, "have_free_min_count") - */ - private $haveFreeMinCount; - - /** - * @JsonProperty(Boolean, "is_have_free_min_amount") - */ - private $isHaveFreeMinAmount; - - /** - * @JsonProperty(Long, "have_free_min_amount") - */ - private $haveFreeMinAmount; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsTemplateCreateRequest_CostTemplateListItemCostProvinceListItem>, "cost_province_list") - */ - private $costProvinceList; - - public function setFirstStandard($firstStandard) - { - $this->firstStandard = $firstStandard; - } - - public function setFirstCost($firstCost) - { - $this->firstCost = $firstCost; - } - - public function setAddStandard($addStandard) - { - $this->addStandard = $addStandard; - } - - public function setAddCost($addCost) - { - $this->addCost = $addCost; - } - - public function setIsHaveFreeMinCount($isHaveFreeMinCount) - { - $this->isHaveFreeMinCount = $isHaveFreeMinCount; - } - - public function setHaveFreeMinCount($haveFreeMinCount) - { - $this->haveFreeMinCount = $haveFreeMinCount; - } - - public function setIsHaveFreeMinAmount($isHaveFreeMinAmount) - { - $this->isHaveFreeMinAmount = $isHaveFreeMinAmount; - } - - public function setHaveFreeMinAmount($haveFreeMinAmount) - { - $this->haveFreeMinAmount = $haveFreeMinAmount; - } - - public function setCostProvinceList($costProvinceList) - { - $this->costProvinceList = $costProvinceList; - } - -} - -class PddGoodsLogisticsTemplateCreateRequest_CostTemplateListItemCostProvinceListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "province_id") - */ - private $provinceId; - - public function setProvinceId($provinceId) - { - $this->provinceId = $provinceId; - } - -} - -class PddGoodsLogisticsTemplateCreateRequest_FreeProvinceListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "province_id") - */ - private $provinceId; - - public function setProvinceId($provinceId) - { - $this->provinceId = $provinceId; - } - -} +, "cost_template_list") + */ + private $costTemplateList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsTemplateCreateRequest_FreeProvinceListItem>, "free_province_list") + */ + private $freeProvinceList; + + /** + * @JsonProperty(Integer, "cost_type") + */ + private $costType; + + /** + * @JsonProperty(String, "template_name") + */ + private $templateName; + + /** + * @JsonProperty(Integer, "province_id") + */ + private $provinceId; + + /** + * @JsonProperty(Integer, "city_id") + */ + private $cityId; + + /** + * @JsonProperty(Integer, "district_id") + */ + private $districtId; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "cost_template_list", $this->costTemplateList); + $this->setUserParam($params, "free_province_list", $this->freeProvinceList); + $this->setUserParam($params, "cost_type", $this->costType); + $this->setUserParam($params, "template_name", $this->templateName); + $this->setUserParam($params, "province_id", $this->provinceId); + $this->setUserParam($params, "city_id", $this->cityId); + $this->setUserParam($params, "district_id", $this->districtId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.logistics.template.create"; + } + + public function setCostTemplateList($costTemplateList) + { + $this->costTemplateList = $costTemplateList; + } + + public function setFreeProvinceList($freeProvinceList) + { + $this->freeProvinceList = $freeProvinceList; + } + + public function setCostType($costType) + { + $this->costType = $costType; + } + + public function setTemplateName($templateName) + { + $this->templateName = $templateName; + } + + public function setProvinceId($provinceId) + { + $this->provinceId = $provinceId; + } + + public function setCityId($cityId) + { + $this->cityId = $cityId; + } + + public function setDistrictId($districtId) + { + $this->districtId = $districtId; + } + +} + +class PddGoodsLogisticsTemplateCreateRequest_CostTemplateListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "first_standard") + */ + private $firstStandard; + + /** + * @JsonProperty(Long, "first_cost") + */ + private $firstCost; + + /** + * @JsonProperty(Long, "add_standard") + */ + private $addStandard; + + /** + * @JsonProperty(Long, "add_cost") + */ + private $addCost; + + /** + * @JsonProperty(Boolean, "is_have_free_min_count") + */ + private $isHaveFreeMinCount; + + /** + * @JsonProperty(Integer, "have_free_min_count") + */ + private $haveFreeMinCount; + + /** + * @JsonProperty(Boolean, "is_have_free_min_amount") + */ + private $isHaveFreeMinAmount; + + /** + * @JsonProperty(Long, "have_free_min_amount") + */ + private $haveFreeMinAmount; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsLogisticsTemplateCreateRequest_CostTemplateListItemCostProvinceListItem>, "cost_province_list") + */ + private $costProvinceList; + + public function setFirstStandard($firstStandard) + { + $this->firstStandard = $firstStandard; + } + + public function setFirstCost($firstCost) + { + $this->firstCost = $firstCost; + } + + public function setAddStandard($addStandard) + { + $this->addStandard = $addStandard; + } + + public function setAddCost($addCost) + { + $this->addCost = $addCost; + } + + public function setIsHaveFreeMinCount($isHaveFreeMinCount) + { + $this->isHaveFreeMinCount = $isHaveFreeMinCount; + } + + public function setHaveFreeMinCount($haveFreeMinCount) + { + $this->haveFreeMinCount = $haveFreeMinCount; + } + + public function setIsHaveFreeMinAmount($isHaveFreeMinAmount) + { + $this->isHaveFreeMinAmount = $isHaveFreeMinAmount; + } + + public function setHaveFreeMinAmount($haveFreeMinAmount) + { + $this->haveFreeMinAmount = $haveFreeMinAmount; + } + + public function setCostProvinceList($costProvinceList) + { + $this->costProvinceList = $costProvinceList; + } + +} + +class PddGoodsLogisticsTemplateCreateRequest_CostTemplateListItemCostProvinceListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "province_id") + */ + private $provinceId; + + public function setProvinceId($provinceId) + { + $this->provinceId = $provinceId; + } + +} + +class PddGoodsLogisticsTemplateCreateRequest_FreeProvinceListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "province_id") + */ + private $provinceId; + + public function setProvinceId($provinceId) + { + $this->provinceId = $provinceId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsTemplateGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsTemplateGetRequest.php index f6e5bce..b746314 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsTemplateGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsLogisticsTemplateGetRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.logistics.template.get"; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - -} +setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.logistics.template.get"; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialCreateRequest.php index 258619d..c31f908 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialCreateRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "content", $this->content); - $this->setUserParam($params, "file_id", $this->fileId); - $this->setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "material_type", $this->materialType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.material.create"; - } - - public function setContent($content) - { - $this->content = $content; - } - - public function setFileId($fileId) - { - $this->fileId = $fileId; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setMaterialType($materialType) - { - $this->materialType = $materialType; - } - -} +setUserParam($params, "content", $this->content); + $this->setUserParam($params, "file_id", $this->fileId); + $this->setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "material_type", $this->materialType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.material.create"; + } + + public function setContent($content) + { + $this->content = $content; + } + + public function setFileId($fileId) + { + $this->fileId = $fileId; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setMaterialType($materialType) + { + $this->materialType = $materialType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialDeleteRequest.php index 1332cd2..90c83f5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialDeleteRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "material_id", $this->materialId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.material.delete"; - } - - public function setMaterialId($materialId) - { - $this->materialId = $materialId; - } - -} +setUserParam($params, "material_id", $this->materialId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.material.delete"; + } + + public function setMaterialId($materialId) + { + $this->materialId = $materialId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialQueryRequest.php index 79cd1e3..ec24a66 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsMaterialQueryRequest.php @@ -1,55 +1,55 @@ -, "goods_id_list") - */ - private $goodsIdList; - - /** - * @JsonProperty(List, "type_list") - */ - private $typeList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "goods_id_list", $this->goodsIdList); - $this->setUserParam($params, "type_list", $this->typeList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.material.query"; - } - - public function setGoodsIdList($goodsIdList) - { - $this->goodsIdList = $goodsIdList; - } - - public function setTypeList($typeList) - { - $this->typeList = $typeList; - } - -} +, "goods_id_list") + */ + private $goodsIdList; + + /** + * @JsonProperty(List, "type_list") + */ + private $typeList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "goods_id_list", $this->goodsIdList); + $this->setUserParam($params, "type_list", $this->typeList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.material.query"; + } + + public function setGoodsIdList($goodsIdList) + { + $this->goodsIdList = $goodsIdList; + } + + public function setTypeList($typeList) + { + $this->typeList = $typeList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOptGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOptGetRequest.php index 10e2888..3caa776 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOptGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOptGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "parent_opt_id", $this->parentOptId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.opt.get"; - } - - public function setParentOptId($parentOptId) - { - $this->parentOptId = $parentOptId; - } - -} +setUserParam($params, "parent_opt_id", $this->parentOptId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.opt.get"; + } + + public function setParentOptId($parentOptId) + { + $this->parentOptId = $parentOptId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOutPropertyMappingGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOutPropertyMappingGetRequest.php index 78c0190..8d6747f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOutPropertyMappingGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOutPropertyMappingGetRequest.php @@ -1,66 +1,66 @@ -setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "out_property_name", $this->outPropertyName); - $this->setUserParam($params, "out_property_value_name", $this->outPropertyValueName); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.out.property.mapping.get"; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setOutPropertyName($outPropertyName) - { - $this->outPropertyName = $outPropertyName; - } - - public function setOutPropertyValueName($outPropertyValueName) - { - $this->outPropertyValueName = $outPropertyValueName; - } - -} +setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "out_property_name", $this->outPropertyName); + $this->setUserParam($params, "out_property_value_name", $this->outPropertyValueName); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.out.property.mapping.get"; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setOutPropertyName($outPropertyName) + { + $this->outPropertyName = $outPropertyName; + } + + public function setOutPropertyValueName($outPropertyValueName) + { + $this->outPropertyValueName = $outPropertyValueName; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOuterCatMappingGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOuterCatMappingGetRequest.php index f3be45b..e4a58ca 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOuterCatMappingGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsOuterCatMappingGetRequest.php @@ -1,66 +1,66 @@ -setUserParam($params, "outer_cat_id", $this->outerCatId); - $this->setUserParam($params, "outer_cat_name", $this->outerCatName); - $this->setUserParam($params, "outer_goods_name", $this->outerGoodsName); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.outer.cat.mapping.get"; - } - - public function setOuterCatId($outerCatId) - { - $this->outerCatId = $outerCatId; - } - - public function setOuterCatName($outerCatName) - { - $this->outerCatName = $outerCatName; - } - - public function setOuterGoodsName($outerGoodsName) - { - $this->outerGoodsName = $outerGoodsName; - } - -} +setUserParam($params, "outer_cat_id", $this->outerCatId); + $this->setUserParam($params, "outer_cat_name", $this->outerCatName); + $this->setUserParam($params, "outer_goods_name", $this->outerGoodsName); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.outer.cat.mapping.get"; + } + + public function setOuterCatId($outerCatId) + { + $this->outerCatId = $outerCatId; + } + + public function setOuterCatName($outerCatName) + { + $this->outerCatName = $outerCatName; + } + + public function setOuterGoodsName($outerGoodsName) + { + $this->outerGoodsName = $outerGoodsName; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsQuantityUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsQuantityUpdateRequest.php index d462ee8..9a9043a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsQuantityUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsQuantityUpdateRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "quantity", $this->quantity); - $this->setUserParam($params, "sku_id", $this->skuId); - $this->setUserParam($params, "outer_id", $this->outerId); - $this->setUserParam($params, "update_type", $this->updateType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.quantity.update"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } - - public function setOuterId($outerId) - { - $this->outerId = $outerId; - } - - public function setUpdateType($updateType) - { - $this->updateType = $updateType; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "quantity", $this->quantity); + $this->setUserParam($params, "sku_id", $this->skuId); + $this->setUserParam($params, "outer_id", $this->outerId); + $this->setUserParam($params, "update_type", $this->updateType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.quantity.update"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setSkuId($skuId) + { + $this->skuId = $skuId; + } + + public function setOuterId($outerId) + { + $this->outerId = $outerId; + } + + public function setUpdateType($updateType) + { + $this->updateType = $updateType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSaleStatusSetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSaleStatusSetRequest.php index e4885ca..ae41f86 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSaleStatusSetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSaleStatusSetRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "is_onsale", $this->isOnsale); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.sale.status.set"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setIsOnsale($isOnsale) - { - $this->isOnsale = $isOnsale; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "is_onsale", $this->isOnsale); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.sale.status.set"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setIsOnsale($isOnsale) + { + $this->isOnsale = $isOnsale; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecClassGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecClassGetRequest.php index 97dfa69..47f9941 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecClassGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecClassGetRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "class_id", $this->classId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.sizespec.meta.get"; - } - - public function setClassId($classId) - { - $this->classId = $classId; - } - -} +setUserParam($params, "class_id", $this->classId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.sizespec.meta.get"; + } + + public function setClassId($classId) + { + $this->classId = $classId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateAddRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateAddRequest.php index fe06efa..4dd7812 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateAddRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateAddRequest.php @@ -1,224 +1,224 @@ -setUserParam($params, "size_spec_dto", $this->sizeSpecDto); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.sizespec.template.add"; - } - - public function setSizeSpecDto($sizeSpecDto) - { - $this->sizeSpecDto = $sizeSpecDto; - } - -} - -class PddGoodsSizespecTemplateAddRequest_SizeSpecDto extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "class_id") - */ - private $classId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContent, "content") - */ - private $content; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setClassId($classId) - { - $this->classId = $classId; - } - - public function setContent($content) - { - $this->content = $content; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContent extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMeta, "meta") - */ - private $meta; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentRecordsItem>, "records") - */ - private $records; - - public function setMeta($meta) - { - $this->meta = $meta; - } - - public function setRecords($records) - { - $this->records = $records; - } - -} - -class PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMeta extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMetaElementsItem>, "elements") - */ - private $elements; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMetaGroupsItem>, "groups") - */ - private $groups; - - public function setElements($elements) - { - $this->elements = $elements; - } - - public function setGroups($groups) - { - $this->groups = $groups; - } - -} - -class PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMetaElementsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "id") - */ - private $id; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setId($id) - { - $this->id = $id; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMetaGroupsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "id") - */ - private $id; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setId($id) - { - $this->id = $id; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentRecordsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_tring, String>, "values") - */ - private $values; - - public function setValues($values) - { - $this->values = $values; - } - -} +setUserParam($params, "size_spec_dto", $this->sizeSpecDto); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.sizespec.template.add"; + } + + public function setSizeSpecDto($sizeSpecDto) + { + $this->sizeSpecDto = $sizeSpecDto; + } + +} + +class PddGoodsSizespecTemplateAddRequest_SizeSpecDto extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "class_id") + */ + private $classId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContent, "content") + */ + private $content; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setClassId($classId) + { + $this->classId = $classId; + } + + public function setContent($content) + { + $this->content = $content; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContent extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMeta, "meta") + */ + private $meta; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentRecordsItem>, "records") + */ + private $records; + + public function setMeta($meta) + { + $this->meta = $meta; + } + + public function setRecords($records) + { + $this->records = $records; + } + +} + +class PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMeta extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMetaElementsItem>, "elements") + */ + private $elements; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMetaGroupsItem>, "groups") + */ + private $groups; + + public function setElements($elements) + { + $this->elements = $elements; + } + + public function setGroups($groups) + { + $this->groups = $groups; + } + +} + +class PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMetaElementsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "id") + */ + private $id; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setId($id) + { + $this->id = $id; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentMetaGroupsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "id") + */ + private $id; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setId($id) + { + $this->id = $id; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddGoodsSizespecTemplateAddRequest_SizeSpecDtoContentRecordsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateAddRequest_tring, String>, "values") + */ + private $values; + + public function setValues($values) + { + $this->values = $values; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateDeleteRequest.php index 2aa58bf..f8ad250 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateDeleteRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "id", $this->id); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.sizespec.template.delete"; - } - - public function setId($id) - { - $this->id = $id; - } - -} +setUserParam($params, "id", $this->id); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.sizespec.template.delete"; + } + + public function setId($id) + { + $this->id = $id; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateGetRequest.php index 8e00e32..c57e2be 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "id", $this->id); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.sizespec.template.get"; - } - - public function setId($id) - { - $this->id = $id; - } - -} +setUserParam($params, "id", $this->id); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.sizespec.template.get"; + } + + public function setId($id) + { + $this->id = $id; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateUpdateRequest.php index e148b83..0f91cdd 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplateUpdateRequest.php @@ -1,234 +1,234 @@ -setUserParam($params, "size_spec_dto", $this->sizeSpecDto); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.sizespec.template.update"; - } - - public function setSizeSpecDto($sizeSpecDto) - { - $this->sizeSpecDto = $sizeSpecDto; - } - -} - -class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDto extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "class_id") - */ - private $classId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContent, "content") - */ - private $content; - - /** - * @JsonProperty(Long, "id") - */ - private $id; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setClassId($classId) - { - $this->classId = $classId; - } - - public function setContent($content) - { - $this->content = $content; - } - - public function setId($id) - { - $this->id = $id; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContent extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMeta, "meta") - */ - private $meta; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentRecordsItem>, "records") - */ - private $records; - - public function setMeta($meta) - { - $this->meta = $meta; - } - - public function setRecords($records) - { - $this->records = $records; - } - -} - -class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMeta extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMetaElementsItem>, "elements") - */ - private $elements; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMetaGroupsItem>, "groups") - */ - private $groups; - - public function setElements($elements) - { - $this->elements = $elements; - } - - public function setGroups($groups) - { - $this->groups = $groups; - } - -} - -class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMetaElementsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "id") - */ - private $id; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setId($id) - { - $this->id = $id; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMetaGroupsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "id") - */ - private $id; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setId($id) - { - $this->id = $id; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentRecordsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_tring, String>, "values") - */ - private $values; - - public function setValues($values) - { - $this->values = $values; - } - -} +setUserParam($params, "size_spec_dto", $this->sizeSpecDto); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.sizespec.template.update"; + } + + public function setSizeSpecDto($sizeSpecDto) + { + $this->sizeSpecDto = $sizeSpecDto; + } + +} + +class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDto extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "class_id") + */ + private $classId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContent, "content") + */ + private $content; + + /** + * @JsonProperty(Long, "id") + */ + private $id; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setClassId($classId) + { + $this->classId = $classId; + } + + public function setContent($content) + { + $this->content = $content; + } + + public function setId($id) + { + $this->id = $id; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContent extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMeta, "meta") + */ + private $meta; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentRecordsItem>, "records") + */ + private $records; + + public function setMeta($meta) + { + $this->meta = $meta; + } + + public function setRecords($records) + { + $this->records = $records; + } + +} + +class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMeta extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMetaElementsItem>, "elements") + */ + private $elements; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMetaGroupsItem>, "groups") + */ + private $groups; + + public function setElements($elements) + { + $this->elements = $elements; + } + + public function setGroups($groups) + { + $this->groups = $groups; + } + +} + +class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMetaElementsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "id") + */ + private $id; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setId($id) + { + $this->id = $id; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentMetaGroupsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "id") + */ + private $id; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setId($id) + { + $this->id = $id; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddGoodsSizespecTemplateUpdateRequest_SizeSpecDtoContentRecordsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSizespecTemplateUpdateRequest_tring, String>, "values") + */ + private $values; + + public function setValues($values) + { + $this->values = $values; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplatesGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplatesGetRequest.php index 6451f4e..f2487ed 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplatesGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSizespecTemplatesGetRequest.php @@ -1,66 +1,66 @@ -setUserParam($params, "class_id", $this->classId); - $this->setUserParam($params, "limit", $this->limit); - $this->setUserParam($params, "offset", $this->offset); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.sizespec.templates.get"; - } - - public function setClassId($classId) - { - $this->classId = $classId; - } - - public function setLimit($limit) - { - $this->limit = $limit; - } - - public function setOffset($offset) - { - $this->offset = $offset; - } - -} +setUserParam($params, "class_id", $this->classId); + $this->setUserParam($params, "limit", $this->limit); + $this->setUserParam($params, "offset", $this->offset); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.sizespec.templates.get"; + } + + public function setClassId($classId) + { + $this->classId = $classId; + } + + public function setLimit($limit) + { + $this->limit = $limit; + } + + public function setOffset($offset) + { + $this->offset = $offset; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSkuPriceUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSkuPriceUpdateRequest.php index aa86c03..6009bc8 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSkuPriceUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSkuPriceUpdateRequest.php @@ -1,138 +1,138 @@ -, "sku_price_list") - */ - private $skuPriceList; - - /** - * @JsonProperty(Integer, "sync_goods_operate") - */ - private $syncGoodsOperate; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "market_price", $this->marketPrice); - $this->setUserParam($params, "market_price_in_yuan", $this->marketPriceInYuan); - $this->setUserParam($params, "sku_price_list", $this->skuPriceList); - $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.sku.price.update"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setMarketPrice($marketPrice) - { - $this->marketPrice = $marketPrice; - } - - public function setMarketPriceInYuan($marketPriceInYuan) - { - $this->marketPriceInYuan = $marketPriceInYuan; - } - - public function setSkuPriceList($skuPriceList) - { - $this->skuPriceList = $skuPriceList; - } - - public function setSyncGoodsOperate($syncGoodsOperate) - { - $this->syncGoodsOperate = $syncGoodsOperate; - } - -} - -class PddGoodsSkuPriceUpdateRequest_SkuPriceListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "group_price") - */ - private $groupPrice; - - /** - * @JsonProperty(Integer, "is_onsale") - */ - private $isOnsale; - - /** - * @JsonProperty(Long, "single_price") - */ - private $singlePrice; - - /** - * @JsonProperty(Long, "sku_id") - */ - private $skuId; - - public function setGroupPrice($groupPrice) - { - $this->groupPrice = $groupPrice; - } - - public function setIsOnsale($isOnsale) - { - $this->isOnsale = $isOnsale; - } - - public function setSinglePrice($singlePrice) - { - $this->singlePrice = $singlePrice; - } - - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } - -} +, "sku_price_list") + */ + private $skuPriceList; + + /** + * @JsonProperty(Integer, "sync_goods_operate") + */ + private $syncGoodsOperate; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "market_price", $this->marketPrice); + $this->setUserParam($params, "market_price_in_yuan", $this->marketPriceInYuan); + $this->setUserParam($params, "sku_price_list", $this->skuPriceList); + $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.sku.price.update"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setMarketPrice($marketPrice) + { + $this->marketPrice = $marketPrice; + } + + public function setMarketPriceInYuan($marketPriceInYuan) + { + $this->marketPriceInYuan = $marketPriceInYuan; + } + + public function setSkuPriceList($skuPriceList) + { + $this->skuPriceList = $skuPriceList; + } + + public function setSyncGoodsOperate($syncGoodsOperate) + { + $this->syncGoodsOperate = $syncGoodsOperate; + } + +} + +class PddGoodsSkuPriceUpdateRequest_SkuPriceListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "group_price") + */ + private $groupPrice; + + /** + * @JsonProperty(Integer, "is_onsale") + */ + private $isOnsale; + + /** + * @JsonProperty(Long, "single_price") + */ + private $singlePrice; + + /** + * @JsonProperty(Long, "sku_id") + */ + private $skuId; + + public function setGroupPrice($groupPrice) + { + $this->groupPrice = $groupPrice; + } + + public function setIsOnsale($isOnsale) + { + $this->isOnsale = $isOnsale; + } + + public function setSinglePrice($singlePrice) + { + $this->singlePrice = $singlePrice; + } + + public function setSkuId($skuId) + { + $this->skuId = $skuId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpecGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpecGetRequest.php index 0cd8464..9163af8 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpecGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpecGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "cat_id", $this->catId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.spec.get"; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - -} +setUserParam($params, "cat_id", $this->catId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.spec.get"; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpecIdGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpecIdGetRequest.php index 788a02c..a8deea8 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpecIdGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpecIdGetRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "parent_spec_id", $this->parentSpecId); - $this->setUserParam($params, "spec_name", $this->specName); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.spec.id.get"; - } - - public function setParentSpecId($parentSpecId) - { - $this->parentSpecId = $parentSpecId; - } - - public function setSpecName($specName) - { - $this->specName = $specName; - } - -} +setUserParam($params, "parent_spec_id", $this->parentSpecId); + $this->setUserParam($params, "spec_name", $this->specName); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.spec.id.get"; + } + + public function setParentSpecId($parentSpecId) + { + $this->parentSpecId = $parentSpecId; + } + + public function setSpecName($specName) + { + $this->specName = $specName; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpuGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpuGetRequest.php index f67c21c..c514b08 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpuGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpuGetRequest.php @@ -1,105 +1,105 @@ -, "key_prop") - */ - private $keyProp; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "key_prop", $this->keyProp); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.spu.get"; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setKeyProp($keyProp) - { - $this->keyProp = $keyProp; - } - -} - -class PddGoodsSpuGetRequest_KeyPropItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "ref_pid") - */ - private $refPid; - - /** - * @JsonProperty(String, "value_unit") - */ - private $valueUnit; - - /** - * @JsonProperty(String, "value") - */ - private $value; - - /** - * @JsonProperty(Long, "vid") - */ - private $vid; - - public function setRefPid($refPid) - { - $this->refPid = $refPid; - } - - public function setValueUnit($valueUnit) - { - $this->valueUnit = $valueUnit; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setVid($vid) - { - $this->vid = $vid; - } - -} +, "key_prop") + */ + private $keyProp; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "key_prop", $this->keyProp); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.spu.get"; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setKeyProp($keyProp) + { + $this->keyProp = $keyProp; + } + +} + +class PddGoodsSpuGetRequest_KeyPropItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "ref_pid") + */ + private $refPid; + + /** + * @JsonProperty(String, "value_unit") + */ + private $valueUnit; + + /** + * @JsonProperty(String, "value") + */ + private $value; + + /** + * @JsonProperty(Long, "vid") + */ + private $vid; + + public function setRefPid($refPid) + { + $this->refPid = $refPid; + } + + public function setValueUnit($valueUnit) + { + $this->valueUnit = $valueUnit; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setVid($vid) + { + $this->vid = $vid; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpuSearchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpuSearchRequest.php index a8c0fe5..94d40ae 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpuSearchRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSpuSearchRequest.php @@ -1,116 +1,116 @@ -, "key_prop") - */ - private $keyProp; - - /** - * @JsonProperty(String, "spu_name") - */ - private $spuName; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "key_prop", $this->keyProp); - $this->setUserParam($params, "spu_name", $this->spuName); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.spu.search"; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setKeyProp($keyProp) - { - $this->keyProp = $keyProp; - } - - public function setSpuName($spuName) - { - $this->spuName = $spuName; - } - -} - -class PddGoodsSpuSearchRequest_KeyPropItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "ref_pid") - */ - private $refPid; - - /** - * @JsonProperty(String, "value_unit") - */ - private $valueUnit; - - /** - * @JsonProperty(String, "value") - */ - private $value; - - /** - * @JsonProperty(Long, "vid") - */ - private $vid; - - public function setRefPid($refPid) - { - $this->refPid = $refPid; - } - - public function setValueUnit($valueUnit) - { - $this->valueUnit = $valueUnit; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setVid($vid) - { - $this->vid = $vid; - } - -} +, "key_prop") + */ + private $keyProp; + + /** + * @JsonProperty(String, "spu_name") + */ + private $spuName; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "key_prop", $this->keyProp); + $this->setUserParam($params, "spu_name", $this->spuName); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.spu.search"; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setKeyProp($keyProp) + { + $this->keyProp = $keyProp; + } + + public function setSpuName($spuName) + { + $this->spuName = $spuName; + } + +} + +class PddGoodsSpuSearchRequest_KeyPropItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "ref_pid") + */ + private $refPid; + + /** + * @JsonProperty(String, "value_unit") + */ + private $valueUnit; + + /** + * @JsonProperty(String, "value") + */ + private $value; + + /** + * @JsonProperty(Long, "vid") + */ + private $vid; + + public function setRefPid($refPid) + { + $this->refPid = $refPid; + } + + public function setValueUnit($valueUnit) + { + $this->valueUnit = $valueUnit; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setVid($vid) + { + $this->vid = $vid; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSubmitGoodsCommitRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSubmitGoodsCommitRequest.php index 2ec3035..31ddd4e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSubmitGoodsCommitRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsSubmitGoodsCommitRequest.php @@ -1,1115 +1,1115 @@ -, "carousel_gallery") - */ - private $carouselGallery; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_CarouselVideoItem>, "carousel_video") - */ - private $carouselVideo; - - /** - * @JsonProperty(String, "carousel_video_url") - */ - private $carouselVideoUrl; - - /** - * @JsonProperty(Long, "cat_id") - */ - private $catId; - - /** - * @JsonProperty(Long, "cost_template_id") - */ - private $costTemplateId; - - /** - * @JsonProperty(Integer, "country_id") - */ - private $countryId; - - /** - * @JsonProperty(Long, "customer_num") - */ - private $customerNum; - - /** - * @JsonProperty(String, "customs") - */ - private $customs; - - /** - * @JsonProperty(Integer, "delivery_one_day") - */ - private $deliveryOneDay; - - /** - * @JsonProperty(List, "detail_gallery") - */ - private $detailGallery; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_ElecGoodsAttributes, "elec_goods_attributes") - */ - private $elecGoodsAttributes; - - /** - * @JsonProperty(Long, "goods_commit_id") - */ - private $goodsCommitId; - - /** - * @JsonProperty(String, "goods_desc") - */ - private $goodsDesc; - - /** - * @JsonProperty(Long, "goods_id") - */ - private $goodsId; - - /** - * @JsonProperty(String, "goods_name") - */ - private $goodsName; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsPropertiesItem>, "goods_properties") - */ - private $goodsProperties; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttr, "goods_trade_attr") - */ - private $goodsTradeAttr; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsTravelAttr, "goods_travel_attr") - */ - private $goodsTravelAttr; - - /** - * @JsonProperty(Integer, "goods_type") - */ - private $goodsType; - - /** - * @JsonProperty(String, "image_url") - */ - private $imageUrl; - - /** - * @JsonProperty(Integer, "invoice_status") - */ - private $invoiceStatus; - - /** - * @JsonProperty(Boolean, "is_customs") - */ - private $isCustoms; - - /** - * @JsonProperty(Boolean, "is_folt") - */ - private $isFolt; - - /** - * @JsonProperty(Boolean, "is_pre_sale") - */ - private $isPreSale; - - /** - * @JsonProperty(Boolean, "is_refundable") - */ - private $isRefundable; - - /** - * @JsonProperty(Integer, "lack_of_weight_claim") - */ - private $lackOfWeightClaim; - - /** - * @JsonProperty(String, "mai_jia_zi_ti") - */ - private $maiJiaZiTi; - - /** - * @JsonProperty(Long, "market_price") - */ - private $marketPrice; - - /** - * @JsonProperty(Integer, "operate_type") - */ - private $operateType; - - /** - * @JsonProperty(Long, "order_limit") - */ - private $orderLimit; - - /** - * @JsonProperty(Integer, "origin_country_id") - */ - private $originCountryId; - - /** - * @JsonProperty(String, "out_goods_id") - */ - private $outGoodsId; - - /** - * @JsonProperty(String, "out_source_goods_id") - */ - private $outSourceGoodsId; - - /** - * @JsonProperty(Integer, "out_source_type") - */ - private $outSourceType; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_OverseaGoods, "oversea_goods") - */ - private $overseaGoods; - - /** - * @JsonProperty(Integer, "oversea_type") - */ - private $overseaType; - - /** - * @JsonProperty(Long, "pre_sale_time") - */ - private $preSaleTime; - - /** - * @JsonProperty(Integer, "quan_guo_lian_bao") - */ - private $quanGuoLianBao; - - /** - * @JsonProperty(Boolean, "second_hand") - */ - private $secondHand; - - /** - * @JsonProperty(String, "shang_men_an_zhuang") - */ - private $shangMenAnZhuang; - - /** - * @JsonProperty(Long, "shipment_limit_second") - */ - private $shipmentLimitSecond; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_SkuListItem>, "sku_list") - */ - private $skuList; - - /** - * @JsonProperty(Integer, "sku_type") - */ - private $skuType; - - /** - * @JsonProperty(String, "song_huo_an_zhuang") - */ - private $songHuoAnZhuang; - - /** - * @JsonProperty(String, "song_huo_ru_hu") - */ - private $songHuoRuHu; - - /** - * @JsonProperty(Integer, "sync_goods_operate") - */ - private $syncGoodsOperate; - - /** - * @JsonProperty(String, "tiny_name") - */ - private $tinyName; - - /** - * @JsonProperty(String, "warehouse") - */ - private $warehouse; - - /** - * @JsonProperty(String, "warm_tips") - */ - private $warmTips; - - /** - * @JsonProperty(Integer, "zhi_huan_bu_xiu") - */ - private $zhiHuanBuXiu; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "bad_fruit_claim", $this->badFruitClaim); - $this->setUserParam($params, "buy_limit", $this->buyLimit); - $this->setUserParam($params, "carousel_gallery", $this->carouselGallery); - $this->setUserParam($params, "carousel_video", $this->carouselVideo); - $this->setUserParam($params, "carousel_video_url", $this->carouselVideoUrl); - $this->setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "cost_template_id", $this->costTemplateId); - $this->setUserParam($params, "country_id", $this->countryId); - $this->setUserParam($params, "customer_num", $this->customerNum); - $this->setUserParam($params, "customs", $this->customs); - $this->setUserParam($params, "delivery_one_day", $this->deliveryOneDay); - $this->setUserParam($params, "detail_gallery", $this->detailGallery); - $this->setUserParam($params, "elec_goods_attributes", $this->elecGoodsAttributes); - $this->setUserParam($params, "goods_commit_id", $this->goodsCommitId); - $this->setUserParam($params, "goods_desc", $this->goodsDesc); - $this->setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "goods_name", $this->goodsName); - $this->setUserParam($params, "goods_properties", $this->goodsProperties); - $this->setUserParam($params, "goods_trade_attr", $this->goodsTradeAttr); - $this->setUserParam($params, "goods_travel_attr", $this->goodsTravelAttr); - $this->setUserParam($params, "goods_type", $this->goodsType); - $this->setUserParam($params, "image_url", $this->imageUrl); - $this->setUserParam($params, "invoice_status", $this->invoiceStatus); - $this->setUserParam($params, "is_customs", $this->isCustoms); - $this->setUserParam($params, "is_folt", $this->isFolt); - $this->setUserParam($params, "is_pre_sale", $this->isPreSale); - $this->setUserParam($params, "is_refundable", $this->isRefundable); - $this->setUserParam($params, "lack_of_weight_claim", $this->lackOfWeightClaim); - $this->setUserParam($params, "mai_jia_zi_ti", $this->maiJiaZiTi); - $this->setUserParam($params, "market_price", $this->marketPrice); - $this->setUserParam($params, "operate_type", $this->operateType); - $this->setUserParam($params, "order_limit", $this->orderLimit); - $this->setUserParam($params, "origin_country_id", $this->originCountryId); - $this->setUserParam($params, "out_goods_id", $this->outGoodsId); - $this->setUserParam($params, "out_source_goods_id", $this->outSourceGoodsId); - $this->setUserParam($params, "out_source_type", $this->outSourceType); - $this->setUserParam($params, "oversea_goods", $this->overseaGoods); - $this->setUserParam($params, "oversea_type", $this->overseaType); - $this->setUserParam($params, "pre_sale_time", $this->preSaleTime); - $this->setUserParam($params, "quan_guo_lian_bao", $this->quanGuoLianBao); - $this->setUserParam($params, "second_hand", $this->secondHand); - $this->setUserParam($params, "shang_men_an_zhuang", $this->shangMenAnZhuang); - $this->setUserParam($params, "shipment_limit_second", $this->shipmentLimitSecond); - $this->setUserParam($params, "sku_list", $this->skuList); - $this->setUserParam($params, "sku_type", $this->skuType); - $this->setUserParam($params, "song_huo_an_zhuang", $this->songHuoAnZhuang); - $this->setUserParam($params, "song_huo_ru_hu", $this->songHuoRuHu); - $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate); - $this->setUserParam($params, "tiny_name", $this->tinyName); - $this->setUserParam($params, "warehouse", $this->warehouse); - $this->setUserParam($params, "warm_tips", $this->warmTips); - $this->setUserParam($params, "zhi_huan_bu_xiu", $this->zhiHuanBuXiu); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.submit.goods.commit"; - } - - public function setBadFruitClaim($badFruitClaim) - { - $this->badFruitClaim = $badFruitClaim; - } - - public function setBuyLimit($buyLimit) - { - $this->buyLimit = $buyLimit; - } - - public function setCarouselGallery($carouselGallery) - { - $this->carouselGallery = $carouselGallery; - } - - public function setCarouselVideo($carouselVideo) - { - $this->carouselVideo = $carouselVideo; - } - - public function setCarouselVideoUrl($carouselVideoUrl) - { - $this->carouselVideoUrl = $carouselVideoUrl; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setCostTemplateId($costTemplateId) - { - $this->costTemplateId = $costTemplateId; - } - - public function setCountryId($countryId) - { - $this->countryId = $countryId; - } - - public function setCustomerNum($customerNum) - { - $this->customerNum = $customerNum; - } - - public function setCustoms($customs) - { - $this->customs = $customs; - } - - public function setDeliveryOneDay($deliveryOneDay) - { - $this->deliveryOneDay = $deliveryOneDay; - } - - public function setDetailGallery($detailGallery) - { - $this->detailGallery = $detailGallery; - } - - public function setElecGoodsAttributes($elecGoodsAttributes) - { - $this->elecGoodsAttributes = $elecGoodsAttributes; - } - - public function setGoodsCommitId($goodsCommitId) - { - $this->goodsCommitId = $goodsCommitId; - } - - public function setGoodsDesc($goodsDesc) - { - $this->goodsDesc = $goodsDesc; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setGoodsName($goodsName) - { - $this->goodsName = $goodsName; - } - - public function setGoodsProperties($goodsProperties) - { - $this->goodsProperties = $goodsProperties; - } - - public function setGoodsTradeAttr($goodsTradeAttr) - { - $this->goodsTradeAttr = $goodsTradeAttr; - } - - public function setGoodsTravelAttr($goodsTravelAttr) - { - $this->goodsTravelAttr = $goodsTravelAttr; - } - - public function setGoodsType($goodsType) - { - $this->goodsType = $goodsType; - } - - public function setImageUrl($imageUrl) - { - $this->imageUrl = $imageUrl; - } - - public function setInvoiceStatus($invoiceStatus) - { - $this->invoiceStatus = $invoiceStatus; - } - - public function setIsCustoms($isCustoms) - { - $this->isCustoms = $isCustoms; - } - - public function setIsFolt($isFolt) - { - $this->isFolt = $isFolt; - } - - public function setIsPreSale($isPreSale) - { - $this->isPreSale = $isPreSale; - } - - public function setIsRefundable($isRefundable) - { - $this->isRefundable = $isRefundable; - } - - public function setLackOfWeightClaim($lackOfWeightClaim) - { - $this->lackOfWeightClaim = $lackOfWeightClaim; - } - - public function setMaiJiaZiTi($maiJiaZiTi) - { - $this->maiJiaZiTi = $maiJiaZiTi; - } - - public function setMarketPrice($marketPrice) - { - $this->marketPrice = $marketPrice; - } - - public function setOperateType($operateType) - { - $this->operateType = $operateType; - } - - public function setOrderLimit($orderLimit) - { - $this->orderLimit = $orderLimit; - } - - public function setOriginCountryId($originCountryId) - { - $this->originCountryId = $originCountryId; - } - - public function setOutGoodsId($outGoodsId) - { - $this->outGoodsId = $outGoodsId; - } - - public function setOutSourceGoodsId($outSourceGoodsId) - { - $this->outSourceGoodsId = $outSourceGoodsId; - } - - public function setOutSourceType($outSourceType) - { - $this->outSourceType = $outSourceType; - } - - public function setOverseaGoods($overseaGoods) - { - $this->overseaGoods = $overseaGoods; - } - - public function setOverseaType($overseaType) - { - $this->overseaType = $overseaType; - } - - public function setPreSaleTime($preSaleTime) - { - $this->preSaleTime = $preSaleTime; - } - - public function setQuanGuoLianBao($quanGuoLianBao) - { - $this->quanGuoLianBao = $quanGuoLianBao; - } - - public function setSecondHand($secondHand) - { - $this->secondHand = $secondHand; - } - - public function setShangMenAnZhuang($shangMenAnZhuang) - { - $this->shangMenAnZhuang = $shangMenAnZhuang; - } - - public function setShipmentLimitSecond($shipmentLimitSecond) - { - $this->shipmentLimitSecond = $shipmentLimitSecond; - } - - public function setSkuList($skuList) - { - $this->skuList = $skuList; - } - - public function setSkuType($skuType) - { - $this->skuType = $skuType; - } - - public function setSongHuoAnZhuang($songHuoAnZhuang) - { - $this->songHuoAnZhuang = $songHuoAnZhuang; - } - - public function setSongHuoRuHu($songHuoRuHu) - { - $this->songHuoRuHu = $songHuoRuHu; - } - - public function setSyncGoodsOperate($syncGoodsOperate) - { - $this->syncGoodsOperate = $syncGoodsOperate; - } - - public function setTinyName($tinyName) - { - $this->tinyName = $tinyName; - } - - public function setWarehouse($warehouse) - { - $this->warehouse = $warehouse; - } - - public function setWarmTips($warmTips) - { - $this->warmTips = $warmTips; - } - - public function setZhiHuanBuXiu($zhiHuanBuXiu) - { - $this->zhiHuanBuXiu = $zhiHuanBuXiu; - } - -} - -class PddGoodsSubmitGoodsCommitRequest_CarouselVideoItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "file_id") - */ - private $fileId; - - /** - * @JsonProperty(String, "video_url") - */ - private $videoUrl; - - public function setFileId($fileId) - { - $this->fileId = $fileId; - } - - public function setVideoUrl($videoUrl) - { - $this->videoUrl = $videoUrl; - } - -} - -class PddGoodsSubmitGoodsCommitRequest_ElecGoodsAttributes extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "begin_time") - */ - private $beginTime; - - /** - * @JsonProperty(Integer, "days_time") - */ - private $daysTime; - - /** - * @JsonProperty(Long, "end_time") - */ - private $endTime; - - /** - * @JsonProperty(Integer, "time_type") - */ - private $timeType; - - public function setBeginTime($beginTime) - { - $this->beginTime = $beginTime; - } - - public function setDaysTime($daysTime) - { - $this->daysTime = $daysTime; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setTimeType($timeType) - { - $this->timeType = $timeType; - } - -} - -class PddGoodsSubmitGoodsCommitRequest_GoodsPropertiesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "group_id") - */ - private $groupId; - - /** - * @JsonProperty(String, "img_url") - */ - private $imgUrl; - - /** - * @JsonProperty(String, "note") - */ - private $note; - - /** - * @JsonProperty(Long, "parent_spec_id") - */ - private $parentSpecId; - - /** - * @JsonProperty(Long, "ref_pid") - */ - private $refPid; - - /** - * @JsonProperty(Long, "spec_id") - */ - private $specId; - - /** - * @JsonProperty(Long, "template_pid") - */ - private $templatePid; - - /** - * @JsonProperty(String, "value") - */ - private $value; - - /** - * @JsonProperty(String, "value_unit") - */ - private $valueUnit; - - /** - * @JsonProperty(Long, "vid") - */ - private $vid; - - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - - public function setImgUrl($imgUrl) - { - $this->imgUrl = $imgUrl; - } - - public function setNote($note) - { - $this->note = $note; - } - - public function setParentSpecId($parentSpecId) - { - $this->parentSpecId = $parentSpecId; - } - - public function setRefPid($refPid) - { - $this->refPid = $refPid; - } - - public function setSpecId($specId) - { - $this->specId = $specId; - } - - public function setTemplatePid($templatePid) - { - $this->templatePid = $templatePid; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setValueUnit($valueUnit) - { - $this->valueUnit = $valueUnit; - } - - public function setVid($vid) - { - $this->vid = $vid; - } - -} - -class PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttr extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "advances_days") - */ - private $advancesDays; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttrBookingNotes, "booking_notes") - */ - private $bookingNotes; - - /** - * @JsonProperty(Integer, "life_span") - */ - private $lifeSpan; - - public function setAdvancesDays($advancesDays) - { - $this->advancesDays = $advancesDays; - } - - public function setBookingNotes($bookingNotes) - { - $this->bookingNotes = $bookingNotes; - } - - public function setLifeSpan($lifeSpan) - { - $this->lifeSpan = $lifeSpan; - } - -} - -class PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttrBookingNotes extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "url") - */ - private $url; - - public function setUrl($url) - { - $this->url = $url; - } - -} - -class PddGoodsSubmitGoodsCommitRequest_GoodsTravelAttr extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Boolean, "need_tourist") - */ - private $needTourist; - - /** - * @JsonProperty(Integer, "type") - */ - private $type; - - public function setNeedTourist($needTourist) - { - $this->needTourist = $needTourist; - } - - public function setType($type) - { - $this->type = $type; - } - -} - -class PddGoodsSubmitGoodsCommitRequest_OverseaGoods extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "bonded_warehouse_key") - */ - private $bondedWarehouseKey; - - /** - * @JsonProperty(Integer, "consumption_tax_rate") - */ - private $consumptionTaxRate; - - /** - * @JsonProperty(String, "customs_broker") - */ - private $customsBroker; - - /** - * @JsonProperty(String, "hs_code") - */ - private $hsCode; - - /** - * @JsonProperty(Integer, "value_added_tax_rate") - */ - private $valueAddedTaxRate; - - public function setBondedWarehouseKey($bondedWarehouseKey) - { - $this->bondedWarehouseKey = $bondedWarehouseKey; - } - - public function setConsumptionTaxRate($consumptionTaxRate) - { - $this->consumptionTaxRate = $consumptionTaxRate; - } - - public function setCustomsBroker($customsBroker) - { - $this->customsBroker = $customsBroker; - } - - public function setHsCode($hsCode) - { - $this->hsCode = $hsCode; - } - - public function setValueAddedTaxRate($valueAddedTaxRate) - { - $this->valueAddedTaxRate = $valueAddedTaxRate; - } - -} - -class PddGoodsSubmitGoodsCommitRequest_SkuListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "is_onsale") - */ - private $isOnsale; - - /** - * @JsonProperty(Long, "length") - */ - private $length; - - /** - * @JsonProperty(Long, "limit_quantity") - */ - private $limitQuantity; - - /** - * @JsonProperty(Long, "multi_price") - */ - private $multiPrice; - - /** - * @JsonProperty(String, "out_sku_sn") - */ - private $outSkuSn; - - /** - * @JsonProperty(String, "out_source_sku_id") - */ - private $outSourceSkuId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_SkuListItemOverseaSku, "oversea_sku") - */ - private $overseaSku; - - /** - * @JsonProperty(Long, "price") - */ - private $price; - - /** - * @JsonProperty(Long, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(List, "spec_id_list") - */ - private $specIdList; - - /** - * @JsonProperty(String, "thumb_url") - */ - private $thumbUrl; - - /** - * @JsonProperty(Long, "weight") - */ - private $weight; - - public function setIsOnsale($isOnsale) - { - $this->isOnsale = $isOnsale; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setLimitQuantity($limitQuantity) - { - $this->limitQuantity = $limitQuantity; - } - - public function setMultiPrice($multiPrice) - { - $this->multiPrice = $multiPrice; - } - - public function setOutSkuSn($outSkuSn) - { - $this->outSkuSn = $outSkuSn; - } - - public function setOutSourceSkuId($outSourceSkuId) - { - $this->outSourceSkuId = $outSourceSkuId; - } - - public function setOverseaSku($overseaSku) - { - $this->overseaSku = $overseaSku; - } - - public function setPrice($price) - { - $this->price = $price; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setSpecIdList($specIdList) - { - $this->specIdList = $specIdList; - } - - public function setThumbUrl($thumbUrl) - { - $this->thumbUrl = $thumbUrl; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - -} - -class PddGoodsSubmitGoodsCommitRequest_SkuListItemOverseaSku extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "measurement_code") - */ - private $measurementCode; - - /** - * @JsonProperty(String, "specifications") - */ - private $specifications; - - /** - * @JsonProperty(Integer, "taxation") - */ - private $taxation; - - public function setMeasurementCode($measurementCode) - { - $this->measurementCode = $measurementCode; - } - - public function setSpecifications($specifications) - { - $this->specifications = $specifications; - } - - public function setTaxation($taxation) - { - $this->taxation = $taxation; - } - -} +, "carousel_gallery") + */ + private $carouselGallery; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_CarouselVideoItem>, "carousel_video") + */ + private $carouselVideo; + + /** + * @JsonProperty(String, "carousel_video_url") + */ + private $carouselVideoUrl; + + /** + * @JsonProperty(Long, "cat_id") + */ + private $catId; + + /** + * @JsonProperty(Long, "cost_template_id") + */ + private $costTemplateId; + + /** + * @JsonProperty(Integer, "country_id") + */ + private $countryId; + + /** + * @JsonProperty(Long, "customer_num") + */ + private $customerNum; + + /** + * @JsonProperty(String, "customs") + */ + private $customs; + + /** + * @JsonProperty(Integer, "delivery_one_day") + */ + private $deliveryOneDay; + + /** + * @JsonProperty(List, "detail_gallery") + */ + private $detailGallery; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_ElecGoodsAttributes, "elec_goods_attributes") + */ + private $elecGoodsAttributes; + + /** + * @JsonProperty(Long, "goods_commit_id") + */ + private $goodsCommitId; + + /** + * @JsonProperty(String, "goods_desc") + */ + private $goodsDesc; + + /** + * @JsonProperty(Long, "goods_id") + */ + private $goodsId; + + /** + * @JsonProperty(String, "goods_name") + */ + private $goodsName; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsPropertiesItem>, "goods_properties") + */ + private $goodsProperties; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttr, "goods_trade_attr") + */ + private $goodsTradeAttr; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsTravelAttr, "goods_travel_attr") + */ + private $goodsTravelAttr; + + /** + * @JsonProperty(Integer, "goods_type") + */ + private $goodsType; + + /** + * @JsonProperty(String, "image_url") + */ + private $imageUrl; + + /** + * @JsonProperty(Integer, "invoice_status") + */ + private $invoiceStatus; + + /** + * @JsonProperty(Boolean, "is_customs") + */ + private $isCustoms; + + /** + * @JsonProperty(Boolean, "is_folt") + */ + private $isFolt; + + /** + * @JsonProperty(Boolean, "is_pre_sale") + */ + private $isPreSale; + + /** + * @JsonProperty(Boolean, "is_refundable") + */ + private $isRefundable; + + /** + * @JsonProperty(Integer, "lack_of_weight_claim") + */ + private $lackOfWeightClaim; + + /** + * @JsonProperty(String, "mai_jia_zi_ti") + */ + private $maiJiaZiTi; + + /** + * @JsonProperty(Long, "market_price") + */ + private $marketPrice; + + /** + * @JsonProperty(Integer, "operate_type") + */ + private $operateType; + + /** + * @JsonProperty(Long, "order_limit") + */ + private $orderLimit; + + /** + * @JsonProperty(Integer, "origin_country_id") + */ + private $originCountryId; + + /** + * @JsonProperty(String, "out_goods_id") + */ + private $outGoodsId; + + /** + * @JsonProperty(String, "out_source_goods_id") + */ + private $outSourceGoodsId; + + /** + * @JsonProperty(Integer, "out_source_type") + */ + private $outSourceType; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_OverseaGoods, "oversea_goods") + */ + private $overseaGoods; + + /** + * @JsonProperty(Integer, "oversea_type") + */ + private $overseaType; + + /** + * @JsonProperty(Long, "pre_sale_time") + */ + private $preSaleTime; + + /** + * @JsonProperty(Integer, "quan_guo_lian_bao") + */ + private $quanGuoLianBao; + + /** + * @JsonProperty(Boolean, "second_hand") + */ + private $secondHand; + + /** + * @JsonProperty(String, "shang_men_an_zhuang") + */ + private $shangMenAnZhuang; + + /** + * @JsonProperty(Long, "shipment_limit_second") + */ + private $shipmentLimitSecond; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_SkuListItem>, "sku_list") + */ + private $skuList; + + /** + * @JsonProperty(Integer, "sku_type") + */ + private $skuType; + + /** + * @JsonProperty(String, "song_huo_an_zhuang") + */ + private $songHuoAnZhuang; + + /** + * @JsonProperty(String, "song_huo_ru_hu") + */ + private $songHuoRuHu; + + /** + * @JsonProperty(Integer, "sync_goods_operate") + */ + private $syncGoodsOperate; + + /** + * @JsonProperty(String, "tiny_name") + */ + private $tinyName; + + /** + * @JsonProperty(String, "warehouse") + */ + private $warehouse; + + /** + * @JsonProperty(String, "warm_tips") + */ + private $warmTips; + + /** + * @JsonProperty(Integer, "zhi_huan_bu_xiu") + */ + private $zhiHuanBuXiu; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "bad_fruit_claim", $this->badFruitClaim); + $this->setUserParam($params, "buy_limit", $this->buyLimit); + $this->setUserParam($params, "carousel_gallery", $this->carouselGallery); + $this->setUserParam($params, "carousel_video", $this->carouselVideo); + $this->setUserParam($params, "carousel_video_url", $this->carouselVideoUrl); + $this->setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "cost_template_id", $this->costTemplateId); + $this->setUserParam($params, "country_id", $this->countryId); + $this->setUserParam($params, "customer_num", $this->customerNum); + $this->setUserParam($params, "customs", $this->customs); + $this->setUserParam($params, "delivery_one_day", $this->deliveryOneDay); + $this->setUserParam($params, "detail_gallery", $this->detailGallery); + $this->setUserParam($params, "elec_goods_attributes", $this->elecGoodsAttributes); + $this->setUserParam($params, "goods_commit_id", $this->goodsCommitId); + $this->setUserParam($params, "goods_desc", $this->goodsDesc); + $this->setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "goods_name", $this->goodsName); + $this->setUserParam($params, "goods_properties", $this->goodsProperties); + $this->setUserParam($params, "goods_trade_attr", $this->goodsTradeAttr); + $this->setUserParam($params, "goods_travel_attr", $this->goodsTravelAttr); + $this->setUserParam($params, "goods_type", $this->goodsType); + $this->setUserParam($params, "image_url", $this->imageUrl); + $this->setUserParam($params, "invoice_status", $this->invoiceStatus); + $this->setUserParam($params, "is_customs", $this->isCustoms); + $this->setUserParam($params, "is_folt", $this->isFolt); + $this->setUserParam($params, "is_pre_sale", $this->isPreSale); + $this->setUserParam($params, "is_refundable", $this->isRefundable); + $this->setUserParam($params, "lack_of_weight_claim", $this->lackOfWeightClaim); + $this->setUserParam($params, "mai_jia_zi_ti", $this->maiJiaZiTi); + $this->setUserParam($params, "market_price", $this->marketPrice); + $this->setUserParam($params, "operate_type", $this->operateType); + $this->setUserParam($params, "order_limit", $this->orderLimit); + $this->setUserParam($params, "origin_country_id", $this->originCountryId); + $this->setUserParam($params, "out_goods_id", $this->outGoodsId); + $this->setUserParam($params, "out_source_goods_id", $this->outSourceGoodsId); + $this->setUserParam($params, "out_source_type", $this->outSourceType); + $this->setUserParam($params, "oversea_goods", $this->overseaGoods); + $this->setUserParam($params, "oversea_type", $this->overseaType); + $this->setUserParam($params, "pre_sale_time", $this->preSaleTime); + $this->setUserParam($params, "quan_guo_lian_bao", $this->quanGuoLianBao); + $this->setUserParam($params, "second_hand", $this->secondHand); + $this->setUserParam($params, "shang_men_an_zhuang", $this->shangMenAnZhuang); + $this->setUserParam($params, "shipment_limit_second", $this->shipmentLimitSecond); + $this->setUserParam($params, "sku_list", $this->skuList); + $this->setUserParam($params, "sku_type", $this->skuType); + $this->setUserParam($params, "song_huo_an_zhuang", $this->songHuoAnZhuang); + $this->setUserParam($params, "song_huo_ru_hu", $this->songHuoRuHu); + $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate); + $this->setUserParam($params, "tiny_name", $this->tinyName); + $this->setUserParam($params, "warehouse", $this->warehouse); + $this->setUserParam($params, "warm_tips", $this->warmTips); + $this->setUserParam($params, "zhi_huan_bu_xiu", $this->zhiHuanBuXiu); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.submit.goods.commit"; + } + + public function setBadFruitClaim($badFruitClaim) + { + $this->badFruitClaim = $badFruitClaim; + } + + public function setBuyLimit($buyLimit) + { + $this->buyLimit = $buyLimit; + } + + public function setCarouselGallery($carouselGallery) + { + $this->carouselGallery = $carouselGallery; + } + + public function setCarouselVideo($carouselVideo) + { + $this->carouselVideo = $carouselVideo; + } + + public function setCarouselVideoUrl($carouselVideoUrl) + { + $this->carouselVideoUrl = $carouselVideoUrl; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setCostTemplateId($costTemplateId) + { + $this->costTemplateId = $costTemplateId; + } + + public function setCountryId($countryId) + { + $this->countryId = $countryId; + } + + public function setCustomerNum($customerNum) + { + $this->customerNum = $customerNum; + } + + public function setCustoms($customs) + { + $this->customs = $customs; + } + + public function setDeliveryOneDay($deliveryOneDay) + { + $this->deliveryOneDay = $deliveryOneDay; + } + + public function setDetailGallery($detailGallery) + { + $this->detailGallery = $detailGallery; + } + + public function setElecGoodsAttributes($elecGoodsAttributes) + { + $this->elecGoodsAttributes = $elecGoodsAttributes; + } + + public function setGoodsCommitId($goodsCommitId) + { + $this->goodsCommitId = $goodsCommitId; + } + + public function setGoodsDesc($goodsDesc) + { + $this->goodsDesc = $goodsDesc; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + } + + public function setGoodsProperties($goodsProperties) + { + $this->goodsProperties = $goodsProperties; + } + + public function setGoodsTradeAttr($goodsTradeAttr) + { + $this->goodsTradeAttr = $goodsTradeAttr; + } + + public function setGoodsTravelAttr($goodsTravelAttr) + { + $this->goodsTravelAttr = $goodsTravelAttr; + } + + public function setGoodsType($goodsType) + { + $this->goodsType = $goodsType; + } + + public function setImageUrl($imageUrl) + { + $this->imageUrl = $imageUrl; + } + + public function setInvoiceStatus($invoiceStatus) + { + $this->invoiceStatus = $invoiceStatus; + } + + public function setIsCustoms($isCustoms) + { + $this->isCustoms = $isCustoms; + } + + public function setIsFolt($isFolt) + { + $this->isFolt = $isFolt; + } + + public function setIsPreSale($isPreSale) + { + $this->isPreSale = $isPreSale; + } + + public function setIsRefundable($isRefundable) + { + $this->isRefundable = $isRefundable; + } + + public function setLackOfWeightClaim($lackOfWeightClaim) + { + $this->lackOfWeightClaim = $lackOfWeightClaim; + } + + public function setMaiJiaZiTi($maiJiaZiTi) + { + $this->maiJiaZiTi = $maiJiaZiTi; + } + + public function setMarketPrice($marketPrice) + { + $this->marketPrice = $marketPrice; + } + + public function setOperateType($operateType) + { + $this->operateType = $operateType; + } + + public function setOrderLimit($orderLimit) + { + $this->orderLimit = $orderLimit; + } + + public function setOriginCountryId($originCountryId) + { + $this->originCountryId = $originCountryId; + } + + public function setOutGoodsId($outGoodsId) + { + $this->outGoodsId = $outGoodsId; + } + + public function setOutSourceGoodsId($outSourceGoodsId) + { + $this->outSourceGoodsId = $outSourceGoodsId; + } + + public function setOutSourceType($outSourceType) + { + $this->outSourceType = $outSourceType; + } + + public function setOverseaGoods($overseaGoods) + { + $this->overseaGoods = $overseaGoods; + } + + public function setOverseaType($overseaType) + { + $this->overseaType = $overseaType; + } + + public function setPreSaleTime($preSaleTime) + { + $this->preSaleTime = $preSaleTime; + } + + public function setQuanGuoLianBao($quanGuoLianBao) + { + $this->quanGuoLianBao = $quanGuoLianBao; + } + + public function setSecondHand($secondHand) + { + $this->secondHand = $secondHand; + } + + public function setShangMenAnZhuang($shangMenAnZhuang) + { + $this->shangMenAnZhuang = $shangMenAnZhuang; + } + + public function setShipmentLimitSecond($shipmentLimitSecond) + { + $this->shipmentLimitSecond = $shipmentLimitSecond; + } + + public function setSkuList($skuList) + { + $this->skuList = $skuList; + } + + public function setSkuType($skuType) + { + $this->skuType = $skuType; + } + + public function setSongHuoAnZhuang($songHuoAnZhuang) + { + $this->songHuoAnZhuang = $songHuoAnZhuang; + } + + public function setSongHuoRuHu($songHuoRuHu) + { + $this->songHuoRuHu = $songHuoRuHu; + } + + public function setSyncGoodsOperate($syncGoodsOperate) + { + $this->syncGoodsOperate = $syncGoodsOperate; + } + + public function setTinyName($tinyName) + { + $this->tinyName = $tinyName; + } + + public function setWarehouse($warehouse) + { + $this->warehouse = $warehouse; + } + + public function setWarmTips($warmTips) + { + $this->warmTips = $warmTips; + } + + public function setZhiHuanBuXiu($zhiHuanBuXiu) + { + $this->zhiHuanBuXiu = $zhiHuanBuXiu; + } + +} + +class PddGoodsSubmitGoodsCommitRequest_CarouselVideoItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "file_id") + */ + private $fileId; + + /** + * @JsonProperty(String, "video_url") + */ + private $videoUrl; + + public function setFileId($fileId) + { + $this->fileId = $fileId; + } + + public function setVideoUrl($videoUrl) + { + $this->videoUrl = $videoUrl; + } + +} + +class PddGoodsSubmitGoodsCommitRequest_ElecGoodsAttributes extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "begin_time") + */ + private $beginTime; + + /** + * @JsonProperty(Integer, "days_time") + */ + private $daysTime; + + /** + * @JsonProperty(Long, "end_time") + */ + private $endTime; + + /** + * @JsonProperty(Integer, "time_type") + */ + private $timeType; + + public function setBeginTime($beginTime) + { + $this->beginTime = $beginTime; + } + + public function setDaysTime($daysTime) + { + $this->daysTime = $daysTime; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setTimeType($timeType) + { + $this->timeType = $timeType; + } + +} + +class PddGoodsSubmitGoodsCommitRequest_GoodsPropertiesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "group_id") + */ + private $groupId; + + /** + * @JsonProperty(String, "img_url") + */ + private $imgUrl; + + /** + * @JsonProperty(String, "note") + */ + private $note; + + /** + * @JsonProperty(Long, "parent_spec_id") + */ + private $parentSpecId; + + /** + * @JsonProperty(Long, "ref_pid") + */ + private $refPid; + + /** + * @JsonProperty(Long, "spec_id") + */ + private $specId; + + /** + * @JsonProperty(Long, "template_pid") + */ + private $templatePid; + + /** + * @JsonProperty(String, "value") + */ + private $value; + + /** + * @JsonProperty(String, "value_unit") + */ + private $valueUnit; + + /** + * @JsonProperty(Long, "vid") + */ + private $vid; + + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + + public function setImgUrl($imgUrl) + { + $this->imgUrl = $imgUrl; + } + + public function setNote($note) + { + $this->note = $note; + } + + public function setParentSpecId($parentSpecId) + { + $this->parentSpecId = $parentSpecId; + } + + public function setRefPid($refPid) + { + $this->refPid = $refPid; + } + + public function setSpecId($specId) + { + $this->specId = $specId; + } + + public function setTemplatePid($templatePid) + { + $this->templatePid = $templatePid; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setValueUnit($valueUnit) + { + $this->valueUnit = $valueUnit; + } + + public function setVid($vid) + { + $this->vid = $vid; + } + +} + +class PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttr extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "advances_days") + */ + private $advancesDays; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttrBookingNotes, "booking_notes") + */ + private $bookingNotes; + + /** + * @JsonProperty(Integer, "life_span") + */ + private $lifeSpan; + + public function setAdvancesDays($advancesDays) + { + $this->advancesDays = $advancesDays; + } + + public function setBookingNotes($bookingNotes) + { + $this->bookingNotes = $bookingNotes; + } + + public function setLifeSpan($lifeSpan) + { + $this->lifeSpan = $lifeSpan; + } + +} + +class PddGoodsSubmitGoodsCommitRequest_GoodsTradeAttrBookingNotes extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "url") + */ + private $url; + + public function setUrl($url) + { + $this->url = $url; + } + +} + +class PddGoodsSubmitGoodsCommitRequest_GoodsTravelAttr extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Boolean, "need_tourist") + */ + private $needTourist; + + /** + * @JsonProperty(Integer, "type") + */ + private $type; + + public function setNeedTourist($needTourist) + { + $this->needTourist = $needTourist; + } + + public function setType($type) + { + $this->type = $type; + } + +} + +class PddGoodsSubmitGoodsCommitRequest_OverseaGoods extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "bonded_warehouse_key") + */ + private $bondedWarehouseKey; + + /** + * @JsonProperty(Integer, "consumption_tax_rate") + */ + private $consumptionTaxRate; + + /** + * @JsonProperty(String, "customs_broker") + */ + private $customsBroker; + + /** + * @JsonProperty(String, "hs_code") + */ + private $hsCode; + + /** + * @JsonProperty(Integer, "value_added_tax_rate") + */ + private $valueAddedTaxRate; + + public function setBondedWarehouseKey($bondedWarehouseKey) + { + $this->bondedWarehouseKey = $bondedWarehouseKey; + } + + public function setConsumptionTaxRate($consumptionTaxRate) + { + $this->consumptionTaxRate = $consumptionTaxRate; + } + + public function setCustomsBroker($customsBroker) + { + $this->customsBroker = $customsBroker; + } + + public function setHsCode($hsCode) + { + $this->hsCode = $hsCode; + } + + public function setValueAddedTaxRate($valueAddedTaxRate) + { + $this->valueAddedTaxRate = $valueAddedTaxRate; + } + +} + +class PddGoodsSubmitGoodsCommitRequest_SkuListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "is_onsale") + */ + private $isOnsale; + + /** + * @JsonProperty(Long, "length") + */ + private $length; + + /** + * @JsonProperty(Long, "limit_quantity") + */ + private $limitQuantity; + + /** + * @JsonProperty(Long, "multi_price") + */ + private $multiPrice; + + /** + * @JsonProperty(String, "out_sku_sn") + */ + private $outSkuSn; + + /** + * @JsonProperty(String, "out_source_sku_id") + */ + private $outSourceSkuId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddGoodsSubmitGoodsCommitRequest_SkuListItemOverseaSku, "oversea_sku") + */ + private $overseaSku; + + /** + * @JsonProperty(Long, "price") + */ + private $price; + + /** + * @JsonProperty(Long, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(List, "spec_id_list") + */ + private $specIdList; + + /** + * @JsonProperty(String, "thumb_url") + */ + private $thumbUrl; + + /** + * @JsonProperty(Long, "weight") + */ + private $weight; + + public function setIsOnsale($isOnsale) + { + $this->isOnsale = $isOnsale; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setLimitQuantity($limitQuantity) + { + $this->limitQuantity = $limitQuantity; + } + + public function setMultiPrice($multiPrice) + { + $this->multiPrice = $multiPrice; + } + + public function setOutSkuSn($outSkuSn) + { + $this->outSkuSn = $outSkuSn; + } + + public function setOutSourceSkuId($outSourceSkuId) + { + $this->outSourceSkuId = $outSourceSkuId; + } + + public function setOverseaSku($overseaSku) + { + $this->overseaSku = $overseaSku; + } + + public function setPrice($price) + { + $this->price = $price; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setSpecIdList($specIdList) + { + $this->specIdList = $specIdList; + } + + public function setThumbUrl($thumbUrl) + { + $this->thumbUrl = $thumbUrl; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + +} + +class PddGoodsSubmitGoodsCommitRequest_SkuListItemOverseaSku extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "measurement_code") + */ + private $measurementCode; + + /** + * @JsonProperty(String, "specifications") + */ + private $specifications; + + /** + * @JsonProperty(Integer, "taxation") + */ + private $taxation; + + public function setMeasurementCode($measurementCode) + { + $this->measurementCode = $measurementCode; + } + + public function setSpecifications($specifications) + { + $this->specifications = $specifications; + } + + public function setTaxation($taxation) + { + $this->taxation = $taxation; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsTemplatePropertyValueSearchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsTemplatePropertyValueSearchRequest.php index 26f7255..40c23ef 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGoodsTemplatePropertyValueSearchRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGoodsTemplatePropertyValueSearchRequest.php @@ -1,110 +1,110 @@ -setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "page_num", $this->pageNum); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "parent_vid", $this->parentVid); - $this->setUserParam($params, "template_pid", $this->templatePid); - $this->setUserParam($params, "value", $this->value); - $this->setUserParam($params, "ref_pid", $this->refPid); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.goods.template.property.value.search"; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setPageNum($pageNum) - { - $this->pageNum = $pageNum; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setParentVid($parentVid) - { - $this->parentVid = $parentVid; - } - - public function setTemplatePid($templatePid) - { - $this->templatePid = $templatePid; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setRefPid($refPid) - { - $this->refPid = $refPid; - } - -} +setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "page_num", $this->pageNum); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "parent_vid", $this->parentVid); + $this->setUserParam($params, "template_pid", $this->templatePid); + $this->setUserParam($params, "value", $this->value); + $this->setUserParam($params, "ref_pid", $this->refPid); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.goods.template.property.value.search"; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setPageNum($pageNum) + { + $this->pageNum = $pageNum; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setParentVid($parentVid) + { + $this->parentVid = $parentVid; + } + + public function setTemplatePid($templatePid) + { + $this->templatePid = $templatePid; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setRefPid($refPid) + { + $this->refPid = $refPid; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddGooodsSkuMeasurementListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddGooodsSkuMeasurementListRequest.php index de2526d..2dbdd51 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddGooodsSkuMeasurementListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddGooodsSkuMeasurementListRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "status", $this->status); - $this->setUserParam($params, "update_end_time", $this->updateEndTime); - $this->setUserParam($params, "update_start_time", $this->updateStartTime); - $this->setUserParam($params, "quality_goods_invoice", $this->qualityGoodsInvoice); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.invoice.application.query"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function setUpdateEndTime($updateEndTime) - { - $this->updateEndTime = $updateEndTime; - } - - public function setUpdateStartTime($updateStartTime) - { - $this->updateStartTime = $updateStartTime; - } - - public function setQualityGoodsInvoice($qualityGoodsInvoice) - { - $this->qualityGoodsInvoice = $qualityGoodsInvoice; - } - -} +setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "status", $this->status); + $this->setUserParam($params, "update_end_time", $this->updateEndTime); + $this->setUserParam($params, "update_start_time", $this->updateStartTime); + $this->setUserParam($params, "quality_goods_invoice", $this->qualityGoodsInvoice); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.invoice.application.query"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function setUpdateEndTime($updateEndTime) + { + $this->updateEndTime = $updateEndTime; + } + + public function setUpdateStartTime($updateStartTime) + { + $this->updateStartTime = $updateStartTime; + } + + public function setQualityGoodsInvoice($qualityGoodsInvoice) + { + $this->qualityGoodsInvoice = $qualityGoodsInvoice; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddInvoiceDetailInvalidRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddInvoiceDetailInvalidRequest.php index c7a6a1e..043e25b 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddInvoiceDetailInvalidRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddInvoiceDetailInvalidRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "order_sn", $this->orderSn); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.invoice.detail.invalid"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} +setUserParam($params, "order_sn", $this->orderSn); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.invoice.detail.invalid"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddInvoiceDetailUploadRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddInvoiceDetailUploadRequest.php index d655e62..ed33e40 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddInvoiceDetailUploadRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddInvoiceDetailUploadRequest.php @@ -1,275 +1,275 @@ -setUserParam($params, "business_type", $this->businessType); - $this->setUserParam($params, "invoice_amount", $this->invoiceAmount); - $this->setUserParam($params, "invoice_code", $this->invoiceCode); - $this->setUserParam($params, "invoice_file_content", $this->invoiceFileContent); - $this->setUserParam($params, "invoice_kind", $this->invoiceKind); - $this->setUserParam($params, "invoice_no", $this->invoiceNo); - $this->setUserParam($params, "invoice_time", $this->invoiceTime); - $this->setUserParam($params, "invoice_type", $this->invoiceType); - $this->setUserParam($params, "memo", $this->memo); - $this->setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "original_invoice_code", $this->originalInvoiceCode); - $this->setUserParam($params, "original_invoice_no", $this->originalInvoiceNo); - $this->setUserParam($params, "payee_operator", $this->payeeOperator); - $this->setUserParam($params, "payer_account", $this->payerAccount); - $this->setUserParam($params, "payer_address", $this->payerAddress); - $this->setUserParam($params, "payer_bank", $this->payerBank); - $this->setUserParam($params, "payer_name", $this->payerName); - $this->setUserParam($params, "payer_phone", $this->payerPhone); - $this->setUserParam($params, "payer_register_no", $this->payerRegisterNo); - $this->setUserParam($params, "sum_price", $this->sumPrice); - $this->setUserParam($params, "sum_tax", $this->sumTax); - $this->setUserParam($params, "tax_rate", $this->taxRate); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.invoice.detail.upload"; - } - - public function setBusinessType($businessType) - { - $this->businessType = $businessType; - } - - public function setInvoiceAmount($invoiceAmount) - { - $this->invoiceAmount = $invoiceAmount; - } - - public function setInvoiceCode($invoiceCode) - { - $this->invoiceCode = $invoiceCode; - } - - public function setInvoiceFileContent($invoiceFileContent) - { - $this->invoiceFileContent = $invoiceFileContent; - } - - public function setInvoiceKind($invoiceKind) - { - $this->invoiceKind = $invoiceKind; - } - - public function setInvoiceNo($invoiceNo) - { - $this->invoiceNo = $invoiceNo; - } - - public function setInvoiceTime($invoiceTime) - { - $this->invoiceTime = $invoiceTime; - } - - public function setInvoiceType($invoiceType) - { - $this->invoiceType = $invoiceType; - } - - public function setMemo($memo) - { - $this->memo = $memo; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setOriginalInvoiceCode($originalInvoiceCode) - { - $this->originalInvoiceCode = $originalInvoiceCode; - } - - public function setOriginalInvoiceNo($originalInvoiceNo) - { - $this->originalInvoiceNo = $originalInvoiceNo; - } - - public function setPayeeOperator($payeeOperator) - { - $this->payeeOperator = $payeeOperator; - } - - public function setPayerAccount($payerAccount) - { - $this->payerAccount = $payerAccount; - } - - public function setPayerAddress($payerAddress) - { - $this->payerAddress = $payerAddress; - } - - public function setPayerBank($payerBank) - { - $this->payerBank = $payerBank; - } - - public function setPayerName($payerName) - { - $this->payerName = $payerName; - } - - public function setPayerPhone($payerPhone) - { - $this->payerPhone = $payerPhone; - } - - public function setPayerRegisterNo($payerRegisterNo) - { - $this->payerRegisterNo = $payerRegisterNo; - } - - public function setSumPrice($sumPrice) - { - $this->sumPrice = $sumPrice; - } - - public function setSumTax($sumTax) - { - $this->sumTax = $sumTax; - } - - public function setTaxRate($taxRate) - { - $this->taxRate = $taxRate; - } - -} +setUserParam($params, "business_type", $this->businessType); + $this->setUserParam($params, "invoice_amount", $this->invoiceAmount); + $this->setUserParam($params, "invoice_code", $this->invoiceCode); + $this->setUserParam($params, "invoice_file_content", $this->invoiceFileContent); + $this->setUserParam($params, "invoice_kind", $this->invoiceKind); + $this->setUserParam($params, "invoice_no", $this->invoiceNo); + $this->setUserParam($params, "invoice_time", $this->invoiceTime); + $this->setUserParam($params, "invoice_type", $this->invoiceType); + $this->setUserParam($params, "memo", $this->memo); + $this->setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "original_invoice_code", $this->originalInvoiceCode); + $this->setUserParam($params, "original_invoice_no", $this->originalInvoiceNo); + $this->setUserParam($params, "payee_operator", $this->payeeOperator); + $this->setUserParam($params, "payer_account", $this->payerAccount); + $this->setUserParam($params, "payer_address", $this->payerAddress); + $this->setUserParam($params, "payer_bank", $this->payerBank); + $this->setUserParam($params, "payer_name", $this->payerName); + $this->setUserParam($params, "payer_phone", $this->payerPhone); + $this->setUserParam($params, "payer_register_no", $this->payerRegisterNo); + $this->setUserParam($params, "sum_price", $this->sumPrice); + $this->setUserParam($params, "sum_tax", $this->sumTax); + $this->setUserParam($params, "tax_rate", $this->taxRate); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.invoice.detail.upload"; + } + + public function setBusinessType($businessType) + { + $this->businessType = $businessType; + } + + public function setInvoiceAmount($invoiceAmount) + { + $this->invoiceAmount = $invoiceAmount; + } + + public function setInvoiceCode($invoiceCode) + { + $this->invoiceCode = $invoiceCode; + } + + public function setInvoiceFileContent($invoiceFileContent) + { + $this->invoiceFileContent = $invoiceFileContent; + } + + public function setInvoiceKind($invoiceKind) + { + $this->invoiceKind = $invoiceKind; + } + + public function setInvoiceNo($invoiceNo) + { + $this->invoiceNo = $invoiceNo; + } + + public function setInvoiceTime($invoiceTime) + { + $this->invoiceTime = $invoiceTime; + } + + public function setInvoiceType($invoiceType) + { + $this->invoiceType = $invoiceType; + } + + public function setMemo($memo) + { + $this->memo = $memo; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setOriginalInvoiceCode($originalInvoiceCode) + { + $this->originalInvoiceCode = $originalInvoiceCode; + } + + public function setOriginalInvoiceNo($originalInvoiceNo) + { + $this->originalInvoiceNo = $originalInvoiceNo; + } + + public function setPayeeOperator($payeeOperator) + { + $this->payeeOperator = $payeeOperator; + } + + public function setPayerAccount($payerAccount) + { + $this->payerAccount = $payerAccount; + } + + public function setPayerAddress($payerAddress) + { + $this->payerAddress = $payerAddress; + } + + public function setPayerBank($payerBank) + { + $this->payerBank = $payerBank; + } + + public function setPayerName($payerName) + { + $this->payerName = $payerName; + } + + public function setPayerPhone($payerPhone) + { + $this->payerPhone = $payerPhone; + } + + public function setPayerRegisterNo($payerRegisterNo) + { + $this->payerRegisterNo = $payerRegisterNo; + } + + public function setSumPrice($sumPrice) + { + $this->sumPrice = $sumPrice; + } + + public function setSumTax($sumTax) + { + $this->sumTax = $sumTax; + } + + public function setTaxRate($taxRate) + { + $this->taxRate = $taxRate; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsCreateSpecRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsCreateSpecRequest.php index 6dfea57..7a9c594 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsCreateSpecRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsCreateSpecRequest.php @@ -1,44 +1,44 @@ ->, "spec_map") - */ - private $specMap; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "spec_map", $this->specMap); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.goods.create.spec"; - } - - public function setSpecMap($specMap) - { - $this->specMap = $specMap; - } - -} +>, "spec_map") + */ + private $specMap; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "spec_map", $this->specMap); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.goods.create.spec"; + } + + public function setSpecMap($specMap) + { + $this->specMap = $specMap; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsIncrQuantityRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsIncrQuantityRequest.php index 31e2227..515ee9b 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsIncrQuantityRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsIncrQuantityRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "modify_quantity_type", $this->modifyQuantityType); - $this->setUserParam($params, "quantity_delta", $this->quantityDelta); - $this->setUserParam($params, "sku_id", $this->skuId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.goods.incr.quantity"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setModifyQuantityType($modifyQuantityType) - { - $this->modifyQuantityType = $modifyQuantityType; - } - - public function setQuantityDelta($quantityDelta) - { - $this->quantityDelta = $quantityDelta; - } - - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "modify_quantity_type", $this->modifyQuantityType); + $this->setUserParam($params, "quantity_delta", $this->quantityDelta); + $this->setUserParam($params, "sku_id", $this->skuId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.goods.incr.quantity"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setModifyQuantityType($modifyQuantityType) + { + $this->modifyQuantityType = $modifyQuantityType; + } + + public function setQuantityDelta($quantityDelta) + { + $this->quantityDelta = $quantityDelta; + } + + public function setSkuId($skuId) + { + $this->skuId = $skuId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsQueryListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsQueryListRequest.php index 9ac23e8..529c37d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsQueryListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsQueryListRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "page", $this->page); - $this->setUserParam($params, "size", $this->size); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.goods.query.list"; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setSize($size) - { - $this->size = $size; - } - -} +setUserParam($params, "page", $this->page); + $this->setUserParam($params, "size", $this->size); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.goods.query.list"; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setSize($size) + { + $this->size = $size; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsQuerySingleRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsQuerySingleRequest.php index 8f2983e..7be0e38 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsQuerySingleRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsQuerySingleRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goods_id", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.goods.query.single"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.goods.query.single"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsUploadImageRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsUploadImageRequest.php index 163feab..ef434fd 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsUploadImageRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttGoodsUploadImageRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "url", $this->url); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.goods.upload.image"; - } - - public function setUrl($url) - { - $this->url = $url; - } - -} +setUserParam($params, "url", $this->url); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.goods.upload.image"; + } + + public function setUrl($url) + { + $this->url = $url; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttGroupCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttGroupCreateRequest.php index 422e72d..f08afa0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttGroupCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttGroupCreateRequest.php @@ -1,249 +1,249 @@ -, "goods_list") - */ - private $goodsList; - - /** - * @JsonProperty(String, "isv_no") - */ - private $isvNo; - - /** - * @JsonProperty(Integer, "is_save_preview") - */ - private $isSavePreview; - - /** - * @JsonProperty(Long, "start_time") - */ - private $startTime; - - /** - * @JsonProperty(String, "title") - */ - private $title; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "end_time", $this->endTime); - $this->setUserParam($params, "goods_list", $this->goodsList); - $this->setUserParam($params, "isv_no", $this->isvNo); - $this->setUserParam($params, "is_save_preview", $this->isSavePreview); - $this->setUserParam($params, "start_time", $this->startTime); - $this->setUserParam($params, "title", $this->title); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.group.create"; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setGoodsList($goodsList) - { - $this->goodsList = $goodsList; - } - - public function setIsvNo($isvNo) - { - $this->isvNo = $isvNo; - } - - public function setIsSavePreview($isSavePreview) - { - $this->isSavePreview = $isSavePreview; - } - - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - - public function setTitle($title) - { - $this->title = $title; - } - -} - -class PddKttGroupCreateRequest_GoodsListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "category_name") - */ - private $categoryName; - - /** - * @JsonProperty(String, "goods_desc") - */ - private $goodsDesc; - - /** - * @JsonProperty(String, "goods_name") - */ - private $goodsName; - - /** - * @JsonProperty(Integer, "limit_buy") - */ - private $limitBuy; - - /** - * @JsonProperty(Long, "market_price") - */ - private $marketPrice; - - /** - * @JsonProperty(List, "pic_url_list") - */ - private $picUrlList; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddKttGroupCreateRequest_GoodsListItemSkuListItem>, "sku_list") - */ - private $skuList; - - public function setCategoryName($categoryName) - { - $this->categoryName = $categoryName; - } - - public function setGoodsDesc($goodsDesc) - { - $this->goodsDesc = $goodsDesc; - } - - public function setGoodsName($goodsName) - { - $this->goodsName = $goodsName; - } - - public function setLimitBuy($limitBuy) - { - $this->limitBuy = $limitBuy; - } - - public function setMarketPrice($marketPrice) - { - $this->marketPrice = $marketPrice; - } - - public function setPicUrlList($picUrlList) - { - $this->picUrlList = $picUrlList; - } - - public function setSkuList($skuList) - { - $this->skuList = $skuList; - } - -} - -class PddKttGroupCreateRequest_GoodsListItemSkuListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "external_sku_id") - */ - private $externalSkuId; - - /** - * @JsonProperty(Long, "price_in_fen") - */ - private $priceInFen; - - /** - * @JsonProperty(Integer, "quantity_type") - */ - private $quantityType; - - /** - * @JsonProperty(List, "spec_id_list") - */ - private $specIdList; - - /** - * @JsonProperty(String, "thumb_url") - */ - private $thumbUrl; - - /** - * @JsonProperty(Long, "total_quantity") - */ - private $totalQuantity; - - public function setExternalSkuId($externalSkuId) - { - $this->externalSkuId = $externalSkuId; - } - - public function setPriceInFen($priceInFen) - { - $this->priceInFen = $priceInFen; - } - - public function setQuantityType($quantityType) - { - $this->quantityType = $quantityType; - } - - public function setSpecIdList($specIdList) - { - $this->specIdList = $specIdList; - } - - public function setThumbUrl($thumbUrl) - { - $this->thumbUrl = $thumbUrl; - } - - public function setTotalQuantity($totalQuantity) - { - $this->totalQuantity = $totalQuantity; - } - -} +, "goods_list") + */ + private $goodsList; + + /** + * @JsonProperty(String, "isv_no") + */ + private $isvNo; + + /** + * @JsonProperty(Integer, "is_save_preview") + */ + private $isSavePreview; + + /** + * @JsonProperty(Long, "start_time") + */ + private $startTime; + + /** + * @JsonProperty(String, "title") + */ + private $title; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "end_time", $this->endTime); + $this->setUserParam($params, "goods_list", $this->goodsList); + $this->setUserParam($params, "isv_no", $this->isvNo); + $this->setUserParam($params, "is_save_preview", $this->isSavePreview); + $this->setUserParam($params, "start_time", $this->startTime); + $this->setUserParam($params, "title", $this->title); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.group.create"; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setGoodsList($goodsList) + { + $this->goodsList = $goodsList; + } + + public function setIsvNo($isvNo) + { + $this->isvNo = $isvNo; + } + + public function setIsSavePreview($isSavePreview) + { + $this->isSavePreview = $isSavePreview; + } + + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + + public function setTitle($title) + { + $this->title = $title; + } + +} + +class PddKttGroupCreateRequest_GoodsListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "category_name") + */ + private $categoryName; + + /** + * @JsonProperty(String, "goods_desc") + */ + private $goodsDesc; + + /** + * @JsonProperty(String, "goods_name") + */ + private $goodsName; + + /** + * @JsonProperty(Integer, "limit_buy") + */ + private $limitBuy; + + /** + * @JsonProperty(Long, "market_price") + */ + private $marketPrice; + + /** + * @JsonProperty(List, "pic_url_list") + */ + private $picUrlList; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddKttGroupCreateRequest_GoodsListItemSkuListItem>, "sku_list") + */ + private $skuList; + + public function setCategoryName($categoryName) + { + $this->categoryName = $categoryName; + } + + public function setGoodsDesc($goodsDesc) + { + $this->goodsDesc = $goodsDesc; + } + + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + } + + public function setLimitBuy($limitBuy) + { + $this->limitBuy = $limitBuy; + } + + public function setMarketPrice($marketPrice) + { + $this->marketPrice = $marketPrice; + } + + public function setPicUrlList($picUrlList) + { + $this->picUrlList = $picUrlList; + } + + public function setSkuList($skuList) + { + $this->skuList = $skuList; + } + +} + +class PddKttGroupCreateRequest_GoodsListItemSkuListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "external_sku_id") + */ + private $externalSkuId; + + /** + * @JsonProperty(Long, "price_in_fen") + */ + private $priceInFen; + + /** + * @JsonProperty(Integer, "quantity_type") + */ + private $quantityType; + + /** + * @JsonProperty(List, "spec_id_list") + */ + private $specIdList; + + /** + * @JsonProperty(String, "thumb_url") + */ + private $thumbUrl; + + /** + * @JsonProperty(Long, "total_quantity") + */ + private $totalQuantity; + + public function setExternalSkuId($externalSkuId) + { + $this->externalSkuId = $externalSkuId; + } + + public function setPriceInFen($priceInFen) + { + $this->priceInFen = $priceInFen; + } + + public function setQuantityType($quantityType) + { + $this->quantityType = $quantityType; + } + + public function setSpecIdList($specIdList) + { + $this->specIdList = $specIdList; + } + + public function setThumbUrl($thumbUrl) + { + $this->thumbUrl = $thumbUrl; + } + + public function setTotalQuantity($totalQuantity) + { + $this->totalQuantity = $totalQuantity; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttGroupQueryStatusRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttGroupQueryStatusRequest.php index a5c8412..8b70dba 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttGroupQueryStatusRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttGroupQueryStatusRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "activity_no", $this->activityNo); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.group.query.status"; - } - - public function setActivityNo($activityNo) - { - $this->activityNo = $activityNo; - } - -} +setUserParam($params, "activity_no", $this->activityNo); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.group.query.status"; + } + + public function setActivityNo($activityNo) + { + $this->activityNo = $activityNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttIncrementOrderQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttIncrementOrderQueryRequest.php index 4babd09..12034ff 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttIncrementOrderQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttIncrementOrderQueryRequest.php @@ -1,121 +1,121 @@ -setUserParam($params, "after_sales_status", $this->afterSalesStatus); - $this->setUserParam($params, "cancel_status", $this->cancelStatus); - $this->setUserParam($params, "end_updated_at", $this->endUpdatedAt); - $this->setUserParam($params, "page_number", $this->pageNumber); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "shipping_status", $this->shippingStatus); - $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt); - $this->setUserParam($params, "verification_status", $this->verificationStatus); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.increment.order.query"; - } - - public function setAfterSalesStatus($afterSalesStatus) - { - $this->afterSalesStatus = $afterSalesStatus; - } - - public function setCancelStatus($cancelStatus) - { - $this->cancelStatus = $cancelStatus; - } - - public function setEndUpdatedAt($endUpdatedAt) - { - $this->endUpdatedAt = $endUpdatedAt; - } - - public function setPageNumber($pageNumber) - { - $this->pageNumber = $pageNumber; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setShippingStatus($shippingStatus) - { - $this->shippingStatus = $shippingStatus; - } - - public function setStartUpdatedAt($startUpdatedAt) - { - $this->startUpdatedAt = $startUpdatedAt; - } - - public function setVerificationStatus($verificationStatus) - { - $this->verificationStatus = $verificationStatus; - } - -} +setUserParam($params, "after_sales_status", $this->afterSalesStatus); + $this->setUserParam($params, "cancel_status", $this->cancelStatus); + $this->setUserParam($params, "end_updated_at", $this->endUpdatedAt); + $this->setUserParam($params, "page_number", $this->pageNumber); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "shipping_status", $this->shippingStatus); + $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt); + $this->setUserParam($params, "verification_status", $this->verificationStatus); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.increment.order.query"; + } + + public function setAfterSalesStatus($afterSalesStatus) + { + $this->afterSalesStatus = $afterSalesStatus; + } + + public function setCancelStatus($cancelStatus) + { + $this->cancelStatus = $cancelStatus; + } + + public function setEndUpdatedAt($endUpdatedAt) + { + $this->endUpdatedAt = $endUpdatedAt; + } + + public function setPageNumber($pageNumber) + { + $this->pageNumber = $pageNumber; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setShippingStatus($shippingStatus) + { + $this->shippingStatus = $shippingStatus; + } + + public function setStartUpdatedAt($startUpdatedAt) + { + $this->startUpdatedAt = $startUpdatedAt; + } + + public function setVerificationStatus($verificationStatus) + { + $this->verificationStatus = $verificationStatus; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderGetRequest.php index 876e00e..0d8ba44 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "order_sn", $this->orderSn); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.order.get"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} +setUserParam($params, "order_sn", $this->orderSn); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.order.get"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderListRequest.php index ca88f63..aac312f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderListRequest.php @@ -1,121 +1,121 @@ -setUserParam($params, "after_sales_status", $this->afterSalesStatus); - $this->setUserParam($params, "cancel_status", $this->cancelStatus); - $this->setUserParam($params, "confirm_at_begin", $this->confirmAtBegin); - $this->setUserParam($params, "confirm_at_end", $this->confirmAtEnd); - $this->setUserParam($params, "page_number", $this->pageNumber); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "shipping_status", $this->shippingStatus); - $this->setUserParam($params, "verification_status", $this->verificationStatus); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.order.list"; - } - - public function setAfterSalesStatus($afterSalesStatus) - { - $this->afterSalesStatus = $afterSalesStatus; - } - - public function setCancelStatus($cancelStatus) - { - $this->cancelStatus = $cancelStatus; - } - - public function setConfirmAtBegin($confirmAtBegin) - { - $this->confirmAtBegin = $confirmAtBegin; - } - - public function setConfirmAtEnd($confirmAtEnd) - { - $this->confirmAtEnd = $confirmAtEnd; - } - - public function setPageNumber($pageNumber) - { - $this->pageNumber = $pageNumber; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setShippingStatus($shippingStatus) - { - $this->shippingStatus = $shippingStatus; - } - - public function setVerificationStatus($verificationStatus) - { - $this->verificationStatus = $verificationStatus; - } - -} +setUserParam($params, "after_sales_status", $this->afterSalesStatus); + $this->setUserParam($params, "cancel_status", $this->cancelStatus); + $this->setUserParam($params, "confirm_at_begin", $this->confirmAtBegin); + $this->setUserParam($params, "confirm_at_end", $this->confirmAtEnd); + $this->setUserParam($params, "page_number", $this->pageNumber); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "shipping_status", $this->shippingStatus); + $this->setUserParam($params, "verification_status", $this->verificationStatus); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.order.list"; + } + + public function setAfterSalesStatus($afterSalesStatus) + { + $this->afterSalesStatus = $afterSalesStatus; + } + + public function setCancelStatus($cancelStatus) + { + $this->cancelStatus = $cancelStatus; + } + + public function setConfirmAtBegin($confirmAtBegin) + { + $this->confirmAtBegin = $confirmAtBegin; + } + + public function setConfirmAtEnd($confirmAtEnd) + { + $this->confirmAtEnd = $confirmAtEnd; + } + + public function setPageNumber($pageNumber) + { + $this->pageNumber = $pageNumber; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setShippingStatus($shippingStatus) + { + $this->shippingStatus = $shippingStatus; + } + + public function setVerificationStatus($verificationStatus) + { + $this->verificationStatus = $verificationStatus; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderLogisticCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderLogisticCreateRequest.php index da44842..dd29113 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderLogisticCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttOrderLogisticCreateRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "logisticsId", $this->logisticsId); - $this->setUserParam($params, "logisticsName", $this->logisticsName); - $this->setUserParam($params, "orderSn", $this->orderSn); - $this->setUserParam($params, "waybillNo", $this->waybillNo); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.order.logistic.create"; - } - - public function setLogisticsId($logisticsId) - { - $this->logisticsId = $logisticsId; - } - - public function setLogisticsName($logisticsName) - { - $this->logisticsName = $logisticsName; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setWaybillNo($waybillNo) - { - $this->waybillNo = $waybillNo; - } - -} +setUserParam($params, "logisticsId", $this->logisticsId); + $this->setUserParam($params, "logisticsName", $this->logisticsName); + $this->setUserParam($params, "orderSn", $this->orderSn); + $this->setUserParam($params, "waybillNo", $this->waybillNo); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.order.logistic.create"; + } + + public function setLogisticsId($logisticsId) + { + $this->logisticsId = $logisticsId; + } + + public function setLogisticsName($logisticsName) + { + $this->logisticsName = $logisticsName; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setWaybillNo($waybillNo) + { + $this->waybillNo = $waybillNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddKttUserSitePagequeryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddKttUserSitePagequeryRequest.php index 023130d..b14f99c 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddKttUserSitePagequeryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddKttUserSitePagequeryRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "page_no", $this->pageNo); - $this->setUserParam($params, "page_size", $this->pageSize); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ktt.user.site.pagequery"; - } - - public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - -} +setUserParam($params, "page_no", $this->pageNo); + $this->setUserParam($params, "page_size", $this->pageSize); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ktt.user.site.pagequery"; + } + + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsAddressGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsAddressGetRequest.php index 55a2b52..a712259 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsAddressGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsAddressGetRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "session_id", $this->sessionId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.cs.history.message.get"; - } - - public function setSessionId($sessionId) - { - $this->sessionId = $sessionId; - } - -} +setUserParam($params, "session_id", $this->sessionId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.cs.history.message.get"; + } + + public function setSessionId($sessionId) + { + $this->sessionId = $sessionId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsMessageSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsMessageSendRequest.php index 558f694..1a6126c 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsMessageSendRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsMessageSendRequest.php @@ -1,110 +1,110 @@ -setUserParam($params, "session_id", $this->sessionId); - $this->setUserParam($params, "wp_session_id", $this->wpSessionId); - $this->setUserParam($params, "action_time", $this->actionTime); - $this->setUserParam($params, "message_type", $this->messageType); - $this->setUserParam($params, "text", $this->text); - $this->setUserParam($params, "attach", $this->attach); - $this->setUserParam($params, "preview", $this->preview); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.cs.message.send"; - } - - public function setSessionId($sessionId) - { - $this->sessionId = $sessionId; - } - - public function setWpSessionId($wpSessionId) - { - $this->wpSessionId = $wpSessionId; - } - - public function setActionTime($actionTime) - { - $this->actionTime = $actionTime; - } - - public function setMessageType($messageType) - { - $this->messageType = $messageType; - } - - public function setText($text) - { - $this->text = $text; - } - - public function setAttach($attach) - { - $this->attach = $attach; - } - - public function setPreview($preview) - { - $this->preview = $preview; - } - -} +setUserParam($params, "session_id", $this->sessionId); + $this->setUserParam($params, "wp_session_id", $this->wpSessionId); + $this->setUserParam($params, "action_time", $this->actionTime); + $this->setUserParam($params, "message_type", $this->messageType); + $this->setUserParam($params, "text", $this->text); + $this->setUserParam($params, "attach", $this->attach); + $this->setUserParam($params, "preview", $this->preview); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.cs.message.send"; + } + + public function setSessionId($sessionId) + { + $this->sessionId = $sessionId; + } + + public function setWpSessionId($wpSessionId) + { + $this->wpSessionId = $wpSessionId; + } + + public function setActionTime($actionTime) + { + $this->actionTime = $actionTime; + } + + public function setMessageType($messageType) + { + $this->messageType = $messageType; + } + + public function setText($text) + { + $this->text = $text; + } + + public function setAttach($attach) + { + $this->attach = $attach; + } + + public function setPreview($preview) + { + $this->preview = $preview; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsSessionCloseRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsSessionCloseRequest.php index bac5a68..1abe4a1 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsSessionCloseRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsSessionCloseRequest.php @@ -1,66 +1,66 @@ -setUserParam($params, "session_id", $this->sessionId); - $this->setUserParam($params, "wp_session_id", $this->wpSessionId); - $this->setUserParam($params, "action_time", $this->actionTime); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.cs.session.close"; - } - - public function setSessionId($sessionId) - { - $this->sessionId = $sessionId; - } - - public function setWpSessionId($wpSessionId) - { - $this->wpSessionId = $wpSessionId; - } - - public function setActionTime($actionTime) - { - $this->actionTime = $actionTime; - } - -} +setUserParam($params, "session_id", $this->sessionId); + $this->setUserParam($params, "wp_session_id", $this->wpSessionId); + $this->setUserParam($params, "action_time", $this->actionTime); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.cs.session.close"; + } + + public function setSessionId($sessionId) + { + $this->sessionId = $sessionId; + } + + public function setWpSessionId($wpSessionId) + { + $this->wpSessionId = $wpSessionId; + } + + public function setActionTime($actionTime) + { + $this->actionTime = $actionTime; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsSessionStartRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsSessionStartRequest.php index 7e1a876..c3710aa 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsSessionStartRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsCsSessionStartRequest.php @@ -1,154 +1,154 @@ -setUserParam($params, "session_id", $this->sessionId); - $this->setUserParam($params, "wp_session_id", $this->wpSessionId); - $this->setUserParam($params, "action_time", $this->actionTime); - $this->setUserParam($params, "biz_type", $this->bizType); - $this->setUserParam($params, "dealer_id", $this->dealerId); - $this->setUserParam($params, "queue_id", $this->queueId); - $this->setUserParam($params, "queue_name", $this->queueName); - $this->setUserParam($params, "queue_index", $this->queueIndex); - $this->setUserParam($params, "exception_code", $this->exceptionCode); - $this->setUserParam($params, "exception_msg", $this->exceptionMsg); - $this->setUserParam($params, "queue_address", $this->queueAddress); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.cs.session.start"; - } - - public function setSessionId($sessionId) - { - $this->sessionId = $sessionId; - } - - public function setWpSessionId($wpSessionId) - { - $this->wpSessionId = $wpSessionId; - } - - public function setActionTime($actionTime) - { - $this->actionTime = $actionTime; - } - - public function setBizType($bizType) - { - $this->bizType = $bizType; - } - - public function setDealerId($dealerId) - { - $this->dealerId = $dealerId; - } - - public function setQueueId($queueId) - { - $this->queueId = $queueId; - } - - public function setQueueName($queueName) - { - $this->queueName = $queueName; - } - - public function setQueueIndex($queueIndex) - { - $this->queueIndex = $queueIndex; - } - - public function setExceptionCode($exceptionCode) - { - $this->exceptionCode = $exceptionCode; - } - - public function setExceptionMsg($exceptionMsg) - { - $this->exceptionMsg = $exceptionMsg; - } - - public function setQueueAddress($queueAddress) - { - $this->queueAddress = $queueAddress; - } - -} +setUserParam($params, "session_id", $this->sessionId); + $this->setUserParam($params, "wp_session_id", $this->wpSessionId); + $this->setUserParam($params, "action_time", $this->actionTime); + $this->setUserParam($params, "biz_type", $this->bizType); + $this->setUserParam($params, "dealer_id", $this->dealerId); + $this->setUserParam($params, "queue_id", $this->queueId); + $this->setUserParam($params, "queue_name", $this->queueName); + $this->setUserParam($params, "queue_index", $this->queueIndex); + $this->setUserParam($params, "exception_code", $this->exceptionCode); + $this->setUserParam($params, "exception_msg", $this->exceptionMsg); + $this->setUserParam($params, "queue_address", $this->queueAddress); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.cs.session.start"; + } + + public function setSessionId($sessionId) + { + $this->sessionId = $sessionId; + } + + public function setWpSessionId($wpSessionId) + { + $this->wpSessionId = $wpSessionId; + } + + public function setActionTime($actionTime) + { + $this->actionTime = $actionTime; + } + + public function setBizType($bizType) + { + $this->bizType = $bizType; + } + + public function setDealerId($dealerId) + { + $this->dealerId = $dealerId; + } + + public function setQueueId($queueId) + { + $this->queueId = $queueId; + } + + public function setQueueName($queueName) + { + $this->queueName = $queueName; + } + + public function setQueueIndex($queueIndex) + { + $this->queueIndex = $queueIndex; + } + + public function setExceptionCode($exceptionCode) + { + $this->exceptionCode = $exceptionCode; + } + + public function setExceptionMsg($exceptionMsg) + { + $this->exceptionMsg = $exceptionMsg; + } + + public function setQueueAddress($queueAddress) + { + $this->queueAddress = $queueAddress; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsIsvTraceNotifySubRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsIsvTraceNotifySubRequest.php index d62c69d..c74cc97 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsIsvTraceNotifySubRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsIsvTraceNotifySubRequest.php @@ -1,66 +1,66 @@ -setUserParam($params, "ship_code", $this->shipCode); - $this->setUserParam($params, "tel", $this->tel); - $this->setUserParam($params, "track_no", $this->trackNo); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.isv.trace.notify.sub"; - } - - public function setShipCode($shipCode) - { - $this->shipCode = $shipCode; - } - - public function setTel($tel) - { - $this->tel = $tel; - } - - public function setTrackNo($trackNo) - { - $this->trackNo = $trackNo; - } - -} +setUserParam($params, "ship_code", $this->shipCode); + $this->setUserParam($params, "tel", $this->tel); + $this->setUserParam($params, "track_no", $this->trackNo); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.isv.trace.notify.sub"; + } + + public function setShipCode($shipCode) + { + $this->shipCode = $shipCode; + } + + public function setTel($tel) + { + $this->tel = $tel; + } + + public function setTrackNo($trackNo) + { + $this->trackNo = $trackNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineCreateRequest.php index 82188f5..5c76e1e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineCreateRequest.php @@ -1,121 +1,121 @@ -setUserParam($params, "tracking_number", $this->trackingNumber); - $this->setUserParam($params, "shipping_id", $this->shippingId); - $this->setUserParam($params, "return_id", $this->returnId); - $this->setUserParam($params, "delivery_phone", $this->deliveryPhone); - $this->setUserParam($params, "delivery_name", $this->deliveryName); - $this->setUserParam($params, "delivery_address", $this->deliveryAddress); - $this->setUserParam($params, "delivery_id", $this->deliveryId); - $this->setUserParam($params, "order_sn", $this->orderSn); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.online.create"; - } - - public function setTrackingNumber($trackingNumber) - { - $this->trackingNumber = $trackingNumber; - } - - public function setShippingId($shippingId) - { - $this->shippingId = $shippingId; - } - - public function setReturnId($returnId) - { - $this->returnId = $returnId; - } - - public function setDeliveryPhone($deliveryPhone) - { - $this->deliveryPhone = $deliveryPhone; - } - - public function setDeliveryName($deliveryName) - { - $this->deliveryName = $deliveryName; - } - - public function setDeliveryAddress($deliveryAddress) - { - $this->deliveryAddress = $deliveryAddress; - } - - public function setDeliveryId($deliveryId) - { - $this->deliveryId = $deliveryId; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} +setUserParam($params, "tracking_number", $this->trackingNumber); + $this->setUserParam($params, "shipping_id", $this->shippingId); + $this->setUserParam($params, "return_id", $this->returnId); + $this->setUserParam($params, "delivery_phone", $this->deliveryPhone); + $this->setUserParam($params, "delivery_name", $this->deliveryName); + $this->setUserParam($params, "delivery_address", $this->deliveryAddress); + $this->setUserParam($params, "delivery_id", $this->deliveryId); + $this->setUserParam($params, "order_sn", $this->orderSn); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.online.create"; + } + + public function setTrackingNumber($trackingNumber) + { + $this->trackingNumber = $trackingNumber; + } + + public function setShippingId($shippingId) + { + $this->shippingId = $shippingId; + } + + public function setReturnId($returnId) + { + $this->returnId = $returnId; + } + + public function setDeliveryPhone($deliveryPhone) + { + $this->deliveryPhone = $deliveryPhone; + } + + public function setDeliveryName($deliveryName) + { + $this->deliveryName = $deliveryName; + } + + public function setDeliveryAddress($deliveryAddress) + { + $this->deliveryAddress = $deliveryAddress; + } + + public function setDeliveryId($deliveryId) + { + $this->deliveryId = $deliveryId; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineSendRequest.php index 042e4f2..8e118f4 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineSendRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineSendRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "feature", $this->feature); - $this->setUserParam($params, "logistics_id", $this->logisticsId); - $this->setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "refund_address_id", $this->refundAddressId); - $this->setUserParam($params, "tracking_number", $this->trackingNumber); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.online.send"; - } - - public function setFeature($feature) - { - $this->feature = $feature; - } - - public function setLogisticsId($logisticsId) - { - $this->logisticsId = $logisticsId; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setRefundAddressId($refundAddressId) - { - $this->refundAddressId = $refundAddressId; - } - - public function setTrackingNumber($trackingNumber) - { - $this->trackingNumber = $trackingNumber; - } - -} +setUserParam($params, "feature", $this->feature); + $this->setUserParam($params, "logistics_id", $this->logisticsId); + $this->setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "refund_address_id", $this->refundAddressId); + $this->setUserParam($params, "tracking_number", $this->trackingNumber); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.online.send"; + } + + public function setFeature($feature) + { + $this->feature = $feature; + } + + public function setLogisticsId($logisticsId) + { + $this->logisticsId = $logisticsId; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setRefundAddressId($refundAddressId) + { + $this->refundAddressId = $refundAddressId; + } + + public function setTrackingNumber($trackingNumber) + { + $this->trackingNumber = $trackingNumber; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineStatusQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineStatusQueryRequest.php index be7582a..3b14c8e 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineStatusQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOnlineStatusQueryRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "order_sn", $this->orderSn); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.online.status.query"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} +setUserParam($params, "order_sn", $this->orderSn); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.online.status.query"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOrdertraceGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOrdertraceGetRequest.php index 102cc80..623e2eb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOrdertraceGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsOrdertraceGetRequest.php @@ -1,66 +1,66 @@ -setUserParam($params, "company_code", $this->companyCode); - $this->setUserParam($params, "mail_no", $this->mailNo); - $this->setUserParam($params, "cache", $this->cache); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.ordertrace.get"; - } - - public function setCompanyCode($companyCode) - { - $this->companyCode = $companyCode; - } - - public function setMailNo($mailNo) - { - $this->mailNo = $mailNo; - } - - public function setCache($cache) - { - $this->cache = $cache; - } - -} +setUserParam($params, "company_code", $this->companyCode); + $this->setUserParam($params, "mail_no", $this->mailNo); + $this->setUserParam($params, "cache", $this->cache); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.ordertrace.get"; + } + + public function setCompanyCode($companyCode) + { + $this->companyCode = $companyCode; + } + + public function setMailNo($mailNo) + { + $this->mailNo = $mailNo; + } + + public function setCache($cache) + { + $this->cache = $cache; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketGetRequest.php index 0902a55..55e8f65 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketGetRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "end_updated_at", $this->endUpdatedAt); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.ticket.get"; - } - - public function setEndUpdatedAt($endUpdatedAt) - { - $this->endUpdatedAt = $endUpdatedAt; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setStartUpdatedAt($startUpdatedAt) - { - $this->startUpdatedAt = $startUpdatedAt; - } - -} +setUserParam($params, "end_updated_at", $this->endUpdatedAt); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.ticket.get"; + } + + public function setEndUpdatedAt($endUpdatedAt) + { + $this->endUpdatedAt = $endUpdatedAt; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setStartUpdatedAt($startUpdatedAt) + { + $this->startUpdatedAt = $startUpdatedAt; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketImageUploadRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketImageUploadRequest.php index 89f179c..e8a99a5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketImageUploadRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketImageUploadRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "image", $this->image); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.ticket.image.upload"; - } - - public function setImage($image) - { - $this->image = $image; - } - -} +setUserParam($params, "image", $this->image); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.ticket.image.upload"; + } + + public function setImage($image) + { + $this->image = $image; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketNotifyRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketNotifyRequest.php index f056581..dc11d6f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketNotifyRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketNotifyRequest.php @@ -1,143 +1,143 @@ -, "attach_path_list") - */ - private $attachPathList; - - /** - * @JsonProperty(Long, "ticket_id") - */ - private $ticketId; - - /** - * @JsonProperty(String, "waybill_no") - */ - private $waybillNo; - - /** - * @JsonProperty(String, "handle_result") - */ - private $handleResult; - - /** - * @JsonProperty(Integer, "sign_state") - */ - private $signState; - - /** - * @JsonProperty(Integer, "compensate_state") - */ - private $compensateState; - - /** - * @JsonProperty(Long, "compensate_amount") - */ - private $compensateAmount; - - /** - * @JsonProperty(Integer, "duty") - */ - private $duty; - - /** - * @JsonProperty(String, "express_dealer") - */ - private $expressDealer; - - /** - * @JsonProperty(String, "express_dealer_contact") - */ - private $expressDealerContact; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "attach_path_list", $this->attachPathList); - $this->setUserParam($params, "ticket_id", $this->ticketId); - $this->setUserParam($params, "waybill_no", $this->waybillNo); - $this->setUserParam($params, "handle_result", $this->handleResult); - $this->setUserParam($params, "sign_state", $this->signState); - $this->setUserParam($params, "compensate_state", $this->compensateState); - $this->setUserParam($params, "compensate_amount", $this->compensateAmount); - $this->setUserParam($params, "duty", $this->duty); - $this->setUserParam($params, "express_dealer", $this->expressDealer); - $this->setUserParam($params, "express_dealer_contact", $this->expressDealerContact); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.logistics.ticket.notify"; - } - - public function setAttachPathList($attachPathList) - { - $this->attachPathList = $attachPathList; - } - - public function setTicketId($ticketId) - { - $this->ticketId = $ticketId; - } - - public function setWaybillNo($waybillNo) - { - $this->waybillNo = $waybillNo; - } - - public function setHandleResult($handleResult) - { - $this->handleResult = $handleResult; - } - - public function setSignState($signState) - { - $this->signState = $signState; - } - - public function setCompensateState($compensateState) - { - $this->compensateState = $compensateState; - } - - public function setCompensateAmount($compensateAmount) - { - $this->compensateAmount = $compensateAmount; - } - - public function setDuty($duty) - { - $this->duty = $duty; - } - - public function setExpressDealer($expressDealer) - { - $this->expressDealer = $expressDealer; - } - - public function setExpressDealerContact($expressDealerContact) - { - $this->expressDealerContact = $expressDealerContact; - } - -} +, "attach_path_list") + */ + private $attachPathList; + + /** + * @JsonProperty(Long, "ticket_id") + */ + private $ticketId; + + /** + * @JsonProperty(String, "waybill_no") + */ + private $waybillNo; + + /** + * @JsonProperty(String, "handle_result") + */ + private $handleResult; + + /** + * @JsonProperty(Integer, "sign_state") + */ + private $signState; + + /** + * @JsonProperty(Integer, "compensate_state") + */ + private $compensateState; + + /** + * @JsonProperty(Long, "compensate_amount") + */ + private $compensateAmount; + + /** + * @JsonProperty(Integer, "duty") + */ + private $duty; + + /** + * @JsonProperty(String, "express_dealer") + */ + private $expressDealer; + + /** + * @JsonProperty(String, "express_dealer_contact") + */ + private $expressDealerContact; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "attach_path_list", $this->attachPathList); + $this->setUserParam($params, "ticket_id", $this->ticketId); + $this->setUserParam($params, "waybill_no", $this->waybillNo); + $this->setUserParam($params, "handle_result", $this->handleResult); + $this->setUserParam($params, "sign_state", $this->signState); + $this->setUserParam($params, "compensate_state", $this->compensateState); + $this->setUserParam($params, "compensate_amount", $this->compensateAmount); + $this->setUserParam($params, "duty", $this->duty); + $this->setUserParam($params, "express_dealer", $this->expressDealer); + $this->setUserParam($params, "express_dealer_contact", $this->expressDealerContact); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.logistics.ticket.notify"; + } + + public function setAttachPathList($attachPathList) + { + $this->attachPathList = $attachPathList; + } + + public function setTicketId($ticketId) + { + $this->ticketId = $ticketId; + } + + public function setWaybillNo($waybillNo) + { + $this->waybillNo = $waybillNo; + } + + public function setHandleResult($handleResult) + { + $this->handleResult = $handleResult; + } + + public function setSignState($signState) + { + $this->signState = $signState; + } + + public function setCompensateState($compensateState) + { + $this->compensateState = $compensateState; + } + + public function setCompensateAmount($compensateAmount) + { + $this->compensateAmount = $compensateAmount; + } + + public function setDuty($duty) + { + $this->duty = $duty; + } + + public function setExpressDealer($expressDealer) + { + $this->expressDealer = $expressDealer; + } + + public function setExpressDealerContact($expressDealerContact) + { + $this->expressDealerContact = $expressDealerContact; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketProblemTypeGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketProblemTypeGetRequest.php index a26cd24..252b540 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketProblemTypeGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddLogisticsTicketProblemTypeGetRequest.php @@ -1,33 +1,33 @@ -, "store_id_list") - */ - private $storeIdList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "group_id", $this->groupId); - $this->setUserParam($params, "store_id_list", $this->storeIdList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.info.group.add.store.post"; - } - - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - - public function setStoreIdList($storeIdList) - { - $this->storeIdList = $storeIdList; - } - -} +, "store_id_list") + */ + private $storeIdList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "group_id", $this->groupId); + $this->setUserParam($params, "store_id_list", $this->storeIdList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.info.group.add.store.post"; + } + + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + + public function setStoreIdList($storeIdList) + { + $this->storeIdList = $storeIdList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoGroupListStoreGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoGroupListStoreGetRequest.php index 79a7287..f774b59 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoGroupListStoreGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoGroupListStoreGetRequest.php @@ -1,66 +1,66 @@ -setUserParam($params, "group_id", $this->groupId); - $this->setUserParam($params, "page_number", $this->pageNumber); - $this->setUserParam($params, "page_size", $this->pageSize); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.info.group.list.store.get"; - } - - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - - public function setPageNumber($pageNumber) - { - $this->pageNumber = $pageNumber; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - -} +setUserParam($params, "group_id", $this->groupId); + $this->setUserParam($params, "page_number", $this->pageNumber); + $this->setUserParam($params, "page_size", $this->pageSize); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.info.group.list.store.get"; + } + + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + + public function setPageNumber($pageNumber) + { + $this->pageNumber = $pageNumber; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoGroupRemoveStoreGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoGroupRemoveStoreGetRequest.php index d93173f..c1f4af3 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoGroupRemoveStoreGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoGroupRemoveStoreGetRequest.php @@ -1,55 +1,55 @@ -, "store_id_list") - */ - private $storeIdList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "group_id", $this->groupId); - $this->setUserParam($params, "store_id_list", $this->storeIdList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.info.group.remove.store.get"; - } - - public function setGroupId($groupId) - { - $this->groupId = $groupId; - } - - public function setStoreIdList($storeIdList) - { - $this->storeIdList = $storeIdList; - } - -} +, "store_id_list") + */ + private $storeIdList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "group_id", $this->groupId); + $this->setUserParam($params, "store_id_list", $this->storeIdList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.info.group.remove.store.get"; + } + + public function setGroupId($groupId) + { + $this->groupId = $groupId; + } + + public function setStoreIdList($storeIdList) + { + $this->storeIdList = $storeIdList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreCreatePostNopoiRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreCreatePostNopoiRequest.php index 47c34dd..94b1a11 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreCreatePostNopoiRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreCreatePostNopoiRequest.php @@ -1,187 +1,187 @@ -, "business_week_list") - */ - private $businessWeekList; - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "end_business_hour") - */ - private $endBusinessHour; - - /** - * @JsonProperty(Double, "poi_latitude") - */ - private $poiLatitude; - - /** - * @JsonProperty(Double, "poi_longitude") - */ - private $poiLongitude; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "start_business_hour") - */ - private $startBusinessHour; - - /** - * @JsonProperty(String, "store_address") - */ - private $storeAddress; - - /** - * @JsonProperty(String, "store_name") - */ - private $storeName; - - /** - * @JsonProperty(String, "store_number") - */ - private $storeNumber; - - /** - * @JsonProperty(String, "store_phone") - */ - private $storePhone; - - /** - * @JsonProperty(Integer, "trade_type") - */ - private $tradeType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "business_status", $this->businessStatus); - $this->setUserParam($params, "business_week_list", $this->businessWeekList); - $this->setUserParam($params, "city", $this->city); - $this->setUserParam($params, "district", $this->district); - $this->setUserParam($params, "end_business_hour", $this->endBusinessHour); - $this->setUserParam($params, "poi_latitude", $this->poiLatitude); - $this->setUserParam($params, "poi_longitude", $this->poiLongitude); - $this->setUserParam($params, "province", $this->province); - $this->setUserParam($params, "start_business_hour", $this->startBusinessHour); - $this->setUserParam($params, "store_address", $this->storeAddress); - $this->setUserParam($params, "store_name", $this->storeName); - $this->setUserParam($params, "store_number", $this->storeNumber); - $this->setUserParam($params, "store_phone", $this->storePhone); - $this->setUserParam($params, "trade_type", $this->tradeType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.info.store.create.post.nopoi"; - } - - public function setBusinessStatus($businessStatus) - { - $this->businessStatus = $businessStatus; - } - - public function setBusinessWeekList($businessWeekList) - { - $this->businessWeekList = $businessWeekList; - } - - public function setCity($city) - { - $this->city = $city; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setEndBusinessHour($endBusinessHour) - { - $this->endBusinessHour = $endBusinessHour; - } - - public function setPoiLatitude($poiLatitude) - { - $this->poiLatitude = $poiLatitude; - } - - public function setPoiLongitude($poiLongitude) - { - $this->poiLongitude = $poiLongitude; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setStartBusinessHour($startBusinessHour) - { - $this->startBusinessHour = $startBusinessHour; - } - - public function setStoreAddress($storeAddress) - { - $this->storeAddress = $storeAddress; - } - - public function setStoreName($storeName) - { - $this->storeName = $storeName; - } - - public function setStoreNumber($storeNumber) - { - $this->storeNumber = $storeNumber; - } - - public function setStorePhone($storePhone) - { - $this->storePhone = $storePhone; - } - - public function setTradeType($tradeType) - { - $this->tradeType = $tradeType; - } - -} +, "business_week_list") + */ + private $businessWeekList; + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "end_business_hour") + */ + private $endBusinessHour; + + /** + * @JsonProperty(Double, "poi_latitude") + */ + private $poiLatitude; + + /** + * @JsonProperty(Double, "poi_longitude") + */ + private $poiLongitude; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "start_business_hour") + */ + private $startBusinessHour; + + /** + * @JsonProperty(String, "store_address") + */ + private $storeAddress; + + /** + * @JsonProperty(String, "store_name") + */ + private $storeName; + + /** + * @JsonProperty(String, "store_number") + */ + private $storeNumber; + + /** + * @JsonProperty(String, "store_phone") + */ + private $storePhone; + + /** + * @JsonProperty(Integer, "trade_type") + */ + private $tradeType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "business_status", $this->businessStatus); + $this->setUserParam($params, "business_week_list", $this->businessWeekList); + $this->setUserParam($params, "city", $this->city); + $this->setUserParam($params, "district", $this->district); + $this->setUserParam($params, "end_business_hour", $this->endBusinessHour); + $this->setUserParam($params, "poi_latitude", $this->poiLatitude); + $this->setUserParam($params, "poi_longitude", $this->poiLongitude); + $this->setUserParam($params, "province", $this->province); + $this->setUserParam($params, "start_business_hour", $this->startBusinessHour); + $this->setUserParam($params, "store_address", $this->storeAddress); + $this->setUserParam($params, "store_name", $this->storeName); + $this->setUserParam($params, "store_number", $this->storeNumber); + $this->setUserParam($params, "store_phone", $this->storePhone); + $this->setUserParam($params, "trade_type", $this->tradeType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.info.store.create.post.nopoi"; + } + + public function setBusinessStatus($businessStatus) + { + $this->businessStatus = $businessStatus; + } + + public function setBusinessWeekList($businessWeekList) + { + $this->businessWeekList = $businessWeekList; + } + + public function setCity($city) + { + $this->city = $city; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setEndBusinessHour($endBusinessHour) + { + $this->endBusinessHour = $endBusinessHour; + } + + public function setPoiLatitude($poiLatitude) + { + $this->poiLatitude = $poiLatitude; + } + + public function setPoiLongitude($poiLongitude) + { + $this->poiLongitude = $poiLongitude; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setStartBusinessHour($startBusinessHour) + { + $this->startBusinessHour = $startBusinessHour; + } + + public function setStoreAddress($storeAddress) + { + $this->storeAddress = $storeAddress; + } + + public function setStoreName($storeName) + { + $this->storeName = $storeName; + } + + public function setStoreNumber($storeNumber) + { + $this->storeNumber = $storeNumber; + } + + public function setStorePhone($storePhone) + { + $this->storePhone = $storePhone; + } + + public function setTradeType($tradeType) + { + $this->tradeType = $tradeType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreCreatePostRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreCreatePostRequest.php index abe3e8c..127da6a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreCreatePostRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreCreatePostRequest.php @@ -1,187 +1,187 @@ -, "business_week_list") - */ - private $businessWeekList; - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "end_business_hour") - */ - private $endBusinessHour; - - /** - * @JsonProperty(String, "poi_id") - */ - private $poiId; - - /** - * @JsonProperty(Double, "poi_latitude") - */ - private $poiLatitude; - - /** - * @JsonProperty(Double, "poi_longitude") - */ - private $poiLongitude; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "start_business_hour") - */ - private $startBusinessHour; - - /** - * @JsonProperty(String, "store_name") - */ - private $storeName; - - /** - * @JsonProperty(String, "store_number") - */ - private $storeNumber; - - /** - * @JsonProperty(String, "store_phone") - */ - private $storePhone; - - /** - * @JsonProperty(Integer, "trade_type") - */ - private $tradeType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "business_status", $this->businessStatus); - $this->setUserParam($params, "business_week_list", $this->businessWeekList); - $this->setUserParam($params, "city", $this->city); - $this->setUserParam($params, "district", $this->district); - $this->setUserParam($params, "end_business_hour", $this->endBusinessHour); - $this->setUserParam($params, "poi_id", $this->poiId); - $this->setUserParam($params, "poi_latitude", $this->poiLatitude); - $this->setUserParam($params, "poi_longitude", $this->poiLongitude); - $this->setUserParam($params, "province", $this->province); - $this->setUserParam($params, "start_business_hour", $this->startBusinessHour); - $this->setUserParam($params, "store_name", $this->storeName); - $this->setUserParam($params, "store_number", $this->storeNumber); - $this->setUserParam($params, "store_phone", $this->storePhone); - $this->setUserParam($params, "trade_type", $this->tradeType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.info.store.create.post"; - } - - public function setBusinessStatus($businessStatus) - { - $this->businessStatus = $businessStatus; - } - - public function setBusinessWeekList($businessWeekList) - { - $this->businessWeekList = $businessWeekList; - } - - public function setCity($city) - { - $this->city = $city; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setEndBusinessHour($endBusinessHour) - { - $this->endBusinessHour = $endBusinessHour; - } - - public function setPoiId($poiId) - { - $this->poiId = $poiId; - } - - public function setPoiLatitude($poiLatitude) - { - $this->poiLatitude = $poiLatitude; - } - - public function setPoiLongitude($poiLongitude) - { - $this->poiLongitude = $poiLongitude; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setStartBusinessHour($startBusinessHour) - { - $this->startBusinessHour = $startBusinessHour; - } - - public function setStoreName($storeName) - { - $this->storeName = $storeName; - } - - public function setStoreNumber($storeNumber) - { - $this->storeNumber = $storeNumber; - } - - public function setStorePhone($storePhone) - { - $this->storePhone = $storePhone; - } - - public function setTradeType($tradeType) - { - $this->tradeType = $tradeType; - } - -} +, "business_week_list") + */ + private $businessWeekList; + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "end_business_hour") + */ + private $endBusinessHour; + + /** + * @JsonProperty(String, "poi_id") + */ + private $poiId; + + /** + * @JsonProperty(Double, "poi_latitude") + */ + private $poiLatitude; + + /** + * @JsonProperty(Double, "poi_longitude") + */ + private $poiLongitude; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "start_business_hour") + */ + private $startBusinessHour; + + /** + * @JsonProperty(String, "store_name") + */ + private $storeName; + + /** + * @JsonProperty(String, "store_number") + */ + private $storeNumber; + + /** + * @JsonProperty(String, "store_phone") + */ + private $storePhone; + + /** + * @JsonProperty(Integer, "trade_type") + */ + private $tradeType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "business_status", $this->businessStatus); + $this->setUserParam($params, "business_week_list", $this->businessWeekList); + $this->setUserParam($params, "city", $this->city); + $this->setUserParam($params, "district", $this->district); + $this->setUserParam($params, "end_business_hour", $this->endBusinessHour); + $this->setUserParam($params, "poi_id", $this->poiId); + $this->setUserParam($params, "poi_latitude", $this->poiLatitude); + $this->setUserParam($params, "poi_longitude", $this->poiLongitude); + $this->setUserParam($params, "province", $this->province); + $this->setUserParam($params, "start_business_hour", $this->startBusinessHour); + $this->setUserParam($params, "store_name", $this->storeName); + $this->setUserParam($params, "store_number", $this->storeNumber); + $this->setUserParam($params, "store_phone", $this->storePhone); + $this->setUserParam($params, "trade_type", $this->tradeType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.info.store.create.post"; + } + + public function setBusinessStatus($businessStatus) + { + $this->businessStatus = $businessStatus; + } + + public function setBusinessWeekList($businessWeekList) + { + $this->businessWeekList = $businessWeekList; + } + + public function setCity($city) + { + $this->city = $city; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setEndBusinessHour($endBusinessHour) + { + $this->endBusinessHour = $endBusinessHour; + } + + public function setPoiId($poiId) + { + $this->poiId = $poiId; + } + + public function setPoiLatitude($poiLatitude) + { + $this->poiLatitude = $poiLatitude; + } + + public function setPoiLongitude($poiLongitude) + { + $this->poiLongitude = $poiLongitude; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setStartBusinessHour($startBusinessHour) + { + $this->startBusinessHour = $startBusinessHour; + } + + public function setStoreName($storeName) + { + $this->storeName = $storeName; + } + + public function setStoreNumber($storeNumber) + { + $this->storeNumber = $storeNumber; + } + + public function setStorePhone($storePhone) + { + $this->storePhone = $storePhone; + } + + public function setTradeType($tradeType) + { + $this->tradeType = $tradeType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreDeletePostRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreDeletePostRequest.php index b8cb093..71c1a24 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreDeletePostRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreDeletePostRequest.php @@ -1,44 +1,44 @@ -, "store_id_list") - */ - private $storeIdList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "store_id_list", $this->storeIdList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.info.store.delete.post"; - } - - public function setStoreIdList($storeIdList) - { - $this->storeIdList = $storeIdList; - } - -} +, "store_id_list") + */ + private $storeIdList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "store_id_list", $this->storeIdList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.info.store.delete.post"; + } + + public function setStoreIdList($storeIdList) + { + $this->storeIdList = $storeIdList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreGetRequest.php index a6e5837..7f2777d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreGetRequest.php @@ -1,121 +1,121 @@ -setUserParam($params, "city", $this->city); - $this->setUserParam($params, "district", $this->district); - $this->setUserParam($params, "page_number", $this->pageNumber); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "province", $this->province); - $this->setUserParam($params, "store_id", $this->storeId); - $this->setUserParam($params, "store_name", $this->storeName); - $this->setUserParam($params, "store_number", $this->storeNumber); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.info.store.get"; - } - - public function setCity($city) - { - $this->city = $city; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setPageNumber($pageNumber) - { - $this->pageNumber = $pageNumber; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setStoreId($storeId) - { - $this->storeId = $storeId; - } - - public function setStoreName($storeName) - { - $this->storeName = $storeName; - } - - public function setStoreNumber($storeNumber) - { - $this->storeNumber = $storeNumber; - } - -} +setUserParam($params, "city", $this->city); + $this->setUserParam($params, "district", $this->district); + $this->setUserParam($params, "page_number", $this->pageNumber); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "province", $this->province); + $this->setUserParam($params, "store_id", $this->storeId); + $this->setUserParam($params, "store_name", $this->storeName); + $this->setUserParam($params, "store_number", $this->storeNumber); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.info.store.get"; + } + + public function setCity($city) + { + $this->city = $city; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setPageNumber($pageNumber) + { + $this->pageNumber = $pageNumber; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setStoreId($storeId) + { + $this->storeId = $storeId; + } + + public function setStoreName($storeName) + { + $this->storeName = $storeName; + } + + public function setStoreNumber($storeNumber) + { + $this->storeNumber = $storeNumber; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreUpdatePostNopoiRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreUpdatePostNopoiRequest.php index 06b7146..889384f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreUpdatePostNopoiRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreUpdatePostNopoiRequest.php @@ -1,198 +1,198 @@ -, "business_week_list") - */ - private $businessWeekList; - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "end_business_hour") - */ - private $endBusinessHour; - - /** - * @JsonProperty(Double, "poi_latitude") - */ - private $poiLatitude; - - /** - * @JsonProperty(Double, "poi_longitude") - */ - private $poiLongitude; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "start_business_hour") - */ - private $startBusinessHour; - - /** - * @JsonProperty(String, "store_address") - */ - private $storeAddress; - - /** - * @JsonProperty(Long, "store_id") - */ - private $storeId; - - /** - * @JsonProperty(String, "store_name") - */ - private $storeName; - - /** - * @JsonProperty(String, "store_number") - */ - private $storeNumber; - - /** - * @JsonProperty(String, "store_phone") - */ - private $storePhone; - - /** - * @JsonProperty(Integer, "trade_type") - */ - private $tradeType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "business_status", $this->businessStatus); - $this->setUserParam($params, "business_week_list", $this->businessWeekList); - $this->setUserParam($params, "city", $this->city); - $this->setUserParam($params, "district", $this->district); - $this->setUserParam($params, "end_business_hour", $this->endBusinessHour); - $this->setUserParam($params, "poi_latitude", $this->poiLatitude); - $this->setUserParam($params, "poi_longitude", $this->poiLongitude); - $this->setUserParam($params, "province", $this->province); - $this->setUserParam($params, "start_business_hour", $this->startBusinessHour); - $this->setUserParam($params, "store_address", $this->storeAddress); - $this->setUserParam($params, "store_id", $this->storeId); - $this->setUserParam($params, "store_name", $this->storeName); - $this->setUserParam($params, "store_number", $this->storeNumber); - $this->setUserParam($params, "store_phone", $this->storePhone); - $this->setUserParam($params, "trade_type", $this->tradeType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.info.store.update.post.nopoi"; - } - - public function setBusinessStatus($businessStatus) - { - $this->businessStatus = $businessStatus; - } - - public function setBusinessWeekList($businessWeekList) - { - $this->businessWeekList = $businessWeekList; - } - - public function setCity($city) - { - $this->city = $city; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setEndBusinessHour($endBusinessHour) - { - $this->endBusinessHour = $endBusinessHour; - } - - public function setPoiLatitude($poiLatitude) - { - $this->poiLatitude = $poiLatitude; - } - - public function setPoiLongitude($poiLongitude) - { - $this->poiLongitude = $poiLongitude; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setStartBusinessHour($startBusinessHour) - { - $this->startBusinessHour = $startBusinessHour; - } - - public function setStoreAddress($storeAddress) - { - $this->storeAddress = $storeAddress; - } - - public function setStoreId($storeId) - { - $this->storeId = $storeId; - } - - public function setStoreName($storeName) - { - $this->storeName = $storeName; - } - - public function setStoreNumber($storeNumber) - { - $this->storeNumber = $storeNumber; - } - - public function setStorePhone($storePhone) - { - $this->storePhone = $storePhone; - } - - public function setTradeType($tradeType) - { - $this->tradeType = $tradeType; - } - -} +, "business_week_list") + */ + private $businessWeekList; + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "end_business_hour") + */ + private $endBusinessHour; + + /** + * @JsonProperty(Double, "poi_latitude") + */ + private $poiLatitude; + + /** + * @JsonProperty(Double, "poi_longitude") + */ + private $poiLongitude; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "start_business_hour") + */ + private $startBusinessHour; + + /** + * @JsonProperty(String, "store_address") + */ + private $storeAddress; + + /** + * @JsonProperty(Long, "store_id") + */ + private $storeId; + + /** + * @JsonProperty(String, "store_name") + */ + private $storeName; + + /** + * @JsonProperty(String, "store_number") + */ + private $storeNumber; + + /** + * @JsonProperty(String, "store_phone") + */ + private $storePhone; + + /** + * @JsonProperty(Integer, "trade_type") + */ + private $tradeType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "business_status", $this->businessStatus); + $this->setUserParam($params, "business_week_list", $this->businessWeekList); + $this->setUserParam($params, "city", $this->city); + $this->setUserParam($params, "district", $this->district); + $this->setUserParam($params, "end_business_hour", $this->endBusinessHour); + $this->setUserParam($params, "poi_latitude", $this->poiLatitude); + $this->setUserParam($params, "poi_longitude", $this->poiLongitude); + $this->setUserParam($params, "province", $this->province); + $this->setUserParam($params, "start_business_hour", $this->startBusinessHour); + $this->setUserParam($params, "store_address", $this->storeAddress); + $this->setUserParam($params, "store_id", $this->storeId); + $this->setUserParam($params, "store_name", $this->storeName); + $this->setUserParam($params, "store_number", $this->storeNumber); + $this->setUserParam($params, "store_phone", $this->storePhone); + $this->setUserParam($params, "trade_type", $this->tradeType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.info.store.update.post.nopoi"; + } + + public function setBusinessStatus($businessStatus) + { + $this->businessStatus = $businessStatus; + } + + public function setBusinessWeekList($businessWeekList) + { + $this->businessWeekList = $businessWeekList; + } + + public function setCity($city) + { + $this->city = $city; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setEndBusinessHour($endBusinessHour) + { + $this->endBusinessHour = $endBusinessHour; + } + + public function setPoiLatitude($poiLatitude) + { + $this->poiLatitude = $poiLatitude; + } + + public function setPoiLongitude($poiLongitude) + { + $this->poiLongitude = $poiLongitude; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setStartBusinessHour($startBusinessHour) + { + $this->startBusinessHour = $startBusinessHour; + } + + public function setStoreAddress($storeAddress) + { + $this->storeAddress = $storeAddress; + } + + public function setStoreId($storeId) + { + $this->storeId = $storeId; + } + + public function setStoreName($storeName) + { + $this->storeName = $storeName; + } + + public function setStoreNumber($storeNumber) + { + $this->storeNumber = $storeNumber; + } + + public function setStorePhone($storePhone) + { + $this->storePhone = $storePhone; + } + + public function setTradeType($tradeType) + { + $this->tradeType = $tradeType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreUpdatePostRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreUpdatePostRequest.php index 152761e..98e02cb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreUpdatePostRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallInfoStoreUpdatePostRequest.php @@ -1,209 +1,209 @@ -, "business_week_list") - */ - private $businessWeekList; - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "end_business_hour") - */ - private $endBusinessHour; - - /** - * @JsonProperty(String, "poi_id") - */ - private $poiId; - - /** - * @JsonProperty(Double, "poi_latitude") - */ - private $poiLatitude; - - /** - * @JsonProperty(Double, "poi_longitude") - */ - private $poiLongitude; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "start_business_hour") - */ - private $startBusinessHour; - - /** - * @JsonProperty(String, "store_address") - */ - private $storeAddress; - - /** - * @JsonProperty(Long, "store_id") - */ - private $storeId; - - /** - * @JsonProperty(String, "store_name") - */ - private $storeName; - - /** - * @JsonProperty(String, "store_number") - */ - private $storeNumber; - - /** - * @JsonProperty(String, "store_phone") - */ - private $storePhone; - - /** - * @JsonProperty(Integer, "trade_type") - */ - private $tradeType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "business_status", $this->businessStatus); - $this->setUserParam($params, "business_week_list", $this->businessWeekList); - $this->setUserParam($params, "city", $this->city); - $this->setUserParam($params, "district", $this->district); - $this->setUserParam($params, "end_business_hour", $this->endBusinessHour); - $this->setUserParam($params, "poi_id", $this->poiId); - $this->setUserParam($params, "poi_latitude", $this->poiLatitude); - $this->setUserParam($params, "poi_longitude", $this->poiLongitude); - $this->setUserParam($params, "province", $this->province); - $this->setUserParam($params, "start_business_hour", $this->startBusinessHour); - $this->setUserParam($params, "store_address", $this->storeAddress); - $this->setUserParam($params, "store_id", $this->storeId); - $this->setUserParam($params, "store_name", $this->storeName); - $this->setUserParam($params, "store_number", $this->storeNumber); - $this->setUserParam($params, "store_phone", $this->storePhone); - $this->setUserParam($params, "trade_type", $this->tradeType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.info.store.update.post"; - } - - public function setBusinessStatus($businessStatus) - { - $this->businessStatus = $businessStatus; - } - - public function setBusinessWeekList($businessWeekList) - { - $this->businessWeekList = $businessWeekList; - } - - public function setCity($city) - { - $this->city = $city; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setEndBusinessHour($endBusinessHour) - { - $this->endBusinessHour = $endBusinessHour; - } - - public function setPoiId($poiId) - { - $this->poiId = $poiId; - } - - public function setPoiLatitude($poiLatitude) - { - $this->poiLatitude = $poiLatitude; - } - - public function setPoiLongitude($poiLongitude) - { - $this->poiLongitude = $poiLongitude; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setStartBusinessHour($startBusinessHour) - { - $this->startBusinessHour = $startBusinessHour; - } - - public function setStoreAddress($storeAddress) - { - $this->storeAddress = $storeAddress; - } - - public function setStoreId($storeId) - { - $this->storeId = $storeId; - } - - public function setStoreName($storeName) - { - $this->storeName = $storeName; - } - - public function setStoreNumber($storeNumber) - { - $this->storeNumber = $storeNumber; - } - - public function setStorePhone($storePhone) - { - $this->storePhone = $storePhone; - } - - public function setTradeType($tradeType) - { - $this->tradeType = $tradeType; - } - -} +, "business_week_list") + */ + private $businessWeekList; + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "end_business_hour") + */ + private $endBusinessHour; + + /** + * @JsonProperty(String, "poi_id") + */ + private $poiId; + + /** + * @JsonProperty(Double, "poi_latitude") + */ + private $poiLatitude; + + /** + * @JsonProperty(Double, "poi_longitude") + */ + private $poiLongitude; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "start_business_hour") + */ + private $startBusinessHour; + + /** + * @JsonProperty(String, "store_address") + */ + private $storeAddress; + + /** + * @JsonProperty(Long, "store_id") + */ + private $storeId; + + /** + * @JsonProperty(String, "store_name") + */ + private $storeName; + + /** + * @JsonProperty(String, "store_number") + */ + private $storeNumber; + + /** + * @JsonProperty(String, "store_phone") + */ + private $storePhone; + + /** + * @JsonProperty(Integer, "trade_type") + */ + private $tradeType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "business_status", $this->businessStatus); + $this->setUserParam($params, "business_week_list", $this->businessWeekList); + $this->setUserParam($params, "city", $this->city); + $this->setUserParam($params, "district", $this->district); + $this->setUserParam($params, "end_business_hour", $this->endBusinessHour); + $this->setUserParam($params, "poi_id", $this->poiId); + $this->setUserParam($params, "poi_latitude", $this->poiLatitude); + $this->setUserParam($params, "poi_longitude", $this->poiLongitude); + $this->setUserParam($params, "province", $this->province); + $this->setUserParam($params, "start_business_hour", $this->startBusinessHour); + $this->setUserParam($params, "store_address", $this->storeAddress); + $this->setUserParam($params, "store_id", $this->storeId); + $this->setUserParam($params, "store_name", $this->storeName); + $this->setUserParam($params, "store_number", $this->storeNumber); + $this->setUserParam($params, "store_phone", $this->storePhone); + $this->setUserParam($params, "trade_type", $this->tradeType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.info.store.update.post"; + } + + public function setBusinessStatus($businessStatus) + { + $this->businessStatus = $businessStatus; + } + + public function setBusinessWeekList($businessWeekList) + { + $this->businessWeekList = $businessWeekList; + } + + public function setCity($city) + { + $this->city = $city; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setEndBusinessHour($endBusinessHour) + { + $this->endBusinessHour = $endBusinessHour; + } + + public function setPoiId($poiId) + { + $this->poiId = $poiId; + } + + public function setPoiLatitude($poiLatitude) + { + $this->poiLatitude = $poiLatitude; + } + + public function setPoiLongitude($poiLongitude) + { + $this->poiLongitude = $poiLongitude; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setStartBusinessHour($startBusinessHour) + { + $this->startBusinessHour = $startBusinessHour; + } + + public function setStoreAddress($storeAddress) + { + $this->storeAddress = $storeAddress; + } + + public function setStoreId($storeId) + { + $this->storeId = $storeId; + } + + public function setStoreName($storeName) + { + $this->storeName = $storeName; + } + + public function setStoreNumber($storeNumber) + { + $this->storeNumber = $storeNumber; + } + + public function setStorePhone($storePhone) + { + $this->storePhone = $storePhone; + } + + public function setTradeType($tradeType) + { + $this->tradeType = $tradeType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketDetailRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketDetailRequest.php index 771db92..980c2d4 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketDetailRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketDetailRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "ticket_id", $this->ticketId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.ticket.detail"; - } - - public function setTicketId($ticketId) - { - $this->ticketId = $ticketId; - } - -} +setUserParam($params, "ticket_id", $this->ticketId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.ticket.detail"; + } + + public function setTicketId($ticketId) + { + $this->ticketId = $ticketId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketListRequest.php index b8b55c0..7535673 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketListRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "create_end_time", $this->createEndTime); - $this->setUserParam($params, "create_start_time", $this->createStartTime); - $this->setUserParam($params, "page_num", $this->pageNum); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "progress", $this->progress); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.ticket.list"; - } - - public function setCreateEndTime($createEndTime) - { - $this->createEndTime = $createEndTime; - } - - public function setCreateStartTime($createStartTime) - { - $this->createStartTime = $createStartTime; - } - - public function setPageNum($pageNum) - { - $this->pageNum = $pageNum; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setProgress($progress) - { - $this->progress = $progress; - } - -} +setUserParam($params, "create_end_time", $this->createEndTime); + $this->setUserParam($params, "create_start_time", $this->createStartTime); + $this->setUserParam($params, "page_num", $this->pageNum); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "progress", $this->progress); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.ticket.list"; + } + + public function setCreateEndTime($createEndTime) + { + $this->createEndTime = $createEndTime; + } + + public function setCreateStartTime($createStartTime) + { + $this->createStartTime = $createStartTime; + } + + public function setPageNum($pageNum) + { + $this->pageNum = $pageNum; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setProgress($progress) + { + $this->progress = $progress; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketNotifyRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketNotifyRequest.php index 69b84b2..4df87eb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketNotifyRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMallTicketNotifyRequest.php @@ -1,66 +1,66 @@ -setUserParam($params, "content", $this->content); - $this->setUserParam($params, "syn_to_user", $this->synToUser); - $this->setUserParam($params, "ticket_id", $this->ticketId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.mall.ticket.notify"; - } - - public function setContent($content) - { - $this->content = $content; - } - - public function setSynToUser($synToUser) - { - $this->synToUser = $synToUser; - } - - public function setTicketId($ticketId) - { - $this->ticketId = $ticketId; - } - -} +setUserParam($params, "content", $this->content); + $this->setUserParam($params, "syn_to_user", $this->synToUser); + $this->setUserParam($params, "ticket_id", $this->ticketId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.mall.ticket.notify"; + } + + public function setContent($content) + { + $this->content = $content; + } + + public function setSynToUser($synToUser) + { + $this->synToUser = $synToUser; + } + + public function setTicketId($ticketId) + { + $this->ticketId = $ticketId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMedicineConsultCloseRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMedicineConsultCloseRequest.php index 594b749..d7437e5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMedicineConsultCloseRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMedicineConsultCloseRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "consult_no", $this->consultNo); - $this->setUserParam($params, "reason", $this->reason); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.medicine.consult.close"; - } - - public function setConsultNo($consultNo) - { - $this->consultNo = $consultNo; - } - - public function setReason($reason) - { - $this->reason = $reason; - } - -} +setUserParam($params, "consult_no", $this->consultNo); + $this->setUserParam($params, "reason", $this->reason); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.medicine.consult.close"; + } + + public function setConsultNo($consultNo) + { + $this->consultNo = $consultNo; + } + + public function setReason($reason) + { + $this->reason = $reason; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddMedicineConsultReceiveRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddMedicineConsultReceiveRequest.php index 1ca03f9..56213e3 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddMedicineConsultReceiveRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddMedicineConsultReceiveRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "consult_no", $this->consultNo); - $this->setUserParam($params, "content", $this->content); - $this->setUserParam($params, "doctor_id", $this->doctorId); - $this->setUserParam($params, "msg_id", $this->msgId); - $this->setUserParam($params, "receive_type", $this->receiveType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.medicine.consult.receive"; - } - - public function setConsultNo($consultNo) - { - $this->consultNo = $consultNo; - } - - public function setContent($content) - { - $this->content = $content; - } - - public function setDoctorId($doctorId) - { - $this->doctorId = $doctorId; - } - - public function setMsgId($msgId) - { - $this->msgId = $msgId; - } - - public function setReceiveType($receiveType) - { - $this->receiveType = $receiveType; - } - -} +setUserParam($params, "consult_no", $this->consultNo); + $this->setUserParam($params, "content", $this->content); + $this->setUserParam($params, "doctor_id", $this->doctorId); + $this->setUserParam($params, "msg_id", $this->msgId); + $this->setUserParam($params, "receive_type", $this->receiveType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.medicine.consult.receive"; + } + + public function setConsultNo($consultNo) + { + $this->consultNo = $consultNo; + } + + public function setContent($content) + { + $this->content = $content; + } + + public function setDoctorId($doctorId) + { + $this->doctorId = $doctorId; + } + + public function setMsgId($msgId) + { + $this->msgId = $msgId; + } + + public function setReceiveType($receiveType) + { + $this->receiveType = $receiveType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddNextoneLogisticsWarehouseUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddNextoneLogisticsWarehouseUpdateRequest.php index 8fc47dc..ac7d011 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddNextoneLogisticsWarehouseUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddNextoneLogisticsWarehouseUpdateRequest.php @@ -1,114 +1,114 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.nextone.logistics.warehouse.update"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddNextoneLogisticsWarehouseUpdateRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "after_sales_id") - */ - private $afterSalesId; - - /** - * @JsonProperty(Long, "operate_time") - */ - private $operateTime; - - /** - * @JsonProperty(String, "order_sn") - */ - private $orderSn; - - /** - * @JsonProperty(Integer, "reverse_logistics_id") - */ - private $reverseLogisticsId; - - /** - * @JsonProperty(String, "reverse_tracking_number") - */ - private $reverseTrackingNumber; - - /** - * @JsonProperty(Integer, "warehouse_status") - */ - private $warehouseStatus; - - public function setAfterSalesId($afterSalesId) - { - $this->afterSalesId = $afterSalesId; - } - - public function setOperateTime($operateTime) - { - $this->operateTime = $operateTime; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setReverseLogisticsId($reverseLogisticsId) - { - $this->reverseLogisticsId = $reverseLogisticsId; - } - - public function setReverseTrackingNumber($reverseTrackingNumber) - { - $this->reverseTrackingNumber = $reverseTrackingNumber; - } - - public function setWarehouseStatus($warehouseStatus) - { - $this->warehouseStatus = $warehouseStatus; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.nextone.logistics.warehouse.update"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddNextoneLogisticsWarehouseUpdateRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "after_sales_id") + */ + private $afterSalesId; + + /** + * @JsonProperty(Long, "operate_time") + */ + private $operateTime; + + /** + * @JsonProperty(String, "order_sn") + */ + private $orderSn; + + /** + * @JsonProperty(Integer, "reverse_logistics_id") + */ + private $reverseLogisticsId; + + /** + * @JsonProperty(String, "reverse_tracking_number") + */ + private $reverseTrackingNumber; + + /** + * @JsonProperty(Integer, "warehouse_status") + */ + private $warehouseStatus; + + public function setAfterSalesId($afterSalesId) + { + $this->afterSalesId = $afterSalesId; + } + + public function setOperateTime($operateTime) + { + $this->operateTime = $operateTime; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setReverseLogisticsId($reverseLogisticsId) + { + $this->reverseLogisticsId = $reverseLogisticsId; + } + + public function setReverseTrackingNumber($reverseTrackingNumber) + { + $this->reverseTrackingNumber = $reverseTrackingNumber; + } + + public function setWarehouseStatus($warehouseStatus) + { + $this->warehouseStatus = $warehouseStatus; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOneExpressCostTemplateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOneExpressCostTemplateRequest.php index 1936f9b..721a8ef 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOneExpressCostTemplateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOneExpressCostTemplateRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "cost_template_id", $this->costTemplateId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.one.express.cost.template"; - } - - public function setCostTemplateId($costTemplateId) - { - $this->costTemplateId = $costTemplateId; - } - -} +setUserParam($params, "cost_template_id", $this->costTemplateId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.one.express.cost.template"; + } + + public function setCostTemplateId($costTemplateId) + { + $this->costTemplateId = $costTemplateId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOpenDecryptBatchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOpenDecryptBatchRequest.php index 4a5123a..2ece0ec 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOpenDecryptBatchRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOpenDecryptBatchRequest.php @@ -1,74 +1,74 @@ -, "data_list") - */ - private $dataList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "data_list", $this->dataList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.open.decrypt.batch"; - } - - public function setDataList($dataList) - { - $this->dataList = $dataList; - } - -} - -class PddOpenDecryptBatchRequest_DataListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "data_tag") - */ - private $dataTag; - - /** - * @JsonProperty(String, "encrypted_data") - */ - private $encryptedData; - - public function setDataTag($dataTag) - { - $this->dataTag = $dataTag; - } - - public function setEncryptedData($encryptedData) - { - $this->encryptedData = $encryptedData; - } - -} +, "data_list") + */ + private $dataList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "data_list", $this->dataList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.open.decrypt.batch"; + } + + public function setDataList($dataList) + { + $this->dataList = $dataList; + } + +} + +class PddOpenDecryptBatchRequest_DataListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "data_tag") + */ + private $dataTag; + + /** + * @JsonProperty(String, "encrypted_data") + */ + private $encryptedData; + + public function setDataTag($dataTag) + { + $this->dataTag = $dataTag; + } + + public function setEncryptedData($encryptedData) + { + $this->encryptedData = $encryptedData; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOpenDecryptMaskBatchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOpenDecryptMaskBatchRequest.php index c10c6c3..d849f28 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOpenDecryptMaskBatchRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOpenDecryptMaskBatchRequest.php @@ -1,74 +1,74 @@ -, "data_list") - */ - private $dataList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "data_list", $this->dataList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.open.decrypt.mask.batch"; - } - - public function setDataList($dataList) - { - $this->dataList = $dataList; - } - -} - -class PddOpenDecryptMaskBatchRequest_DataListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "data_tag") - */ - private $dataTag; - - /** - * @JsonProperty(String, "encrypted_data") - */ - private $encryptedData; - - public function setDataTag($dataTag) - { - $this->dataTag = $dataTag; - } - - public function setEncryptedData($encryptedData) - { - $this->encryptedData = $encryptedData; - } - -} +, "data_list") + */ + private $dataList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "data_list", $this->dataList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.open.decrypt.mask.batch"; + } + + public function setDataList($dataList) + { + $this->dataList = $dataList; + } + +} + +class PddOpenDecryptMaskBatchRequest_DataListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "data_tag") + */ + private $dataTag; + + /** + * @JsonProperty(String, "encrypted_data") + */ + private $encryptedData; + + public function setDataTag($dataTag) + { + $this->dataTag = $dataTag; + } + + public function setEncryptedData($encryptedData) + { + $this->encryptedData = $encryptedData; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOpenKmsEncryptBatchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOpenKmsEncryptBatchRequest.php index 5f534ea..5d363a4 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOpenKmsEncryptBatchRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOpenKmsEncryptBatchRequest.php @@ -1,84 +1,84 @@ -, "data_list") - */ - private $dataList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "data_list", $this->dataList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.open.kms.encrypt.batch"; - } - - public function setDataList($dataList) - { - $this->dataList = $dataList; - } - -} - -class PddOpenKmsEncryptBatchRequest_DataListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "data") - */ - private $data; - - /** - * @JsonProperty(Boolean, "search") - */ - private $search; - - /** - * @JsonProperty(String, "type") - */ - private $type; - - public function setData($data) - { - $this->data = $data; - } - - public function setSearch($search) - { - $this->search = $search; - } - - public function setType($type) - { - $this->type = $type; - } - -} +, "data_list") + */ + private $dataList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "data_list", $this->dataList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.open.kms.encrypt.batch"; + } + + public function setDataList($dataList) + { + $this->dataList = $dataList; + } + +} + +class PddOpenKmsEncryptBatchRequest_DataListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "data") + */ + private $data; + + /** + * @JsonProperty(Boolean, "search") + */ + private $search; + + /** + * @JsonProperty(String, "type") + */ + private $type; + + public function setData($data) + { + $this->data = $data; + } + + public function setSearch($search) + { + $this->search = $search; + } + + public function setType($type) + { + $this->type = $type; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOpenKmsSearchBatchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOpenKmsSearchBatchRequest.php index 071ef6e..1ebd238 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOpenKmsSearchBatchRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOpenKmsSearchBatchRequest.php @@ -1,74 +1,74 @@ -, "input_list") - */ - private $inputList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "input_list", $this->inputList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.open.kms.search.batch"; - } - - public function setInputList($inputList) - { - $this->inputList = $inputList; - } - -} - -class PddOpenKmsSearchBatchRequest_InputListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "input") - */ - private $input; - - /** - * @JsonProperty(String, "type") - */ - private $type; - - public function setInput($input) - { - $this->input = $input; - } - - public function setType($type) - { - $this->type = $type; - } - -} +, "input_list") + */ + private $inputList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "input_list", $this->inputList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.open.kms.search.batch"; + } + + public function setInputList($inputList) + { + $this->inputList = $inputList; + } + +} + +class PddOpenKmsSearchBatchRequest_InputListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "input") + */ + private $input; + + /** + * @JsonProperty(String, "type") + */ + private $type; + + public function setInput($input) + { + $this->input = $input; + } + + public function setType($type) + { + $this->type = $type; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceQueryExpressMsgRecordRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceQueryExpressMsgRecordRequest.php index 8d11853..29da4c4 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceQueryExpressMsgRecordRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceQueryExpressMsgRecordRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "biz_id", $this->bizId); - $this->setUserParam($params, "page_number", $this->pageNumber); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "send_date", $this->sendDate); - $this->setUserParam($params, "waybill_code", $this->waybillCode); - $this->setUserParam($params, "wp_code", $this->wpCode); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.open.msg.service.query.express.msg.record"; - } - - public function setBizId($bizId) - { - $this->bizId = $bizId; - } - - public function setPageNumber($pageNumber) - { - $this->pageNumber = $pageNumber; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setSendDate($sendDate) - { - $this->sendDate = $sendDate; - } - - public function setWaybillCode($waybillCode) - { - $this->waybillCode = $waybillCode; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - -} +setUserParam($params, "biz_id", $this->bizId); + $this->setUserParam($params, "page_number", $this->pageNumber); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "send_date", $this->sendDate); + $this->setUserParam($params, "waybill_code", $this->waybillCode); + $this->setUserParam($params, "wp_code", $this->wpCode); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.open.msg.service.query.express.msg.record"; + } + + public function setBizId($bizId) + { + $this->bizId = $bizId; + } + + public function setPageNumber($pageNumber) + { + $this->pageNumber = $pageNumber; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setSendDate($sendDate) + { + $this->sendDate = $sendDate; + } + + public function setWaybillCode($waybillCode) + { + $this->waybillCode = $waybillCode; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceQueryMsgRecordRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceQueryMsgRecordRequest.php index 46f3a76..372ea2d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceQueryMsgRecordRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceQueryMsgRecordRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "biz_id", $this->bizId); - $this->setUserParam($params, "page_number", $this->pageNumber); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "phone_number", $this->phoneNumber); - $this->setUserParam($params, "send_date", $this->sendDate); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.open.msg.service.query.msg.record"; - } - - public function setBizId($bizId) - { - $this->bizId = $bizId; - } - - public function setPageNumber($pageNumber) - { - $this->pageNumber = $pageNumber; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setPhoneNumber($phoneNumber) - { - $this->phoneNumber = $phoneNumber; - } - - public function setSendDate($sendDate) - { - $this->sendDate = $sendDate; - } - -} +setUserParam($params, "biz_id", $this->bizId); + $this->setUserParam($params, "page_number", $this->pageNumber); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "phone_number", $this->phoneNumber); + $this->setUserParam($params, "send_date", $this->sendDate); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.open.msg.service.query.msg.record"; + } + + public function setBizId($bizId) + { + $this->bizId = $bizId; + } + + public function setPageNumber($pageNumber) + { + $this->pageNumber = $pageNumber; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setPhoneNumber($phoneNumber) + { + $this->phoneNumber = $phoneNumber; + } + + public function setSendDate($sendDate) + { + $this->sendDate = $sendDate; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendBatchMsgRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendBatchMsgRequest.php index f0f4c61..6d5949f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendBatchMsgRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendBatchMsgRequest.php @@ -1,99 +1,99 @@ -, "phone_numbers") - */ - private $phoneNumbers; - - /** - * @JsonProperty(String, "sign_name") - */ - private $signName; - - /** - * @JsonProperty(Long, "template_code") - */ - private $templateCode; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddOpenMsgServiceSendBatchMsgRequest_Map>, "template_param_json") - */ - private $templateParamJson; - - /** - * @JsonProperty(String, "out_id") - */ - private $outId; - - /** - * @JsonProperty(String, "sms_up_extend_code") - */ - private $smsUpExtendCode; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "phone_numbers", $this->phoneNumbers); - $this->setUserParam($params, "sign_name", $this->signName); - $this->setUserParam($params, "template_code", $this->templateCode); - $this->setUserParam($params, "template_param_json", $this->templateParamJson); - $this->setUserParam($params, "out_id", $this->outId); - $this->setUserParam($params, "sms_up_extend_code", $this->smsUpExtendCode); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.open.msg.service.send.batch.msg"; - } - - public function setPhoneNumbers($phoneNumbers) - { - $this->phoneNumbers = $phoneNumbers; - } - - public function setSignName($signName) - { - $this->signName = $signName; - } - - public function setTemplateCode($templateCode) - { - $this->templateCode = $templateCode; - } - - public function setTemplateParamJson($templateParamJson) - { - $this->templateParamJson = $templateParamJson; - } - - public function setOutId($outId) - { - $this->outId = $outId; - } - - public function setSmsUpExtendCode($smsUpExtendCode) - { - $this->smsUpExtendCode = $smsUpExtendCode; - } - -} +, "phone_numbers") + */ + private $phoneNumbers; + + /** + * @JsonProperty(String, "sign_name") + */ + private $signName; + + /** + * @JsonProperty(Long, "template_code") + */ + private $templateCode; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddOpenMsgServiceSendBatchMsgRequest_Map>, "template_param_json") + */ + private $templateParamJson; + + /** + * @JsonProperty(String, "out_id") + */ + private $outId; + + /** + * @JsonProperty(String, "sms_up_extend_code") + */ + private $smsUpExtendCode; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "phone_numbers", $this->phoneNumbers); + $this->setUserParam($params, "sign_name", $this->signName); + $this->setUserParam($params, "template_code", $this->templateCode); + $this->setUserParam($params, "template_param_json", $this->templateParamJson); + $this->setUserParam($params, "out_id", $this->outId); + $this->setUserParam($params, "sms_up_extend_code", $this->smsUpExtendCode); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.open.msg.service.send.batch.msg"; + } + + public function setPhoneNumbers($phoneNumbers) + { + $this->phoneNumbers = $phoneNumbers; + } + + public function setSignName($signName) + { + $this->signName = $signName; + } + + public function setTemplateCode($templateCode) + { + $this->templateCode = $templateCode; + } + + public function setTemplateParamJson($templateParamJson) + { + $this->templateParamJson = $templateParamJson; + } + + public function setOutId($outId) + { + $this->outId = $outId; + } + + public function setSmsUpExtendCode($smsUpExtendCode) + { + $this->smsUpExtendCode = $smsUpExtendCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendExpressMsgRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendExpressMsgRequest.php index af19fa6..2a4c8ff 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendExpressMsgRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendExpressMsgRequest.php @@ -1,110 +1,110 @@ ->, "template_param_json") - */ - private $templateParamJson; - - /** - * @JsonProperty(List, "waybill_codes") - */ - private $waybillCodes; - - /** - * @JsonProperty(String, "wp_code") - */ - private $wpCode; - - /** - * @JsonProperty(String, "out_id") - */ - private $outId; - - /** - * @JsonProperty(String, "sms_up_extend_code") - */ - private $smsUpExtendCode; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "sign_name", $this->signName); - $this->setUserParam($params, "template_code", $this->templateCode); - $this->setUserParam($params, "template_param_json", $this->templateParamJson); - $this->setUserParam($params, "waybill_codes", $this->waybillCodes); - $this->setUserParam($params, "wp_code", $this->wpCode); - $this->setUserParam($params, "out_id", $this->outId); - $this->setUserParam($params, "sms_up_extend_code", $this->smsUpExtendCode); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.open.msg.service.send.express.msg"; - } - - public function setSignName($signName) - { - $this->signName = $signName; - } - - public function setTemplateCode($templateCode) - { - $this->templateCode = $templateCode; - } - - public function setTemplateParamJson($templateParamJson) - { - $this->templateParamJson = $templateParamJson; - } - - public function setWaybillCodes($waybillCodes) - { - $this->waybillCodes = $waybillCodes; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - - public function setOutId($outId) - { - $this->outId = $outId; - } - - public function setSmsUpExtendCode($smsUpExtendCode) - { - $this->smsUpExtendCode = $smsUpExtendCode; - } - -} +>, "template_param_json") + */ + private $templateParamJson; + + /** + * @JsonProperty(List, "waybill_codes") + */ + private $waybillCodes; + + /** + * @JsonProperty(String, "wp_code") + */ + private $wpCode; + + /** + * @JsonProperty(String, "out_id") + */ + private $outId; + + /** + * @JsonProperty(String, "sms_up_extend_code") + */ + private $smsUpExtendCode; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "sign_name", $this->signName); + $this->setUserParam($params, "template_code", $this->templateCode); + $this->setUserParam($params, "template_param_json", $this->templateParamJson); + $this->setUserParam($params, "waybill_codes", $this->waybillCodes); + $this->setUserParam($params, "wp_code", $this->wpCode); + $this->setUserParam($params, "out_id", $this->outId); + $this->setUserParam($params, "sms_up_extend_code", $this->smsUpExtendCode); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.open.msg.service.send.express.msg"; + } + + public function setSignName($signName) + { + $this->signName = $signName; + } + + public function setTemplateCode($templateCode) + { + $this->templateCode = $templateCode; + } + + public function setTemplateParamJson($templateParamJson) + { + $this->templateParamJson = $templateParamJson; + } + + public function setWaybillCodes($waybillCodes) + { + $this->waybillCodes = $waybillCodes; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + + public function setOutId($outId) + { + $this->outId = $outId; + } + + public function setSmsUpExtendCode($smsUpExtendCode) + { + $this->smsUpExtendCode = $smsUpExtendCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendMsgRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendMsgRequest.php index fce0e01..ff56bfa 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendMsgRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOpenMsgServiceSendMsgRequest.php @@ -1,99 +1,99 @@ -, "phone_numbers") - */ - private $phoneNumbers; - - /** - * @JsonProperty(String, "sign_name") - */ - private $signName; - - /** - * @JsonProperty(Long, "template_code") - */ - private $templateCode; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddOpenMsgServiceSendMsgRequest_tring, String>, "template_param") - */ - private $templateParam; - - /** - * @JsonProperty(String, "out_id") - */ - private $outId; - - /** - * @JsonProperty(String, "sms_up_extend_code") - */ - private $smsUpExtendCode; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "phone_numbers", $this->phoneNumbers); - $this->setUserParam($params, "sign_name", $this->signName); - $this->setUserParam($params, "template_code", $this->templateCode); - $this->setUserParam($params, "template_param", $this->templateParam); - $this->setUserParam($params, "out_id", $this->outId); - $this->setUserParam($params, "sms_up_extend_code", $this->smsUpExtendCode); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.open.msg.service.send.msg"; - } - - public function setPhoneNumbers($phoneNumbers) - { - $this->phoneNumbers = $phoneNumbers; - } - - public function setSignName($signName) - { - $this->signName = $signName; - } - - public function setTemplateCode($templateCode) - { - $this->templateCode = $templateCode; - } - - public function setTemplateParam($templateParam) - { - $this->templateParam = $templateParam; - } - - public function setOutId($outId) - { - $this->outId = $outId; - } - - public function setSmsUpExtendCode($smsUpExtendCode) - { - $this->smsUpExtendCode = $smsUpExtendCode; - } - -} +, "phone_numbers") + */ + private $phoneNumbers; + + /** + * @JsonProperty(String, "sign_name") + */ + private $signName; + + /** + * @JsonProperty(Long, "template_code") + */ + private $templateCode; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddOpenMsgServiceSendMsgRequest_tring, String>, "template_param") + */ + private $templateParam; + + /** + * @JsonProperty(String, "out_id") + */ + private $outId; + + /** + * @JsonProperty(String, "sms_up_extend_code") + */ + private $smsUpExtendCode; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "phone_numbers", $this->phoneNumbers); + $this->setUserParam($params, "sign_name", $this->signName); + $this->setUserParam($params, "template_code", $this->templateCode); + $this->setUserParam($params, "template_param", $this->templateParam); + $this->setUserParam($params, "out_id", $this->outId); + $this->setUserParam($params, "sms_up_extend_code", $this->smsUpExtendCode); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.open.msg.service.send.msg"; + } + + public function setPhoneNumbers($phoneNumbers) + { + $this->phoneNumbers = $phoneNumbers; + } + + public function setSignName($signName) + { + $this->signName = $signName; + } + + public function setTemplateCode($templateCode) + { + $this->templateCode = $templateCode; + } + + public function setTemplateParam($templateParam) + { + $this->templateParam = $templateParam; + } + + public function setOutId($outId) + { + $this->outId = $outId; + } + + public function setSmsUpExtendCode($smsUpExtendCode) + { + $this->smsUpExtendCode = $smsUpExtendCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOrderBasicListGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOrderBasicListGetRequest.php index 897e06b..ab90f84 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOrderBasicListGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOrderBasicListGetRequest.php @@ -1,121 +1,121 @@ -setUserParam($params, "end_confirm_at", $this->endConfirmAt); - $this->setUserParam($params, "order_status", $this->orderStatus); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "refund_status", $this->refundStatus); - $this->setUserParam($params, "start_confirm_at", $this->startConfirmAt); - $this->setUserParam($params, "trade_type", $this->tradeType); - $this->setUserParam($params, "use_has_next", $this->useHasNext); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.order.basic.list.get"; - } - - public function setEndConfirmAt($endConfirmAt) - { - $this->endConfirmAt = $endConfirmAt; - } - - public function setOrderStatus($orderStatus) - { - $this->orderStatus = $orderStatus; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setRefundStatus($refundStatus) - { - $this->refundStatus = $refundStatus; - } - - public function setStartConfirmAt($startConfirmAt) - { - $this->startConfirmAt = $startConfirmAt; - } - - public function setTradeType($tradeType) - { - $this->tradeType = $tradeType; - } - - public function setUseHasNext($useHasNext) - { - $this->useHasNext = $useHasNext; - } - -} +setUserParam($params, "end_confirm_at", $this->endConfirmAt); + $this->setUserParam($params, "order_status", $this->orderStatus); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "refund_status", $this->refundStatus); + $this->setUserParam($params, "start_confirm_at", $this->startConfirmAt); + $this->setUserParam($params, "trade_type", $this->tradeType); + $this->setUserParam($params, "use_has_next", $this->useHasNext); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.order.basic.list.get"; + } + + public function setEndConfirmAt($endConfirmAt) + { + $this->endConfirmAt = $endConfirmAt; + } + + public function setOrderStatus($orderStatus) + { + $this->orderStatus = $orderStatus; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setRefundStatus($refundStatus) + { + $this->refundStatus = $refundStatus; + } + + public function setStartConfirmAt($startConfirmAt) + { + $this->startConfirmAt = $startConfirmAt; + } + + public function setTradeType($tradeType) + { + $this->tradeType = $tradeType; + } + + public function setUseHasNext($useHasNext) + { + $this->useHasNext = $useHasNext; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOrderInformationGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOrderInformationGetRequest.php index ab09492..35e27a7 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOrderInformationGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOrderInformationGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "order_sn", $this->orderSn); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.order.information.get"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} +setUserParam($params, "order_sn", $this->orderSn); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.order.information.get"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOrderListGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOrderListGetRequest.php index fd1afda..e4d6d42 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOrderListGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOrderListGetRequest.php @@ -1,121 +1,121 @@ -setUserParam($params, "order_status", $this->orderStatus); - $this->setUserParam($params, "refund_status", $this->refundStatus); - $this->setUserParam($params, "start_confirm_at", $this->startConfirmAt); - $this->setUserParam($params, "end_confirm_at", $this->endConfirmAt); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "trade_type", $this->tradeType); - $this->setUserParam($params, "use_has_next", $this->useHasNext); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.order.list.get"; - } - - public function setOrderStatus($orderStatus) - { - $this->orderStatus = $orderStatus; - } - - public function setRefundStatus($refundStatus) - { - $this->refundStatus = $refundStatus; - } - - public function setStartConfirmAt($startConfirmAt) - { - $this->startConfirmAt = $startConfirmAt; - } - - public function setEndConfirmAt($endConfirmAt) - { - $this->endConfirmAt = $endConfirmAt; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setTradeType($tradeType) - { - $this->tradeType = $tradeType; - } - - public function setUseHasNext($useHasNext) - { - $this->useHasNext = $useHasNext; - } - -} +setUserParam($params, "order_status", $this->orderStatus); + $this->setUserParam($params, "refund_status", $this->refundStatus); + $this->setUserParam($params, "start_confirm_at", $this->startConfirmAt); + $this->setUserParam($params, "end_confirm_at", $this->endConfirmAt); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "trade_type", $this->tradeType); + $this->setUserParam($params, "use_has_next", $this->useHasNext); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.order.list.get"; + } + + public function setOrderStatus($orderStatus) + { + $this->orderStatus = $orderStatus; + } + + public function setRefundStatus($refundStatus) + { + $this->refundStatus = $refundStatus; + } + + public function setStartConfirmAt($startConfirmAt) + { + $this->startConfirmAt = $startConfirmAt; + } + + public function setEndConfirmAt($endConfirmAt) + { + $this->endConfirmAt = $endConfirmAt; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setTradeType($tradeType) + { + $this->tradeType = $tradeType; + } + + public function setUseHasNext($useHasNext) + { + $this->useHasNext = $useHasNext; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOrderNumberListIncrementGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOrderNumberListIncrementGetRequest.php index 1ad941e..8a26e74 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOrderNumberListIncrementGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOrderNumberListIncrementGetRequest.php @@ -1,132 +1,132 @@ -setUserParam($params, "is_lucky_flag", $this->isLuckyFlag); - $this->setUserParam($params, "order_status", $this->orderStatus); - $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt); - $this->setUserParam($params, "end_updated_at", $this->endUpdatedAt); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "refund_status", $this->refundStatus); - $this->setUserParam($params, "trade_type", $this->tradeType); - $this->setUserParam($params, "use_has_next", $this->useHasNext); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.order.number.list.increment.get"; - } - - public function setIsLuckyFlag($isLuckyFlag) - { - $this->isLuckyFlag = $isLuckyFlag; - } - - public function setOrderStatus($orderStatus) - { - $this->orderStatus = $orderStatus; - } - - public function setStartUpdatedAt($startUpdatedAt) - { - $this->startUpdatedAt = $startUpdatedAt; - } - - public function setEndUpdatedAt($endUpdatedAt) - { - $this->endUpdatedAt = $endUpdatedAt; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setRefundStatus($refundStatus) - { - $this->refundStatus = $refundStatus; - } - - public function setTradeType($tradeType) - { - $this->tradeType = $tradeType; - } - - public function setUseHasNext($useHasNext) - { - $this->useHasNext = $useHasNext; - } - -} +setUserParam($params, "is_lucky_flag", $this->isLuckyFlag); + $this->setUserParam($params, "order_status", $this->orderStatus); + $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt); + $this->setUserParam($params, "end_updated_at", $this->endUpdatedAt); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "refund_status", $this->refundStatus); + $this->setUserParam($params, "trade_type", $this->tradeType); + $this->setUserParam($params, "use_has_next", $this->useHasNext); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.order.number.list.increment.get"; + } + + public function setIsLuckyFlag($isLuckyFlag) + { + $this->isLuckyFlag = $isLuckyFlag; + } + + public function setOrderStatus($orderStatus) + { + $this->orderStatus = $orderStatus; + } + + public function setStartUpdatedAt($startUpdatedAt) + { + $this->startUpdatedAt = $startUpdatedAt; + } + + public function setEndUpdatedAt($endUpdatedAt) + { + $this->endUpdatedAt = $endUpdatedAt; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setRefundStatus($refundStatus) + { + $this->refundStatus = $refundStatus; + } + + public function setTradeType($tradeType) + { + $this->tradeType = $tradeType; + } + + public function setUseHasNext($useHasNext) + { + $this->useHasNext = $useHasNext; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOrderPromiseInfoGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOrderPromiseInfoGetRequest.php index b82af8d..5ede6d3 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOrderPromiseInfoGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOrderPromiseInfoGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "promise_id", $this->promiseId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.order.promise.info.get"; - } - - public function setPromiseId($promiseId) - { - $this->promiseId = $promiseId; - } - -} +setUserParam($params, "promise_id", $this->promiseId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.order.promise.info.get"; + } + + public function setPromiseId($promiseId) + { + $this->promiseId = $promiseId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOrderStatusGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOrderStatusGetRequest.php index 3e5a01c..17369f6 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOrderStatusGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOrderStatusGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "order_sns", $this->orderSns); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.order.status.get"; - } - - public function setOrderSns($orderSns) - { - $this->orderSns = $orderSns; - } - -} +setUserParam($params, "order_sns", $this->orderSns); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.order.status.get"; + } + + public function setOrderSns($orderSns) + { + $this->orderSns = $orderSns; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddOverseaClearanceGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddOverseaClearanceGetRequest.php index 23b3637..2e3b81f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddOverseaClearanceGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddOverseaClearanceGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "order_sn", $this->orderSn); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.oversea.clearance.get"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} +setUserParam($params, "order_sn", $this->orderSn); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.oversea.clearance.get"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPmcAccrueQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPmcAccrueQueryRequest.php index fa4db29..c9c6457 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPmcAccrueQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPmcAccrueQueryRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "owner_id", $this->ownerId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.pmc.user.cancel"; - } - - public function setOwnerId($ownerId) - { - $this->ownerId = $ownerId; - } - -} +setUserParam($params, "owner_id", $this->ownerId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.pmc.user.cancel"; + } + + public function setOwnerId($ownerId) + { + $this->ownerId = $ownerId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPmcUserGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPmcUserGetRequest.php index bc7392e..275c67a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPmcUserGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPmcUserGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "owner_id", $this->ownerId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.pmc.user.get"; - } - - public function setOwnerId($ownerId) - { - $this->ownerId = $ownerId; - } - -} +setUserParam($params, "owner_id", $this->ownerId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.pmc.user.get"; + } + + public function setOwnerId($ownerId) + { + $this->ownerId = $ownerId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPmcUserPermitRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPmcUserPermitRequest.php index 806c497..04104b0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPmcUserPermitRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPmcUserPermitRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "topics", $this->topics); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.pmc.user.permit"; - } - - public function setTopics($topics) - { - $this->topics = $topics; - } - -} +setUserParam($params, "topics", $this->topics); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.pmc.user.permit"; + } + + public function setTopics($topics) + { + $this->topics = $topics; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPngMallStaffBatchSycnRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPngMallStaffBatchSycnRequest.php index 628acac..76fb306 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPngMallStaffBatchSycnRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPngMallStaffBatchSycnRequest.php @@ -1,55 +1,55 @@ -, "staff_ids") - */ - private $staffIds; - - /** - * @JsonProperty(Long, "to_mall_id") - */ - private $toMallId; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "staff_ids", $this->staffIds); - $this->setUserParam($params, "to_mall_id", $this->toMallId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.png.mall.staff.batch.sycn"; - } - - public function setStaffIds($staffIds) - { - $this->staffIds = $staffIds; - } - - public function setToMallId($toMallId) - { - $this->toMallId = $toMallId; - } - -} +, "staff_ids") + */ + private $staffIds; + + /** + * @JsonProperty(Long, "to_mall_id") + */ + private $toMallId; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "staff_ids", $this->staffIds); + $this->setUserParam($params, "to_mall_id", $this->toMallId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.png.mall.staff.batch.sycn"; + } + + public function setStaffIds($staffIds) + { + $this->staffIds = $staffIds; + } + + public function setToMallId($toMallId) + { + $this->toMallId = $toMallId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPngMallStaffPageQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPngMallStaffPageQueryRequest.php index 3c29efc..4ba05b9 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPngMallStaffPageQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPngMallStaffPageQueryRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "limit", $this->limit); - $this->setUserParam($params, "start_id", $this->startId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.png.mall.staff.page.query"; - } - - public function setLimit($limit) - { - $this->limit = $limit; - } - - public function setStartId($startId) - { - $this->startId = $startId; - } - -} +setUserParam($params, "limit", $this->limit); + $this->setUserParam($params, "start_id", $this->startId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.png.mall.staff.page.query"; + } + + public function setLimit($limit) + { + $this->limit = $limit; + } + + public function setStartId($startId) + { + $this->startId = $startId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPngPermissionsMallStaffPushApplyRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPngPermissionsMallStaffPushApplyRequest.php index 7503326..8f22be1 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPngPermissionsMallStaffPushApplyRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPngPermissionsMallStaffPushApplyRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "to_mall_id", $this->toMallId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.png.permissions.mall.staff.push.apply"; - } - - public function setToMallId($toMallId) - { - $this->toMallId = $toMallId; - } - -} +setUserParam($params, "to_mall_id", $this->toMallId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.png.permissions.mall.staff.push.apply"; + } + + public function setToMallId($toMallId) + { + $this->toMallId = $toMallId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPngPermissionsMallStaffPushConfirmRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPngPermissionsMallStaffPushConfirmRequest.php index 6fa4f9b..7965a83 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPngPermissionsMallStaffPushConfirmRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPngPermissionsMallStaffPushConfirmRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "from_mall_id", $this->fromMallId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.png.permissions.mall.staff.push.confirm"; - } - - public function setFromMallId($fromMallId) - { - $this->fromMallId = $fromMallId; - } - -} +setUserParam($params, "from_mall_id", $this->fromMallId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.png.permissions.mall.staff.push.confirm"; + } + + public function setFromMallId($fromMallId) + { + $this->fromMallId = $fromMallId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPopAuthTokenCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPopAuthTokenCreateRequest.php index 20e01d1..fb86b79 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPopAuthTokenCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPopAuthTokenCreateRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "code", $this->code); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.pop.auth.token.create"; - } - - public function setCode($code) - { - $this->code = $code; - } - -} +setUserParam($params, "code", $this->code); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.pop.auth.token.create"; + } + + public function setCode($code) + { + $this->code = $code; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPopAuthTokenRefreshRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPopAuthTokenRefreshRequest.php index d69e32c..3479c90 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPopAuthTokenRefreshRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPopAuthTokenRefreshRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "refresh_token", $this->refreshToken); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.pop.auth.token.refresh"; - } - - public function setRefreshToken($refreshToken) - { - $this->refreshToken = $refreshToken; - } - -} +setUserParam($params, "refresh_token", $this->refreshToken); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.pop.auth.token.refresh"; + } + + public function setRefreshToken($refreshToken) + { + $this->refreshToken = $refreshToken; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionCouponCloseRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionCouponCloseRequest.php index 3fa20de..5cf91d0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionCouponCloseRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionCouponCloseRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "batch_id", $this->batchId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.coupon.close"; - } - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - -} +setUserParam($params, "batch_id", $this->batchId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.coupon.close"; + } + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionCouponQuantityAddRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionCouponQuantityAddRequest.php index 1b3a6b0..d4ddad5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionCouponQuantityAddRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionCouponQuantityAddRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "batch_id", $this->batchId); - $this->setUserParam($params, "add_quantity", $this->addQuantity); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.coupon.quantity.add"; - } - - public function setBatchId($batchId) - { - $this->batchId = $batchId; - } - - public function setAddQuantity($addQuantity) - { - $this->addQuantity = $addQuantity; - } - -} +setUserParam($params, "batch_id", $this->batchId); + $this->setUserParam($params, "add_quantity", $this->addQuantity); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.coupon.quantity.add"; + } + + public function setBatchId($batchId) + { + $this->batchId = $batchId; + } + + public function setAddQuantity($addQuantity) + { + $this->addQuantity = $addQuantity; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionGoodsCouponCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionGoodsCouponCreateRequest.php index a5a10aa..fb4afd2 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionGoodsCouponCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionGoodsCouponCreateRequest.php @@ -1,110 +1,110 @@ -setUserParam($params, "batch_desc", $this->batchDesc); - $this->setUserParam($params, "batch_start_time", $this->batchStartTime); - $this->setUserParam($params, "batch_end_time", $this->batchEndTime); - $this->setUserParam($params, "discount", $this->discount); - $this->setUserParam($params, "init_quantity", $this->initQuantity); - $this->setUserParam($params, "user_limit", $this->userLimit); - $this->setUserParam($params, "goods_id", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.goods.coupon.create"; - } - - public function setBatchDesc($batchDesc) - { - $this->batchDesc = $batchDesc; - } - - public function setBatchStartTime($batchStartTime) - { - $this->batchStartTime = $batchStartTime; - } - - public function setBatchEndTime($batchEndTime) - { - $this->batchEndTime = $batchEndTime; - } - - public function setDiscount($discount) - { - $this->discount = $discount; - } - - public function setInitQuantity($initQuantity) - { - $this->initQuantity = $initQuantity; - } - - public function setUserLimit($userLimit) - { - $this->userLimit = $userLimit; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "batch_desc", $this->batchDesc); + $this->setUserParam($params, "batch_start_time", $this->batchStartTime); + $this->setUserParam($params, "batch_end_time", $this->batchEndTime); + $this->setUserParam($params, "discount", $this->discount); + $this->setUserParam($params, "init_quantity", $this->initQuantity); + $this->setUserParam($params, "user_limit", $this->userLimit); + $this->setUserParam($params, "goods_id", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.goods.coupon.create"; + } + + public function setBatchDesc($batchDesc) + { + $this->batchDesc = $batchDesc; + } + + public function setBatchStartTime($batchStartTime) + { + $this->batchStartTime = $batchStartTime; + } + + public function setBatchEndTime($batchEndTime) + { + $this->batchEndTime = $batchEndTime; + } + + public function setDiscount($discount) + { + $this->discount = $discount; + } + + public function setInitQuantity($initQuantity) + { + $this->initQuantity = $initQuantity; + } + + public function setUserLimit($userLimit) + { + $this->userLimit = $userLimit; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionGoodsCouponListGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionGoodsCouponListGetRequest.php index 4728477..e3a8beb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionGoodsCouponListGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionGoodsCouponListGetRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "query_range", $this->queryRange); - $this->setUserParam($params, "batch_status", $this->batchStatus); - $this->setUserParam($params, "sort_by", $this->sortBy); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.goods.coupon.list.get"; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setQueryRange($queryRange) - { - $this->queryRange = $queryRange; - } - - public function setBatchStatus($batchStatus) - { - $this->batchStatus = $batchStatus; - } - - public function setSortBy($sortBy) - { - $this->sortBy = $sortBy; - } - -} +setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "query_range", $this->queryRange); + $this->setUserParam($params, "batch_status", $this->batchStatus); + $this->setUserParam($params, "sort_by", $this->sortBy); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.goods.coupon.list.get"; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setQueryRange($queryRange) + { + $this->queryRange = $queryRange; + } + + public function setBatchStatus($batchStatus) + { + $this->batchStatus = $batchStatus; + } + + public function setSortBy($sortBy) + { + $this->sortBy = $sortBy; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionHomeCouponCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionHomeCouponCreateRequest.php index 3d8aaad..4311ed1 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionHomeCouponCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionHomeCouponCreateRequest.php @@ -1,110 +1,110 @@ -setUserParam($params, "batch_desc", $this->batchDesc); - $this->setUserParam($params, "batch_start_time", $this->batchStartTime); - $this->setUserParam($params, "batch_end_time", $this->batchEndTime); - $this->setUserParam($params, "discount", $this->discount); - $this->setUserParam($params, "min_order_amount", $this->minOrderAmount); - $this->setUserParam($params, "init_quantity", $this->initQuantity); - $this->setUserParam($params, "user_limit", $this->userLimit); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.home.coupon.create"; - } - - public function setBatchDesc($batchDesc) - { - $this->batchDesc = $batchDesc; - } - - public function setBatchStartTime($batchStartTime) - { - $this->batchStartTime = $batchStartTime; - } - - public function setBatchEndTime($batchEndTime) - { - $this->batchEndTime = $batchEndTime; - } - - public function setDiscount($discount) - { - $this->discount = $discount; - } - - public function setMinOrderAmount($minOrderAmount) - { - $this->minOrderAmount = $minOrderAmount; - } - - public function setInitQuantity($initQuantity) - { - $this->initQuantity = $initQuantity; - } - - public function setUserLimit($userLimit) - { - $this->userLimit = $userLimit; - } - -} +setUserParam($params, "batch_desc", $this->batchDesc); + $this->setUserParam($params, "batch_start_time", $this->batchStartTime); + $this->setUserParam($params, "batch_end_time", $this->batchEndTime); + $this->setUserParam($params, "discount", $this->discount); + $this->setUserParam($params, "min_order_amount", $this->minOrderAmount); + $this->setUserParam($params, "init_quantity", $this->initQuantity); + $this->setUserParam($params, "user_limit", $this->userLimit); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.home.coupon.create"; + } + + public function setBatchDesc($batchDesc) + { + $this->batchDesc = $batchDesc; + } + + public function setBatchStartTime($batchStartTime) + { + $this->batchStartTime = $batchStartTime; + } + + public function setBatchEndTime($batchEndTime) + { + $this->batchEndTime = $batchEndTime; + } + + public function setDiscount($discount) + { + $this->discount = $discount; + } + + public function setMinOrderAmount($minOrderAmount) + { + $this->minOrderAmount = $minOrderAmount; + } + + public function setInitQuantity($initQuantity) + { + $this->initQuantity = $initQuantity; + } + + public function setUserLimit($userLimit) + { + $this->userLimit = $userLimit; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedActivityCancelRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedActivityCancelRequest.php index ea632d3..54067ae 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedActivityCancelRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedActivityCancelRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "detail_id", $this->detailId); - $this->setUserParam($params, "goods_id", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.limited.activity.cancel"; - } - - public function setDetailId($detailId) - { - $this->detailId = $detailId; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "detail_id", $this->detailId); + $this->setUserParam($params, "goods_id", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.limited.activity.cancel"; + } + + public function setDetailId($detailId) + { + $this->detailId = $detailId; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedActivityCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedActivityCreateRequest.php index 6a884d5..5e98110 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedActivityCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedActivityCreateRequest.php @@ -1,174 +1,174 @@ -, "request") - */ - private $request; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.limited.activity.create"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddPromotionLimitedActivityCreateRequest_RequestItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "activity_name") - */ - private $activityName; - - /** - * @JsonProperty(Integer, "activity_type") - */ - private $activityType; - - /** - * @JsonProperty(Long, "discount") - */ - private $discount; - - /** - * @JsonProperty(Long, "end_time") - */ - private $endTime; - - /** - * @JsonProperty(Long, "goods_id") - */ - private $goodsId; - - /** - * @JsonProperty(Long, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddPromotionLimitedActivityCreateRequest_RequestItemSkuPriceListItem>, "sku_price_list") - */ - private $skuPriceList; - - /** - * @JsonProperty(Long, "start_time") - */ - private $startTime; - - /** - * @JsonProperty(Long, "user_activity_limit") - */ - private $userActivityLimit; - - public function setActivityName($activityName) - { - $this->activityName = $activityName; - } - - public function setActivityType($activityType) - { - $this->activityType = $activityType; - } - - public function setDiscount($discount) - { - $this->discount = $discount; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setSkuPriceList($skuPriceList) - { - $this->skuPriceList = $skuPriceList; - } - - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - - public function setUserActivityLimit($userActivityLimit) - { - $this->userActivityLimit = $userActivityLimit; - } - -} - -class PddPromotionLimitedActivityCreateRequest_RequestItemSkuPriceListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "activity_price") - */ - private $activityPrice; - - /** - * @JsonProperty(Long, "sku_id") - */ - private $skuId; - - public function setActivityPrice($activityPrice) - { - $this->activityPrice = $activityPrice; - } - - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } - -} +, "request") + */ + private $request; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.limited.activity.create"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddPromotionLimitedActivityCreateRequest_RequestItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "activity_name") + */ + private $activityName; + + /** + * @JsonProperty(Integer, "activity_type") + */ + private $activityType; + + /** + * @JsonProperty(Long, "discount") + */ + private $discount; + + /** + * @JsonProperty(Long, "end_time") + */ + private $endTime; + + /** + * @JsonProperty(Long, "goods_id") + */ + private $goodsId; + + /** + * @JsonProperty(Long, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddPromotionLimitedActivityCreateRequest_RequestItemSkuPriceListItem>, "sku_price_list") + */ + private $skuPriceList; + + /** + * @JsonProperty(Long, "start_time") + */ + private $startTime; + + /** + * @JsonProperty(Long, "user_activity_limit") + */ + private $userActivityLimit; + + public function setActivityName($activityName) + { + $this->activityName = $activityName; + } + + public function setActivityType($activityType) + { + $this->activityType = $activityType; + } + + public function setDiscount($discount) + { + $this->discount = $discount; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setSkuPriceList($skuPriceList) + { + $this->skuPriceList = $skuPriceList; + } + + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + + public function setUserActivityLimit($userActivityLimit) + { + $this->userActivityLimit = $userActivityLimit; + } + +} + +class PddPromotionLimitedActivityCreateRequest_RequestItemSkuPriceListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "activity_price") + */ + private $activityPrice; + + /** + * @JsonProperty(Long, "sku_id") + */ + private $skuId; + + public function setActivityPrice($activityPrice) + { + $this->activityPrice = $activityPrice; + } + + public function setSkuId($skuId) + { + $this->skuId = $skuId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedDiscountListGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedDiscountListGetRequest.php index e7449a1..0ccfe41 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedDiscountListGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedDiscountListGetRequest.php @@ -1,110 +1,110 @@ -, "activity_types") - */ - private $activityTypes; - - /** - * @JsonProperty(List, "goods_id_list") - */ - private $goodsIdList; - - /** - * @JsonProperty(Boolean, "just_count") - */ - private $justCount; - - /** - * @JsonProperty(Integer, "order") - */ - private $order; - - /** - * @JsonProperty(Integer, "page_no") - */ - private $pageNo; - - /** - * @JsonProperty(Integer, "page_size") - */ - private $pageSize; - - /** - * @JsonProperty(List, "status_list") - */ - private $statusList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "activity_types", $this->activityTypes); - $this->setUserParam($params, "goods_id_list", $this->goodsIdList); - $this->setUserParam($params, "just_count", $this->justCount); - $this->setUserParam($params, "order", $this->order); - $this->setUserParam($params, "page_no", $this->pageNo); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "status_list", $this->statusList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.limited.discount.list.get"; - } - - public function setActivityTypes($activityTypes) - { - $this->activityTypes = $activityTypes; - } - - public function setGoodsIdList($goodsIdList) - { - $this->goodsIdList = $goodsIdList; - } - - public function setJustCount($justCount) - { - $this->justCount = $justCount; - } - - public function setOrder($order) - { - $this->order = $order; - } - - public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setStatusList($statusList) - { - $this->statusList = $statusList; - } - -} +, "activity_types") + */ + private $activityTypes; + + /** + * @JsonProperty(List, "goods_id_list") + */ + private $goodsIdList; + + /** + * @JsonProperty(Boolean, "just_count") + */ + private $justCount; + + /** + * @JsonProperty(Integer, "order") + */ + private $order; + + /** + * @JsonProperty(Integer, "page_no") + */ + private $pageNo; + + /** + * @JsonProperty(Integer, "page_size") + */ + private $pageSize; + + /** + * @JsonProperty(List, "status_list") + */ + private $statusList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "activity_types", $this->activityTypes); + $this->setUserParam($params, "goods_id_list", $this->goodsIdList); + $this->setUserParam($params, "just_count", $this->justCount); + $this->setUserParam($params, "order", $this->order); + $this->setUserParam($params, "page_no", $this->pageNo); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "status_list", $this->statusList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.limited.discount.list.get"; + } + + public function setActivityTypes($activityTypes) + { + $this->activityTypes = $activityTypes; + } + + public function setGoodsIdList($goodsIdList) + { + $this->goodsIdList = $goodsIdList; + } + + public function setJustCount($justCount) + { + $this->justCount = $justCount; + } + + public function setOrder($order) + { + $this->order = $order; + } + + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setStatusList($statusList) + { + $this->statusList = $statusList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedQualifiedGoodsGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedQualifiedGoodsGetRequest.php index 3c35b84..0fe54bb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedQualifiedGoodsGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedQualifiedGoodsGetRequest.php @@ -1,77 +1,77 @@ -, "goods_id_list") - */ - private $goodsIdList; - - /** - * @JsonProperty(Boolean, "is_valid") - */ - private $isValid; - - /** - * @JsonProperty(Integer, "page_no") - */ - private $pageNo; - - /** - * @JsonProperty(Integer, "page_size") - */ - private $pageSize; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "goods_id_list", $this->goodsIdList); - $this->setUserParam($params, "is_valid", $this->isValid); - $this->setUserParam($params, "page_no", $this->pageNo); - $this->setUserParam($params, "page_size", $this->pageSize); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.limited.qualified.goods.get"; - } - - public function setGoodsIdList($goodsIdList) - { - $this->goodsIdList = $goodsIdList; - } - - public function setIsValid($isValid) - { - $this->isValid = $isValid; - } - - public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - -} +, "goods_id_list") + */ + private $goodsIdList; + + /** + * @JsonProperty(Boolean, "is_valid") + */ + private $isValid; + + /** + * @JsonProperty(Integer, "page_no") + */ + private $pageNo; + + /** + * @JsonProperty(Integer, "page_size") + */ + private $pageSize; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "goods_id_list", $this->goodsIdList); + $this->setUserParam($params, "is_valid", $this->isValid); + $this->setUserParam($params, "page_no", $this->pageNo); + $this->setUserParam($params, "page_size", $this->pageSize); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.limited.qualified.goods.get"; + } + + public function setGoodsIdList($goodsIdList) + { + $this->goodsIdList = $goodsIdList; + } + + public function setIsValid($isValid) + { + $this->isValid = $isValid; + } + + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedQualifiedSkuGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedQualifiedSkuGetRequest.php index eb4324e..4ffd028 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedQualifiedSkuGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionLimitedQualifiedSkuGetRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goods_id", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.limited.qualified.sku.get"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.limited.qualified.sku.get"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionMerchantCouponListGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionMerchantCouponListGetRequest.php index 699505a..94282fb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddPromotionMerchantCouponListGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddPromotionMerchantCouponListGetRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "batch_start_time_from", $this->batchStartTimeFrom); - $this->setUserParam($params, "batch_start_time_to", $this->batchStartTimeTo); - $this->setUserParam($params, "batch_status", $this->batchStatus); - $this->setUserParam($params, "sort_by", $this->sortBy); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.promotion.merchant.coupon.list.get"; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setBatchStartTimeFrom($batchStartTimeFrom) - { - $this->batchStartTimeFrom = $batchStartTimeFrom; - } - - public function setBatchStartTimeTo($batchStartTimeTo) - { - $this->batchStartTimeTo = $batchStartTimeTo; - } - - public function setBatchStatus($batchStatus) - { - $this->batchStatus = $batchStatus; - } - - public function setSortBy($sortBy) - { - $this->sortBy = $sortBy; - } - -} +setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "batch_start_time_from", $this->batchStartTimeFrom); + $this->setUserParam($params, "batch_start_time_to", $this->batchStartTimeTo); + $this->setUserParam($params, "batch_status", $this->batchStatus); + $this->setUserParam($params, "sort_by", $this->sortBy); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.promotion.merchant.coupon.list.get"; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setBatchStartTimeFrom($batchStartTimeFrom) + { + $this->batchStartTimeFrom = $batchStartTimeFrom; + } + + public function setBatchStartTimeTo($batchStartTimeTo) + { + $this->batchStartTimeTo = $batchStartTimeTo; + } + + public function setBatchStatus($batchStatus) + { + $this->batchStatus = $batchStatus; + } + + public function setSortBy($sortBy) + { + $this->sortBy = $sortBy; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddQrpayPayeeRegisterRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddQrpayPayeeRegisterRequest.php index fcccab4..a749312 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddQrpayPayeeRegisterRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddQrpayPayeeRegisterRequest.php @@ -1,64 +1,64 @@ -, "payee_list") - */ - private $payeeList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "payee_list", $this->payeeList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.qrpay.payee.register"; - } - - public function setPayeeList($payeeList) - { - $this->payeeList = $payeeList; - } - -} - -class PddQrpayPayeeRegisterRequest_PayeeListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "payee") - */ - private $payee; - - public function setPayee($payee) - { - $this->payee = $payee; - } - -} +, "payee_list") + */ + private $payeeList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "payee_list", $this->payeeList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.qrpay.payee.register"; + } + + public function setPayeeList($payeeList) + { + $this->payeeList = $payeeList; + } + +} + +class PddQrpayPayeeRegisterRequest_PayeeListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "payee") + */ + private $payee; + + public function setPayee($payee) + { + $this->payee = $payee; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddRdcPddgeniusSendgoodsCancelRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddRdcPddgeniusSendgoodsCancelRequest.php index 85196a0..3690aef 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddRdcPddgeniusSendgoodsCancelRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddRdcPddgeniusSendgoodsCancelRequest.php @@ -1,124 +1,124 @@ -setUserParam($params, "param", $this->param); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.rdc.pddgenius.sendgoods.cancel"; - } - - public function setParam($param) - { - $this->param = $param; - } - -} - -class PddRdcPddgeniusSendgoodsCancelRequest_Param extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "operate_time") - */ - private $operateTime; - - /** - * @JsonProperty(String, "tid") - */ - private $tid; - - /** - * @JsonProperty(String, "status") - */ - private $status; - - /** - * @JsonProperty(Long, "refund_id") - */ - private $refundId; - - /** - * @JsonProperty(Integer, "refund_fee") - */ - private $refundFee; - - /** - * @JsonProperty(String, "msg") - */ - private $msg; - - /** - * @JsonProperty(Integer, "fail_reason_code") - */ - private $failReasonCode; - - public function setOperateTime($operateTime) - { - $this->operateTime = $operateTime; - } - - public function setTid($tid) - { - $this->tid = $tid; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function setRefundId($refundId) - { - $this->refundId = $refundId; - } - - public function setRefundFee($refundFee) - { - $this->refundFee = $refundFee; - } - - public function setMsg($msg) - { - $this->msg = $msg; - } - - public function setFailReasonCode($failReasonCode) - { - $this->failReasonCode = $failReasonCode; - } - -} +setUserParam($params, "param", $this->param); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.rdc.pddgenius.sendgoods.cancel"; + } + + public function setParam($param) + { + $this->param = $param; + } + +} + +class PddRdcPddgeniusSendgoodsCancelRequest_Param extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "operate_time") + */ + private $operateTime; + + /** + * @JsonProperty(String, "tid") + */ + private $tid; + + /** + * @JsonProperty(String, "status") + */ + private $status; + + /** + * @JsonProperty(Long, "refund_id") + */ + private $refundId; + + /** + * @JsonProperty(Integer, "refund_fee") + */ + private $refundFee; + + /** + * @JsonProperty(String, "msg") + */ + private $msg; + + /** + * @JsonProperty(Integer, "fail_reason_code") + */ + private $failReasonCode; + + public function setOperateTime($operateTime) + { + $this->operateTime = $operateTime; + } + + public function setTid($tid) + { + $this->tid = $tid; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function setRefundId($refundId) + { + $this->refundId = $refundId; + } + + public function setRefundFee($refundFee) + { + $this->refundFee = $refundFee; + } + + public function setMsg($msg) + { + $this->msg = $msg; + } + + public function setFailReasonCode($failReasonCode) + { + $this->failReasonCode = $failReasonCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddRefundAddressListGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddRefundAddressListGetRequest.php index 036011f..f2ec76b 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddRefundAddressListGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddRefundAddressListGetRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "after_sales_id", $this->afterSalesId); - $this->setUserParam($params, "order_sn", $this->orderSn); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.refund.information.get"; - } - - public function setAfterSalesId($afterSalesId) - { - $this->afterSalesId = $afterSalesId; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} +setUserParam($params, "after_sales_id", $this->afterSalesId); + $this->setUserParam($params, "order_sn", $this->orderSn); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.refund.information.get"; + } + + public function setAfterSalesId($afterSalesId) + { + $this->afterSalesId = $afterSalesId; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddRefundListIncrementGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddRefundListIncrementGetRequest.php index f850431..679033a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddRefundListIncrementGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddRefundListIncrementGetRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "after_sales_status", $this->afterSalesStatus); - $this->setUserParam($params, "after_sales_type", $this->afterSalesType); - $this->setUserParam($params, "end_updated_at", $this->endUpdatedAt); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.refund.list.increment.get"; - } - - public function setAfterSalesStatus($afterSalesStatus) - { - $this->afterSalesStatus = $afterSalesStatus; - } - - public function setAfterSalesType($afterSalesType) - { - $this->afterSalesType = $afterSalesType; - } - - public function setEndUpdatedAt($endUpdatedAt) - { - $this->endUpdatedAt = $endUpdatedAt; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setStartUpdatedAt($startUpdatedAt) - { - $this->startUpdatedAt = $startUpdatedAt; - } - -} +setUserParam($params, "after_sales_status", $this->afterSalesStatus); + $this->setUserParam($params, "after_sales_type", $this->afterSalesType); + $this->setUserParam($params, "end_updated_at", $this->endUpdatedAt); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "start_updated_at", $this->startUpdatedAt); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.refund.list.increment.get"; + } + + public function setAfterSalesStatus($afterSalesStatus) + { + $this->afterSalesStatus = $afterSalesStatus; + } + + public function setAfterSalesType($afterSalesType) + { + $this->afterSalesType = $afterSalesType; + } + + public function setEndUpdatedAt($endUpdatedAt) + { + $this->endUpdatedAt = $endUpdatedAt; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setStartUpdatedAt($startUpdatedAt) + { + $this->startUpdatedAt = $startUpdatedAt; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddRefundStatusCheckRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddRefundStatusCheckRequest.php index 9f8ff11..980fab2 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddRefundStatusCheckRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddRefundStatusCheckRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "order_sns", $this->orderSns); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.refund.status.check"; - } - - public function setOrderSns($orderSns) - { - $this->orderSns = $orderSns; - } - -} +setUserParam($params, "order_sns", $this->orderSns); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.refund.status.check"; + } + + public function setOrderSns($orderSns) + { + $this->orderSns = $orderSns; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddServicemarketSettlementbillGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddServicemarketSettlementbillGetRequest.php index 7670737..7c3af59 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddServicemarketSettlementbillGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddServicemarketSettlementbillGetRequest.php @@ -1,77 +1,77 @@ -setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "service_order_sn", $this->serviceOrderSn); - $this->setUserParam($params, "settle_month", $this->settleMonth); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.servicemarket.settlementbill.get"; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setServiceOrderSn($serviceOrderSn) - { - $this->serviceOrderSn = $serviceOrderSn; - } - - public function setSettleMonth($settleMonth) - { - $this->settleMonth = $settleMonth; - } - -} +setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "service_order_sn", $this->serviceOrderSn); + $this->setUserParam($params, "settle_month", $this->settleMonth); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.servicemarket.settlementbill.get"; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setServiceOrderSn($serviceOrderSn) + { + $this->serviceOrderSn = $serviceOrderSn; + } + + public function setSettleMonth($settleMonth) + { + $this->settleMonth = $settleMonth; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddServicemarketTradelistGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddServicemarketTradelistGetRequest.php index d33307c..20b4865 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddServicemarketTradelistGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddServicemarketTradelistGetRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "begin_time", $this->beginTime); - $this->setUserParam($params, "end_time", $this->endTime); - $this->setUserParam($params, "group_type", $this->groupType); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "service_order_sn", $this->serviceOrderSn); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.servicemarket.tradelist.get"; - } - - public function setBeginTime($beginTime) - { - $this->beginTime = $beginTime; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setGroupType($groupType) - { - $this->groupType = $groupType; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setServiceOrderSn($serviceOrderSn) - { - $this->serviceOrderSn = $serviceOrderSn; - } - -} +setUserParam($params, "begin_time", $this->beginTime); + $this->setUserParam($params, "end_time", $this->endTime); + $this->setUserParam($params, "group_type", $this->groupType); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "service_order_sn", $this->serviceOrderSn); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.servicemarket.tradelist.get"; + } + + public function setBeginTime($beginTime) + { + $this->beginTime = $beginTime; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setGroupType($groupType) + { + $this->groupType = $groupType; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setServiceOrderSn($serviceOrderSn) + { + $this->serviceOrderSn = $serviceOrderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddSmsDetailbillPushRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddSmsDetailbillPushRequest.php index 617a18e..e68ded7 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddSmsDetailbillPushRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddSmsDetailbillPushRequest.php @@ -1,127 +1,127 @@ -, "details") - */ - private $details; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "account", $this->account); - $this->setUserParam($params, "batch_version", $this->batchVersion); - $this->setUserParam($params, "date", $this->date); - $this->setUserParam($params, "details", $this->details); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.sms.detailbill.push"; - } - - public function setAccount($account) - { - $this->account = $account; - } - - public function setBatchVersion($batchVersion) - { - $this->batchVersion = $batchVersion; - } - - public function setDate($date) - { - $this->date = $date; - } - - public function setDetails($details) - { - $this->details = $details; - } - -} - -class PddSmsDetailbillPushRequest_DetailsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "deliver_time") - */ - private $deliverTime; - - /** - * @JsonProperty(String, "error_code") - */ - private $errorCode; - - /** - * @JsonProperty(Long, "msg_id") - */ - private $msgId; - - /** - * @JsonProperty(String, "submit_time") - */ - private $submitTime; - - public function setDeliverTime($deliverTime) - { - $this->deliverTime = $deliverTime; - } - - public function setErrorCode($errorCode) - { - $this->errorCode = $errorCode; - } - - public function setMsgId($msgId) - { - $this->msgId = $msgId; - } - - public function setSubmitTime($submitTime) - { - $this->submitTime = $submitTime; - } - -} +, "details") + */ + private $details; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "account", $this->account); + $this->setUserParam($params, "batch_version", $this->batchVersion); + $this->setUserParam($params, "date", $this->date); + $this->setUserParam($params, "details", $this->details); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.sms.detailbill.push"; + } + + public function setAccount($account) + { + $this->account = $account; + } + + public function setBatchVersion($batchVersion) + { + $this->batchVersion = $batchVersion; + } + + public function setDate($date) + { + $this->date = $date; + } + + public function setDetails($details) + { + $this->details = $details; + } + +} + +class PddSmsDetailbillPushRequest_DetailsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "deliver_time") + */ + private $deliverTime; + + /** + * @JsonProperty(String, "error_code") + */ + private $errorCode; + + /** + * @JsonProperty(Long, "msg_id") + */ + private $msgId; + + /** + * @JsonProperty(String, "submit_time") + */ + private $submitTime; + + public function setDeliverTime($deliverTime) + { + $this->deliverTime = $deliverTime; + } + + public function setErrorCode($errorCode) + { + $this->errorCode = $errorCode; + } + + public function setMsgId($msgId) + { + $this->msgId = $msgId; + } + + public function setSubmitTime($submitTime) + { + $this->submitTime = $submitTime; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddSmsVendorComplaintCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddSmsVendorComplaintCreateRequest.php index 325ecf3..93db4d5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddSmsVendorComplaintCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddSmsVendorComplaintCreateRequest.php @@ -1,121 +1,121 @@ -setUserParam($params, "account", $this->account); - $this->setUserParam($params, "complaint_time", $this->complaintTime); - $this->setUserParam($params, "count", $this->count); - $this->setUserParam($params, "deliver_time", $this->deliverTime); - $this->setUserParam($params, "mobile", $this->mobile); - $this->setUserParam($params, "operator", $this->operator); - $this->setUserParam($params, "province", $this->province); - $this->setUserParam($params, "sms_content", $this->smsContent); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.sms.vendor.complaint.create"; - } - - public function setAccount($account) - { - $this->account = $account; - } - - public function setComplaintTime($complaintTime) - { - $this->complaintTime = $complaintTime; - } - - public function setCount($count) - { - $this->count = $count; - } - - public function setDeliverTime($deliverTime) - { - $this->deliverTime = $deliverTime; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setOperator($operator) - { - $this->operator = $operator; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setSmsContent($smsContent) - { - $this->smsContent = $smsContent; - } - -} +setUserParam($params, "account", $this->account); + $this->setUserParam($params, "complaint_time", $this->complaintTime); + $this->setUserParam($params, "count", $this->count); + $this->setUserParam($params, "deliver_time", $this->deliverTime); + $this->setUserParam($params, "mobile", $this->mobile); + $this->setUserParam($params, "operator", $this->operator); + $this->setUserParam($params, "province", $this->province); + $this->setUserParam($params, "sms_content", $this->smsContent); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.sms.vendor.complaint.create"; + } + + public function setAccount($account) + { + $this->account = $account; + } + + public function setComplaintTime($complaintTime) + { + $this->complaintTime = $complaintTime; + } + + public function setCount($count) + { + $this->count = $count; + } + + public function setDeliverTime($deliverTime) + { + $this->deliverTime = $deliverTime; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setOperator($operator) + { + $this->operator = $operator; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setSmsContent($smsContent) + { + $this->smsContent = $smsContent; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockDepotPriorityListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockDepotPriorityListRequest.php index 4f2e366..583bec8 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockDepotPriorityListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockDepotPriorityListRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "province_id", $this->provinceId); - $this->setUserParam($params, "city_id", $this->cityId); - $this->setUserParam($params, "district_id", $this->districtId); - $this->setUserParam($params, "depot_code", $this->depotCode); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "page_num", $this->pageNum); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.depot.priority.list"; - } - - public function setProvinceId($provinceId) - { - $this->provinceId = $provinceId; - } - - public function setCityId($cityId) - { - $this->cityId = $cityId; - } - - public function setDistrictId($districtId) - { - $this->districtId = $districtId; - } - - public function setDepotCode($depotCode) - { - $this->depotCode = $depotCode; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setPageNum($pageNum) - { - $this->pageNum = $pageNum; - } - -} +setUserParam($params, "province_id", $this->provinceId); + $this->setUserParam($params, "city_id", $this->cityId); + $this->setUserParam($params, "district_id", $this->districtId); + $this->setUserParam($params, "depot_code", $this->depotCode); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "page_num", $this->pageNum); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.depot.priority.list"; + } + + public function setProvinceId($provinceId) + { + $this->provinceId = $provinceId; + } + + public function setCityId($cityId) + { + $this->cityId = $cityId; + } + + public function setDistrictId($districtId) + { + $this->districtId = $districtId; + } + + public function setDepotCode($depotCode) + { + $this->depotCode = $depotCode; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setPageNum($pageNum) + { + $this->pageNum = $pageNum; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockDepotPriorityUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockDepotPriorityUpdateRequest.php index aa1297f..448c76a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockDepotPriorityUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockDepotPriorityUpdateRequest.php @@ -1,104 +1,104 @@ -, "priority_list") - */ - private $priorityList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "priority_list", $this->priorityList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.depot.priority.update"; - } - - public function setPriorityList($priorityList) - { - $this->priorityList = $priorityList; - } - -} - -class PddStockDepotPriorityUpdateRequest_PriorityListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "priority") - */ - private $priority; - - /** - * @JsonProperty(Integer, "district_id") - */ - private $districtId; - - /** - * @JsonProperty(Integer, "city_id") - */ - private $cityId; - - /** - * @JsonProperty(Integer, "province_id") - */ - private $provinceId; - - /** - * @JsonProperty(Long, "depot_id") - */ - private $depotId; - - public function setPriority($priority) - { - $this->priority = $priority; - } - - public function setDistrictId($districtId) - { - $this->districtId = $districtId; - } - - public function setCityId($cityId) - { - $this->cityId = $cityId; - } - - public function setProvinceId($provinceId) - { - $this->provinceId = $provinceId; - } - - public function setDepotId($depotId) - { - $this->depotId = $depotId; - } - -} +, "priority_list") + */ + private $priorityList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "priority_list", $this->priorityList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.depot.priority.update"; + } + + public function setPriorityList($priorityList) + { + $this->priorityList = $priorityList; + } + +} + +class PddStockDepotPriorityUpdateRequest_PriorityListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "priority") + */ + private $priority; + + /** + * @JsonProperty(Integer, "district_id") + */ + private $districtId; + + /** + * @JsonProperty(Integer, "city_id") + */ + private $cityId; + + /** + * @JsonProperty(Integer, "province_id") + */ + private $provinceId; + + /** + * @JsonProperty(Long, "depot_id") + */ + private $depotId; + + public function setPriority($priority) + { + $this->priority = $priority; + } + + public function setDistrictId($districtId) + { + $this->districtId = $districtId; + } + + public function setCityId($cityId) + { + $this->cityId = $cityId; + } + + public function setProvinceId($provinceId) + { + $this->provinceId = $provinceId; + } + + public function setDepotId($depotId) + { + $this->depotId = $depotId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockGoodsIdToSkuQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockGoodsIdToSkuQueryRequest.php index 349843b..bae0c4d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockGoodsIdToSkuQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockGoodsIdToSkuQueryRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "ware_id", $this->wareId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.goods.id.to.sku.query"; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setWareId($wareId) - { - $this->wareId = $wareId; - } - -} +setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "ware_id", $this->wareId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.goods.id.to.sku.query"; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setWareId($wareId) + { + $this->wareId = $wareId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareCreateRequest.php index 38e95ac..5963a99 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareCreateRequest.php @@ -1,250 +1,250 @@ -, "ware_infos") - */ - private $wareInfos; - - /** - * @JsonProperty(String, "ware_sn") - */ - private $wareSn; - - /** - * @JsonProperty(String, "ware_name") - */ - private $wareName; - - /** - * @JsonProperty(String, "note") - */ - private $note; - - /** - * @JsonProperty(Integer, "service_quality") - */ - private $serviceQuality; - - /** - * @JsonProperty(Integer, "volume") - */ - private $volume; - - /** - * @JsonProperty(Integer, "length") - */ - private $length; - - /** - * @JsonProperty(Integer, "width") - */ - private $width; - - /** - * @JsonProperty(Integer, "height") - */ - private $height; - - /** - * @JsonProperty(Integer, "weight") - */ - private $weight; - - /** - * @JsonProperty(Integer, "gross_weight") - */ - private $grossWeight; - - /** - * @JsonProperty(Integer, "net_weight") - */ - private $netWeight; - - /** - * @JsonProperty(Integer, "tare_weight") - */ - private $tareWeight; - - /** - * @JsonProperty(Integer, "price") - */ - private $price; - - /** - * @JsonProperty(String, "color") - */ - private $color; - - /** - * @JsonProperty(String, "packing") - */ - private $packing; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "ware_type", $this->wareType); - $this->setUserParam($params, "ware_infos", $this->wareInfos); - $this->setUserParam($params, "ware_sn", $this->wareSn); - $this->setUserParam($params, "ware_name", $this->wareName); - $this->setUserParam($params, "note", $this->note); - $this->setUserParam($params, "service_quality", $this->serviceQuality); - $this->setUserParam($params, "volume", $this->volume); - $this->setUserParam($params, "length", $this->length); - $this->setUserParam($params, "width", $this->width); - $this->setUserParam($params, "height", $this->height); - $this->setUserParam($params, "weight", $this->weight); - $this->setUserParam($params, "gross_weight", $this->grossWeight); - $this->setUserParam($params, "net_weight", $this->netWeight); - $this->setUserParam($params, "tare_weight", $this->tareWeight); - $this->setUserParam($params, "price", $this->price); - $this->setUserParam($params, "color", $this->color); - $this->setUserParam($params, "packing", $this->packing); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.ware.create"; - } - - public function setWareType($wareType) - { - $this->wareType = $wareType; - } - - public function setWareInfos($wareInfos) - { - $this->wareInfos = $wareInfos; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - - public function setWareName($wareName) - { - $this->wareName = $wareName; - } - - public function setNote($note) - { - $this->note = $note; - } - - public function setServiceQuality($serviceQuality) - { - $this->serviceQuality = $serviceQuality; - } - - public function setVolume($volume) - { - $this->volume = $volume; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setWidth($width) - { - $this->width = $width; - } - - public function setHeight($height) - { - $this->height = $height; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - - public function setGrossWeight($grossWeight) - { - $this->grossWeight = $grossWeight; - } - - public function setNetWeight($netWeight) - { - $this->netWeight = $netWeight; - } - - public function setTareWeight($tareWeight) - { - $this->tareWeight = $tareWeight; - } - - public function setPrice($price) - { - $this->price = $price; - } - - public function setColor($color) - { - $this->color = $color; - } - - public function setPacking($packing) - { - $this->packing = $packing; - } - -} - -class PddStockWareCreateRequest_WareInfosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "ware_quantity") - */ - private $wareQuantity; - - /** - * @JsonProperty(Long, "ware_id") - */ - private $wareId; - - public function setWareQuantity($wareQuantity) - { - $this->wareQuantity = $wareQuantity; - } - - public function setWareId($wareId) - { - $this->wareId = $wareId; - } - -} +, "ware_infos") + */ + private $wareInfos; + + /** + * @JsonProperty(String, "ware_sn") + */ + private $wareSn; + + /** + * @JsonProperty(String, "ware_name") + */ + private $wareName; + + /** + * @JsonProperty(String, "note") + */ + private $note; + + /** + * @JsonProperty(Integer, "service_quality") + */ + private $serviceQuality; + + /** + * @JsonProperty(Integer, "volume") + */ + private $volume; + + /** + * @JsonProperty(Integer, "length") + */ + private $length; + + /** + * @JsonProperty(Integer, "width") + */ + private $width; + + /** + * @JsonProperty(Integer, "height") + */ + private $height; + + /** + * @JsonProperty(Integer, "weight") + */ + private $weight; + + /** + * @JsonProperty(Integer, "gross_weight") + */ + private $grossWeight; + + /** + * @JsonProperty(Integer, "net_weight") + */ + private $netWeight; + + /** + * @JsonProperty(Integer, "tare_weight") + */ + private $tareWeight; + + /** + * @JsonProperty(Integer, "price") + */ + private $price; + + /** + * @JsonProperty(String, "color") + */ + private $color; + + /** + * @JsonProperty(String, "packing") + */ + private $packing; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "ware_type", $this->wareType); + $this->setUserParam($params, "ware_infos", $this->wareInfos); + $this->setUserParam($params, "ware_sn", $this->wareSn); + $this->setUserParam($params, "ware_name", $this->wareName); + $this->setUserParam($params, "note", $this->note); + $this->setUserParam($params, "service_quality", $this->serviceQuality); + $this->setUserParam($params, "volume", $this->volume); + $this->setUserParam($params, "length", $this->length); + $this->setUserParam($params, "width", $this->width); + $this->setUserParam($params, "height", $this->height); + $this->setUserParam($params, "weight", $this->weight); + $this->setUserParam($params, "gross_weight", $this->grossWeight); + $this->setUserParam($params, "net_weight", $this->netWeight); + $this->setUserParam($params, "tare_weight", $this->tareWeight); + $this->setUserParam($params, "price", $this->price); + $this->setUserParam($params, "color", $this->color); + $this->setUserParam($params, "packing", $this->packing); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.ware.create"; + } + + public function setWareType($wareType) + { + $this->wareType = $wareType; + } + + public function setWareInfos($wareInfos) + { + $this->wareInfos = $wareInfos; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + + public function setWareName($wareName) + { + $this->wareName = $wareName; + } + + public function setNote($note) + { + $this->note = $note; + } + + public function setServiceQuality($serviceQuality) + { + $this->serviceQuality = $serviceQuality; + } + + public function setVolume($volume) + { + $this->volume = $volume; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setWidth($width) + { + $this->width = $width; + } + + public function setHeight($height) + { + $this->height = $height; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + + public function setGrossWeight($grossWeight) + { + $this->grossWeight = $grossWeight; + } + + public function setNetWeight($netWeight) + { + $this->netWeight = $netWeight; + } + + public function setTareWeight($tareWeight) + { + $this->tareWeight = $tareWeight; + } + + public function setPrice($price) + { + $this->price = $price; + } + + public function setColor($color) + { + $this->color = $color; + } + + public function setPacking($packing) + { + $this->packing = $packing; + } + +} + +class PddStockWareCreateRequest_WareInfosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "ware_quantity") + */ + private $wareQuantity; + + /** + * @JsonProperty(Long, "ware_id") + */ + private $wareId; + + public function setWareQuantity($wareQuantity) + { + $this->wareQuantity = $wareQuantity; + } + + public function setWareId($wareId) + { + $this->wareId = $wareId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareDeleteRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareDeleteRequest.php index 6183cf9..3e98650 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareDeleteRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareDeleteRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "ware_id", $this->wareId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.ware.delete"; - } - - public function setWareId($wareId) - { - $this->wareId = $wareId; - } - -} +setUserParam($params, "ware_id", $this->wareId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.ware.delete"; + } + + public function setWareId($wareId) + { + $this->wareId = $wareId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareDetailQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareDetailQueryRequest.php index 2ae984a..e90bacf 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareDetailQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareDetailQueryRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "ware_id", $this->wareId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.ware.detail.query"; - } - - public function setWareId($wareId) - { - $this->wareId = $wareId; - } - -} +setUserParam($params, "ware_id", $this->wareId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.ware.detail.query"; + } + + public function setWareId($wareId) + { + $this->wareId = $wareId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareInfoListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareInfoListRequest.php index 167524e..d584927 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareInfoListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareInfoListRequest.php @@ -1,44 +1,44 @@ -, "ware_sn_list") - */ - private $wareSnList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "ware_sn_list", $this->wareSnList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.ware.info.list"; - } - - public function setWareSnList($wareSnList) - { - $this->wareSnList = $wareSnList; - } - -} +, "ware_sn_list") + */ + private $wareSnList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "ware_sn_list", $this->wareSnList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.ware.info.list"; + } + + public function setWareSnList($wareSnList) + { + $this->wareSnList = $wareSnList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareListRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareListRequest.php index 829d064..b5612f1 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareListRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareListRequest.php @@ -1,99 +1,99 @@ -setUserParam($params, "id", $this->id); - $this->setUserParam($params, "ware_sn", $this->wareSn); - $this->setUserParam($params, "ware_name", $this->wareName); - $this->setUserParam($params, "ware_type", $this->wareType); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "size", $this->size); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.ware.list"; - } - - public function setId($id) - { - $this->id = $id; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - - public function setWareName($wareName) - { - $this->wareName = $wareName; - } - - public function setWareType($wareType) - { - $this->wareType = $wareType; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setSize($size) - { - $this->size = $size; - } - -} +setUserParam($params, "id", $this->id); + $this->setUserParam($params, "ware_sn", $this->wareSn); + $this->setUserParam($params, "ware_name", $this->wareName); + $this->setUserParam($params, "ware_type", $this->wareType); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "size", $this->size); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.ware.list"; + } + + public function setId($id) + { + $this->id = $id; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + + public function setWareName($wareName) + { + $this->wareName = $wareName; + } + + public function setWareType($wareType) + { + $this->wareType = $wareType; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setSize($size) + { + $this->size = $size; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareMoveRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareMoveRequest.php index 043de81..bd917d9 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareMoveRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareMoveRequest.php @@ -1,165 +1,165 @@ -, "stock_move_record_action_dto_list") - */ - private $stockMoveRecordActionDtoList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "stock_move_order_action_dto", $this->stockMoveOrderActionDto); - $this->setUserParam($params, "stock_move_record_action_dto_list", $this->stockMoveRecordActionDtoList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.ware.move"; - } - - public function setStockMoveOrderActionDto($stockMoveOrderActionDto) - { - $this->stockMoveOrderActionDto = $stockMoveOrderActionDto; - } - - public function setStockMoveRecordActionDtoList($stockMoveRecordActionDtoList) - { - $this->stockMoveRecordActionDtoList = $stockMoveRecordActionDtoList; - } - -} - -class PddStockWareMoveRequest_StockMoveOrderActionDto extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "move_direction") - */ - private $moveDirection; - - /** - * @JsonProperty(String, "order_note") - */ - private $orderNote; - - /** - * @JsonProperty(Integer, "business_type") - */ - private $businessType; - - /** - * @JsonProperty(String, "warehouse_sn") - */ - private $warehouseSn; - - /** - * @JsonProperty(Long, "move_time") - */ - private $moveTime; - - /** - * @JsonProperty(String, "move_order_sn") - */ - private $moveOrderSn; - - public function setMoveDirection($moveDirection) - { - $this->moveDirection = $moveDirection; - } - - public function setOrderNote($orderNote) - { - $this->orderNote = $orderNote; - } - - public function setBusinessType($businessType) - { - $this->businessType = $businessType; - } - - public function setWarehouseSn($warehouseSn) - { - $this->warehouseSn = $warehouseSn; - } - - public function setMoveTime($moveTime) - { - $this->moveTime = $moveTime; - } - - public function setMoveOrderSn($moveOrderSn) - { - $this->moveOrderSn = $moveOrderSn; - } - -} - -class PddStockWareMoveRequest_StockMoveRecordActionDtoListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "note") - */ - private $note; - - /** - * @JsonProperty(Long, "move_num") - */ - private $moveNum; - - /** - * @JsonProperty(String, "ware_sn") - */ - private $wareSn; - - public function setNote($note) - { - $this->note = $note; - } - - public function setMoveNum($moveNum) - { - $this->moveNum = $moveNum; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - -} +, "stock_move_record_action_dto_list") + */ + private $stockMoveRecordActionDtoList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "stock_move_order_action_dto", $this->stockMoveOrderActionDto); + $this->setUserParam($params, "stock_move_record_action_dto_list", $this->stockMoveRecordActionDtoList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.ware.move"; + } + + public function setStockMoveOrderActionDto($stockMoveOrderActionDto) + { + $this->stockMoveOrderActionDto = $stockMoveOrderActionDto; + } + + public function setStockMoveRecordActionDtoList($stockMoveRecordActionDtoList) + { + $this->stockMoveRecordActionDtoList = $stockMoveRecordActionDtoList; + } + +} + +class PddStockWareMoveRequest_StockMoveOrderActionDto extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "move_direction") + */ + private $moveDirection; + + /** + * @JsonProperty(String, "order_note") + */ + private $orderNote; + + /** + * @JsonProperty(Integer, "business_type") + */ + private $businessType; + + /** + * @JsonProperty(String, "warehouse_sn") + */ + private $warehouseSn; + + /** + * @JsonProperty(Long, "move_time") + */ + private $moveTime; + + /** + * @JsonProperty(String, "move_order_sn") + */ + private $moveOrderSn; + + public function setMoveDirection($moveDirection) + { + $this->moveDirection = $moveDirection; + } + + public function setOrderNote($orderNote) + { + $this->orderNote = $orderNote; + } + + public function setBusinessType($businessType) + { + $this->businessType = $businessType; + } + + public function setWarehouseSn($warehouseSn) + { + $this->warehouseSn = $warehouseSn; + } + + public function setMoveTime($moveTime) + { + $this->moveTime = $moveTime; + } + + public function setMoveOrderSn($moveOrderSn) + { + $this->moveOrderSn = $moveOrderSn; + } + +} + +class PddStockWareMoveRequest_StockMoveRecordActionDtoListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "note") + */ + private $note; + + /** + * @JsonProperty(Long, "move_num") + */ + private $moveNum; + + /** + * @JsonProperty(String, "ware_sn") + */ + private $wareSn; + + public function setNote($note) + { + $this->note = $note; + } + + public function setMoveNum($moveNum) + { + $this->moveNum = $moveNum; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareSkuUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareSkuUpdateRequest.php index 6954161..02442e0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareSkuUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareSkuUpdateRequest.php @@ -1,85 +1,85 @@ -, "ware_skus") - */ - private $wareSkus; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "ware_id", $this->wareId); - $this->setUserParam($params, "ware_skus", $this->wareSkus); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.ware.sku.update"; - } - - public function setWareId($wareId) - { - $this->wareId = $wareId; - } - - public function setWareSkus($wareSkus) - { - $this->wareSkus = $wareSkus; - } - -} - -class PddStockWareSkuUpdateRequest_WareSkusItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "sku_id") - */ - private $skuId; - - /** - * @JsonProperty(Long, "goods_id") - */ - private $goodsId; - - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +, "ware_skus") + */ + private $wareSkus; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "ware_id", $this->wareId); + $this->setUserParam($params, "ware_skus", $this->wareSkus); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.ware.sku.update"; + } + + public function setWareId($wareId) + { + $this->wareId = $wareId; + } + + public function setWareSkus($wareSkus) + { + $this->wareSkus = $wareSkus; + } + +} + +class PddStockWareSkuUpdateRequest_WareSkusItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "sku_id") + */ + private $skuId; + + /** + * @JsonProperty(Long, "goods_id") + */ + private $goodsId; + + public function setSkuId($skuId) + { + $this->skuId = $skuId; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareUpdateRequest.php index e38e6e3..cc490d7 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareUpdateRequest.php @@ -1,261 +1,261 @@ -, "ware_infos") - */ - private $wareInfos; - - /** - * @JsonProperty(String, "ware_sn") - */ - private $wareSn; - - /** - * @JsonProperty(String, "ware_name") - */ - private $wareName; - - /** - * @JsonProperty(String, "note") - */ - private $note; - - /** - * @JsonProperty(Integer, "service_quality") - */ - private $serviceQuality; - - /** - * @JsonProperty(Integer, "volume") - */ - private $volume; - - /** - * @JsonProperty(Integer, "length") - */ - private $length; - - /** - * @JsonProperty(Integer, "width") - */ - private $width; - - /** - * @JsonProperty(Integer, "height") - */ - private $height; - - /** - * @JsonProperty(Integer, "weight") - */ - private $weight; - - /** - * @JsonProperty(Integer, "gross_weight") - */ - private $grossWeight; - - /** - * @JsonProperty(Integer, "net_weight") - */ - private $netWeight; - - /** - * @JsonProperty(Integer, "tare_weight") - */ - private $tareWeight; - - /** - * @JsonProperty(Integer, "price") - */ - private $price; - - /** - * @JsonProperty(String, "color") - */ - private $color; - - /** - * @JsonProperty(String, "packing") - */ - private $packing; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "id", $this->id); - $this->setUserParam($params, "ware_type", $this->wareType); - $this->setUserParam($params, "ware_infos", $this->wareInfos); - $this->setUserParam($params, "ware_sn", $this->wareSn); - $this->setUserParam($params, "ware_name", $this->wareName); - $this->setUserParam($params, "note", $this->note); - $this->setUserParam($params, "service_quality", $this->serviceQuality); - $this->setUserParam($params, "volume", $this->volume); - $this->setUserParam($params, "length", $this->length); - $this->setUserParam($params, "width", $this->width); - $this->setUserParam($params, "height", $this->height); - $this->setUserParam($params, "weight", $this->weight); - $this->setUserParam($params, "gross_weight", $this->grossWeight); - $this->setUserParam($params, "net_weight", $this->netWeight); - $this->setUserParam($params, "tare_weight", $this->tareWeight); - $this->setUserParam($params, "price", $this->price); - $this->setUserParam($params, "color", $this->color); - $this->setUserParam($params, "packing", $this->packing); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.ware.update"; - } - - public function setId($id) - { - $this->id = $id; - } - - public function setWareType($wareType) - { - $this->wareType = $wareType; - } - - public function setWareInfos($wareInfos) - { - $this->wareInfos = $wareInfos; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - - public function setWareName($wareName) - { - $this->wareName = $wareName; - } - - public function setNote($note) - { - $this->note = $note; - } - - public function setServiceQuality($serviceQuality) - { - $this->serviceQuality = $serviceQuality; - } - - public function setVolume($volume) - { - $this->volume = $volume; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setWidth($width) - { - $this->width = $width; - } - - public function setHeight($height) - { - $this->height = $height; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - - public function setGrossWeight($grossWeight) - { - $this->grossWeight = $grossWeight; - } - - public function setNetWeight($netWeight) - { - $this->netWeight = $netWeight; - } - - public function setTareWeight($tareWeight) - { - $this->tareWeight = $tareWeight; - } - - public function setPrice($price) - { - $this->price = $price; - } - - public function setColor($color) - { - $this->color = $color; - } - - public function setPacking($packing) - { - $this->packing = $packing; - } - -} - -class PddStockWareUpdateRequest_WareInfosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "ware_id") - */ - private $wareId; - - /** - * @JsonProperty(Integer, "ware_quantity") - */ - private $wareQuantity; - - public function setWareId($wareId) - { - $this->wareId = $wareId; - } - - public function setWareQuantity($wareQuantity) - { - $this->wareQuantity = $wareQuantity; - } - -} +, "ware_infos") + */ + private $wareInfos; + + /** + * @JsonProperty(String, "ware_sn") + */ + private $wareSn; + + /** + * @JsonProperty(String, "ware_name") + */ + private $wareName; + + /** + * @JsonProperty(String, "note") + */ + private $note; + + /** + * @JsonProperty(Integer, "service_quality") + */ + private $serviceQuality; + + /** + * @JsonProperty(Integer, "volume") + */ + private $volume; + + /** + * @JsonProperty(Integer, "length") + */ + private $length; + + /** + * @JsonProperty(Integer, "width") + */ + private $width; + + /** + * @JsonProperty(Integer, "height") + */ + private $height; + + /** + * @JsonProperty(Integer, "weight") + */ + private $weight; + + /** + * @JsonProperty(Integer, "gross_weight") + */ + private $grossWeight; + + /** + * @JsonProperty(Integer, "net_weight") + */ + private $netWeight; + + /** + * @JsonProperty(Integer, "tare_weight") + */ + private $tareWeight; + + /** + * @JsonProperty(Integer, "price") + */ + private $price; + + /** + * @JsonProperty(String, "color") + */ + private $color; + + /** + * @JsonProperty(String, "packing") + */ + private $packing; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "id", $this->id); + $this->setUserParam($params, "ware_type", $this->wareType); + $this->setUserParam($params, "ware_infos", $this->wareInfos); + $this->setUserParam($params, "ware_sn", $this->wareSn); + $this->setUserParam($params, "ware_name", $this->wareName); + $this->setUserParam($params, "note", $this->note); + $this->setUserParam($params, "service_quality", $this->serviceQuality); + $this->setUserParam($params, "volume", $this->volume); + $this->setUserParam($params, "length", $this->length); + $this->setUserParam($params, "width", $this->width); + $this->setUserParam($params, "height", $this->height); + $this->setUserParam($params, "weight", $this->weight); + $this->setUserParam($params, "gross_weight", $this->grossWeight); + $this->setUserParam($params, "net_weight", $this->netWeight); + $this->setUserParam($params, "tare_weight", $this->tareWeight); + $this->setUserParam($params, "price", $this->price); + $this->setUserParam($params, "color", $this->color); + $this->setUserParam($params, "packing", $this->packing); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.ware.update"; + } + + public function setId($id) + { + $this->id = $id; + } + + public function setWareType($wareType) + { + $this->wareType = $wareType; + } + + public function setWareInfos($wareInfos) + { + $this->wareInfos = $wareInfos; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + + public function setWareName($wareName) + { + $this->wareName = $wareName; + } + + public function setNote($note) + { + $this->note = $note; + } + + public function setServiceQuality($serviceQuality) + { + $this->serviceQuality = $serviceQuality; + } + + public function setVolume($volume) + { + $this->volume = $volume; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setWidth($width) + { + $this->width = $width; + } + + public function setHeight($height) + { + $this->height = $height; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + + public function setGrossWeight($grossWeight) + { + $this->grossWeight = $grossWeight; + } + + public function setNetWeight($netWeight) + { + $this->netWeight = $netWeight; + } + + public function setTareWeight($tareWeight) + { + $this->tareWeight = $tareWeight; + } + + public function setPrice($price) + { + $this->price = $price; + } + + public function setColor($color) + { + $this->color = $color; + } + + public function setPacking($packing) + { + $this->packing = $packing; + } + +} + +class PddStockWareUpdateRequest_WareInfosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "ware_id") + */ + private $wareId; + + /** + * @JsonProperty(Integer, "ware_quantity") + */ + private $wareQuantity; + + public function setWareId($wareId) + { + $this->wareId = $wareId; + } + + public function setWareQuantity($wareQuantity) + { + $this->wareQuantity = $wareQuantity; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareWarehouseQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareWarehouseQueryRequest.php index 7e5fc54..9eafb99 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddStockWareWarehouseQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddStockWareWarehouseQueryRequest.php @@ -1,84 +1,84 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.stock.ware.warehouse.query"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddStockWareWarehouseQueryRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "page") - */ - private $page; - - /** - * @JsonProperty(Integer, "page_size") - */ - private $pageSize; - - /** - * @JsonProperty(List, "ware_sn_list") - */ - private $wareSnList; - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setWareSnList($wareSnList) - { - $this->wareSnList = $wareSnList; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.stock.ware.warehouse.query"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddStockWareWarehouseQueryRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "page") + */ + private $page; + + /** + * @JsonProperty(Integer, "page_size") + */ + private $pageSize; + + /** + * @JsonProperty(List, "ware_sn_list") + */ + private $wareSnList; + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setWareSnList($wareSnList) + { + $this->wareSnList = $wareSnList; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketGoodsQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketGoodsQueryRequest.php index 2da03df..8e8e0ae 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTicketGoodsQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketGoodsQueryRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "goods_commit_id", $this->goodsCommitId); - $this->setUserParam($params, "goods_id", $this->goodsId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ticket.goods.query"; - } - - public function setGoodsCommitId($goodsCommitId) - { - $this->goodsCommitId = $goodsCommitId; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - -} +setUserParam($params, "goods_commit_id", $this->goodsCommitId); + $this->setUserParam($params, "goods_id", $this->goodsId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ticket.goods.query"; + } + + public function setGoodsCommitId($goodsCommitId) + { + $this->goodsCommitId = $goodsCommitId; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketGoodsUploadRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketGoodsUploadRequest.php index bbfc550..dbff70d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTicketGoodsUploadRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketGoodsUploadRequest.php @@ -1,480 +1,480 @@ -, "carousel_gallery") - */ - private $carouselGallery; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_CarouselVideoItem>, "carousel_video") - */ - private $carouselVideo; - - /** - * @JsonProperty(Long, "cat_id") - */ - private $catId; - - /** - * @JsonProperty(Integer, "code_mode") - */ - private $codeMode; - - /** - * @JsonProperty(List, "detail_gallery") - */ - private $detailGallery; - - /** - * @JsonProperty(Long, "goods_commit_id") - */ - private $goodsCommitId; - - /** - * @JsonProperty(String, "goods_desc") - */ - private $goodsDesc; - - /** - * @JsonProperty(Long, "goods_id") - */ - private $goodsId; - - /** - * @JsonProperty(String, "goods_name") - */ - private $goodsName; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_GoodsPropertiesItem>, "goods_properties") - */ - private $goodsProperties; - - /** - * @JsonProperty(Integer, "is_submit") - */ - private $isSubmit; - - /** - * @JsonProperty(Long, "market_price") - */ - private $marketPrice; - - /** - * @JsonProperty(String, "out_goods_sn") - */ - private $outGoodsSn; - - /** - * @JsonProperty(String, "reserve_limit_rule") - */ - private $reserveLimitRule; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_SkuListItem>, "sku_list") - */ - private $skuList; - - /** - * @JsonProperty(Integer, "sku_type") - */ - private $skuType; - - /** - * @JsonProperty(Integer, "sync_goods_operate") - */ - private $syncGoodsOperate; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "carousel_gallery", $this->carouselGallery); - $this->setUserParam($params, "carousel_video", $this->carouselVideo); - $this->setUserParam($params, "cat_id", $this->catId); - $this->setUserParam($params, "code_mode", $this->codeMode); - $this->setUserParam($params, "detail_gallery", $this->detailGallery); - $this->setUserParam($params, "goods_commit_id", $this->goodsCommitId); - $this->setUserParam($params, "goods_desc", $this->goodsDesc); - $this->setUserParam($params, "goods_id", $this->goodsId); - $this->setUserParam($params, "goods_name", $this->goodsName); - $this->setUserParam($params, "goods_properties", $this->goodsProperties); - $this->setUserParam($params, "is_submit", $this->isSubmit); - $this->setUserParam($params, "market_price", $this->marketPrice); - $this->setUserParam($params, "out_goods_sn", $this->outGoodsSn); - $this->setUserParam($params, "reserve_limit_rule", $this->reserveLimitRule); - $this->setUserParam($params, "sku_list", $this->skuList); - $this->setUserParam($params, "sku_type", $this->skuType); - $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ticket.goods.upload"; - } - - public function setCarouselGallery($carouselGallery) - { - $this->carouselGallery = $carouselGallery; - } - - public function setCarouselVideo($carouselVideo) - { - $this->carouselVideo = $carouselVideo; - } - - public function setCatId($catId) - { - $this->catId = $catId; - } - - public function setCodeMode($codeMode) - { - $this->codeMode = $codeMode; - } - - public function setDetailGallery($detailGallery) - { - $this->detailGallery = $detailGallery; - } - - public function setGoodsCommitId($goodsCommitId) - { - $this->goodsCommitId = $goodsCommitId; - } - - public function setGoodsDesc($goodsDesc) - { - $this->goodsDesc = $goodsDesc; - } - - public function setGoodsId($goodsId) - { - $this->goodsId = $goodsId; - } - - public function setGoodsName($goodsName) - { - $this->goodsName = $goodsName; - } - - public function setGoodsProperties($goodsProperties) - { - $this->goodsProperties = $goodsProperties; - } - - public function setIsSubmit($isSubmit) - { - $this->isSubmit = $isSubmit; - } - - public function setMarketPrice($marketPrice) - { - $this->marketPrice = $marketPrice; - } - - public function setOutGoodsSn($outGoodsSn) - { - $this->outGoodsSn = $outGoodsSn; - } - - public function setReserveLimitRule($reserveLimitRule) - { - $this->reserveLimitRule = $reserveLimitRule; - } - - public function setSkuList($skuList) - { - $this->skuList = $skuList; - } - - public function setSkuType($skuType) - { - $this->skuType = $skuType; - } - - public function setSyncGoodsOperate($syncGoodsOperate) - { - $this->syncGoodsOperate = $syncGoodsOperate; - } - -} - -class PddTicketGoodsUploadRequest_CarouselVideoItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "file_id") - */ - private $fileId; - - /** - * @JsonProperty(String, "video_url") - */ - private $videoUrl; - - public function setFileId($fileId) - { - $this->fileId = $fileId; - } - - public function setVideoUrl($videoUrl) - { - $this->videoUrl = $videoUrl; - } - -} - -class PddTicketGoodsUploadRequest_GoodsPropertiesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "parent_spec_id") - */ - private $parentSpecId; - - /** - * @JsonProperty(Long, "ref_pid") - */ - private $refPid; - - /** - * @JsonProperty(Long, "spec_id") - */ - private $specId; - - /** - * @JsonProperty(String, "value") - */ - private $value; - - /** - * @JsonProperty(String, "value_unit") - */ - private $valueUnit; - - /** - * @JsonProperty(Long, "vid") - */ - private $vid; - - public function setParentSpecId($parentSpecId) - { - $this->parentSpecId = $parentSpecId; - } - - public function setRefPid($refPid) - { - $this->refPid = $refPid; - } - - public function setSpecId($specId) - { - $this->specId = $specId; - } - - public function setValue($value) - { - $this->value = $value; - } - - public function setValueUnit($valueUnit) - { - $this->valueUnit = $valueUnit; - } - - public function setVid($vid) - { - $this->vid = $vid; - } - -} - -class PddTicketGoodsUploadRequest_SkuListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_SkuListItemChildSkusItem>, "child_skus") - */ - private $childSkus; - - /** - * @JsonProperty(Long, "group_price") - */ - private $groupPrice; - - /** - * @JsonProperty(Integer, "is_onsale") - */ - private $isOnsale; - - /** - * @JsonProperty(String, "out_sku_sn") - */ - private $outSkuSn; - - /** - * @JsonProperty(Long, "quantity_delta") - */ - private $quantityDelta; - - /** - * @JsonProperty(String, "rule_id") - */ - private $ruleId; - - /** - * @JsonProperty(Long, "single_price") - */ - private $singlePrice; - - /** - * @JsonProperty(Long, "sku_id") - */ - private $skuId; - - /** - * @JsonProperty(List, "spec_id_list") - */ - private $specIdList; - - /** - * @JsonProperty(String, "thumb_url") - */ - private $thumbUrl; - - public function setChildSkus($childSkus) - { - $this->childSkus = $childSkus; - } - - public function setGroupPrice($groupPrice) - { - $this->groupPrice = $groupPrice; - } - - public function setIsOnsale($isOnsale) - { - $this->isOnsale = $isOnsale; - } - - public function setOutSkuSn($outSkuSn) - { - $this->outSkuSn = $outSkuSn; - } - - public function setQuantityDelta($quantityDelta) - { - $this->quantityDelta = $quantityDelta; - } - - public function setRuleId($ruleId) - { - $this->ruleId = $ruleId; - } - - public function setSinglePrice($singlePrice) - { - $this->singlePrice = $singlePrice; - } - - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } - - public function setSpecIdList($specIdList) - { - $this->specIdList = $specIdList; - } - - public function setThumbUrl($thumbUrl) - { - $this->thumbUrl = $thumbUrl; - } - -} - -class PddTicketGoodsUploadRequest_SkuListItemChildSkusItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "date") - */ - private $date; - - /** - * @JsonProperty(Long, "group_price") - */ - private $groupPrice; - - /** - * @JsonProperty(Long, "quantity_delta") - */ - private $quantityDelta; - - /** - * @JsonProperty(Long, "single_price") - */ - private $singlePrice; - - public function setDate($date) - { - $this->date = $date; - } - - public function setGroupPrice($groupPrice) - { - $this->groupPrice = $groupPrice; - } - - public function setQuantityDelta($quantityDelta) - { - $this->quantityDelta = $quantityDelta; - } - - public function setSinglePrice($singlePrice) - { - $this->singlePrice = $singlePrice; - } - -} +, "carousel_gallery") + */ + private $carouselGallery; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_CarouselVideoItem>, "carousel_video") + */ + private $carouselVideo; + + /** + * @JsonProperty(Long, "cat_id") + */ + private $catId; + + /** + * @JsonProperty(Integer, "code_mode") + */ + private $codeMode; + + /** + * @JsonProperty(List, "detail_gallery") + */ + private $detailGallery; + + /** + * @JsonProperty(Long, "goods_commit_id") + */ + private $goodsCommitId; + + /** + * @JsonProperty(String, "goods_desc") + */ + private $goodsDesc; + + /** + * @JsonProperty(Long, "goods_id") + */ + private $goodsId; + + /** + * @JsonProperty(String, "goods_name") + */ + private $goodsName; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_GoodsPropertiesItem>, "goods_properties") + */ + private $goodsProperties; + + /** + * @JsonProperty(Integer, "is_submit") + */ + private $isSubmit; + + /** + * @JsonProperty(Long, "market_price") + */ + private $marketPrice; + + /** + * @JsonProperty(String, "out_goods_sn") + */ + private $outGoodsSn; + + /** + * @JsonProperty(String, "reserve_limit_rule") + */ + private $reserveLimitRule; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_SkuListItem>, "sku_list") + */ + private $skuList; + + /** + * @JsonProperty(Integer, "sku_type") + */ + private $skuType; + + /** + * @JsonProperty(Integer, "sync_goods_operate") + */ + private $syncGoodsOperate; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "carousel_gallery", $this->carouselGallery); + $this->setUserParam($params, "carousel_video", $this->carouselVideo); + $this->setUserParam($params, "cat_id", $this->catId); + $this->setUserParam($params, "code_mode", $this->codeMode); + $this->setUserParam($params, "detail_gallery", $this->detailGallery); + $this->setUserParam($params, "goods_commit_id", $this->goodsCommitId); + $this->setUserParam($params, "goods_desc", $this->goodsDesc); + $this->setUserParam($params, "goods_id", $this->goodsId); + $this->setUserParam($params, "goods_name", $this->goodsName); + $this->setUserParam($params, "goods_properties", $this->goodsProperties); + $this->setUserParam($params, "is_submit", $this->isSubmit); + $this->setUserParam($params, "market_price", $this->marketPrice); + $this->setUserParam($params, "out_goods_sn", $this->outGoodsSn); + $this->setUserParam($params, "reserve_limit_rule", $this->reserveLimitRule); + $this->setUserParam($params, "sku_list", $this->skuList); + $this->setUserParam($params, "sku_type", $this->skuType); + $this->setUserParam($params, "sync_goods_operate", $this->syncGoodsOperate); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ticket.goods.upload"; + } + + public function setCarouselGallery($carouselGallery) + { + $this->carouselGallery = $carouselGallery; + } + + public function setCarouselVideo($carouselVideo) + { + $this->carouselVideo = $carouselVideo; + } + + public function setCatId($catId) + { + $this->catId = $catId; + } + + public function setCodeMode($codeMode) + { + $this->codeMode = $codeMode; + } + + public function setDetailGallery($detailGallery) + { + $this->detailGallery = $detailGallery; + } + + public function setGoodsCommitId($goodsCommitId) + { + $this->goodsCommitId = $goodsCommitId; + } + + public function setGoodsDesc($goodsDesc) + { + $this->goodsDesc = $goodsDesc; + } + + public function setGoodsId($goodsId) + { + $this->goodsId = $goodsId; + } + + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + } + + public function setGoodsProperties($goodsProperties) + { + $this->goodsProperties = $goodsProperties; + } + + public function setIsSubmit($isSubmit) + { + $this->isSubmit = $isSubmit; + } + + public function setMarketPrice($marketPrice) + { + $this->marketPrice = $marketPrice; + } + + public function setOutGoodsSn($outGoodsSn) + { + $this->outGoodsSn = $outGoodsSn; + } + + public function setReserveLimitRule($reserveLimitRule) + { + $this->reserveLimitRule = $reserveLimitRule; + } + + public function setSkuList($skuList) + { + $this->skuList = $skuList; + } + + public function setSkuType($skuType) + { + $this->skuType = $skuType; + } + + public function setSyncGoodsOperate($syncGoodsOperate) + { + $this->syncGoodsOperate = $syncGoodsOperate; + } + +} + +class PddTicketGoodsUploadRequest_CarouselVideoItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "file_id") + */ + private $fileId; + + /** + * @JsonProperty(String, "video_url") + */ + private $videoUrl; + + public function setFileId($fileId) + { + $this->fileId = $fileId; + } + + public function setVideoUrl($videoUrl) + { + $this->videoUrl = $videoUrl; + } + +} + +class PddTicketGoodsUploadRequest_GoodsPropertiesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "parent_spec_id") + */ + private $parentSpecId; + + /** + * @JsonProperty(Long, "ref_pid") + */ + private $refPid; + + /** + * @JsonProperty(Long, "spec_id") + */ + private $specId; + + /** + * @JsonProperty(String, "value") + */ + private $value; + + /** + * @JsonProperty(String, "value_unit") + */ + private $valueUnit; + + /** + * @JsonProperty(Long, "vid") + */ + private $vid; + + public function setParentSpecId($parentSpecId) + { + $this->parentSpecId = $parentSpecId; + } + + public function setRefPid($refPid) + { + $this->refPid = $refPid; + } + + public function setSpecId($specId) + { + $this->specId = $specId; + } + + public function setValue($value) + { + $this->value = $value; + } + + public function setValueUnit($valueUnit) + { + $this->valueUnit = $valueUnit; + } + + public function setVid($vid) + { + $this->vid = $vid; + } + +} + +class PddTicketGoodsUploadRequest_SkuListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketGoodsUploadRequest_SkuListItemChildSkusItem>, "child_skus") + */ + private $childSkus; + + /** + * @JsonProperty(Long, "group_price") + */ + private $groupPrice; + + /** + * @JsonProperty(Integer, "is_onsale") + */ + private $isOnsale; + + /** + * @JsonProperty(String, "out_sku_sn") + */ + private $outSkuSn; + + /** + * @JsonProperty(Long, "quantity_delta") + */ + private $quantityDelta; + + /** + * @JsonProperty(String, "rule_id") + */ + private $ruleId; + + /** + * @JsonProperty(Long, "single_price") + */ + private $singlePrice; + + /** + * @JsonProperty(Long, "sku_id") + */ + private $skuId; + + /** + * @JsonProperty(List, "spec_id_list") + */ + private $specIdList; + + /** + * @JsonProperty(String, "thumb_url") + */ + private $thumbUrl; + + public function setChildSkus($childSkus) + { + $this->childSkus = $childSkus; + } + + public function setGroupPrice($groupPrice) + { + $this->groupPrice = $groupPrice; + } + + public function setIsOnsale($isOnsale) + { + $this->isOnsale = $isOnsale; + } + + public function setOutSkuSn($outSkuSn) + { + $this->outSkuSn = $outSkuSn; + } + + public function setQuantityDelta($quantityDelta) + { + $this->quantityDelta = $quantityDelta; + } + + public function setRuleId($ruleId) + { + $this->ruleId = $ruleId; + } + + public function setSinglePrice($singlePrice) + { + $this->singlePrice = $singlePrice; + } + + public function setSkuId($skuId) + { + $this->skuId = $skuId; + } + + public function setSpecIdList($specIdList) + { + $this->specIdList = $specIdList; + } + + public function setThumbUrl($thumbUrl) + { + $this->thumbUrl = $thumbUrl; + } + +} + +class PddTicketGoodsUploadRequest_SkuListItemChildSkusItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "date") + */ + private $date; + + /** + * @JsonProperty(Long, "group_price") + */ + private $groupPrice; + + /** + * @JsonProperty(Long, "quantity_delta") + */ + private $quantityDelta; + + /** + * @JsonProperty(Long, "single_price") + */ + private $singlePrice; + + public function setDate($date) + { + $this->date = $date; + } + + public function setGroupPrice($groupPrice) + { + $this->groupPrice = $groupPrice; + } + + public function setQuantityDelta($quantityDelta) + { + $this->quantityDelta = $quantityDelta; + } + + public function setSinglePrice($singlePrice) + { + $this->singlePrice = $singlePrice; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketOrderCreateNotifycationRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketOrderCreateNotifycationRequest.php index 05b962a..87933d7 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTicketOrderCreateNotifycationRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketOrderCreateNotifycationRequest.php @@ -1,171 +1,171 @@ -, "tickets") - */ - private $tickets; - - /** - * @JsonProperty(Integer, "ticket_type") - */ - private $ticketType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "code_type", $this->codeType); - $this->setUserParam($params, "failed_code", $this->failedCode); - $this->setUserParam($params, "failed_reason", $this->failedReason); - $this->setUserParam($params, "order_no", $this->orderNo); - $this->setUserParam($params, "out_order_sn", $this->outOrderSn); - $this->setUserParam($params, "status", $this->status); - $this->setUserParam($params, "tickets", $this->tickets); - $this->setUserParam($params, "ticket_type", $this->ticketType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ticket.order.create.notifycation"; - } - - public function setCodeType($codeType) - { - $this->codeType = $codeType; - } - - public function setFailedCode($failedCode) - { - $this->failedCode = $failedCode; - } - - public function setFailedReason($failedReason) - { - $this->failedReason = $failedReason; - } - - public function setOrderNo($orderNo) - { - $this->orderNo = $orderNo; - } - - public function setOutOrderSn($outOrderSn) - { - $this->outOrderSn = $outOrderSn; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function setTickets($tickets) - { - $this->tickets = $tickets; - } - - public function setTicketType($ticketType) - { - $this->ticketType = $ticketType; - } - -} - -class PddTicketOrderCreateNotifycationRequest_TicketsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "additional") - */ - private $additional; - - /** - * @JsonProperty(String, "code") - */ - private $code; - - /** - * @JsonProperty(String, "file") - */ - private $file; - - /** - * @JsonProperty(String, "url") - */ - private $url; - - public function setAdditional($additional) - { - $this->additional = $additional; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setFile($file) - { - $this->file = $file; - } - - public function setUrl($url) - { - $this->url = $url; - } - -} +, "tickets") + */ + private $tickets; + + /** + * @JsonProperty(Integer, "ticket_type") + */ + private $ticketType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "code_type", $this->codeType); + $this->setUserParam($params, "failed_code", $this->failedCode); + $this->setUserParam($params, "failed_reason", $this->failedReason); + $this->setUserParam($params, "order_no", $this->orderNo); + $this->setUserParam($params, "out_order_sn", $this->outOrderSn); + $this->setUserParam($params, "status", $this->status); + $this->setUserParam($params, "tickets", $this->tickets); + $this->setUserParam($params, "ticket_type", $this->ticketType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ticket.order.create.notifycation"; + } + + public function setCodeType($codeType) + { + $this->codeType = $codeType; + } + + public function setFailedCode($failedCode) + { + $this->failedCode = $failedCode; + } + + public function setFailedReason($failedReason) + { + $this->failedReason = $failedReason; + } + + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + } + + public function setOutOrderSn($outOrderSn) + { + $this->outOrderSn = $outOrderSn; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function setTickets($tickets) + { + $this->tickets = $tickets; + } + + public function setTicketType($ticketType) + { + $this->ticketType = $ticketType; + } + +} + +class PddTicketOrderCreateNotifycationRequest_TicketsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "additional") + */ + private $additional; + + /** + * @JsonProperty(String, "code") + */ + private $code; + + /** + * @JsonProperty(String, "file") + */ + private $file; + + /** + * @JsonProperty(String, "url") + */ + private $url; + + public function setAdditional($additional) + { + $this->additional = $additional; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setFile($file) + { + $this->file = $file; + } + + public function setUrl($url) + { + $this->url = $url; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketOrderRefundNotifycationRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketOrderRefundNotifycationRequest.php index b0c4f17..c5045f1 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTicketOrderRefundNotifycationRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketOrderRefundNotifycationRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "order_no", $this->orderNo); - $this->setUserParam($params, "refund_amount", $this->refundAmount); - $this->setUserParam($params, "reject_reason", $this->rejectReason); - $this->setUserParam($params, "serial_no", $this->serialNo); - $this->setUserParam($params, "status", $this->status); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ticket.order.refund.notifycation"; - } - - public function setOrderNo($orderNo) - { - $this->orderNo = $orderNo; - } - - public function setRefundAmount($refundAmount) - { - $this->refundAmount = $refundAmount; - } - - public function setRejectReason($rejectReason) - { - $this->rejectReason = $rejectReason; - } - - public function setSerialNo($serialNo) - { - $this->serialNo = $serialNo; - } - - public function setStatus($status) - { - $this->status = $status; - } - -} +setUserParam($params, "order_no", $this->orderNo); + $this->setUserParam($params, "refund_amount", $this->refundAmount); + $this->setUserParam($params, "reject_reason", $this->rejectReason); + $this->setUserParam($params, "serial_no", $this->serialNo); + $this->setUserParam($params, "status", $this->status); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ticket.order.refund.notifycation"; + } + + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + } + + public function setRefundAmount($refundAmount) + { + $this->refundAmount = $refundAmount; + } + + public function setRejectReason($rejectReason) + { + $this->rejectReason = $rejectReason; + } + + public function setSerialNo($serialNo) + { + $this->serialNo = $serialNo; + } + + public function setStatus($status) + { + $this->status = $status; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleAddRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleAddRequest.php index 7b1a321..1305a71 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleAddRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleAddRequest.php @@ -1,652 +1,652 @@ -setUserParam($params, "booker_info_limitation", $this->bookerInfoLimitation); - $this->setUserParam($params, "booking_notice", $this->bookingNotice); - $this->setUserParam($params, "order_limitation", $this->orderLimitation); - $this->setUserParam($params, "out_rule_id", $this->outRuleId); - $this->setUserParam($params, "provider_contact_info", $this->providerContactInfo); - $this->setUserParam($params, "refund_limitations", $this->refundLimitations); - $this->setUserParam($params, "rule_name", $this->ruleName); - $this->setUserParam($params, "traveler_info_limitation", $this->travelerInfoLimitation); - $this->setUserParam($params, "valid_limitation", $this->validLimitation); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ticket.sku.rule.add"; - } - - public function setBookerInfoLimitation($bookerInfoLimitation) - { - $this->bookerInfoLimitation = $bookerInfoLimitation; - } - - public function setBookingNotice($bookingNotice) - { - $this->bookingNotice = $bookingNotice; - } - - public function setOrderLimitation($orderLimitation) - { - $this->orderLimitation = $orderLimitation; - } - - public function setOutRuleId($outRuleId) - { - $this->outRuleId = $outRuleId; - } - - public function setProviderContactInfo($providerContactInfo) - { - $this->providerContactInfo = $providerContactInfo; - } - - public function setRefundLimitations($refundLimitations) - { - $this->refundLimitations = $refundLimitations; - } - - public function setRuleName($ruleName) - { - $this->ruleName = $ruleName; - } - - public function setTravelerInfoLimitation($travelerInfoLimitation) - { - $this->travelerInfoLimitation = $travelerInfoLimitation; - } - - public function setValidLimitation($validLimitation) - { - $this->validLimitation = $validLimitation; - } - -} - -class PddTicketSkuRuleAddRequest_BookerInfoLimitation extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "booker_required") - */ - private $bookerRequired; - - /** - * @JsonProperty(Integer, "mobile") - */ - private $mobile; - - public function setBookerRequired($bookerRequired) - { - $this->bookerRequired = $bookerRequired; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - -} - -class PddTicketSkuRuleAddRequest_BookingNotice extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "enter_address") - */ - private $enterAddress; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNoticeEnterTimeItem>, "enter_time") - */ - private $enterTime; - - /** - * @JsonProperty(String, "enter_ways") - */ - private $enterWays; - - /** - * @JsonProperty(String, "extra_desc") - */ - private $extraDesc; - - /** - * @JsonProperty(String, "fee_include") - */ - private $feeInclude; - - /** - * @JsonProperty(String, "fee_not_include") - */ - private $feeNotInclude; - - /** - * @JsonProperty(String, "important_notice") - */ - private $importantNotice; - - /** - * @JsonProperty(Integer, "pass_time_limit") - */ - private $passTimeLimit; - - /** - * @JsonProperty(String, "ticket_place") - */ - private $ticketPlace; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNoticeTicketTimeItem>, "ticket_time") - */ - private $ticketTime; - - public function setEnterAddress($enterAddress) - { - $this->enterAddress = $enterAddress; - } - - public function setEnterTime($enterTime) - { - $this->enterTime = $enterTime; - } - - public function setEnterWays($enterWays) - { - $this->enterWays = $enterWays; - } - - public function setExtraDesc($extraDesc) - { - $this->extraDesc = $extraDesc; - } - - public function setFeeInclude($feeInclude) - { - $this->feeInclude = $feeInclude; - } - - public function setFeeNotInclude($feeNotInclude) - { - $this->feeNotInclude = $feeNotInclude; - } - - public function setImportantNotice($importantNotice) - { - $this->importantNotice = $importantNotice; - } - - public function setPassTimeLimit($passTimeLimit) - { - $this->passTimeLimit = $passTimeLimit; - } - - public function setTicketPlace($ticketPlace) - { - $this->ticketPlace = $ticketPlace; - } - - public function setTicketTime($ticketTime) - { - $this->ticketTime = $ticketTime; - } - -} - -class PddTicketSkuRuleAddRequest_BookingNoticeEnterTimeItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "comment") - */ - private $comment; - - /** - * @JsonProperty(String, "end_at") - */ - private $endAt; - - /** - * @JsonProperty(String, "start_at") - */ - private $startAt; - - public function setComment($comment) - { - $this->comment = $comment; - } - - public function setEndAt($endAt) - { - $this->endAt = $endAt; - } - - public function setStartAt($startAt) - { - $this->startAt = $startAt; - } - -} - -class PddTicketSkuRuleAddRequest_BookingNoticeTicketTimeItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "comment") - */ - private $comment; - - /** - * @JsonProperty(String, "end_at") - */ - private $endAt; - - /** - * @JsonProperty(String, "start_at") - */ - private $startAt; - - public function setComment($comment) - { - $this->comment = $comment; - } - - public function setEndAt($endAt) - { - $this->endAt = $endAt; - } - - public function setStartAt($startAt) - { - $this->startAt = $startAt; - } - -} - -class PddTicketSkuRuleAddRequest_OrderLimitation extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "cycle_length") - */ - private $cycleLength; - - /** - * @JsonProperty(Integer, "limitation_type") - */ - private $limitationType; - - /** - * @JsonProperty(Integer, "limit_cycle") - */ - private $limitCycle; - - /** - * @JsonProperty(Integer, "limit_num") - */ - private $limitNum; - - public function setCycleLength($cycleLength) - { - $this->cycleLength = $cycleLength; - } - - public function setLimitationType($limitationType) - { - $this->limitationType = $limitationType; - } - - public function setLimitCycle($limitCycle) - { - $this->limitCycle = $limitCycle; - } - - public function setLimitNum($limitNum) - { - $this->limitNum = $limitNum; - } - -} - -class PddTicketSkuRuleAddRequest_ProviderContactInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ProviderContactInfoProviderBusinessHourItem>, "provider_business_hour") - */ - private $providerBusinessHour; - - /** - * @JsonProperty(String, "provider_name") - */ - private $providerName; - - /** - * @JsonProperty(String, "provider_telephone") - */ - private $providerTelephone; - - public function setProviderBusinessHour($providerBusinessHour) - { - $this->providerBusinessHour = $providerBusinessHour; - } - - public function setProviderName($providerName) - { - $this->providerName = $providerName; - } - - public function setProviderTelephone($providerTelephone) - { - $this->providerTelephone = $providerTelephone; - } - -} - -class PddTicketSkuRuleAddRequest_ProviderContactInfoProviderBusinessHourItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "close_at") - */ - private $closeAt; - - /** - * @JsonProperty(String, "open_at") - */ - private $openAt; - - /** - * @JsonProperty(String, "time_info") - */ - private $timeInfo; - - public function setCloseAt($closeAt) - { - $this->closeAt = $closeAt; - } - - public function setOpenAt($openAt) - { - $this->openAt = $openAt; - } - - public function setTimeInfo($timeInfo) - { - $this->timeInfo = $timeInfo; - } - -} - -class PddTicketSkuRuleAddRequest_RefundLimitations extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "is_refundable") - */ - private $isRefundable; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_RefundLimitationsRefundRulesItem>, "refund_rules") - */ - private $refundRules; - - public function setIsRefundable($isRefundable) - { - $this->isRefundable = $isRefundable; - } - - public function setRefundRules($refundRules) - { - $this->refundRules = $refundRules; - } - -} - -class PddTicketSkuRuleAddRequest_RefundLimitationsRefundRulesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "ahead_time") - */ - private $aheadTime; - - /** - * @JsonProperty(Integer, "deduction_fee") - */ - private $deductionFee; - - /** - * @JsonProperty(Integer, "deduction_unit") - */ - private $deductionUnit; - - /** - * @JsonProperty(Integer, "type") - */ - private $type; - - public function setAheadTime($aheadTime) - { - $this->aheadTime = $aheadTime; - } - - public function setDeductionFee($deductionFee) - { - $this->deductionFee = $deductionFee; - } - - public function setDeductionUnit($deductionUnit) - { - $this->deductionUnit = $deductionUnit; - } - - public function setType($type) - { - $this->type = $type; - } - -} - -class PddTicketSkuRuleAddRequest_TravelerInfoLimitation extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "credential") - */ - private $credential; - - /** - * @JsonProperty(Integer, "name") - */ - private $name; - - /** - * @JsonProperty(Integer, "traveler_required") - */ - private $travelerRequired; - - public function setCredential($credential) - { - $this->credential = $credential; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setTravelerRequired($travelerRequired) - { - $this->travelerRequired = $travelerRequired; - } - -} - -class PddTicketSkuRuleAddRequest_ValidLimitation extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "days_time") - */ - private $daysTime; - - /** - * @JsonProperty(Long, "end_time") - */ - private $endTime; - - /** - * @JsonProperty(Long, "start_time") - */ - private $startTime; - - /** - * @JsonProperty(Integer, "time_type") - */ - private $timeType; - - public function setDaysTime($daysTime) - { - $this->daysTime = $daysTime; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - - public function setTimeType($timeType) - { - $this->timeType = $timeType; - } - -} +setUserParam($params, "booker_info_limitation", $this->bookerInfoLimitation); + $this->setUserParam($params, "booking_notice", $this->bookingNotice); + $this->setUserParam($params, "order_limitation", $this->orderLimitation); + $this->setUserParam($params, "out_rule_id", $this->outRuleId); + $this->setUserParam($params, "provider_contact_info", $this->providerContactInfo); + $this->setUserParam($params, "refund_limitations", $this->refundLimitations); + $this->setUserParam($params, "rule_name", $this->ruleName); + $this->setUserParam($params, "traveler_info_limitation", $this->travelerInfoLimitation); + $this->setUserParam($params, "valid_limitation", $this->validLimitation); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ticket.sku.rule.add"; + } + + public function setBookerInfoLimitation($bookerInfoLimitation) + { + $this->bookerInfoLimitation = $bookerInfoLimitation; + } + + public function setBookingNotice($bookingNotice) + { + $this->bookingNotice = $bookingNotice; + } + + public function setOrderLimitation($orderLimitation) + { + $this->orderLimitation = $orderLimitation; + } + + public function setOutRuleId($outRuleId) + { + $this->outRuleId = $outRuleId; + } + + public function setProviderContactInfo($providerContactInfo) + { + $this->providerContactInfo = $providerContactInfo; + } + + public function setRefundLimitations($refundLimitations) + { + $this->refundLimitations = $refundLimitations; + } + + public function setRuleName($ruleName) + { + $this->ruleName = $ruleName; + } + + public function setTravelerInfoLimitation($travelerInfoLimitation) + { + $this->travelerInfoLimitation = $travelerInfoLimitation; + } + + public function setValidLimitation($validLimitation) + { + $this->validLimitation = $validLimitation; + } + +} + +class PddTicketSkuRuleAddRequest_BookerInfoLimitation extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "booker_required") + */ + private $bookerRequired; + + /** + * @JsonProperty(Integer, "mobile") + */ + private $mobile; + + public function setBookerRequired($bookerRequired) + { + $this->bookerRequired = $bookerRequired; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + +} + +class PddTicketSkuRuleAddRequest_BookingNotice extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "enter_address") + */ + private $enterAddress; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNoticeEnterTimeItem>, "enter_time") + */ + private $enterTime; + + /** + * @JsonProperty(String, "enter_ways") + */ + private $enterWays; + + /** + * @JsonProperty(String, "extra_desc") + */ + private $extraDesc; + + /** + * @JsonProperty(String, "fee_include") + */ + private $feeInclude; + + /** + * @JsonProperty(String, "fee_not_include") + */ + private $feeNotInclude; + + /** + * @JsonProperty(String, "important_notice") + */ + private $importantNotice; + + /** + * @JsonProperty(Integer, "pass_time_limit") + */ + private $passTimeLimit; + + /** + * @JsonProperty(String, "ticket_place") + */ + private $ticketPlace; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNoticeTicketTimeItem>, "ticket_time") + */ + private $ticketTime; + + public function setEnterAddress($enterAddress) + { + $this->enterAddress = $enterAddress; + } + + public function setEnterTime($enterTime) + { + $this->enterTime = $enterTime; + } + + public function setEnterWays($enterWays) + { + $this->enterWays = $enterWays; + } + + public function setExtraDesc($extraDesc) + { + $this->extraDesc = $extraDesc; + } + + public function setFeeInclude($feeInclude) + { + $this->feeInclude = $feeInclude; + } + + public function setFeeNotInclude($feeNotInclude) + { + $this->feeNotInclude = $feeNotInclude; + } + + public function setImportantNotice($importantNotice) + { + $this->importantNotice = $importantNotice; + } + + public function setPassTimeLimit($passTimeLimit) + { + $this->passTimeLimit = $passTimeLimit; + } + + public function setTicketPlace($ticketPlace) + { + $this->ticketPlace = $ticketPlace; + } + + public function setTicketTime($ticketTime) + { + $this->ticketTime = $ticketTime; + } + +} + +class PddTicketSkuRuleAddRequest_BookingNoticeEnterTimeItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "comment") + */ + private $comment; + + /** + * @JsonProperty(String, "end_at") + */ + private $endAt; + + /** + * @JsonProperty(String, "start_at") + */ + private $startAt; + + public function setComment($comment) + { + $this->comment = $comment; + } + + public function setEndAt($endAt) + { + $this->endAt = $endAt; + } + + public function setStartAt($startAt) + { + $this->startAt = $startAt; + } + +} + +class PddTicketSkuRuleAddRequest_BookingNoticeTicketTimeItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "comment") + */ + private $comment; + + /** + * @JsonProperty(String, "end_at") + */ + private $endAt; + + /** + * @JsonProperty(String, "start_at") + */ + private $startAt; + + public function setComment($comment) + { + $this->comment = $comment; + } + + public function setEndAt($endAt) + { + $this->endAt = $endAt; + } + + public function setStartAt($startAt) + { + $this->startAt = $startAt; + } + +} + +class PddTicketSkuRuleAddRequest_OrderLimitation extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "cycle_length") + */ + private $cycleLength; + + /** + * @JsonProperty(Integer, "limitation_type") + */ + private $limitationType; + + /** + * @JsonProperty(Integer, "limit_cycle") + */ + private $limitCycle; + + /** + * @JsonProperty(Integer, "limit_num") + */ + private $limitNum; + + public function setCycleLength($cycleLength) + { + $this->cycleLength = $cycleLength; + } + + public function setLimitationType($limitationType) + { + $this->limitationType = $limitationType; + } + + public function setLimitCycle($limitCycle) + { + $this->limitCycle = $limitCycle; + } + + public function setLimitNum($limitNum) + { + $this->limitNum = $limitNum; + } + +} + +class PddTicketSkuRuleAddRequest_ProviderContactInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ProviderContactInfoProviderBusinessHourItem>, "provider_business_hour") + */ + private $providerBusinessHour; + + /** + * @JsonProperty(String, "provider_name") + */ + private $providerName; + + /** + * @JsonProperty(String, "provider_telephone") + */ + private $providerTelephone; + + public function setProviderBusinessHour($providerBusinessHour) + { + $this->providerBusinessHour = $providerBusinessHour; + } + + public function setProviderName($providerName) + { + $this->providerName = $providerName; + } + + public function setProviderTelephone($providerTelephone) + { + $this->providerTelephone = $providerTelephone; + } + +} + +class PddTicketSkuRuleAddRequest_ProviderContactInfoProviderBusinessHourItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "close_at") + */ + private $closeAt; + + /** + * @JsonProperty(String, "open_at") + */ + private $openAt; + + /** + * @JsonProperty(String, "time_info") + */ + private $timeInfo; + + public function setCloseAt($closeAt) + { + $this->closeAt = $closeAt; + } + + public function setOpenAt($openAt) + { + $this->openAt = $openAt; + } + + public function setTimeInfo($timeInfo) + { + $this->timeInfo = $timeInfo; + } + +} + +class PddTicketSkuRuleAddRequest_RefundLimitations extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "is_refundable") + */ + private $isRefundable; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_RefundLimitationsRefundRulesItem>, "refund_rules") + */ + private $refundRules; + + public function setIsRefundable($isRefundable) + { + $this->isRefundable = $isRefundable; + } + + public function setRefundRules($refundRules) + { + $this->refundRules = $refundRules; + } + +} + +class PddTicketSkuRuleAddRequest_RefundLimitationsRefundRulesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "ahead_time") + */ + private $aheadTime; + + /** + * @JsonProperty(Integer, "deduction_fee") + */ + private $deductionFee; + + /** + * @JsonProperty(Integer, "deduction_unit") + */ + private $deductionUnit; + + /** + * @JsonProperty(Integer, "type") + */ + private $type; + + public function setAheadTime($aheadTime) + { + $this->aheadTime = $aheadTime; + } + + public function setDeductionFee($deductionFee) + { + $this->deductionFee = $deductionFee; + } + + public function setDeductionUnit($deductionUnit) + { + $this->deductionUnit = $deductionUnit; + } + + public function setType($type) + { + $this->type = $type; + } + +} + +class PddTicketSkuRuleAddRequest_TravelerInfoLimitation extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "credential") + */ + private $credential; + + /** + * @JsonProperty(Integer, "name") + */ + private $name; + + /** + * @JsonProperty(Integer, "traveler_required") + */ + private $travelerRequired; + + public function setCredential($credential) + { + $this->credential = $credential; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setTravelerRequired($travelerRequired) + { + $this->travelerRequired = $travelerRequired; + } + +} + +class PddTicketSkuRuleAddRequest_ValidLimitation extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "days_time") + */ + private $daysTime; + + /** + * @JsonProperty(Long, "end_time") + */ + private $endTime; + + /** + * @JsonProperty(Long, "start_time") + */ + private $startTime; + + /** + * @JsonProperty(Integer, "time_type") + */ + private $timeType; + + public function setDaysTime($daysTime) + { + $this->daysTime = $daysTime; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + + public function setTimeType($timeType) + { + $this->timeType = $timeType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleEditRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleEditRequest.php index ac38333..b6c8f74 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleEditRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleEditRequest.php @@ -1,674 +1,674 @@ -setUserParam($params, "booker_info_limitation", $this->bookerInfoLimitation); - $this->setUserParam($params, "booking_notice", $this->bookingNotice); - $this->setUserParam($params, "order_limitation", $this->orderLimitation); - $this->setUserParam($params, "out_rule_id", $this->outRuleId); - $this->setUserParam($params, "provider_contact_info", $this->providerContactInfo); - $this->setUserParam($params, "refund_limitations", $this->refundLimitations); - $this->setUserParam($params, "rule_id", $this->ruleId); - $this->setUserParam($params, "rule_name", $this->ruleName); - $this->setUserParam($params, "rule_version", $this->ruleVersion); - $this->setUserParam($params, "traveler_info_limitation", $this->travelerInfoLimitation); - $this->setUserParam($params, "valid_limitation", $this->validLimitation); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ticket.sku.rule.edit"; - } - - public function setBookerInfoLimitation($bookerInfoLimitation) - { - $this->bookerInfoLimitation = $bookerInfoLimitation; - } - - public function setBookingNotice($bookingNotice) - { - $this->bookingNotice = $bookingNotice; - } - - public function setOrderLimitation($orderLimitation) - { - $this->orderLimitation = $orderLimitation; - } - - public function setOutRuleId($outRuleId) - { - $this->outRuleId = $outRuleId; - } - - public function setProviderContactInfo($providerContactInfo) - { - $this->providerContactInfo = $providerContactInfo; - } - - public function setRefundLimitations($refundLimitations) - { - $this->refundLimitations = $refundLimitations; - } - - public function setRuleId($ruleId) - { - $this->ruleId = $ruleId; - } - - public function setRuleName($ruleName) - { - $this->ruleName = $ruleName; - } - - public function setRuleVersion($ruleVersion) - { - $this->ruleVersion = $ruleVersion; - } - - public function setTravelerInfoLimitation($travelerInfoLimitation) - { - $this->travelerInfoLimitation = $travelerInfoLimitation; - } - - public function setValidLimitation($validLimitation) - { - $this->validLimitation = $validLimitation; - } - -} - -class PddTicketSkuRuleEditRequest_BookerInfoLimitation extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "booker_required") - */ - private $bookerRequired; - - /** - * @JsonProperty(Integer, "mobile") - */ - private $mobile; - - public function setBookerRequired($bookerRequired) - { - $this->bookerRequired = $bookerRequired; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - -} - -class PddTicketSkuRuleEditRequest_BookingNotice extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "enter_address") - */ - private $enterAddress; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookingNoticeEnterTimeItem>, "enter_time") - */ - private $enterTime; - - /** - * @JsonProperty(String, "enter_ways") - */ - private $enterWays; - - /** - * @JsonProperty(String, "extra_desc") - */ - private $extraDesc; - - /** - * @JsonProperty(String, "fee_include") - */ - private $feeInclude; - - /** - * @JsonProperty(String, "fee_not_include") - */ - private $feeNotInclude; - - /** - * @JsonProperty(String, "important_notice") - */ - private $importantNotice; - - /** - * @JsonProperty(Integer, "pass_time_limit") - */ - private $passTimeLimit; - - /** - * @JsonProperty(String, "ticket_place") - */ - private $ticketPlace; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookingNoticeTicketTimeItem>, "ticket_time") - */ - private $ticketTime; - - public function setEnterAddress($enterAddress) - { - $this->enterAddress = $enterAddress; - } - - public function setEnterTime($enterTime) - { - $this->enterTime = $enterTime; - } - - public function setEnterWays($enterWays) - { - $this->enterWays = $enterWays; - } - - public function setExtraDesc($extraDesc) - { - $this->extraDesc = $extraDesc; - } - - public function setFeeInclude($feeInclude) - { - $this->feeInclude = $feeInclude; - } - - public function setFeeNotInclude($feeNotInclude) - { - $this->feeNotInclude = $feeNotInclude; - } - - public function setImportantNotice($importantNotice) - { - $this->importantNotice = $importantNotice; - } - - public function setPassTimeLimit($passTimeLimit) - { - $this->passTimeLimit = $passTimeLimit; - } - - public function setTicketPlace($ticketPlace) - { - $this->ticketPlace = $ticketPlace; - } - - public function setTicketTime($ticketTime) - { - $this->ticketTime = $ticketTime; - } - -} - -class PddTicketSkuRuleEditRequest_BookingNoticeEnterTimeItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "comment") - */ - private $comment; - - /** - * @JsonProperty(String, "end_at") - */ - private $endAt; - - /** - * @JsonProperty(String, "start_at") - */ - private $startAt; - - public function setComment($comment) - { - $this->comment = $comment; - } - - public function setEndAt($endAt) - { - $this->endAt = $endAt; - } - - public function setStartAt($startAt) - { - $this->startAt = $startAt; - } - -} - -class PddTicketSkuRuleEditRequest_BookingNoticeTicketTimeItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "comment") - */ - private $comment; - - /** - * @JsonProperty(String, "end_at") - */ - private $endAt; - - /** - * @JsonProperty(String, "start_at") - */ - private $startAt; - - public function setComment($comment) - { - $this->comment = $comment; - } - - public function setEndAt($endAt) - { - $this->endAt = $endAt; - } - - public function setStartAt($startAt) - { - $this->startAt = $startAt; - } - -} - -class PddTicketSkuRuleEditRequest_OrderLimitation extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "cycle_length") - */ - private $cycleLength; - - /** - * @JsonProperty(Integer, "limitation_type") - */ - private $limitationType; - - /** - * @JsonProperty(Integer, "limit_cycle") - */ - private $limitCycle; - - /** - * @JsonProperty(Integer, "limit_num") - */ - private $limitNum; - - public function setCycleLength($cycleLength) - { - $this->cycleLength = $cycleLength; - } - - public function setLimitationType($limitationType) - { - $this->limitationType = $limitationType; - } - - public function setLimitCycle($limitCycle) - { - $this->limitCycle = $limitCycle; - } - - public function setLimitNum($limitNum) - { - $this->limitNum = $limitNum; - } - -} - -class PddTicketSkuRuleEditRequest_ProviderContactInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_ProviderContactInfoProviderBusinessHourItem>, "provider_business_hour") - */ - private $providerBusinessHour; - - /** - * @JsonProperty(String, "provider_name") - */ - private $providerName; - - /** - * @JsonProperty(String, "provider_telephone") - */ - private $providerTelephone; - - public function setProviderBusinessHour($providerBusinessHour) - { - $this->providerBusinessHour = $providerBusinessHour; - } - - public function setProviderName($providerName) - { - $this->providerName = $providerName; - } - - public function setProviderTelephone($providerTelephone) - { - $this->providerTelephone = $providerTelephone; - } - -} - -class PddTicketSkuRuleEditRequest_ProviderContactInfoProviderBusinessHourItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "close_at") - */ - private $closeAt; - - /** - * @JsonProperty(String, "open_at") - */ - private $openAt; - - /** - * @JsonProperty(String, "time_info") - */ - private $timeInfo; - - public function setCloseAt($closeAt) - { - $this->closeAt = $closeAt; - } - - public function setOpenAt($openAt) - { - $this->openAt = $openAt; - } - - public function setTimeInfo($timeInfo) - { - $this->timeInfo = $timeInfo; - } - -} - -class PddTicketSkuRuleEditRequest_RefundLimitations extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "is_refundable") - */ - private $isRefundable; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_RefundLimitationsRefundRulesItem>, "refund_rules") - */ - private $refundRules; - - public function setIsRefundable($isRefundable) - { - $this->isRefundable = $isRefundable; - } - - public function setRefundRules($refundRules) - { - $this->refundRules = $refundRules; - } - -} - -class PddTicketSkuRuleEditRequest_RefundLimitationsRefundRulesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "ahead_time") - */ - private $aheadTime; - - /** - * @JsonProperty(Integer, "deduction_fee") - */ - private $deductionFee; - - /** - * @JsonProperty(Integer, "deduction_unit") - */ - private $deductionUnit; - - /** - * @JsonProperty(Integer, "type") - */ - private $type; - - public function setAheadTime($aheadTime) - { - $this->aheadTime = $aheadTime; - } - - public function setDeductionFee($deductionFee) - { - $this->deductionFee = $deductionFee; - } - - public function setDeductionUnit($deductionUnit) - { - $this->deductionUnit = $deductionUnit; - } - - public function setType($type) - { - $this->type = $type; - } - -} - -class PddTicketSkuRuleEditRequest_TravelerInfoLimitation extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "credential") - */ - private $credential; - - /** - * @JsonProperty(Integer, "name") - */ - private $name; - - /** - * @JsonProperty(Integer, "traveler_required") - */ - private $travelerRequired; - - public function setCredential($credential) - { - $this->credential = $credential; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setTravelerRequired($travelerRequired) - { - $this->travelerRequired = $travelerRequired; - } - -} - -class PddTicketSkuRuleEditRequest_ValidLimitation extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "days_time") - */ - private $daysTime; - - /** - * @JsonProperty(Long, "end_time") - */ - private $endTime; - - /** - * @JsonProperty(Long, "start_time") - */ - private $startTime; - - /** - * @JsonProperty(Integer, "time_type") - */ - private $timeType; - - public function setDaysTime($daysTime) - { - $this->daysTime = $daysTime; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setStartTime($startTime) - { - $this->startTime = $startTime; - } - - public function setTimeType($timeType) - { - $this->timeType = $timeType; - } - -} +setUserParam($params, "booker_info_limitation", $this->bookerInfoLimitation); + $this->setUserParam($params, "booking_notice", $this->bookingNotice); + $this->setUserParam($params, "order_limitation", $this->orderLimitation); + $this->setUserParam($params, "out_rule_id", $this->outRuleId); + $this->setUserParam($params, "provider_contact_info", $this->providerContactInfo); + $this->setUserParam($params, "refund_limitations", $this->refundLimitations); + $this->setUserParam($params, "rule_id", $this->ruleId); + $this->setUserParam($params, "rule_name", $this->ruleName); + $this->setUserParam($params, "rule_version", $this->ruleVersion); + $this->setUserParam($params, "traveler_info_limitation", $this->travelerInfoLimitation); + $this->setUserParam($params, "valid_limitation", $this->validLimitation); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ticket.sku.rule.edit"; + } + + public function setBookerInfoLimitation($bookerInfoLimitation) + { + $this->bookerInfoLimitation = $bookerInfoLimitation; + } + + public function setBookingNotice($bookingNotice) + { + $this->bookingNotice = $bookingNotice; + } + + public function setOrderLimitation($orderLimitation) + { + $this->orderLimitation = $orderLimitation; + } + + public function setOutRuleId($outRuleId) + { + $this->outRuleId = $outRuleId; + } + + public function setProviderContactInfo($providerContactInfo) + { + $this->providerContactInfo = $providerContactInfo; + } + + public function setRefundLimitations($refundLimitations) + { + $this->refundLimitations = $refundLimitations; + } + + public function setRuleId($ruleId) + { + $this->ruleId = $ruleId; + } + + public function setRuleName($ruleName) + { + $this->ruleName = $ruleName; + } + + public function setRuleVersion($ruleVersion) + { + $this->ruleVersion = $ruleVersion; + } + + public function setTravelerInfoLimitation($travelerInfoLimitation) + { + $this->travelerInfoLimitation = $travelerInfoLimitation; + } + + public function setValidLimitation($validLimitation) + { + $this->validLimitation = $validLimitation; + } + +} + +class PddTicketSkuRuleEditRequest_BookerInfoLimitation extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "booker_required") + */ + private $bookerRequired; + + /** + * @JsonProperty(Integer, "mobile") + */ + private $mobile; + + public function setBookerRequired($bookerRequired) + { + $this->bookerRequired = $bookerRequired; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + +} + +class PddTicketSkuRuleEditRequest_BookingNotice extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "enter_address") + */ + private $enterAddress; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookingNoticeEnterTimeItem>, "enter_time") + */ + private $enterTime; + + /** + * @JsonProperty(String, "enter_ways") + */ + private $enterWays; + + /** + * @JsonProperty(String, "extra_desc") + */ + private $extraDesc; + + /** + * @JsonProperty(String, "fee_include") + */ + private $feeInclude; + + /** + * @JsonProperty(String, "fee_not_include") + */ + private $feeNotInclude; + + /** + * @JsonProperty(String, "important_notice") + */ + private $importantNotice; + + /** + * @JsonProperty(Integer, "pass_time_limit") + */ + private $passTimeLimit; + + /** + * @JsonProperty(String, "ticket_place") + */ + private $ticketPlace; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookingNoticeTicketTimeItem>, "ticket_time") + */ + private $ticketTime; + + public function setEnterAddress($enterAddress) + { + $this->enterAddress = $enterAddress; + } + + public function setEnterTime($enterTime) + { + $this->enterTime = $enterTime; + } + + public function setEnterWays($enterWays) + { + $this->enterWays = $enterWays; + } + + public function setExtraDesc($extraDesc) + { + $this->extraDesc = $extraDesc; + } + + public function setFeeInclude($feeInclude) + { + $this->feeInclude = $feeInclude; + } + + public function setFeeNotInclude($feeNotInclude) + { + $this->feeNotInclude = $feeNotInclude; + } + + public function setImportantNotice($importantNotice) + { + $this->importantNotice = $importantNotice; + } + + public function setPassTimeLimit($passTimeLimit) + { + $this->passTimeLimit = $passTimeLimit; + } + + public function setTicketPlace($ticketPlace) + { + $this->ticketPlace = $ticketPlace; + } + + public function setTicketTime($ticketTime) + { + $this->ticketTime = $ticketTime; + } + +} + +class PddTicketSkuRuleEditRequest_BookingNoticeEnterTimeItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "comment") + */ + private $comment; + + /** + * @JsonProperty(String, "end_at") + */ + private $endAt; + + /** + * @JsonProperty(String, "start_at") + */ + private $startAt; + + public function setComment($comment) + { + $this->comment = $comment; + } + + public function setEndAt($endAt) + { + $this->endAt = $endAt; + } + + public function setStartAt($startAt) + { + $this->startAt = $startAt; + } + +} + +class PddTicketSkuRuleEditRequest_BookingNoticeTicketTimeItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "comment") + */ + private $comment; + + /** + * @JsonProperty(String, "end_at") + */ + private $endAt; + + /** + * @JsonProperty(String, "start_at") + */ + private $startAt; + + public function setComment($comment) + { + $this->comment = $comment; + } + + public function setEndAt($endAt) + { + $this->endAt = $endAt; + } + + public function setStartAt($startAt) + { + $this->startAt = $startAt; + } + +} + +class PddTicketSkuRuleEditRequest_OrderLimitation extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "cycle_length") + */ + private $cycleLength; + + /** + * @JsonProperty(Integer, "limitation_type") + */ + private $limitationType; + + /** + * @JsonProperty(Integer, "limit_cycle") + */ + private $limitCycle; + + /** + * @JsonProperty(Integer, "limit_num") + */ + private $limitNum; + + public function setCycleLength($cycleLength) + { + $this->cycleLength = $cycleLength; + } + + public function setLimitationType($limitationType) + { + $this->limitationType = $limitationType; + } + + public function setLimitCycle($limitCycle) + { + $this->limitCycle = $limitCycle; + } + + public function setLimitNum($limitNum) + { + $this->limitNum = $limitNum; + } + +} + +class PddTicketSkuRuleEditRequest_ProviderContactInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_ProviderContactInfoProviderBusinessHourItem>, "provider_business_hour") + */ + private $providerBusinessHour; + + /** + * @JsonProperty(String, "provider_name") + */ + private $providerName; + + /** + * @JsonProperty(String, "provider_telephone") + */ + private $providerTelephone; + + public function setProviderBusinessHour($providerBusinessHour) + { + $this->providerBusinessHour = $providerBusinessHour; + } + + public function setProviderName($providerName) + { + $this->providerName = $providerName; + } + + public function setProviderTelephone($providerTelephone) + { + $this->providerTelephone = $providerTelephone; + } + +} + +class PddTicketSkuRuleEditRequest_ProviderContactInfoProviderBusinessHourItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "close_at") + */ + private $closeAt; + + /** + * @JsonProperty(String, "open_at") + */ + private $openAt; + + /** + * @JsonProperty(String, "time_info") + */ + private $timeInfo; + + public function setCloseAt($closeAt) + { + $this->closeAt = $closeAt; + } + + public function setOpenAt($openAt) + { + $this->openAt = $openAt; + } + + public function setTimeInfo($timeInfo) + { + $this->timeInfo = $timeInfo; + } + +} + +class PddTicketSkuRuleEditRequest_RefundLimitations extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "is_refundable") + */ + private $isRefundable; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_RefundLimitationsRefundRulesItem>, "refund_rules") + */ + private $refundRules; + + public function setIsRefundable($isRefundable) + { + $this->isRefundable = $isRefundable; + } + + public function setRefundRules($refundRules) + { + $this->refundRules = $refundRules; + } + +} + +class PddTicketSkuRuleEditRequest_RefundLimitationsRefundRulesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "ahead_time") + */ + private $aheadTime; + + /** + * @JsonProperty(Integer, "deduction_fee") + */ + private $deductionFee; + + /** + * @JsonProperty(Integer, "deduction_unit") + */ + private $deductionUnit; + + /** + * @JsonProperty(Integer, "type") + */ + private $type; + + public function setAheadTime($aheadTime) + { + $this->aheadTime = $aheadTime; + } + + public function setDeductionFee($deductionFee) + { + $this->deductionFee = $deductionFee; + } + + public function setDeductionUnit($deductionUnit) + { + $this->deductionUnit = $deductionUnit; + } + + public function setType($type) + { + $this->type = $type; + } + +} + +class PddTicketSkuRuleEditRequest_TravelerInfoLimitation extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "credential") + */ + private $credential; + + /** + * @JsonProperty(Integer, "name") + */ + private $name; + + /** + * @JsonProperty(Integer, "traveler_required") + */ + private $travelerRequired; + + public function setCredential($credential) + { + $this->credential = $credential; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setTravelerRequired($travelerRequired) + { + $this->travelerRequired = $travelerRequired; + } + +} + +class PddTicketSkuRuleEditRequest_ValidLimitation extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "days_time") + */ + private $daysTime; + + /** + * @JsonProperty(Long, "end_time") + */ + private $endTime; + + /** + * @JsonProperty(Long, "start_time") + */ + private $startTime; + + /** + * @JsonProperty(Integer, "time_type") + */ + private $timeType; + + public function setDaysTime($daysTime) + { + $this->daysTime = $daysTime; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setStartTime($startTime) + { + $this->startTime = $startTime; + } + + public function setTimeType($timeType) + { + $this->timeType = $timeType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleGetRequest.php index d748df2..c91fbaa 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleGetRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "out_rule_id", $this->outRuleId); - $this->setUserParam($params, "rule_id", $this->ruleId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ticket.sku.rule.get"; - } - - public function setOutRuleId($outRuleId) - { - $this->outRuleId = $outRuleId; - } - - public function setRuleId($ruleId) - { - $this->ruleId = $ruleId; - } - -} +setUserParam($params, "out_rule_id", $this->outRuleId); + $this->setUserParam($params, "rule_id", $this->ruleId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ticket.sku.rule.get"; + } + + public function setOutRuleId($outRuleId) + { + $this->outRuleId = $outRuleId; + } + + public function setRuleId($ruleId) + { + $this->ruleId = $ruleId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketVerificationNotifycationRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketVerificationNotifycationRequest.php index 4da2e08..e6d8561 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTicketVerificationNotifycationRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketVerificationNotifycationRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "order_no", $this->orderNo); - $this->setUserParam($params, "verify_time", $this->verifyTime); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.ticket.verification.notifycation"; - } - - public function setOrderNo($orderNo) - { - $this->orderNo = $orderNo; - } - - public function setVerifyTime($verifyTime) - { - $this->verifyTime = $verifyTime; - } - -} +setUserParam($params, "order_no", $this->orderNo); + $this->setUserParam($params, "verify_time", $this->verifyTime); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.ticket.verification.notifycation"; + } + + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + } + + public function setVerifyTime($verifyTime) + { + $this->verifyTime = $verifyTime; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTimeGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTimeGetRequest.php index 266976a..d302f7c 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTimeGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTimeGetRequest.php @@ -1,33 +1,33 @@ -, "new_passengers") - */ - private $newPassengers; - - /** - * @JsonProperty(String, "order_id") - */ - private $orderId; - - /** - * @JsonProperty(String, "pdd_order_id") - */ - private $pddOrderId; - - /** - * @JsonProperty(String, "vendor_time") - */ - private $vendorTime; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "code", $this->code); - $this->setUserParam($params, "crh_order_id", $this->crhOrderId); - $this->setUserParam($params, "gate_no", $this->gateNo); - $this->setUserParam($params, "msg", $this->msg); - $this->setUserParam($params, "new_passengers", $this->newPassengers); - $this->setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "vendor_time", $this->vendorTime); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.callback.change.confirm"; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setCrhOrderId($crhOrderId) - { - $this->crhOrderId = $crhOrderId; - } - - public function setGateNo($gateNo) - { - $this->gateNo = $gateNo; - } - - public function setMsg($msg) - { - $this->msg = $msg; - } - - public function setNewPassengers($newPassengers) - { - $this->newPassengers = $newPassengers; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setVendorTime($vendorTime) - { - $this->vendorTime = $vendorTime; - } - -} - -class PddTrainCallbackChangeConfirmRequest_NewPassengersItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "new_sub_order_id") - */ - private $newSubOrderId; - - /** - * @JsonProperty(String, "new_sub_pdd_order_id") - */ - private $newSubPddOrderId; - - /** - * @JsonProperty(String, "old_sub_order_id") - */ - private $oldSubOrderId; - - /** - * @JsonProperty(String, "old_sub_pdd_order_id") - */ - private $oldSubPddOrderId; - - public function setNewSubOrderId($newSubOrderId) - { - $this->newSubOrderId = $newSubOrderId; - } - - public function setNewSubPddOrderId($newSubPddOrderId) - { - $this->newSubPddOrderId = $newSubPddOrderId; - } - - public function setOldSubOrderId($oldSubOrderId) - { - $this->oldSubOrderId = $oldSubOrderId; - } - - public function setOldSubPddOrderId($oldSubPddOrderId) - { - $this->oldSubPddOrderId = $oldSubPddOrderId; - } - -} +, "new_passengers") + */ + private $newPassengers; + + /** + * @JsonProperty(String, "order_id") + */ + private $orderId; + + /** + * @JsonProperty(String, "pdd_order_id") + */ + private $pddOrderId; + + /** + * @JsonProperty(String, "vendor_time") + */ + private $vendorTime; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "code", $this->code); + $this->setUserParam($params, "crh_order_id", $this->crhOrderId); + $this->setUserParam($params, "gate_no", $this->gateNo); + $this->setUserParam($params, "msg", $this->msg); + $this->setUserParam($params, "new_passengers", $this->newPassengers); + $this->setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "vendor_time", $this->vendorTime); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.callback.change.confirm"; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setCrhOrderId($crhOrderId) + { + $this->crhOrderId = $crhOrderId; + } + + public function setGateNo($gateNo) + { + $this->gateNo = $gateNo; + } + + public function setMsg($msg) + { + $this->msg = $msg; + } + + public function setNewPassengers($newPassengers) + { + $this->newPassengers = $newPassengers; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setVendorTime($vendorTime) + { + $this->vendorTime = $vendorTime; + } + +} + +class PddTrainCallbackChangeConfirmRequest_NewPassengersItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "new_sub_order_id") + */ + private $newSubOrderId; + + /** + * @JsonProperty(String, "new_sub_pdd_order_id") + */ + private $newSubPddOrderId; + + /** + * @JsonProperty(String, "old_sub_order_id") + */ + private $oldSubOrderId; + + /** + * @JsonProperty(String, "old_sub_pdd_order_id") + */ + private $oldSubPddOrderId; + + public function setNewSubOrderId($newSubOrderId) + { + $this->newSubOrderId = $newSubOrderId; + } + + public function setNewSubPddOrderId($newSubPddOrderId) + { + $this->newSubPddOrderId = $newSubPddOrderId; + } + + public function setOldSubOrderId($oldSubOrderId) + { + $this->oldSubOrderId = $oldSubOrderId; + } + + public function setOldSubPddOrderId($oldSubPddOrderId) + { + $this->oldSubPddOrderId = $oldSubPddOrderId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackChangeReserveRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackChangeReserveRequest.php index cc4aab4..ac2a38a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackChangeReserveRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackChangeReserveRequest.php @@ -1,362 +1,362 @@ -, "new_passengers") - */ - private $newPassengers; - - /** - * @JsonProperty(String, "order_id") - */ - private $orderId; - - /** - * @JsonProperty(String, "pay_limit_time") - */ - private $payLimitTime; - - /** - * @JsonProperty(String, "pdd_order_id") - */ - private $pddOrderId; - - /** - * @JsonProperty(String, "request_id") - */ - private $requestId; - - /** - * @JsonProperty(String, "train_no") - */ - private $trainNo; - - /** - * @JsonProperty(Integer, "use_id_card_in") - */ - private $useIdCardIn; - - /** - * @JsonProperty(String, "vendor_time") - */ - private $vendorTime; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "arrive_date", $this->arriveDate); - $this->setUserParam($params, "arrive_station", $this->arriveStation); - $this->setUserParam($params, "arrive_time", $this->arriveTime); - $this->setUserParam($params, "change_pay", $this->changePay); - $this->setUserParam($params, "change_refund", $this->changeRefund); - $this->setUserParam($params, "code", $this->code); - $this->setUserParam($params, "crh_order_id", $this->crhOrderId); - $this->setUserParam($params, "depart_date", $this->departDate); - $this->setUserParam($params, "depart_station", $this->departStation); - $this->setUserParam($params, "depart_time", $this->departTime); - $this->setUserParam($params, "msg", $this->msg); - $this->setUserParam($params, "new_passengers", $this->newPassengers); - $this->setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "pay_limit_time", $this->payLimitTime); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "request_id", $this->requestId); - $this->setUserParam($params, "train_no", $this->trainNo); - $this->setUserParam($params, "use_id_card_in", $this->useIdCardIn); - $this->setUserParam($params, "vendor_time", $this->vendorTime); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.callback.change.reserve"; - } - - public function setArriveDate($arriveDate) - { - $this->arriveDate = $arriveDate; - } - - public function setArriveStation($arriveStation) - { - $this->arriveStation = $arriveStation; - } - - public function setArriveTime($arriveTime) - { - $this->arriveTime = $arriveTime; - } - - public function setChangePay($changePay) - { - $this->changePay = $changePay; - } - - public function setChangeRefund($changeRefund) - { - $this->changeRefund = $changeRefund; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setCrhOrderId($crhOrderId) - { - $this->crhOrderId = $crhOrderId; - } - - public function setDepartDate($departDate) - { - $this->departDate = $departDate; - } - - public function setDepartStation($departStation) - { - $this->departStation = $departStation; - } - - public function setDepartTime($departTime) - { - $this->departTime = $departTime; - } - - public function setMsg($msg) - { - $this->msg = $msg; - } - - public function setNewPassengers($newPassengers) - { - $this->newPassengers = $newPassengers; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setPayLimitTime($payLimitTime) - { - $this->payLimitTime = $payLimitTime; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - public function setTrainNo($trainNo) - { - $this->trainNo = $trainNo; - } - - public function setUseIdCardIn($useIdCardIn) - { - $this->useIdCardIn = $useIdCardIn; - } - - public function setVendorTime($vendorTime) - { - $this->vendorTime = $vendorTime; - } - -} - -class PddTrainCallbackChangeReserveRequest_NewPassengersItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "coach_name") - */ - private $coachName; - - /** - * @JsonProperty(String, "coach_no") - */ - private $coachNo; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "new_sub_order_id") - */ - private $newSubOrderId; - - /** - * @JsonProperty(String, "new_sub_pdd_order_id") - */ - private $newSubPddOrderId; - - /** - * @JsonProperty(String, "old_sub_order_id") - */ - private $oldSubOrderId; - - /** - * @JsonProperty(String, "old_sub_pdd_order_id") - */ - private $oldSubPddOrderId; - - /** - * @JsonProperty(String, "seat_name") - */ - private $seatName; - - /** - * @JsonProperty(Integer, "seat_type") - */ - private $seatType; - - /** - * @JsonProperty(String, "sub_crh_order_id") - */ - private $subCrhOrderId; - - /** - * @JsonProperty(Long, "ticket_price") - */ - private $ticketPrice; - - public function setCoachName($coachName) - { - $this->coachName = $coachName; - } - - public function setCoachNo($coachNo) - { - $this->coachNo = $coachNo; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setNewSubOrderId($newSubOrderId) - { - $this->newSubOrderId = $newSubOrderId; - } - - public function setNewSubPddOrderId($newSubPddOrderId) - { - $this->newSubPddOrderId = $newSubPddOrderId; - } - - public function setOldSubOrderId($oldSubOrderId) - { - $this->oldSubOrderId = $oldSubOrderId; - } - - public function setOldSubPddOrderId($oldSubPddOrderId) - { - $this->oldSubPddOrderId = $oldSubPddOrderId; - } - - public function setSeatName($seatName) - { - $this->seatName = $seatName; - } - - public function setSeatType($seatType) - { - $this->seatType = $seatType; - } - - public function setSubCrhOrderId($subCrhOrderId) - { - $this->subCrhOrderId = $subCrhOrderId; - } - - public function setTicketPrice($ticketPrice) - { - $this->ticketPrice = $ticketPrice; - } - -} +, "new_passengers") + */ + private $newPassengers; + + /** + * @JsonProperty(String, "order_id") + */ + private $orderId; + + /** + * @JsonProperty(String, "pay_limit_time") + */ + private $payLimitTime; + + /** + * @JsonProperty(String, "pdd_order_id") + */ + private $pddOrderId; + + /** + * @JsonProperty(String, "request_id") + */ + private $requestId; + + /** + * @JsonProperty(String, "train_no") + */ + private $trainNo; + + /** + * @JsonProperty(Integer, "use_id_card_in") + */ + private $useIdCardIn; + + /** + * @JsonProperty(String, "vendor_time") + */ + private $vendorTime; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "arrive_date", $this->arriveDate); + $this->setUserParam($params, "arrive_station", $this->arriveStation); + $this->setUserParam($params, "arrive_time", $this->arriveTime); + $this->setUserParam($params, "change_pay", $this->changePay); + $this->setUserParam($params, "change_refund", $this->changeRefund); + $this->setUserParam($params, "code", $this->code); + $this->setUserParam($params, "crh_order_id", $this->crhOrderId); + $this->setUserParam($params, "depart_date", $this->departDate); + $this->setUserParam($params, "depart_station", $this->departStation); + $this->setUserParam($params, "depart_time", $this->departTime); + $this->setUserParam($params, "msg", $this->msg); + $this->setUserParam($params, "new_passengers", $this->newPassengers); + $this->setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "pay_limit_time", $this->payLimitTime); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "request_id", $this->requestId); + $this->setUserParam($params, "train_no", $this->trainNo); + $this->setUserParam($params, "use_id_card_in", $this->useIdCardIn); + $this->setUserParam($params, "vendor_time", $this->vendorTime); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.callback.change.reserve"; + } + + public function setArriveDate($arriveDate) + { + $this->arriveDate = $arriveDate; + } + + public function setArriveStation($arriveStation) + { + $this->arriveStation = $arriveStation; + } + + public function setArriveTime($arriveTime) + { + $this->arriveTime = $arriveTime; + } + + public function setChangePay($changePay) + { + $this->changePay = $changePay; + } + + public function setChangeRefund($changeRefund) + { + $this->changeRefund = $changeRefund; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setCrhOrderId($crhOrderId) + { + $this->crhOrderId = $crhOrderId; + } + + public function setDepartDate($departDate) + { + $this->departDate = $departDate; + } + + public function setDepartStation($departStation) + { + $this->departStation = $departStation; + } + + public function setDepartTime($departTime) + { + $this->departTime = $departTime; + } + + public function setMsg($msg) + { + $this->msg = $msg; + } + + public function setNewPassengers($newPassengers) + { + $this->newPassengers = $newPassengers; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setPayLimitTime($payLimitTime) + { + $this->payLimitTime = $payLimitTime; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setRequestId($requestId) + { + $this->requestId = $requestId; + } + + public function setTrainNo($trainNo) + { + $this->trainNo = $trainNo; + } + + public function setUseIdCardIn($useIdCardIn) + { + $this->useIdCardIn = $useIdCardIn; + } + + public function setVendorTime($vendorTime) + { + $this->vendorTime = $vendorTime; + } + +} + +class PddTrainCallbackChangeReserveRequest_NewPassengersItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "coach_name") + */ + private $coachName; + + /** + * @JsonProperty(String, "coach_no") + */ + private $coachNo; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "new_sub_order_id") + */ + private $newSubOrderId; + + /** + * @JsonProperty(String, "new_sub_pdd_order_id") + */ + private $newSubPddOrderId; + + /** + * @JsonProperty(String, "old_sub_order_id") + */ + private $oldSubOrderId; + + /** + * @JsonProperty(String, "old_sub_pdd_order_id") + */ + private $oldSubPddOrderId; + + /** + * @JsonProperty(String, "seat_name") + */ + private $seatName; + + /** + * @JsonProperty(Integer, "seat_type") + */ + private $seatType; + + /** + * @JsonProperty(String, "sub_crh_order_id") + */ + private $subCrhOrderId; + + /** + * @JsonProperty(Long, "ticket_price") + */ + private $ticketPrice; + + public function setCoachName($coachName) + { + $this->coachName = $coachName; + } + + public function setCoachNo($coachNo) + { + $this->coachNo = $coachNo; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setNewSubOrderId($newSubOrderId) + { + $this->newSubOrderId = $newSubOrderId; + } + + public function setNewSubPddOrderId($newSubPddOrderId) + { + $this->newSubPddOrderId = $newSubPddOrderId; + } + + public function setOldSubOrderId($oldSubOrderId) + { + $this->oldSubOrderId = $oldSubOrderId; + } + + public function setOldSubPddOrderId($oldSubPddOrderId) + { + $this->oldSubPddOrderId = $oldSubPddOrderId; + } + + public function setSeatName($seatName) + { + $this->seatName = $seatName; + } + + public function setSeatType($seatType) + { + $this->seatType = $seatType; + } + + public function setSubCrhOrderId($subCrhOrderId) + { + $this->subCrhOrderId = $subCrhOrderId; + } + + public function setTicketPrice($ticketPrice) + { + $this->ticketPrice = $ticketPrice; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackConfirmPayRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackConfirmPayRequest.php index eba21ee..d62c4a6 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackConfirmPayRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackConfirmPayRequest.php @@ -1,121 +1,121 @@ -setUserParam($params, "code", $this->code); - $this->setUserParam($params, "crh_order_id", $this->crhOrderId); - $this->setUserParam($params, "gate_no", $this->gateNo); - $this->setUserParam($params, "msg", $this->msg); - $this->setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "request_id", $this->requestId); - $this->setUserParam($params, "vendor_time", $this->vendorTime); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.callback.confirm.pay"; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setCrhOrderId($crhOrderId) - { - $this->crhOrderId = $crhOrderId; - } - - public function setGateNo($gateNo) - { - $this->gateNo = $gateNo; - } - - public function setMsg($msg) - { - $this->msg = $msg; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - public function setVendorTime($vendorTime) - { - $this->vendorTime = $vendorTime; - } - -} +setUserParam($params, "code", $this->code); + $this->setUserParam($params, "crh_order_id", $this->crhOrderId); + $this->setUserParam($params, "gate_no", $this->gateNo); + $this->setUserParam($params, "msg", $this->msg); + $this->setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "request_id", $this->requestId); + $this->setUserParam($params, "vendor_time", $this->vendorTime); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.callback.confirm.pay"; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setCrhOrderId($crhOrderId) + { + $this->crhOrderId = $crhOrderId; + } + + public function setGateNo($gateNo) + { + $this->gateNo = $gateNo; + } + + public function setMsg($msg) + { + $this->msg = $msg; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setRequestId($requestId) + { + $this->requestId = $requestId; + } + + public function setVendorTime($vendorTime) + { + $this->vendorTime = $vendorTime; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackGrabRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackGrabRequest.php index e84e8ed..df5bd2c 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackGrabRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackGrabRequest.php @@ -1,437 +1,437 @@ -, "passengers") - */ - private $passengers; - - /** - * @JsonProperty(String, "pdd_order_id") - */ - private $pddOrderId; - - /** - * @JsonProperty(Integer, "ticket_num") - */ - private $ticketNum; - - /** - * @JsonProperty(String, "train_date") - */ - private $trainDate; - - /** - * @JsonProperty(String, "train_no") - */ - private $trainNo; - - /** - * @JsonProperty(String, "travel_time") - */ - private $travelTime; - - /** - * @JsonProperty(String, "vendor_time") - */ - private $vendorTime; - - /** - * @JsonProperty(String, "end_time") - */ - private $endTime; - - /** - * @JsonProperty(Integer, "channel") - */ - private $channel; - - /** - * @JsonProperty(Integer, "id_card_check_in") - */ - private $idCardCheckIn; - - /** - * @JsonProperty(String, "gate_no") - */ - private $gateNo; - - /** - * @JsonProperty(String, "distance") - */ - private $distance; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "arrive_station", $this->arriveStation); - $this->setUserParam($params, "arrive_station_code", $this->arriveStationCode); - $this->setUserParam($params, "arrive_time", $this->arriveTime); - $this->setUserParam($params, "code", $this->code); - $this->setUserParam($params, "crh_order_id", $this->crhOrderId); - $this->setUserParam($params, "depart_station", $this->departStation); - $this->setUserParam($params, "depart_station_code", $this->departStationCode); - $this->setUserParam($params, "depart_time", $this->departTime); - $this->setUserParam($params, "msg", $this->msg); - $this->setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "order_ticket_price", $this->orderTicketPrice); - $this->setUserParam($params, "order_time", $this->orderTime); - $this->setUserParam($params, "passengers", $this->passengers); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "ticket_num", $this->ticketNum); - $this->setUserParam($params, "train_date", $this->trainDate); - $this->setUserParam($params, "train_no", $this->trainNo); - $this->setUserParam($params, "travel_time", $this->travelTime); - $this->setUserParam($params, "vendor_time", $this->vendorTime); - $this->setUserParam($params, "end_time", $this->endTime); - $this->setUserParam($params, "channel", $this->channel); - $this->setUserParam($params, "id_card_check_in", $this->idCardCheckIn); - $this->setUserParam($params, "gate_no", $this->gateNo); - $this->setUserParam($params, "distance", $this->distance); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.callback.grab"; - } - - public function setArriveStation($arriveStation) - { - $this->arriveStation = $arriveStation; - } - - public function setArriveStationCode($arriveStationCode) - { - $this->arriveStationCode = $arriveStationCode; - } - - public function setArriveTime($arriveTime) - { - $this->arriveTime = $arriveTime; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setCrhOrderId($crhOrderId) - { - $this->crhOrderId = $crhOrderId; - } - - public function setDepartStation($departStation) - { - $this->departStation = $departStation; - } - - public function setDepartStationCode($departStationCode) - { - $this->departStationCode = $departStationCode; - } - - public function setDepartTime($departTime) - { - $this->departTime = $departTime; - } - - public function setMsg($msg) - { - $this->msg = $msg; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setOrderTicketPrice($orderTicketPrice) - { - $this->orderTicketPrice = $orderTicketPrice; - } - - public function setOrderTime($orderTime) - { - $this->orderTime = $orderTime; - } - - public function setPassengers($passengers) - { - $this->passengers = $passengers; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setTicketNum($ticketNum) - { - $this->ticketNum = $ticketNum; - } - - public function setTrainDate($trainDate) - { - $this->trainDate = $trainDate; - } - - public function setTrainNo($trainNo) - { - $this->trainNo = $trainNo; - } - - public function setTravelTime($travelTime) - { - $this->travelTime = $travelTime; - } - - public function setVendorTime($vendorTime) - { - $this->vendorTime = $vendorTime; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setChannel($channel) - { - $this->channel = $channel; - } - - public function setIdCardCheckIn($idCardCheckIn) - { - $this->idCardCheckIn = $idCardCheckIn; - } - - public function setGateNo($gateNo) - { - $this->gateNo = $gateNo; - } - - public function setDistance($distance) - { - $this->distance = $distance; - } - -} - -class PddTrainCallbackGrabRequest_PassengersItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "card_no") - */ - private $cardNo; - - /** - * @JsonProperty(String, "card_type") - */ - private $cardType; - - /** - * @JsonProperty(String, "coach_no") - */ - private $coachNo; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "seat_name") - */ - private $seatName; - - /** - * @JsonProperty(String, "seat_no") - */ - private $seatNo; - - /** - * @JsonProperty(Integer, "seat_type") - */ - private $seatType; - - /** - * @JsonProperty(String, "seat_type_name") - */ - private $seatTypeName; - - /** - * @JsonProperty(Integer, "status") - */ - private $status; - - /** - * @JsonProperty(String, "sub_order_id") - */ - private $subOrderId; - - /** - * @JsonProperty(String, "sub_pdd_order_id") - */ - private $subPddOrderId; - - /** - * @JsonProperty(Long, "ticket_price") - */ - private $ticketPrice; - - /** - * @JsonProperty(Integer, "ticket_type") - */ - private $ticketType; - - public function setCardNo($cardNo) - { - $this->cardNo = $cardNo; - } - - public function setCardType($cardType) - { - $this->cardType = $cardType; - } - - public function setCoachNo($coachNo) - { - $this->coachNo = $coachNo; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setSeatName($seatName) - { - $this->seatName = $seatName; - } - - public function setSeatNo($seatNo) - { - $this->seatNo = $seatNo; - } - - public function setSeatType($seatType) - { - $this->seatType = $seatType; - } - - public function setSeatTypeName($seatTypeName) - { - $this->seatTypeName = $seatTypeName; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function setSubOrderId($subOrderId) - { - $this->subOrderId = $subOrderId; - } - - public function setSubPddOrderId($subPddOrderId) - { - $this->subPddOrderId = $subPddOrderId; - } - - public function setTicketPrice($ticketPrice) - { - $this->ticketPrice = $ticketPrice; - } - - public function setTicketType($ticketType) - { - $this->ticketType = $ticketType; - } - -} +, "passengers") + */ + private $passengers; + + /** + * @JsonProperty(String, "pdd_order_id") + */ + private $pddOrderId; + + /** + * @JsonProperty(Integer, "ticket_num") + */ + private $ticketNum; + + /** + * @JsonProperty(String, "train_date") + */ + private $trainDate; + + /** + * @JsonProperty(String, "train_no") + */ + private $trainNo; + + /** + * @JsonProperty(String, "travel_time") + */ + private $travelTime; + + /** + * @JsonProperty(String, "vendor_time") + */ + private $vendorTime; + + /** + * @JsonProperty(String, "end_time") + */ + private $endTime; + + /** + * @JsonProperty(Integer, "channel") + */ + private $channel; + + /** + * @JsonProperty(Integer, "id_card_check_in") + */ + private $idCardCheckIn; + + /** + * @JsonProperty(String, "gate_no") + */ + private $gateNo; + + /** + * @JsonProperty(String, "distance") + */ + private $distance; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "arrive_station", $this->arriveStation); + $this->setUserParam($params, "arrive_station_code", $this->arriveStationCode); + $this->setUserParam($params, "arrive_time", $this->arriveTime); + $this->setUserParam($params, "code", $this->code); + $this->setUserParam($params, "crh_order_id", $this->crhOrderId); + $this->setUserParam($params, "depart_station", $this->departStation); + $this->setUserParam($params, "depart_station_code", $this->departStationCode); + $this->setUserParam($params, "depart_time", $this->departTime); + $this->setUserParam($params, "msg", $this->msg); + $this->setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "order_ticket_price", $this->orderTicketPrice); + $this->setUserParam($params, "order_time", $this->orderTime); + $this->setUserParam($params, "passengers", $this->passengers); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "ticket_num", $this->ticketNum); + $this->setUserParam($params, "train_date", $this->trainDate); + $this->setUserParam($params, "train_no", $this->trainNo); + $this->setUserParam($params, "travel_time", $this->travelTime); + $this->setUserParam($params, "vendor_time", $this->vendorTime); + $this->setUserParam($params, "end_time", $this->endTime); + $this->setUserParam($params, "channel", $this->channel); + $this->setUserParam($params, "id_card_check_in", $this->idCardCheckIn); + $this->setUserParam($params, "gate_no", $this->gateNo); + $this->setUserParam($params, "distance", $this->distance); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.callback.grab"; + } + + public function setArriveStation($arriveStation) + { + $this->arriveStation = $arriveStation; + } + + public function setArriveStationCode($arriveStationCode) + { + $this->arriveStationCode = $arriveStationCode; + } + + public function setArriveTime($arriveTime) + { + $this->arriveTime = $arriveTime; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setCrhOrderId($crhOrderId) + { + $this->crhOrderId = $crhOrderId; + } + + public function setDepartStation($departStation) + { + $this->departStation = $departStation; + } + + public function setDepartStationCode($departStationCode) + { + $this->departStationCode = $departStationCode; + } + + public function setDepartTime($departTime) + { + $this->departTime = $departTime; + } + + public function setMsg($msg) + { + $this->msg = $msg; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setOrderTicketPrice($orderTicketPrice) + { + $this->orderTicketPrice = $orderTicketPrice; + } + + public function setOrderTime($orderTime) + { + $this->orderTime = $orderTime; + } + + public function setPassengers($passengers) + { + $this->passengers = $passengers; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setTicketNum($ticketNum) + { + $this->ticketNum = $ticketNum; + } + + public function setTrainDate($trainDate) + { + $this->trainDate = $trainDate; + } + + public function setTrainNo($trainNo) + { + $this->trainNo = $trainNo; + } + + public function setTravelTime($travelTime) + { + $this->travelTime = $travelTime; + } + + public function setVendorTime($vendorTime) + { + $this->vendorTime = $vendorTime; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setChannel($channel) + { + $this->channel = $channel; + } + + public function setIdCardCheckIn($idCardCheckIn) + { + $this->idCardCheckIn = $idCardCheckIn; + } + + public function setGateNo($gateNo) + { + $this->gateNo = $gateNo; + } + + public function setDistance($distance) + { + $this->distance = $distance; + } + +} + +class PddTrainCallbackGrabRequest_PassengersItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "card_no") + */ + private $cardNo; + + /** + * @JsonProperty(String, "card_type") + */ + private $cardType; + + /** + * @JsonProperty(String, "coach_no") + */ + private $coachNo; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "seat_name") + */ + private $seatName; + + /** + * @JsonProperty(String, "seat_no") + */ + private $seatNo; + + /** + * @JsonProperty(Integer, "seat_type") + */ + private $seatType; + + /** + * @JsonProperty(String, "seat_type_name") + */ + private $seatTypeName; + + /** + * @JsonProperty(Integer, "status") + */ + private $status; + + /** + * @JsonProperty(String, "sub_order_id") + */ + private $subOrderId; + + /** + * @JsonProperty(String, "sub_pdd_order_id") + */ + private $subPddOrderId; + + /** + * @JsonProperty(Long, "ticket_price") + */ + private $ticketPrice; + + /** + * @JsonProperty(Integer, "ticket_type") + */ + private $ticketType; + + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + } + + public function setCardType($cardType) + { + $this->cardType = $cardType; + } + + public function setCoachNo($coachNo) + { + $this->coachNo = $coachNo; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setSeatName($seatName) + { + $this->seatName = $seatName; + } + + public function setSeatNo($seatNo) + { + $this->seatNo = $seatNo; + } + + public function setSeatType($seatType) + { + $this->seatType = $seatType; + } + + public function setSeatTypeName($seatTypeName) + { + $this->seatTypeName = $seatTypeName; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function setSubOrderId($subOrderId) + { + $this->subOrderId = $subOrderId; + } + + public function setSubPddOrderId($subPddOrderId) + { + $this->subPddOrderId = $subPddOrderId; + } + + public function setTicketPrice($ticketPrice) + { + $this->ticketPrice = $ticketPrice; + } + + public function setTicketType($ticketType) + { + $this->ticketType = $ticketType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackOtcbookRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackOtcbookRequest.php index e20e680..bc0b172 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackOtcbookRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackOtcbookRequest.php @@ -1,339 +1,339 @@ -, "passengers") - */ - private $passengers; - - /** - * @JsonProperty(String, "pdd_order_id") - */ - private $pddOrderId; - - /** - * @JsonProperty(String, "request_id") - */ - private $requestId; - - /** - * @JsonProperty(String, "train_no") - */ - private $trainNo; - - /** - * @JsonProperty(Integer, "use_id_card_in") - */ - private $useIdCardIn; - - /** - * @JsonProperty(String, "vendor_time") - */ - private $vendorTime; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "arrive_date", $this->arriveDate); - $this->setUserParam($params, "arrive_station", $this->arriveStation); - $this->setUserParam($params, "arrive_time", $this->arriveTime); - $this->setUserParam($params, "code", $this->code); - $this->setUserParam($params, "crh_order", $this->crhOrder); - $this->setUserParam($params, "depart_date", $this->departDate); - $this->setUserParam($params, "depart_station", $this->departStation); - $this->setUserParam($params, "depart_time", $this->departTime); - $this->setUserParam($params, "msg", $this->msg); - $this->setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "passengers", $this->passengers); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "request_id", $this->requestId); - $this->setUserParam($params, "train_no", $this->trainNo); - $this->setUserParam($params, "use_id_card_in", $this->useIdCardIn); - $this->setUserParam($params, "vendor_time", $this->vendorTime); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.callback.otcbook"; - } - - public function setArriveDate($arriveDate) - { - $this->arriveDate = $arriveDate; - } - - public function setArriveStation($arriveStation) - { - $this->arriveStation = $arriveStation; - } - - public function setArriveTime($arriveTime) - { - $this->arriveTime = $arriveTime; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setCrhOrder($crhOrder) - { - $this->crhOrder = $crhOrder; - } - - public function setDepartDate($departDate) - { - $this->departDate = $departDate; - } - - public function setDepartStation($departStation) - { - $this->departStation = $departStation; - } - - public function setDepartTime($departTime) - { - $this->departTime = $departTime; - } - - public function setMsg($msg) - { - $this->msg = $msg; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setPassengers($passengers) - { - $this->passengers = $passengers; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - public function setTrainNo($trainNo) - { - $this->trainNo = $trainNo; - } - - public function setUseIdCardIn($useIdCardIn) - { - $this->useIdCardIn = $useIdCardIn; - } - - public function setVendorTime($vendorTime) - { - $this->vendorTime = $vendorTime; - } - -} - -class PddTrainCallbackOtcbookRequest_PassengersItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "card_no") - */ - private $cardNo; - - /** - * @JsonProperty(String, "card_type") - */ - private $cardType; - - /** - * @JsonProperty(String, "coach_name") - */ - private $coachName; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "seat_name") - */ - private $seatName; - - /** - * @JsonProperty(Integer, "seat_position") - */ - private $seatPosition; - - /** - * @JsonProperty(Integer, "seat_type") - */ - private $seatType; - - /** - * @JsonProperty(String, "sub_crh_order") - */ - private $subCrhOrder; - - /** - * @JsonProperty(String, "sub_order_id") - */ - private $subOrderId; - - /** - * @JsonProperty(String, "sub_pdd_order_id") - */ - private $subPddOrderId; - - /** - * @JsonProperty(Long, "ticket_price") - */ - private $ticketPrice; - - /** - * @JsonProperty(Integer, "ticket_type") - */ - private $ticketType; - - public function setCardNo($cardNo) - { - $this->cardNo = $cardNo; - } - - public function setCardType($cardType) - { - $this->cardType = $cardType; - } - - public function setCoachName($coachName) - { - $this->coachName = $coachName; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setSeatName($seatName) - { - $this->seatName = $seatName; - } - - public function setSeatPosition($seatPosition) - { - $this->seatPosition = $seatPosition; - } - - public function setSeatType($seatType) - { - $this->seatType = $seatType; - } - - public function setSubCrhOrder($subCrhOrder) - { - $this->subCrhOrder = $subCrhOrder; - } - - public function setSubOrderId($subOrderId) - { - $this->subOrderId = $subOrderId; - } - - public function setSubPddOrderId($subPddOrderId) - { - $this->subPddOrderId = $subPddOrderId; - } - - public function setTicketPrice($ticketPrice) - { - $this->ticketPrice = $ticketPrice; - } - - public function setTicketType($ticketType) - { - $this->ticketType = $ticketType; - } - -} +, "passengers") + */ + private $passengers; + + /** + * @JsonProperty(String, "pdd_order_id") + */ + private $pddOrderId; + + /** + * @JsonProperty(String, "request_id") + */ + private $requestId; + + /** + * @JsonProperty(String, "train_no") + */ + private $trainNo; + + /** + * @JsonProperty(Integer, "use_id_card_in") + */ + private $useIdCardIn; + + /** + * @JsonProperty(String, "vendor_time") + */ + private $vendorTime; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "arrive_date", $this->arriveDate); + $this->setUserParam($params, "arrive_station", $this->arriveStation); + $this->setUserParam($params, "arrive_time", $this->arriveTime); + $this->setUserParam($params, "code", $this->code); + $this->setUserParam($params, "crh_order", $this->crhOrder); + $this->setUserParam($params, "depart_date", $this->departDate); + $this->setUserParam($params, "depart_station", $this->departStation); + $this->setUserParam($params, "depart_time", $this->departTime); + $this->setUserParam($params, "msg", $this->msg); + $this->setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "passengers", $this->passengers); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "request_id", $this->requestId); + $this->setUserParam($params, "train_no", $this->trainNo); + $this->setUserParam($params, "use_id_card_in", $this->useIdCardIn); + $this->setUserParam($params, "vendor_time", $this->vendorTime); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.callback.otcbook"; + } + + public function setArriveDate($arriveDate) + { + $this->arriveDate = $arriveDate; + } + + public function setArriveStation($arriveStation) + { + $this->arriveStation = $arriveStation; + } + + public function setArriveTime($arriveTime) + { + $this->arriveTime = $arriveTime; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setCrhOrder($crhOrder) + { + $this->crhOrder = $crhOrder; + } + + public function setDepartDate($departDate) + { + $this->departDate = $departDate; + } + + public function setDepartStation($departStation) + { + $this->departStation = $departStation; + } + + public function setDepartTime($departTime) + { + $this->departTime = $departTime; + } + + public function setMsg($msg) + { + $this->msg = $msg; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setPassengers($passengers) + { + $this->passengers = $passengers; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setRequestId($requestId) + { + $this->requestId = $requestId; + } + + public function setTrainNo($trainNo) + { + $this->trainNo = $trainNo; + } + + public function setUseIdCardIn($useIdCardIn) + { + $this->useIdCardIn = $useIdCardIn; + } + + public function setVendorTime($vendorTime) + { + $this->vendorTime = $vendorTime; + } + +} + +class PddTrainCallbackOtcbookRequest_PassengersItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "card_no") + */ + private $cardNo; + + /** + * @JsonProperty(String, "card_type") + */ + private $cardType; + + /** + * @JsonProperty(String, "coach_name") + */ + private $coachName; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "seat_name") + */ + private $seatName; + + /** + * @JsonProperty(Integer, "seat_position") + */ + private $seatPosition; + + /** + * @JsonProperty(Integer, "seat_type") + */ + private $seatType; + + /** + * @JsonProperty(String, "sub_crh_order") + */ + private $subCrhOrder; + + /** + * @JsonProperty(String, "sub_order_id") + */ + private $subOrderId; + + /** + * @JsonProperty(String, "sub_pdd_order_id") + */ + private $subPddOrderId; + + /** + * @JsonProperty(Long, "ticket_price") + */ + private $ticketPrice; + + /** + * @JsonProperty(Integer, "ticket_type") + */ + private $ticketType; + + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + } + + public function setCardType($cardType) + { + $this->cardType = $cardType; + } + + public function setCoachName($coachName) + { + $this->coachName = $coachName; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setSeatName($seatName) + { + $this->seatName = $seatName; + } + + public function setSeatPosition($seatPosition) + { + $this->seatPosition = $seatPosition; + } + + public function setSeatType($seatType) + { + $this->seatType = $seatType; + } + + public function setSubCrhOrder($subCrhOrder) + { + $this->subCrhOrder = $subCrhOrder; + } + + public function setSubOrderId($subOrderId) + { + $this->subOrderId = $subOrderId; + } + + public function setSubPddOrderId($subPddOrderId) + { + $this->subPddOrderId = $subPddOrderId; + } + + public function setTicketPrice($ticketPrice) + { + $this->ticketPrice = $ticketPrice; + } + + public function setTicketType($ticketType) + { + $this->ticketType = $ticketType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackRefundConfirmRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackRefundConfirmRequest.php index aaff0bd..944da5d 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackRefundConfirmRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackRefundConfirmRequest.php @@ -1,154 +1,154 @@ -setUserParam($params, "card_no", $this->cardNo); - $this->setUserParam($params, "code", $this->code); - $this->setUserParam($params, "msg", $this->msg); - $this->setUserParam($params, "name", $this->name); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "refund_money", $this->refundMoney); - $this->setUserParam($params, "refund_type", $this->refundType); - $this->setUserParam($params, "request_id", $this->requestId); - $this->setUserParam($params, "sub_order_id", $this->subOrderId); - $this->setUserParam($params, "sub_pdd_order_id", $this->subPddOrderId); - $this->setUserParam($params, "vendor_time", $this->vendorTime); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.callback.refund.confirm"; - } - - public function setCardNo($cardNo) - { - $this->cardNo = $cardNo; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setMsg($msg) - { - $this->msg = $msg; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setRefundMoney($refundMoney) - { - $this->refundMoney = $refundMoney; - } - - public function setRefundType($refundType) - { - $this->refundType = $refundType; - } - - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - public function setSubOrderId($subOrderId) - { - $this->subOrderId = $subOrderId; - } - - public function setSubPddOrderId($subPddOrderId) - { - $this->subPddOrderId = $subPddOrderId; - } - - public function setVendorTime($vendorTime) - { - $this->vendorTime = $vendorTime; - } - -} +setUserParam($params, "card_no", $this->cardNo); + $this->setUserParam($params, "code", $this->code); + $this->setUserParam($params, "msg", $this->msg); + $this->setUserParam($params, "name", $this->name); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "refund_money", $this->refundMoney); + $this->setUserParam($params, "refund_type", $this->refundType); + $this->setUserParam($params, "request_id", $this->requestId); + $this->setUserParam($params, "sub_order_id", $this->subOrderId); + $this->setUserParam($params, "sub_pdd_order_id", $this->subPddOrderId); + $this->setUserParam($params, "vendor_time", $this->vendorTime); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.callback.refund.confirm"; + } + + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setMsg($msg) + { + $this->msg = $msg; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setRefundMoney($refundMoney) + { + $this->refundMoney = $refundMoney; + } + + public function setRefundType($refundType) + { + $this->refundType = $refundType; + } + + public function setRequestId($requestId) + { + $this->requestId = $requestId; + } + + public function setSubOrderId($subOrderId) + { + $this->subOrderId = $subOrderId; + } + + public function setSubPddOrderId($subPddOrderId) + { + $this->subPddOrderId = $subPddOrderId; + } + + public function setVendorTime($vendorTime) + { + $this->vendorTime = $vendorTime; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackReserveRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackReserveRequest.php index 4b712cb..c154c8a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackReserveRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackReserveRequest.php @@ -1,350 +1,350 @@ -, "passengers") - */ - private $passengers; - - /** - * @JsonProperty(String, "pay_limit_time") - */ - private $payLimitTime; - - /** - * @JsonProperty(String, "pdd_order_id") - */ - private $pddOrderId; - - /** - * @JsonProperty(String, "request_id") - */ - private $requestId; - - /** - * @JsonProperty(String, "train_no") - */ - private $trainNo; - - /** - * @JsonProperty(Integer, "use_id_card_in") - */ - private $useIdCardIn; - - /** - * @JsonProperty(String, "vendor_time") - */ - private $vendorTime; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "arrive_date", $this->arriveDate); - $this->setUserParam($params, "arrive_station", $this->arriveStation); - $this->setUserParam($params, "arrive_time", $this->arriveTime); - $this->setUserParam($params, "code", $this->code); - $this->setUserParam($params, "crh_order", $this->crhOrder); - $this->setUserParam($params, "depart_date", $this->departDate); - $this->setUserParam($params, "depart_station", $this->departStation); - $this->setUserParam($params, "depart_time", $this->departTime); - $this->setUserParam($params, "msg", $this->msg); - $this->setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "passengers", $this->passengers); - $this->setUserParam($params, "pay_limit_time", $this->payLimitTime); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "request_id", $this->requestId); - $this->setUserParam($params, "train_no", $this->trainNo); - $this->setUserParam($params, "use_id_card_in", $this->useIdCardIn); - $this->setUserParam($params, "vendor_time", $this->vendorTime); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.callback.reserve"; - } - - public function setArriveDate($arriveDate) - { - $this->arriveDate = $arriveDate; - } - - public function setArriveStation($arriveStation) - { - $this->arriveStation = $arriveStation; - } - - public function setArriveTime($arriveTime) - { - $this->arriveTime = $arriveTime; - } - - public function setCode($code) - { - $this->code = $code; - } - - public function setCrhOrder($crhOrder) - { - $this->crhOrder = $crhOrder; - } - - public function setDepartDate($departDate) - { - $this->departDate = $departDate; - } - - public function setDepartStation($departStation) - { - $this->departStation = $departStation; - } - - public function setDepartTime($departTime) - { - $this->departTime = $departTime; - } - - public function setMsg($msg) - { - $this->msg = $msg; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setPassengers($passengers) - { - $this->passengers = $passengers; - } - - public function setPayLimitTime($payLimitTime) - { - $this->payLimitTime = $payLimitTime; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - public function setTrainNo($trainNo) - { - $this->trainNo = $trainNo; - } - - public function setUseIdCardIn($useIdCardIn) - { - $this->useIdCardIn = $useIdCardIn; - } - - public function setVendorTime($vendorTime) - { - $this->vendorTime = $vendorTime; - } - -} - -class PddTrainCallbackReserveRequest_PassengersItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "card_no") - */ - private $cardNo; - - /** - * @JsonProperty(String, "card_type") - */ - private $cardType; - - /** - * @JsonProperty(String, "coach_name") - */ - private $coachName; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "seat_name") - */ - private $seatName; - - /** - * @JsonProperty(Integer, "seat_type") - */ - private $seatType; - - /** - * @JsonProperty(String, "sub_crh_order") - */ - private $subCrhOrder; - - /** - * @JsonProperty(String, "sub_order_id") - */ - private $subOrderId; - - /** - * @JsonProperty(String, "sub_pdd_order_id") - */ - private $subPddOrderId; - - /** - * @JsonProperty(Long, "ticket_price") - */ - private $ticketPrice; - - /** - * @JsonProperty(Integer, "ticket_type") - */ - private $ticketType; - - /** - * @JsonProperty(Integer, "is_choose_seat") - */ - private $isChooseSeat; - - public function setCardNo($cardNo) - { - $this->cardNo = $cardNo; - } - - public function setCardType($cardType) - { - $this->cardType = $cardType; - } - - public function setCoachName($coachName) - { - $this->coachName = $coachName; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setSeatName($seatName) - { - $this->seatName = $seatName; - } - - public function setSeatType($seatType) - { - $this->seatType = $seatType; - } - - public function setSubCrhOrder($subCrhOrder) - { - $this->subCrhOrder = $subCrhOrder; - } - - public function setSubOrderId($subOrderId) - { - $this->subOrderId = $subOrderId; - } - - public function setSubPddOrderId($subPddOrderId) - { - $this->subPddOrderId = $subPddOrderId; - } - - public function setTicketPrice($ticketPrice) - { - $this->ticketPrice = $ticketPrice; - } - - public function setTicketType($ticketType) - { - $this->ticketType = $ticketType; - } - - public function setIsChooseSeat($isChooseSeat) - { - $this->isChooseSeat = $isChooseSeat; - } - -} +, "passengers") + */ + private $passengers; + + /** + * @JsonProperty(String, "pay_limit_time") + */ + private $payLimitTime; + + /** + * @JsonProperty(String, "pdd_order_id") + */ + private $pddOrderId; + + /** + * @JsonProperty(String, "request_id") + */ + private $requestId; + + /** + * @JsonProperty(String, "train_no") + */ + private $trainNo; + + /** + * @JsonProperty(Integer, "use_id_card_in") + */ + private $useIdCardIn; + + /** + * @JsonProperty(String, "vendor_time") + */ + private $vendorTime; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "arrive_date", $this->arriveDate); + $this->setUserParam($params, "arrive_station", $this->arriveStation); + $this->setUserParam($params, "arrive_time", $this->arriveTime); + $this->setUserParam($params, "code", $this->code); + $this->setUserParam($params, "crh_order", $this->crhOrder); + $this->setUserParam($params, "depart_date", $this->departDate); + $this->setUserParam($params, "depart_station", $this->departStation); + $this->setUserParam($params, "depart_time", $this->departTime); + $this->setUserParam($params, "msg", $this->msg); + $this->setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "passengers", $this->passengers); + $this->setUserParam($params, "pay_limit_time", $this->payLimitTime); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "request_id", $this->requestId); + $this->setUserParam($params, "train_no", $this->trainNo); + $this->setUserParam($params, "use_id_card_in", $this->useIdCardIn); + $this->setUserParam($params, "vendor_time", $this->vendorTime); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.callback.reserve"; + } + + public function setArriveDate($arriveDate) + { + $this->arriveDate = $arriveDate; + } + + public function setArriveStation($arriveStation) + { + $this->arriveStation = $arriveStation; + } + + public function setArriveTime($arriveTime) + { + $this->arriveTime = $arriveTime; + } + + public function setCode($code) + { + $this->code = $code; + } + + public function setCrhOrder($crhOrder) + { + $this->crhOrder = $crhOrder; + } + + public function setDepartDate($departDate) + { + $this->departDate = $departDate; + } + + public function setDepartStation($departStation) + { + $this->departStation = $departStation; + } + + public function setDepartTime($departTime) + { + $this->departTime = $departTime; + } + + public function setMsg($msg) + { + $this->msg = $msg; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setPassengers($passengers) + { + $this->passengers = $passengers; + } + + public function setPayLimitTime($payLimitTime) + { + $this->payLimitTime = $payLimitTime; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setRequestId($requestId) + { + $this->requestId = $requestId; + } + + public function setTrainNo($trainNo) + { + $this->trainNo = $trainNo; + } + + public function setUseIdCardIn($useIdCardIn) + { + $this->useIdCardIn = $useIdCardIn; + } + + public function setVendorTime($vendorTime) + { + $this->vendorTime = $vendorTime; + } + +} + +class PddTrainCallbackReserveRequest_PassengersItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "card_no") + */ + private $cardNo; + + /** + * @JsonProperty(String, "card_type") + */ + private $cardType; + + /** + * @JsonProperty(String, "coach_name") + */ + private $coachName; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "seat_name") + */ + private $seatName; + + /** + * @JsonProperty(Integer, "seat_type") + */ + private $seatType; + + /** + * @JsonProperty(String, "sub_crh_order") + */ + private $subCrhOrder; + + /** + * @JsonProperty(String, "sub_order_id") + */ + private $subOrderId; + + /** + * @JsonProperty(String, "sub_pdd_order_id") + */ + private $subPddOrderId; + + /** + * @JsonProperty(Long, "ticket_price") + */ + private $ticketPrice; + + /** + * @JsonProperty(Integer, "ticket_type") + */ + private $ticketType; + + /** + * @JsonProperty(Integer, "is_choose_seat") + */ + private $isChooseSeat; + + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + } + + public function setCardType($cardType) + { + $this->cardType = $cardType; + } + + public function setCoachName($coachName) + { + $this->coachName = $coachName; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setSeatName($seatName) + { + $this->seatName = $seatName; + } + + public function setSeatType($seatType) + { + $this->seatType = $seatType; + } + + public function setSubCrhOrder($subCrhOrder) + { + $this->subCrhOrder = $subCrhOrder; + } + + public function setSubOrderId($subOrderId) + { + $this->subOrderId = $subOrderId; + } + + public function setSubPddOrderId($subPddOrderId) + { + $this->subPddOrderId = $subPddOrderId; + } + + public function setTicketPrice($ticketPrice) + { + $this->ticketPrice = $ticketPrice; + } + + public function setTicketType($ticketType) + { + $this->ticketType = $ticketType; + } + + public function setIsChooseSeat($isChooseSeat) + { + $this->isChooseSeat = $isChooseSeat; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelChangeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelChangeRequest.php index 3d45550..e552412 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelChangeRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelChangeRequest.php @@ -1,96 +1,96 @@ -, "passenger_infos") - */ - private $passengerInfos; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "passenger_infos", $this->passengerInfos); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.cancel.change"; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setPassengerInfos($passengerInfos) - { - $this->passengerInfos = $passengerInfos; - } - -} - -class PddTrainCancelChangeRequest_PassengerInfosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "new_sub_order_Id") - */ - private $newSubOrderId; - - /** - * @JsonProperty(String, "old_sub_order_id") - */ - private $oldSubOrderId; - - public function setNewSubOrderId($newSubOrderId) - { - $this->newSubOrderId = $newSubOrderId; - } - - public function setOldSubOrderId($oldSubOrderId) - { - $this->oldSubOrderId = $oldSubOrderId; - } - -} +, "passenger_infos") + */ + private $passengerInfos; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "passenger_infos", $this->passengerInfos); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.cancel.change"; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setPassengerInfos($passengerInfos) + { + $this->passengerInfos = $passengerInfos; + } + +} + +class PddTrainCancelChangeRequest_PassengerInfosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "new_sub_order_Id") + */ + private $newSubOrderId; + + /** + * @JsonProperty(String, "old_sub_order_id") + */ + private $oldSubOrderId; + + public function setNewSubOrderId($newSubOrderId) + { + $this->newSubOrderId = $newSubOrderId; + } + + public function setOldSubOrderId($oldSubOrderId) + { + $this->oldSubOrderId = $oldSubOrderId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelReserveRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelReserveRequest.php index 0bc9767..4f70fc6 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelReserveRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelReserveRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "order_id", $this->orderId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.cancel.reserve"; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - -} +setUserParam($params, "order_id", $this->orderId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.cancel.reserve"; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainChangeTicketRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainChangeTicketRequest.php index 07bbf2a..090e4bc 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainChangeTicketRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainChangeTicketRequest.php @@ -1,304 +1,304 @@ -, "new_passenger_infos") - */ - private $newPassengerInfos; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "new_depart_station", $this->newDepartStation); - $this->setUserParam($params, "new_arrive_station", $this->newArriveStation); - $this->setUserParam($params, "new_train_date", $this->newTrainDate); - $this->setUserParam($params, "new_train_no", $this->newTrainNo); - $this->setUserParam($params, "new_depart_time", $this->newDepartTime); - $this->setUserParam($params, "new_arrive_time", $this->newArriveTime); - $this->setUserParam($params, "new_seat_type", $this->newSeatType); - $this->setUserParam($params, "new_choose_seat", $this->newChooseSeat); - $this->setUserParam($params, "new_passenger_infos", $this->newPassengerInfos); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.change.ticket"; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setNewDepartStation($newDepartStation) - { - $this->newDepartStation = $newDepartStation; - } - - public function setNewArriveStation($newArriveStation) - { - $this->newArriveStation = $newArriveStation; - } - - public function setNewTrainDate($newTrainDate) - { - $this->newTrainDate = $newTrainDate; - } - - public function setNewTrainNo($newTrainNo) - { - $this->newTrainNo = $newTrainNo; - } - - public function setNewDepartTime($newDepartTime) - { - $this->newDepartTime = $newDepartTime; - } - - public function setNewArriveTime($newArriveTime) - { - $this->newArriveTime = $newArriveTime; - } - - public function setNewSeatType($newSeatType) - { - $this->newSeatType = $newSeatType; - } - - public function setNewChooseSeat($newChooseSeat) - { - $this->newChooseSeat = $newChooseSeat; - } - - public function setNewPassengerInfos($newPassengerInfos) - { - $this->newPassengerInfos = $newPassengerInfos; - } - -} - -class PddTrainChangeTicketRequest_NewPassengerInfosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "card_type") - */ - private $cardType; - - /** - * @JsonProperty(String, "card_no") - */ - private $cardNo; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(Integer, "ticket_type") - */ - private $ticketType; - - /** - * @JsonProperty(Integer, "seat_type") - */ - private $seatType; - - /** - * @JsonProperty(Long, "ticket_price") - */ - private $ticketPrice; - - /** - * @JsonProperty(String, "sub_order_id") - */ - private $subOrderId; - - /** - * @JsonProperty(String, "new_sub_pdd_order_id") - */ - private $newSubPddOrderId; - - /** - * @JsonProperty(String, "birthday") - */ - private $birthday; - - /** - * @JsonProperty(String, "effective_date") - */ - private $effectiveDate; - - /** - * @JsonProperty(String, "sex") - */ - private $sex; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "email") - */ - private $email; - - public function setCardType($cardType) - { - $this->cardType = $cardType; - } - - public function setCardNo($cardNo) - { - $this->cardNo = $cardNo; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setTicketType($ticketType) - { - $this->ticketType = $ticketType; - } - - public function setSeatType($seatType) - { - $this->seatType = $seatType; - } - - public function setTicketPrice($ticketPrice) - { - $this->ticketPrice = $ticketPrice; - } - - public function setSubOrderId($subOrderId) - { - $this->subOrderId = $subOrderId; - } - - public function setNewSubPddOrderId($newSubPddOrderId) - { - $this->newSubPddOrderId = $newSubPddOrderId; - } - - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } - - public function setEffectiveDate($effectiveDate) - { - $this->effectiveDate = $effectiveDate; - } - - public function setSex($sex) - { - $this->sex = $sex; - } - - public function setCountry($country) - { - $this->country = $country; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setEmail($email) - { - $this->email = $email; - } - -} +, "new_passenger_infos") + */ + private $newPassengerInfos; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "new_depart_station", $this->newDepartStation); + $this->setUserParam($params, "new_arrive_station", $this->newArriveStation); + $this->setUserParam($params, "new_train_date", $this->newTrainDate); + $this->setUserParam($params, "new_train_no", $this->newTrainNo); + $this->setUserParam($params, "new_depart_time", $this->newDepartTime); + $this->setUserParam($params, "new_arrive_time", $this->newArriveTime); + $this->setUserParam($params, "new_seat_type", $this->newSeatType); + $this->setUserParam($params, "new_choose_seat", $this->newChooseSeat); + $this->setUserParam($params, "new_passenger_infos", $this->newPassengerInfos); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.change.ticket"; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setNewDepartStation($newDepartStation) + { + $this->newDepartStation = $newDepartStation; + } + + public function setNewArriveStation($newArriveStation) + { + $this->newArriveStation = $newArriveStation; + } + + public function setNewTrainDate($newTrainDate) + { + $this->newTrainDate = $newTrainDate; + } + + public function setNewTrainNo($newTrainNo) + { + $this->newTrainNo = $newTrainNo; + } + + public function setNewDepartTime($newDepartTime) + { + $this->newDepartTime = $newDepartTime; + } + + public function setNewArriveTime($newArriveTime) + { + $this->newArriveTime = $newArriveTime; + } + + public function setNewSeatType($newSeatType) + { + $this->newSeatType = $newSeatType; + } + + public function setNewChooseSeat($newChooseSeat) + { + $this->newChooseSeat = $newChooseSeat; + } + + public function setNewPassengerInfos($newPassengerInfos) + { + $this->newPassengerInfos = $newPassengerInfos; + } + +} + +class PddTrainChangeTicketRequest_NewPassengerInfosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "card_type") + */ + private $cardType; + + /** + * @JsonProperty(String, "card_no") + */ + private $cardNo; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(Integer, "ticket_type") + */ + private $ticketType; + + /** + * @JsonProperty(Integer, "seat_type") + */ + private $seatType; + + /** + * @JsonProperty(Long, "ticket_price") + */ + private $ticketPrice; + + /** + * @JsonProperty(String, "sub_order_id") + */ + private $subOrderId; + + /** + * @JsonProperty(String, "new_sub_pdd_order_id") + */ + private $newSubPddOrderId; + + /** + * @JsonProperty(String, "birthday") + */ + private $birthday; + + /** + * @JsonProperty(String, "effective_date") + */ + private $effectiveDate; + + /** + * @JsonProperty(String, "sex") + */ + private $sex; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "email") + */ + private $email; + + public function setCardType($cardType) + { + $this->cardType = $cardType; + } + + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setTicketType($ticketType) + { + $this->ticketType = $ticketType; + } + + public function setSeatType($seatType) + { + $this->seatType = $seatType; + } + + public function setTicketPrice($ticketPrice) + { + $this->ticketPrice = $ticketPrice; + } + + public function setSubOrderId($subOrderId) + { + $this->subOrderId = $subOrderId; + } + + public function setNewSubPddOrderId($newSubPddOrderId) + { + $this->newSubPddOrderId = $newSubPddOrderId; + } + + public function setBirthday($birthday) + { + $this->birthday = $birthday; + } + + public function setEffectiveDate($effectiveDate) + { + $this->effectiveDate = $effectiveDate; + } + + public function setSex($sex) + { + $this->sex = $sex; + } + + public function setCountry($country) + { + $this->country = $country; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setEmail($email) + { + $this->email = $email; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmChangeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmChangeRequest.php index bc4ec53..724b1b0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmChangeRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmChangeRequest.php @@ -1,116 +1,116 @@ -, "new_passenger_infos") - */ - private $newPassengerInfos; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "new_passenger_infos", $this->newPassengerInfos); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.confirm.change"; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setNewPassengerInfos($newPassengerInfos) - { - $this->newPassengerInfos = $newPassengerInfos; - } - -} - -class PddTrainConfirmChangeRequest_NewPassengerInfosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "order_id") - */ - private $orderId; - - /** - * @JsonProperty(String, "new_sub_order_id") - */ - private $newSubOrderId; - - /** - * @JsonProperty(String, "old_sub_order_Id") - */ - private $oldSubOrderId; - - /** - * @JsonProperty(String, "order_sn") - */ - private $orderSn; - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setNewSubOrderId($newSubOrderId) - { - $this->newSubOrderId = $newSubOrderId; - } - - public function setOldSubOrderId($oldSubOrderId) - { - $this->oldSubOrderId = $oldSubOrderId; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} +, "new_passenger_infos") + */ + private $newPassengerInfos; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "new_passenger_infos", $this->newPassengerInfos); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.confirm.change"; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setNewPassengerInfos($newPassengerInfos) + { + $this->newPassengerInfos = $newPassengerInfos; + } + +} + +class PddTrainConfirmChangeRequest_NewPassengerInfosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "order_id") + */ + private $orderId; + + /** + * @JsonProperty(String, "new_sub_order_id") + */ + private $newSubOrderId; + + /** + * @JsonProperty(String, "old_sub_order_Id") + */ + private $oldSubOrderId; + + /** + * @JsonProperty(String, "order_sn") + */ + private $orderSn; + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setNewSubOrderId($newSubOrderId) + { + $this->newSubOrderId = $newSubOrderId; + } + + public function setOldSubOrderId($oldSubOrderId) + { + $this->oldSubOrderId = $oldSubOrderId; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmPayRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmPayRequest.php index 72a5754..c7ef4a6 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmPayRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmPayRequest.php @@ -1,106 +1,106 @@ -, "order_infos") - */ - private $orderInfos; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "order_infos", $this->orderInfos); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.confirm.pay"; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setOrderInfos($orderInfos) - { - $this->orderInfos = $orderInfos; - } - -} - -class PddTrainConfirmPayRequest_OrderInfosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "travel_sn") - */ - private $travelSn; - - /** - * @JsonProperty(String, "mall_order") - */ - private $mallOrder; - - /** - * @JsonProperty(String, "order_sn") - */ - private $orderSn; - - public function setTravelSn($travelSn) - { - $this->travelSn = $travelSn; - } - - public function setMallOrder($mallOrder) - { - $this->mallOrder = $mallOrder; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} +, "order_infos") + */ + private $orderInfos; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "order_infos", $this->orderInfos); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.confirm.pay"; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setOrderInfos($orderInfos) + { + $this->orderInfos = $orderInfos; + } + +} + +class PddTrainConfirmPayRequest_OrderInfosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "travel_sn") + */ + private $travelSn; + + /** + * @JsonProperty(String, "mall_order") + */ + private $mallOrder; + + /** + * @JsonProperty(String, "order_sn") + */ + private $orderSn; + + public function setTravelSn($travelSn) + { + $this->travelSn = $travelSn; + } + + public function setMallOrder($mallOrder) + { + $this->mallOrder = $mallOrder; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateOtcbookRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateOtcbookRequest.php index 1eb977c..dfed6d7 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateOtcbookRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateOtcbookRequest.php @@ -1,356 +1,356 @@ -, "otc_choose_seat") - */ - private $otcChooseSeat; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCreateOtcbookRequest_PassengerInfosItem>, "passenger_infos") - */ - private $passengerInfos; - - /** - * @JsonProperty(String, "request_id") - */ - private $requestId; - - /** - * @JsonProperty(String, "comment") - */ - private $comment; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "depart_station", $this->departStation); - $this->setUserParam($params, "arrive_station", $this->arriveStation); - $this->setUserParam($params, "train_date", $this->trainDate); - $this->setUserParam($params, "train_no", $this->trainNo); - $this->setUserParam($params, "depart_time", $this->departTime); - $this->setUserParam($params, "arrive_time", $this->arriveTime); - $this->setUserParam($params, "accept_other_seat", $this->acceptOtherSeat); - $this->setUserParam($params, "accept_stand_seat", $this->acceptStandSeat); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "otc_choose_seat", $this->otcChooseSeat); - $this->setUserParam($params, "passenger_infos", $this->passengerInfos); - $this->setUserParam($params, "request_id", $this->requestId); - $this->setUserParam($params, "comment", $this->comment); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.create.otcbook"; - } - - public function setDepartStation($departStation) - { - $this->departStation = $departStation; - } - - public function setArriveStation($arriveStation) - { - $this->arriveStation = $arriveStation; - } - - public function setTrainDate($trainDate) - { - $this->trainDate = $trainDate; - } - - public function setTrainNo($trainNo) - { - $this->trainNo = $trainNo; - } - - public function setDepartTime($departTime) - { - $this->departTime = $departTime; - } - - public function setArriveTime($arriveTime) - { - $this->arriveTime = $arriveTime; - } - - public function setAcceptOtherSeat($acceptOtherSeat) - { - $this->acceptOtherSeat = $acceptOtherSeat; - } - - public function setAcceptStandSeat($acceptStandSeat) - { - $this->acceptStandSeat = $acceptStandSeat; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setOtcChooseSeat($otcChooseSeat) - { - $this->otcChooseSeat = $otcChooseSeat; - } - - public function setPassengerInfos($passengerInfos) - { - $this->passengerInfos = $passengerInfos; - } - - public function setRequestId($requestId) - { - $this->requestId = $requestId; - } - - public function setComment($comment) - { - $this->comment = $comment; - } - -} - -class PddTrainCreateOtcbookRequest_OtcChooseSeatItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "otc_choose_seat_type") - */ - private $otcChooseSeatType; - - /** - * @JsonProperty(Integer, "count") - */ - private $count; - - public function setOtcChooseSeatType($otcChooseSeatType) - { - $this->otcChooseSeatType = $otcChooseSeatType; - } - - public function setCount($count) - { - $this->count = $count; - } - -} - -class PddTrainCreateOtcbookRequest_PassengerInfosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "card_type") - */ - private $cardType; - - /** - * @JsonProperty(String, "card_no") - */ - private $cardNo; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(Integer, "ticket_type") - */ - private $ticketType; - - /** - * @JsonProperty(Integer, "seat_type") - */ - private $seatType; - - /** - * @JsonProperty(Long, "ticket_price") - */ - private $ticketPrice; - - /** - * @JsonProperty(String, "sub_pdd_order_id") - */ - private $subPddOrderId; - - /** - * @JsonProperty(String, "birthday") - */ - private $birthday; - - /** - * @JsonProperty(String, "effective_date") - */ - private $effectiveDate; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "sex") - */ - private $sex; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - /** - * @JsonProperty(String, "email") - */ - private $email; - - /** - * @JsonProperty(String, "comment") - */ - private $comment; - - public function setCardType($cardType) - { - $this->cardType = $cardType; - } - - public function setCardNo($cardNo) - { - $this->cardNo = $cardNo; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setTicketType($ticketType) - { - $this->ticketType = $ticketType; - } - - public function setSeatType($seatType) - { - $this->seatType = $seatType; - } - - public function setTicketPrice($ticketPrice) - { - $this->ticketPrice = $ticketPrice; - } - - public function setSubPddOrderId($subPddOrderId) - { - $this->subPddOrderId = $subPddOrderId; - } - - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } - - public function setEffectiveDate($effectiveDate) - { - $this->effectiveDate = $effectiveDate; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setSex($sex) - { - $this->sex = $sex; - } - - public function setCountry($country) - { - $this->country = $country; - } - - public function setEmail($email) - { - $this->email = $email; - } - - public function setComment($comment) - { - $this->comment = $comment; - } - -} +, "otc_choose_seat") + */ + private $otcChooseSeat; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCreateOtcbookRequest_PassengerInfosItem>, "passenger_infos") + */ + private $passengerInfos; + + /** + * @JsonProperty(String, "request_id") + */ + private $requestId; + + /** + * @JsonProperty(String, "comment") + */ + private $comment; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "depart_station", $this->departStation); + $this->setUserParam($params, "arrive_station", $this->arriveStation); + $this->setUserParam($params, "train_date", $this->trainDate); + $this->setUserParam($params, "train_no", $this->trainNo); + $this->setUserParam($params, "depart_time", $this->departTime); + $this->setUserParam($params, "arrive_time", $this->arriveTime); + $this->setUserParam($params, "accept_other_seat", $this->acceptOtherSeat); + $this->setUserParam($params, "accept_stand_seat", $this->acceptStandSeat); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "otc_choose_seat", $this->otcChooseSeat); + $this->setUserParam($params, "passenger_infos", $this->passengerInfos); + $this->setUserParam($params, "request_id", $this->requestId); + $this->setUserParam($params, "comment", $this->comment); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.create.otcbook"; + } + + public function setDepartStation($departStation) + { + $this->departStation = $departStation; + } + + public function setArriveStation($arriveStation) + { + $this->arriveStation = $arriveStation; + } + + public function setTrainDate($trainDate) + { + $this->trainDate = $trainDate; + } + + public function setTrainNo($trainNo) + { + $this->trainNo = $trainNo; + } + + public function setDepartTime($departTime) + { + $this->departTime = $departTime; + } + + public function setArriveTime($arriveTime) + { + $this->arriveTime = $arriveTime; + } + + public function setAcceptOtherSeat($acceptOtherSeat) + { + $this->acceptOtherSeat = $acceptOtherSeat; + } + + public function setAcceptStandSeat($acceptStandSeat) + { + $this->acceptStandSeat = $acceptStandSeat; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setOtcChooseSeat($otcChooseSeat) + { + $this->otcChooseSeat = $otcChooseSeat; + } + + public function setPassengerInfos($passengerInfos) + { + $this->passengerInfos = $passengerInfos; + } + + public function setRequestId($requestId) + { + $this->requestId = $requestId; + } + + public function setComment($comment) + { + $this->comment = $comment; + } + +} + +class PddTrainCreateOtcbookRequest_OtcChooseSeatItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "otc_choose_seat_type") + */ + private $otcChooseSeatType; + + /** + * @JsonProperty(Integer, "count") + */ + private $count; + + public function setOtcChooseSeatType($otcChooseSeatType) + { + $this->otcChooseSeatType = $otcChooseSeatType; + } + + public function setCount($count) + { + $this->count = $count; + } + +} + +class PddTrainCreateOtcbookRequest_PassengerInfosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "card_type") + */ + private $cardType; + + /** + * @JsonProperty(String, "card_no") + */ + private $cardNo; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(Integer, "ticket_type") + */ + private $ticketType; + + /** + * @JsonProperty(Integer, "seat_type") + */ + private $seatType; + + /** + * @JsonProperty(Long, "ticket_price") + */ + private $ticketPrice; + + /** + * @JsonProperty(String, "sub_pdd_order_id") + */ + private $subPddOrderId; + + /** + * @JsonProperty(String, "birthday") + */ + private $birthday; + + /** + * @JsonProperty(String, "effective_date") + */ + private $effectiveDate; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "sex") + */ + private $sex; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + /** + * @JsonProperty(String, "email") + */ + private $email; + + /** + * @JsonProperty(String, "comment") + */ + private $comment; + + public function setCardType($cardType) + { + $this->cardType = $cardType; + } + + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setTicketType($ticketType) + { + $this->ticketType = $ticketType; + } + + public function setSeatType($seatType) + { + $this->seatType = $seatType; + } + + public function setTicketPrice($ticketPrice) + { + $this->ticketPrice = $ticketPrice; + } + + public function setSubPddOrderId($subPddOrderId) + { + $this->subPddOrderId = $subPddOrderId; + } + + public function setBirthday($birthday) + { + $this->birthday = $birthday; + } + + public function setEffectiveDate($effectiveDate) + { + $this->effectiveDate = $effectiveDate; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setSex($sex) + { + $this->sex = $sex; + } + + public function setCountry($country) + { + $this->country = $country; + } + + public function setEmail($email) + { + $this->email = $email; + } + + public function setComment($comment) + { + $this->comment = $comment; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateReserveRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateReserveRequest.php index 71dcf56..a8e6968 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateReserveRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateReserveRequest.php @@ -1,316 +1,316 @@ -, "passenger_infos") - */ - private $passengerInfos; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "depart_station", $this->departStation); - $this->setUserParam($params, "arrive_station", $this->arriveStation); - $this->setUserParam($params, "train_date", $this->trainDate); - $this->setUserParam($params, "train_no", $this->trainNo); - $this->setUserParam($params, "depart_time", $this->departTime); - $this->setUserParam($params, "arrive_time", $this->arriveTime); - $this->setUserParam($params, "no_seat", $this->noSeat); - $this->setUserParam($params, "choose_seat", $this->chooseSeat); - $this->setUserParam($params, "crh_account", $this->crhAccount); - $this->setUserParam($params, "crh_password", $this->crhPassword); - $this->setUserParam($params, "switch_account", $this->switchAccount); - $this->setUserParam($params, "passenger_infos", $this->passengerInfos); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.create.reserve"; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setDepartStation($departStation) - { - $this->departStation = $departStation; - } - - public function setArriveStation($arriveStation) - { - $this->arriveStation = $arriveStation; - } - - public function setTrainDate($trainDate) - { - $this->trainDate = $trainDate; - } - - public function setTrainNo($trainNo) - { - $this->trainNo = $trainNo; - } - - public function setDepartTime($departTime) - { - $this->departTime = $departTime; - } - - public function setArriveTime($arriveTime) - { - $this->arriveTime = $arriveTime; - } - - public function setNoSeat($noSeat) - { - $this->noSeat = $noSeat; - } - - public function setChooseSeat($chooseSeat) - { - $this->chooseSeat = $chooseSeat; - } - - public function setCrhAccount($crhAccount) - { - $this->crhAccount = $crhAccount; - } - - public function setCrhPassword($crhPassword) - { - $this->crhPassword = $crhPassword; - } - - public function setSwitchAccount($switchAccount) - { - $this->switchAccount = $switchAccount; - } - - public function setPassengerInfos($passengerInfos) - { - $this->passengerInfos = $passengerInfos; - } - -} - -class PddTrainCreateReserveRequest_PassengerInfosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "card_type") - */ - private $cardType; - - /** - * @JsonProperty(String, "card_no") - */ - private $cardNo; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(Integer, "ticket_type") - */ - private $ticketType; - - /** - * @JsonProperty(Integer, "seat_type") - */ - private $seatType; - - /** - * @JsonProperty(Long, "ticket_price") - */ - private $ticketPrice; - - /** - * @JsonProperty(String, "sub_pdd_order_id") - */ - private $subPddOrderId; - - /** - * @JsonProperty(String, "birthday") - */ - private $birthday; - - /** - * @JsonProperty(String, "effective_Date") - */ - private $effectiveDate; - - /** - * @JsonProperty(String, "sex") - */ - private $sex; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "email") - */ - private $email; - - public function setCardType($cardType) - { - $this->cardType = $cardType; - } - - public function setCardNo($cardNo) - { - $this->cardNo = $cardNo; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setTicketType($ticketType) - { - $this->ticketType = $ticketType; - } - - public function setSeatType($seatType) - { - $this->seatType = $seatType; - } - - public function setTicketPrice($ticketPrice) - { - $this->ticketPrice = $ticketPrice; - } - - public function setSubPddOrderId($subPddOrderId) - { - $this->subPddOrderId = $subPddOrderId; - } - - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } - - public function setEffectiveDate($effectiveDate) - { - $this->effectiveDate = $effectiveDate; - } - - public function setSex($sex) - { - $this->sex = $sex; - } - - public function setCountry($country) - { - $this->country = $country; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setEmail($email) - { - $this->email = $email; - } - -} +, "passenger_infos") + */ + private $passengerInfos; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "depart_station", $this->departStation); + $this->setUserParam($params, "arrive_station", $this->arriveStation); + $this->setUserParam($params, "train_date", $this->trainDate); + $this->setUserParam($params, "train_no", $this->trainNo); + $this->setUserParam($params, "depart_time", $this->departTime); + $this->setUserParam($params, "arrive_time", $this->arriveTime); + $this->setUserParam($params, "no_seat", $this->noSeat); + $this->setUserParam($params, "choose_seat", $this->chooseSeat); + $this->setUserParam($params, "crh_account", $this->crhAccount); + $this->setUserParam($params, "crh_password", $this->crhPassword); + $this->setUserParam($params, "switch_account", $this->switchAccount); + $this->setUserParam($params, "passenger_infos", $this->passengerInfos); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.create.reserve"; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setDepartStation($departStation) + { + $this->departStation = $departStation; + } + + public function setArriveStation($arriveStation) + { + $this->arriveStation = $arriveStation; + } + + public function setTrainDate($trainDate) + { + $this->trainDate = $trainDate; + } + + public function setTrainNo($trainNo) + { + $this->trainNo = $trainNo; + } + + public function setDepartTime($departTime) + { + $this->departTime = $departTime; + } + + public function setArriveTime($arriveTime) + { + $this->arriveTime = $arriveTime; + } + + public function setNoSeat($noSeat) + { + $this->noSeat = $noSeat; + } + + public function setChooseSeat($chooseSeat) + { + $this->chooseSeat = $chooseSeat; + } + + public function setCrhAccount($crhAccount) + { + $this->crhAccount = $crhAccount; + } + + public function setCrhPassword($crhPassword) + { + $this->crhPassword = $crhPassword; + } + + public function setSwitchAccount($switchAccount) + { + $this->switchAccount = $switchAccount; + } + + public function setPassengerInfos($passengerInfos) + { + $this->passengerInfos = $passengerInfos; + } + +} + +class PddTrainCreateReserveRequest_PassengerInfosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "card_type") + */ + private $cardType; + + /** + * @JsonProperty(String, "card_no") + */ + private $cardNo; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(Integer, "ticket_type") + */ + private $ticketType; + + /** + * @JsonProperty(Integer, "seat_type") + */ + private $seatType; + + /** + * @JsonProperty(Long, "ticket_price") + */ + private $ticketPrice; + + /** + * @JsonProperty(String, "sub_pdd_order_id") + */ + private $subPddOrderId; + + /** + * @JsonProperty(String, "birthday") + */ + private $birthday; + + /** + * @JsonProperty(String, "effective_Date") + */ + private $effectiveDate; + + /** + * @JsonProperty(String, "sex") + */ + private $sex; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "email") + */ + private $email; + + public function setCardType($cardType) + { + $this->cardType = $cardType; + } + + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setTicketType($ticketType) + { + $this->ticketType = $ticketType; + } + + public function setSeatType($seatType) + { + $this->seatType = $seatType; + } + + public function setTicketPrice($ticketPrice) + { + $this->ticketPrice = $ticketPrice; + } + + public function setSubPddOrderId($subPddOrderId) + { + $this->subPddOrderId = $subPddOrderId; + } + + public function setBirthday($birthday) + { + $this->birthday = $birthday; + } + + public function setEffectiveDate($effectiveDate) + { + $this->effectiveDate = $effectiveDate; + } + + public function setSex($sex) + { + $this->sex = $sex; + } + + public function setCountry($country) + { + $this->country = $country; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setEmail($email) + { + $this->email = $email; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCancelRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCancelRequest.php index bb2b21a..a02d51b 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCancelRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCancelRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.grab.cancel"; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - -} +setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.grab.cancel"; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCreateRequest.php index 49e636d..869decd 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCreateRequest.php @@ -1,313 +1,313 @@ -, "depart_dates") - */ - private $departDates; - - /** - * @JsonProperty(String, "have_account") - */ - private $haveAccount; - - /** - * @JsonProperty(String, "crh_account") - */ - private $crhAccount; - - /** - * @JsonProperty(String, "crh_password") - */ - private $crhPassword; - - /** - * @JsonProperty(String, "sum_ticket_price") - */ - private $sumTicketPrice; - - /** - * @JsonProperty(List, "seat_types") - */ - private $seatTypes; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainGrabCreateRequest_TravelInfosItem>, "travel_infos") - */ - private $travelInfos; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainGrabCreateRequest_PassengerInfosItem>, "passenger_infos") - */ - private $passengerInfos; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - $this->setUserParam($params, "end_time", $this->endTime); - $this->setUserParam($params, "depart_dates", $this->departDates); - $this->setUserParam($params, "have_account", $this->haveAccount); - $this->setUserParam($params, "crh_account", $this->crhAccount); - $this->setUserParam($params, "crh_password", $this->crhPassword); - $this->setUserParam($params, "sum_ticket_price", $this->sumTicketPrice); - $this->setUserParam($params, "seat_types", $this->seatTypes); - $this->setUserParam($params, "travel_infos", $this->travelInfos); - $this->setUserParam($params, "passenger_infos", $this->passengerInfos); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.grab.create"; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - - public function setEndTime($endTime) - { - $this->endTime = $endTime; - } - - public function setDepartDates($departDates) - { - $this->departDates = $departDates; - } - - public function setHaveAccount($haveAccount) - { - $this->haveAccount = $haveAccount; - } - - public function setCrhAccount($crhAccount) - { - $this->crhAccount = $crhAccount; - } - - public function setCrhPassword($crhPassword) - { - $this->crhPassword = $crhPassword; - } - - public function setSumTicketPrice($sumTicketPrice) - { - $this->sumTicketPrice = $sumTicketPrice; - } - - public function setSeatTypes($seatTypes) - { - $this->seatTypes = $seatTypes; - } - - public function setTravelInfos($travelInfos) - { - $this->travelInfos = $travelInfos; - } - - public function setPassengerInfos($passengerInfos) - { - $this->passengerInfos = $passengerInfos; - } - -} - -class PddTrainGrabCreateRequest_TravelInfosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "train_no") - */ - private $trainNo; - - /** - * @JsonProperty(String, "depart_station") - */ - private $departStation; - - /** - * @JsonProperty(String, "arrive_station") - */ - private $arriveStation; - - public function setTrainNo($trainNo) - { - $this->trainNo = $trainNo; - } - - public function setDepartStation($departStation) - { - $this->departStation = $departStation; - } - - public function setArriveStation($arriveStation) - { - $this->arriveStation = $arriveStation; - } - -} - -class PddTrainGrabCreateRequest_PassengerInfosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "card_no") - */ - private $cardNo; - - /** - * @JsonProperty(String, "card_type") - */ - private $cardType; - - /** - * @JsonProperty(Integer, "ticket_type") - */ - private $ticketType; - - /** - * @JsonProperty(String, "sub_pdd_order_id") - */ - private $subPddOrderId; - - /** - * @JsonProperty(String, "effective_date") - */ - private $effectiveDate; - - /** - * @JsonProperty(String, "sex") - */ - private $sex; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - /** - * @JsonProperty(String, "birthday") - */ - private $birthday; - - /** - * @JsonProperty(String, "order_sn") - */ - private $orderSn; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "email") - */ - private $email; - - public function setName($name) - { - $this->name = $name; - } - - public function setCardNo($cardNo) - { - $this->cardNo = $cardNo; - } - - public function setCardType($cardType) - { - $this->cardType = $cardType; - } - - public function setTicketType($ticketType) - { - $this->ticketType = $ticketType; - } - - public function setSubPddOrderId($subPddOrderId) - { - $this->subPddOrderId = $subPddOrderId; - } - - public function setEffectiveDate($effectiveDate) - { - $this->effectiveDate = $effectiveDate; - } - - public function setSex($sex) - { - $this->sex = $sex; - } - - public function setCountry($country) - { - $this->country = $country; - } - - public function setBirthday($birthday) - { - $this->birthday = $birthday; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setEmail($email) - { - $this->email = $email; - } - -} +, "depart_dates") + */ + private $departDates; + + /** + * @JsonProperty(String, "have_account") + */ + private $haveAccount; + + /** + * @JsonProperty(String, "crh_account") + */ + private $crhAccount; + + /** + * @JsonProperty(String, "crh_password") + */ + private $crhPassword; + + /** + * @JsonProperty(String, "sum_ticket_price") + */ + private $sumTicketPrice; + + /** + * @JsonProperty(List, "seat_types") + */ + private $seatTypes; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainGrabCreateRequest_TravelInfosItem>, "travel_infos") + */ + private $travelInfos; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainGrabCreateRequest_PassengerInfosItem>, "passenger_infos") + */ + private $passengerInfos; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + $this->setUserParam($params, "end_time", $this->endTime); + $this->setUserParam($params, "depart_dates", $this->departDates); + $this->setUserParam($params, "have_account", $this->haveAccount); + $this->setUserParam($params, "crh_account", $this->crhAccount); + $this->setUserParam($params, "crh_password", $this->crhPassword); + $this->setUserParam($params, "sum_ticket_price", $this->sumTicketPrice); + $this->setUserParam($params, "seat_types", $this->seatTypes); + $this->setUserParam($params, "travel_infos", $this->travelInfos); + $this->setUserParam($params, "passenger_infos", $this->passengerInfos); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.grab.create"; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + + public function setEndTime($endTime) + { + $this->endTime = $endTime; + } + + public function setDepartDates($departDates) + { + $this->departDates = $departDates; + } + + public function setHaveAccount($haveAccount) + { + $this->haveAccount = $haveAccount; + } + + public function setCrhAccount($crhAccount) + { + $this->crhAccount = $crhAccount; + } + + public function setCrhPassword($crhPassword) + { + $this->crhPassword = $crhPassword; + } + + public function setSumTicketPrice($sumTicketPrice) + { + $this->sumTicketPrice = $sumTicketPrice; + } + + public function setSeatTypes($seatTypes) + { + $this->seatTypes = $seatTypes; + } + + public function setTravelInfos($travelInfos) + { + $this->travelInfos = $travelInfos; + } + + public function setPassengerInfos($passengerInfos) + { + $this->passengerInfos = $passengerInfos; + } + +} + +class PddTrainGrabCreateRequest_TravelInfosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "train_no") + */ + private $trainNo; + + /** + * @JsonProperty(String, "depart_station") + */ + private $departStation; + + /** + * @JsonProperty(String, "arrive_station") + */ + private $arriveStation; + + public function setTrainNo($trainNo) + { + $this->trainNo = $trainNo; + } + + public function setDepartStation($departStation) + { + $this->departStation = $departStation; + } + + public function setArriveStation($arriveStation) + { + $this->arriveStation = $arriveStation; + } + +} + +class PddTrainGrabCreateRequest_PassengerInfosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "card_no") + */ + private $cardNo; + + /** + * @JsonProperty(String, "card_type") + */ + private $cardType; + + /** + * @JsonProperty(Integer, "ticket_type") + */ + private $ticketType; + + /** + * @JsonProperty(String, "sub_pdd_order_id") + */ + private $subPddOrderId; + + /** + * @JsonProperty(String, "effective_date") + */ + private $effectiveDate; + + /** + * @JsonProperty(String, "sex") + */ + private $sex; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + /** + * @JsonProperty(String, "birthday") + */ + private $birthday; + + /** + * @JsonProperty(String, "order_sn") + */ + private $orderSn; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "email") + */ + private $email; + + public function setName($name) + { + $this->name = $name; + } + + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + } + + public function setCardType($cardType) + { + $this->cardType = $cardType; + } + + public function setTicketType($ticketType) + { + $this->ticketType = $ticketType; + } + + public function setSubPddOrderId($subPddOrderId) + { + $this->subPddOrderId = $subPddOrderId; + } + + public function setEffectiveDate($effectiveDate) + { + $this->effectiveDate = $effectiveDate; + } + + public function setSex($sex) + { + $this->sex = $sex; + } + + public function setCountry($country) + { + $this->country = $country; + } + + public function setBirthday($birthday) + { + $this->birthday = $birthday; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setEmail($email) + { + $this->email = $email; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabOrderQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabOrderQueryRequest.php index faa7677..eb0ac77 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabOrderQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabOrderQueryRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "order_id", $this->orderId); - $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.grab.order.query"; - } - - public function setOrderId($orderId) - { - $this->orderId = $orderId; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - -} +setUserParam($params, "order_id", $this->orderId); + $this->setUserParam($params, "pdd_order_id", $this->pddOrderId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.grab.order.query"; + } + + public function setOrderId($orderId) + { + $this->orderId = $orderId; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainQueryOrderDetailRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainQueryOrderDetailRequest.php index cae94fa..e478f96 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainQueryOrderDetailRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainQueryOrderDetailRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "pdd_order_id", $this->pddOrderId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.query.order.detail"; - } - - public function setPddOrderId($pddOrderId) - { - $this->pddOrderId = $pddOrderId; - } - -} +setUserParam($params, "pdd_order_id", $this->pddOrderId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.query.order.detail"; + } + + public function setPddOrderId($pddOrderId) + { + $this->pddOrderId = $pddOrderId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainTicketRefundRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainTicketRefundRequest.php index e37aea1..2a81134 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddTrainTicketRefundRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainTicketRefundRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "sub_order_id", $this->subOrderId); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.train.ticket.refund"; - } - - public function setSubOrderId($subOrderId) - { - $this->subOrderId = $subOrderId; - } - -} +setUserParam($params, "sub_order_id", $this->subOrderId); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.train.ticket.refund"; + } + + public function setSubOrderId($subOrderId) + { + $this->subOrderId = $subOrderId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVasOrderSearchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVasOrderSearchRequest.php index 1446d80..a328c5a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddVasOrderSearchRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVasOrderSearchRequest.php @@ -1,154 +1,154 @@ -setUserParam($params, "create_time_end", $this->createTimeEnd); - $this->setUserParam($params, "create_time_start", $this->createTimeStart); - $this->setUserParam($params, "mall_id", $this->mallId); - $this->setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "order_status", $this->orderStatus); - $this->setUserParam($params, "page", $this->page); - $this->setUserParam($params, "page_size", $this->pageSize); - $this->setUserParam($params, "pay_time_end", $this->payTimeEnd); - $this->setUserParam($params, "pay_time_start", $this->payTimeStart); - $this->setUserParam($params, "sku_id", $this->skuId); - $this->setUserParam($params, "refund_status", $this->refundStatus); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.vas.order.search"; - } - - public function setCreateTimeEnd($createTimeEnd) - { - $this->createTimeEnd = $createTimeEnd; - } - - public function setCreateTimeStart($createTimeStart) - { - $this->createTimeStart = $createTimeStart; - } - - public function setMallId($mallId) - { - $this->mallId = $mallId; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setOrderStatus($orderStatus) - { - $this->orderStatus = $orderStatus; - } - - public function setPage($page) - { - $this->page = $page; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - - public function setPayTimeEnd($payTimeEnd) - { - $this->payTimeEnd = $payTimeEnd; - } - - public function setPayTimeStart($payTimeStart) - { - $this->payTimeStart = $payTimeStart; - } - - public function setSkuId($skuId) - { - $this->skuId = $skuId; - } - - public function setRefundStatus($refundStatus) - { - $this->refundStatus = $refundStatus; - } - -} +setUserParam($params, "create_time_end", $this->createTimeEnd); + $this->setUserParam($params, "create_time_start", $this->createTimeStart); + $this->setUserParam($params, "mall_id", $this->mallId); + $this->setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "order_status", $this->orderStatus); + $this->setUserParam($params, "page", $this->page); + $this->setUserParam($params, "page_size", $this->pageSize); + $this->setUserParam($params, "pay_time_end", $this->payTimeEnd); + $this->setUserParam($params, "pay_time_start", $this->payTimeStart); + $this->setUserParam($params, "sku_id", $this->skuId); + $this->setUserParam($params, "refund_status", $this->refundStatus); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.vas.order.search"; + } + + public function setCreateTimeEnd($createTimeEnd) + { + $this->createTimeEnd = $createTimeEnd; + } + + public function setCreateTimeStart($createTimeStart) + { + $this->createTimeStart = $createTimeStart; + } + + public function setMallId($mallId) + { + $this->mallId = $mallId; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setOrderStatus($orderStatus) + { + $this->orderStatus = $orderStatus; + } + + public function setPage($page) + { + $this->page = $page; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + + public function setPayTimeEnd($payTimeEnd) + { + $this->payTimeEnd = $payTimeEnd; + } + + public function setPayTimeStart($payTimeStart) + { + $this->payTimeStart = $payTimeStart; + } + + public function setSkuId($skuId) + { + $this->skuId = $skuId; + } + + public function setRefundStatus($refundStatus) + { + $this->refundStatus = $refundStatus; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVirtualGameServerQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVirtualGameServerQueryRequest.php index e8a83db..e4890ab 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddVirtualGameServerQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVirtualGameServerQueryRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "goods_config_code", $this->goodsConfigCode); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.virtual.game.server.query"; - } - - public function setGoodsConfigCode($goodsConfigCode) - { - $this->goodsConfigCode = $goodsConfigCode; - } - -} +setUserParam($params, "goods_config_code", $this->goodsConfigCode); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.virtual.game.server.query"; + } + + public function setGoodsConfigCode($goodsConfigCode) + { + $this->goodsConfigCode = $goodsConfigCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVirtualMobileChargeNotifyRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVirtualMobileChargeNotifyRequest.php index 5d06fef..f58f4fa 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddVirtualMobileChargeNotifyRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVirtualMobileChargeNotifyRequest.php @@ -1,157 +1,157 @@ -, "charge_certi") - */ - private $chargeCerti; - - /** - * @JsonProperty(String, "order_sn") - */ - private $orderSn; - - /** - * @JsonProperty(String, "outer_order_sn") - */ - private $outerOrderSn; - - /** - * @JsonProperty(String, "status") - */ - private $status; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "charge_certi", $this->chargeCerti); - $this->setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "outer_order_sn", $this->outerOrderSn); - $this->setUserParam($params, "status", $this->status); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.virtual.mobile.charge.notify"; - } - - public function setChargeCerti($chargeCerti) - { - $this->chargeCerti = $chargeCerti; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setOuterOrderSn($outerOrderSn) - { - $this->outerOrderSn = $outerOrderSn; - } - - public function setStatus($status) - { - $this->status = $status; - } - -} - -class PddVirtualMobileChargeNotifyRequest_ChargeCertiItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "charge_certi_amount") - */ - private $chargeCertiAmount; - - /** - * @JsonProperty(String, "charge_certi_date") - */ - private $chargeCertiDate; - - /** - * @JsonProperty(String, "charge_certi_mobile") - */ - private $chargeCertiMobile; - - /** - * @JsonProperty(String, "charge_certi_mobile_tail") - */ - private $chargeCertiMobileTail; - - /** - * @JsonProperty(String, "charge_certi_order_sn") - */ - private $chargeCertiOrderSn; - - /** - * @JsonProperty(String, "charge_certi_text") - */ - private $chargeCertiText; - - /** - * @JsonProperty(String, "merchant_outer_id") - */ - private $merchantOuterId; - - public function setChargeCertiAmount($chargeCertiAmount) - { - $this->chargeCertiAmount = $chargeCertiAmount; - } - - public function setChargeCertiDate($chargeCertiDate) - { - $this->chargeCertiDate = $chargeCertiDate; - } - - public function setChargeCertiMobile($chargeCertiMobile) - { - $this->chargeCertiMobile = $chargeCertiMobile; - } - - public function setChargeCertiMobileTail($chargeCertiMobileTail) - { - $this->chargeCertiMobileTail = $chargeCertiMobileTail; - } - - public function setChargeCertiOrderSn($chargeCertiOrderSn) - { - $this->chargeCertiOrderSn = $chargeCertiOrderSn; - } - - public function setChargeCertiText($chargeCertiText) - { - $this->chargeCertiText = $chargeCertiText; - } - - public function setMerchantOuterId($merchantOuterId) - { - $this->merchantOuterId = $merchantOuterId; - } - -} +, "charge_certi") + */ + private $chargeCerti; + + /** + * @JsonProperty(String, "order_sn") + */ + private $orderSn; + + /** + * @JsonProperty(String, "outer_order_sn") + */ + private $outerOrderSn; + + /** + * @JsonProperty(String, "status") + */ + private $status; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "charge_certi", $this->chargeCerti); + $this->setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "outer_order_sn", $this->outerOrderSn); + $this->setUserParam($params, "status", $this->status); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.virtual.mobile.charge.notify"; + } + + public function setChargeCerti($chargeCerti) + { + $this->chargeCerti = $chargeCerti; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setOuterOrderSn($outerOrderSn) + { + $this->outerOrderSn = $outerOrderSn; + } + + public function setStatus($status) + { + $this->status = $status; + } + +} + +class PddVirtualMobileChargeNotifyRequest_ChargeCertiItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "charge_certi_amount") + */ + private $chargeCertiAmount; + + /** + * @JsonProperty(String, "charge_certi_date") + */ + private $chargeCertiDate; + + /** + * @JsonProperty(String, "charge_certi_mobile") + */ + private $chargeCertiMobile; + + /** + * @JsonProperty(String, "charge_certi_mobile_tail") + */ + private $chargeCertiMobileTail; + + /** + * @JsonProperty(String, "charge_certi_order_sn") + */ + private $chargeCertiOrderSn; + + /** + * @JsonProperty(String, "charge_certi_text") + */ + private $chargeCertiText; + + /** + * @JsonProperty(String, "merchant_outer_id") + */ + private $merchantOuterId; + + public function setChargeCertiAmount($chargeCertiAmount) + { + $this->chargeCertiAmount = $chargeCertiAmount; + } + + public function setChargeCertiDate($chargeCertiDate) + { + $this->chargeCertiDate = $chargeCertiDate; + } + + public function setChargeCertiMobile($chargeCertiMobile) + { + $this->chargeCertiMobile = $chargeCertiMobile; + } + + public function setChargeCertiMobileTail($chargeCertiMobileTail) + { + $this->chargeCertiMobileTail = $chargeCertiMobileTail; + } + + public function setChargeCertiOrderSn($chargeCertiOrderSn) + { + $this->chargeCertiOrderSn = $chargeCertiOrderSn; + } + + public function setChargeCertiText($chargeCertiText) + { + $this->chargeCertiText = $chargeCertiText; + } + + public function setMerchantOuterId($merchantOuterId) + { + $this->merchantOuterId = $merchantOuterId; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherAppointmentInfoSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherAppointmentInfoSendRequest.php index db134d0..34b0ad4 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherAppointmentInfoSendRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherAppointmentInfoSendRequest.php @@ -1,118 +1,118 @@ -, "voucher_list") - */ - private $voucherList; - - /** - * @JsonProperty(Integer, "logistics_type") - */ - private $logisticsType; - - /** - * @JsonProperty(Long, "appointment_time") - */ - private $appointmentTime; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "out_biz_no", $this->outBizNo); - $this->setUserParam($params, "voucher_list", $this->voucherList); - $this->setUserParam($params, "logistics_type", $this->logisticsType); - $this->setUserParam($params, "appointment_time", $this->appointmentTime); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.voucher.appointment.info.send"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setOutBizNo($outBizNo) - { - $this->outBizNo = $outBizNo; - } - - public function setVoucherList($voucherList) - { - $this->voucherList = $voucherList; - } - - public function setLogisticsType($logisticsType) - { - $this->logisticsType = $logisticsType; - } - - public function setAppointmentTime($appointmentTime) - { - $this->appointmentTime = $appointmentTime; - } - -} - -class PddVoucherAppointmentInfoSendRequest_VoucherListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "voucher_id") - */ - private $voucherId; - - /** - * @JsonProperty(String, "voucher_no") - */ - private $voucherNo; - - public function setVoucherId($voucherId) - { - $this->voucherId = $voucherId; - } - - public function setVoucherNo($voucherNo) - { - $this->voucherNo = $voucherNo; - } - -} +, "voucher_list") + */ + private $voucherList; + + /** + * @JsonProperty(Integer, "logistics_type") + */ + private $logisticsType; + + /** + * @JsonProperty(Long, "appointment_time") + */ + private $appointmentTime; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "out_biz_no", $this->outBizNo); + $this->setUserParam($params, "voucher_list", $this->voucherList); + $this->setUserParam($params, "logistics_type", $this->logisticsType); + $this->setUserParam($params, "appointment_time", $this->appointmentTime); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.voucher.appointment.info.send"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setOutBizNo($outBizNo) + { + $this->outBizNo = $outBizNo; + } + + public function setVoucherList($voucherList) + { + $this->voucherList = $voucherList; + } + + public function setLogisticsType($logisticsType) + { + $this->logisticsType = $logisticsType; + } + + public function setAppointmentTime($appointmentTime) + { + $this->appointmentTime = $appointmentTime; + } + +} + +class PddVoucherAppointmentInfoSendRequest_VoucherListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "voucher_id") + */ + private $voucherId; + + /** + * @JsonProperty(String, "voucher_no") + */ + private $voucherNo; + + public function setVoucherId($voucherId) + { + $this->voucherId = $voucherId; + } + + public function setVoucherNo($voucherNo) + { + $this->voucherNo = $voucherNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherOtaCardVerificationRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherOtaCardVerificationRequest.php index 0f8e8df..d28778f 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherOtaCardVerificationRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherOtaCardVerificationRequest.php @@ -1,66 +1,66 @@ -setUserParam($params, "card_no", $this->cardNo); - $this->setUserParam($params, "store_id", $this->storeId); - $this->setUserParam($params, "store_name", $this->storeName); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.voucher.ota.card.verification"; - } - - public function setCardNo($cardNo) - { - $this->cardNo = $cardNo; - } - - public function setStoreId($storeId) - { - $this->storeId = $storeId; - } - - public function setStoreName($storeName) - { - $this->storeName = $storeName; - } - -} +setUserParam($params, "card_no", $this->cardNo); + $this->setUserParam($params, "store_id", $this->storeId); + $this->setUserParam($params, "store_name", $this->storeName); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.voucher.ota.card.verification"; + } + + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + } + + public function setStoreId($storeId) + { + $this->storeId = $storeId; + } + + public function setStoreName($storeName) + { + $this->storeName = $storeName; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherPhysicalGoodsSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherPhysicalGoodsSendRequest.php index 5541792..a121e4b 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherPhysicalGoodsSendRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherPhysicalGoodsSendRequest.php @@ -1,173 +1,173 @@ -, "voucher_list") - */ - private $voucherList; - - /** - * @JsonProperty(Integer, "logistics_type") - */ - private $logisticsType; - - /** - * @JsonProperty(String, "recipient") - */ - private $recipient; - - /** - * @JsonProperty(String, "recipient_mobile") - */ - private $recipientMobile; - - /** - * @JsonProperty(String, "recipient_address") - */ - private $recipientAddress; - - /** - * @JsonProperty(String, "logistics_no") - */ - private $logisticsNo; - - /** - * @JsonProperty(String, "logistics_company_id") - */ - private $logisticsCompanyId; - - /** - * @JsonProperty(String, "logistics_company") - */ - private $logisticsCompany; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "out_biz_no", $this->outBizNo); - $this->setUserParam($params, "voucher_list", $this->voucherList); - $this->setUserParam($params, "logistics_type", $this->logisticsType); - $this->setUserParam($params, "recipient", $this->recipient); - $this->setUserParam($params, "recipient_mobile", $this->recipientMobile); - $this->setUserParam($params, "recipient_address", $this->recipientAddress); - $this->setUserParam($params, "logistics_no", $this->logisticsNo); - $this->setUserParam($params, "logistics_company_id", $this->logisticsCompanyId); - $this->setUserParam($params, "logistics_company", $this->logisticsCompany); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.voucher.physical.goods.send"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setOutBizNo($outBizNo) - { - $this->outBizNo = $outBizNo; - } - - public function setVoucherList($voucherList) - { - $this->voucherList = $voucherList; - } - - public function setLogisticsType($logisticsType) - { - $this->logisticsType = $logisticsType; - } - - public function setRecipient($recipient) - { - $this->recipient = $recipient; - } - - public function setRecipientMobile($recipientMobile) - { - $this->recipientMobile = $recipientMobile; - } - - public function setRecipientAddress($recipientAddress) - { - $this->recipientAddress = $recipientAddress; - } - - public function setLogisticsNo($logisticsNo) - { - $this->logisticsNo = $logisticsNo; - } - - public function setLogisticsCompanyId($logisticsCompanyId) - { - $this->logisticsCompanyId = $logisticsCompanyId; - } - - public function setLogisticsCompany($logisticsCompany) - { - $this->logisticsCompany = $logisticsCompany; - } - -} - -class PddVoucherPhysicalGoodsSendRequest_VoucherListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "voucher_id") - */ - private $voucherId; - - /** - * @JsonProperty(String, "voucher_no") - */ - private $voucherNo; - - public function setVoucherId($voucherId) - { - $this->voucherId = $voucherId; - } - - public function setVoucherNo($voucherNo) - { - $this->voucherNo = $voucherNo; - } - -} +, "voucher_list") + */ + private $voucherList; + + /** + * @JsonProperty(Integer, "logistics_type") + */ + private $logisticsType; + + /** + * @JsonProperty(String, "recipient") + */ + private $recipient; + + /** + * @JsonProperty(String, "recipient_mobile") + */ + private $recipientMobile; + + /** + * @JsonProperty(String, "recipient_address") + */ + private $recipientAddress; + + /** + * @JsonProperty(String, "logistics_no") + */ + private $logisticsNo; + + /** + * @JsonProperty(String, "logistics_company_id") + */ + private $logisticsCompanyId; + + /** + * @JsonProperty(String, "logistics_company") + */ + private $logisticsCompany; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "out_biz_no", $this->outBizNo); + $this->setUserParam($params, "voucher_list", $this->voucherList); + $this->setUserParam($params, "logistics_type", $this->logisticsType); + $this->setUserParam($params, "recipient", $this->recipient); + $this->setUserParam($params, "recipient_mobile", $this->recipientMobile); + $this->setUserParam($params, "recipient_address", $this->recipientAddress); + $this->setUserParam($params, "logistics_no", $this->logisticsNo); + $this->setUserParam($params, "logistics_company_id", $this->logisticsCompanyId); + $this->setUserParam($params, "logistics_company", $this->logisticsCompany); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.voucher.physical.goods.send"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setOutBizNo($outBizNo) + { + $this->outBizNo = $outBizNo; + } + + public function setVoucherList($voucherList) + { + $this->voucherList = $voucherList; + } + + public function setLogisticsType($logisticsType) + { + $this->logisticsType = $logisticsType; + } + + public function setRecipient($recipient) + { + $this->recipient = $recipient; + } + + public function setRecipientMobile($recipientMobile) + { + $this->recipientMobile = $recipientMobile; + } + + public function setRecipientAddress($recipientAddress) + { + $this->recipientAddress = $recipientAddress; + } + + public function setLogisticsNo($logisticsNo) + { + $this->logisticsNo = $logisticsNo; + } + + public function setLogisticsCompanyId($logisticsCompanyId) + { + $this->logisticsCompanyId = $logisticsCompanyId; + } + + public function setLogisticsCompany($logisticsCompany) + { + $this->logisticsCompany = $logisticsCompany; + } + +} + +class PddVoucherPhysicalGoodsSendRequest_VoucherListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "voucher_id") + */ + private $voucherId; + + /** + * @JsonProperty(String, "voucher_no") + */ + private $voucherNo; + + public function setVoucherId($voucherId) + { + $this->voucherId = $voucherId; + } + + public function setVoucherNo($voucherNo) + { + $this->voucherNo = $voucherNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherRealtimeOrdernoGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherRealtimeOrdernoGetRequest.php index ccfdb26..a9e37a4 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherRealtimeOrdernoGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherRealtimeOrdernoGetRequest.php @@ -1,64 +1,64 @@ -setUserParam($params, "data", $this->data); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.voucher.realtime.orderno.get"; - } - - public function setData($data) - { - $this->data = $data; - } - -} - -class PddVoucherRealtimeOrdernoGetRequest_Data extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "order_sn") - */ - private $orderSn; - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - -} +setUserParam($params, "data", $this->data); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.voucher.realtime.orderno.get"; + } + + public function setData($data) + { + $this->data = $data; + } + +} + +class PddVoucherRealtimeOrdernoGetRequest_Data extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "order_sn") + */ + private $orderSn; + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVirtualCardVerificationRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVirtualCardVerificationRequest.php index 7c94d36..c5c6bb5 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVirtualCardVerificationRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVirtualCardVerificationRequest.php @@ -1,105 +1,105 @@ -, "voucher_data_list") - */ - private $voucherDataList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "voucher_data_list", $this->voucherDataList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.voucher.virtual.card.verification"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setVoucherDataList($voucherDataList) - { - $this->voucherDataList = $voucherDataList; - } - -} - -class PddVoucherVirtualCardVerificationRequest_VoucherDataListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "out_trans_no") - */ - private $outTransNo; - - /** - * @JsonProperty(Long, "voucher_time") - */ - private $voucherTime; - - /** - * @JsonProperty(Integer, "voucher_status") - */ - private $voucherStatus; - - /** - * @JsonProperty(String, "voucher_no") - */ - private $voucherNo; - - public function setOutTransNo($outTransNo) - { - $this->outTransNo = $outTransNo; - } - - public function setVoucherTime($voucherTime) - { - $this->voucherTime = $voucherTime; - } - - public function setVoucherStatus($voucherStatus) - { - $this->voucherStatus = $voucherStatus; - } - - public function setVoucherNo($voucherNo) - { - $this->voucherNo = $voucherNo; - } - -} +, "voucher_data_list") + */ + private $voucherDataList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "voucher_data_list", $this->voucherDataList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.voucher.virtual.card.verification"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setVoucherDataList($voucherDataList) + { + $this->voucherDataList = $voucherDataList; + } + +} + +class PddVoucherVirtualCardVerificationRequest_VoucherDataListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "out_trans_no") + */ + private $outTransNo; + + /** + * @JsonProperty(Long, "voucher_time") + */ + private $voucherTime; + + /** + * @JsonProperty(Integer, "voucher_status") + */ + private $voucherStatus; + + /** + * @JsonProperty(String, "voucher_no") + */ + private $voucherNo; + + public function setOutTransNo($outTransNo) + { + $this->outTransNo = $outTransNo; + } + + public function setVoucherTime($voucherTime) + { + $this->voucherTime = $voucherTime; + } + + public function setVoucherStatus($voucherStatus) + { + $this->voucherStatus = $voucherStatus; + } + + public function setVoucherNo($voucherNo) + { + $this->voucherNo = $voucherNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherComplainRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherComplainRequest.php index 6bf1641..511b9cb 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherComplainRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherComplainRequest.php @@ -1,151 +1,151 @@ -, "voucher_list") - */ - private $voucherList; - - /** - * @JsonProperty(String, "complain_user") - */ - private $complainUser; - - /** - * @JsonProperty(String, "complain_user_mobile") - */ - private $complainUserMobile; - - /** - * @JsonProperty(String, "complain_content") - */ - private $complainContent; - - /** - * @JsonProperty(List, "complain_attachment_list") - */ - private $complainAttachmentList; - - /** - * @JsonProperty(Integer, "complain_type") - */ - private $complainType; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "out_biz_no", $this->outBizNo); - $this->setUserParam($params, "voucher_list", $this->voucherList); - $this->setUserParam($params, "complain_user", $this->complainUser); - $this->setUserParam($params, "complain_user_mobile", $this->complainUserMobile); - $this->setUserParam($params, "complain_content", $this->complainContent); - $this->setUserParam($params, "complain_attachment_list", $this->complainAttachmentList); - $this->setUserParam($params, "complain_type", $this->complainType); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.voucher.voucher.complain"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setOutBizNo($outBizNo) - { - $this->outBizNo = $outBizNo; - } - - public function setVoucherList($voucherList) - { - $this->voucherList = $voucherList; - } - - public function setComplainUser($complainUser) - { - $this->complainUser = $complainUser; - } - - public function setComplainUserMobile($complainUserMobile) - { - $this->complainUserMobile = $complainUserMobile; - } - - public function setComplainContent($complainContent) - { - $this->complainContent = $complainContent; - } - - public function setComplainAttachmentList($complainAttachmentList) - { - $this->complainAttachmentList = $complainAttachmentList; - } - - public function setComplainType($complainType) - { - $this->complainType = $complainType; - } - -} - -class PddVoucherVoucherComplainRequest_VoucherListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "voucher_id") - */ - private $voucherId; - - /** - * @JsonProperty(String, "voucher_no") - */ - private $voucherNo; - - public function setVoucherId($voucherId) - { - $this->voucherId = $voucherId; - } - - public function setVoucherNo($voucherNo) - { - $this->voucherNo = $voucherNo; - } - -} +, "voucher_list") + */ + private $voucherList; + + /** + * @JsonProperty(String, "complain_user") + */ + private $complainUser; + + /** + * @JsonProperty(String, "complain_user_mobile") + */ + private $complainUserMobile; + + /** + * @JsonProperty(String, "complain_content") + */ + private $complainContent; + + /** + * @JsonProperty(List, "complain_attachment_list") + */ + private $complainAttachmentList; + + /** + * @JsonProperty(Integer, "complain_type") + */ + private $complainType; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "out_biz_no", $this->outBizNo); + $this->setUserParam($params, "voucher_list", $this->voucherList); + $this->setUserParam($params, "complain_user", $this->complainUser); + $this->setUserParam($params, "complain_user_mobile", $this->complainUserMobile); + $this->setUserParam($params, "complain_content", $this->complainContent); + $this->setUserParam($params, "complain_attachment_list", $this->complainAttachmentList); + $this->setUserParam($params, "complain_type", $this->complainType); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.voucher.voucher.complain"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setOutBizNo($outBizNo) + { + $this->outBizNo = $outBizNo; + } + + public function setVoucherList($voucherList) + { + $this->voucherList = $voucherList; + } + + public function setComplainUser($complainUser) + { + $this->complainUser = $complainUser; + } + + public function setComplainUserMobile($complainUserMobile) + { + $this->complainUserMobile = $complainUserMobile; + } + + public function setComplainContent($complainContent) + { + $this->complainContent = $complainContent; + } + + public function setComplainAttachmentList($complainAttachmentList) + { + $this->complainAttachmentList = $complainAttachmentList; + } + + public function setComplainType($complainType) + { + $this->complainType = $complainType; + } + +} + +class PddVoucherVoucherComplainRequest_VoucherListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "voucher_id") + */ + private $voucherId; + + /** + * @JsonProperty(String, "voucher_no") + */ + private $voucherNo; + + public function setVoucherId($voucherId) + { + $this->voucherId = $voucherId; + } + + public function setVoucherNo($voucherNo) + { + $this->voucherNo = $voucherNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherInfoSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherInfoSendRequest.php index 1c0f1ef..e0939be 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherInfoSendRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherInfoSendRequest.php @@ -1,96 +1,96 @@ -, "voucher_list") - */ - private $voucherList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "order_sn", $this->orderSn); - $this->setUserParam($params, "out_biz_no", $this->outBizNo); - $this->setUserParam($params, "voucher_list", $this->voucherList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.voucher.voucher.info.send"; - } - - public function setOrderSn($orderSn) - { - $this->orderSn = $orderSn; - } - - public function setOutBizNo($outBizNo) - { - $this->outBizNo = $outBizNo; - } - - public function setVoucherList($voucherList) - { - $this->voucherList = $voucherList; - } - -} - -class PddVoucherVoucherInfoSendRequest_VoucherListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "voucher_id") - */ - private $voucherId; - - /** - * @JsonProperty(String, "voucher_no") - */ - private $voucherNo; - - public function setVoucherId($voucherId) - { - $this->voucherId = $voucherId; - } - - public function setVoucherNo($voucherNo) - { - $this->voucherNo = $voucherNo; - } - -} +, "voucher_list") + */ + private $voucherList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "order_sn", $this->orderSn); + $this->setUserParam($params, "out_biz_no", $this->outBizNo); + $this->setUserParam($params, "voucher_list", $this->voucherList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.voucher.voucher.info.send"; + } + + public function setOrderSn($orderSn) + { + $this->orderSn = $orderSn; + } + + public function setOutBizNo($outBizNo) + { + $this->outBizNo = $outBizNo; + } + + public function setVoucherList($voucherList) + { + $this->voucherList = $voucherList; + } + +} + +class PddVoucherVoucherInfoSendRequest_VoucherListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "voucher_id") + */ + private $voucherId; + + /** + * @JsonProperty(String, "voucher_no") + */ + private $voucherNo; + + public function setVoucherId($voucherId) + { + $this->voucherId = $voucherId; + } + + public function setVoucherNo($voucherNo) + { + $this->voucherNo = $voucherNo; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillCancelRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillCancelRequest.php index d8c6d3d..7046414 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillCancelRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillCancelRequest.php @@ -1,55 +1,55 @@ -setUserParam($params, "waybill_code", $this->waybillCode); - $this->setUserParam($params, "wp_code", $this->wpCode); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.waybill.cancel"; - } - - public function setWaybillCode($waybillCode) - { - $this->waybillCode = $waybillCode; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - -} +setUserParam($params, "waybill_code", $this->waybillCode); + $this->setUserParam($params, "wp_code", $this->wpCode); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.waybill.cancel"; + } + + public function setWaybillCode($waybillCode) + { + $this->waybillCode = $waybillCode; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillGetRequest.php index deba967..3b6d0ec 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillGetRequest.php @@ -1,554 +1,554 @@ -setUserParam($params, "param_waybill_cloud_print_apply_new_request", $this->paramWaybillCloudPrintApplyNewRequest); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.waybill.get"; - } - - public function setParamWaybillCloudPrintApplyNewRequest($paramWaybillCloudPrintApplyNewRequest) - { - $this->paramWaybillCloudPrintApplyNewRequest = $paramWaybillCloudPrintApplyNewRequest; - } - -} - -class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Boolean, "need_encrypt") - */ - private $needEncrypt; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender, "sender") - */ - private $sender; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem>, "trade_order_info_dtos") - */ - private $tradeOrderInfoDtos; - - /** - * @JsonProperty(String, "wp_code") - */ - private $wpCode; - - public function setNeedEncrypt($needEncrypt) - { - $this->needEncrypt = $needEncrypt; - } - - public function setSender($sender) - { - $this->sender = $sender; - } - - public function setTradeOrderInfoDtos($tradeOrderInfoDtos) - { - $this->tradeOrderInfoDtos = $tradeOrderInfoDtos; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - -} - -class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress, "address") - */ - private $address; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - -} - -class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "detail") - */ - private $detail; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "town") - */ - private $town; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - public function setCity($city) - { - $this->city = $city; - } - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setTown($town) - { - $this->town = $town; - } - - public function setCountry($country) - { - $this->country = $country; - } - -} - -class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "logistics_services") - */ - private $logisticsServices; - - /** - * @JsonProperty(String, "object_id") - */ - private $objectId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo, "order_info") - */ - private $orderInfo; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo, "package_info") - */ - private $packageInfo; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient, "recipient") - */ - private $recipient; - - /** - * @JsonProperty(String, "template_url") - */ - private $templateUrl; - - /** - * @JsonProperty(Long, "user_id") - */ - private $userId; - - public function setLogisticsServices($logisticsServices) - { - $this->logisticsServices = $logisticsServices; - } - - public function setObjectId($objectId) - { - $this->objectId = $objectId; - } - - public function setOrderInfo($orderInfo) - { - $this->orderInfo = $orderInfo; - } - - public function setPackageInfo($packageInfo) - { - $this->packageInfo = $packageInfo; - } - - public function setRecipient($recipient) - { - $this->recipient = $recipient; - } - - public function setTemplateUrl($templateUrl) - { - $this->templateUrl = $templateUrl; - } - - public function setUserId($userId) - { - $this->userId = $userId; - } - -} - -class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "order_channels_type") - */ - private $orderChannelsType; - - /** - * @JsonProperty(List, "trade_order_list") - */ - private $tradeOrderList; - - public function setOrderChannelsType($orderChannelsType) - { - $this->orderChannelsType = $orderChannelsType; - } - - public function setTradeOrderList($tradeOrderList) - { - $this->tradeOrderList = $tradeOrderList; - } - -} - -class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "goods_description") - */ - private $goodsDescription; - - /** - * @JsonProperty(String, "id") - */ - private $id; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem>, "items") - */ - private $items; - - /** - * @JsonProperty(String, "packaging_description") - */ - private $packagingDescription; - - /** - * @JsonProperty(Integer, "total_packages_count") - */ - private $totalPackagesCount; - - /** - * @JsonProperty(Long, "volume") - */ - private $volume; - - /** - * @JsonProperty(Long, "weight") - */ - private $weight; - - public function setGoodsDescription($goodsDescription) - { - $this->goodsDescription = $goodsDescription; - } - - public function setId($id) - { - $this->id = $id; - } - - public function setItems($items) - { - $this->items = $items; - } - - public function setPackagingDescription($packagingDescription) - { - $this->packagingDescription = $packagingDescription; - } - - public function setTotalPackagesCount($totalPackagesCount) - { - $this->totalPackagesCount = $totalPackagesCount; - } - - public function setVolume($volume) - { - $this->volume = $volume; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - -} - -class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "count") - */ - private $count; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setCount($count) - { - $this->count = $count; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress, "address") - */ - private $address; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - -} - -class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "detail") - */ - private $detail; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "town") - */ - private $town; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - public function setCity($city) - { - $this->city = $city; - } - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setTown($town) - { - $this->town = $town; - } - - public function setCountry($country) - { - $this->country = $country; - } - -} +setUserParam($params, "param_waybill_cloud_print_apply_new_request", $this->paramWaybillCloudPrintApplyNewRequest); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.waybill.get"; + } + + public function setParamWaybillCloudPrintApplyNewRequest($paramWaybillCloudPrintApplyNewRequest) + { + $this->paramWaybillCloudPrintApplyNewRequest = $paramWaybillCloudPrintApplyNewRequest; + } + +} + +class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Boolean, "need_encrypt") + */ + private $needEncrypt; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender, "sender") + */ + private $sender; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem>, "trade_order_info_dtos") + */ + private $tradeOrderInfoDtos; + + /** + * @JsonProperty(String, "wp_code") + */ + private $wpCode; + + public function setNeedEncrypt($needEncrypt) + { + $this->needEncrypt = $needEncrypt; + } + + public function setSender($sender) + { + $this->sender = $sender; + } + + public function setTradeOrderInfoDtos($tradeOrderInfoDtos) + { + $this->tradeOrderInfoDtos = $tradeOrderInfoDtos; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + +} + +class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress, "address") + */ + private $address; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + +} + +class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "detail") + */ + private $detail; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "town") + */ + private $town; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + public function setCity($city) + { + $this->city = $city; + } + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setTown($town) + { + $this->town = $town; + } + + public function setCountry($country) + { + $this->country = $country; + } + +} + +class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "logistics_services") + */ + private $logisticsServices; + + /** + * @JsonProperty(String, "object_id") + */ + private $objectId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo, "order_info") + */ + private $orderInfo; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo, "package_info") + */ + private $packageInfo; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient, "recipient") + */ + private $recipient; + + /** + * @JsonProperty(String, "template_url") + */ + private $templateUrl; + + /** + * @JsonProperty(Long, "user_id") + */ + private $userId; + + public function setLogisticsServices($logisticsServices) + { + $this->logisticsServices = $logisticsServices; + } + + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + + public function setOrderInfo($orderInfo) + { + $this->orderInfo = $orderInfo; + } + + public function setPackageInfo($packageInfo) + { + $this->packageInfo = $packageInfo; + } + + public function setRecipient($recipient) + { + $this->recipient = $recipient; + } + + public function setTemplateUrl($templateUrl) + { + $this->templateUrl = $templateUrl; + } + + public function setUserId($userId) + { + $this->userId = $userId; + } + +} + +class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "order_channels_type") + */ + private $orderChannelsType; + + /** + * @JsonProperty(List, "trade_order_list") + */ + private $tradeOrderList; + + public function setOrderChannelsType($orderChannelsType) + { + $this->orderChannelsType = $orderChannelsType; + } + + public function setTradeOrderList($tradeOrderList) + { + $this->tradeOrderList = $tradeOrderList; + } + +} + +class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "goods_description") + */ + private $goodsDescription; + + /** + * @JsonProperty(String, "id") + */ + private $id; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem>, "items") + */ + private $items; + + /** + * @JsonProperty(String, "packaging_description") + */ + private $packagingDescription; + + /** + * @JsonProperty(Integer, "total_packages_count") + */ + private $totalPackagesCount; + + /** + * @JsonProperty(Long, "volume") + */ + private $volume; + + /** + * @JsonProperty(Long, "weight") + */ + private $weight; + + public function setGoodsDescription($goodsDescription) + { + $this->goodsDescription = $goodsDescription; + } + + public function setId($id) + { + $this->id = $id; + } + + public function setItems($items) + { + $this->items = $items; + } + + public function setPackagingDescription($packagingDescription) + { + $this->packagingDescription = $packagingDescription; + } + + public function setTotalPackagesCount($totalPackagesCount) + { + $this->totalPackagesCount = $totalPackagesCount; + } + + public function setVolume($volume) + { + $this->volume = $volume; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + +} + +class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "count") + */ + private $count; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setCount($count) + { + $this->count = $count; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress, "address") + */ + private $address; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + +} + +class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "detail") + */ + private $detail; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "town") + */ + private $town; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + public function setCity($city) + { + $this->city = $city; + } + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setTown($town) + { + $this->town = $town; + } + + public function setCountry($country) + { + $this->country = $country; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillQueryByWaybillcodeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillQueryByWaybillcodeRequest.php index d2215d6..2df3c83 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillQueryByWaybillcodeRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillQueryByWaybillcodeRequest.php @@ -1,84 +1,84 @@ -, "param_list") - */ - private $paramList; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "param_list", $this->paramList); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.waybill.query.by.waybillcode"; - } - - public function setParamList($paramList) - { - $this->paramList = $paramList; - } - -} - -class PddWaybillQueryByWaybillcodeRequest_ParamListItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "object_id") - */ - private $objectId; - - /** - * @JsonProperty(String, "waybill_code") - */ - private $waybillCode; - - /** - * @JsonProperty(String, "wp_code") - */ - private $wpCode; - - public function setObjectId($objectId) - { - $this->objectId = $objectId; - } - - public function setWaybillCode($waybillCode) - { - $this->waybillCode = $waybillCode; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - -} +, "param_list") + */ + private $paramList; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "param_list", $this->paramList); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.waybill.query.by.waybillcode"; + } + + public function setParamList($paramList) + { + $this->paramList = $paramList; + } + +} + +class PddWaybillQueryByWaybillcodeRequest_ParamListItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "object_id") + */ + private $objectId; + + /** + * @JsonProperty(String, "waybill_code") + */ + private $waybillCode; + + /** + * @JsonProperty(String, "wp_code") + */ + private $wpCode; + + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + + public function setWaybillCode($waybillCode) + { + $this->waybillCode = $waybillCode; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillSearchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillSearchRequest.php index 3884bf6..62d3b92 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillSearchRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillSearchRequest.php @@ -1,44 +1,44 @@ -setUserParam($params, "wp_code", $this->wpCode); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.waybill.search"; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - -} +setUserParam($params, "wp_code", $this->wpCode); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.waybill.search"; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillUpdateRequest.php index 6cdf869..f8747a8 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillUpdateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillUpdateRequest.php @@ -1,354 +1,354 @@ -setUserParam($params, "param_waybill_cloud_print_update_request", $this->paramWaybillCloudPrintUpdateRequest); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.waybill.update"; - } - - public function setParamWaybillCloudPrintUpdateRequest($paramWaybillCloudPrintUpdateRequest) - { - $this->paramWaybillCloudPrintUpdateRequest = $paramWaybillCloudPrintUpdateRequest; - } - -} - -class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequest extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "object_id") - */ - private $objectId; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfo, "package_info") - */ - private $packageInfo; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipient, "recipient") - */ - private $recipient; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestSender, "sender") - */ - private $sender; - - /** - * @JsonProperty(String, "template_url") - */ - private $templateUrl; - - /** - * @JsonProperty(String, "waybill_code") - */ - private $waybillCode; - - /** - * @JsonProperty(String, "wp_code") - */ - private $wpCode; - - public function setObjectId($objectId) - { - $this->objectId = $objectId; - } - - public function setPackageInfo($packageInfo) - { - $this->packageInfo = $packageInfo; - } - - public function setRecipient($recipient) - { - $this->recipient = $recipient; - } - - public function setSender($sender) - { - $this->sender = $sender; - } - - public function setTemplateUrl($templateUrl) - { - $this->templateUrl = $templateUrl; - } - - public function setWaybillCode($waybillCode) - { - $this->waybillCode = $waybillCode; - } - - public function setWpCode($wpCode) - { - $this->wpCode = $wpCode; - } - -} - -class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfoItemsItem>, "items") - */ - private $items; - - /** - * @JsonProperty(Long, "volume") - */ - private $volume; - - /** - * @JsonProperty(Long, "weight") - */ - private $weight; - - public function setItems($items) - { - $this->items = $items; - } - - public function setVolume($volume) - { - $this->volume = $volume; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - -} - -class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfoItemsItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Integer, "count") - */ - private $count; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setCount($count) - { - $this->count = $count; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipient extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipientAddress, "address") - */ - private $address; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - -} - -class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipientAddress extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "detail") - */ - private $detail; - - /** - * @JsonProperty(String, "district") - */ - private $district; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - /** - * @JsonProperty(String, "town") - */ - private $town; - - /** - * @JsonProperty(String, "country") - */ - private $country; - - public function setCity($city) - { - $this->city = $city; - } - - public function setDetail($detail) - { - $this->detail = $detail; - } - - public function setDistrict($district) - { - $this->district = $district; - } - - public function setProvince($province) - { - $this->province = $province; - } - - public function setTown($town) - { - $this->town = $town; - } - - public function setCountry($country) - { - $this->country = $country; - } - -} - -class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestSender extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "phone") - */ - private $phone; - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setPhone($phone) - { - $this->phone = $phone; - } - -} +setUserParam($params, "param_waybill_cloud_print_update_request", $this->paramWaybillCloudPrintUpdateRequest); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.waybill.update"; + } + + public function setParamWaybillCloudPrintUpdateRequest($paramWaybillCloudPrintUpdateRequest) + { + $this->paramWaybillCloudPrintUpdateRequest = $paramWaybillCloudPrintUpdateRequest; + } + +} + +class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequest extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "object_id") + */ + private $objectId; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfo, "package_info") + */ + private $packageInfo; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipient, "recipient") + */ + private $recipient; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestSender, "sender") + */ + private $sender; + + /** + * @JsonProperty(String, "template_url") + */ + private $templateUrl; + + /** + * @JsonProperty(String, "waybill_code") + */ + private $waybillCode; + + /** + * @JsonProperty(String, "wp_code") + */ + private $wpCode; + + public function setObjectId($objectId) + { + $this->objectId = $objectId; + } + + public function setPackageInfo($packageInfo) + { + $this->packageInfo = $packageInfo; + } + + public function setRecipient($recipient) + { + $this->recipient = $recipient; + } + + public function setSender($sender) + { + $this->sender = $sender; + } + + public function setTemplateUrl($templateUrl) + { + $this->templateUrl = $templateUrl; + } + + public function setWaybillCode($waybillCode) + { + $this->waybillCode = $waybillCode; + } + + public function setWpCode($wpCode) + { + $this->wpCode = $wpCode; + } + +} + +class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfoItemsItem>, "items") + */ + private $items; + + /** + * @JsonProperty(Long, "volume") + */ + private $volume; + + /** + * @JsonProperty(Long, "weight") + */ + private $weight; + + public function setItems($items) + { + $this->items = $items; + } + + public function setVolume($volume) + { + $this->volume = $volume; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + +} + +class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfoItemsItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Integer, "count") + */ + private $count; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setCount($count) + { + $this->count = $count; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipient extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipientAddress, "address") + */ + private $address; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + +} + +class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipientAddress extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "detail") + */ + private $detail; + + /** + * @JsonProperty(String, "district") + */ + private $district; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + /** + * @JsonProperty(String, "town") + */ + private $town; + + /** + * @JsonProperty(String, "country") + */ + private $country; + + public function setCity($city) + { + $this->city = $city; + } + + public function setDetail($detail) + { + $this->detail = $detail; + } + + public function setDistrict($district) + { + $this->district = $district; + } + + public function setProvince($province) + { + $this->province = $province; + } + + public function setTown($town) + { + $this->town = $town; + } + + public function setCountry($country) + { + $this->country = $country; + } + +} + +class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestSender extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "phone") + */ + private $phone; + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setPhone($phone) + { + $this->phone = $phone; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderConfirmRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderConfirmRequest.php index 638e2fd..f4f7ba4 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderConfirmRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderConfirmRequest.php @@ -1,204 +1,204 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.deliveryorder.confirm"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsDeliveryorderConfirmRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "deliveryOrderCode") - */ - private $deliveryOrderCode; - - /** - * @JsonProperty(String, "expressCode") - */ - private $expressCode; - - /** - * @JsonProperty(String, "logisticsCode") - */ - private $logisticsCode; - - /** - * @JsonProperty(String, "logisticsName") - */ - private $logisticsName; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDeliveryorderConfirmRequest_RequestOrderLinesItem>, "orderLines") - */ - private $orderLines; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "outBizCode") - */ - private $outBizCode; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(String, "status") - */ - private $status; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - public function setDeliveryOrderCode($deliveryOrderCode) - { - $this->deliveryOrderCode = $deliveryOrderCode; - } - - public function setExpressCode($expressCode) - { - $this->expressCode = $expressCode; - } - - public function setLogisticsCode($logisticsCode) - { - $this->logisticsCode = $logisticsCode; - } - - public function setLogisticsName($logisticsName) - { - $this->logisticsName = $logisticsName; - } - - public function setOrderLines($orderLines) - { - $this->orderLines = $orderLines; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setOutBizCode($outBizCode) - { - $this->outBizCode = $outBizCode; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - -} - -class PddWmsDeliveryorderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "inventoryType") - */ - private $inventoryType; - - /** - * @JsonProperty(String, "parentWareSn") - */ - private $parentWareSn; - - /** - * @JsonProperty(String, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - public function setInventoryType($inventoryType) - { - $this->inventoryType = $inventoryType; - } - - public function setParentWareSn($parentWareSn) - { - $this->parentWareSn = $parentWareSn; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.deliveryorder.confirm"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsDeliveryorderConfirmRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "deliveryOrderCode") + */ + private $deliveryOrderCode; + + /** + * @JsonProperty(String, "expressCode") + */ + private $expressCode; + + /** + * @JsonProperty(String, "logisticsCode") + */ + private $logisticsCode; + + /** + * @JsonProperty(String, "logisticsName") + */ + private $logisticsName; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDeliveryorderConfirmRequest_RequestOrderLinesItem>, "orderLines") + */ + private $orderLines; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "outBizCode") + */ + private $outBizCode; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(String, "status") + */ + private $status; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + public function setDeliveryOrderCode($deliveryOrderCode) + { + $this->deliveryOrderCode = $deliveryOrderCode; + } + + public function setExpressCode($expressCode) + { + $this->expressCode = $expressCode; + } + + public function setLogisticsCode($logisticsCode) + { + $this->logisticsCode = $logisticsCode; + } + + public function setLogisticsName($logisticsName) + { + $this->logisticsName = $logisticsName; + } + + public function setOrderLines($orderLines) + { + $this->orderLines = $orderLines; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setOutBizCode($outBizCode) + { + $this->outBizCode = $outBizCode; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + +} + +class PddWmsDeliveryorderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "inventoryType") + */ + private $inventoryType; + + /** + * @JsonProperty(String, "parentWareSn") + */ + private $parentWareSn; + + /** + * @JsonProperty(String, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + public function setInventoryType($inventoryType) + { + $this->inventoryType = $inventoryType; + } + + public function setParentWareSn($parentWareSn) + { + $this->parentWareSn = $parentWareSn; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderCreateRequest.php index 34c829c..d0f3411 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderCreateRequest.php @@ -1,244 +1,244 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.deliveryorder.create"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsDeliveryorderCreateRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "createTime") - */ - private $createTime; - - /** - * @JsonProperty(String, "deliveryOrderCode") - */ - private $deliveryOrderCode; - - /** - * @JsonProperty(String, "orderFlag") - */ - private $orderFlag; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDeliveryorderCreateRequest_RequestOrderLinesItem>, "orderLines") - */ - private $orderLines; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(String, "placeOrderTime") - */ - private $placeOrderTime; - - /** - * @JsonProperty(String, "receiverCity") - */ - private $receiverCity; - - /** - * @JsonProperty(String, "receiverDetailAddress") - */ - private $receiverDetailAddress; - - /** - * @JsonProperty(String, "receiverDistrict") - */ - private $receiverDistrict; - - /** - * @JsonProperty(String, "receiverName") - */ - private $receiverName; - - /** - * @JsonProperty(String, "receiverPhone") - */ - private $receiverPhone; - - /** - * @JsonProperty(String, "receiverProvince") - */ - private $receiverProvince; - - /** - * @JsonProperty(String, "shopNick") - */ - private $shopNick; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - - public function setDeliveryOrderCode($deliveryOrderCode) - { - $this->deliveryOrderCode = $deliveryOrderCode; - } - - public function setOrderFlag($orderFlag) - { - $this->orderFlag = $orderFlag; - } - - public function setOrderLines($orderLines) - { - $this->orderLines = $orderLines; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setPlaceOrderTime($placeOrderTime) - { - $this->placeOrderTime = $placeOrderTime; - } - - public function setReceiverCity($receiverCity) - { - $this->receiverCity = $receiverCity; - } - - public function setReceiverDetailAddress($receiverDetailAddress) - { - $this->receiverDetailAddress = $receiverDetailAddress; - } - - public function setReceiverDistrict($receiverDistrict) - { - $this->receiverDistrict = $receiverDistrict; - } - - public function setReceiverName($receiverName) - { - $this->receiverName = $receiverName; - } - - public function setReceiverPhone($receiverPhone) - { - $this->receiverPhone = $receiverPhone; - } - - public function setReceiverProvince($receiverProvince) - { - $this->receiverProvince = $receiverProvince; - } - - public function setShopNick($shopNick) - { - $this->shopNick = $shopNick; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - -} - -class PddWmsDeliveryorderCreateRequest_RequestOrderLinesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "parentWareSn") - */ - private $parentWareSn; - - /** - * @JsonProperty(String, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - public function setParentWareSn($parentWareSn) - { - $this->parentWareSn = $parentWareSn; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.deliveryorder.create"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsDeliveryorderCreateRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "createTime") + */ + private $createTime; + + /** + * @JsonProperty(String, "deliveryOrderCode") + */ + private $deliveryOrderCode; + + /** + * @JsonProperty(String, "orderFlag") + */ + private $orderFlag; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDeliveryorderCreateRequest_RequestOrderLinesItem>, "orderLines") + */ + private $orderLines; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(String, "placeOrderTime") + */ + private $placeOrderTime; + + /** + * @JsonProperty(String, "receiverCity") + */ + private $receiverCity; + + /** + * @JsonProperty(String, "receiverDetailAddress") + */ + private $receiverDetailAddress; + + /** + * @JsonProperty(String, "receiverDistrict") + */ + private $receiverDistrict; + + /** + * @JsonProperty(String, "receiverName") + */ + private $receiverName; + + /** + * @JsonProperty(String, "receiverPhone") + */ + private $receiverPhone; + + /** + * @JsonProperty(String, "receiverProvince") + */ + private $receiverProvince; + + /** + * @JsonProperty(String, "shopNick") + */ + private $shopNick; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + + public function setDeliveryOrderCode($deliveryOrderCode) + { + $this->deliveryOrderCode = $deliveryOrderCode; + } + + public function setOrderFlag($orderFlag) + { + $this->orderFlag = $orderFlag; + } + + public function setOrderLines($orderLines) + { + $this->orderLines = $orderLines; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setPlaceOrderTime($placeOrderTime) + { + $this->placeOrderTime = $placeOrderTime; + } + + public function setReceiverCity($receiverCity) + { + $this->receiverCity = $receiverCity; + } + + public function setReceiverDetailAddress($receiverDetailAddress) + { + $this->receiverDetailAddress = $receiverDetailAddress; + } + + public function setReceiverDistrict($receiverDistrict) + { + $this->receiverDistrict = $receiverDistrict; + } + + public function setReceiverName($receiverName) + { + $this->receiverName = $receiverName; + } + + public function setReceiverPhone($receiverPhone) + { + $this->receiverPhone = $receiverPhone; + } + + public function setReceiverProvince($receiverProvince) + { + $this->receiverProvince = $receiverProvince; + } + + public function setShopNick($shopNick) + { + $this->shopNick = $shopNick; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + +} + +class PddWmsDeliveryorderCreateRequest_RequestOrderLinesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "parentWareSn") + */ + private $parentWareSn; + + /** + * @JsonProperty(String, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + public function setParentWareSn($parentWareSn) + { + $this->parentWareSn = $parentWareSn; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketAckRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketAckRequest.php index ab984d5..2a531ea 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketAckRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketAckRequest.php @@ -1,44 +1,44 @@ -, "ticketIds") - */ - private $ticketIds; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "ticketIds", $this->ticketIds); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.depot.ticket.ack"; - } - - public function setTicketIds($ticketIds) - { - $this->ticketIds = $ticketIds; - } - -} +, "ticketIds") + */ + private $ticketIds; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "ticketIds", $this->ticketIds); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.depot.ticket.ack"; + } + + public function setTicketIds($ticketIds) + { + $this->ticketIds = $ticketIds; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketGetRequest.php index bbdd45e..bf71dc8 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketGetRequest.php @@ -1,88 +1,88 @@ -setUserParam($params, "notAck", $this->notAck); - $this->setUserParam($params, "createdAtGte", $this->createdAtGte); - $this->setUserParam($params, "createdAtLte", $this->createdAtLte); - $this->setUserParam($params, "pageNum", $this->pageNum); - $this->setUserParam($params, "pageSize", $this->pageSize); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.depot.ticket.get"; - } - - public function setNotAck($notAck) - { - $this->notAck = $notAck; - } - - public function setCreatedAtGte($createdAtGte) - { - $this->createdAtGte = $createdAtGte; - } - - public function setCreatedAtLte($createdAtLte) - { - $this->createdAtLte = $createdAtLte; - } - - public function setPageNum($pageNum) - { - $this->pageNum = $pageNum; - } - - public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - } - -} +setUserParam($params, "notAck", $this->notAck); + $this->setUserParam($params, "createdAtGte", $this->createdAtGte); + $this->setUserParam($params, "createdAtLte", $this->createdAtLte); + $this->setUserParam($params, "pageNum", $this->pageNum); + $this->setUserParam($params, "pageSize", $this->pageSize); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.depot.ticket.get"; + } + + public function setNotAck($notAck) + { + $this->notAck = $notAck; + } + + public function setCreatedAtGte($createdAtGte) + { + $this->createdAtGte = $createdAtGte; + } + + public function setCreatedAtLte($createdAtLte) + { + $this->createdAtLte = $createdAtLte; + } + + public function setPageNum($pageNum) + { + $this->pageNum = $pageNum; + } + + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketNotifyRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketNotifyRequest.php index 97daf01..a4d4be1 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketNotifyRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketNotifyRequest.php @@ -1,118 +1,118 @@ -, "attachUrl") - */ - private $attachUrl; - - /** - * @JsonProperty(Integer, "serviceStatus") - */ - private $serviceStatus; - - /** - * @JsonProperty(Integer, "compensateAmount") - */ - private $compensateAmount; - - protected function setUserParams(&$params) - { - $this->setUserParam($params, "ticketId", $this->ticketId); - $this->setUserParam($params, "content", $this->content); - $this->setUserParam($params, "attachUrl", $this->attachUrl); - $this->setUserParam($params, "serviceStatus", $this->serviceStatus); - $this->setUserParam($params, "compensateAmount", $this->compensateAmount); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.depot.ticket.notify"; - } - - public function setTicketId($ticketId) - { - $this->ticketId = $ticketId; - } - - public function setContent($content) - { - $this->content = $content; - } - - public function setAttachUrl($attachUrl) - { - $this->attachUrl = $attachUrl; - } - - public function setServiceStatus($serviceStatus) - { - $this->serviceStatus = $serviceStatus; - } - - public function setCompensateAmount($compensateAmount) - { - $this->compensateAmount = $compensateAmount; - } - -} - -class PddWmsDepotTicketNotifyRequest_AttachUrlItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "url") - */ - private $url; - - public function setName($name) - { - $this->name = $name; - } - - public function setUrl($url) - { - $this->url = $url; - } - -} +, "attachUrl") + */ + private $attachUrl; + + /** + * @JsonProperty(Integer, "serviceStatus") + */ + private $serviceStatus; + + /** + * @JsonProperty(Integer, "compensateAmount") + */ + private $compensateAmount; + + protected function setUserParams(&$params) + { + $this->setUserParam($params, "ticketId", $this->ticketId); + $this->setUserParam($params, "content", $this->content); + $this->setUserParam($params, "attachUrl", $this->attachUrl); + $this->setUserParam($params, "serviceStatus", $this->serviceStatus); + $this->setUserParam($params, "compensateAmount", $this->compensateAmount); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.depot.ticket.notify"; + } + + public function setTicketId($ticketId) + { + $this->ticketId = $ticketId; + } + + public function setContent($content) + { + $this->content = $content; + } + + public function setAttachUrl($attachUrl) + { + $this->attachUrl = $attachUrl; + } + + public function setServiceStatus($serviceStatus) + { + $this->serviceStatus = $serviceStatus; + } + + public function setCompensateAmount($compensateAmount) + { + $this->compensateAmount = $compensateAmount; + } + +} + +class PddWmsDepotTicketNotifyRequest_AttachUrlItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "url") + */ + private $url; + + public function setName($name) + { + $this->name = $name; + } + + public function setUrl($url) + { + $this->url = $url; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketProblemGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketProblemGetRequest.php index ef10443..ce4cb5a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketProblemGetRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketProblemGetRequest.php @@ -1,33 +1,33 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.inborder.confirm"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsInborderConfirmRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderConfirmRequest_RequestInbOrder, "inbOrder") - */ - private $inbOrder; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderConfirmRequest_RequestOrderLinesItem>, "orderLines") - */ - private $orderLines; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - public function setInbOrder($inbOrder) - { - $this->inbOrder = $inbOrder; - } - - public function setOrderLines($orderLines) - { - $this->orderLines = $orderLines; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - -} - -class PddWmsInborderConfirmRequest_RequestInbOrder extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "inbOrderCode") - */ - private $inbOrderCode; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "outBizCode") - */ - private $outBizCode; - - /** - * @JsonProperty(String, "status") - */ - private $status; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - /** - * @JsonProperty(Long, "warehouseId") - */ - private $warehouseId; - - public function setInbOrderCode($inbOrderCode) - { - $this->inbOrderCode = $inbOrderCode; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setOutBizCode($outBizCode) - { - $this->outBizCode = $outBizCode; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - - public function setWarehouseId($warehouseId) - { - $this->warehouseId = $warehouseId; - } - -} - -class PddWmsInborderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(Long, "actualReceiveQuantity") - */ - private $actualReceiveQuantity; - - /** - * @JsonProperty(String, "inventoryType") - */ - private $inventoryType; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - public function setActualReceiveQuantity($actualReceiveQuantity) - { - $this->actualReceiveQuantity = $actualReceiveQuantity; - } - - public function setInventoryType($inventoryType) - { - $this->inventoryType = $inventoryType; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.inborder.confirm"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsInborderConfirmRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderConfirmRequest_RequestInbOrder, "inbOrder") + */ + private $inbOrder; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderConfirmRequest_RequestOrderLinesItem>, "orderLines") + */ + private $orderLines; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + public function setInbOrder($inbOrder) + { + $this->inbOrder = $inbOrder; + } + + public function setOrderLines($orderLines) + { + $this->orderLines = $orderLines; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + +} + +class PddWmsInborderConfirmRequest_RequestInbOrder extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "inbOrderCode") + */ + private $inbOrderCode; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "outBizCode") + */ + private $outBizCode; + + /** + * @JsonProperty(String, "status") + */ + private $status; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + /** + * @JsonProperty(Long, "warehouseId") + */ + private $warehouseId; + + public function setInbOrderCode($inbOrderCode) + { + $this->inbOrderCode = $inbOrderCode; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setOutBizCode($outBizCode) + { + $this->outBizCode = $outBizCode; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + + public function setWarehouseId($warehouseId) + { + $this->warehouseId = $warehouseId; + } + +} + +class PddWmsInborderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(Long, "actualReceiveQuantity") + */ + private $actualReceiveQuantity; + + /** + * @JsonProperty(String, "inventoryType") + */ + private $inventoryType; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + public function setActualReceiveQuantity($actualReceiveQuantity) + { + $this->actualReceiveQuantity = $actualReceiveQuantity; + } + + public function setInventoryType($inventoryType) + { + $this->inventoryType = $inventoryType; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsInborderCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsInborderCreateRequest.php index e5e0c47..9d825de 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsInborderCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsInborderCreateRequest.php @@ -1,354 +1,354 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.inborder.create"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsInborderCreateRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrder, "inbOrder") - */ - private $inbOrder; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestOrderLineItem>, "orderLine") - */ - private $orderLine; - - public function setInbOrder($inbOrder) - { - $this->inbOrder = $inbOrder; - } - - public function setOrderLine($orderLine) - { - $this->orderLine = $orderLine; - } - -} - -class PddWmsInborderCreateRequest_RequestInbOrder extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "createTime") - */ - private $createTime; - - /** - * @JsonProperty(String, "inbOrderCode") - */ - private $inbOrderCode; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrderMallContracter, "mallContracter") - */ - private $mallContracter; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(String, "planReceiveTime") - */ - private $planReceiveTime; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrderRelatedOrdersItem>, "relatedOrders") - */ - private $relatedOrders; - - /** - * @JsonProperty(String, "remark") - */ - private $remark; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrderSenderInfo, "senderInfo") - */ - private $senderInfo; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - - public function setInbOrderCode($inbOrderCode) - { - $this->inbOrderCode = $inbOrderCode; - } - - public function setMallContracter($mallContracter) - { - $this->mallContracter = $mallContracter; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setPlanReceiveTime($planReceiveTime) - { - $this->planReceiveTime = $planReceiveTime; - } - - public function setRelatedOrders($relatedOrders) - { - $this->relatedOrders = $relatedOrders; - } - - public function setRemark($remark) - { - $this->remark = $remark; - } - - public function setSenderInfo($senderInfo) - { - $this->senderInfo = $senderInfo; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - -} - -class PddWmsInborderCreateRequest_RequestInbOrderMallContracter extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddWmsInborderCreateRequest_RequestInbOrderRelatedOrdersItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "orderCode") - */ - private $orderCode; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - public function setOrderCode($orderCode) - { - $this->orderCode = $orderCode; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - -} - -class PddWmsInborderCreateRequest_RequestInbOrderSenderInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "address") - */ - private $address; - - /** - * @JsonProperty(String, "area") - */ - private $area; - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setArea($area) - { - $this->area = $area; - } - - public function setCity($city) - { - $this->city = $city; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setProvince($province) - { - $this->province = $province; - } - -} - -class PddWmsInborderCreateRequest_RequestOrderLineItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "inventoryType") - */ - private $inventoryType; - - /** - * @JsonProperty(String, "planReceiveQuantity") - */ - private $planReceiveQuantity; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - public function setInventoryType($inventoryType) - { - $this->inventoryType = $inventoryType; - } - - public function setPlanReceiveQuantity($planReceiveQuantity) - { - $this->planReceiveQuantity = $planReceiveQuantity; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.inborder.create"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsInborderCreateRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrder, "inbOrder") + */ + private $inbOrder; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestOrderLineItem>, "orderLine") + */ + private $orderLine; + + public function setInbOrder($inbOrder) + { + $this->inbOrder = $inbOrder; + } + + public function setOrderLine($orderLine) + { + $this->orderLine = $orderLine; + } + +} + +class PddWmsInborderCreateRequest_RequestInbOrder extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "createTime") + */ + private $createTime; + + /** + * @JsonProperty(String, "inbOrderCode") + */ + private $inbOrderCode; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrderMallContracter, "mallContracter") + */ + private $mallContracter; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(String, "planReceiveTime") + */ + private $planReceiveTime; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrderRelatedOrdersItem>, "relatedOrders") + */ + private $relatedOrders; + + /** + * @JsonProperty(String, "remark") + */ + private $remark; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrderSenderInfo, "senderInfo") + */ + private $senderInfo; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + + public function setInbOrderCode($inbOrderCode) + { + $this->inbOrderCode = $inbOrderCode; + } + + public function setMallContracter($mallContracter) + { + $this->mallContracter = $mallContracter; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setPlanReceiveTime($planReceiveTime) + { + $this->planReceiveTime = $planReceiveTime; + } + + public function setRelatedOrders($relatedOrders) + { + $this->relatedOrders = $relatedOrders; + } + + public function setRemark($remark) + { + $this->remark = $remark; + } + + public function setSenderInfo($senderInfo) + { + $this->senderInfo = $senderInfo; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + +} + +class PddWmsInborderCreateRequest_RequestInbOrderMallContracter extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddWmsInborderCreateRequest_RequestInbOrderRelatedOrdersItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "orderCode") + */ + private $orderCode; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + public function setOrderCode($orderCode) + { + $this->orderCode = $orderCode; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + +} + +class PddWmsInborderCreateRequest_RequestInbOrderSenderInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "address") + */ + private $address; + + /** + * @JsonProperty(String, "area") + */ + private $area; + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setArea($area) + { + $this->area = $area; + } + + public function setCity($city) + { + $this->city = $city; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setProvince($province) + { + $this->province = $province; + } + +} + +class PddWmsInborderCreateRequest_RequestOrderLineItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "inventoryType") + */ + private $inventoryType; + + /** + * @JsonProperty(String, "planReceiveQuantity") + */ + private $planReceiveQuantity; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + public function setInventoryType($inventoryType) + { + $this->inventoryType = $inventoryType; + } + + public function setPlanReceiveQuantity($planReceiveQuantity) + { + $this->planReceiveQuantity = $planReceiveQuantity; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCallbackRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCallbackRequest.php index e3015fe..45c0b7c 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCallbackRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCallbackRequest.php @@ -1,94 +1,94 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.order.callback"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsOrderCallbackRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "deliveryOrderCode") - */ - private $deliveryOrderCode; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - public function setDeliveryOrderCode($deliveryOrderCode) - { - $this->deliveryOrderCode = $deliveryOrderCode; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.order.callback"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsOrderCallbackRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "deliveryOrderCode") + */ + private $deliveryOrderCode; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + public function setDeliveryOrderCode($deliveryOrderCode) + { + $this->deliveryOrderCode = $deliveryOrderCode; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCancelRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCancelRequest.php index 77466a2..b95fbb6 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCancelRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCancelRequest.php @@ -1,104 +1,104 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.order.cancel"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsOrderCancelRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "cancelReason") - */ - private $cancelReason; - - /** - * @JsonProperty(String, "orderCode") - */ - private $orderCode; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - public function setCancelReason($cancelReason) - { - $this->cancelReason = $cancelReason; - } - - public function setOrderCode($orderCode) - { - $this->orderCode = $orderCode; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.order.cancel"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsOrderCancelRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "cancelReason") + */ + private $cancelReason; + + /** + * @JsonProperty(String, "orderCode") + */ + private $orderCode; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + public function setCancelReason($cancelReason) + { + $this->cancelReason = $cancelReason; + } + + public function setOrderCode($orderCode) + { + $this->orderCode = $orderCode; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderQueryRequest.php index 38c0c39..3843f5a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderQueryRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderQueryRequest.php @@ -1,84 +1,84 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.order.query"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsOrderQueryRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "orderCode") - */ - private $orderCode; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - public function setOrderCode($orderCode) - { - $this->orderCode = $orderCode; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.order.query"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsOrderQueryRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "orderCode") + */ + private $orderCode; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + public function setOrderCode($orderCode) + { + $this->orderCode = $orderCode; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderstateSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderstateSendRequest.php index 2548d9d..fa0777a 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderstateSendRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderstateSendRequest.php @@ -1,234 +1,234 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.orderstate.send"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsOrderstateSendRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderstateSendRequest_RequestOrder, "order") - */ - private $order; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderstateSendRequest_RequestOrderLinesItem>, "orderLines") - */ - private $orderLines; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderstateSendRequest_RequestProcess, "process") - */ - private $process; - - public function setOrder($order) - { - $this->order = $order; - } - - public function setOrderLines($orderLines) - { - $this->orderLines = $orderLines; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setProcess($process) - { - $this->process = $process; - } - -} - -class PddWmsOrderstateSendRequest_RequestOrder extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "orderCode") - */ - private $orderCode; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - public function setOrderCode($orderCode) - { - $this->orderCode = $orderCode; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - -} - -class PddWmsOrderstateSendRequest_RequestOrderLinesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "inventoryType") - */ - private $inventoryType; - - /** - * @JsonProperty(String, "parentWareSn") - */ - private $parentWareSn; - - /** - * @JsonProperty(String, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - public function setInventoryType($inventoryType) - { - $this->inventoryType = $inventoryType; - } - - public function setParentWareSn($parentWareSn) - { - $this->parentWareSn = $parentWareSn; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - -} - -class PddWmsOrderstateSendRequest_RequestProcess extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "operateInfo") - */ - private $operateInfo; - - /** - * @JsonProperty(String, "operateTime") - */ - private $operateTime; - - /** - * @JsonProperty(String, "processStatus") - */ - private $processStatus; - - /** - * @JsonProperty(String, "remark") - */ - private $remark; - - public function setOperateInfo($operateInfo) - { - $this->operateInfo = $operateInfo; - } - - public function setOperateTime($operateTime) - { - $this->operateTime = $operateTime; - } - - public function setProcessStatus($processStatus) - { - $this->processStatus = $processStatus; - } - - public function setRemark($remark) - { - $this->remark = $remark; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.orderstate.send"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsOrderstateSendRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderstateSendRequest_RequestOrder, "order") + */ + private $order; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderstateSendRequest_RequestOrderLinesItem>, "orderLines") + */ + private $orderLines; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderstateSendRequest_RequestProcess, "process") + */ + private $process; + + public function setOrder($order) + { + $this->order = $order; + } + + public function setOrderLines($orderLines) + { + $this->orderLines = $orderLines; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setProcess($process) + { + $this->process = $process; + } + +} + +class PddWmsOrderstateSendRequest_RequestOrder extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "orderCode") + */ + private $orderCode; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + public function setOrderCode($orderCode) + { + $this->orderCode = $orderCode; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + +} + +class PddWmsOrderstateSendRequest_RequestOrderLinesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "inventoryType") + */ + private $inventoryType; + + /** + * @JsonProperty(String, "parentWareSn") + */ + private $parentWareSn; + + /** + * @JsonProperty(String, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + public function setInventoryType($inventoryType) + { + $this->inventoryType = $inventoryType; + } + + public function setParentWareSn($parentWareSn) + { + $this->parentWareSn = $parentWareSn; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + +} + +class PddWmsOrderstateSendRequest_RequestProcess extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "operateInfo") + */ + private $operateInfo; + + /** + * @JsonProperty(String, "operateTime") + */ + private $operateTime; + + /** + * @JsonProperty(String, "processStatus") + */ + private $processStatus; + + /** + * @JsonProperty(String, "remark") + */ + private $remark; + + public function setOperateInfo($operateInfo) + { + $this->operateInfo = $operateInfo; + } + + public function setOperateTime($operateTime) + { + $this->operateTime = $operateTime; + } + + public function setProcessStatus($processStatus) + { + $this->processStatus = $processStatus; + } + + public function setRemark($remark) + { + $this->remark = $remark; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderConfirmRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderConfirmRequest.php index 927db53..34d8aba 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderConfirmRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderConfirmRequest.php @@ -1,184 +1,184 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.ouborder.confirm"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsOuborderConfirmRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderConfirmRequest_RequestOrderLinesItem>, "orderLines") - */ - private $orderLines; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderConfirmRequest_RequestOubOrder, "oubOrder") - */ - private $oubOrder; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - public function setOrderLines($orderLines) - { - $this->orderLines = $orderLines; - } - - public function setOubOrder($oubOrder) - { - $this->oubOrder = $oubOrder; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - -} - -class PddWmsOuborderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "actualSendQuantity") - */ - private $actualSendQuantity; - - /** - * @JsonProperty(String, "inventoryType") - */ - private $inventoryType; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - public function setActualSendQuantity($actualSendQuantity) - { - $this->actualSendQuantity = $actualSendQuantity; - } - - public function setInventoryType($inventoryType) - { - $this->inventoryType = $inventoryType; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - -} - -class PddWmsOuborderConfirmRequest_RequestOubOrder extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "oubOrderCode") - */ - private $oubOrderCode; - - /** - * @JsonProperty(String, "outBizCode") - */ - private $outBizCode; - - /** - * @JsonProperty(String, "status") - */ - private $status; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setOubOrderCode($oubOrderCode) - { - $this->oubOrderCode = $oubOrderCode; - } - - public function setOutBizCode($outBizCode) - { - $this->outBizCode = $outBizCode; - } - - public function setStatus($status) - { - $this->status = $status; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.ouborder.confirm"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsOuborderConfirmRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderConfirmRequest_RequestOrderLinesItem>, "orderLines") + */ + private $orderLines; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderConfirmRequest_RequestOubOrder, "oubOrder") + */ + private $oubOrder; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + public function setOrderLines($orderLines) + { + $this->orderLines = $orderLines; + } + + public function setOubOrder($oubOrder) + { + $this->oubOrder = $oubOrder; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + +} + +class PddWmsOuborderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "actualSendQuantity") + */ + private $actualSendQuantity; + + /** + * @JsonProperty(String, "inventoryType") + */ + private $inventoryType; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + public function setActualSendQuantity($actualSendQuantity) + { + $this->actualSendQuantity = $actualSendQuantity; + } + + public function setInventoryType($inventoryType) + { + $this->inventoryType = $inventoryType; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + +} + +class PddWmsOuborderConfirmRequest_RequestOubOrder extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "oubOrderCode") + */ + private $oubOrderCode; + + /** + * @JsonProperty(String, "outBizCode") + */ + private $outBizCode; + + /** + * @JsonProperty(String, "status") + */ + private $status; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setOubOrderCode($oubOrderCode) + { + $this->oubOrderCode = $oubOrderCode; + } + + public function setOutBizCode($outBizCode) + { + $this->outBizCode = $outBizCode; + } + + public function setStatus($status) + { + $this->status = $status; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderCreateRequest.php index a5cc00e..aab6f45 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderCreateRequest.php @@ -1,354 +1,354 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.ouborder.create"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsOuborderCreateRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOrderLineItem>, "orderLine") - */ - private $orderLine; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrder, "oubOrder") - */ - private $oubOrder; - - public function setOrderLine($orderLine) - { - $this->orderLine = $orderLine; - } - - public function setOubOrder($oubOrder) - { - $this->oubOrder = $oubOrder; - } - -} - -class PddWmsOuborderCreateRequest_RequestOrderLineItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "inventoryType") - */ - private $inventoryType; - - /** - * @JsonProperty(String, "planSendQuantity") - */ - private $planSendQuantity; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - public function setInventoryType($inventoryType) - { - $this->inventoryType = $inventoryType; - } - - public function setPlanSendQuantity($planSendQuantity) - { - $this->planSendQuantity = $planSendQuantity; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - -} - -class PddWmsOuborderCreateRequest_RequestOubOrder extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "createTime") - */ - private $createTime; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrderMallContracter, "mallContracter") - */ - private $mallContracter; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "oubOrderCode") - */ - private $oubOrderCode; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(String, "planSendTime") - */ - private $planSendTime; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrderReceiverInfo, "receiverInfo") - */ - private $receiverInfo; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrderRelatedOrdersItem>, "relatedOrders") - */ - private $relatedOrders; - - /** - * @JsonProperty(String, "remark") - */ - private $remark; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - public function setCreateTime($createTime) - { - $this->createTime = $createTime; - } - - public function setMallContracter($mallContracter) - { - $this->mallContracter = $mallContracter; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setOubOrderCode($oubOrderCode) - { - $this->oubOrderCode = $oubOrderCode; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setPlanSendTime($planSendTime) - { - $this->planSendTime = $planSendTime; - } - - public function setReceiverInfo($receiverInfo) - { - $this->receiverInfo = $receiverInfo; - } - - public function setRelatedOrders($relatedOrders) - { - $this->relatedOrders = $relatedOrders; - } - - public function setRemark($remark) - { - $this->remark = $remark; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - -} - -class PddWmsOuborderCreateRequest_RequestOubOrderMallContracter extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - -} - -class PddWmsOuborderCreateRequest_RequestOubOrderReceiverInfo extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "address") - */ - private $address; - - /** - * @JsonProperty(String, "area") - */ - private $area; - - /** - * @JsonProperty(String, "city") - */ - private $city; - - /** - * @JsonProperty(String, "mobile") - */ - private $mobile; - - /** - * @JsonProperty(String, "name") - */ - private $name; - - /** - * @JsonProperty(String, "province") - */ - private $province; - - public function setAddress($address) - { - $this->address = $address; - } - - public function setArea($area) - { - $this->area = $area; - } - - public function setCity($city) - { - $this->city = $city; - } - - public function setMobile($mobile) - { - $this->mobile = $mobile; - } - - public function setName($name) - { - $this->name = $name; - } - - public function setProvince($province) - { - $this->province = $province; - } - -} - -class PddWmsOuborderCreateRequest_RequestOubOrderRelatedOrdersItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "orderCode") - */ - private $orderCode; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - public function setOrderCode($orderCode) - { - $this->orderCode = $orderCode; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.ouborder.create"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsOuborderCreateRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOrderLineItem>, "orderLine") + */ + private $orderLine; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrder, "oubOrder") + */ + private $oubOrder; + + public function setOrderLine($orderLine) + { + $this->orderLine = $orderLine; + } + + public function setOubOrder($oubOrder) + { + $this->oubOrder = $oubOrder; + } + +} + +class PddWmsOuborderCreateRequest_RequestOrderLineItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "inventoryType") + */ + private $inventoryType; + + /** + * @JsonProperty(String, "planSendQuantity") + */ + private $planSendQuantity; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + public function setInventoryType($inventoryType) + { + $this->inventoryType = $inventoryType; + } + + public function setPlanSendQuantity($planSendQuantity) + { + $this->planSendQuantity = $planSendQuantity; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + +} + +class PddWmsOuborderCreateRequest_RequestOubOrder extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "createTime") + */ + private $createTime; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrderMallContracter, "mallContracter") + */ + private $mallContracter; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "oubOrderCode") + */ + private $oubOrderCode; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(String, "planSendTime") + */ + private $planSendTime; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrderReceiverInfo, "receiverInfo") + */ + private $receiverInfo; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrderRelatedOrdersItem>, "relatedOrders") + */ + private $relatedOrders; + + /** + * @JsonProperty(String, "remark") + */ + private $remark; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + public function setCreateTime($createTime) + { + $this->createTime = $createTime; + } + + public function setMallContracter($mallContracter) + { + $this->mallContracter = $mallContracter; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setOubOrderCode($oubOrderCode) + { + $this->oubOrderCode = $oubOrderCode; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setPlanSendTime($planSendTime) + { + $this->planSendTime = $planSendTime; + } + + public function setReceiverInfo($receiverInfo) + { + $this->receiverInfo = $receiverInfo; + } + + public function setRelatedOrders($relatedOrders) + { + $this->relatedOrders = $relatedOrders; + } + + public function setRemark($remark) + { + $this->remark = $remark; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + +} + +class PddWmsOuborderCreateRequest_RequestOubOrderMallContracter extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + +} + +class PddWmsOuborderCreateRequest_RequestOubOrderReceiverInfo extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "address") + */ + private $address; + + /** + * @JsonProperty(String, "area") + */ + private $area; + + /** + * @JsonProperty(String, "city") + */ + private $city; + + /** + * @JsonProperty(String, "mobile") + */ + private $mobile; + + /** + * @JsonProperty(String, "name") + */ + private $name; + + /** + * @JsonProperty(String, "province") + */ + private $province; + + public function setAddress($address) + { + $this->address = $address; + } + + public function setArea($area) + { + $this->area = $area; + } + + public function setCity($city) + { + $this->city = $city; + } + + public function setMobile($mobile) + { + $this->mobile = $mobile; + } + + public function setName($name) + { + $this->name = $name; + } + + public function setProvince($province) + { + $this->province = $province; + } + +} + +class PddWmsOuborderCreateRequest_RequestOubOrderRelatedOrdersItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "orderCode") + */ + private $orderCode; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + public function setOrderCode($orderCode) + { + $this->orderCode = $orderCode; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOutboundChangedateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOutboundChangedateRequest.php index 3b8cf0d..b5e5ca0 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOutboundChangedateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOutboundChangedateRequest.php @@ -1,94 +1,94 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.outbound.changedate"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsOutboundChangedateRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "deliveryOrderCode") - */ - private $deliveryOrderCode; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - /** - * @JsonProperty(String, "scheduleStart") - */ - private $scheduleStart; - - /** - * @JsonProperty(String, "scheduleEnd") - */ - private $scheduleEnd; - - public function setDeliveryOrderCode($deliveryOrderCode) - { - $this->deliveryOrderCode = $deliveryOrderCode; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - - public function setScheduleStart($scheduleStart) - { - $this->scheduleStart = $scheduleStart; - } - - public function setScheduleEnd($scheduleEnd) - { - $this->scheduleEnd = $scheduleEnd; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.outbound.changedate"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsOutboundChangedateRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "deliveryOrderCode") + */ + private $deliveryOrderCode; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + /** + * @JsonProperty(String, "scheduleStart") + */ + private $scheduleStart; + + /** + * @JsonProperty(String, "scheduleEnd") + */ + private $scheduleEnd; + + public function setDeliveryOrderCode($deliveryOrderCode) + { + $this->deliveryOrderCode = $deliveryOrderCode; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + + public function setScheduleStart($scheduleStart) + { + $this->scheduleStart = $scheduleStart; + } + + public function setScheduleEnd($scheduleEnd) + { + $this->scheduleEnd = $scheduleEnd; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderConfirmRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderConfirmRequest.php index c25e726..49d5d54 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderConfirmRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderConfirmRequest.php @@ -1,204 +1,204 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.returnorder.confirm"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsReturnorderConfirmRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "expressCode") - */ - private $expressCode; - - /** - * @JsonProperty(String, "logisticsCode") - */ - private $logisticsCode; - - /** - * @JsonProperty(String, "logisticsName") - */ - private $logisticsName; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsReturnorderConfirmRequest_RequestOrderLinesItem>, "orderLines") - */ - private $orderLines; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "outBizCode") - */ - private $outBizCode; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(String, "returnOrderCode") - */ - private $returnOrderCode; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - /** - * @JsonProperty(String, "status") - */ - private $status; - - public function setExpressCode($expressCode) - { - $this->expressCode = $expressCode; - } - - public function setLogisticsCode($logisticsCode) - { - $this->logisticsCode = $logisticsCode; - } - - public function setLogisticsName($logisticsName) - { - $this->logisticsName = $logisticsName; - } - - public function setOrderLines($orderLines) - { - $this->orderLines = $orderLines; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setOutBizCode($outBizCode) - { - $this->outBizCode = $outBizCode; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setReturnOrderCode($returnOrderCode) - { - $this->returnOrderCode = $returnOrderCode; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - - public function setStatus($status) - { - $this->status = $status; - } - -} - -class PddWmsReturnorderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "inventoryType") - */ - private $inventoryType; - - /** - * @JsonProperty(String, "parentWareSn") - */ - private $parentWareSn; - - /** - * @JsonProperty(Long, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - public function setInventoryType($inventoryType) - { - $this->inventoryType = $inventoryType; - } - - public function setParentWareSn($parentWareSn) - { - $this->parentWareSn = $parentWareSn; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.returnorder.confirm"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsReturnorderConfirmRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "expressCode") + */ + private $expressCode; + + /** + * @JsonProperty(String, "logisticsCode") + */ + private $logisticsCode; + + /** + * @JsonProperty(String, "logisticsName") + */ + private $logisticsName; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsReturnorderConfirmRequest_RequestOrderLinesItem>, "orderLines") + */ + private $orderLines; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "outBizCode") + */ + private $outBizCode; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(String, "returnOrderCode") + */ + private $returnOrderCode; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + /** + * @JsonProperty(String, "status") + */ + private $status; + + public function setExpressCode($expressCode) + { + $this->expressCode = $expressCode; + } + + public function setLogisticsCode($logisticsCode) + { + $this->logisticsCode = $logisticsCode; + } + + public function setLogisticsName($logisticsName) + { + $this->logisticsName = $logisticsName; + } + + public function setOrderLines($orderLines) + { + $this->orderLines = $orderLines; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setOutBizCode($outBizCode) + { + $this->outBizCode = $outBizCode; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setReturnOrderCode($returnOrderCode) + { + $this->returnOrderCode = $returnOrderCode; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + + public function setStatus($status) + { + $this->status = $status; + } + +} + +class PddWmsReturnorderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "inventoryType") + */ + private $inventoryType; + + /** + * @JsonProperty(String, "parentWareSn") + */ + private $parentWareSn; + + /** + * @JsonProperty(Long, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + public function setInventoryType($inventoryType) + { + $this->inventoryType = $inventoryType; + } + + public function setParentWareSn($parentWareSn) + { + $this->parentWareSn = $parentWareSn; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderCreateRequest.php index 9a393e3..d96ba19 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderCreateRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderCreateRequest.php @@ -1,184 +1,184 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.returnorder.create"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsReturnorderCreateRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "deliveryOrderCode") - */ - private $deliveryOrderCode; - - /** - * @JsonProperty(String, "orderFlag") - */ - private $orderFlag; - - /** - * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsReturnorderCreateRequest_RequestOrderLinesItem>, "orderLines") - */ - private $orderLines; - - /** - * @JsonProperty(String, "orderType") - */ - private $orderType; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(String, "returnOrderCode") - */ - private $returnOrderCode; - - /** - * @JsonProperty(String, "returnReason") - */ - private $returnReason; - - /** - * @JsonProperty(String, "warehouseCode") - */ - private $warehouseCode; - - public function setDeliveryOrderCode($deliveryOrderCode) - { - $this->deliveryOrderCode = $deliveryOrderCode; - } - - public function setOrderFlag($orderFlag) - { - $this->orderFlag = $orderFlag; - } - - public function setOrderLines($orderLines) - { - $this->orderLines = $orderLines; - } - - public function setOrderType($orderType) - { - $this->orderType = $orderType; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setReturnOrderCode($returnOrderCode) - { - $this->returnOrderCode = $returnOrderCode; - } - - public function setReturnReason($returnReason) - { - $this->returnReason = $returnReason; - } - - public function setWarehouseCode($warehouseCode) - { - $this->warehouseCode = $warehouseCode; - } - -} - -class PddWmsReturnorderCreateRequest_RequestOrderLinesItem extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "inventoryType") - */ - private $inventoryType; - - /** - * @JsonProperty(String, "parentWareSn") - */ - private $parentWareSn; - - /** - * @JsonProperty(String, "quantity") - */ - private $quantity; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - public function setInventoryType($inventoryType) - { - $this->inventoryType = $inventoryType; - } - - public function setParentWareSn($parentWareSn) - { - $this->parentWareSn = $parentWareSn; - } - - public function setQuantity($quantity) - { - $this->quantity = $quantity; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.returnorder.create"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsReturnorderCreateRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "deliveryOrderCode") + */ + private $deliveryOrderCode; + + /** + * @JsonProperty(String, "orderFlag") + */ + private $orderFlag; + + /** + * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsReturnorderCreateRequest_RequestOrderLinesItem>, "orderLines") + */ + private $orderLines; + + /** + * @JsonProperty(String, "orderType") + */ + private $orderType; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(String, "returnOrderCode") + */ + private $returnOrderCode; + + /** + * @JsonProperty(String, "returnReason") + */ + private $returnReason; + + /** + * @JsonProperty(String, "warehouseCode") + */ + private $warehouseCode; + + public function setDeliveryOrderCode($deliveryOrderCode) + { + $this->deliveryOrderCode = $deliveryOrderCode; + } + + public function setOrderFlag($orderFlag) + { + $this->orderFlag = $orderFlag; + } + + public function setOrderLines($orderLines) + { + $this->orderLines = $orderLines; + } + + public function setOrderType($orderType) + { + $this->orderType = $orderType; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setReturnOrderCode($returnOrderCode) + { + $this->returnOrderCode = $returnOrderCode; + } + + public function setReturnReason($returnReason) + { + $this->returnReason = $returnReason; + } + + public function setWarehouseCode($warehouseCode) + { + $this->warehouseCode = $warehouseCode; + } + +} + +class PddWmsReturnorderCreateRequest_RequestOrderLinesItem extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "inventoryType") + */ + private $inventoryType; + + /** + * @JsonProperty(String, "parentWareSn") + */ + private $parentWareSn; + + /** + * @JsonProperty(String, "quantity") + */ + private $quantity; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + public function setInventoryType($inventoryType) + { + $this->inventoryType = $inventoryType; + } + + public function setParentWareSn($parentWareSn) + { + $this->parentWareSn = $parentWareSn; + } + + public function setQuantity($quantity) + { + $this->quantity = $quantity; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareSynchronizeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareSynchronizeRequest.php index 0bfecae..1293436 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareSynchronizeRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareSynchronizeRequest.php @@ -1,234 +1,234 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.ware.synchronize"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsWareSynchronizeRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "actionType") - */ - private $actionType; - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareSynchronizeRequest_RequestWare, "ware") - */ - private $ware; - - public function setActionType($actionType) - { - $this->actionType = $actionType; - } - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setWare($ware) - { - $this->ware = $ware; - } - -} - -class PddWmsWareSynchronizeRequest_RequestWare extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "barCode") - */ - private $barCode; - - /** - * @JsonProperty(String, "brandName") - */ - private $brandName; - - /** - * @JsonProperty(String, "categoryId") - */ - private $categoryId; - - /** - * @JsonProperty(String, "categoryName") - */ - private $categoryName; - - /** - * @JsonProperty(String, "color") - */ - private $color; - - /** - * @JsonProperty(String, "height") - */ - private $height; - - /** - * @JsonProperty(String, "length") - */ - private $length; - - /** - * @JsonProperty(String, "size") - */ - private $size; - - /** - * @JsonProperty(String, "volume") - */ - private $volume; - - /** - * @JsonProperty(String, "wareName") - */ - private $wareName; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - /** - * @JsonProperty(String, "wareType") - */ - private $wareType; - - /** - * @JsonProperty(String, "weight") - */ - private $weight; - - /** - * @JsonProperty(String, "width") - */ - private $width; - - public function setBarCode($barCode) - { - $this->barCode = $barCode; - } - - public function setBrandName($brandName) - { - $this->brandName = $brandName; - } - - public function setCategoryId($categoryId) - { - $this->categoryId = $categoryId; - } - - public function setCategoryName($categoryName) - { - $this->categoryName = $categoryName; - } - - public function setColor($color) - { - $this->color = $color; - } - - public function setHeight($height) - { - $this->height = $height; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setSize($size) - { - $this->size = $size; - } - - public function setVolume($volume) - { - $this->volume = $volume; - } - - public function setWareName($wareName) - { - $this->wareName = $wareName; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - - public function setWareType($wareType) - { - $this->wareType = $wareType; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - - public function setWidth($width) - { - $this->width = $width; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.ware.synchronize"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsWareSynchronizeRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "actionType") + */ + private $actionType; + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareSynchronizeRequest_RequestWare, "ware") + */ + private $ware; + + public function setActionType($actionType) + { + $this->actionType = $actionType; + } + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setWare($ware) + { + $this->ware = $ware; + } + +} + +class PddWmsWareSynchronizeRequest_RequestWare extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "barCode") + */ + private $barCode; + + /** + * @JsonProperty(String, "brandName") + */ + private $brandName; + + /** + * @JsonProperty(String, "categoryId") + */ + private $categoryId; + + /** + * @JsonProperty(String, "categoryName") + */ + private $categoryName; + + /** + * @JsonProperty(String, "color") + */ + private $color; + + /** + * @JsonProperty(String, "height") + */ + private $height; + + /** + * @JsonProperty(String, "length") + */ + private $length; + + /** + * @JsonProperty(String, "size") + */ + private $size; + + /** + * @JsonProperty(String, "volume") + */ + private $volume; + + /** + * @JsonProperty(String, "wareName") + */ + private $wareName; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + /** + * @JsonProperty(String, "wareType") + */ + private $wareType; + + /** + * @JsonProperty(String, "weight") + */ + private $weight; + + /** + * @JsonProperty(String, "width") + */ + private $width; + + public function setBarCode($barCode) + { + $this->barCode = $barCode; + } + + public function setBrandName($brandName) + { + $this->brandName = $brandName; + } + + public function setCategoryId($categoryId) + { + $this->categoryId = $categoryId; + } + + public function setCategoryName($categoryName) + { + $this->categoryName = $categoryName; + } + + public function setColor($color) + { + $this->color = $color; + } + + public function setHeight($height) + { + $this->height = $height; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setSize($size) + { + $this->size = $size; + } + + public function setVolume($volume) + { + $this->volume = $volume; + } + + public function setWareName($wareName) + { + $this->wareName = $wareName; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + + public function setWareType($wareType) + { + $this->wareType = $wareType; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + + public function setWidth($width) + { + $this->width = $width; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareinformSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareinformSendRequest.php index 57b53d1..1da1eae 100644 --- a/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareinformSendRequest.php +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareinformSendRequest.php @@ -1,174 +1,174 @@ -setUserParam($params, "request", $this->request); - - } - - public function getVersion() - { - return "V1"; - } - - public function getDataType() - { - return "JSON"; - } - - public function getType() - { - return "pdd.wms.wareinform.send"; - } - - public function setRequest($request) - { - $this->request = $request; - } - -} - -class PddWmsWareinformSendRequest_Request extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "ownerCode") - */ - private $ownerCode; - - /** - * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareinformSendRequest_RequestWare, "ware") - */ - private $ware; - - public function setOwnerCode($ownerCode) - { - $this->ownerCode = $ownerCode; - } - - public function setWare($ware) - { - $this->ware = $ware; - } - -} - -class PddWmsWareinformSendRequest_RequestWare extends PopBaseJsonEntity -{ - - public function __construct() - { - - } - - /** - * @JsonProperty(String, "color") - */ - private $color; - - /** - * @JsonProperty(String, "height") - */ - private $height; - - /** - * @JsonProperty(String, "length") - */ - private $length; - - /** - * @JsonProperty(String, "size") - */ - private $size; - - /** - * @JsonProperty(String, "volume") - */ - private $volume; - - /** - * @JsonProperty(String, "wareName") - */ - private $wareName; - - /** - * @JsonProperty(String, "wareSn") - */ - private $wareSn; - - /** - * @JsonProperty(String, "weight") - */ - private $weight; - - /** - * @JsonProperty(String, "width") - */ - private $width; - - public function setColor($color) - { - $this->color = $color; - } - - public function setHeight($height) - { - $this->height = $height; - } - - public function setLength($length) - { - $this->length = $length; - } - - public function setSize($size) - { - $this->size = $size; - } - - public function setVolume($volume) - { - $this->volume = $volume; - } - - public function setWareName($wareName) - { - $this->wareName = $wareName; - } - - public function setWareSn($wareSn) - { - $this->wareSn = $wareSn; - } - - public function setWeight($weight) - { - $this->weight = $weight; - } - - public function setWidth($width) - { - $this->width = $width; - } - -} +setUserParam($params, "request", $this->request); + + } + + public function getVersion() + { + return "V1"; + } + + public function getDataType() + { + return "JSON"; + } + + public function getType() + { + return "pdd.wms.wareinform.send"; + } + + public function setRequest($request) + { + $this->request = $request; + } + +} + +class PddWmsWareinformSendRequest_Request extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "ownerCode") + */ + private $ownerCode; + + /** + * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareinformSendRequest_RequestWare, "ware") + */ + private $ware; + + public function setOwnerCode($ownerCode) + { + $this->ownerCode = $ownerCode; + } + + public function setWare($ware) + { + $this->ware = $ware; + } + +} + +class PddWmsWareinformSendRequest_RequestWare extends PopBaseJsonEntity +{ + + public function __construct() + { + + } + + /** + * @JsonProperty(String, "color") + */ + private $color; + + /** + * @JsonProperty(String, "height") + */ + private $height; + + /** + * @JsonProperty(String, "length") + */ + private $length; + + /** + * @JsonProperty(String, "size") + */ + private $size; + + /** + * @JsonProperty(String, "volume") + */ + private $volume; + + /** + * @JsonProperty(String, "wareName") + */ + private $wareName; + + /** + * @JsonProperty(String, "wareSn") + */ + private $wareSn; + + /** + * @JsonProperty(String, "weight") + */ + private $weight; + + /** + * @JsonProperty(String, "width") + */ + private $width; + + public function setColor($color) + { + $this->color = $color; + } + + public function setHeight($height) + { + $this->height = $height; + } + + public function setLength($length) + { + $this->length = $length; + } + + public function setSize($size) + { + $this->size = $size; + } + + public function setVolume($volume) + { + $this->volume = $volume; + } + + public function setWareName($wareName) + { + $this->wareName = $wareName; + } + + public function setWareSn($wareSn) + { + $this->wareSn = $wareSn; + } + + public function setWeight($weight) + { + $this->weight = $weight; + } + + public function setWidth($width) + { + $this->width = $width; + } + +} diff --git a/src/service/qiniu/KodoService.php b/src/service/qiniu/KodoService.php index c6af0b7..d17286a 100644 --- a/src/service/qiniu/KodoService.php +++ b/src/service/qiniu/KodoService.php @@ -1,86 +1,86 @@ -accessKey = $accessKey; - return $this; - } - - /** - * @param string $secretKey - * @return $this - */ - public function secretKey(string $secretKey): self - { - $this->secretKey = $secretKey; - return $this; - } - - /** - * @param string $bucket - * @return $this - */ - public function bucket(string $bucket): self - { - $this->bucket = $bucket; - return $this; - } - - /** - * @param string $object - * @param string $filePath - * @return bool - * @throws Exception - */ - public function upload(string $object, string $filePath): bool - { - // 初始化签权对象 - $auth = new Auth($this->accessKey, $this->secretKey); - // 生成上传Token - $token = $auth->uploadToken($this->bucket); - // 构建 UploadManager 对象 - $uploadMgr = new UploadManager(); - // 调用 UploadManager 的 putFile 方法进行文件的上传。 - [$ret, $err] = $uploadMgr->putFile($token, $object, $filePath); - return !($err !== null); - - } -} +accessKey = $accessKey; + return $this; + } + + /** + * @param string $secretKey + * @return $this + */ + public function secretKey(string $secretKey): self + { + $this->secretKey = $secretKey; + return $this; + } + + /** + * @param string $bucket + * @return $this + */ + public function bucket(string $bucket): self + { + $this->bucket = $bucket; + return $this; + } + + /** + * @param string $object + * @param string $filePath + * @return bool + * @throws Exception + */ + public function upload(string $object, string $filePath): bool + { + // 初始化签权对象 + $auth = new Auth($this->accessKey, $this->secretKey); + // 生成上传Token + $token = $auth->uploadToken($this->bucket); + // 构建 UploadManager 对象 + $uploadMgr = new UploadManager(); + // 调用 UploadManager 的 putFile 方法进行文件的上传。 + [$ret, $err] = $uploadMgr->putFile($token, $object, $filePath); + return !($err !== null); + + } +} diff --git a/src/service/qiniu/SmsService.php b/src/service/qiniu/SmsService.php index 74027ce..959aedd 100644 --- a/src/service/qiniu/SmsService.php +++ b/src/service/qiniu/SmsService.php @@ -1,394 +1,394 @@ -accessKey = $accessKey; - return $this; - } - - /** - * @param string $secretKey - * @return $this - */ - public function secretKey(string $secretKey): self - { - $this->secretKey = $secretKey; - return $this; - } - - /** - * 请求参数 - * @param array $param - * @return $this - */ - public function param(array $param): self - { - $this->param = $param; - return $this; - } - - /** - * 发送短信 - * https://developer.qiniu.com/sms/api/5897/sms-api-send-message#1 - * @return $this - */ - public function message(): self - { - $this->url = "https://sms.qiniuapi.com/v1/message"; - $this->method = "POST"; - return $this; - } - - /** - * 发送单条短信 - * https://developer.qiniu.com/sms/api/5897/sms-api-send-message#2 - * @return $this - */ - public function messageSingle(): self - { - $this->url = "https://sms.qiniuapi.com/v1/message/single"; - $this->method = "POST"; - return $this; - } - - /** - * 发送国际/港澳台短信 - * https://developer.qiniu.com/sms/api/5897/sms-api-send-message#3 - * @return $this - */ - public function messageOversea(): self - { - $this->url = "https://sms.qiniuapi.com/v1/message/oversea"; - $this->method = "POST"; - return $this; - } - - /** - * 发送全文本短信(不需要传模版 ID) - * https://developer.qiniu.com/sms/api/5897/sms-api-send-message#3 - * @return $this - */ - public function messageFulltext(): self - { - $this->url = "https://sms.qiniuapi.com/v1/message/fulltext"; - $this->method = "POST"; - return $this; - } - - /** - * 查询短信发送记录 - * https://developer.qiniu.com/sms/api/5852/query-send-sms - * @return $this - */ - public function messages(): self - { - $this->url = "https://sms.qiniuapi.com/v1/messages"; - $this->method = "GET"; - return $this; - } - - /** - * 创建签名 - * https://developer.qiniu.com/sms/api/5844/sms-api-create-signature - * @return $this - */ - public function signature(): self - { - $this->url = "https://sms.qiniuapi.com/v1/signature"; - $this->method = "POST"; - return $this; - } - - /** - * 查询签名 - * https://developer.qiniu.com/sms/api/5844/sms-api-create-signature - * @return $this - */ - public function signatureQuery(): self - { - $this->url = "https://sms.qiniuapi.com/v1/signature"; - $this->method = "GET"; - $this->contentType = "application/x-www-form-urlencoded"; - return $this; - } - - /** - * 查询单个签名信息 - * https://developer.qiniu.com/sms/api/5970/query-a-single-signature - * @param $id - * @return $this - * @throws DtaException - */ - public function signatureQueryId($id): self - { - if (empty($id)) { - throw new DtaException('请检查id参数'); - } - $this->url = "https://sms.qiniuapi.com/v1/signature/{$id}"; - $this->method = "GET"; - return $this; - } - - /** - * 编辑签名 - * https://developer.qiniu.com/sms/api/5890/sms-api-edit-signature - * @param $id - * @return $this - * @throws DtaException - */ - public function signatureEditId($id): self - { - if (empty($id)) { - throw new DtaException('请检查id参数'); - } - $this->url = "https://sms.qiniuapi.com/v1/signature/{$id}"; - $this->method = "PUT"; - return $this; - } - - /** - * 删除签名 - * https://developer.qiniu.com/sms/api/5891/sms-api-delete-signature - * @param $id - * @return $this - * @throws DtaException - */ - public function signatureDelId($id): self - { - if (empty($id)) { - throw new DtaException('请检查id参数'); - } - $this->url = "https://sms.qiniuapi.com/v1/signature/{$id}"; - $this->method = "DELETE"; - return $this; - } - - /** - * 创建模板 - * https://developer.qiniu.com/sms/api/5893/sms-api-create-template - * @return $this - */ - public function template(): self - { - $this->url = "https://sms.qiniuapi.com/v1/template"; - $this->method = "POST"; - return $this; - } - - /** - * 查询模板 - * https://developer.qiniu.com/sms/api/5894/sms-api-query-template - * @return $this - */ - public function templateQuery(): self - { - $this->url = "https://sms.qiniuapi.com/v1/template"; - $this->method = "GET"; - return $this; - } - - /** - * 查询单个模版信息 - * https://developer.qiniu.com/sms/api/5969/query-a-single-template - * @param $id - * @return $this - * @throws DtaException - */ - public function templateQueryId($id): self - { - if (empty($id)) { - throw new DtaException('请检查id参数'); - } - $this->url = "https://sms.qiniuapi.com/v1/template/{$id}"; - $this->method = "GET"; - return $this; - } - - /** - * 编辑签名 - * https://developer.qiniu.com/sms/api/5895/sms-api-edit-template - * @param $id - * @return $this - * @throws DtaException - */ - public function templateEditId($id): self - { - if (empty($id)) { - throw new DtaException('请检查id参数'); - } - $this->url = "https://sms.qiniuapi.com/v1/template/{$id}"; - $this->method = "PUT"; - return $this; - } - - /** - * 删除签名 - * https://developer.qiniu.com/sms/api/5896/sms-api-delete-template - * @param $id - * @return $this - * @throws DtaException - */ - public function templateDelId($id): self - { - if (empty($id)) { - throw new DtaException('请检查id参数'); - } - $this->url = "https://sms.qiniuapi.com/v1/template/{$id}"; - $this->method = "DELETE"; - return $this; - } - - /** - * 返回数组数据 - * @return array|mixed - * @throws DtaException - * @throws \GuzzleHttp\Exception\GuzzleException - */ - public function toArray() - { - //首先检测是否支持curl - if (!extension_loaded("curl")) { - throw new HttpException(404, '请开启curl模块!'); - } - $this->http(); - // 正常 - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - $this->output = $this->object2array($this->output); - return $this->output; - } - $this->output = json_decode($this->output, true); - return $this->output; - } - - /** - * @param $object - * @return array - */ - private function object2array(&$object): array - { - if (is_object($object)) { - $arr = (array)($object); - } else { - $arr = &$object; - } - if (is_array($arr)) { - foreach ($arr as $varName => $varValue) { - $arr[$varName] = $this->object2array($varValue); - } - } - return $arr; - } - - /** - * 网络请求 - * @return $this - * @throws DtaException - * @throws \GuzzleHttp\Exception\GuzzleException - */ - private function http(): self - { - if (empty($this->accessKey)) { - throw new DtaException('请检查accessKey参数'); - } - if (empty($this->secretKey)) { - throw new DtaException('请检查secretKey参数'); - } - $headers = [ - 'Authorization' => $this->authentication(), - 'Content-Type' => $this->contentType - ]; - - $auth = new Auth($this->accessKey, $this->secretKey); - $recToken = $auth->authorizationV2($this->url, $this->method, json_encode($this->param), $this->contentType); - $rtcToken['Content-Type'] = $this->contentType; - dump($recToken); - dump($this->url . "?" . http_build_query($this->param)); - $ret = Client::get($this->url . "?" . http_build_query($this->param), $recToken); - dump($ret); - $this->output = $ret->json(); - return $this; - } - - /** - * 服务鉴权 - * https://developer.qiniu.com/sms/api/5842/sms-api-authentication - * @return string - */ - private function authentication() - { - $url = parse_url($this->url); - $data = $url['path'] ?? ''; - if (isset($url['query'])) { - $data .= '?' . $url['query']; - } - $data .= "\n"; - if (isset($this->param) && $this->contentType === 'application/x-www-form-urlencoded') { - $data .= json_encode($this->param); - } - return $this->sign($data); - } - - /** - * @param $data - * @return string - */ - private function sign($data) - { - $sign = hash_hmac('sha1', $data, $this->secretKey, true); - return "Qiniu " . sprintf('%s:%s', $this->accessKey, $this->encode($sign)); - } - - /** - * @param $string - * @return string|string[] - */ - private function encode($string) - { - $find = ['+', '/']; - $replace = ['-', '_']; - return str_replace($find, $replace, base64_encode($string)); - } +accessKey = $accessKey; + return $this; + } + + /** + * @param string $secretKey + * @return $this + */ + public function secretKey(string $secretKey): self + { + $this->secretKey = $secretKey; + return $this; + } + + /** + * 请求参数 + * @param array $param + * @return $this + */ + public function param(array $param): self + { + $this->param = $param; + return $this; + } + + /** + * 发送短信 + * https://developer.qiniu.com/sms/api/5897/sms-api-send-message#1 + * @return $this + */ + public function message(): self + { + $this->url = "https://sms.qiniuapi.com/v1/message"; + $this->method = "POST"; + return $this; + } + + /** + * 发送单条短信 + * https://developer.qiniu.com/sms/api/5897/sms-api-send-message#2 + * @return $this + */ + public function messageSingle(): self + { + $this->url = "https://sms.qiniuapi.com/v1/message/single"; + $this->method = "POST"; + return $this; + } + + /** + * 发送国际/港澳台短信 + * https://developer.qiniu.com/sms/api/5897/sms-api-send-message#3 + * @return $this + */ + public function messageOversea(): self + { + $this->url = "https://sms.qiniuapi.com/v1/message/oversea"; + $this->method = "POST"; + return $this; + } + + /** + * 发送全文本短信(不需要传模版 ID) + * https://developer.qiniu.com/sms/api/5897/sms-api-send-message#3 + * @return $this + */ + public function messageFulltext(): self + { + $this->url = "https://sms.qiniuapi.com/v1/message/fulltext"; + $this->method = "POST"; + return $this; + } + + /** + * 查询短信发送记录 + * https://developer.qiniu.com/sms/api/5852/query-send-sms + * @return $this + */ + public function messages(): self + { + $this->url = "https://sms.qiniuapi.com/v1/messages"; + $this->method = "GET"; + return $this; + } + + /** + * 创建签名 + * https://developer.qiniu.com/sms/api/5844/sms-api-create-signature + * @return $this + */ + public function signature(): self + { + $this->url = "https://sms.qiniuapi.com/v1/signature"; + $this->method = "POST"; + return $this; + } + + /** + * 查询签名 + * https://developer.qiniu.com/sms/api/5844/sms-api-create-signature + * @return $this + */ + public function signatureQuery(): self + { + $this->url = "https://sms.qiniuapi.com/v1/signature"; + $this->method = "GET"; + $this->contentType = "application/x-www-form-urlencoded"; + return $this; + } + + /** + * 查询单个签名信息 + * https://developer.qiniu.com/sms/api/5970/query-a-single-signature + * @param $id + * @return $this + * @throws DtaException + */ + public function signatureQueryId($id): self + { + if (empty($id)) { + throw new DtaException('请检查id参数'); + } + $this->url = "https://sms.qiniuapi.com/v1/signature/{$id}"; + $this->method = "GET"; + return $this; + } + + /** + * 编辑签名 + * https://developer.qiniu.com/sms/api/5890/sms-api-edit-signature + * @param $id + * @return $this + * @throws DtaException + */ + public function signatureEditId($id): self + { + if (empty($id)) { + throw new DtaException('请检查id参数'); + } + $this->url = "https://sms.qiniuapi.com/v1/signature/{$id}"; + $this->method = "PUT"; + return $this; + } + + /** + * 删除签名 + * https://developer.qiniu.com/sms/api/5891/sms-api-delete-signature + * @param $id + * @return $this + * @throws DtaException + */ + public function signatureDelId($id): self + { + if (empty($id)) { + throw new DtaException('请检查id参数'); + } + $this->url = "https://sms.qiniuapi.com/v1/signature/{$id}"; + $this->method = "DELETE"; + return $this; + } + + /** + * 创建模板 + * https://developer.qiniu.com/sms/api/5893/sms-api-create-template + * @return $this + */ + public function template(): self + { + $this->url = "https://sms.qiniuapi.com/v1/template"; + $this->method = "POST"; + return $this; + } + + /** + * 查询模板 + * https://developer.qiniu.com/sms/api/5894/sms-api-query-template + * @return $this + */ + public function templateQuery(): self + { + $this->url = "https://sms.qiniuapi.com/v1/template"; + $this->method = "GET"; + return $this; + } + + /** + * 查询单个模版信息 + * https://developer.qiniu.com/sms/api/5969/query-a-single-template + * @param $id + * @return $this + * @throws DtaException + */ + public function templateQueryId($id): self + { + if (empty($id)) { + throw new DtaException('请检查id参数'); + } + $this->url = "https://sms.qiniuapi.com/v1/template/{$id}"; + $this->method = "GET"; + return $this; + } + + /** + * 编辑签名 + * https://developer.qiniu.com/sms/api/5895/sms-api-edit-template + * @param $id + * @return $this + * @throws DtaException + */ + public function templateEditId($id): self + { + if (empty($id)) { + throw new DtaException('请检查id参数'); + } + $this->url = "https://sms.qiniuapi.com/v1/template/{$id}"; + $this->method = "PUT"; + return $this; + } + + /** + * 删除签名 + * https://developer.qiniu.com/sms/api/5896/sms-api-delete-template + * @param $id + * @return $this + * @throws DtaException + */ + public function templateDelId($id): self + { + if (empty($id)) { + throw new DtaException('请检查id参数'); + } + $this->url = "https://sms.qiniuapi.com/v1/template/{$id}"; + $this->method = "DELETE"; + return $this; + } + + /** + * 返回数组数据 + * @return array|mixed + * @throws DtaException + * @throws \GuzzleHttp\Exception\GuzzleException + */ + public function toArray() + { + //首先检测是否支持curl + if (!extension_loaded("curl")) { + throw new HttpException(404, '请开启curl模块!'); + } + $this->http(); + // 正常 + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + $this->output = $this->object2array($this->output); + return $this->output; + } + $this->output = json_decode($this->output, true); + return $this->output; + } + + /** + * @param $object + * @return array + */ + private function object2array(&$object): array + { + if (is_object($object)) { + $arr = (array)($object); + } else { + $arr = &$object; + } + if (is_array($arr)) { + foreach ($arr as $varName => $varValue) { + $arr[$varName] = $this->object2array($varValue); + } + } + return $arr; + } + + /** + * 网络请求 + * @return $this + * @throws DtaException + * @throws \GuzzleHttp\Exception\GuzzleException + */ + private function http(): self + { + if (empty($this->accessKey)) { + throw new DtaException('请检查accessKey参数'); + } + if (empty($this->secretKey)) { + throw new DtaException('请检查secretKey参数'); + } + $headers = [ + 'Authorization' => $this->authentication(), + 'Content-Type' => $this->contentType + ]; + + $auth = new Auth($this->accessKey, $this->secretKey); + $recToken = $auth->authorizationV2($this->url, $this->method, json_encode($this->param), $this->contentType); + $rtcToken['Content-Type'] = $this->contentType; + dump($recToken); + dump($this->url . "?" . http_build_query($this->param)); + $ret = Client::get($this->url . "?" . http_build_query($this->param), $recToken); + dump($ret); + $this->output = $ret->json(); + return $this; + } + + /** + * 服务鉴权 + * https://developer.qiniu.com/sms/api/5842/sms-api-authentication + * @return string + */ + private function authentication() + { + $url = parse_url($this->url); + $data = $url['path'] ?? ''; + if (isset($url['query'])) { + $data .= '?' . $url['query']; + } + $data .= "\n"; + if (isset($this->param) && $this->contentType === 'application/x-www-form-urlencoded') { + $data .= json_encode($this->param); + } + return $this->sign($data); + } + + /** + * @param $data + * @return string + */ + private function sign($data) + { + $sign = hash_hmac('sha1', $data, $this->secretKey, true); + return "Qiniu " . sprintf('%s:%s', $this->accessKey, $this->encode($sign)); + } + + /** + * @param $string + * @return string|string[] + */ + private function encode($string) + { + $find = ['+', '/']; + $replace = ['-', '_']; + return str_replace($find, $replace, base64_encode($string)); + } } \ No newline at end of file diff --git a/src/service/taobao/TaoBaoService.php b/src/service/taobao/TaoBaoService.php index 6e27bff..5eb099e 100644 --- a/src/service/taobao/TaoBaoService.php +++ b/src/service/taobao/TaoBaoService.php @@ -1,200 +1,200 @@ -app_key = $appKey; - return $this; - } - - /** - * 应用AppSecret - * @param string $appSecret - * @return $this - */ - public function appSecret(string $appSecret): self - { - $this->app_secret = $appSecret; - return $this; - } - - /** - * 请求参数 - * @param array $param - * @return $this - */ - public function param(array $param): self - { - $this->param = $param; - return $this; - } - - /** - * ( 淘宝客-公用-私域用户备案 ) - * 通过入参渠道管理或会员运营管理的邀请码,生成渠道id或会员运营id,完成渠道或会员的备案。 - * https://open.taobao.com/api.htm?docId=37988&docType=2&scopeId=14474 - * @param $sessionKey - * @return $this - */ - public function tbkScPublisherInfoSave($sessionKey): self - { - $c = new TopClient(); - $c->appkey = $this->app_key; - $c->secretKey = $this->app_secret; - $req = new TbkScPublisherInfoSaveRequest(); - if (isset($this->param['relation_from'])) { - $req->setRelationFrom($this->param['relation_from']); - } - if (isset($this->param['offline_scene'])) { - $req->setOfflineScene($this->param['offline_scene']); - } - if (isset($this->param['online_scene'])) { - $req->setOnlineScene($this->param['online_scene']); - } - if (isset($this->param['inviter_code'])) { - $req->setInviterCode($this->param['inviter_code']); - } - if (isset($this->param['info_type'])) { - $req->setInfoType($this->param['info_type']); - } - if (isset($this->param['note'])) { - $req->setNote($this->param['note']); - } - if (isset($this->param['register_info'])) { - $req->setRegisterInfo($this->param['register_info']); - } - $this->output = $c->execute($req, $sessionKey); - return $this; - } - - /** - * ( 淘宝客-公用-私域用户备案信息查询 ) - * 查询已生成的渠道id或会员运营id的相关信息。 - * https://open.taobao.com/api.htm?docId=37989&docType=2&scopeId=14474 - * @param $sessionKey - * @return $this - */ - public function tbkScPublisherInfoGet($sessionKey): self - { - $c = new TopClient(); - $c->appkey = $this->app_key; - $c->secretKey = $this->app_secret; - $req = new TbkScPublisherInfoGetRequest(); - if (isset($this->param['info_type'])) { - $req->setInfoType($this->param['info_type']); - } - if (isset($this->param['relation_id'])) { - $req->setRelationId($this->param['relation_id']); - } - if (isset($this->param['page_no'])) { - $req->setPageNo($this->param['page_no']); - } - if (isset($this->param['page_size'])) { - $req->setPageSize($this->param['page_size']); - } - if (isset($this->param['relation_app'])) { - $req->setRelationApp($this->param['relation_app']); - } - if (isset($this->param['special_id'])) { - $req->setSpecialId($this->param['special_id']); - } - if (isset($this->param['external_id'])) { - $req->setExternalId($this->param['external_id']); - } - $this->output = $c->execute($req, $sessionKey); - return $this; - } - - /** - * ( 淘宝客-公用-私域用户邀请码生成 ) - * 私域用户管理(即渠道管理或会员运营管理)功能中,通过此API可生成淘宝客自身的邀请码。 - * https://open.taobao.com/api.htm?docId=38046&docType=2&scopeId=14474 - * @param $sessionKey - * @return $this - */ - public function tbkScInvitecodeGet($sessionKey): self - { - $c = new TopClient(); - $c->appkey = $this->app_key; - $c->secretKey = $this->app_secret; - $req = new TbkScInvitecodeGetRequest(); - if (isset($this->param['relation_id'])) { - $req->setRelationId($this->param['relation_id']); - } - if (isset($this->param['relation_app'])) { - $req->setRelationApp($this->param['relation_app']); - } - if (isset($this->param['code_type'])) { - $req->setCodeType($this->param['code_type']); - } - $this->output = $c->execute($req, $sessionKey); - return $this; - } - - /** - * 返回Array - * @return array|mixed - */ - public function toArray() - { - if (isset($this->output['error_response'])) { - // 错误 - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); - } - return json_decode($this->output, true); - } - - // 正常 - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); - } - $this->output = json_decode($this->output, true); - return $this->output; - } +app_key = $appKey; + return $this; + } + + /** + * 应用AppSecret + * @param string $appSecret + * @return $this + */ + public function appSecret(string $appSecret): self + { + $this->app_secret = $appSecret; + return $this; + } + + /** + * 请求参数 + * @param array $param + * @return $this + */ + public function param(array $param): self + { + $this->param = $param; + return $this; + } + + /** + * ( 淘宝客-公用-私域用户备案 ) + * 通过入参渠道管理或会员运营管理的邀请码,生成渠道id或会员运营id,完成渠道或会员的备案。 + * https://open.taobao.com/api.htm?docId=37988&docType=2&scopeId=14474 + * @param $sessionKey + * @return $this + */ + public function tbkScPublisherInfoSave($sessionKey): self + { + $c = new TopClient(); + $c->appkey = $this->app_key; + $c->secretKey = $this->app_secret; + $req = new TbkScPublisherInfoSaveRequest(); + if (isset($this->param['relation_from'])) { + $req->setRelationFrom($this->param['relation_from']); + } + if (isset($this->param['offline_scene'])) { + $req->setOfflineScene($this->param['offline_scene']); + } + if (isset($this->param['online_scene'])) { + $req->setOnlineScene($this->param['online_scene']); + } + if (isset($this->param['inviter_code'])) { + $req->setInviterCode($this->param['inviter_code']); + } + if (isset($this->param['info_type'])) { + $req->setInfoType($this->param['info_type']); + } + if (isset($this->param['note'])) { + $req->setNote($this->param['note']); + } + if (isset($this->param['register_info'])) { + $req->setRegisterInfo($this->param['register_info']); + } + $this->output = $c->execute($req, $sessionKey); + return $this; + } + + /** + * ( 淘宝客-公用-私域用户备案信息查询 ) + * 查询已生成的渠道id或会员运营id的相关信息。 + * https://open.taobao.com/api.htm?docId=37989&docType=2&scopeId=14474 + * @param $sessionKey + * @return $this + */ + public function tbkScPublisherInfoGet($sessionKey): self + { + $c = new TopClient(); + $c->appkey = $this->app_key; + $c->secretKey = $this->app_secret; + $req = new TbkScPublisherInfoGetRequest(); + if (isset($this->param['info_type'])) { + $req->setInfoType($this->param['info_type']); + } + if (isset($this->param['relation_id'])) { + $req->setRelationId($this->param['relation_id']); + } + if (isset($this->param['page_no'])) { + $req->setPageNo($this->param['page_no']); + } + if (isset($this->param['page_size'])) { + $req->setPageSize($this->param['page_size']); + } + if (isset($this->param['relation_app'])) { + $req->setRelationApp($this->param['relation_app']); + } + if (isset($this->param['special_id'])) { + $req->setSpecialId($this->param['special_id']); + } + if (isset($this->param['external_id'])) { + $req->setExternalId($this->param['external_id']); + } + $this->output = $c->execute($req, $sessionKey); + return $this; + } + + /** + * ( 淘宝客-公用-私域用户邀请码生成 ) + * 私域用户管理(即渠道管理或会员运营管理)功能中,通过此API可生成淘宝客自身的邀请码。 + * https://open.taobao.com/api.htm?docId=38046&docType=2&scopeId=14474 + * @param $sessionKey + * @return $this + */ + public function tbkScInvitecodeGet($sessionKey): self + { + $c = new TopClient(); + $c->appkey = $this->app_key; + $c->secretKey = $this->app_secret; + $req = new TbkScInvitecodeGetRequest(); + if (isset($this->param['relation_id'])) { + $req->setRelationId($this->param['relation_id']); + } + if (isset($this->param['relation_app'])) { + $req->setRelationApp($this->param['relation_app']); + } + if (isset($this->param['code_type'])) { + $req->setCodeType($this->param['code_type']); + } + $this->output = $c->execute($req, $sessionKey); + return $this; + } + + /** + * 返回Array + * @return array|mixed + */ + public function toArray() + { + if (isset($this->output['error_response'])) { + // 错误 + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); + } + return json_decode($this->output, true); + } + + // 正常 + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); + } + $this->output = json_decode($this->output, true); + return $this->output; + } } \ No newline at end of file diff --git a/src/service/taobao/TbkService.php b/src/service/taobao/TbkService.php index 5a4e4b3..9beed0b 100644 --- a/src/service/taobao/TbkService.php +++ b/src/service/taobao/TbkService.php @@ -1,1482 +1,1482 @@ -protocol = $protocol; - return $this; - } - - /** - * 是否为沙箱 - * @return $this - */ - public function sandbox(): self - { - $this->sandbox = true; - return $this; - } - - /** - * 配置应用的AppKey - * @param string $appKey - * @return $this - */ - public function appKey(string $appKey): self - { - $this->app_key = $appKey; - return $this; - } - - /** - * 应用AppSecret - * @param string $appSecret - * @return $this - */ - public function appSecret(string $appSecret): self - { - $this->app_secret = $appSecret; - return $this; - } - - /** - * API接口名称 - * @param string $signMethod - * @return $this - */ - public function signMethod(string $signMethod): self - { - $this->sign_method = $signMethod; - return $this; - } - - /** - * 请求参数 - * @param array $param - * @return $this - */ - public function param(array $param): self - { - $this->param = $param; - return $this; - } - - /** - * 获取配置信息 - * @return $this - */ - private function getConfig(): self - { - $this->app_key = config('dtapp.taobao.tbk.app_key'); - $this->app_secret = config('dtapp.taobao.tbk.app_secret'); - return $this; - } - - /** - * 淘宝客-推广者-所有订单查询 - * @return $this - */ - public function orderDetailsGet(): self - { - $this->method = 'taobao.tbk.order.details.get'; - return $this; - } - - /** - * 淘宝客-服务商-所有订单查询 - * @return $this - */ - public function scOrderDetailsGet(): self - { - $this->method = 'taobao.tbk.sc.order.details.get'; - return $this; - } - - /** - * 淘宝客-服务商-淘口令解析&转链 - * @return $this - */ - public function scTpwdConvert(): self - { - $this->method = 'taobao.tbk.sc.tpwd.convert'; - return $this; - } - - /** - * 淘宝客-服务商-维权退款订单查询 - * @return $this - */ - public function scRelationRefund(): self - { - $this->method = 'taobao.tbk.sc.relation.refund'; - return $this; - } - - /** - * 淘宝客-服务商-店铺链接转换 - * @return $this - */ - public function scShopConvert(): self - { - $this->method = 'taobao.tbk.sc.shop.convert'; - return $this; - } - - /** - * 淘宝客-推广者-官办找福利页 - * @return $this - */ - public function jzfConvert(): self - { - $this->method = 'taobao.tbk.jzf.convert'; - return $this; - } - - /** - * 淘宝客-推广者-维权退款订单查询 - * @return $this - */ - public function relationRefund(): self - { - $this->method = 'taobao.tbk.relation.refund'; - return $this; - } - - /** - * 淘宝客-服务商-淘礼金创建 - * @return $this - */ - public function scVegasTljCreate(): self - { - $this->method = 'taobao.tbk.sc.vegas.tlj.create'; - return $this; - } - - /** - * 淘宝客商品展示规则获取 - * @return $this - */ - public function itemRuleGet(): self - { - $this->method = 'qimen.taobao.tbk.item.rule.get'; - return $this; - } - - /** - * 淘宝客-推广者-处罚订单查询 - * @return $this - */ - public function dgPunishOrderGet(): self - { - $this->method = 'taobao.tbk.dg.punish.order.get'; - return $this; - } - - /** - * 淘宝客-公用-淘口令解析出原链接 - * @return $this - */ - public function tpwdParse(): self - { - $this->method = 'taobao.tbk.tpwd.parse'; - return $this; - } - - /** - * 淘宝客-推广者-新用户订单明细查询 - * @return $this - */ - public function dgNewUserOrderGet(): self - { - $this->method = 'taobao.tbk.dg.newuser.order.get'; - return $this; - } - - /** - * 淘宝客-服务商-新用户订单明细查询 - * @return $this - */ - public function scNewuserOrderGet(): self - { - $this->method = 'taobao.tbk.sc.newuser.order.get'; - return $this; - } - - /** - * 淘宝客-推广者-拉新活动对应数据查询 - * @return $this - */ - public function dgNewUserOrderSum(): self - { - $this->method = 'taobao.tbk.dg.newuser.order.sum'; - return $this; - } - - /** - * 超级红包发放个数 - 淘宝客-推广者-查询超级红包发放个数 - * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=47593&docType=2 - * @return $this - */ - public function dgVegasSendReport(): self - { - $this->method = 'taobao.tbk.dg.vegas.send.report'; - return $this; - } - - /** - * 淘宝客-推广者-官方活动转链 - * @return $this - */ - public function activityInfoGet(): self - { - $this->method = 'taobao.tbk.activity.info.get'; - return $this; - } - - /** - * 淘宝客-服务商-官方活动转链 - * @return $this - */ - public function scActivityInfoGet(): self - { - $this->method = 'taobao.tbk.sc.activity.info.get'; - return $this; - } - - /** - * 淘宝客-推广者-联盟口令生成 - * @return $this - */ - public function textTpwdCreate(): self - { - $this->method = 'taobao.tbk.text.tpwd.create'; - return $this; - } - - /** - * 淘宝客-推广者-官方活动转链(2020.9.30下线) - * @return $this - */ - public function activityLinkGet(): self - { - $this->method = 'taobao.tbk.activitylink.get'; - return $this; - } - - /** - * 淘宝客-公用-淘口令生成 - * @return $this - */ - public function tpWdCreate(): self - { - $this->method = 'taobao.tbk.tpwd.create'; - return $this; - } - - /** - * 淘宝客-公用-长链转短链 - * @return $this - */ - public function spreadGet(): self - { - $this->method = 'taobao.tbk.spread.get'; - return $this; - } - - /** - * 聚划算商品搜索接口 - * https://open.taobao.com/api.htm?docId=28762&docType=2&scopeId=16517 - * @return $this - */ - public function itemsSearch(): self - { - $this->method = 'taobao.ju.items.search'; - return $this; - } - - /** - * 淘抢购api(2020.9.30下线) - * @return $this - */ - public function juTqgGet(): self - { - $this->method = 'taobao.tbk.ju.tqg.get'; - return $this; - } - - /** - * 淘宝客-推广者-淘礼金创建 - * @return $this - */ - public function dgVegasTljCreate(): self - { - $this->method = 'taobao.tbk.dg.vegas.tlj.create'; - return $this; - } - - /** - * 淘宝客-推广者-轻店铺淘口令解析 - * @return $this - */ - public function lightshopTbpswdParse(): self - { - $this->method = 'taobao.tbk.lightshop.tbpswd.parse'; - return $this; - } - - /** - * 淘宝客-推广者-淘礼金发放及使用报表 - * @return $this - */ - public function dgVegasTljInstanceReport(): self - { - $this->method = 'taobao.tbk.dg.vegas.tlj.instance.report'; - return $this; - } - - /** - * 淘宝客-服务商-手淘群发单 - * @return $this - */ - public function scGroupchatMessageSend(): self - { - $this->method = 'taobao.tbk.sc.groupchat.message.send'; - return $this; - } - - /** - * 淘宝客-服务商-手淘群创建 - * @return $this - */ - public function scGroupchatCreate(): self - { - $this->method = 'taobao.tbk.sc.groupchat.create'; - return $this; - } - - /** - * 淘宝客-服务商-手淘群查询 - * @return $this - */ - public function scGroupchatGet(): self - { - $this->method = 'taobao.tbk.sc.groupchat.get'; - return $this; - } - - /** - * 淘宝客-公用-手淘注册用户判定 - * @return $this - */ - public function tbinfoGet(): self - { - $this->method = 'taobao.tbk.tbinfo.get'; - return $this; - } - - /** - * 淘宝客-公用-pid校验 - * @return $this - */ - public function tbkinfoGet(): self - { - $this->method = 'taobao.tbk.tbkinfo.get'; - return $this; - } - - /** - * 淘宝客-公用-私域用户邀请码生成 - * @return $this - */ - public function scInvIteCodeGet(): self - { - $this->method = 'taobao.tbk.sc.invitecode.get'; - return $this; - } - - /** - * 淘宝客-公用-私域用户备案信息查询 - * @return $this - */ - public function scPublisherInfoGet(): self - { - $this->method = 'taobao.tbk.sc.publisher.info.get'; - return $this; - } - - /** - * 淘宝客-公用-私域用户备案 - * @return $this - */ - public function scPublisherInfoSave(): self - { - $this->method = 'taobao.tbk.sc.publisher.info.save'; - return $this; - } - - /** - * 淘宝客-公用-淘宝客商品详情查询(简版) - * @return $this - */ - public function itemInfoGet(): self - { - $this->method = 'taobao.tbk.item.info.get'; - return $this; - } - - /** - * 淘宝客-公用-阿里妈妈推广券详情查询 - * @return $this - */ - public function couponGet(): self - { - $this->method = 'taobao.tbk.coupon.get'; - return $this; - } - - /** - * 淘宝客-推广者-物料搜索 - * @return $this - */ - public function dgMaterialOptional(): self - { - $this->method = 'taobao.tbk.dg.material.optional'; - return $this; - } - - /** - * 淘宝客-推广者-店铺搜索 - * @return $this - */ - public function shopGet(): self - { - $this->method = 'taobao.tbk.shop.get'; - return $this; - } - - /** - * 淘宝客-推广者-物料精选 - * @return $this - */ - public function dgOpTiUsMaterial(): self - { - $this->method = 'taobao.tbk.dg.optimus.material'; - return $this; - } - - /** - * 淘宝客-推广者-图文内容输出(2020.9.30下线) - * @return $this - */ - public function contentGet(): self - { - $this->method = 'taobao.tbk.content.get'; - return $this; - } - - /** - * 淘宝客-推广者-图文内容效果数据(2020.9.30下线) - * @return $this - */ - public function contentEffectGet(): self - { - $this->method = 'taobao.tbk.content.effect.get'; - return $this; - } - - - /** - * 淘宝客-推广者-商品出词 - * @return $this - */ - public function itemWordGet(): self - { - $this->method = 'taobao.tbk.item.word.get'; - return $this; - } - - /** - * 淘宝客-推广者-商品链接转换 - * @return $this - */ - public function itemConvert(): self - { - $this->method = 'taobao.tbk.item.convert'; - return $this; - } - - /** - * 淘宝客-公用-链接解析出商品id - * @return $this - */ - public function itemClickExtract(): self - { - $this->method = 'taobao.tbk.item.click.extract'; - return $this; - } - - /** - * 淘宝客-公用-商品关联推荐(2020.9.30下线) - * @return $this - */ - public function itemRecommendGet(): self - { - $this->method = 'taobao.tbk.item.recommend.get'; - return $this; - } - - /** - * 淘宝客-公用-店铺关联推荐 - * @return $this - */ - public function shopRecommendGet(): self - { - $this->method = 'taobao.tbk.shop.recommend.get'; - return $this; - } - - /** - * 淘宝客-推广者-选品库宝贝信息(2020.9.30下线) - * @return $this - */ - public function uaTmFavoritesItemGet(): self - { - $this->method = 'taobao.tbk.uatm.favorites.item.get'; - return $this; - } - - /** - * 淘宝客-推广者-选品库宝贝列表(2020.9.30下线) - * @return $this - */ - public function uaTmFavoritesGet(): self - { - $this->method = 'taobao.tbk.uatm.favorites.get'; - return $this; - } - - /** - * 淘宝客-服务商-官方活动转链(2020.9.30下线) - * @return $this - */ - public function scActivityLinkToolGet(): self - { - $this->method = 'taobao.tbk.sc.activitylink.toolget'; - return $this; - } - - /** - * 淘宝客-服务商-处罚订单查询 - * @return $this - */ - public function scPunishOrderGet(): self - { - $this->method = 'taobao.tbk.sc.punish.order.get'; - return $this; - } - - /** - * 淘宝客-推广者-创建推广位 - * @return $this - */ - public function adZoneCreate(): self - { - $this->method = 'taobao.tbk.adzone.create'; - return $this; - } - - /** - * 淘宝客文本淘口令 - * @return $this - */ - public function tpwdMixCreate(): self - { - $this->method = 'taobao.tbk.tpwd.mix.create'; - return $this; - } - - /** - * 淘宝客-推广者-b2c平台用户行为跟踪服务商 - * @return $this - */ - public function traceBtocAddtrace(): self - { - $this->method = 'taobao.tbk.trace.btoc.addtrace'; - return $this; - } - - /** - * 淘宝客-推广者-登陆信息跟踪服务商 - * @return $this - */ - public function traceLogininfoAdd(): self - { - $this->method = 'taobao.tbk.trace.logininfo.add'; - return $this; - } - - /** - * 淘宝客-推广者-用户行为跟踪服务商 - * @return $this - */ - public function traceShopitemAddtrace(): self - { - $this->method = 'taobao.tbk.trace.shopitem.addtrace'; - return $this; - } - - /** - * 淘宝客-推广者-商品三方分成链接转换 - * @return $this - */ - public function itemShareConvert(): self - { - $this->method = 'taobao.tbk.item.share.convert'; - return $this; - } - - /** - * 淘宝客-推广者-店铺链接转换 - * @return $this - */ - public function shopConvert(): self - { - $this->method = 'taobao.tbk.shop.convert'; - return $this; - } - - /** - * 淘宝客-推广者-店铺三方分成链接转换 - * @return $this - */ - public function shopShareConvert(): self - { - $this->method = 'taobao.tbk.shop.share.convert'; - return $this; - } - - /** - * 淘宝客-推广者-返利商家授权查询 - * @return $this - */ - public function rebateAuthGet(): self - { - $this->method = 'taobao.tbk.rebate.auth.get'; - return $this; - } - - /** - * 淘宝客-推广者-返利订单查询 - * @return $this - */ - public function rebateOrderGet(): self - { - $this->method = 'taobao.tbk.rebate.order.get'; - return $this; - } - - /** - * 淘宝客-推广者-根据宝贝id批量查询优惠券 - * @return $this - */ - public function itemidCouponGet(): self - { - $this->method = 'taobao.tbk.itemid.coupon.get'; - return $this; - } - - /** - * 淘宝客-服务商-保护门槛 - * @return $this - */ - public function dataReport(): self - { - $this->method = 'taobao.tbk.data.report'; - return $this; - } - - /** - * 淘宝客-推广者-单品券高效转链 - * @return $this - */ - public function couponConvert(): self - { - $this->method = 'taobao.tbk.coupon.convert'; - return $this; - } - - /** - * 淘宝客-推广者-淘口令解析&三方分成转链 - * @return $this - */ - public function tpwdShareConvert(): self - { - $this->method = 'taobao.tbk.tpwd.share.convert'; - return $this; - } - - /** - * 淘宝客-推广者-淘口令解析&转链 - * @return $this - */ - public function tpwdConvert(): self - { - $this->method = 'taobao.tbk.tpwd.convert'; - return $this; - } - - /** - * 淘宝客-服务商-创建推广者位 - * @return $this - */ - public function scAdzoneCreate(): self - { - $this->method = 'taobao.tbk.sc.adzone.create'; - return $this; - } - - /** - * 淘宝客-服务商-物料精选 - * @return $this - */ - public function scOptimusMaterial(): self - { - $this->method = 'taobao.tbk.sc.optimus.material'; - return $this; - } - - /** - * 淘宝客-服务商-物料搜索 - * @return $this - */ - public function scMaterialOptional(): self - { - $this->method = 'taobao.tbk.sc.material.optional'; - return $this; - } - - /** - * 淘宝客-服务商-拉新活动数据查询 - * @return $this - */ - public function scNewuserOrderSum(): self - { - $this->method = 'taobao.tbk.sc.newuser.order.sum'; - return $this; - } - - /** - * 自定义接口 - * @param string $method - * @return $this - */ - public function setMethod($method = ''): self - { - $this->method = $method; - return $this; - } - - /** - * 返回Array - * @return array|mixed - * @throws DtaException - */ - public function toArray() - { - //首先检测是否支持curl - if (!extension_loaded("curl")) { - throw new HttpException(404, '请开启curl模块!'); - } - $this->format = "json"; - if (empty($this->app_key)) { - $this->getConfig(); - } - if (empty($this->app_key)) { - throw new DtaException('请检查app_key参数'); - } - if (empty($this->method)) { - throw new DtaException('请检查method参数'); - } - $this->param['app_key'] = $this->app_key; - $this->param['method'] = $this->method; - $this->param['format'] = $this->format; - $this->param['v'] = $this->v; - $this->param['sign_method'] = $this->sign_method; - $this->param['timestamp'] = Times::getData(); - $this->http(); - if (isset($this->output['error_response'])) { - // 错误 - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); - } - return json_decode($this->output, true); - } - - // 正常 - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); - } - $this->output = json_decode($this->output, true); - return $this->output; - } - - /** - * 返回Xml - * @return mixed - * @throws DtaException - */ - public function toXml() - { - //首先检测是否支持curl - if (!extension_loaded("curl")) { - throw new HttpException('请开启curl模块!', E_USER_DEPRECATED); - } - $this->format = "xml"; - $this->http(); - return $this->output; - } - - /** - * 网络请求 - * @throws DtaException - */ - private function http(): void - { - //生成签名 - $sign = $this->createSign(); - //组织参数 - $strParam = $this->createStrParam(); - $strParam .= 'sign=' . $sign; - //访问服务 - if ($this->protocol === 'http') { - if (empty($this->sandbox)) { - $url = 'http://gw.api.taobao.com/router/rest?' . $strParam; - } else { - $url = 'http://gw.api.tbsandbox.com/router/rest?' . $strParam; - } - } - if ($this->protocol === 'https') { - if (empty($this->sandbox)) { - $url = 'https://eco.taobao.com/router/rest?' . $strParam; - } else { - $url = 'https://gw.api.tbsandbox.com/router/rest?' . $strParam; - } - } - $result = file_get_contents($url); - $result = json_decode($result, true); - $this->output = $result; - } - - /** - * 签名 - * @return string - * @throws DtaException - */ - private function createSign(): string - { - if (empty($this->app_secret)) { - $this->getConfig(); - } - if (empty($this->app_secret)) { - throw new DtaException('请检查app_secret参数'); - } - $sign = $this->app_secret; - ksort($this->param); - foreach ($this->param as $key => $val) { - if ($key !== '' && $val !== '') { - $sign .= $key . $val; - } - } - $sign .= $this->app_secret; - $sign = strtoupper(md5($sign)); - return $sign; - } - - /** - * 组参 - * @return string - */ - private function createStrParam(): string - { - $strParam = ''; - foreach ($this->param as $key => $val) { - if ($key !== '' && $val !== '') { - $strParam .= $key . '=' . urlencode($val) . '&'; - } - } - return $strParam; - } - - /** - * 获取活动物料 - * @return array[] - */ - public function getActivityMaterialIdList(): array - { - return [ - [ - // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628646?_k=tcswm1 - 'name' => '口碑', - 'list' => [ - [ - 'name' => '口碑主会场活动(2.3%佣金起)', - 'material_id' => 1583739244161 - ], - [ - 'name' => '生活服务分会场活动(2.3%佣金起)', - 'material_id' => 1583739244162 - ] - ] - ], - [ - // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628647?_k=hwggf9 - // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10630427?_k=sdet4e - // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10630361?_k=nq6zgt - 'name' => '饿了么', - 'list' => [ - [ - 'name' => '聚合页(6%佣金起)', - 'material_id' => 1571715733668 - ], - [ - 'name' => '新零售(4%佣金起)', - 'material_id' => 1585018034441 - ], - [ - 'name' => '餐饮', - 'material_id' => 1579491209717 - ], - ] - ], - [ - // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10634663?_k=zqgq01 - 'name' => '卡券(饭票)', - 'list' => [ - [ - 'name' => '饿了么卡券(1元以下商品)', - 'material_id' => 32469 - ], - [ - 'name' => '饿了么卡券投放全网商品库', - 'material_id' => 32470 - ], - [ - 'name' => '饿了么卡券(5折以下)', - 'material_id' => 32603 - ], - [ - 'name' => '饿了么头部全国KA商品库', - 'material_id' => 32663 - ], - [ - 'name' => '饿了么卡券招商爆品库', - 'material_id' => 32738 - ], - ] - ], - ]; - } - - /** - * 获取官方物料API汇总 - * https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628875?_k=gpov9a - * @return array - */ - public function getMaterialIdList(): array - { - return [ - [ - 'name' => '相似推荐', - 'list' => [ - [ - 'name' => '相似推荐', - 'material_id' => 13256 - ] - ] - ], - [ - 'name' => '官方推荐', - 'list' => [ - [ - 'name' => '聚划算满减满折', - 'material_id' => 32366 - ], - [ - 'name' => '猫超满减满折', - 'material_id' => 27160 - ] - ] - ], - [ - 'name' => '猜你喜欢', - 'list' => [ - [ - 'name' => '含全部商品', - 'material_id' => 6708 - ], - [ - 'name' => '营销商品库商品(此为具备“私域用户管理-会员运营管理功能”的媒体专用)', - 'material_id' => 28017 - ] - ] - ], - [ - 'name' => '好券直播', - 'list' => [ - [ - 'name' => '综合', - 'material_id' => 3756 - ], - [ - 'name' => '女装', - 'material_id' => 3767 - ], - [ - 'name' => '家居家装', - 'material_id' => 3758 - ], - [ - 'name' => '数码家电', - 'material_id' => 3759 - ], - [ - 'name' => '鞋包配饰', - 'material_id' => 3762 - ], - [ - 'name' => '美妆个护', - 'material_id' => 3763 - ], - [ - 'name' => '男装', - 'material_id' => 3764 - ], - [ - 'name' => '内衣', - 'material_id' => 3765 - ], - [ - 'name' => '母婴', - 'material_id' => 3760 - ], - [ - 'name' => '食品', - 'material_id' => 3761 - ], - [ - 'name' => '运动户外', - 'material_id' => 3766 - ] - ] - ], - [ - 'name' => '实时热销榜', - 'list' => [ - [ - 'name' => '综合', - 'material_id' => 28026 - ], - [ - 'name' => '大服饰', - 'material_id' => 28029 - ], - [ - 'name' => '大快消', - 'material_id' => 28027 - ], - [ - 'name' => '电器美家', - 'material_id' => 28028 - ] - ] - ], - [ - 'name' => '本地化生活', - 'list' => [ - [ - 'name' => '今日爆款(综合类目)', - 'material_id' => 30443 - ], - [ - 'name' => '淘票票(电影代金券)', - 'material_id' => 19812 - ], - [ - 'name' => '大麦网(演出/演唱会/剧目/会展)', - 'material_id' => 25378 - ], - [ - 'name' => '优酷会员(视频年卡)', - 'material_id' => 28636 - ], - [ - 'name' => '有声内容(喜马拉雅年卡,儿童节目等)', - 'material_id' => 29105 - ], - [ - 'name' => '阿里健康(hpv疫苗预约)', - 'material_id' => 25885 - ], - [ - 'name' => '阿里健康(体检)', - 'material_id' => 25886 - ], - [ - 'name' => '阿里健康(口腔)', - 'material_id' => 25888 - ], - [ - 'name' => '阿里健康(基因检测)', - 'material_id' => 25890 - ], - [ - 'name' => '飞猪(签证)', - 'material_id' => 26077 - ], - [ - 'name' => '飞猪(酒店)', - 'material_id' => 27913 - ], - [ - 'name' => '飞猪(自助餐)', - 'material_id' => 27914 - ], - [ - 'name' => '飞猪(门票)', - 'material_id' => 19811 - ], - [ - 'name' => '口碑(肯德基/必胜客/麦当劳)', - 'material_id' => 19810 - ], - [ - 'name' => '口碑(生活服务)', - 'material_id' => 28888 - ], - [ - 'name' => '天猫无忧购(家政服务)', - 'material_id' => 19814 - ], - [ - 'name' => '汽车定金(汽车定金)', - 'material_id' => 28397 - ], - ] - ], - [ - 'name' => '大额券', - 'list' => [ - [ - 'name' => '综合', - 'material_id' => 27446 - ], - [ - 'name' => '女装', - 'material_id' => 27448 - ], - [ - 'name' => '食品', - 'material_id' => 27451 - ], - [ - 'name' => '美妆个护', - 'material_id' => 27453 - ], - [ - 'name' => '家居家装', - 'material_id' => 27798 - ], - [ - 'name' => '母婴', - 'material_id' => 27454 - ] - ] - ], - [ - 'name' => '高佣榜', - 'list' => [ - [ - 'name' => '综合', - 'material_id' => 13366 - ], - [ - 'name' => '女装', - 'material_id' => 13367 - ], - [ - 'name' => '家居家装', - 'material_id' => 13368 - ], - [ - 'name' => '数码家电', - 'material_id' => 13369 - ], - [ - 'name' => '鞋包配饰', - 'material_id' => 13370 - ], - [ - 'name' => '美妆个护', - 'material_id' => 13371 - ], - [ - 'name' => '男装', - 'material_id' => 13372 - ], - [ - 'name' => '内衣', - 'material_id' => 13373 - ], - [ - 'name' => '母婴', - 'material_id' => 13374 - ], - [ - 'name' => '食品', - 'material_id' => 13375 - ], - [ - 'name' => '运动户外', - 'material_id' => 13376 - ] - ] - ], - [ - 'name' => '品牌券', - 'list' => [ - [ - 'name' => '综合', - 'material_id' => 3786 - ], - [ - 'name' => '女装', - 'material_id' => 3788 - ], - [ - 'name' => '家居家装', - 'material_id' => 3792 - ], - [ - 'name' => '数码家电', - 'material_id' => 3793 - ], - [ - 'name' => '鞋包配饰', - 'material_id' => 3796 - ], - [ - 'name' => '美妆个护', - 'material_id' => 3794 - ], - [ - 'name' => '男装', - 'material_id' => 3790 - ], - [ - 'name' => '内衣', - 'material_id' => 3787 - ], - [ - 'name' => '母婴', - 'material_id' => 3789 - ], - [ - 'name' => '食品', - 'material_id' => 3791 - ], - [ - 'name' => '运动户外', - 'material_id' => 3795 - ], - ] - ], - [ - 'name' => '猫超优质爆款', - 'list' => [ - [ - 'name' => '猫超1元购凑单', - 'material_id' => 27162 - ], - [ - 'name' => '猫超第二件0元', - 'material_id' => 27161 - ], - [ - 'name' => '猫超单件满减包邮', - 'material_id' => 27160 - ], - ] - ], - [ - 'name' => '聚划算单品爆款', - 'list' => [ - [ - 'name' => '开团热卖中', - 'material_id' => 31371 - ], - [ - 'name' => '预热', - 'material_id' => 31370 - ], - ] - ], - [ - 'name' => '天天特卖', - 'list' => [ - [ - 'name' => '开团热卖中', - 'material_id' => 31362 - ], - ] - ], - [ - 'name' => '母婴主题', - 'list' => [ - [ - 'name' => '备孕', - 'material_id' => 4040 - ], - [ - 'name' => '0至6个月', - 'material_id' => 4041 - ], - [ - 'name' => '4至6岁', - 'material_id' => 4044 - ], - [ - 'name' => '7至12个月', - 'material_id' => 4042 - ], - [ - 'name' => '1至3岁', - 'material_id' => 4043 - ], - [ - 'name' => '7至12岁', - 'material_id' => 4045 - ], - ] - ], - [ - 'name' => '有好货', - 'list' => [ - [ - 'name' => '有好货', - 'material_id' => 4092 - ], - ] - ], - [ - 'name' => '潮流范', - 'list' => [ - [ - 'name' => '潮流范', - 'material_id' => 4093 - ], - ] - ], - [ - 'name' => '特惠', - 'list' => [ - [ - 'name' => '特惠', - 'material_id' => 4094 - ], - ] - ], - ]; - } -} +protocol = $protocol; + return $this; + } + + /** + * 是否为沙箱 + * @return $this + */ + public function sandbox(): self + { + $this->sandbox = true; + return $this; + } + + /** + * 配置应用的AppKey + * @param string $appKey + * @return $this + */ + public function appKey(string $appKey): self + { + $this->app_key = $appKey; + return $this; + } + + /** + * 应用AppSecret + * @param string $appSecret + * @return $this + */ + public function appSecret(string $appSecret): self + { + $this->app_secret = $appSecret; + return $this; + } + + /** + * API接口名称 + * @param string $signMethod + * @return $this + */ + public function signMethod(string $signMethod): self + { + $this->sign_method = $signMethod; + return $this; + } + + /** + * 请求参数 + * @param array $param + * @return $this + */ + public function param(array $param): self + { + $this->param = $param; + return $this; + } + + /** + * 获取配置信息 + * @return $this + */ + private function getConfig(): self + { + $this->app_key = config('dtapp.taobao.tbk.app_key'); + $this->app_secret = config('dtapp.taobao.tbk.app_secret'); + return $this; + } + + /** + * 淘宝客-推广者-所有订单查询 + * @return $this + */ + public function orderDetailsGet(): self + { + $this->method = 'taobao.tbk.order.details.get'; + return $this; + } + + /** + * 淘宝客-服务商-所有订单查询 + * @return $this + */ + public function scOrderDetailsGet(): self + { + $this->method = 'taobao.tbk.sc.order.details.get'; + return $this; + } + + /** + * 淘宝客-服务商-淘口令解析&转链 + * @return $this + */ + public function scTpwdConvert(): self + { + $this->method = 'taobao.tbk.sc.tpwd.convert'; + return $this; + } + + /** + * 淘宝客-服务商-维权退款订单查询 + * @return $this + */ + public function scRelationRefund(): self + { + $this->method = 'taobao.tbk.sc.relation.refund'; + return $this; + } + + /** + * 淘宝客-服务商-店铺链接转换 + * @return $this + */ + public function scShopConvert(): self + { + $this->method = 'taobao.tbk.sc.shop.convert'; + return $this; + } + + /** + * 淘宝客-推广者-官办找福利页 + * @return $this + */ + public function jzfConvert(): self + { + $this->method = 'taobao.tbk.jzf.convert'; + return $this; + } + + /** + * 淘宝客-推广者-维权退款订单查询 + * @return $this + */ + public function relationRefund(): self + { + $this->method = 'taobao.tbk.relation.refund'; + return $this; + } + + /** + * 淘宝客-服务商-淘礼金创建 + * @return $this + */ + public function scVegasTljCreate(): self + { + $this->method = 'taobao.tbk.sc.vegas.tlj.create'; + return $this; + } + + /** + * 淘宝客商品展示规则获取 + * @return $this + */ + public function itemRuleGet(): self + { + $this->method = 'qimen.taobao.tbk.item.rule.get'; + return $this; + } + + /** + * 淘宝客-推广者-处罚订单查询 + * @return $this + */ + public function dgPunishOrderGet(): self + { + $this->method = 'taobao.tbk.dg.punish.order.get'; + return $this; + } + + /** + * 淘宝客-公用-淘口令解析出原链接 + * @return $this + */ + public function tpwdParse(): self + { + $this->method = 'taobao.tbk.tpwd.parse'; + return $this; + } + + /** + * 淘宝客-推广者-新用户订单明细查询 + * @return $this + */ + public function dgNewUserOrderGet(): self + { + $this->method = 'taobao.tbk.dg.newuser.order.get'; + return $this; + } + + /** + * 淘宝客-服务商-新用户订单明细查询 + * @return $this + */ + public function scNewuserOrderGet(): self + { + $this->method = 'taobao.tbk.sc.newuser.order.get'; + return $this; + } + + /** + * 淘宝客-推广者-拉新活动对应数据查询 + * @return $this + */ + public function dgNewUserOrderSum(): self + { + $this->method = 'taobao.tbk.dg.newuser.order.sum'; + return $this; + } + + /** + * 超级红包发放个数 - 淘宝客-推广者-查询超级红包发放个数 + * https://open.taobao.com/api.htm?spm=a2e0r.13193907.0.0.210524ad2gvyOW&docId=47593&docType=2 + * @return $this + */ + public function dgVegasSendReport(): self + { + $this->method = 'taobao.tbk.dg.vegas.send.report'; + return $this; + } + + /** + * 淘宝客-推广者-官方活动转链 + * @return $this + */ + public function activityInfoGet(): self + { + $this->method = 'taobao.tbk.activity.info.get'; + return $this; + } + + /** + * 淘宝客-服务商-官方活动转链 + * @return $this + */ + public function scActivityInfoGet(): self + { + $this->method = 'taobao.tbk.sc.activity.info.get'; + return $this; + } + + /** + * 淘宝客-推广者-联盟口令生成 + * @return $this + */ + public function textTpwdCreate(): self + { + $this->method = 'taobao.tbk.text.tpwd.create'; + return $this; + } + + /** + * 淘宝客-推广者-官方活动转链(2020.9.30下线) + * @return $this + */ + public function activityLinkGet(): self + { + $this->method = 'taobao.tbk.activitylink.get'; + return $this; + } + + /** + * 淘宝客-公用-淘口令生成 + * @return $this + */ + public function tpWdCreate(): self + { + $this->method = 'taobao.tbk.tpwd.create'; + return $this; + } + + /** + * 淘宝客-公用-长链转短链 + * @return $this + */ + public function spreadGet(): self + { + $this->method = 'taobao.tbk.spread.get'; + return $this; + } + + /** + * 聚划算商品搜索接口 + * https://open.taobao.com/api.htm?docId=28762&docType=2&scopeId=16517 + * @return $this + */ + public function itemsSearch(): self + { + $this->method = 'taobao.ju.items.search'; + return $this; + } + + /** + * 淘抢购api(2020.9.30下线) + * @return $this + */ + public function juTqgGet(): self + { + $this->method = 'taobao.tbk.ju.tqg.get'; + return $this; + } + + /** + * 淘宝客-推广者-淘礼金创建 + * @return $this + */ + public function dgVegasTljCreate(): self + { + $this->method = 'taobao.tbk.dg.vegas.tlj.create'; + return $this; + } + + /** + * 淘宝客-推广者-轻店铺淘口令解析 + * @return $this + */ + public function lightshopTbpswdParse(): self + { + $this->method = 'taobao.tbk.lightshop.tbpswd.parse'; + return $this; + } + + /** + * 淘宝客-推广者-淘礼金发放及使用报表 + * @return $this + */ + public function dgVegasTljInstanceReport(): self + { + $this->method = 'taobao.tbk.dg.vegas.tlj.instance.report'; + return $this; + } + + /** + * 淘宝客-服务商-手淘群发单 + * @return $this + */ + public function scGroupchatMessageSend(): self + { + $this->method = 'taobao.tbk.sc.groupchat.message.send'; + return $this; + } + + /** + * 淘宝客-服务商-手淘群创建 + * @return $this + */ + public function scGroupchatCreate(): self + { + $this->method = 'taobao.tbk.sc.groupchat.create'; + return $this; + } + + /** + * 淘宝客-服务商-手淘群查询 + * @return $this + */ + public function scGroupchatGet(): self + { + $this->method = 'taobao.tbk.sc.groupchat.get'; + return $this; + } + + /** + * 淘宝客-公用-手淘注册用户判定 + * @return $this + */ + public function tbinfoGet(): self + { + $this->method = 'taobao.tbk.tbinfo.get'; + return $this; + } + + /** + * 淘宝客-公用-pid校验 + * @return $this + */ + public function tbkinfoGet(): self + { + $this->method = 'taobao.tbk.tbkinfo.get'; + return $this; + } + + /** + * 淘宝客-公用-私域用户邀请码生成 + * @return $this + */ + public function scInvIteCodeGet(): self + { + $this->method = 'taobao.tbk.sc.invitecode.get'; + return $this; + } + + /** + * 淘宝客-公用-私域用户备案信息查询 + * @return $this + */ + public function scPublisherInfoGet(): self + { + $this->method = 'taobao.tbk.sc.publisher.info.get'; + return $this; + } + + /** + * 淘宝客-公用-私域用户备案 + * @return $this + */ + public function scPublisherInfoSave(): self + { + $this->method = 'taobao.tbk.sc.publisher.info.save'; + return $this; + } + + /** + * 淘宝客-公用-淘宝客商品详情查询(简版) + * @return $this + */ + public function itemInfoGet(): self + { + $this->method = 'taobao.tbk.item.info.get'; + return $this; + } + + /** + * 淘宝客-公用-阿里妈妈推广券详情查询 + * @return $this + */ + public function couponGet(): self + { + $this->method = 'taobao.tbk.coupon.get'; + return $this; + } + + /** + * 淘宝客-推广者-物料搜索 + * @return $this + */ + public function dgMaterialOptional(): self + { + $this->method = 'taobao.tbk.dg.material.optional'; + return $this; + } + + /** + * 淘宝客-推广者-店铺搜索 + * @return $this + */ + public function shopGet(): self + { + $this->method = 'taobao.tbk.shop.get'; + return $this; + } + + /** + * 淘宝客-推广者-物料精选 + * @return $this + */ + public function dgOpTiUsMaterial(): self + { + $this->method = 'taobao.tbk.dg.optimus.material'; + return $this; + } + + /** + * 淘宝客-推广者-图文内容输出(2020.9.30下线) + * @return $this + */ + public function contentGet(): self + { + $this->method = 'taobao.tbk.content.get'; + return $this; + } + + /** + * 淘宝客-推广者-图文内容效果数据(2020.9.30下线) + * @return $this + */ + public function contentEffectGet(): self + { + $this->method = 'taobao.tbk.content.effect.get'; + return $this; + } + + + /** + * 淘宝客-推广者-商品出词 + * @return $this + */ + public function itemWordGet(): self + { + $this->method = 'taobao.tbk.item.word.get'; + return $this; + } + + /** + * 淘宝客-推广者-商品链接转换 + * @return $this + */ + public function itemConvert(): self + { + $this->method = 'taobao.tbk.item.convert'; + return $this; + } + + /** + * 淘宝客-公用-链接解析出商品id + * @return $this + */ + public function itemClickExtract(): self + { + $this->method = 'taobao.tbk.item.click.extract'; + return $this; + } + + /** + * 淘宝客-公用-商品关联推荐(2020.9.30下线) + * @return $this + */ + public function itemRecommendGet(): self + { + $this->method = 'taobao.tbk.item.recommend.get'; + return $this; + } + + /** + * 淘宝客-公用-店铺关联推荐 + * @return $this + */ + public function shopRecommendGet(): self + { + $this->method = 'taobao.tbk.shop.recommend.get'; + return $this; + } + + /** + * 淘宝客-推广者-选品库宝贝信息(2020.9.30下线) + * @return $this + */ + public function uaTmFavoritesItemGet(): self + { + $this->method = 'taobao.tbk.uatm.favorites.item.get'; + return $this; + } + + /** + * 淘宝客-推广者-选品库宝贝列表(2020.9.30下线) + * @return $this + */ + public function uaTmFavoritesGet(): self + { + $this->method = 'taobao.tbk.uatm.favorites.get'; + return $this; + } + + /** + * 淘宝客-服务商-官方活动转链(2020.9.30下线) + * @return $this + */ + public function scActivityLinkToolGet(): self + { + $this->method = 'taobao.tbk.sc.activitylink.toolget'; + return $this; + } + + /** + * 淘宝客-服务商-处罚订单查询 + * @return $this + */ + public function scPunishOrderGet(): self + { + $this->method = 'taobao.tbk.sc.punish.order.get'; + return $this; + } + + /** + * 淘宝客-推广者-创建推广位 + * @return $this + */ + public function adZoneCreate(): self + { + $this->method = 'taobao.tbk.adzone.create'; + return $this; + } + + /** + * 淘宝客文本淘口令 + * @return $this + */ + public function tpwdMixCreate(): self + { + $this->method = 'taobao.tbk.tpwd.mix.create'; + return $this; + } + + /** + * 淘宝客-推广者-b2c平台用户行为跟踪服务商 + * @return $this + */ + public function traceBtocAddtrace(): self + { + $this->method = 'taobao.tbk.trace.btoc.addtrace'; + return $this; + } + + /** + * 淘宝客-推广者-登陆信息跟踪服务商 + * @return $this + */ + public function traceLogininfoAdd(): self + { + $this->method = 'taobao.tbk.trace.logininfo.add'; + return $this; + } + + /** + * 淘宝客-推广者-用户行为跟踪服务商 + * @return $this + */ + public function traceShopitemAddtrace(): self + { + $this->method = 'taobao.tbk.trace.shopitem.addtrace'; + return $this; + } + + /** + * 淘宝客-推广者-商品三方分成链接转换 + * @return $this + */ + public function itemShareConvert(): self + { + $this->method = 'taobao.tbk.item.share.convert'; + return $this; + } + + /** + * 淘宝客-推广者-店铺链接转换 + * @return $this + */ + public function shopConvert(): self + { + $this->method = 'taobao.tbk.shop.convert'; + return $this; + } + + /** + * 淘宝客-推广者-店铺三方分成链接转换 + * @return $this + */ + public function shopShareConvert(): self + { + $this->method = 'taobao.tbk.shop.share.convert'; + return $this; + } + + /** + * 淘宝客-推广者-返利商家授权查询 + * @return $this + */ + public function rebateAuthGet(): self + { + $this->method = 'taobao.tbk.rebate.auth.get'; + return $this; + } + + /** + * 淘宝客-推广者-返利订单查询 + * @return $this + */ + public function rebateOrderGet(): self + { + $this->method = 'taobao.tbk.rebate.order.get'; + return $this; + } + + /** + * 淘宝客-推广者-根据宝贝id批量查询优惠券 + * @return $this + */ + public function itemidCouponGet(): self + { + $this->method = 'taobao.tbk.itemid.coupon.get'; + return $this; + } + + /** + * 淘宝客-服务商-保护门槛 + * @return $this + */ + public function dataReport(): self + { + $this->method = 'taobao.tbk.data.report'; + return $this; + } + + /** + * 淘宝客-推广者-单品券高效转链 + * @return $this + */ + public function couponConvert(): self + { + $this->method = 'taobao.tbk.coupon.convert'; + return $this; + } + + /** + * 淘宝客-推广者-淘口令解析&三方分成转链 + * @return $this + */ + public function tpwdShareConvert(): self + { + $this->method = 'taobao.tbk.tpwd.share.convert'; + return $this; + } + + /** + * 淘宝客-推广者-淘口令解析&转链 + * @return $this + */ + public function tpwdConvert(): self + { + $this->method = 'taobao.tbk.tpwd.convert'; + return $this; + } + + /** + * 淘宝客-服务商-创建推广者位 + * @return $this + */ + public function scAdzoneCreate(): self + { + $this->method = 'taobao.tbk.sc.adzone.create'; + return $this; + } + + /** + * 淘宝客-服务商-物料精选 + * @return $this + */ + public function scOptimusMaterial(): self + { + $this->method = 'taobao.tbk.sc.optimus.material'; + return $this; + } + + /** + * 淘宝客-服务商-物料搜索 + * @return $this + */ + public function scMaterialOptional(): self + { + $this->method = 'taobao.tbk.sc.material.optional'; + return $this; + } + + /** + * 淘宝客-服务商-拉新活动数据查询 + * @return $this + */ + public function scNewuserOrderSum(): self + { + $this->method = 'taobao.tbk.sc.newuser.order.sum'; + return $this; + } + + /** + * 自定义接口 + * @param string $method + * @return $this + */ + public function setMethod($method = ''): self + { + $this->method = $method; + return $this; + } + + /** + * 返回Array + * @return array|mixed + * @throws DtaException + */ + public function toArray() + { + //首先检测是否支持curl + if (!extension_loaded("curl")) { + throw new HttpException(404, '请开启curl模块!'); + } + $this->format = "json"; + if (empty($this->app_key)) { + $this->getConfig(); + } + if (empty($this->app_key)) { + throw new DtaException('请检查app_key参数'); + } + if (empty($this->method)) { + throw new DtaException('请检查method参数'); + } + $this->param['app_key'] = $this->app_key; + $this->param['method'] = $this->method; + $this->param['format'] = $this->format; + $this->param['v'] = $this->v; + $this->param['sign_method'] = $this->sign_method; + $this->param['timestamp'] = Times::getData(); + $this->http(); + if (isset($this->output['error_response'])) { + // 错误 + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); + } + return json_decode($this->output, true); + } + + // 正常 + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); + } + $this->output = json_decode($this->output, true); + return $this->output; + } + + /** + * 返回Xml + * @return mixed + * @throws DtaException + */ + public function toXml() + { + //首先检测是否支持curl + if (!extension_loaded("curl")) { + throw new HttpException('请开启curl模块!', E_USER_DEPRECATED); + } + $this->format = "xml"; + $this->http(); + return $this->output; + } + + /** + * 网络请求 + * @throws DtaException + */ + private function http(): void + { + //生成签名 + $sign = $this->createSign(); + //组织参数 + $strParam = $this->createStrParam(); + $strParam .= 'sign=' . $sign; + //访问服务 + if ($this->protocol === 'http') { + if (empty($this->sandbox)) { + $url = 'http://gw.api.taobao.com/router/rest?' . $strParam; + } else { + $url = 'http://gw.api.tbsandbox.com/router/rest?' . $strParam; + } + } + if ($this->protocol === 'https') { + if (empty($this->sandbox)) { + $url = 'https://eco.taobao.com/router/rest?' . $strParam; + } else { + $url = 'https://gw.api.tbsandbox.com/router/rest?' . $strParam; + } + } + $result = file_get_contents($url); + $result = json_decode($result, true); + $this->output = $result; + } + + /** + * 签名 + * @return string + * @throws DtaException + */ + private function createSign(): string + { + if (empty($this->app_secret)) { + $this->getConfig(); + } + if (empty($this->app_secret)) { + throw new DtaException('请检查app_secret参数'); + } + $sign = $this->app_secret; + ksort($this->param); + foreach ($this->param as $key => $val) { + if ($key !== '' && $val !== '') { + $sign .= $key . $val; + } + } + $sign .= $this->app_secret; + $sign = strtoupper(md5($sign)); + return $sign; + } + + /** + * 组参 + * @return string + */ + private function createStrParam(): string + { + $strParam = ''; + foreach ($this->param as $key => $val) { + if ($key !== '' && $val !== '') { + $strParam .= $key . '=' . urlencode($val) . '&'; + } + } + return $strParam; + } + + /** + * 获取活动物料 + * @return array[] + */ + public function getActivityMaterialIdList(): array + { + return [ + [ + // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628646?_k=tcswm1 + 'name' => '口碑', + 'list' => [ + [ + 'name' => '口碑主会场活动(2.3%佣金起)', + 'material_id' => 1583739244161 + ], + [ + 'name' => '生活服务分会场活动(2.3%佣金起)', + 'material_id' => 1583739244162 + ] + ] + ], + [ + // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628647?_k=hwggf9 + // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10630427?_k=sdet4e + // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10630361?_k=nq6zgt + 'name' => '饿了么', + 'list' => [ + [ + 'name' => '聚合页(6%佣金起)', + 'material_id' => 1571715733668 + ], + [ + 'name' => '新零售(4%佣金起)', + 'material_id' => 1585018034441 + ], + [ + 'name' => '餐饮', + 'material_id' => 1579491209717 + ], + ] + ], + [ + // https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10634663?_k=zqgq01 + 'name' => '卡券(饭票)', + 'list' => [ + [ + 'name' => '饿了么卡券(1元以下商品)', + 'material_id' => 32469 + ], + [ + 'name' => '饿了么卡券投放全网商品库', + 'material_id' => 32470 + ], + [ + 'name' => '饿了么卡券(5折以下)', + 'material_id' => 32603 + ], + [ + 'name' => '饿了么头部全国KA商品库', + 'material_id' => 32663 + ], + [ + 'name' => '饿了么卡券招商爆品库', + 'material_id' => 32738 + ], + ] + ], + ]; + } + + /** + * 获取官方物料API汇总 + * https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628875?_k=gpov9a + * @return array + */ + public function getMaterialIdList(): array + { + return [ + [ + 'name' => '相似推荐', + 'list' => [ + [ + 'name' => '相似推荐', + 'material_id' => 13256 + ] + ] + ], + [ + 'name' => '官方推荐', + 'list' => [ + [ + 'name' => '聚划算满减满折', + 'material_id' => 32366 + ], + [ + 'name' => '猫超满减满折', + 'material_id' => 27160 + ] + ] + ], + [ + 'name' => '猜你喜欢', + 'list' => [ + [ + 'name' => '含全部商品', + 'material_id' => 6708 + ], + [ + 'name' => '营销商品库商品(此为具备“私域用户管理-会员运营管理功能”的媒体专用)', + 'material_id' => 28017 + ] + ] + ], + [ + 'name' => '好券直播', + 'list' => [ + [ + 'name' => '综合', + 'material_id' => 3756 + ], + [ + 'name' => '女装', + 'material_id' => 3767 + ], + [ + 'name' => '家居家装', + 'material_id' => 3758 + ], + [ + 'name' => '数码家电', + 'material_id' => 3759 + ], + [ + 'name' => '鞋包配饰', + 'material_id' => 3762 + ], + [ + 'name' => '美妆个护', + 'material_id' => 3763 + ], + [ + 'name' => '男装', + 'material_id' => 3764 + ], + [ + 'name' => '内衣', + 'material_id' => 3765 + ], + [ + 'name' => '母婴', + 'material_id' => 3760 + ], + [ + 'name' => '食品', + 'material_id' => 3761 + ], + [ + 'name' => '运动户外', + 'material_id' => 3766 + ] + ] + ], + [ + 'name' => '实时热销榜', + 'list' => [ + [ + 'name' => '综合', + 'material_id' => 28026 + ], + [ + 'name' => '大服饰', + 'material_id' => 28029 + ], + [ + 'name' => '大快消', + 'material_id' => 28027 + ], + [ + 'name' => '电器美家', + 'material_id' => 28028 + ] + ] + ], + [ + 'name' => '本地化生活', + 'list' => [ + [ + 'name' => '今日爆款(综合类目)', + 'material_id' => 30443 + ], + [ + 'name' => '淘票票(电影代金券)', + 'material_id' => 19812 + ], + [ + 'name' => '大麦网(演出/演唱会/剧目/会展)', + 'material_id' => 25378 + ], + [ + 'name' => '优酷会员(视频年卡)', + 'material_id' => 28636 + ], + [ + 'name' => '有声内容(喜马拉雅年卡,儿童节目等)', + 'material_id' => 29105 + ], + [ + 'name' => '阿里健康(hpv疫苗预约)', + 'material_id' => 25885 + ], + [ + 'name' => '阿里健康(体检)', + 'material_id' => 25886 + ], + [ + 'name' => '阿里健康(口腔)', + 'material_id' => 25888 + ], + [ + 'name' => '阿里健康(基因检测)', + 'material_id' => 25890 + ], + [ + 'name' => '飞猪(签证)', + 'material_id' => 26077 + ], + [ + 'name' => '飞猪(酒店)', + 'material_id' => 27913 + ], + [ + 'name' => '飞猪(自助餐)', + 'material_id' => 27914 + ], + [ + 'name' => '飞猪(门票)', + 'material_id' => 19811 + ], + [ + 'name' => '口碑(肯德基/必胜客/麦当劳)', + 'material_id' => 19810 + ], + [ + 'name' => '口碑(生活服务)', + 'material_id' => 28888 + ], + [ + 'name' => '天猫无忧购(家政服务)', + 'material_id' => 19814 + ], + [ + 'name' => '汽车定金(汽车定金)', + 'material_id' => 28397 + ], + ] + ], + [ + 'name' => '大额券', + 'list' => [ + [ + 'name' => '综合', + 'material_id' => 27446 + ], + [ + 'name' => '女装', + 'material_id' => 27448 + ], + [ + 'name' => '食品', + 'material_id' => 27451 + ], + [ + 'name' => '美妆个护', + 'material_id' => 27453 + ], + [ + 'name' => '家居家装', + 'material_id' => 27798 + ], + [ + 'name' => '母婴', + 'material_id' => 27454 + ] + ] + ], + [ + 'name' => '高佣榜', + 'list' => [ + [ + 'name' => '综合', + 'material_id' => 13366 + ], + [ + 'name' => '女装', + 'material_id' => 13367 + ], + [ + 'name' => '家居家装', + 'material_id' => 13368 + ], + [ + 'name' => '数码家电', + 'material_id' => 13369 + ], + [ + 'name' => '鞋包配饰', + 'material_id' => 13370 + ], + [ + 'name' => '美妆个护', + 'material_id' => 13371 + ], + [ + 'name' => '男装', + 'material_id' => 13372 + ], + [ + 'name' => '内衣', + 'material_id' => 13373 + ], + [ + 'name' => '母婴', + 'material_id' => 13374 + ], + [ + 'name' => '食品', + 'material_id' => 13375 + ], + [ + 'name' => '运动户外', + 'material_id' => 13376 + ] + ] + ], + [ + 'name' => '品牌券', + 'list' => [ + [ + 'name' => '综合', + 'material_id' => 3786 + ], + [ + 'name' => '女装', + 'material_id' => 3788 + ], + [ + 'name' => '家居家装', + 'material_id' => 3792 + ], + [ + 'name' => '数码家电', + 'material_id' => 3793 + ], + [ + 'name' => '鞋包配饰', + 'material_id' => 3796 + ], + [ + 'name' => '美妆个护', + 'material_id' => 3794 + ], + [ + 'name' => '男装', + 'material_id' => 3790 + ], + [ + 'name' => '内衣', + 'material_id' => 3787 + ], + [ + 'name' => '母婴', + 'material_id' => 3789 + ], + [ + 'name' => '食品', + 'material_id' => 3791 + ], + [ + 'name' => '运动户外', + 'material_id' => 3795 + ], + ] + ], + [ + 'name' => '猫超优质爆款', + 'list' => [ + [ + 'name' => '猫超1元购凑单', + 'material_id' => 27162 + ], + [ + 'name' => '猫超第二件0元', + 'material_id' => 27161 + ], + [ + 'name' => '猫超单件满减包邮', + 'material_id' => 27160 + ], + ] + ], + [ + 'name' => '聚划算单品爆款', + 'list' => [ + [ + 'name' => '开团热卖中', + 'material_id' => 31371 + ], + [ + 'name' => '预热', + 'material_id' => 31370 + ], + ] + ], + [ + 'name' => '天天特卖', + 'list' => [ + [ + 'name' => '开团热卖中', + 'material_id' => 31362 + ], + ] + ], + [ + 'name' => '母婴主题', + 'list' => [ + [ + 'name' => '备孕', + 'material_id' => 4040 + ], + [ + 'name' => '0至6个月', + 'material_id' => 4041 + ], + [ + 'name' => '4至6岁', + 'material_id' => 4044 + ], + [ + 'name' => '7至12个月', + 'material_id' => 4042 + ], + [ + 'name' => '1至3岁', + 'material_id' => 4043 + ], + [ + 'name' => '7至12岁', + 'material_id' => 4045 + ], + ] + ], + [ + 'name' => '有好货', + 'list' => [ + [ + 'name' => '有好货', + 'material_id' => 4092 + ], + ] + ], + [ + 'name' => '潮流范', + 'list' => [ + [ + 'name' => '潮流范', + 'material_id' => 4093 + ], + ] + ], + [ + 'name' => '特惠', + 'list' => [ + [ + 'name' => '特惠', + 'material_id' => 4094 + ], + ] + ], + ]; + } +} diff --git a/src/service/taobao/bin/Autoloader.php b/src/service/taobao/bin/Autoloader.php index b449eed..fc56080 100644 --- a/src/service/taobao/bin/Autoloader.php +++ b/src/service/taobao/bin/Autoloader.php @@ -1,78 +1,78 @@ - \ No newline at end of file diff --git a/src/service/taobao/bin/QimenCloud/QimenCloudClient.php b/src/service/taobao/bin/QimenCloud/QimenCloudClient.php index 572cb87..42e82b2 100644 --- a/src/service/taobao/bin/QimenCloud/QimenCloudClient.php +++ b/src/service/taobao/bin/QimenCloud/QimenCloudClient.php @@ -1,384 +1,384 @@ -appkey; - } - - public function __construct($appkey = "",$secretKey = ""){ - $this->appkey = $appkey; - $this->secretKey = $secretKey ; - } - - protected function generateSign($params) - { - ksort($params); - - $stringToBeSigned = $this->secretKey; - foreach ($params as $k => $v) - { - if(!is_array($v) && "@" != substr($v, 0, 1)) - { - $stringToBeSigned .= "$k$v"; - } - } - unset($k, $v); - $stringToBeSigned .= $this->secretKey; - - return strtoupper(md5($stringToBeSigned)); - } - - public function curl($url, $postFields = null) - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_FAILONERROR, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - if ($this->readTimeout) { - curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); - } - if ($this->connectTimeout) { - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); - } - curl_setopt ( $ch, CURLOPT_USERAGENT, "top-sdk-php" ); - //https 请求 - if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - } - - if (is_array($postFields) && 0 < count($postFields)) - { - $postBodyString = ""; - $postMultipart = false; - foreach ($postFields as $k => $v) - { - if("@" != substr($v, 0, 1))//判断是不是文件上传 - { - $postBodyString .= "$k=" . urlencode($v) . "&"; - } - else//文件上传用multipart/form-data,否则用www-form-urlencoded - { - $postMultipart = true; - if(class_exists('\CURLFile')){ - $postFields[$k] = new \CURLFile(substr($v, 1)); - } - } - } - unset($k, $v); - curl_setopt($ch, CURLOPT_POST, true); - if ($postMultipart) - { - if (class_exists('\CURLFile')) { - curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); - } else { - if (defined('CURLOPT_SAFE_UPLOAD')) { - curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false); - } - } - curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); - } - else - { - $header = array("content-type: application/x-www-form-urlencoded; charset=UTF-8"); - curl_setopt($ch,CURLOPT_HTTPHEADER,$header); - curl_setopt($ch, CURLOPT_POSTFIELDS, substr($postBodyString,0,-1)); - } - } - $reponse = curl_exec($ch); - - if (curl_errno($ch)) - { - throw new Exception(curl_error($ch),0); - } - else - { - $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); - if (200 !== $httpStatusCode) - { - throw new Exception($reponse,$httpStatusCode); - } - } - curl_close($ch); - return $reponse; - } - public function curl_with_memory_file($url, $postFields = null, $fileFields = null) - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_FAILONERROR, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - if ($this->readTimeout) { - curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); - } - if ($this->connectTimeout) { - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); - } - curl_setopt ( $ch, CURLOPT_USERAGENT, "top-sdk-php" ); - //https 请求 - if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - } - //生成分隔符 - $delimiter = '-------------' . uniqid(); - //先将post的普通数据生成主体字符串 - $data = ''; - if($postFields != null){ - foreach ($postFields as $name => $content) { - $data .= "--" . $delimiter . "\r\n"; - $data .= 'Content-Disposition: form-data; name="' . $name . '"'; - //multipart/form-data 不需要urlencode,参见 http:stackoverflow.com/questions/6603928/should-i-url-encode-post-data - $data .= "\r\n\r\n" . $content . "\r\n"; - } - unset($name,$content); - } - - //将上传的文件生成主体字符串 - if($fileFields != null){ - foreach ($fileFields as $name => $file) { - $data .= "--" . $delimiter . "\r\n"; - $data .= 'Content-Disposition: form-data; name="' . $name . '"; filename="' . $file['name'] . "\" \r\n"; - $data .= 'Content-Type: ' . $file['type'] . "\r\n\r\n";//多了个文档类型 - - $data .= $file['content'] . "\r\n"; - } - unset($name,$file); - } - //主体结束的分隔符 - $data .= "--" . $delimiter . "--"; - - curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_HTTPHEADER , array( - 'Content-Type: multipart/form-data; boundary=' . $delimiter, - 'Content-Length: ' . strlen($data)) - ); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS, $data); - - $reponse = curl_exec($ch); - unset($data); - - if (curl_errno($ch)) - { - throw new Exception(curl_error($ch),0); - } - else - { - $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); - if (200 !== $httpStatusCode) - { - throw new Exception($reponse,$httpStatusCode); - } - } - curl_close($ch); - return $reponse; - } - - protected function logCommunicationError($apiName, $requestUrl, $errorCode, $responseTxt) - { - $localIp = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "CLI"; - $logger = new TopLogger; - $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_comm_err_" . $this->appkey . "_" . date("Y-m-d") . ".log"; - $logger->conf["separator"] = "^_^"; - $logData = array( - date("Y-m-d H:i:s"), - $apiName, - $this->appkey, - $localIp, - PHP_OS, - $this->sdkVersion, - $requestUrl, - $errorCode, - str_replace("\n","",$responseTxt) - ); - $logger->log($logData); - } - - public function execute($request, $session = null,$bestUrl = null) - { - if($this->gatewayUrl == null) { - throw new Exception("client-check-error:Need Set gatewayUrl.", 40); - } - - $result = new ResultSet(); - if($this->checkRequest) { - try { - $request->check(); - } catch (Exception $e) { - - $result->code = $e->getCode(); - $result->msg = $e->getMessage(); - return $result; - } - } - //组装系统参数 - $sysParams["app_key"] = $this->appkey; - $sysParams["v"] = $this->apiVersion; - $sysParams["format"] = $this->format; - $sysParams["sign_method"] = $this->signMethod; - $sysParams["method"] = $request->getApiMethodName(); - $sysParams["timestamp"] = date("Y-m-d H:i:s"); - $sysParams["target_app_key"] = $this->targetAppkey; - if (null != $session) - { - $sysParams["session"] = $session; - } - $apiParams = array(); - //获取业务参数 - $apiParams = $request->getApiParas(); - - - //系统参数放入GET请求串 - if($bestUrl){ - $requestUrl = $bestUrl."?"; - $sysParams["partner_id"] = $this->getClusterTag(); - }else{ - $requestUrl = $this->gatewayUrl."?"; - $sysParams["partner_id"] = $this->sdkVersion; - } - //签名 - $sysParams["sign"] = $this->generateSign(array_merge($apiParams, $sysParams)); - - foreach ($sysParams as $sysParamKey => $sysParamValue) - { - // if(strcmp($sysParamKey,"timestamp") != 0) - $requestUrl .= "$sysParamKey=" . urlencode($sysParamValue) . "&"; - } - - $fileFields = array(); - foreach ($apiParams as $key => $value) { - if(is_array($value) && array_key_exists('type',$value) && array_key_exists('content',$value) ){ - $value['name'] = $key; - $fileFields[$key] = $value; - unset($apiParams[$key]); - } - } - - // $requestUrl .= "timestamp=" . urlencode($sysParams["timestamp"]) . "&"; - $requestUrl = substr($requestUrl, 0, -1); - - //发起HTTP请求 - try - { - if(count($fileFields) > 0){ - $resp = $this->curl_with_memory_file($requestUrl, $apiParams, $fileFields); - }else{ - $resp = $this->curl($requestUrl, $apiParams); - } - } - catch (Exception $e) - { - $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_ERROR_" . $e->getCode(),$e->getMessage()); - $result->code = $e->getCode(); - $result->msg = $e->getMessage(); - return $result; - } - - unset($apiParams); - unset($fileFields); - //解析TOP返回结果 - $respWellFormed = false; - if ("json" == $this->format) - { - $respObject = json_decode($resp); - if (null !== $respObject) - { - $respWellFormed = true; - foreach ($respObject as $propKey => $propValue) - { - $respObject = $propValue; - } - } - } - else if("xml" == $this->format) - { - $respObject = @simplexml_load_string($resp); - if (false !== $respObject) - { - $respWellFormed = true; - } - } - - //返回的HTTP文本不是标准JSON或者XML,记下错误日志 - if (false === $respWellFormed) - { - $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_RESPONSE_NOT_WELL_FORMED",$resp); - $result->code = 0; - $result->msg = "HTTP_RESPONSE_NOT_WELL_FORMED"; - return $result; - } - - //如果TOP返回了错误码,记录到业务错误日志中 - if (isset($respObject->code)) - { - $logger = new TopLogger; - $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_biz_err_" . $this->appkey . "_" . date("Y-m-d") . ".log"; - $logger->log(array( - date("Y-m-d H:i:s"), - $resp - )); - } - return $respObject; - } - - public function exec($paramsArray) - { - if (!isset($paramsArray["method"])) - { - trigger_error("No api name passed"); - } - $inflector = new LtInflector; - $inflector->conf["separator"] = "."; - $requestClassName = ucfirst($inflector->camelize(substr($paramsArray["method"], 7))) . "Request"; - if (!class_exists($requestClassName)) - { - trigger_error("No such api: " . $paramsArray["method"]); - } - - $session = isset($paramsArray["session"]) ? $paramsArray["session"] : null; - - $req = new $requestClassName; - foreach($paramsArray as $paraKey => $paraValue) - { - $inflector->conf["separator"] = "_"; - $setterMethodName = $inflector->camelize($paraKey); - $inflector->conf["separator"] = "."; - $setterMethodName = "set" . $inflector->camelize($setterMethodName); - if (method_exists($req, $setterMethodName)) - { - $req->$setterMethodName($paraValue); - } - } - return $this->execute($req, $session); - } - - private function getClusterTag() - { - return substr($this->sdkVersion,0,11)."-cluster".substr($this->sdkVersion,11); - } -} +appkey; + } + + public function __construct($appkey = "",$secretKey = ""){ + $this->appkey = $appkey; + $this->secretKey = $secretKey ; + } + + protected function generateSign($params) + { + ksort($params); + + $stringToBeSigned = $this->secretKey; + foreach ($params as $k => $v) + { + if(!is_array($v) && "@" != substr($v, 0, 1)) + { + $stringToBeSigned .= "$k$v"; + } + } + unset($k, $v); + $stringToBeSigned .= $this->secretKey; + + return strtoupper(md5($stringToBeSigned)); + } + + public function curl($url, $postFields = null) + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_FAILONERROR, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + if ($this->readTimeout) { + curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); + } + if ($this->connectTimeout) { + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); + } + curl_setopt ( $ch, CURLOPT_USERAGENT, "top-sdk-php" ); + //https 请求 + if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + } + + if (is_array($postFields) && 0 < count($postFields)) + { + $postBodyString = ""; + $postMultipart = false; + foreach ($postFields as $k => $v) + { + if("@" != substr($v, 0, 1))//判断是不是文件上传 + { + $postBodyString .= "$k=" . urlencode($v) . "&"; + } + else//文件上传用multipart/form-data,否则用www-form-urlencoded + { + $postMultipart = true; + if(class_exists('\CURLFile')){ + $postFields[$k] = new \CURLFile(substr($v, 1)); + } + } + } + unset($k, $v); + curl_setopt($ch, CURLOPT_POST, true); + if ($postMultipart) + { + if (class_exists('\CURLFile')) { + curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); + } else { + if (defined('CURLOPT_SAFE_UPLOAD')) { + curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false); + } + } + curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); + } + else + { + $header = array("content-type: application/x-www-form-urlencoded; charset=UTF-8"); + curl_setopt($ch,CURLOPT_HTTPHEADER,$header); + curl_setopt($ch, CURLOPT_POSTFIELDS, substr($postBodyString,0,-1)); + } + } + $reponse = curl_exec($ch); + + if (curl_errno($ch)) + { + throw new Exception(curl_error($ch),0); + } + else + { + $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); + if (200 !== $httpStatusCode) + { + throw new Exception($reponse,$httpStatusCode); + } + } + curl_close($ch); + return $reponse; + } + public function curl_with_memory_file($url, $postFields = null, $fileFields = null) + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_FAILONERROR, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + if ($this->readTimeout) { + curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); + } + if ($this->connectTimeout) { + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); + } + curl_setopt ( $ch, CURLOPT_USERAGENT, "top-sdk-php" ); + //https 请求 + if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + } + //生成分隔符 + $delimiter = '-------------' . uniqid(); + //先将post的普通数据生成主体字符串 + $data = ''; + if($postFields != null){ + foreach ($postFields as $name => $content) { + $data .= "--" . $delimiter . "\r\n"; + $data .= 'Content-Disposition: form-data; name="' . $name . '"'; + //multipart/form-data 不需要urlencode,参见 http:stackoverflow.com/questions/6603928/should-i-url-encode-post-data + $data .= "\r\n\r\n" . $content . "\r\n"; + } + unset($name,$content); + } + + //将上传的文件生成主体字符串 + if($fileFields != null){ + foreach ($fileFields as $name => $file) { + $data .= "--" . $delimiter . "\r\n"; + $data .= 'Content-Disposition: form-data; name="' . $name . '"; filename="' . $file['name'] . "\" \r\n"; + $data .= 'Content-Type: ' . $file['type'] . "\r\n\r\n";//多了个文档类型 + + $data .= $file['content'] . "\r\n"; + } + unset($name,$file); + } + //主体结束的分隔符 + $data .= "--" . $delimiter . "--"; + + curl_setopt($ch, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_HTTPHEADER , array( + 'Content-Type: multipart/form-data; boundary=' . $delimiter, + 'Content-Length: ' . strlen($data)) + ); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_POSTFIELDS, $data); + + $reponse = curl_exec($ch); + unset($data); + + if (curl_errno($ch)) + { + throw new Exception(curl_error($ch),0); + } + else + { + $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); + if (200 !== $httpStatusCode) + { + throw new Exception($reponse,$httpStatusCode); + } + } + curl_close($ch); + return $reponse; + } + + protected function logCommunicationError($apiName, $requestUrl, $errorCode, $responseTxt) + { + $localIp = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "CLI"; + $logger = new TopLogger; + $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_comm_err_" . $this->appkey . "_" . date("Y-m-d") . ".log"; + $logger->conf["separator"] = "^_^"; + $logData = array( + date("Y-m-d H:i:s"), + $apiName, + $this->appkey, + $localIp, + PHP_OS, + $this->sdkVersion, + $requestUrl, + $errorCode, + str_replace("\n","",$responseTxt) + ); + $logger->log($logData); + } + + public function execute($request, $session = null,$bestUrl = null) + { + if($this->gatewayUrl == null) { + throw new Exception("client-check-error:Need Set gatewayUrl.", 40); + } + + $result = new ResultSet(); + if($this->checkRequest) { + try { + $request->check(); + } catch (Exception $e) { + + $result->code = $e->getCode(); + $result->msg = $e->getMessage(); + return $result; + } + } + //组装系统参数 + $sysParams["app_key"] = $this->appkey; + $sysParams["v"] = $this->apiVersion; + $sysParams["format"] = $this->format; + $sysParams["sign_method"] = $this->signMethod; + $sysParams["method"] = $request->getApiMethodName(); + $sysParams["timestamp"] = date("Y-m-d H:i:s"); + $sysParams["target_app_key"] = $this->targetAppkey; + if (null != $session) + { + $sysParams["session"] = $session; + } + $apiParams = array(); + //获取业务参数 + $apiParams = $request->getApiParas(); + + + //系统参数放入GET请求串 + if($bestUrl){ + $requestUrl = $bestUrl."?"; + $sysParams["partner_id"] = $this->getClusterTag(); + }else{ + $requestUrl = $this->gatewayUrl."?"; + $sysParams["partner_id"] = $this->sdkVersion; + } + //签名 + $sysParams["sign"] = $this->generateSign(array_merge($apiParams, $sysParams)); + + foreach ($sysParams as $sysParamKey => $sysParamValue) + { + // if(strcmp($sysParamKey,"timestamp") != 0) + $requestUrl .= "$sysParamKey=" . urlencode($sysParamValue) . "&"; + } + + $fileFields = array(); + foreach ($apiParams as $key => $value) { + if(is_array($value) && array_key_exists('type',$value) && array_key_exists('content',$value) ){ + $value['name'] = $key; + $fileFields[$key] = $value; + unset($apiParams[$key]); + } + } + + // $requestUrl .= "timestamp=" . urlencode($sysParams["timestamp"]) . "&"; + $requestUrl = substr($requestUrl, 0, -1); + + //发起HTTP请求 + try + { + if(count($fileFields) > 0){ + $resp = $this->curl_with_memory_file($requestUrl, $apiParams, $fileFields); + }else{ + $resp = $this->curl($requestUrl, $apiParams); + } + } + catch (Exception $e) + { + $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_ERROR_" . $e->getCode(),$e->getMessage()); + $result->code = $e->getCode(); + $result->msg = $e->getMessage(); + return $result; + } + + unset($apiParams); + unset($fileFields); + //解析TOP返回结果 + $respWellFormed = false; + if ("json" == $this->format) + { + $respObject = json_decode($resp); + if (null !== $respObject) + { + $respWellFormed = true; + foreach ($respObject as $propKey => $propValue) + { + $respObject = $propValue; + } + } + } + else if("xml" == $this->format) + { + $respObject = @simplexml_load_string($resp); + if (false !== $respObject) + { + $respWellFormed = true; + } + } + + //返回的HTTP文本不是标准JSON或者XML,记下错误日志 + if (false === $respWellFormed) + { + $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_RESPONSE_NOT_WELL_FORMED",$resp); + $result->code = 0; + $result->msg = "HTTP_RESPONSE_NOT_WELL_FORMED"; + return $result; + } + + //如果TOP返回了错误码,记录到业务错误日志中 + if (isset($respObject->code)) + { + $logger = new TopLogger; + $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_biz_err_" . $this->appkey . "_" . date("Y-m-d") . ".log"; + $logger->log(array( + date("Y-m-d H:i:s"), + $resp + )); + } + return $respObject; + } + + public function exec($paramsArray) + { + if (!isset($paramsArray["method"])) + { + trigger_error("No api name passed"); + } + $inflector = new LtInflector; + $inflector->conf["separator"] = "."; + $requestClassName = ucfirst($inflector->camelize(substr($paramsArray["method"], 7))) . "Request"; + if (!class_exists($requestClassName)) + { + trigger_error("No such api: " . $paramsArray["method"]); + } + + $session = isset($paramsArray["session"]) ? $paramsArray["session"] : null; + + $req = new $requestClassName; + foreach($paramsArray as $paraKey => $paraValue) + { + $inflector->conf["separator"] = "_"; + $setterMethodName = $inflector->camelize($paraKey); + $inflector->conf["separator"] = "."; + $setterMethodName = "set" . $inflector->camelize($setterMethodName); + if (method_exists($req, $setterMethodName)) + { + $req->$setterMethodName($paraValue); + } + } + return $this->execute($req, $session); + } + + private function getClusterTag() + { + return substr($this->sdkVersion,0,11)."-cluster".substr($this->sdkVersion,11); + } +} diff --git a/src/service/taobao/bin/TopSdk.php b/src/service/taobao/bin/TopSdk.php index a797167..8f623d2 100644 --- a/src/service/taobao/bin/TopSdk.php +++ b/src/service/taobao/bin/TopSdk.php @@ -1,40 +1,40 @@ -checkRequest) { - try { - $request->check(); - } catch (Exception $e) { - $result->code = $e->getCode(); - $result->message = $e->getMessage(); - return $result; - } - } - //获取业务参数 - $apiParams = $request->getApiParas(); - //组装系统参数 - $apiParams["AccessKeyId"] = $this->accessKeyId; - $apiParams["Format"] = $this->format;// - $apiParams["SignatureMethod"] = $this->signatureMethod; - $apiParams["SignatureVersion"] = $this->signatureVersion; - $apiParams["SignatureNonce"] = uniqid(); - date_default_timezone_set("GMT"); - $apiParams["TimeStamp"] = date($this->dateTimeFormat); - $apiParams["partner_id"] = $this->sdkVersion; - - $apiNameArray = split("\.", $request->getApiMethodName()); - $apiParams["Action"] = $apiNameArray[3]; - $apiParams["Version"] = $apiNameArray[4]; - //签名 - $apiParams["Signature"] = $this->computeSignature($apiParams, $this->accessKeySecret); - - //系统参数放入GET请求串 - $requestUrl = rtrim($this->serverUrl,"/") . "/?"; - foreach ($apiParams as $apiParamKey => $apiParamValue) - { - $requestUrl .= "$apiParamKey=" . urlencode($apiParamValue) . "&"; - } - $requestUrl = substr($requestUrl, 0, -1); - //发起HTTP请求 - try - { - $resp = $this->curl($requestUrl, null); - } - catch (Exception $e) - { - $this->logCommunicationError($apiParams["Action"],$requestUrl,"HTTP_ERROR_" . $e->getCode(),$e->getMessage()); - if ("json" == $this->format) - { - return json_decode($e->getMessage()); - } - else if("xml" == $this->format) - { - return @simplexml_load_string($e->getMessage()); - } - } - - //解析API返回结果 - $respWellFormed = false; - if ("json" == $this->format) - { - $respObject = json_decode($resp); - if (null !== $respObject) - { - $respWellFormed = true; - } - } - else if("xml" == $this->format) - { - $respObject = @simplexml_load_string($resp); - if (false !== $respObject) - { - $respWellFormed = true; - } - } - - //返回的HTTP文本不是标准JSON或者XML,记下错误日志 - if (false === $respWellFormed) - { - $this->logCommunicationError($apiParams["Action"],$requestUrl,"HTTP_RESPONSE_NOT_WELL_FORMED",$resp); - $result->code = 0; - $result->message = "HTTP_RESPONSE_NOT_WELL_FORMED"; - return $result; - } - - //如果TOP返回了错误码,记录到业务错误日志中 - if (isset($respObject->code)) - { - $logger = new LtLogger; - $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_biz_err_" . $this->appkey . "_" . date("Y-m-d") . ".log"; - $logger->log(array( - date("Y-m-d H:i:s"), - $resp - )); - } - return $respObject; - } - - public function exec($paramsArray) - { - if (!isset($paramsArray["Action"])) - { - trigger_error("No api name passed"); - } - $inflector = new LtInflector; - $inflector->conf["separator"] = "."; - $requestClassName = ucfirst($inflector->camelize(substr($paramsArray["Action"], 7))) . "Request"; - if (!class_exists($requestClassName)) - { - trigger_error("No such api: " . $paramsArray["Action"]); - } - - $req = new $requestClassName; - foreach($paramsArray as $paraKey => $paraValue) - { - $inflector->conf["separator"] = "_"; - $setterMethodName = $inflector->camelize($paraKey); - $inflector->conf["separator"] = "."; - $setterMethodName = "set" . $inflector->camelize($setterMethodName); - if (method_exists($req, $setterMethodName)) - { - $req->$setterMethodName($paraValue); - } - } - return $this->execute($req, $session); - } - - protected function percentEncode($str) - { - // 使用urlencode编码后,将"+","*","%7E"做替换即满足 API规定的编码规范 - $res = urlencode($str); - $res = preg_replace('/\+/', '%20', $res); - $res = preg_replace('/\*/', '%2A', $res); - $res = preg_replace('/%7E/', '~', $res); - return $res; - } - - protected function computeSignature($parameters, $accessKeySecret) - { - // 将参数Key按字典顺序排序 - ksort($parameters); - - // 生成规范化请求字符串 - $canonicalizedQueryString = ''; - foreach($parameters as $key => $value) - { - $canonicalizedQueryString .= '&' . $this->percentEncode($key) - . '=' . $this->percentEncode($value); - } - - // 生成用于计算签名的字符串 stringToSign - $stringToSign = 'GET&%2F&' . $this->percentencode(substr($canonicalizedQueryString, 1)); - - // 计算签名,注意accessKeySecret后面要加上字符'&' - $signature = base64_encode(hash_hmac('sha1', $stringToSign, $accessKeySecret . '&', true)); - return $signature; - } - - public function curl($url, $postFields = null) - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_FAILONERROR, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - if ($this->readTimeout) { - curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); - } - if ($this->connectTimeout) { - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); - } - //https 请求 - if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - } - - if (is_array($postFields) && 0 < count($postFields)) - { - $postBodyString = ""; - $postMultipart = false; - foreach ($postFields as $k => $v) - { - if("@" != substr($v, 0, 1))//判断是不是文件上传 - { - $postBodyString .= "$k=" . urlencode($v) . "&"; - } - else//文件上传用multipart/form-data,否则用www-form-urlencoded - { - $postMultipart = true; - } - } - unset($k, $v); - curl_setopt($ch, CURLOPT_POST, true); - if ($postMultipart) - { - curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); - } - else - { - curl_setopt($ch, CURLOPT_POSTFIELDS, substr($postBodyString,0,-1)); - } - } - $reponse = curl_exec($ch); - - if (curl_errno($ch)) - { - throw new Exception(curl_error($ch),0); - } - curl_close($ch); - return $reponse; - } - - protected function logCommunicationError($apiName, $requestUrl, $errorCode, $responseTxt) - { - $localIp = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "CLI"; - $logger = new LtLogger; - $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_comm_err_" . $this->accessKeyId . "_" . date("Y-m-d") . ".log"; - $logger->conf["separator"] = "^_^"; - $logData = array( - date("Y-m-d H:i:s"), - $apiName, - $this->accessKeyId, - $localIp, - PHP_OS, - $this->sdkVersion, - $requestUrl, - $errorCode, - str_replace("\n","",$responseTxt) - ); - $logger->log($logData); - } -} +checkRequest) { + try { + $request->check(); + } catch (Exception $e) { + $result->code = $e->getCode(); + $result->message = $e->getMessage(); + return $result; + } + } + //获取业务参数 + $apiParams = $request->getApiParas(); + //组装系统参数 + $apiParams["AccessKeyId"] = $this->accessKeyId; + $apiParams["Format"] = $this->format;// + $apiParams["SignatureMethod"] = $this->signatureMethod; + $apiParams["SignatureVersion"] = $this->signatureVersion; + $apiParams["SignatureNonce"] = uniqid(); + date_default_timezone_set("GMT"); + $apiParams["TimeStamp"] = date($this->dateTimeFormat); + $apiParams["partner_id"] = $this->sdkVersion; + + $apiNameArray = split("\.", $request->getApiMethodName()); + $apiParams["Action"] = $apiNameArray[3]; + $apiParams["Version"] = $apiNameArray[4]; + //签名 + $apiParams["Signature"] = $this->computeSignature($apiParams, $this->accessKeySecret); + + //系统参数放入GET请求串 + $requestUrl = rtrim($this->serverUrl,"/") . "/?"; + foreach ($apiParams as $apiParamKey => $apiParamValue) + { + $requestUrl .= "$apiParamKey=" . urlencode($apiParamValue) . "&"; + } + $requestUrl = substr($requestUrl, 0, -1); + //发起HTTP请求 + try + { + $resp = $this->curl($requestUrl, null); + } + catch (Exception $e) + { + $this->logCommunicationError($apiParams["Action"],$requestUrl,"HTTP_ERROR_" . $e->getCode(),$e->getMessage()); + if ("json" == $this->format) + { + return json_decode($e->getMessage()); + } + else if("xml" == $this->format) + { + return @simplexml_load_string($e->getMessage()); + } + } + + //解析API返回结果 + $respWellFormed = false; + if ("json" == $this->format) + { + $respObject = json_decode($resp); + if (null !== $respObject) + { + $respWellFormed = true; + } + } + else if("xml" == $this->format) + { + $respObject = @simplexml_load_string($resp); + if (false !== $respObject) + { + $respWellFormed = true; + } + } + + //返回的HTTP文本不是标准JSON或者XML,记下错误日志 + if (false === $respWellFormed) + { + $this->logCommunicationError($apiParams["Action"],$requestUrl,"HTTP_RESPONSE_NOT_WELL_FORMED",$resp); + $result->code = 0; + $result->message = "HTTP_RESPONSE_NOT_WELL_FORMED"; + return $result; + } + + //如果TOP返回了错误码,记录到业务错误日志中 + if (isset($respObject->code)) + { + $logger = new LtLogger; + $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_biz_err_" . $this->appkey . "_" . date("Y-m-d") . ".log"; + $logger->log(array( + date("Y-m-d H:i:s"), + $resp + )); + } + return $respObject; + } + + public function exec($paramsArray) + { + if (!isset($paramsArray["Action"])) + { + trigger_error("No api name passed"); + } + $inflector = new LtInflector; + $inflector->conf["separator"] = "."; + $requestClassName = ucfirst($inflector->camelize(substr($paramsArray["Action"], 7))) . "Request"; + if (!class_exists($requestClassName)) + { + trigger_error("No such api: " . $paramsArray["Action"]); + } + + $req = new $requestClassName; + foreach($paramsArray as $paraKey => $paraValue) + { + $inflector->conf["separator"] = "_"; + $setterMethodName = $inflector->camelize($paraKey); + $inflector->conf["separator"] = "."; + $setterMethodName = "set" . $inflector->camelize($setterMethodName); + if (method_exists($req, $setterMethodName)) + { + $req->$setterMethodName($paraValue); + } + } + return $this->execute($req, $session); + } + + protected function percentEncode($str) + { + // 使用urlencode编码后,将"+","*","%7E"做替换即满足 API规定的编码规范 + $res = urlencode($str); + $res = preg_replace('/\+/', '%20', $res); + $res = preg_replace('/\*/', '%2A', $res); + $res = preg_replace('/%7E/', '~', $res); + return $res; + } + + protected function computeSignature($parameters, $accessKeySecret) + { + // 将参数Key按字典顺序排序 + ksort($parameters); + + // 生成规范化请求字符串 + $canonicalizedQueryString = ''; + foreach($parameters as $key => $value) + { + $canonicalizedQueryString .= '&' . $this->percentEncode($key) + . '=' . $this->percentEncode($value); + } + + // 生成用于计算签名的字符串 stringToSign + $stringToSign = 'GET&%2F&' . $this->percentencode(substr($canonicalizedQueryString, 1)); + + // 计算签名,注意accessKeySecret后面要加上字符'&' + $signature = base64_encode(hash_hmac('sha1', $stringToSign, $accessKeySecret . '&', true)); + return $signature; + } + + public function curl($url, $postFields = null) + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_FAILONERROR, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + if ($this->readTimeout) { + curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); + } + if ($this->connectTimeout) { + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); + } + //https 请求 + if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + } + + if (is_array($postFields) && 0 < count($postFields)) + { + $postBodyString = ""; + $postMultipart = false; + foreach ($postFields as $k => $v) + { + if("@" != substr($v, 0, 1))//判断是不是文件上传 + { + $postBodyString .= "$k=" . urlencode($v) . "&"; + } + else//文件上传用multipart/form-data,否则用www-form-urlencoded + { + $postMultipart = true; + } + } + unset($k, $v); + curl_setopt($ch, CURLOPT_POST, true); + if ($postMultipart) + { + curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); + } + else + { + curl_setopt($ch, CURLOPT_POSTFIELDS, substr($postBodyString,0,-1)); + } + } + $reponse = curl_exec($ch); + + if (curl_errno($ch)) + { + throw new Exception(curl_error($ch),0); + } + curl_close($ch); + return $reponse; + } + + protected function logCommunicationError($apiName, $requestUrl, $errorCode, $responseTxt) + { + $localIp = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "CLI"; + $logger = new LtLogger; + $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_comm_err_" . $this->accessKeyId . "_" . date("Y-m-d") . ".log"; + $logger->conf["separator"] = "^_^"; + $logData = array( + date("Y-m-d H:i:s"), + $apiName, + $this->accessKeyId, + $localIp, + PHP_OS, + $this->sdkVersion, + $requestUrl, + $errorCode, + str_replace("\n","",$responseTxt) + ); + $logger->log($logData); + } +} diff --git a/src/service/taobao/bin/dingtalk/DingTalkClient.php b/src/service/taobao/bin/dingtalk/DingTalkClient.php index 554cf07..ad3b3b8 100644 --- a/src/service/taobao/bin/dingtalk/DingTalkClient.php +++ b/src/service/taobao/bin/dingtalk/DingTalkClient.php @@ -1,653 +1,653 @@ -apiCallType = $apiCallType; - $this->httpMethod = $httpMethod; - $this->format = $format; - } - - public function curl($url, $postFields = null) - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_FAILONERROR, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - if ($this->readTimeout) { - curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); - } - if ($this->connectTimeout) { - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); - } - curl_setopt ( $ch, CURLOPT_USERAGENT, "dingtalk-sdk-php" ); - //https 请求 - if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - } - - if (is_array($postFields) && 0 < count($postFields)) - { - $postBodyString = ""; - $postMultipart = false; - foreach ($postFields as $k => $v) - { - if("@" != substr($v, 0, 1))//判断是不是文件上传 - { - $postBodyString .= "$k=" . urlencode($v) . "&"; - } - else//文件上传用multipart/form-data,否则用www-form-urlencoded - { - $postMultipart = true; - if(class_exists('\CURLFile')){ - $postFields[$k] = new \CURLFile(substr($v, 1)); - } - } - } - unset($k, $v); - curl_setopt($ch, CURLOPT_POST, true); - if ($postMultipart) - { - if (class_exists('\CURLFile')) { - curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); - } else { - if (defined('CURLOPT_SAFE_UPLOAD')) { - curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false); - } - } - curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); - } - else - { - $header = array("content-type: application/x-www-form-urlencoded; charset=UTF-8"); - curl_setopt($ch,CURLOPT_HTTPHEADER,$header); - curl_setopt($ch, CURLOPT_POSTFIELDS, substr($postBodyString,0,-1)); - } - } - $reponse = curl_exec($ch); - - if (curl_errno($ch)) - { - throw new Exception(curl_error($ch),0); - } - else - { - $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); - if (200 !== $httpStatusCode) - { - throw new Exception($reponse,$httpStatusCode); - } - } - curl_close($ch); - return $reponse; - } - - public function curl_get($url,$apiFields = null) - { - $ch = curl_init(); - - foreach ($apiFields as $key => $value) - { - $url .= "&" ."$key=" . urlencode($value); - } - - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - curl_setopt($ch, CURLOPT_FAILONERROR, false); - curl_setopt($ch, CURLOPT_HEADER, false); - curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); - - - if ($this->readTimeout) - { - curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); - } - - if ($this->connectTimeout) - { - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); - } - - curl_setopt ( $ch, CURLOPT_USERAGENT, "dingtalk-sdk-php" ); - - //https ignore ssl check ? - if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) - { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - } - - $reponse = curl_exec($ch); - - if (curl_errno($ch)) - { - throw new Exception(curl_error($ch),0); - } - else - { - $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); - if (200 !== $httpStatusCode) - { - throw new Exception($reponse,$httpStatusCode); - } - } - curl_close($ch); - return $reponse; - } - - public function curl_json($url, $postFields = null) - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_FAILONERROR, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - if ($this->readTimeout) { - curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); - } - if ($this->connectTimeout) { - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); - } - curl_setopt ( $ch, CURLOPT_USERAGENT, "dingtalk-sdk-php" ); - //https 请求 - if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - } - - if (is_array($postFields) && 0 < count($postFields)) - { - $postBodyString = ""; - $postMultipart = false; - foreach ($postFields as $k => $v) - { - if(!is_string($v)){ - $v = json_encode($v); - } - if("@" != substr($v, 0, 1))//判断是不是文件上传 - { - $postBodyString .= "$k=" . urlencode($v) . "&"; - } - else//文件上传用multipart/form-data,否则用www-form-urlencoded - { - $postMultipart = true; - if(class_exists('\CURLFile')){ - $postFields[$k] = new \CURLFile(substr($v, 1)); - } - } - } - unset($k, $v); - curl_setopt($ch, CURLOPT_POST, true); - if ($postMultipart) - { - if (class_exists('\CURLFile')) { - curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); - } else { - if (defined('CURLOPT_SAFE_UPLOAD')) { - curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false); - } - } - curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); - } - else { - $header = array("Content-Type: application/json; charset=utf-8", "Content-Length:".strlen(json_encode($postFields))); - curl_setopt($ch,CURLOPT_HTTPHEADER,$header); - curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($postFields)); - } - } - $reponse = curl_exec($ch); - - if (curl_errno($ch)) - { - throw new Exception(curl_error($ch),0); - } - else - { - $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); - if (200 !== $httpStatusCode) - { - throw new Exception($reponse,$httpStatusCode); - } - } - curl_close($ch); - return $reponse; - } - - public function curl_with_memory_file($url, $postFields = null, $fileFields = null) - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_FAILONERROR, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - if ($this->readTimeout) { - curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); - } - if ($this->connectTimeout) { - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); - } - curl_setopt ( $ch, CURLOPT_USERAGENT, "dingtalk-sdk-php" ); - //https 请求 - if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - } - //生成分隔符 - $delimiter = '-------------' . uniqid(); - //先将post的普通数据生成主体字符串 - $data = ''; - if($postFields != null){ - foreach ($postFields as $name => $content) { - $data .= "--" . $delimiter . "\r\n"; - $data .= 'Content-Disposition: form-data; name="' . $name . '"'; - //multipart/form-data 不需要urlencode,参见 http:stackoverflow.com/questions/6603928/should-i-url-encode-post-data - $data .= "\r\n\r\n" . $content . "\r\n"; - } - unset($name,$content); - } - - //将上传的文件生成主体字符串 - if($fileFields != null){ - foreach ($fileFields as $name => $file) { - $data .= "--" . $delimiter . "\r\n"; - $data .= 'Content-Disposition: form-data; name="' . $name . '"; filename="' . $file['filename'] . "\" \r\n"; - $data .= 'Content-Type: ' . $file['type'] . "\r\n\r\n";//多了个文档类型 - - $data .= $file['content'] . "\r\n"; - } - unset($name,$file); - } - //主体结束的分隔符 - $data .= "--" . $delimiter . "--"; - - curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_HTTPHEADER , array( - 'Content-Type: multipart/form-data; boundary=' . $delimiter, - 'Content-Length: ' . strlen($data)) - ); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS, $data); - - $reponse = curl_exec($ch); - unset($data); - - if (curl_errno($ch)) - { - throw new Exception(curl_error($ch),0); - } - else - { - $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); - if (200 !== $httpStatusCode) - { - throw new Exception($reponse,$httpStatusCode); - } - } - curl_close($ch); - return $reponse; - } - - protected function logCommunicationError($apiName, $requestUrl, $errorCode, $responseTxt) - { - $localIp = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "CLI"; - $logger = new TopLogger; - $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_comm_err_" . "_" . date("Y-m-d") . ".log"; - $logger->conf["separator"] = "^_^"; - $logData = array( - date("Y-m-d H:i:s"), - $apiName, - $localIp, - PHP_OS, - $this->sdkVersion, - $requestUrl, - $errorCode, - str_replace("\n","",$responseTxt) - ); - $logger->log($logData); - } - - public function execute($request, $session = null,$bestUrl = null){ - if(DingTalkConstant::$CALL_TYPE_OAPI == $this->apiCallType){ - return $this->_executeOapi($request, $session, $bestUrl, null, null, null, null); - }else{ - return $this->_execute($request, $session, $bestUrl); - } - } - - public function executeWithAccessKey($request, $bestUrl = null, $accessKey, $accessSecret){ - return $this->executeWithCorpId($request, $bestUrl, $accessKey, $accessSecret, null, null); - } - - public function executeWithSuiteTicket($request,$bestUrl = null, $accessKey, $accessSecret, $suiteTicket){ - return $this->executeWithCorpId($request,$bestUrl, $accessKey, $accessSecret, $suiteTicket, null); - } - - public function executeWithCorpId($request, $bestUrl = null, $accessKey, $accessSecret, $suiteTicket, $corpId) { - if(DingTalkConstant::$CALL_TYPE_OAPI == $this->apiCallType){ - return $this->_executeOapi($request, null, $bestUrl,$accessKey, $accessSecret, $suiteTicket, $corpId); - }else{ - return $this->_execute($request, null, $bestUrl); - } - } - - private function _executeOapi($request, $session = null,$bestUrl = null,$accessKey, $accessSecret, $suiteTicket, $corpId){ - $result = new ResultSet(); - if($this->checkRequest) { - try { - $request->check(); - } catch (Exception $e) { - - $result->code = $e->getCode(); - $result->msg = $e->getMessage(); - return $result; - } - } - - $sysParams["method"] = $request->getApiMethodName(); - //系统参数放入GET请求串 - if($bestUrl){ - if(strpos($bestUrl,'?') === false){ - $requestUrl = $bestUrl."?"; - }else{ - $requestUrl = $bestUrl; - } - }else{ - $requestUrl = $this->gatewayUrl."?"; - } - if(null != $accessKey){ - $timestamp = $this->getMillisecond(); - // 验证签名有效性 - $canonicalString = $this->getCanonicalStringForIsv($timestamp, $suiteTicket); - $signature = $this->computeSignature($accessSecret, $canonicalString); - - $queryParams["accessKey"] = $accessKey; - $queryParams["signature"] = $signature; - $queryParams["timestamp"] = $timestamp+""; - if($suiteTicket != null) { - $queryParams["suiteTicket"] = $suiteTicket; - } - if($corpId != null){ - $queryParams["corpId"] = $corpId; - } - foreach ($queryParams as $queryParamKey => $queryParamValue) { - $requestUrl .= "$queryParamKey=" . urlencode($queryParamValue) . "&"; - } - }else{ - $requestUrl .= "access_token=" . urlencode($session) . "&"; - } - - $apiParams = array(); - //获取业务参数 - $apiParams = $request->getApiParas(); - $fileFields = array(); - foreach ($apiParams as $key => $value) { - if(is_array($value) && array_key_exists('type',$value) && array_key_exists('content',$value) ){ - $value['name'] = $key; - $fileFields[$key] = $value; - unset($apiParams[$key]); - } - } - - // $requestUrl .= "timestamp=" . urlencode($sysParams["timestamp"]) . "&"; - $requestUrl = substr($requestUrl, 0, -1); - - //发起HTTP请求 - try - { - if(count($fileFields) > 0){ - $resp = $this->curl_with_memory_file($requestUrl, $apiParams, $fileFields); - }else{ - if(DingTalkConstant::$METHOD_POST == $this->httpMethod){ - $resp = $this->curl_json($requestUrl, $apiParams); - }else{ - $resp = $this->curl_get($requestUrl, $apiParams); - } - } - } - catch (Exception $e) - { - $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_ERROR_" . $e->getCode(),$e->getMessage()); - $result->code = $e->getCode(); - $result->msg = $e->getMessage(); - return $result; - } - - unset($apiParams); - unset($fileFields); - //解析TOP返回结果 - $respWellFormed = false; - if ("json" == $this->format) - { - $respObject = json_decode($resp); - if (null !== $respObject) - { - $respWellFormed = true; - } - } - else if("xml" == $this->format) - { - $respObject = @simplexml_load_string($resp); - if (false !== $respObject) - { - $respWellFormed = true; - } - } - - //返回的HTTP文本不是标准JSON或者XML,记下错误日志 - if (false === $respWellFormed) - { - $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_RESPONSE_NOT_WELL_FORMED",$resp); - $result->code = 0; - $result->msg = "HTTP_RESPONSE_NOT_WELL_FORMED"; - return $result; - } - - //如果TOP返回了错误码,记录到业务错误日志中 - if (isset($respObject->code)) - { - $logger = new TopLogger; - $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_biz_err_" . "_" . date("Y-m-d") . ".log"; - $logger->log(array( - date("Y-m-d H:i:s"), - $resp - )); - } - return $respObject; - } - - private function getMillisecond() { - list($s1, $s2) = explode(' ', microtime()); - return (float)sprintf('%.0f', (floatval($s1) + floatval($s2)) * 1000); - } - - private function getCanonicalStringForIsv($timestamp, $suiteTicket) { - $result = $timestamp; - if($suiteTicket != null) { - $result .= "\n".$suiteTicket; - } - return $result; - } - - private function computeSignature($accessSecret, $canonicalString){ - $s = hash_hmac('sha256', $canonicalString, $accessSecret, true); - return base64_encode($s); - } - - private function _execute($request, $session = null,$bestUrl = null) - { - $result = new ResultSet(); - if($this->checkRequest) { - try { - $request->check(); - } catch (Exception $e) { - - $result->code = $e->getCode(); - $result->msg = $e->getMessage(); - return $result; - } - } - //组装系统参数 - $sysParams["v"] = $this->apiVersion; - $sysParams["format"] = $this->format; - $sysParams["method"] = $request->getApiMethodName(); - $sysParams["timestamp"] = date("Y-m-d H:i:s"); - if (null != $session) - { - $sysParams["session"] = $session; - } - $apiParams = array(); - //获取业务参数 - $apiParams = $request->getApiParas(); - - - //系统参数放入GET请求串 - if($bestUrl){ - if(strpos($bestUrl,'?') === false){ - $requestUrl = $bestUrl."?"; - }else{ - $requestUrl = $bestUrl; - } - $sysParams["partner_id"] = $this->getClusterTag(); - }else{ - $requestUrl = $this->gatewayUrl."?"; - $sysParams["partner_id"] = $this->sdkVersion; - } - - foreach ($sysParams as $sysParamKey => $sysParamValue) - { - // if(strcmp($sysParamKey,"timestamp") != 0) - $requestUrl .= "$sysParamKey=" . urlencode($sysParamValue) . "&"; - } - - $fileFields = array(); - foreach ($apiParams as $key => $value) { - if(is_array($value) && array_key_exists('type',$value) && array_key_exists('content',$value) ){ - $value['name'] = $key; - $fileFields[$key] = $value; - unset($apiParams[$key]); - } - } - - // $requestUrl .= "timestamp=" . urlencode($sysParams["timestamp"]) . "&"; - $requestUrl = substr($requestUrl, 0, -1); - - //发起HTTP请求 - try - { - if(count($fileFields) > 0){ - $resp = $this->curl_with_memory_file($requestUrl, $apiParams, $fileFields); - }else{ - $resp = $this->curl($requestUrl, $apiParams); - } - } - catch (Exception $e) - { - $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_ERROR_" . $e->getCode(),$e->getMessage()); - $result->code = $e->getCode(); - $result->msg = $e->getMessage(); - return $result; - } - - unset($apiParams); - unset($fileFields); - //解析TOP返回结果 - $respWellFormed = false; - if ("json" == $this->format) - { - $respObject = json_decode($resp); - if (null !== $respObject) - { - $respWellFormed = true; - foreach ($respObject as $propKey => $propValue) - { - $respObject = $propValue; - } - } - } - else if("xml" == $this->format) - { - $respObject = @simplexml_load_string($resp); - if (false !== $respObject) - { - $respWellFormed = true; - } - } - - //返回的HTTP文本不是标准JSON或者XML,记下错误日志 - if (false === $respWellFormed) - { - $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_RESPONSE_NOT_WELL_FORMED",$resp); - $result->code = 0; - $result->msg = "HTTP_RESPONSE_NOT_WELL_FORMED"; - return $result; - } - - //如果TOP返回了错误码,记录到业务错误日志中 - if (isset($respObject->code)) - { - $logger = new TopLogger; - $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_biz_err_" . "_" . date("Y-m-d") . ".log"; - $logger->log(array( - date("Y-m-d H:i:s"), - $resp - )); - } - return $respObject; - } - - public function exec($paramsArray) - { - if (!isset($paramsArray["method"])) - { - trigger_error("No api name passed"); - } - $inflector = new LtInflector; - $inflector->conf["separator"] = "."; - $requestClassName = ucfirst($inflector->camelize(substr($paramsArray["method"], 7))) . "Request"; - if (!class_exists($requestClassName)) - { - trigger_error("No such dingtalk-api: " . $paramsArray["method"]); - } - - $session = isset($paramsArray["session"]) ? $paramsArray["session"] : null; - - $req = new $requestClassName; - foreach($paramsArray as $paraKey => $paraValue) - { - $inflector->conf["separator"] = "_"; - $setterMethodName = $inflector->camelize($paraKey); - $inflector->conf["separator"] = "."; - $setterMethodName = "set" . $inflector->camelize($setterMethodName); - if (method_exists($req, $setterMethodName)) - { - $req->$setterMethodName($paraValue); - } - } - return $this->execute($req, $session); - } - - private function getClusterTag() - { - return substr($this->sdkVersion,0,11)."-cluster".substr($this->sdkVersion,11); - } -} +apiCallType = $apiCallType; + $this->httpMethod = $httpMethod; + $this->format = $format; + } + + public function curl($url, $postFields = null) + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_FAILONERROR, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + if ($this->readTimeout) { + curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); + } + if ($this->connectTimeout) { + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); + } + curl_setopt ( $ch, CURLOPT_USERAGENT, "dingtalk-sdk-php" ); + //https 请求 + if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + } + + if (is_array($postFields) && 0 < count($postFields)) + { + $postBodyString = ""; + $postMultipart = false; + foreach ($postFields as $k => $v) + { + if("@" != substr($v, 0, 1))//判断是不是文件上传 + { + $postBodyString .= "$k=" . urlencode($v) . "&"; + } + else//文件上传用multipart/form-data,否则用www-form-urlencoded + { + $postMultipart = true; + if(class_exists('\CURLFile')){ + $postFields[$k] = new \CURLFile(substr($v, 1)); + } + } + } + unset($k, $v); + curl_setopt($ch, CURLOPT_POST, true); + if ($postMultipart) + { + if (class_exists('\CURLFile')) { + curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); + } else { + if (defined('CURLOPT_SAFE_UPLOAD')) { + curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false); + } + } + curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); + } + else + { + $header = array("content-type: application/x-www-form-urlencoded; charset=UTF-8"); + curl_setopt($ch,CURLOPT_HTTPHEADER,$header); + curl_setopt($ch, CURLOPT_POSTFIELDS, substr($postBodyString,0,-1)); + } + } + $reponse = curl_exec($ch); + + if (curl_errno($ch)) + { + throw new Exception(curl_error($ch),0); + } + else + { + $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); + if (200 !== $httpStatusCode) + { + throw new Exception($reponse,$httpStatusCode); + } + } + curl_close($ch); + return $reponse; + } + + public function curl_get($url,$apiFields = null) + { + $ch = curl_init(); + + foreach ($apiFields as $key => $value) + { + $url .= "&" ."$key=" . urlencode($value); + } + + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_FAILONERROR, false); + curl_setopt($ch, CURLOPT_HEADER, false); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); + + + if ($this->readTimeout) + { + curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); + } + + if ($this->connectTimeout) + { + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); + } + + curl_setopt ( $ch, CURLOPT_USERAGENT, "dingtalk-sdk-php" ); + + //https ignore ssl check ? + if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) + { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + } + + $reponse = curl_exec($ch); + + if (curl_errno($ch)) + { + throw new Exception(curl_error($ch),0); + } + else + { + $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); + if (200 !== $httpStatusCode) + { + throw new Exception($reponse,$httpStatusCode); + } + } + curl_close($ch); + return $reponse; + } + + public function curl_json($url, $postFields = null) + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_FAILONERROR, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + if ($this->readTimeout) { + curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); + } + if ($this->connectTimeout) { + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); + } + curl_setopt ( $ch, CURLOPT_USERAGENT, "dingtalk-sdk-php" ); + //https 请求 + if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + } + + if (is_array($postFields) && 0 < count($postFields)) + { + $postBodyString = ""; + $postMultipart = false; + foreach ($postFields as $k => $v) + { + if(!is_string($v)){ + $v = json_encode($v); + } + if("@" != substr($v, 0, 1))//判断是不是文件上传 + { + $postBodyString .= "$k=" . urlencode($v) . "&"; + } + else//文件上传用multipart/form-data,否则用www-form-urlencoded + { + $postMultipart = true; + if(class_exists('\CURLFile')){ + $postFields[$k] = new \CURLFile(substr($v, 1)); + } + } + } + unset($k, $v); + curl_setopt($ch, CURLOPT_POST, true); + if ($postMultipart) + { + if (class_exists('\CURLFile')) { + curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); + } else { + if (defined('CURLOPT_SAFE_UPLOAD')) { + curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false); + } + } + curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); + } + else { + $header = array("Content-Type: application/json; charset=utf-8", "Content-Length:".strlen(json_encode($postFields))); + curl_setopt($ch,CURLOPT_HTTPHEADER,$header); + curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($postFields)); + } + } + $reponse = curl_exec($ch); + + if (curl_errno($ch)) + { + throw new Exception(curl_error($ch),0); + } + else + { + $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); + if (200 !== $httpStatusCode) + { + throw new Exception($reponse,$httpStatusCode); + } + } + curl_close($ch); + return $reponse; + } + + public function curl_with_memory_file($url, $postFields = null, $fileFields = null) + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_FAILONERROR, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + if ($this->readTimeout) { + curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); + } + if ($this->connectTimeout) { + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); + } + curl_setopt ( $ch, CURLOPT_USERAGENT, "dingtalk-sdk-php" ); + //https 请求 + if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + } + //生成分隔符 + $delimiter = '-------------' . uniqid(); + //先将post的普通数据生成主体字符串 + $data = ''; + if($postFields != null){ + foreach ($postFields as $name => $content) { + $data .= "--" . $delimiter . "\r\n"; + $data .= 'Content-Disposition: form-data; name="' . $name . '"'; + //multipart/form-data 不需要urlencode,参见 http:stackoverflow.com/questions/6603928/should-i-url-encode-post-data + $data .= "\r\n\r\n" . $content . "\r\n"; + } + unset($name,$content); + } + + //将上传的文件生成主体字符串 + if($fileFields != null){ + foreach ($fileFields as $name => $file) { + $data .= "--" . $delimiter . "\r\n"; + $data .= 'Content-Disposition: form-data; name="' . $name . '"; filename="' . $file['filename'] . "\" \r\n"; + $data .= 'Content-Type: ' . $file['type'] . "\r\n\r\n";//多了个文档类型 + + $data .= $file['content'] . "\r\n"; + } + unset($name,$file); + } + //主体结束的分隔符 + $data .= "--" . $delimiter . "--"; + + curl_setopt($ch, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_HTTPHEADER , array( + 'Content-Type: multipart/form-data; boundary=' . $delimiter, + 'Content-Length: ' . strlen($data)) + ); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_POSTFIELDS, $data); + + $reponse = curl_exec($ch); + unset($data); + + if (curl_errno($ch)) + { + throw new Exception(curl_error($ch),0); + } + else + { + $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); + if (200 !== $httpStatusCode) + { + throw new Exception($reponse,$httpStatusCode); + } + } + curl_close($ch); + return $reponse; + } + + protected function logCommunicationError($apiName, $requestUrl, $errorCode, $responseTxt) + { + $localIp = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "CLI"; + $logger = new TopLogger; + $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_comm_err_" . "_" . date("Y-m-d") . ".log"; + $logger->conf["separator"] = "^_^"; + $logData = array( + date("Y-m-d H:i:s"), + $apiName, + $localIp, + PHP_OS, + $this->sdkVersion, + $requestUrl, + $errorCode, + str_replace("\n","",$responseTxt) + ); + $logger->log($logData); + } + + public function execute($request, $session = null,$bestUrl = null){ + if(DingTalkConstant::$CALL_TYPE_OAPI == $this->apiCallType){ + return $this->_executeOapi($request, $session, $bestUrl, null, null, null, null); + }else{ + return $this->_execute($request, $session, $bestUrl); + } + } + + public function executeWithAccessKey($request, $bestUrl = null, $accessKey, $accessSecret){ + return $this->executeWithCorpId($request, $bestUrl, $accessKey, $accessSecret, null, null); + } + + public function executeWithSuiteTicket($request,$bestUrl = null, $accessKey, $accessSecret, $suiteTicket){ + return $this->executeWithCorpId($request,$bestUrl, $accessKey, $accessSecret, $suiteTicket, null); + } + + public function executeWithCorpId($request, $bestUrl = null, $accessKey, $accessSecret, $suiteTicket, $corpId) { + if(DingTalkConstant::$CALL_TYPE_OAPI == $this->apiCallType){ + return $this->_executeOapi($request, null, $bestUrl,$accessKey, $accessSecret, $suiteTicket, $corpId); + }else{ + return $this->_execute($request, null, $bestUrl); + } + } + + private function _executeOapi($request, $session = null,$bestUrl = null,$accessKey, $accessSecret, $suiteTicket, $corpId){ + $result = new ResultSet(); + if($this->checkRequest) { + try { + $request->check(); + } catch (Exception $e) { + + $result->code = $e->getCode(); + $result->msg = $e->getMessage(); + return $result; + } + } + + $sysParams["method"] = $request->getApiMethodName(); + //系统参数放入GET请求串 + if($bestUrl){ + if(strpos($bestUrl,'?') === false){ + $requestUrl = $bestUrl."?"; + }else{ + $requestUrl = $bestUrl; + } + }else{ + $requestUrl = $this->gatewayUrl."?"; + } + if(null != $accessKey){ + $timestamp = $this->getMillisecond(); + // 验证签名有效性 + $canonicalString = $this->getCanonicalStringForIsv($timestamp, $suiteTicket); + $signature = $this->computeSignature($accessSecret, $canonicalString); + + $queryParams["accessKey"] = $accessKey; + $queryParams["signature"] = $signature; + $queryParams["timestamp"] = $timestamp+""; + if($suiteTicket != null) { + $queryParams["suiteTicket"] = $suiteTicket; + } + if($corpId != null){ + $queryParams["corpId"] = $corpId; + } + foreach ($queryParams as $queryParamKey => $queryParamValue) { + $requestUrl .= "$queryParamKey=" . urlencode($queryParamValue) . "&"; + } + }else{ + $requestUrl .= "access_token=" . urlencode($session) . "&"; + } + + $apiParams = array(); + //获取业务参数 + $apiParams = $request->getApiParas(); + $fileFields = array(); + foreach ($apiParams as $key => $value) { + if(is_array($value) && array_key_exists('type',$value) && array_key_exists('content',$value) ){ + $value['name'] = $key; + $fileFields[$key] = $value; + unset($apiParams[$key]); + } + } + + // $requestUrl .= "timestamp=" . urlencode($sysParams["timestamp"]) . "&"; + $requestUrl = substr($requestUrl, 0, -1); + + //发起HTTP请求 + try + { + if(count($fileFields) > 0){ + $resp = $this->curl_with_memory_file($requestUrl, $apiParams, $fileFields); + }else{ + if(DingTalkConstant::$METHOD_POST == $this->httpMethod){ + $resp = $this->curl_json($requestUrl, $apiParams); + }else{ + $resp = $this->curl_get($requestUrl, $apiParams); + } + } + } + catch (Exception $e) + { + $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_ERROR_" . $e->getCode(),$e->getMessage()); + $result->code = $e->getCode(); + $result->msg = $e->getMessage(); + return $result; + } + + unset($apiParams); + unset($fileFields); + //解析TOP返回结果 + $respWellFormed = false; + if ("json" == $this->format) + { + $respObject = json_decode($resp); + if (null !== $respObject) + { + $respWellFormed = true; + } + } + else if("xml" == $this->format) + { + $respObject = @simplexml_load_string($resp); + if (false !== $respObject) + { + $respWellFormed = true; + } + } + + //返回的HTTP文本不是标准JSON或者XML,记下错误日志 + if (false === $respWellFormed) + { + $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_RESPONSE_NOT_WELL_FORMED",$resp); + $result->code = 0; + $result->msg = "HTTP_RESPONSE_NOT_WELL_FORMED"; + return $result; + } + + //如果TOP返回了错误码,记录到业务错误日志中 + if (isset($respObject->code)) + { + $logger = new TopLogger; + $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_biz_err_" . "_" . date("Y-m-d") . ".log"; + $logger->log(array( + date("Y-m-d H:i:s"), + $resp + )); + } + return $respObject; + } + + private function getMillisecond() { + list($s1, $s2) = explode(' ', microtime()); + return (float)sprintf('%.0f', (floatval($s1) + floatval($s2)) * 1000); + } + + private function getCanonicalStringForIsv($timestamp, $suiteTicket) { + $result = $timestamp; + if($suiteTicket != null) { + $result .= "\n".$suiteTicket; + } + return $result; + } + + private function computeSignature($accessSecret, $canonicalString){ + $s = hash_hmac('sha256', $canonicalString, $accessSecret, true); + return base64_encode($s); + } + + private function _execute($request, $session = null,$bestUrl = null) + { + $result = new ResultSet(); + if($this->checkRequest) { + try { + $request->check(); + } catch (Exception $e) { + + $result->code = $e->getCode(); + $result->msg = $e->getMessage(); + return $result; + } + } + //组装系统参数 + $sysParams["v"] = $this->apiVersion; + $sysParams["format"] = $this->format; + $sysParams["method"] = $request->getApiMethodName(); + $sysParams["timestamp"] = date("Y-m-d H:i:s"); + if (null != $session) + { + $sysParams["session"] = $session; + } + $apiParams = array(); + //获取业务参数 + $apiParams = $request->getApiParas(); + + + //系统参数放入GET请求串 + if($bestUrl){ + if(strpos($bestUrl,'?') === false){ + $requestUrl = $bestUrl."?"; + }else{ + $requestUrl = $bestUrl; + } + $sysParams["partner_id"] = $this->getClusterTag(); + }else{ + $requestUrl = $this->gatewayUrl."?"; + $sysParams["partner_id"] = $this->sdkVersion; + } + + foreach ($sysParams as $sysParamKey => $sysParamValue) + { + // if(strcmp($sysParamKey,"timestamp") != 0) + $requestUrl .= "$sysParamKey=" . urlencode($sysParamValue) . "&"; + } + + $fileFields = array(); + foreach ($apiParams as $key => $value) { + if(is_array($value) && array_key_exists('type',$value) && array_key_exists('content',$value) ){ + $value['name'] = $key; + $fileFields[$key] = $value; + unset($apiParams[$key]); + } + } + + // $requestUrl .= "timestamp=" . urlencode($sysParams["timestamp"]) . "&"; + $requestUrl = substr($requestUrl, 0, -1); + + //发起HTTP请求 + try + { + if(count($fileFields) > 0){ + $resp = $this->curl_with_memory_file($requestUrl, $apiParams, $fileFields); + }else{ + $resp = $this->curl($requestUrl, $apiParams); + } + } + catch (Exception $e) + { + $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_ERROR_" . $e->getCode(),$e->getMessage()); + $result->code = $e->getCode(); + $result->msg = $e->getMessage(); + return $result; + } + + unset($apiParams); + unset($fileFields); + //解析TOP返回结果 + $respWellFormed = false; + if ("json" == $this->format) + { + $respObject = json_decode($resp); + if (null !== $respObject) + { + $respWellFormed = true; + foreach ($respObject as $propKey => $propValue) + { + $respObject = $propValue; + } + } + } + else if("xml" == $this->format) + { + $respObject = @simplexml_load_string($resp); + if (false !== $respObject) + { + $respWellFormed = true; + } + } + + //返回的HTTP文本不是标准JSON或者XML,记下错误日志 + if (false === $respWellFormed) + { + $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_RESPONSE_NOT_WELL_FORMED",$resp); + $result->code = 0; + $result->msg = "HTTP_RESPONSE_NOT_WELL_FORMED"; + return $result; + } + + //如果TOP返回了错误码,记录到业务错误日志中 + if (isset($respObject->code)) + { + $logger = new TopLogger; + $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_biz_err_" . "_" . date("Y-m-d") . ".log"; + $logger->log(array( + date("Y-m-d H:i:s"), + $resp + )); + } + return $respObject; + } + + public function exec($paramsArray) + { + if (!isset($paramsArray["method"])) + { + trigger_error("No api name passed"); + } + $inflector = new LtInflector; + $inflector->conf["separator"] = "."; + $requestClassName = ucfirst($inflector->camelize(substr($paramsArray["method"], 7))) . "Request"; + if (!class_exists($requestClassName)) + { + trigger_error("No such dingtalk-api: " . $paramsArray["method"]); + } + + $session = isset($paramsArray["session"]) ? $paramsArray["session"] : null; + + $req = new $requestClassName; + foreach($paramsArray as $paraKey => $paraValue) + { + $inflector->conf["separator"] = "_"; + $setterMethodName = $inflector->camelize($paraKey); + $inflector->conf["separator"] = "."; + $setterMethodName = "set" . $inflector->camelize($setterMethodName); + if (method_exists($req, $setterMethodName)) + { + $req->$setterMethodName($paraValue); + } + } + return $this->execute($req, $session); + } + + private function getClusterTag() + { + return substr($this->sdkVersion,0,11)."-cluster".substr($this->sdkVersion,11); + } +} diff --git a/src/service/taobao/bin/top/RequestCheckUtil.php b/src/service/taobao/bin/top/RequestCheckUtil.php index 5ec32ab..3c3b21e 100644 --- a/src/service/taobao/bin/top/RequestCheckUtil.php +++ b/src/service/taobao/bin/top/RequestCheckUtil.php @@ -1,107 +1,107 @@ - $maxLength){ - throw new Exception("client-check-error:Invalid Arguments:the length of " .$fieldName . " can not be larger than " . $maxLength . "." , 41); - } - } - - /** - * ֶfieldNameֵvalueб - * - **/ - public static function checkMaxListSize($value,$maxSize,$fieldName) { - - if(self::checkEmpty($value)) - return ; - - $list=preg_split("/,/",$value); - if(count($list) > $maxSize){ - throw new Exception("client-check-error:Invalid Arguments:the listsize(the string split by \",\") of ". $fieldName . " must be less than " . $maxSize . " ." , 41); - } - } - - /** - * ֶfieldNameֵvalue ֵ - * - **/ - public static function checkMaxValue($value,$maxValue,$fieldName){ - - if(self::checkEmpty($value)) - return ; - - self::checkNumeric($value,$fieldName); - - if($value > $maxValue){ - throw new Exception("client-check-error:Invalid Arguments:the value of " . $fieldName . " can not be larger than " . $maxValue ." ." , 41); - } - } - - /** - * ֶfieldNameֵvalue Сֵ - * - **/ - public static function checkMinValue($value,$minValue,$fieldName) { - - if(self::checkEmpty($value)) - return ; - - self::checkNumeric($value,$fieldName); - - if($value < $minValue){ - throw new Exception("client-check-error:Invalid Arguments:the value of " . $fieldName . " can not be less than " . $minValue . " ." , 41); - } - } - - /** - * ֶfieldNameֵvalueǷnumber - * - **/ - protected static function checkNumeric($value,$fieldName) { - if(!is_numeric($value)) - throw new Exception("client-check-error:Invalid Arguments:the value of " . $fieldName . " is not number : " . $value . " ." , 41); - } - - /** - * У$valueǷǿ - * if not set ,return true; - * if is null , return true; - * - * - **/ - public static function checkEmpty($value) { - if(!isset($value)) - return true ; - if($value === null ) - return true; - if(is_array($value) && count($value) == 0) - return true; - if(is_string($value) &&trim($value) === "") - return true; - - return false; - } - -} + $maxLength){ + throw new Exception("client-check-error:Invalid Arguments:the length of " .$fieldName . " can not be larger than " . $maxLength . "." , 41); + } + } + + /** + * ֶfieldNameֵvalueб + * + **/ + public static function checkMaxListSize($value,$maxSize,$fieldName) { + + if(self::checkEmpty($value)) + return ; + + $list=preg_split("/,/",$value); + if(count($list) > $maxSize){ + throw new Exception("client-check-error:Invalid Arguments:the listsize(the string split by \",\") of ". $fieldName . " must be less than " . $maxSize . " ." , 41); + } + } + + /** + * ֶfieldNameֵvalue ֵ + * + **/ + public static function checkMaxValue($value,$maxValue,$fieldName){ + + if(self::checkEmpty($value)) + return ; + + self::checkNumeric($value,$fieldName); + + if($value > $maxValue){ + throw new Exception("client-check-error:Invalid Arguments:the value of " . $fieldName . " can not be larger than " . $maxValue ." ." , 41); + } + } + + /** + * ֶfieldNameֵvalue Сֵ + * + **/ + public static function checkMinValue($value,$minValue,$fieldName) { + + if(self::checkEmpty($value)) + return ; + + self::checkNumeric($value,$fieldName); + + if($value < $minValue){ + throw new Exception("client-check-error:Invalid Arguments:the value of " . $fieldName . " can not be less than " . $minValue . " ." , 41); + } + } + + /** + * ֶfieldNameֵvalueǷnumber + * + **/ + protected static function checkNumeric($value,$fieldName) { + if(!is_numeric($value)) + throw new Exception("client-check-error:Invalid Arguments:the value of " . $fieldName . " is not number : " . $value . " ." , 41); + } + + /** + * У$valueǷǿ + * if not set ,return true; + * if is null , return true; + * + * + **/ + public static function checkEmpty($value) { + if(!isset($value)) + return true ; + if($value === null ) + return true; + if(is_array($value) && count($value) == 0) + return true; + if(is_string($value) &&trim($value) === "") + return true; + + return false; + } + +} ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/ResultSet.php b/src/service/taobao/bin/top/ResultSet.php index 6df5375..dc3684e 100644 --- a/src/service/taobao/bin/top/ResultSet.php +++ b/src/service/taobao/bin/top/ResultSet.php @@ -1,21 +1,21 @@ -appkey; - } - - public function __construct($appkey = "",$secretKey = ""){ - $this->appkey = $appkey; - $this->secretKey = $secretKey ; - } - - protected function generateSign($params) - { - ksort($params); - - $stringToBeSigned = $this->secretKey; - foreach ($params as $k => $v) - { - if(!is_array($v) && "@" != substr($v, 0, 1)) - { - $stringToBeSigned .= "$k$v"; - } - } - unset($k, $v); - $stringToBeSigned .= $this->secretKey; - - return strtoupper(md5($stringToBeSigned)); - } - - public function curl($url, $postFields = null) - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_FAILONERROR, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - if ($this->readTimeout) { - curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); - } - if ($this->connectTimeout) { - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); - } - curl_setopt ( $ch, CURLOPT_USERAGENT, "top-sdk-php" ); - //https 请求 - if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - } - - if (is_array($postFields) && 0 < count($postFields)) - { - $postBodyString = ""; - $postMultipart = false; - foreach ($postFields as $k => $v) - { - if("@" != substr($v, 0, 1))//判断是不是文件上传 - { - $postBodyString .= "$k=" . urlencode($v) . "&"; - } - else//文件上传用multipart/form-data,否则用www-form-urlencoded - { - $postMultipart = true; - if(class_exists('\CURLFile')){ - $postFields[$k] = new \CURLFile(substr($v, 1)); - } - } - } - unset($k, $v); - curl_setopt($ch, CURLOPT_POST, true); - if ($postMultipart) - { - if (class_exists('\CURLFile')) { - curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); - } else { - if (defined('CURLOPT_SAFE_UPLOAD')) { - curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false); - } - } - curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); - } - else - { - $header = array("content-type: application/x-www-form-urlencoded; charset=UTF-8"); - curl_setopt($ch,CURLOPT_HTTPHEADER,$header); - curl_setopt($ch, CURLOPT_POSTFIELDS, substr($postBodyString,0,-1)); - } - } - $reponse = curl_exec($ch); - - if (curl_errno($ch)) - { - throw new Exception(curl_error($ch),0); - } - else - { - $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); - if (200 !== $httpStatusCode) - { - throw new Exception($reponse,$httpStatusCode); - } - } - curl_close($ch); - return $reponse; - } - public function curl_with_memory_file($url, $postFields = null, $fileFields = null) - { - $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_FAILONERROR, false); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - if ($this->readTimeout) { - curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); - } - if ($this->connectTimeout) { - curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); - } - curl_setopt ( $ch, CURLOPT_USERAGENT, "top-sdk-php" ); - //https 请求 - if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); - } - //生成分隔符 - $delimiter = '-------------' . uniqid(); - //先将post的普通数据生成主体字符串 - $data = ''; - if($postFields != null){ - foreach ($postFields as $name => $content) { - $data .= "--" . $delimiter . "\r\n"; - $data .= 'Content-Disposition: form-data; name="' . $name . '"'; - //multipart/form-data 不需要urlencode,参见 http:stackoverflow.com/questions/6603928/should-i-url-encode-post-data - $data .= "\r\n\r\n" . $content . "\r\n"; - } - unset($name,$content); - } - - //将上传的文件生成主体字符串 - if($fileFields != null){ - foreach ($fileFields as $name => $file) { - $data .= "--" . $delimiter . "\r\n"; - $data .= 'Content-Disposition: form-data; name="' . $name . '"; filename="' . $file['name'] . "\" \r\n"; - $data .= 'Content-Type: ' . $file['type'] . "\r\n\r\n";//多了个文档类型 - - $data .= $file['content'] . "\r\n"; - } - unset($name,$file); - } - //主体结束的分隔符 - $data .= "--" . $delimiter . "--"; - - curl_setopt($ch, CURLOPT_POST, true); - curl_setopt($ch, CURLOPT_HTTPHEADER , array( - 'Content-Type: multipart/form-data; boundary=' . $delimiter, - 'Content-Length: ' . strlen($data)) - ); - curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS, $data); - - $reponse = curl_exec($ch); - unset($data); - - if (curl_errno($ch)) - { - throw new Exception(curl_error($ch),0); - } - else - { - $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); - if (200 !== $httpStatusCode) - { - throw new Exception($reponse,$httpStatusCode); - } - } - curl_close($ch); - return $reponse; - } - - protected function logCommunicationError($apiName, $requestUrl, $errorCode, $responseTxt) - { - $localIp = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "CLI"; - $logger = new TopLogger; - $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_comm_err_" . $this->appkey . "_" . date("Y-m-d") . ".log"; - $logger->conf["separator"] = "^_^"; - $logData = array( - date("Y-m-d H:i:s"), - $apiName, - $this->appkey, - $localIp, - PHP_OS, - $this->sdkVersion, - $requestUrl, - $errorCode, - str_replace("\n","",$responseTxt) - ); - $logger->log($logData); - } - - public function execute($request, $session = null,$bestUrl = null) - { - $result = new ResultSet(); - if($this->checkRequest) { - try { - $request->check(); - } catch (Exception $e) { - - $result->code = $e->getCode(); - $result->msg = $e->getMessage(); - return $result; - } - } - //组装系统参数 - $sysParams["app_key"] = $this->appkey; - $sysParams["v"] = $this->apiVersion; - $sysParams["format"] = $this->format; - $sysParams["sign_method"] = $this->signMethod; - $sysParams["method"] = $request->getApiMethodName(); - $sysParams["timestamp"] = date("Y-m-d H:i:s"); - if (null != $session) - { - $sysParams["session"] = $session; - } - $apiParams = array(); - //获取业务参数 - $apiParams = $request->getApiParas(); - - - //系统参数放入GET请求串 - if($bestUrl){ - $requestUrl = $bestUrl."?"; - $sysParams["partner_id"] = $this->getClusterTag(); - }else{ - $requestUrl = $this->gatewayUrl."?"; - $sysParams["partner_id"] = $this->sdkVersion; - } - //签名 - $sysParams["sign"] = $this->generateSign(array_merge($apiParams, $sysParams)); - - foreach ($sysParams as $sysParamKey => $sysParamValue) - { - // if(strcmp($sysParamKey,"timestamp") != 0) - $requestUrl .= "$sysParamKey=" . urlencode($sysParamValue) . "&"; - } - - $fileFields = array(); - foreach ($apiParams as $key => $value) { - if(is_array($value) && array_key_exists('type',$value) && array_key_exists('content',$value) ){ - $value['name'] = $key; - $fileFields[$key] = $value; - unset($apiParams[$key]); - } - } - - // $requestUrl .= "timestamp=" . urlencode($sysParams["timestamp"]) . "&"; - $requestUrl = substr($requestUrl, 0, -1); - - //发起HTTP请求 - try - { - if(count($fileFields) > 0){ - $resp = $this->curl_with_memory_file($requestUrl, $apiParams, $fileFields); - }else{ - $resp = $this->curl($requestUrl, $apiParams); - } - } - catch (Exception $e) - { - $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_ERROR_" . $e->getCode(),$e->getMessage()); - $result->code = $e->getCode(); - $result->msg = $e->getMessage(); - return $result; - } - - unset($apiParams); - unset($fileFields); - //解析TOP返回结果 - $respWellFormed = false; - if ("json" == $this->format) - { - $respObject = json_decode($resp); - if (null !== $respObject) - { - $respWellFormed = true; - foreach ($respObject as $propKey => $propValue) - { - $respObject = $propValue; - } - } - } - else if("xml" == $this->format) - { - $respObject = @simplexml_load_string($resp); - if (false !== $respObject) - { - $respWellFormed = true; - } - } - - //返回的HTTP文本不是标准JSON或者XML,记下错误日志 - if (false === $respWellFormed) - { - $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_RESPONSE_NOT_WELL_FORMED",$resp); - $result->code = 0; - $result->msg = "HTTP_RESPONSE_NOT_WELL_FORMED"; - return $result; - } - - //如果TOP返回了错误码,记录到业务错误日志中 - if (isset($respObject->code)) - { - $logger = new TopLogger; - $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_biz_err_" . $this->appkey . "_" . date("Y-m-d") . ".log"; - $logger->log(array( - date("Y-m-d H:i:s"), - $resp - )); - } - return $respObject; - } - - public function exec($paramsArray) - { - if (!isset($paramsArray["method"])) - { - trigger_error("No api name passed"); - } - $inflector = new LtInflector; - $inflector->conf["separator"] = "."; - $requestClassName = ucfirst($inflector->camelize(substr($paramsArray["method"], 7))) . "Request"; - if (!class_exists($requestClassName)) - { - trigger_error("No such api: " . $paramsArray["method"]); - } - - $session = isset($paramsArray["session"]) ? $paramsArray["session"] : null; - - $req = new $requestClassName; - foreach($paramsArray as $paraKey => $paraValue) - { - $inflector->conf["separator"] = "_"; - $setterMethodName = $inflector->camelize($paraKey); - $inflector->conf["separator"] = "."; - $setterMethodName = "set" . $inflector->camelize($setterMethodName); - if (method_exists($req, $setterMethodName)) - { - $req->$setterMethodName($paraValue); - } - } - return $this->execute($req, $session); - } - - private function getClusterTag() - { - return substr($this->sdkVersion,0,11)."-cluster".substr($this->sdkVersion,11); - } -} +appkey; + } + + public function __construct($appkey = "",$secretKey = ""){ + $this->appkey = $appkey; + $this->secretKey = $secretKey ; + } + + protected function generateSign($params) + { + ksort($params); + + $stringToBeSigned = $this->secretKey; + foreach ($params as $k => $v) + { + if(!is_array($v) && "@" != substr($v, 0, 1)) + { + $stringToBeSigned .= "$k$v"; + } + } + unset($k, $v); + $stringToBeSigned .= $this->secretKey; + + return strtoupper(md5($stringToBeSigned)); + } + + public function curl($url, $postFields = null) + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_FAILONERROR, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + if ($this->readTimeout) { + curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); + } + if ($this->connectTimeout) { + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); + } + curl_setopt ( $ch, CURLOPT_USERAGENT, "top-sdk-php" ); + //https 请求 + if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + } + + if (is_array($postFields) && 0 < count($postFields)) + { + $postBodyString = ""; + $postMultipart = false; + foreach ($postFields as $k => $v) + { + if("@" != substr($v, 0, 1))//判断是不是文件上传 + { + $postBodyString .= "$k=" . urlencode($v) . "&"; + } + else//文件上传用multipart/form-data,否则用www-form-urlencoded + { + $postMultipart = true; + if(class_exists('\CURLFile')){ + $postFields[$k] = new \CURLFile(substr($v, 1)); + } + } + } + unset($k, $v); + curl_setopt($ch, CURLOPT_POST, true); + if ($postMultipart) + { + if (class_exists('\CURLFile')) { + curl_setopt($ch, CURLOPT_SAFE_UPLOAD, true); + } else { + if (defined('CURLOPT_SAFE_UPLOAD')) { + curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false); + } + } + curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); + } + else + { + $header = array("content-type: application/x-www-form-urlencoded; charset=UTF-8"); + curl_setopt($ch,CURLOPT_HTTPHEADER,$header); + curl_setopt($ch, CURLOPT_POSTFIELDS, substr($postBodyString,0,-1)); + } + } + $reponse = curl_exec($ch); + + if (curl_errno($ch)) + { + throw new Exception(curl_error($ch),0); + } + else + { + $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); + if (200 !== $httpStatusCode) + { + throw new Exception($reponse,$httpStatusCode); + } + } + curl_close($ch); + return $reponse; + } + public function curl_with_memory_file($url, $postFields = null, $fileFields = null) + { + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_FAILONERROR, false); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + if ($this->readTimeout) { + curl_setopt($ch, CURLOPT_TIMEOUT, $this->readTimeout); + } + if ($this->connectTimeout) { + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->connectTimeout); + } + curl_setopt ( $ch, CURLOPT_USERAGENT, "top-sdk-php" ); + //https 请求 + if(strlen($url) > 5 && strtolower(substr($url,0,5)) == "https" ) { + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); + } + //生成分隔符 + $delimiter = '-------------' . uniqid(); + //先将post的普通数据生成主体字符串 + $data = ''; + if($postFields != null){ + foreach ($postFields as $name => $content) { + $data .= "--" . $delimiter . "\r\n"; + $data .= 'Content-Disposition: form-data; name="' . $name . '"'; + //multipart/form-data 不需要urlencode,参见 http:stackoverflow.com/questions/6603928/should-i-url-encode-post-data + $data .= "\r\n\r\n" . $content . "\r\n"; + } + unset($name,$content); + } + + //将上传的文件生成主体字符串 + if($fileFields != null){ + foreach ($fileFields as $name => $file) { + $data .= "--" . $delimiter . "\r\n"; + $data .= 'Content-Disposition: form-data; name="' . $name . '"; filename="' . $file['name'] . "\" \r\n"; + $data .= 'Content-Type: ' . $file['type'] . "\r\n\r\n";//多了个文档类型 + + $data .= $file['content'] . "\r\n"; + } + unset($name,$file); + } + //主体结束的分隔符 + $data .= "--" . $delimiter . "--"; + + curl_setopt($ch, CURLOPT_POST, true); + curl_setopt($ch, CURLOPT_HTTPHEADER , array( + 'Content-Type: multipart/form-data; boundary=' . $delimiter, + 'Content-Length: ' . strlen($data)) + ); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt($ch, CURLOPT_POSTFIELDS, $data); + + $reponse = curl_exec($ch); + unset($data); + + if (curl_errno($ch)) + { + throw new Exception(curl_error($ch),0); + } + else + { + $httpStatusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); + if (200 !== $httpStatusCode) + { + throw new Exception($reponse,$httpStatusCode); + } + } + curl_close($ch); + return $reponse; + } + + protected function logCommunicationError($apiName, $requestUrl, $errorCode, $responseTxt) + { + $localIp = isset($_SERVER["SERVER_ADDR"]) ? $_SERVER["SERVER_ADDR"] : "CLI"; + $logger = new TopLogger; + $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_comm_err_" . $this->appkey . "_" . date("Y-m-d") . ".log"; + $logger->conf["separator"] = "^_^"; + $logData = array( + date("Y-m-d H:i:s"), + $apiName, + $this->appkey, + $localIp, + PHP_OS, + $this->sdkVersion, + $requestUrl, + $errorCode, + str_replace("\n","",$responseTxt) + ); + $logger->log($logData); + } + + public function execute($request, $session = null,$bestUrl = null) + { + $result = new ResultSet(); + if($this->checkRequest) { + try { + $request->check(); + } catch (Exception $e) { + + $result->code = $e->getCode(); + $result->msg = $e->getMessage(); + return $result; + } + } + //组装系统参数 + $sysParams["app_key"] = $this->appkey; + $sysParams["v"] = $this->apiVersion; + $sysParams["format"] = $this->format; + $sysParams["sign_method"] = $this->signMethod; + $sysParams["method"] = $request->getApiMethodName(); + $sysParams["timestamp"] = date("Y-m-d H:i:s"); + if (null != $session) + { + $sysParams["session"] = $session; + } + $apiParams = array(); + //获取业务参数 + $apiParams = $request->getApiParas(); + + + //系统参数放入GET请求串 + if($bestUrl){ + $requestUrl = $bestUrl."?"; + $sysParams["partner_id"] = $this->getClusterTag(); + }else{ + $requestUrl = $this->gatewayUrl."?"; + $sysParams["partner_id"] = $this->sdkVersion; + } + //签名 + $sysParams["sign"] = $this->generateSign(array_merge($apiParams, $sysParams)); + + foreach ($sysParams as $sysParamKey => $sysParamValue) + { + // if(strcmp($sysParamKey,"timestamp") != 0) + $requestUrl .= "$sysParamKey=" . urlencode($sysParamValue) . "&"; + } + + $fileFields = array(); + foreach ($apiParams as $key => $value) { + if(is_array($value) && array_key_exists('type',$value) && array_key_exists('content',$value) ){ + $value['name'] = $key; + $fileFields[$key] = $value; + unset($apiParams[$key]); + } + } + + // $requestUrl .= "timestamp=" . urlencode($sysParams["timestamp"]) . "&"; + $requestUrl = substr($requestUrl, 0, -1); + + //发起HTTP请求 + try + { + if(count($fileFields) > 0){ + $resp = $this->curl_with_memory_file($requestUrl, $apiParams, $fileFields); + }else{ + $resp = $this->curl($requestUrl, $apiParams); + } + } + catch (Exception $e) + { + $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_ERROR_" . $e->getCode(),$e->getMessage()); + $result->code = $e->getCode(); + $result->msg = $e->getMessage(); + return $result; + } + + unset($apiParams); + unset($fileFields); + //解析TOP返回结果 + $respWellFormed = false; + if ("json" == $this->format) + { + $respObject = json_decode($resp); + if (null !== $respObject) + { + $respWellFormed = true; + foreach ($respObject as $propKey => $propValue) + { + $respObject = $propValue; + } + } + } + else if("xml" == $this->format) + { + $respObject = @simplexml_load_string($resp); + if (false !== $respObject) + { + $respWellFormed = true; + } + } + + //返回的HTTP文本不是标准JSON或者XML,记下错误日志 + if (false === $respWellFormed) + { + $this->logCommunicationError($sysParams["method"],$requestUrl,"HTTP_RESPONSE_NOT_WELL_FORMED",$resp); + $result->code = 0; + $result->msg = "HTTP_RESPONSE_NOT_WELL_FORMED"; + return $result; + } + + //如果TOP返回了错误码,记录到业务错误日志中 + if (isset($respObject->code)) + { + $logger = new TopLogger; + $logger->conf["log_file"] = rtrim(TOP_SDK_WORK_DIR, '\\/') . '/' . "logs/top_biz_err_" . $this->appkey . "_" . date("Y-m-d") . ".log"; + $logger->log(array( + date("Y-m-d H:i:s"), + $resp + )); + } + return $respObject; + } + + public function exec($paramsArray) + { + if (!isset($paramsArray["method"])) + { + trigger_error("No api name passed"); + } + $inflector = new LtInflector; + $inflector->conf["separator"] = "."; + $requestClassName = ucfirst($inflector->camelize(substr($paramsArray["method"], 7))) . "Request"; + if (!class_exists($requestClassName)) + { + trigger_error("No such api: " . $paramsArray["method"]); + } + + $session = isset($paramsArray["session"]) ? $paramsArray["session"] : null; + + $req = new $requestClassName; + foreach($paramsArray as $paraKey => $paraValue) + { + $inflector->conf["separator"] = "_"; + $setterMethodName = $inflector->camelize($paraKey); + $inflector->conf["separator"] = "."; + $setterMethodName = "set" . $inflector->camelize($setterMethodName); + if (method_exists($req, $setterMethodName)) + { + $req->$setterMethodName($paraValue); + } + } + return $this->execute($req, $session); + } + + private function getClusterTag() + { + return substr($this->sdkVersion,0,11)."-cluster".substr($this->sdkVersion,11); + } +} diff --git a/src/service/taobao/bin/top/domain/Data.php b/src/service/taobao/bin/top/domain/Data.php index 4bff503..d45b0bc 100644 --- a/src/service/taobao/bin/top/domain/Data.php +++ b/src/service/taobao/bin/top/domain/Data.php @@ -6,20 +6,20 @@ */ class Data { - - /** - * 共享字段 - 渠道或会员列表 - **/ - public $inviter_list; - - /** - * 渠道专属pidList - **/ - public $root_pid_channel_list; - - /** - * 共享字段 - 总记录数 - **/ + + /** + * 共享字段 - 渠道或会员列表 + **/ + public $inviter_list; + + /** + * 渠道专属pidList + **/ + public $root_pid_channel_list; + + /** + * 共享字段 - 总记录数 + **/ public $total_count; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/Extend.php b/src/service/taobao/bin/top/domain/Extend.php index 96d05d1..6e9e7bc 100644 --- a/src/service/taobao/bin/top/domain/Extend.php +++ b/src/service/taobao/bin/top/domain/Extend.php @@ -6,10 +6,10 @@ */ class Extend { - - /** - * empty - **/ + + /** + * empty + **/ public $empty; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/FavoritesDetail.php b/src/service/taobao/bin/top/domain/FavoritesDetail.php index e2162f4..8a8204f 100644 --- a/src/service/taobao/bin/top/domain/FavoritesDetail.php +++ b/src/service/taobao/bin/top/domain/FavoritesDetail.php @@ -6,15 +6,15 @@ */ class FavoritesDetail { - - /** - * 选品库id - **/ - public $favorites_id; - - /** - * 选品库标题 - **/ + + /** + * 选品库id + **/ + public $favorites_id; + + /** + * 选品库标题 + **/ public $favorites_title; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/FavoritesInfo.php b/src/service/taobao/bin/top/domain/FavoritesInfo.php index 1071bb2..17fb0c0 100644 --- a/src/service/taobao/bin/top/domain/FavoritesInfo.php +++ b/src/service/taobao/bin/top/domain/FavoritesInfo.php @@ -6,15 +6,15 @@ */ class FavoritesInfo { - - /** - * 选品库详细信息 - **/ - public $favorites_list; - - /** - * 选品库总数量 - **/ + + /** + * 选品库详细信息 + **/ + public $favorites_list; + + /** + * 选品库总数量 + **/ public $total_count; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/Items.php b/src/service/taobao/bin/top/domain/Items.php index d5bac7d..afdd836 100644 --- a/src/service/taobao/bin/top/domain/Items.php +++ b/src/service/taobao/bin/top/domain/Items.php @@ -6,105 +6,105 @@ */ class Items { - - /** - * 聚划算价格,单位分 - **/ - public $act_price; - - /** - * 类目名称 - **/ - public $category_name; - - /** - * itemId - **/ - public $item_id; - - /** - * 商品卖点 - **/ - public $item_usp_list; - - /** - * 聚划算id - **/ - public $ju_id; - - /** - * 开团结束时间 - **/ - public $online_end_time; - - /** - * 开团时间 - **/ - public $online_start_time; - - /** - * 原价 - **/ - public $orig_price; - - /** - * 是否包邮 - **/ - public $pay_postage; - - /** - * pc链接 - **/ - public $pc_url; - - /** - * pc主图 - **/ - public $pic_url_for_p_c; - - /** - * 无线主图 - **/ - public $pic_url_for_w_l; - - /** - * 频道id - **/ - public $platform_id; - - /** - * 价格卖点 - **/ - public $price_usp_list; - - /** - * 展示结束时间 - **/ - public $show_end_time; - - /** - * 开始展示时间 - **/ - public $show_start_time; - - /** - * 淘宝类目id - **/ - public $tb_first_cat_id; - - /** - * 商品标题 - **/ - public $title; - - /** - * 卖点描述 - **/ - public $usp_desc_list; - - /** - * 无线链接 - **/ + + /** + * 聚划算价格,单位分 + **/ + public $act_price; + + /** + * 类目名称 + **/ + public $category_name; + + /** + * itemId + **/ + public $item_id; + + /** + * 商品卖点 + **/ + public $item_usp_list; + + /** + * 聚划算id + **/ + public $ju_id; + + /** + * 开团结束时间 + **/ + public $online_end_time; + + /** + * 开团时间 + **/ + public $online_start_time; + + /** + * 原价 + **/ + public $orig_price; + + /** + * 是否包邮 + **/ + public $pay_postage; + + /** + * pc链接 + **/ + public $pc_url; + + /** + * pc主图 + **/ + public $pic_url_for_p_c; + + /** + * 无线主图 + **/ + public $pic_url_for_w_l; + + /** + * 频道id + **/ + public $platform_id; + + /** + * 价格卖点 + **/ + public $price_usp_list; + + /** + * 展示结束时间 + **/ + public $show_end_time; + + /** + * 开始展示时间 + **/ + public $show_start_time; + + /** + * 淘宝类目id + **/ + public $tb_first_cat_id; + + /** + * 商品标题 + **/ + public $title; + + /** + * 卖点描述 + **/ + public $usp_desc_list; + + /** + * 无线链接 + **/ public $wap_url; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/KfcSearchResult.php b/src/service/taobao/bin/top/domain/KfcSearchResult.php index f8aedbf..d34257a 100644 --- a/src/service/taobao/bin/top/domain/KfcSearchResult.php +++ b/src/service/taobao/bin/top/domain/KfcSearchResult.php @@ -6,24 +6,24 @@ */ class KfcSearchResult { - - /** - * 过滤后的文本: -当匹配到B等级的词时,文本中的关键词被替换为*号,content即为关键词替换后的文本; -其他情况,content始终为null - **/ - public $content; - - /** - * 匹配到的关键词的等级,值为null,或为A、B、C、D。 -当匹配不到关键词时,值为null,否则值为A、B、C、D中的一个。 -A、B、C、D等级按严重程度从高至低排列。 - **/ - public $level; - - /** - * 是否匹配到关键词,匹配到则为true. - **/ + + /** + * 过滤后的文本: +当匹配到B等级的词时,文本中的关键词被替换为*号,content即为关键词替换后的文本; +其他情况,content始终为null + **/ + public $content; + + /** + * 匹配到的关键词的等级,值为null,或为A、B、C、D。 +当匹配不到关键词时,值为null,否则值为A、B、C、D中的一个。 +A、B、C、D等级按严重程度从高至低排列。 + **/ + public $level; + + /** + * 是否匹配到关键词,匹配到则为true. + **/ public $matched; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/MapData.php b/src/service/taobao/bin/top/domain/MapData.php index 3b1ddd4..a398038 100644 --- a/src/service/taobao/bin/top/domain/MapData.php +++ b/src/service/taobao/bin/top/domain/MapData.php @@ -6,380 +6,380 @@ */ class MapData { - - /** - * 商品信息-叶子类目id - **/ - public $category_id; - - /** - * 商品信息-叶子类目名称 - **/ - public $category_name; - - /** - * 商品信息-佣金比率。1550表示15.5% - **/ - public $commission_rate; - - /** - * 商品信息-佣金类型。MKT表示营销计划,SP表示定向计划,COMMON表示通用计划 - **/ - public $commission_type; - - /** - * 优惠券(元) 若属于预售商品,该优惠券付尾款可用,付定金不可用 - **/ - public $coupon_amount; - - /** - * 优惠券信息-优惠券结束时间 - **/ - public $coupon_end_time; - - /** - * 优惠券信息-优惠券id - **/ - public $coupon_id; - - /** - * 优惠券信息-优惠券满减信息 - **/ - public $coupon_info; - - /** - * 优惠券信息-优惠券剩余量 - **/ - public $coupon_remain_count; - - /** - * 链接-宝贝+券二合一页面链接 - **/ - public $coupon_share_url; - - /** - * 优惠券信息-优惠券起用门槛,满X元可用。如:满299元减20元 - **/ - public $coupon_start_fee; - - /** - * 优惠券信息-优惠券开始时间 - **/ - public $coupon_start_time; - - /** - * 优惠券信息-优惠券总量 - **/ - public $coupon_total_count; - - /** - * 本地化-到门店距离(米) - **/ - public $distance; - - /** - * 商品信息-是否包含定向计划 - **/ - public $include_dxjh; - - /** - * 商品信息-是否包含营销计划 - **/ - public $include_mkt; - - /** - * 商品信息-定向计划信息 - **/ - public $info_dxjh; - - /** - * 商品信息-宝贝描述(推荐理由) - **/ - public $item_description; - - /** - * 商品信息-宝贝id - **/ - public $item_id; - - /** - * 链接-宝贝地址 - **/ - public $item_url; - - /** - * 拼团专用-拼团几人团 - **/ - public $jdd_num; - - /** - * 拼团专用-拼团拼成价,单位元 - **/ - public $jdd_price; - - /** - * 跨店满减信息 - **/ - public $kuadian_promotion_info; - - /** - * 商品信息-一级类目ID - **/ - public $level_one_category_id; - - /** - * 商品信息-一级类目名称 - **/ - public $level_one_category_name; - - /** - * 锁住的佣金率 - **/ - public $lock_rate; - - /** - * 锁佣结束时间 - **/ - public $lock_rate_end_time; - - /** - * 锁佣开始时间 - **/ - public $lock_rate_start_time; - - /** - * 店铺信息-卖家昵称 - **/ - public $nick; - - /** - * 商品信息-宝贝id(该字段废弃,请勿再用) - **/ - public $num_iid; - - /** - * 拼团专用-拼团结束时间 - **/ - public $oetime; - - /** - * 拼团专用-拼团一人价(原价),单位元 - **/ - public $orig_price; - - /** - * 拼团专用-拼团开始时间 - **/ - public $ostime; - - /** - * 商品信息-商品主图 - **/ - public $pict_url; - - /** - * 预售商品-定金(元) - **/ - public $presale_deposit; - - /** - * 预售商品-优惠 - **/ - public $presale_discount_fee_text; - - /** - * 预售商品-付定金结束时间(毫秒) - **/ - public $presale_end_time; - - /** - * 预售商品-付定金开始时间(毫秒) - **/ - public $presale_start_time; - - /** - * 预售商品-付尾款结束时间(毫秒) - **/ - public $presale_tail_end_time; - - /** - * 预售商品-付尾款开始时间(毫秒) - **/ - public $presale_tail_start_time; - - /** - * 商品信息-宝贝所在地 - **/ - public $provcity; - - /** - * 商品邮费 - **/ - public $real_post_fee; - - /** - * 商品信息-商品一口价格 - **/ - public $reserve_price; - - /** - * 比价场景专用,当系统检测到入参消费者ID购买当前商品会获得《天天开彩蛋》玩法的彩蛋时,该字段显示1,否则为0 - **/ - public $reward_info; - - /** - * 本地化-销售开始时间 - **/ - public $sale_begin_time; - - /** - * 本地化-销售结束时间 - **/ - public $sale_end_time; - - /** - * 活动价 - **/ - public $sale_price; - - /** - * 拼团专用-拼团已售数量 - **/ - public $sell_num; - - /** - * 店铺信息-卖家id - **/ - public $seller_id; - - /** - * 店铺信息-店铺dsr评分 - **/ - public $shop_dsr; - - /** - * 店铺信息-店铺名称 - **/ - public $shop_title; - - /** - * 商品信息-商品短标题 - **/ - public $short_title; - - /** - * 商品信息-商品小图列表 - **/ - public $small_images; - - /** - * 拼团专用-拼团剩余库存 - **/ - public $stock; - - /** - * 是否品牌精选,0不是,1是 - **/ - public $superior_brand; - - /** - * 商品信息-商品标题 - **/ - public $title; - - /** - * 商品信息-月支出佣金(该字段废弃,请勿再用) - **/ - public $tk_total_commi; - - /** - * 商品信息-淘客30天推广量 - **/ - public $tk_total_sales; - - /** - * 营销-天猫营销玩法 - **/ - public $tmall_play_activity_info; - - /** - * 拼团专用-拼团库存数量 - **/ - public $total_stock; - - /** - * 链接-宝贝推广链接 - **/ - public $url; - - /** - * 本地化-可用店铺id - **/ - public $usable_shop_id; - - /** - * 本地化-可用店铺名称 - **/ - public $usable_shop_name; - - /** - * 店铺信息-卖家类型。0表示集市,1表示天猫 - **/ - public $user_type; - - /** - * 预售专用-预售数量 - **/ - public $uv_sum_pre_sale; - - /** - * 商品信息-30天销量(饿了么卡券信息-总销量) - **/ - public $volume; - - /** - * 商品信息-商品白底图 - **/ - public $white_image; - - /** - * 链接-物料块id(测试中请勿使用) - **/ - public $x_id; - - /** - * 预售有礼-推广链接 - **/ - public $ysyl_click_url; - - /** - * 预售有礼-佣金比例( 预售有礼活动享受的推广佣金比例,注:推广该活动有特殊分成规则,请详见:https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=9334376 ) - **/ - public $ysyl_commission_rate; - - /** - * 预售有礼-预估淘礼金(元) - **/ - public $ysyl_tlj_face; - - /** - * 预售有礼-淘礼金发放时间 - **/ - public $ysyl_tlj_send_time; - - /** - * 预售有礼-淘礼金使用结束时间 - **/ - public $ysyl_tlj_use_end_time; - - /** - * 预售有礼-淘礼金使用开始时间 - **/ - public $ysyl_tlj_use_start_time; - - /** - * 折扣价(元) 若属于预售商品,付定金时间内,折扣价=预售价 - **/ + + /** + * 商品信息-叶子类目id + **/ + public $category_id; + + /** + * 商品信息-叶子类目名称 + **/ + public $category_name; + + /** + * 商品信息-佣金比率。1550表示15.5% + **/ + public $commission_rate; + + /** + * 商品信息-佣金类型。MKT表示营销计划,SP表示定向计划,COMMON表示通用计划 + **/ + public $commission_type; + + /** + * 优惠券(元) 若属于预售商品,该优惠券付尾款可用,付定金不可用 + **/ + public $coupon_amount; + + /** + * 优惠券信息-优惠券结束时间 + **/ + public $coupon_end_time; + + /** + * 优惠券信息-优惠券id + **/ + public $coupon_id; + + /** + * 优惠券信息-优惠券满减信息 + **/ + public $coupon_info; + + /** + * 优惠券信息-优惠券剩余量 + **/ + public $coupon_remain_count; + + /** + * 链接-宝贝+券二合一页面链接 + **/ + public $coupon_share_url; + + /** + * 优惠券信息-优惠券起用门槛,满X元可用。如:满299元减20元 + **/ + public $coupon_start_fee; + + /** + * 优惠券信息-优惠券开始时间 + **/ + public $coupon_start_time; + + /** + * 优惠券信息-优惠券总量 + **/ + public $coupon_total_count; + + /** + * 本地化-到门店距离(米) + **/ + public $distance; + + /** + * 商品信息-是否包含定向计划 + **/ + public $include_dxjh; + + /** + * 商品信息-是否包含营销计划 + **/ + public $include_mkt; + + /** + * 商品信息-定向计划信息 + **/ + public $info_dxjh; + + /** + * 商品信息-宝贝描述(推荐理由) + **/ + public $item_description; + + /** + * 商品信息-宝贝id + **/ + public $item_id; + + /** + * 链接-宝贝地址 + **/ + public $item_url; + + /** + * 拼团专用-拼团几人团 + **/ + public $jdd_num; + + /** + * 拼团专用-拼团拼成价,单位元 + **/ + public $jdd_price; + + /** + * 跨店满减信息 + **/ + public $kuadian_promotion_info; + + /** + * 商品信息-一级类目ID + **/ + public $level_one_category_id; + + /** + * 商品信息-一级类目名称 + **/ + public $level_one_category_name; + + /** + * 锁住的佣金率 + **/ + public $lock_rate; + + /** + * 锁佣结束时间 + **/ + public $lock_rate_end_time; + + /** + * 锁佣开始时间 + **/ + public $lock_rate_start_time; + + /** + * 店铺信息-卖家昵称 + **/ + public $nick; + + /** + * 商品信息-宝贝id(该字段废弃,请勿再用) + **/ + public $num_iid; + + /** + * 拼团专用-拼团结束时间 + **/ + public $oetime; + + /** + * 拼团专用-拼团一人价(原价),单位元 + **/ + public $orig_price; + + /** + * 拼团专用-拼团开始时间 + **/ + public $ostime; + + /** + * 商品信息-商品主图 + **/ + public $pict_url; + + /** + * 预售商品-定金(元) + **/ + public $presale_deposit; + + /** + * 预售商品-优惠 + **/ + public $presale_discount_fee_text; + + /** + * 预售商品-付定金结束时间(毫秒) + **/ + public $presale_end_time; + + /** + * 预售商品-付定金开始时间(毫秒) + **/ + public $presale_start_time; + + /** + * 预售商品-付尾款结束时间(毫秒) + **/ + public $presale_tail_end_time; + + /** + * 预售商品-付尾款开始时间(毫秒) + **/ + public $presale_tail_start_time; + + /** + * 商品信息-宝贝所在地 + **/ + public $provcity; + + /** + * 商品邮费 + **/ + public $real_post_fee; + + /** + * 商品信息-商品一口价格 + **/ + public $reserve_price; + + /** + * 比价场景专用,当系统检测到入参消费者ID购买当前商品会获得《天天开彩蛋》玩法的彩蛋时,该字段显示1,否则为0 + **/ + public $reward_info; + + /** + * 本地化-销售开始时间 + **/ + public $sale_begin_time; + + /** + * 本地化-销售结束时间 + **/ + public $sale_end_time; + + /** + * 活动价 + **/ + public $sale_price; + + /** + * 拼团专用-拼团已售数量 + **/ + public $sell_num; + + /** + * 店铺信息-卖家id + **/ + public $seller_id; + + /** + * 店铺信息-店铺dsr评分 + **/ + public $shop_dsr; + + /** + * 店铺信息-店铺名称 + **/ + public $shop_title; + + /** + * 商品信息-商品短标题 + **/ + public $short_title; + + /** + * 商品信息-商品小图列表 + **/ + public $small_images; + + /** + * 拼团专用-拼团剩余库存 + **/ + public $stock; + + /** + * 是否品牌精选,0不是,1是 + **/ + public $superior_brand; + + /** + * 商品信息-商品标题 + **/ + public $title; + + /** + * 商品信息-月支出佣金(该字段废弃,请勿再用) + **/ + public $tk_total_commi; + + /** + * 商品信息-淘客30天推广量 + **/ + public $tk_total_sales; + + /** + * 营销-天猫营销玩法 + **/ + public $tmall_play_activity_info; + + /** + * 拼团专用-拼团库存数量 + **/ + public $total_stock; + + /** + * 链接-宝贝推广链接 + **/ + public $url; + + /** + * 本地化-可用店铺id + **/ + public $usable_shop_id; + + /** + * 本地化-可用店铺名称 + **/ + public $usable_shop_name; + + /** + * 店铺信息-卖家类型。0表示集市,1表示天猫 + **/ + public $user_type; + + /** + * 预售专用-预售数量 + **/ + public $uv_sum_pre_sale; + + /** + * 商品信息-30天销量(饿了么卡券信息-总销量) + **/ + public $volume; + + /** + * 商品信息-商品白底图 + **/ + public $white_image; + + /** + * 链接-物料块id(测试中请勿使用) + **/ + public $x_id; + + /** + * 预售有礼-推广链接 + **/ + public $ysyl_click_url; + + /** + * 预售有礼-佣金比例( 预售有礼活动享受的推广佣金比例,注:推广该活动有特殊分成规则,请详见:https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=9334376 ) + **/ + public $ysyl_commission_rate; + + /** + * 预售有礼-预估淘礼金(元) + **/ + public $ysyl_tlj_face; + + /** + * 预售有礼-淘礼金发放时间 + **/ + public $ysyl_tlj_send_time; + + /** + * 预售有礼-淘礼金使用结束时间 + **/ + public $ysyl_tlj_use_end_time; + + /** + * 预售有礼-淘礼金使用开始时间 + **/ + public $ysyl_tlj_use_start_time; + + /** + * 折扣价(元) 若属于预售商品,付定金时间内,折扣价=预售价 + **/ public $zk_final_price; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/NTbkItem.php b/src/service/taobao/bin/top/domain/NTbkItem.php index 22ebdd1..499deee 100644 --- a/src/service/taobao/bin/top/domain/NTbkItem.php +++ b/src/service/taobao/bin/top/domain/NTbkItem.php @@ -6,205 +6,205 @@ */ class NTbkItem { - - /** - * 叶子类目名称 - **/ - public $cat_leaf_name; - - /** - * 一级类目名称 - **/ - public $cat_name; - - /** - * 是否包邮 - **/ - public $free_shipment; - - /** - * 好评率是否高于行业均值 - **/ - public $h_good_rate; - - /** - * 成交转化是否高于行业均值 - **/ - public $h_pay_rate30; - - /** - * 退款率是否低于行业均值 - **/ - public $i_rfd_rate; - - /** - * 是否加入消费者保障 - **/ - public $is_prepay; - - /** - * 商品链接 - **/ - public $item_url; - - /** - * 聚划算信息-聚淘结束时间(毫秒) - **/ - public $ju_online_end_time; - - /** - * 聚划算信息-聚淘开始时间(毫秒) - **/ - public $ju_online_start_time; - - /** - * 聚划算满减 -结束时间(毫秒) - **/ - public $ju_play_end_time; - - /** - * 聚划算满减 -开始时间(毫秒) - **/ - public $ju_play_start_time; - - /** - * 聚划算信息-商品预热结束时间(毫秒) - **/ - public $ju_pre_show_end_time; - - /** - * 聚划算信息-商品预热开始时间(毫秒) - **/ - public $ju_pre_show_start_time; - - /** - * 跨店满减信息 - **/ - public $kuadian_promotion_info; - - /** - * 商品库类型,支持多库类型输出,以英文逗号分隔“,”分隔,1:营销商品主推库,如果值为空则不属于1这种商品类型 - **/ - public $material_lib_type; - - /** - * 店铺名称 - **/ - public $nick; - - /** - * 商品ID - **/ - public $num_iid; - - /** - * 商品主图 - **/ - public $pict_url; - - /** - * 1聚划算满减:满N件减X元,满N件X折,满N件X元) 2天猫限时抢:前N分钟每件X元,前N分钟满N件每件X元,前N件每件X元) - **/ - public $play_info; - - /** - * 预售商品-定金(元) - **/ - public $presale_deposit; - - /** - * 预售商品-商品优惠信息 - **/ - public $presale_discount_fee_text; - - /** - * 预售商品-付定金结束时间(毫秒) - **/ - public $presale_end_time; - - /** - * 预售商品-付定金开始时间(毫秒) - **/ - public $presale_start_time; - - /** - * 预售商品-付定金结束时间(毫秒) - **/ - public $presale_tail_end_time; - - /** - * 预售商品-付尾款开始时间(毫秒) - **/ - public $presale_tail_start_time; - - /** - * 商品所在地 - **/ - public $provcity; - - /** - * 卖家等级 - **/ - public $ratesum; - - /** - * 商品一口价格 - **/ - public $reserve_price; - - /** - * 活动价 - **/ - public $sale_price; - - /** - * 卖家id - **/ - public $seller_id; - - /** - * 店铺dsr 评分 - **/ - public $shop_dsr; - - /** - * 商品小图列表 - **/ - public $small_images; - - /** - * 是否品牌精选,0不是,1是 - **/ - public $superior_brand; - - /** - * 商品标题 - **/ - public $title; - - /** - * 天猫限时抢可售 -结束时间(毫秒) - **/ - public $tmall_play_activity_end_time; - - /** - * 天猫限时抢可售 -开始时间(毫秒) - **/ - public $tmall_play_activity_start_time; - - /** - * 卖家类型,0表示集市,1表示商城 - **/ - public $user_type; - - /** - * 30天销量 - **/ - public $volume; - - /** - * 折扣价(元) 若属于预售商品,付定金时间内,折扣价=预售价 - **/ + + /** + * 叶子类目名称 + **/ + public $cat_leaf_name; + + /** + * 一级类目名称 + **/ + public $cat_name; + + /** + * 是否包邮 + **/ + public $free_shipment; + + /** + * 好评率是否高于行业均值 + **/ + public $h_good_rate; + + /** + * 成交转化是否高于行业均值 + **/ + public $h_pay_rate30; + + /** + * 退款率是否低于行业均值 + **/ + public $i_rfd_rate; + + /** + * 是否加入消费者保障 + **/ + public $is_prepay; + + /** + * 商品链接 + **/ + public $item_url; + + /** + * 聚划算信息-聚淘结束时间(毫秒) + **/ + public $ju_online_end_time; + + /** + * 聚划算信息-聚淘开始时间(毫秒) + **/ + public $ju_online_start_time; + + /** + * 聚划算满减 -结束时间(毫秒) + **/ + public $ju_play_end_time; + + /** + * 聚划算满减 -开始时间(毫秒) + **/ + public $ju_play_start_time; + + /** + * 聚划算信息-商品预热结束时间(毫秒) + **/ + public $ju_pre_show_end_time; + + /** + * 聚划算信息-商品预热开始时间(毫秒) + **/ + public $ju_pre_show_start_time; + + /** + * 跨店满减信息 + **/ + public $kuadian_promotion_info; + + /** + * 商品库类型,支持多库类型输出,以英文逗号分隔“,”分隔,1:营销商品主推库,如果值为空则不属于1这种商品类型 + **/ + public $material_lib_type; + + /** + * 店铺名称 + **/ + public $nick; + + /** + * 商品ID + **/ + public $num_iid; + + /** + * 商品主图 + **/ + public $pict_url; + + /** + * 1聚划算满减:满N件减X元,满N件X折,满N件X元) 2天猫限时抢:前N分钟每件X元,前N分钟满N件每件X元,前N件每件X元) + **/ + public $play_info; + + /** + * 预售商品-定金(元) + **/ + public $presale_deposit; + + /** + * 预售商品-商品优惠信息 + **/ + public $presale_discount_fee_text; + + /** + * 预售商品-付定金结束时间(毫秒) + **/ + public $presale_end_time; + + /** + * 预售商品-付定金开始时间(毫秒) + **/ + public $presale_start_time; + + /** + * 预售商品-付定金结束时间(毫秒) + **/ + public $presale_tail_end_time; + + /** + * 预售商品-付尾款开始时间(毫秒) + **/ + public $presale_tail_start_time; + + /** + * 商品所在地 + **/ + public $provcity; + + /** + * 卖家等级 + **/ + public $ratesum; + + /** + * 商品一口价格 + **/ + public $reserve_price; + + /** + * 活动价 + **/ + public $sale_price; + + /** + * 卖家id + **/ + public $seller_id; + + /** + * 店铺dsr 评分 + **/ + public $shop_dsr; + + /** + * 商品小图列表 + **/ + public $small_images; + + /** + * 是否品牌精选,0不是,1是 + **/ + public $superior_brand; + + /** + * 商品标题 + **/ + public $title; + + /** + * 天猫限时抢可售 -结束时间(毫秒) + **/ + public $tmall_play_activity_end_time; + + /** + * 天猫限时抢可售 -开始时间(毫秒) + **/ + public $tmall_play_activity_start_time; + + /** + * 卖家类型,0表示集市,1表示商城 + **/ + public $user_type; + + /** + * 30天销量 + **/ + public $volume; + + /** + * 折扣价(元) 若属于预售商品,付定金时间内,折扣价=预售价 + **/ public $zk_final_price; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/NTbkShop.php b/src/service/taobao/bin/top/domain/NTbkShop.php index c1cd839..e975027 100644 --- a/src/service/taobao/bin/top/domain/NTbkShop.php +++ b/src/service/taobao/bin/top/domain/NTbkShop.php @@ -6,40 +6,40 @@ */ class NTbkShop { - - /** - * 淘客地址 - **/ - public $click_url; - - /** - * 店标图片 - **/ - public $pict_url; - - /** - * 卖家昵称 - **/ - public $seller_nick; - - /** - * 店铺名称 - **/ - public $shop_title; - - /** - * 店铺类型,B:天猫,C:淘宝 - **/ - public $shop_type; - - /** - * 店铺地址 - **/ - public $shop_url; - - /** - * 卖家ID - **/ + + /** + * 淘客地址 + **/ + public $click_url; + + /** + * 店标图片 + **/ + public $pict_url; + + /** + * 卖家昵称 + **/ + public $seller_nick; + + /** + * 店铺名称 + **/ + public $shop_title; + + /** + * 店铺类型,B:天猫,C:淘宝 + **/ + public $shop_type; + + /** + * 店铺地址 + **/ + public $shop_url; + + /** + * 卖家ID + **/ public $user_id; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/OrderData.php b/src/service/taobao/bin/top/domain/OrderData.php index f5b0474..7a8eb46 100644 --- a/src/service/taobao/bin/top/domain/OrderData.php +++ b/src/service/taobao/bin/top/domain/OrderData.php @@ -6,25 +6,25 @@ */ class OrderData { - - /** - * 预估佣金 - **/ - public $commission; - - /** - * 收货时间 - **/ - public $confirm_receive_time; - - /** - * 订单号 - **/ - public $order_no; - - /** - * 支付时间 - **/ + + /** + * 预估佣金 + **/ + public $commission; + + /** + * 收货时间 + **/ + public $confirm_receive_time; + + /** + * 订单号 + **/ + public $order_no; + + /** + * 支付时间 + **/ public $pay_time; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/OrderPage.php b/src/service/taobao/bin/top/domain/OrderPage.php index e817366..c02e0bc 100644 --- a/src/service/taobao/bin/top/domain/OrderPage.php +++ b/src/service/taobao/bin/top/domain/OrderPage.php @@ -6,35 +6,35 @@ */ class OrderPage { - - /** - * 是否还有下一页 - **/ - public $has_next; - - /** - * 是否还有上一页 - **/ - public $has_pre; - - /** - * 页码 - **/ - public $page_no; - - /** - * 页大小 - **/ - public $page_size; - - /** - * 位点字段,由调用方原样传递 - **/ - public $position_index; - - /** - * PublisherOrderDto - **/ + + /** + * 是否还有下一页 + **/ + public $has_next; + + /** + * 是否还有上一页 + **/ + public $has_pre; + + /** + * 页码 + **/ + public $page_no; + + /** + * 页大小 + **/ + public $page_size; + + /** + * 位点字段,由调用方原样传递 + **/ + public $position_index; + + /** + * PublisherOrderDto + **/ public $results; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/PageResult.php b/src/service/taobao/bin/top/domain/PageResult.php index 7c2704e..96a99a5 100644 --- a/src/service/taobao/bin/top/domain/PageResult.php +++ b/src/service/taobao/bin/top/domain/PageResult.php @@ -6,25 +6,25 @@ */ class PageResult { - - /** - * pageNo - **/ - public $page_no; - - /** - * pageSize - **/ - public $page_size; - - /** - * 订单列表 - **/ - public $results; - - /** - * 总值 - **/ + + /** + * pageNo + **/ + public $page_no; + + /** + * pageSize + **/ + public $page_size; + + /** + * 订单列表 + **/ + public $results; + + /** + * 总值 + **/ public $total_count; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/PaginationResult.php b/src/service/taobao/bin/top/domain/PaginationResult.php index f5609ec..1ef5600 100644 --- a/src/service/taobao/bin/top/domain/PaginationResult.php +++ b/src/service/taobao/bin/top/domain/PaginationResult.php @@ -6,55 +6,55 @@ */ class PaginationResult { - - /** - * 当前页码 - **/ - public $current_page; - - /** - * 扩展属性 - **/ - public $extend; - - /** - * 商品数据 - **/ - public $model_list; - - /** - * 错误码 - **/ - public $msg_code; - - /** - * 错误信息 - **/ - public $msg_info; - - /** - * 一页大小 - **/ - public $page_size; - - /** - * 请求是否成功 - **/ - public $success; - - /** - * 商品总数 - **/ - public $total_item; - - /** - * 总页数 - **/ - public $total_page; - - /** - * 埋点信息 - **/ + + /** + * 当前页码 + **/ + public $current_page; + + /** + * 扩展属性 + **/ + public $extend; + + /** + * 商品数据 + **/ + public $model_list; + + /** + * 错误码 + **/ + public $msg_code; + + /** + * 错误信息 + **/ + public $msg_info; + + /** + * 一页大小 + **/ + public $page_size; + + /** + * 请求是否成功 + **/ + public $success; + + /** + * 商品总数 + **/ + public $total_item; + + /** + * 总页数 + **/ + public $total_page; + + /** + * 埋点信息 + **/ public $track_params; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/PromotionExtend.php b/src/service/taobao/bin/top/domain/PromotionExtend.php index 1e96064..337720a 100644 --- a/src/service/taobao/bin/top/domain/PromotionExtend.php +++ b/src/service/taobao/bin/top/domain/PromotionExtend.php @@ -6,20 +6,20 @@ */ class PromotionExtend { - - /** - * 权益链接 - **/ - public $promotion_url; - - /** - * 权益推荐商品 - **/ - public $recommend_item_list; - - /** - * 有价券信息 - **/ + + /** + * 权益链接 + **/ + public $promotion_url; + + /** + * 权益推荐商品 + **/ + public $recommend_item_list; + + /** + * 有价券信息 + **/ public $youjia_coupon_info; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/PromotionList.php b/src/service/taobao/bin/top/domain/PromotionList.php index dc53210..fca2252 100644 --- a/src/service/taobao/bin/top/domain/PromotionList.php +++ b/src/service/taobao/bin/top/domain/PromotionList.php @@ -6,25 +6,25 @@ */ class PromotionList { - - /** - * 权益起用门槛,满X元可用,券场景为满元,精确到分,如满100元可用 - **/ - public $entry_condition; - - /** - * 权益面额,券场景为减钱,精确到分 - **/ - public $entry_discount; - - /** - * 权益结束时间,精确到毫秒时间戳 - **/ - public $entry_used_end_time; - - /** - * 权益开始时间,精确到毫秒时间戳 - **/ + + /** + * 权益起用门槛,满X元可用,券场景为满元,精确到分,如满100元可用 + **/ + public $entry_condition; + + /** + * 权益面额,券场景为减钱,精确到分 + **/ + public $entry_discount; + + /** + * 权益结束时间,精确到毫秒时间戳 + **/ + public $entry_used_end_time; + + /** + * 权益开始时间,精确到毫秒时间戳 + **/ public $entry_used_start_time; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/PublisherOrderDto.php b/src/service/taobao/bin/top/domain/PublisherOrderDto.php index 6b8eca3..0996c1a 100644 --- a/src/service/taobao/bin/top/domain/PublisherOrderDto.php +++ b/src/service/taobao/bin/top/domain/PublisherOrderDto.php @@ -6,280 +6,280 @@ */ class PublisherOrderDto { - - /** - * 推广位管理下的推广位名称对应的ID,同时也是pid=mm_1_2_3中的“3”这段数字 - **/ - public $adzone_id; - - /** - * 推广位管理下的自定义推广位名称 - **/ - public $adzone_name; - - /** - * 推广者赚取佣金后支付给阿里妈妈的技术服务费用的比率 - **/ - public $alimama_rate; - - /** - * 技术服务费=结算金额*收入比率*技术服务费率。推广者赚取佣金后支付给阿里妈妈的技术服务费用 - **/ - public $alimama_share_fee; - - /** - * 买家拍下付款的金额(不包含运费金额) - **/ - public $alipay_total_price; - - /** - * 口碑子订单号 - **/ - public $alsc_id; - - /** - * 口碑父订单号 - **/ - public $alsc_pid; - - /** - * 通过推广链接达到商品、店铺详情页的点击时间 - **/ - public $click_time; - - /** - * 预售时期,用户对预售商品支付的定金金额 - **/ - public $deposit_price; - - /** - * 产品类型 - **/ - public $flow_source; - - /** - * 订单结算的佣金比率+平台的补贴比率 - **/ - public $income_rate; - - /** - * 订单是否为激励池订单 1,表征是 0,表征否 - **/ - public $is_lx; - - /** - * 商品所属的一级类目名称 - **/ - public $item_category_name; - - /** - * 商品id - **/ - public $item_id; - - /** - * 商品图片 - **/ - public $item_img; - - /** - * 商品链接 - **/ - public $item_link; - - /** - * 商品数量 - **/ - public $item_num; - - /** - * 商品单价 - **/ - public $item_price; - - /** - * 商品标题 - **/ - public $item_title; - - /** - * 激励池对应的rid - **/ - public $lx_rid; - - /** - * 订单所属平台类型,包括天猫、淘宝、聚划算等 - **/ - public $order_type; - - /** - * 买家确认收货的付款金额(不包含运费金额) - **/ - public $pay_price; - - /** - * 推广者的会员id - **/ - public $pub_id; - - /** - * 结算预估收入=结算金额*提成。以买家确认收货的付款金额为基数,预估您可能获得的收入。因买家退款、您违规推广等原因,可能与您最终收入不一致。最终收入以月结后您实际收到的为准 - **/ - public $pub_share_fee; - - /** - * 付款预估收入=付款金额*提成。指买家付款金额为基数,预估您可能获得的收入。因买家退款等原因,可能与结算预估收入不一致 - **/ - public $pub_share_pre_fee; - - /** - * 从结算佣金中分得的收益比率 - **/ - public $pub_share_rate; - - /** - * 维权标签,0 含义为非维权 1 含义为维权订单 - **/ - public $refund_tag; - - /** - * 渠道关系id - **/ - public $relation_id; - - /** - * 掌柜旺旺 - **/ - public $seller_nick; - - /** - * 店铺名称 - **/ - public $seller_shop_title; - - /** - * 服务费信息 - **/ - public $service_fee_dto_list; - - /** - * 媒体管理下的ID,同时也是pid=mm_1_2_3中的“2”这段数字 - **/ - public $site_id; - - /** - * 媒体管理下的对应ID的自定义名称 - **/ - public $site_name; - - /** - * 会员运营id - **/ - public $special_id; - - /** - * 补贴金额=结算金额*补贴比率 - **/ - public $subsidy_fee; - - /** - * 平台给与的补贴比率,如天猫、淘宝、聚划算等 - **/ - public $subsidy_rate; - - /** - * 平台出资方,如天猫、淘宝、或聚划算等 - **/ - public $subsidy_type; - - /** - * 预售时期,用户对预售商品支付定金的付款时间 - **/ - public $tb_deposit_time; - - /** - * 订单在淘宝拍下付款的时间 - **/ - public $tb_paid_time; - - /** - * 成交平台 - **/ - public $terminal_type; - - /** - * 结算内容专项服务费:内容场景专项技术服务费,内容推广者在内容场景进行推广需要支付给阿里妈妈专项的技术服务费用。专项服务费=结算金额*专项服务费率。 - **/ - public $tk_commission_fee_for_media_platform; - - /** - * 预估内容专项服务费:内容场景专项技术服务费,内容推广者在内容场景进行推广需要支付给阿里妈妈专项的技术服务费用。专项服务费=付款金额*专项服务费率。 - **/ - public $tk_commission_pre_fee_for_media_platform; - - /** - * 内容专项服务费率:内容场景专项技术服务费率,内容推广者在内容场景进行推广需要按结算金额支付一定比例给阿里妈妈作为内容场景专项技术服务费,用于提供与内容平台实现产品技术对接等服务。 - **/ - public $tk_commission_rate_for_media_platform; - - /** - * 订单创建的时间,该时间同步淘宝,可能会略晚于买家在淘宝的订单创建时间 - **/ - public $tk_create_time; - - /** - * 预售时期,用户对预售商品支付定金的付款时间,可能略晚于在淘宝付定金时间 - **/ - public $tk_deposit_time; - - /** - * 订单确认收货后且商家完成佣金支付的时间 - **/ - public $tk_earning_time; - - /** - * 二方:佣金收益的第一归属者; 三方:从其他淘宝客佣金中进行分成的推广者 - **/ - public $tk_order_role; - - /** - * 订单付款的时间,该时间同步淘宝,可能会略晚于买家在淘宝的订单创建时间 - **/ - public $tk_paid_time; - - /** - * 已付款:指订单已付款,但还未确认收货 已收货:指订单已确认收货,但商家佣金未支付 已结算:指订单已确认收货,且商家佣金已支付成功 已失效:指订单关闭/订单佣金小于0.01元,订单关闭主要有:1)买家超时未付款; 2)买家付款前,买家/卖家取消了订单;3)订单付款后发起售中退款成功;3:订单结算,12:订单付款, 13:订单失效,14:订单成功 - **/ - public $tk_status; - - /** - * 提成=收入比率*分成比率。指实际获得收益的比率 - **/ - public $tk_total_rate; - - /** - * 佣金金额=结算金额*佣金比率 - **/ - public $total_commission_fee; - - /** - * 佣金比率 - **/ - public $total_commission_rate; - - /** - * 买家通过购物车购买的每个商品对应的订单编号,此订单编号并未在淘宝买家后台透出 - **/ - public $trade_id; - - /** - * 买家在淘宝后台显示的订单编号 - **/ - public $trade_parent_id; - - /** - * unid(本字段不对外开放) - **/ + + /** + * 推广位管理下的推广位名称对应的ID,同时也是pid=mm_1_2_3中的“3”这段数字 + **/ + public $adzone_id; + + /** + * 推广位管理下的自定义推广位名称 + **/ + public $adzone_name; + + /** + * 推广者赚取佣金后支付给阿里妈妈的技术服务费用的比率 + **/ + public $alimama_rate; + + /** + * 技术服务费=结算金额*收入比率*技术服务费率。推广者赚取佣金后支付给阿里妈妈的技术服务费用 + **/ + public $alimama_share_fee; + + /** + * 买家拍下付款的金额(不包含运费金额) + **/ + public $alipay_total_price; + + /** + * 口碑子订单号 + **/ + public $alsc_id; + + /** + * 口碑父订单号 + **/ + public $alsc_pid; + + /** + * 通过推广链接达到商品、店铺详情页的点击时间 + **/ + public $click_time; + + /** + * 预售时期,用户对预售商品支付的定金金额 + **/ + public $deposit_price; + + /** + * 产品类型 + **/ + public $flow_source; + + /** + * 订单结算的佣金比率+平台的补贴比率 + **/ + public $income_rate; + + /** + * 订单是否为激励池订单 1,表征是 0,表征否 + **/ + public $is_lx; + + /** + * 商品所属的一级类目名称 + **/ + public $item_category_name; + + /** + * 商品id + **/ + public $item_id; + + /** + * 商品图片 + **/ + public $item_img; + + /** + * 商品链接 + **/ + public $item_link; + + /** + * 商品数量 + **/ + public $item_num; + + /** + * 商品单价 + **/ + public $item_price; + + /** + * 商品标题 + **/ + public $item_title; + + /** + * 激励池对应的rid + **/ + public $lx_rid; + + /** + * 订单所属平台类型,包括天猫、淘宝、聚划算等 + **/ + public $order_type; + + /** + * 买家确认收货的付款金额(不包含运费金额) + **/ + public $pay_price; + + /** + * 推广者的会员id + **/ + public $pub_id; + + /** + * 结算预估收入=结算金额*提成。以买家确认收货的付款金额为基数,预估您可能获得的收入。因买家退款、您违规推广等原因,可能与您最终收入不一致。最终收入以月结后您实际收到的为准 + **/ + public $pub_share_fee; + + /** + * 付款预估收入=付款金额*提成。指买家付款金额为基数,预估您可能获得的收入。因买家退款等原因,可能与结算预估收入不一致 + **/ + public $pub_share_pre_fee; + + /** + * 从结算佣金中分得的收益比率 + **/ + public $pub_share_rate; + + /** + * 维权标签,0 含义为非维权 1 含义为维权订单 + **/ + public $refund_tag; + + /** + * 渠道关系id + **/ + public $relation_id; + + /** + * 掌柜旺旺 + **/ + public $seller_nick; + + /** + * 店铺名称 + **/ + public $seller_shop_title; + + /** + * 服务费信息 + **/ + public $service_fee_dto_list; + + /** + * 媒体管理下的ID,同时也是pid=mm_1_2_3中的“2”这段数字 + **/ + public $site_id; + + /** + * 媒体管理下的对应ID的自定义名称 + **/ + public $site_name; + + /** + * 会员运营id + **/ + public $special_id; + + /** + * 补贴金额=结算金额*补贴比率 + **/ + public $subsidy_fee; + + /** + * 平台给与的补贴比率,如天猫、淘宝、聚划算等 + **/ + public $subsidy_rate; + + /** + * 平台出资方,如天猫、淘宝、或聚划算等 + **/ + public $subsidy_type; + + /** + * 预售时期,用户对预售商品支付定金的付款时间 + **/ + public $tb_deposit_time; + + /** + * 订单在淘宝拍下付款的时间 + **/ + public $tb_paid_time; + + /** + * 成交平台 + **/ + public $terminal_type; + + /** + * 结算内容专项服务费:内容场景专项技术服务费,内容推广者在内容场景进行推广需要支付给阿里妈妈专项的技术服务费用。专项服务费=结算金额*专项服务费率。 + **/ + public $tk_commission_fee_for_media_platform; + + /** + * 预估内容专项服务费:内容场景专项技术服务费,内容推广者在内容场景进行推广需要支付给阿里妈妈专项的技术服务费用。专项服务费=付款金额*专项服务费率。 + **/ + public $tk_commission_pre_fee_for_media_platform; + + /** + * 内容专项服务费率:内容场景专项技术服务费率,内容推广者在内容场景进行推广需要按结算金额支付一定比例给阿里妈妈作为内容场景专项技术服务费,用于提供与内容平台实现产品技术对接等服务。 + **/ + public $tk_commission_rate_for_media_platform; + + /** + * 订单创建的时间,该时间同步淘宝,可能会略晚于买家在淘宝的订单创建时间 + **/ + public $tk_create_time; + + /** + * 预售时期,用户对预售商品支付定金的付款时间,可能略晚于在淘宝付定金时间 + **/ + public $tk_deposit_time; + + /** + * 订单确认收货后且商家完成佣金支付的时间 + **/ + public $tk_earning_time; + + /** + * 二方:佣金收益的第一归属者; 三方:从其他淘宝客佣金中进行分成的推广者 + **/ + public $tk_order_role; + + /** + * 订单付款的时间,该时间同步淘宝,可能会略晚于买家在淘宝的订单创建时间 + **/ + public $tk_paid_time; + + /** + * 已付款:指订单已付款,但还未确认收货 已收货:指订单已确认收货,但商家佣金未支付 已结算:指订单已确认收货,且商家佣金已支付成功 已失效:指订单关闭/订单佣金小于0.01元,订单关闭主要有:1)买家超时未付款; 2)买家付款前,买家/卖家取消了订单;3)订单付款后发起售中退款成功;3:订单结算,12:订单付款, 13:订单失效,14:订单成功 + **/ + public $tk_status; + + /** + * 提成=收入比率*分成比率。指实际获得收益的比率 + **/ + public $tk_total_rate; + + /** + * 佣金金额=结算金额*佣金比率 + **/ + public $total_commission_fee; + + /** + * 佣金比率 + **/ + public $total_commission_rate; + + /** + * 买家通过购物车购买的每个商品对应的订单编号,此订单编号并未在淘宝买家后台透出 + **/ + public $trade_id; + + /** + * 买家在淘宝后台显示的订单编号 + **/ + public $trade_parent_id; + + /** + * unid(本字段不对外开放) + **/ public $unid; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/RecommendItemList.php b/src/service/taobao/bin/top/domain/RecommendItemList.php index 3338a68..32de96c 100644 --- a/src/service/taobao/bin/top/domain/RecommendItemList.php +++ b/src/service/taobao/bin/top/domain/RecommendItemList.php @@ -6,15 +6,15 @@ */ class RecommendItemList { - - /** - * 权益推荐商品id - **/ - public $item_id; - - /** - * 商品链接 - **/ + + /** + * 权益推荐商品id + **/ + public $item_id; + + /** + * 商品链接 + **/ public $url; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/RegisterInfoDto.php b/src/service/taobao/bin/top/domain/RegisterInfoDto.php index cb4b874..77e60b0 100644 --- a/src/service/taobao/bin/top/domain/RegisterInfoDto.php +++ b/src/service/taobao/bin/top/domain/RegisterInfoDto.php @@ -6,45 +6,45 @@ */ class RegisterInfoDto { - - /** - * 渠道独有 -经营类型 - **/ - public $career; - - /** - * 渠道独有 -对应的证件证件类型编号 - **/ - public $certify_number; - - /** - * 渠道独有 -详细地址 - **/ - public $detail_address; - - /** - * 渠道独有 -地区 - **/ - public $location; - - /** - * 渠道独有 -手机号码 - **/ - public $phone_number; - - /** - * 渠道独有 -证件类型 - **/ - public $shop_certify_type; - - /** - * 渠道独有 -店铺名称 - **/ - public $shop_name; - - /** - * 渠道独有 -店铺类型 - **/ + + /** + * 渠道独有 -经营类型 + **/ + public $career; + + /** + * 渠道独有 -对应的证件证件类型编号 + **/ + public $certify_number; + + /** + * 渠道独有 -详细地址 + **/ + public $detail_address; + + /** + * 渠道独有 -地区 + **/ + public $location; + + /** + * 渠道独有 -手机号码 + **/ + public $phone_number; + + /** + * 渠道独有 -证件类型 + **/ + public $shop_certify_type; + + /** + * 渠道独有 -店铺名称 + **/ + public $shop_name; + + /** + * 渠道独有 -店铺类型 + **/ public $shop_type; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/Result.php b/src/service/taobao/bin/top/domain/Result.php index b8c10d8..3f481f2 100644 --- a/src/service/taobao/bin/top/domain/Result.php +++ b/src/service/taobao/bin/top/domain/Result.php @@ -6,120 +6,120 @@ */ class Result { - - /** - * (口碑订单)口碑子订单号 - **/ - public $alsc_id; - - /** - * (口碑订单)口碑父订单号 - **/ - public $alsc_pid; - - /** - * 订单结算时间 - **/ - public $earning_time; - - /** - * 维权金额 - **/ - public $refund_fee; - - /** - * 维权创建(淘客结算回执) 4,维权成功(淘客结算回执) 2,维权失败(淘客结算回执) 3,发生多次维权,待处理 11,从淘客处补扣(钱已结给淘客) 等待扣款 12,从淘客处补扣(钱已结给淘客) 扣款成功 13,从卖家处补扣(钱已结给卖家) 等待扣款 14,从卖家处补扣(钱已结给卖家) 扣款成功 15 - **/ - public $refund_status; - - /** - * 1 表示2方,2表示3方 - **/ - public $refund_type; - - /** - * 渠道关系id - **/ - public $relation_id; - - /** - * 会员关系id - **/ - public $special_id; - - /** - * 宝贝标题 - **/ - public $tb_auction_title; - - /** - * 订单创建时间 - **/ - public $tb_trade_create_time; - - /** - * 结算金额 - **/ - public $tb_trade_finish_price; - - /** - * 淘宝子订单编号 - **/ - public $tb_trade_id; - - /** - * 淘宝订单编号 - **/ - public $tb_trade_parent_id; - - /** - * 第三方推广者memberid - **/ - public $tk3rd_pub_id; - - /** - * 应返商家金额(三方) - **/ - public $tk3rd_pub_show_return_fee; - - /** - * 第三方应该返还的佣金 - **/ - public $tk_commission_fee_refund3rd_pub; - - /** - * 第二方应该返还的佣金(不包括技术服务费) - **/ - public $tk_commission_fee_refund_pub; - - /** - * 推广者memberid - **/ - public $tk_pub_id; - - /** - * 应返商家金额(二方) - **/ - public $tk_pub_show_return_fee; - - /** - * 维权完成时间 - **/ - public $tk_refund_suit_time; - - /** - * 维权创建时间 - **/ - public $tk_refund_time; - - /** - * 第三方应该返还的补贴 - **/ - public $tk_subsidy_fee_refund3rd_pub; - - /** - * 第二方应该返还的补贴(不包括技术服务费) - **/ + + /** + * (口碑订单)口碑子订单号 + **/ + public $alsc_id; + + /** + * (口碑订单)口碑父订单号 + **/ + public $alsc_pid; + + /** + * 订单结算时间 + **/ + public $earning_time; + + /** + * 维权金额 + **/ + public $refund_fee; + + /** + * 维权创建(淘客结算回执) 4,维权成功(淘客结算回执) 2,维权失败(淘客结算回执) 3,发生多次维权,待处理 11,从淘客处补扣(钱已结给淘客) 等待扣款 12,从淘客处补扣(钱已结给淘客) 扣款成功 13,从卖家处补扣(钱已结给卖家) 等待扣款 14,从卖家处补扣(钱已结给卖家) 扣款成功 15 + **/ + public $refund_status; + + /** + * 1 表示2方,2表示3方 + **/ + public $refund_type; + + /** + * 渠道关系id + **/ + public $relation_id; + + /** + * 会员关系id + **/ + public $special_id; + + /** + * 宝贝标题 + **/ + public $tb_auction_title; + + /** + * 订单创建时间 + **/ + public $tb_trade_create_time; + + /** + * 结算金额 + **/ + public $tb_trade_finish_price; + + /** + * 淘宝子订单编号 + **/ + public $tb_trade_id; + + /** + * 淘宝订单编号 + **/ + public $tb_trade_parent_id; + + /** + * 第三方推广者memberid + **/ + public $tk3rd_pub_id; + + /** + * 应返商家金额(三方) + **/ + public $tk3rd_pub_show_return_fee; + + /** + * 第三方应该返还的佣金 + **/ + public $tk_commission_fee_refund3rd_pub; + + /** + * 第二方应该返还的佣金(不包括技术服务费) + **/ + public $tk_commission_fee_refund_pub; + + /** + * 推广者memberid + **/ + public $tk_pub_id; + + /** + * 应返商家金额(二方) + **/ + public $tk_pub_show_return_fee; + + /** + * 维权完成时间 + **/ + public $tk_refund_suit_time; + + /** + * 维权创建时间 + **/ + public $tk_refund_time; + + /** + * 第三方应该返还的补贴 + **/ + public $tk_subsidy_fee_refund3rd_pub; + + /** + * 第二方应该返还的补贴(不包括技术服务费) + **/ public $tk_subsidy_fee_refund_pub; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/Results.php b/src/service/taobao/bin/top/domain/Results.php index 1f31bfe..5aad291 100644 --- a/src/service/taobao/bin/top/domain/Results.php +++ b/src/service/taobao/bin/top/domain/Results.php @@ -6,10 +6,10 @@ */ class Results { - - /** - * data - **/ + + /** + * data + **/ public $data; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/RightsInstanceCreateResult.php b/src/service/taobao/bin/top/domain/RightsInstanceCreateResult.php index 7997a7a..6fcfe6c 100644 --- a/src/service/taobao/bin/top/domain/RightsInstanceCreateResult.php +++ b/src/service/taobao/bin/top/domain/RightsInstanceCreateResult.php @@ -6,25 +6,25 @@ */ class RightsInstanceCreateResult { - - /** - * 创建完成后资金账户可用资金,单位元,保留2位小数 - **/ - public $available_fee; - - /** - * 淘礼金Id - **/ - public $rights_id; - - /** - * 淘礼金领取Url - **/ - public $send_url; - - /** - * 投放code【百川商品详情页业务专用】 - **/ + + /** + * 创建完成后资金账户可用资金,单位元,保留2位小数 + **/ + public $available_fee; + + /** + * 淘礼金Id + **/ + public $rights_id; + + /** + * 淘礼金领取Url + **/ + public $send_url; + + /** + * 投放code【百川商品详情页业务专用】 + **/ public $vegas_code; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/RightsSendRelationRptDto.php b/src/service/taobao/bin/top/domain/RightsSendRelationRptDto.php index 849f0e5..fcb7a7e 100644 --- a/src/service/taobao/bin/top/domain/RightsSendRelationRptDto.php +++ b/src/service/taobao/bin/top/domain/RightsSendRelationRptDto.php @@ -6,20 +6,20 @@ */ class RightsSendRelationRptDto { - - /** - * 日期 - **/ - public $biz_date; - - /** - * 红包发放数量 - **/ - public $fund_num; - - /** - * 渠道关系id - **/ + + /** + * 日期 + **/ + public $biz_date; + + /** + * 红包发放数量 + **/ + public $fund_num; + + /** + * 渠道关系id + **/ public $relation_id; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/RightsSendRptDTO.php b/src/service/taobao/bin/top/domain/RightsSendRptDTO.php index 409ffa3..d40ede9 100644 --- a/src/service/taobao/bin/top/domain/RightsSendRptDTO.php +++ b/src/service/taobao/bin/top/domain/RightsSendRptDTO.php @@ -6,10 +6,10 @@ */ class RightsSendRptDTO { - - /** - * 渠道关系id的发放数据 - **/ + + /** + * 渠道关系id的发放数据 + **/ public $relation_rpt_list; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/RpcResult.php b/src/service/taobao/bin/top/domain/RpcResult.php index f9fbb93..33ff647 100644 --- a/src/service/taobao/bin/top/domain/RpcResult.php +++ b/src/service/taobao/bin/top/domain/RpcResult.php @@ -6,30 +6,30 @@ */ class RpcResult { - - /** - * 业务错误码 101, 102,103 - **/ - public $biz_error_code; - - /** - * 业务错误信息 - **/ - public $biz_error_desc; - - /** - * 真正的业务数据结构 - **/ - public $data; - - /** - * 接口返回值信息,跟rpc架构保持一致 - **/ - public $result_code; - - /** - * 返回信息 - **/ + + /** + * 业务错误码 101, 102,103 + **/ + public $biz_error_code; + + /** + * 业务错误信息 + **/ + public $biz_error_desc; + + /** + * 真正的业务数据结构 + **/ + public $data; + + /** + * 接口返回值信息,跟rpc架构保持一致 + **/ + public $result_code; + + /** + * 返回信息 + **/ public $result_msg; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/ServiceFeeDto.php b/src/service/taobao/bin/top/domain/ServiceFeeDto.php index 5e9f2d3..5af4400 100644 --- a/src/service/taobao/bin/top/domain/ServiceFeeDto.php +++ b/src/service/taobao/bin/top/domain/ServiceFeeDto.php @@ -6,25 +6,25 @@ */ class ServiceFeeDto { - - /** - * 结算专项服务费 - **/ - public $share_fee; - - /** - * 预估专项服务费 - **/ - public $share_pre_fee; - - /** - * 专项服务费率 - **/ - public $share_relative_rate; - - /** - * 专项服务费来源,122-渠道 - **/ + + /** + * 结算专项服务费 + **/ + public $share_fee; + + /** + * 预估专项服务费 + **/ + public $share_pre_fee; + + /** + * 专项服务费率 + **/ + public $share_relative_rate; + + /** + * 专项服务费来源,122-渠道 + **/ public $tk_share_role_type; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/TbkSpread.php b/src/service/taobao/bin/top/domain/TbkSpread.php index 162ae17..4e17c7e 100644 --- a/src/service/taobao/bin/top/domain/TbkSpread.php +++ b/src/service/taobao/bin/top/domain/TbkSpread.php @@ -6,15 +6,15 @@ */ class TbkSpread { - - /** - * 传播形式, 目前只支持短链接 - **/ - public $content; - - /** - * 调用错误信息;由于是批量接口,请重点关注每条请求返回的结果,如果非OK,则说明该结果对应的content不正常,请酌情处理; - **/ + + /** + * 传播形式, 目前只支持短链接 + **/ + public $content; + + /** + * 调用错误信息;由于是批量接口,请重点关注每条请求返回的结果,如果非OK,则说明该结果对应的content不正常,请酌情处理; + **/ public $err_msg; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/TbkSpreadRequest.php b/src/service/taobao/bin/top/domain/TbkSpreadRequest.php index 93911a0..edda2fb 100644 --- a/src/service/taobao/bin/top/domain/TbkSpreadRequest.php +++ b/src/service/taobao/bin/top/domain/TbkSpreadRequest.php @@ -6,10 +6,10 @@ */ class TbkSpreadRequest { - - /** - * 原始url, 只支持uland.taobao.com,s.click.taobao.com, ai.taobao.com,temai.taobao.com的域名转换,否则判错 - **/ + + /** + * 原始url, 只支持uland.taobao.com,s.click.taobao.com, ai.taobao.com,temai.taobao.com的域名转换,否则判错 + **/ public $url; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/TljInstanceReportDto.php b/src/service/taobao/bin/top/domain/TljInstanceReportDto.php index 7bba0dd..bf51654 100644 --- a/src/service/taobao/bin/top/domain/TljInstanceReportDto.php +++ b/src/service/taobao/bin/top/domain/TljInstanceReportDto.php @@ -6,65 +6,65 @@ */ class TljInstanceReportDto { - - /** - * 引导成交金额 - **/ - public $alipay_amount; - - /** - * 退款红包金额 - **/ - public $fp_refund_amount; - - /** - * 退款红包个数 - **/ - public $fp_refund_num; - - /** - * 引导预估佣金金额 - **/ - public $pre_commission_amount; - - /** - * 失效回退金额 - **/ - public $refund_amount; - - /** - * 失效回退红包个数 - **/ - public $refund_num; - - /** - * 解冻金额 - **/ - public $unfreeze_amount; - - /** - * 解冻红包个数 - **/ - public $unfreeze_num; - - /** - * 红包核销金额 - **/ - public $use_amount; - - /** - * 红包核销个数 - **/ - public $use_num; - - /** - * 红包领取金额 - **/ - public $win_amount; - - /** - * 红包领取个数 - **/ + + /** + * 引导成交金额 + **/ + public $alipay_amount; + + /** + * 退款红包金额 + **/ + public $fp_refund_amount; + + /** + * 退款红包个数 + **/ + public $fp_refund_num; + + /** + * 引导预估佣金金额 + **/ + public $pre_commission_amount; + + /** + * 失效回退金额 + **/ + public $refund_amount; + + /** + * 失效回退红包个数 + **/ + public $refund_num; + + /** + * 解冻金额 + **/ + public $unfreeze_amount; + + /** + * 解冻红包个数 + **/ + public $unfreeze_num; + + /** + * 红包核销金额 + **/ + public $use_amount; + + /** + * 红包核销个数 + **/ + public $use_num; + + /** + * 红包领取金额 + **/ + public $win_amount; + + /** + * 红包领取个数 + **/ public $win_num; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/TopApiAfOrderOption.php b/src/service/taobao/bin/top/domain/TopApiAfOrderOption.php index 8b93ebd..feffc0f 100644 --- a/src/service/taobao/bin/top/domain/TopApiAfOrderOption.php +++ b/src/service/taobao/bin/top/domain/TopApiAfOrderOption.php @@ -6,65 +6,65 @@ */ class TopApiAfOrderOption { - - /** - * pid中的第三段,adzoneId - **/ - public $adzone_id; - - /** - * pageNo - **/ - public $page_no; - - /** - * pagesize - **/ - public $page_size; - - /** - * 此参数不再使用,请勿入参 - **/ - public $punish_status; - - /** - * 渠道关系id - **/ - public $relation_id; - - /** - * pid中的第二段,siteId - **/ - public $site_id; - - /** - * 查询时间跨度,不超过30天,单位是天 - **/ - public $span; - - /** - * 此参数不再使用,请勿入参 - **/ - public $special_id; - - /** - * 查询开始时间,以taoke订单创建时间开始 - **/ - public $start_time; - - /** - * 子订单号 - **/ - public $tb_trade_id; - - /** - * 此参数不再使用,请勿入参 - **/ - public $tb_trade_parent_id; - - /** - * 此参数不再使用,请勿入参 - **/ + + /** + * pid中的第三段,adzoneId + **/ + public $adzone_id; + + /** + * pageNo + **/ + public $page_no; + + /** + * pagesize + **/ + public $page_size; + + /** + * 此参数不再使用,请勿入参 + **/ + public $punish_status; + + /** + * 渠道关系id + **/ + public $relation_id; + + /** + * pid中的第二段,siteId + **/ + public $site_id; + + /** + * 查询时间跨度,不超过30天,单位是天 + **/ + public $span; + + /** + * 此参数不再使用,请勿入参 + **/ + public $special_id; + + /** + * 查询开始时间,以taoke订单创建时间开始 + **/ + public $start_time; + + /** + * 子订单号 + **/ + public $tb_trade_id; + + /** + * 此参数不再使用,请勿入参 + **/ + public $tb_trade_parent_id; + + /** + * 此参数不再使用,请勿入参 + **/ public $violation_type; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/TopApiRefundRptOption.php b/src/service/taobao/bin/top/domain/TopApiRefundRptOption.php index 0f98cfd..cb0e457 100644 --- a/src/service/taobao/bin/top/domain/TopApiRefundRptOption.php +++ b/src/service/taobao/bin/top/domain/TopApiRefundRptOption.php @@ -6,35 +6,35 @@ */ class TopApiRefundRptOption { - - /** - * 1代表渠道关系id,2代表会员关系id - **/ - public $biz_type; - - /** - * pagenumber - **/ - public $page_no; - - /** - * pagesize - **/ - public $page_size; - - /** - * 1 表示2方,2表示3方,0表示不限 - **/ - public $refund_type; - - /** - * 1-维权发起时间,2-订单结算时间(正向订单),3-维权完成时间,4-订单创建时间 - **/ - public $search_type; - - /** - * 开始时间 - **/ + + /** + * 1代表渠道关系id,2代表会员关系id + **/ + public $biz_type; + + /** + * pagenumber + **/ + public $page_no; + + /** + * pagesize + **/ + public $page_size; + + /** + * 1 表示2方,2表示3方,0表示不限 + **/ + public $refund_type; + + /** + * 1-维权发起时间,2-订单结算时间(正向订单),3-维权完成时间,4-订单创建时间 + **/ + public $search_type; + + /** + * 开始时间 + **/ public $start_time; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/TopDownloadRecordDo.php b/src/service/taobao/bin/top/domain/TopDownloadRecordDo.php index fc61622..86ca9bd 100644 --- a/src/service/taobao/bin/top/domain/TopDownloadRecordDo.php +++ b/src/service/taobao/bin/top/domain/TopDownloadRecordDo.php @@ -6,20 +6,20 @@ */ class TopDownloadRecordDo { - - /** - * 文件创建时间 - **/ - public $created; - - /** - * 下载链接状态。1:未下载。2:已下载 - **/ - public $status; - - /** - * 下载链接 - **/ + + /** + * 文件创建时间 + **/ + public $created; + + /** + * 下载链接状态。1:未下载。2:已下载 + **/ + public $status; + + /** + * 下载链接 + **/ public $url; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/TopItemQuery.php b/src/service/taobao/bin/top/domain/TopItemQuery.php index 6dc0307..6d6d7b6 100644 --- a/src/service/taobao/bin/top/domain/TopItemQuery.php +++ b/src/service/taobao/bin/top/domain/TopItemQuery.php @@ -6,40 +6,40 @@ */ class TopItemQuery { - - /** - * 页码,必传 - **/ - public $current_page; - - /** - * 一页大小,必传 - **/ - public $page_size; - - /** - * 媒体pid,必传 - **/ - public $pid; - - /** - * 是否包邮,可不传 - **/ - public $postage; - - /** - * 状态,预热:1,正在进行中:2,可不传 - **/ - public $status; - - /** - * 淘宝类目id,可不传 - **/ - public $taobao_category_id; - - /** - * 搜索关键词,可不传 - **/ + + /** + * 页码,必传 + **/ + public $current_page; + + /** + * 一页大小,必传 + **/ + public $page_size; + + /** + * 媒体pid,必传 + **/ + public $pid; + + /** + * 是否包邮,可不传 + **/ + public $postage; + + /** + * 状态,预热:1,正在进行中:2,可不传 + **/ + public $status; + + /** + * 淘宝类目id,可不传 + **/ + public $taobao_category_id; + + /** + * 搜索关键词,可不传 + **/ public $word; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/Trackparams.php b/src/service/taobao/bin/top/domain/Trackparams.php index f67e6d8..97d01e8 100644 --- a/src/service/taobao/bin/top/domain/Trackparams.php +++ b/src/service/taobao/bin/top/domain/Trackparams.php @@ -6,10 +6,10 @@ */ class Trackparams { - - /** - * empty - **/ + + /** + * empty + **/ public $empty; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/WordMapData.php b/src/service/taobao/bin/top/domain/WordMapData.php index f3cb94e..a5840ec 100644 --- a/src/service/taobao/bin/top/domain/WordMapData.php +++ b/src/service/taobao/bin/top/domain/WordMapData.php @@ -6,15 +6,15 @@ */ class WordMapData { - - /** - * 链接-商品相关关联词落地页地址 - **/ - public $url; - - /** - * 商品相关的关联词 - **/ + + /** + * 链接-商品相关关联词落地页地址 + **/ + public $url; + + /** + * 商品相关的关联词 + **/ public $word; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/domain/Youjiacouponinfo.php b/src/service/taobao/bin/top/domain/Youjiacouponinfo.php index a02fc84..22b91c1 100644 --- a/src/service/taobao/bin/top/domain/Youjiacouponinfo.php +++ b/src/service/taobao/bin/top/domain/Youjiacouponinfo.php @@ -6,15 +6,15 @@ */ class Youjiacouponinfo { - - /** - * 有价券商品id - **/ - public $item_id; - - /** - * 商品链接 - **/ + + /** + * 有价券商品id + **/ + public $item_id; + + /** + * 商品链接 + **/ public $url; } ?> \ No newline at end of file diff --git a/src/service/taobao/bin/top/request/FilesGetRequest.php b/src/service/taobao/bin/top/request/FilesGetRequest.php index b938145..eacade8 100644 --- a/src/service/taobao/bin/top/request/FilesGetRequest.php +++ b/src/service/taobao/bin/top/request/FilesGetRequest.php @@ -6,55 +6,55 @@ * @since 1.0, 2018.07.25 */ class FilesGetRequest -{ - /** - * 搜索结束时间 - **/ - private $endDate; - - /** - * 搜索开始时间 - **/ - private $startDate; - - /** - * 下载链接状态。1:未下载。2:已下载 - **/ +{ + /** + * 搜索结束时间 + **/ + private $endDate; + + /** + * 搜索开始时间 + **/ + private $startDate; + + /** + * 下载链接状态。1:未下载。2:已下载 + **/ private $status; private $apiParas = array(); - + public function setEndDate($endDate) - { - $this->endDate = $endDate; - $this->apiParas["end_date"] = $endDate; + { + $this->endDate = $endDate; + $this->apiParas["end_date"] = $endDate; } - + public function getEndDate() - { - return $this->endDate; + { + return $this->endDate; } - + public function setStartDate($startDate) - { - $this->startDate = $startDate; - $this->apiParas["start_date"] = $startDate; + { + $this->startDate = $startDate; + $this->apiParas["start_date"] = $startDate; } - + public function getStartDate() - { - return $this->startDate; + { + return $this->startDate; } - + public function setStatus($status) - { - $this->status = $status; - $this->apiParas["status"] = $status; + { + $this->status = $status; + $this->apiParas["status"] = $status; } - + public function getStatus() - { - return $this->status; + { + return $this->status; } public function getApiMethodName() @@ -69,8 +69,8 @@ class FilesGetRequest public function check() { - - RequestCheckUtil::checkNotNull($this->endDate,"endDate"); + + RequestCheckUtil::checkNotNull($this->endDate,"endDate"); RequestCheckUtil::checkNotNull($this->startDate,"startDate"); } diff --git a/src/service/taobao/bin/top/request/JuItemsSearchRequest.php b/src/service/taobao/bin/top/request/JuItemsSearchRequest.php index b0b49c3..37edb2f 100644 --- a/src/service/taobao/bin/top/request/JuItemsSearchRequest.php +++ b/src/service/taobao/bin/top/request/JuItemsSearchRequest.php @@ -6,23 +6,23 @@ * @since 1.0, 2018.07.25 */ class JuItemsSearchRequest -{ - /** - * query - **/ +{ + /** + * query + **/ private $paramTopItemQuery; private $apiParas = array(); - + public function setParamTopItemQuery($paramTopItemQuery) - { - $this->paramTopItemQuery = $paramTopItemQuery; - $this->apiParas["param_top_item_query"] = $paramTopItemQuery; + { + $this->paramTopItemQuery = $paramTopItemQuery; + $this->apiParas["param_top_item_query"] = $paramTopItemQuery; } - + public function getParamTopItemQuery() - { - return $this->paramTopItemQuery; + { + return $this->paramTopItemQuery; } public function getApiMethodName() diff --git a/src/service/taobao/bin/top/request/KfcKeywordSearchRequest.php b/src/service/taobao/bin/top/request/KfcKeywordSearchRequest.php index 0f47aef..842c557 100644 --- a/src/service/taobao/bin/top/request/KfcKeywordSearchRequest.php +++ b/src/service/taobao/bin/top/request/KfcKeywordSearchRequest.php @@ -6,60 +6,60 @@ * @since 1.0, 2018.07.26 */ class KfcKeywordSearchRequest -{ - /** - * 应用点,分为一级应用点、二级应用点。其中一级应用点通常是指某一个系统或产品,比如淘宝的商品应用(taobao_auction);二级应用点,是指一级应用点下的具体的分类,比如商品标题(title)、商品描述(content)。不同的二级应用可以设置不同关键词。 - -这里的apply参数是由一级应用点与二级应用点合起来的字符(一级应用点+"."+二级应用点),如taobao_auction.title。 - - -通常apply参数是不需要传递的。如有特殊需求(比如特殊的过滤需求,需要自己维护一套自己词库),需传递此参数。 - **/ - private $apply; - - /** - * 需要过滤的文本信息 - **/ - private $content; - - /** - * 发布信息的淘宝会员名,可以不传 - **/ +{ + /** + * 应用点,分为一级应用点、二级应用点。其中一级应用点通常是指某一个系统或产品,比如淘宝的商品应用(taobao_auction);二级应用点,是指一级应用点下的具体的分类,比如商品标题(title)、商品描述(content)。不同的二级应用可以设置不同关键词。 + +这里的apply参数是由一级应用点与二级应用点合起来的字符(一级应用点+"."+二级应用点),如taobao_auction.title。 + + +通常apply参数是不需要传递的。如有特殊需求(比如特殊的过滤需求,需要自己维护一套自己词库),需传递此参数。 + **/ + private $apply; + + /** + * 需要过滤的文本信息 + **/ + private $content; + + /** + * 发布信息的淘宝会员名,可以不传 + **/ private $nick; private $apiParas = array(); - + public function setApply($apply) - { - $this->apply = $apply; - $this->apiParas["apply"] = $apply; + { + $this->apply = $apply; + $this->apiParas["apply"] = $apply; } - + public function getApply() - { - return $this->apply; + { + return $this->apply; } - + public function setContent($content) - { - $this->content = $content; - $this->apiParas["content"] = $content; + { + $this->content = $content; + $this->apiParas["content"] = $content; } - + public function getContent() - { - return $this->content; + { + return $this->content; } - + public function setNick($nick) - { - $this->nick = $nick; - $this->apiParas["nick"] = $nick; + { + $this->nick = $nick; + $this->apiParas["nick"] = $nick; } - + public function getNick() - { - return $this->nick; + { + return $this->nick; } public function getApiMethodName() @@ -74,7 +74,7 @@ class KfcKeywordSearchRequest public function check() { - + RequestCheckUtil::checkNotNull($this->content,"content"); } diff --git a/src/service/taobao/bin/top/request/OpenuidChangeRequest.php b/src/service/taobao/bin/top/request/OpenuidChangeRequest.php index dd20ec8..5eb2ca7 100644 --- a/src/service/taobao/bin/top/request/OpenuidChangeRequest.php +++ b/src/service/taobao/bin/top/request/OpenuidChangeRequest.php @@ -6,39 +6,39 @@ * @since 1.0, 2018.10.26 */ class OpenuidChangeRequest -{ - /** - * openUid - **/ - private $openUid; - - /** - * 转换到的appkey - **/ +{ + /** + * openUid + **/ + private $openUid; + + /** + * 转换到的appkey + **/ private $targetAppKey; private $apiParas = array(); - + public function setOpenUid($openUid) - { - $this->openUid = $openUid; - $this->apiParas["open_uid"] = $openUid; + { + $this->openUid = $openUid; + $this->apiParas["open_uid"] = $openUid; } - + public function getOpenUid() - { - return $this->openUid; + { + return $this->openUid; } - + public function setTargetAppKey($targetAppKey) - { - $this->targetAppKey = $targetAppKey; - $this->apiParas["target_app_key"] = $targetAppKey; + { + $this->targetAppKey = $targetAppKey; + $this->apiParas["target_app_key"] = $targetAppKey; } - + public function getTargetAppKey() - { - return $this->targetAppKey; + { + return $this->targetAppKey; } public function getApiMethodName() @@ -53,8 +53,8 @@ class OpenuidChangeRequest public function check() { - - RequestCheckUtil::checkNotNull($this->openUid,"openUid"); + + RequestCheckUtil::checkNotNull($this->openUid,"openUid"); RequestCheckUtil::checkNotNull($this->targetAppKey,"targetAppKey"); } diff --git a/src/service/taobao/bin/top/request/OpenuidGetBymixnickRequest.php b/src/service/taobao/bin/top/request/OpenuidGetBymixnickRequest.php index eb5e694..a9a2e63 100644 --- a/src/service/taobao/bin/top/request/OpenuidGetBymixnickRequest.php +++ b/src/service/taobao/bin/top/request/OpenuidGetBymixnickRequest.php @@ -6,23 +6,23 @@ * @since 1.0, 2019.10.21 */ class OpenuidGetBymixnickRequest -{ - /** - * 无线类应用获取到的混淆的nick - **/ +{ + /** + * 无线类应用获取到的混淆的nick + **/ private $mixNick; private $apiParas = array(); - + public function setMixNick($mixNick) - { - $this->mixNick = $mixNick; - $this->apiParas["mix_nick"] = $mixNick; + { + $this->mixNick = $mixNick; + $this->apiParas["mix_nick"] = $mixNick; } - + public function getMixNick() - { - return $this->mixNick; + { + return $this->mixNick; } public function getApiMethodName() @@ -37,7 +37,7 @@ class OpenuidGetBymixnickRequest public function check() { - + RequestCheckUtil::checkNotNull($this->mixNick,"mixNick"); } diff --git a/src/service/taobao/bin/top/request/OpenuidGetBytradeRequest.php b/src/service/taobao/bin/top/request/OpenuidGetBytradeRequest.php index 49d4019..88399fa 100644 --- a/src/service/taobao/bin/top/request/OpenuidGetBytradeRequest.php +++ b/src/service/taobao/bin/top/request/OpenuidGetBytradeRequest.php @@ -6,23 +6,23 @@ * @since 1.0, 2018.10.17 */ class OpenuidGetBytradeRequest -{ - /** - * 订单ID - **/ +{ + /** + * 订单ID + **/ private $tid; private $apiParas = array(); - + public function setTid($tid) - { - $this->tid = $tid; - $this->apiParas["tid"] = $tid; + { + $this->tid = $tid; + $this->apiParas["tid"] = $tid; } - + public function getTid() - { - return $this->tid; + { + return $this->tid; } public function getApiMethodName() @@ -37,7 +37,7 @@ class OpenuidGetBytradeRequest public function check() { - + RequestCheckUtil::checkNotNull($this->tid,"tid"); } diff --git a/src/service/taobao/bin/top/request/TbkActivityInfoGetRequest.php b/src/service/taobao/bin/top/request/TbkActivityInfoGetRequest.php index 80dd617..f32d553 100644 --- a/src/service/taobao/bin/top/request/TbkActivityInfoGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkActivityInfoGetRequest.php @@ -6,87 +6,87 @@ * @since 1.0, 2020.10.19 */ class TbkActivityInfoGetRequest -{ - /** - * 官方活动会场ID,从淘宝客后台“我要推广-活动推广”中获取 - **/ - private $activityMaterialId; - - /** - * mm_xxx_xxx_xxx的第三位 - **/ - private $adzoneId; - - /** - * 渠道关系id - **/ - private $relationId; - - /** - * mm_xxx_xxx_xxx 仅三方分成场景使用 - **/ - private $subPid; - - /** - * 自定义输入串,英文和数字组成,长度不能大于12个字符,区分不同的推广渠道 - **/ +{ + /** + * 官方活动会场ID,从淘宝客后台“我要推广-活动推广”中获取 + **/ + private $activityMaterialId; + + /** + * mm_xxx_xxx_xxx的第三位 + **/ + private $adzoneId; + + /** + * 渠道关系id + **/ + private $relationId; + + /** + * mm_xxx_xxx_xxx 仅三方分成场景使用 + **/ + private $subPid; + + /** + * 自定义输入串,英文和数字组成,长度不能大于12个字符,区分不同的推广渠道 + **/ private $unionId; private $apiParas = array(); - + public function setActivityMaterialId($activityMaterialId) - { - $this->activityMaterialId = $activityMaterialId; - $this->apiParas["activity_material_id"] = $activityMaterialId; + { + $this->activityMaterialId = $activityMaterialId; + $this->apiParas["activity_material_id"] = $activityMaterialId; } - + public function getActivityMaterialId() - { - return $this->activityMaterialId; + { + return $this->activityMaterialId; } - + public function setAdzoneId($adzoneId) - { - $this->adzoneId = $adzoneId; - $this->apiParas["adzone_id"] = $adzoneId; + { + $this->adzoneId = $adzoneId; + $this->apiParas["adzone_id"] = $adzoneId; } - + public function getAdzoneId() - { - return $this->adzoneId; + { + return $this->adzoneId; } - + public function setRelationId($relationId) - { - $this->relationId = $relationId; - $this->apiParas["relation_id"] = $relationId; + { + $this->relationId = $relationId; + $this->apiParas["relation_id"] = $relationId; } - + public function getRelationId() - { - return $this->relationId; + { + return $this->relationId; } - + public function setSubPid($subPid) - { - $this->subPid = $subPid; - $this->apiParas["sub_pid"] = $subPid; + { + $this->subPid = $subPid; + $this->apiParas["sub_pid"] = $subPid; } - + public function getSubPid() - { - return $this->subPid; + { + return $this->subPid; } - + public function setUnionId($unionId) - { - $this->unionId = $unionId; - $this->apiParas["union_id"] = $unionId; + { + $this->unionId = $unionId; + $this->apiParas["union_id"] = $unionId; } - + public function getUnionId() - { - return $this->unionId; + { + return $this->unionId; } public function getApiMethodName() @@ -101,8 +101,8 @@ class TbkActivityInfoGetRequest public function check() { - - RequestCheckUtil::checkNotNull($this->activityMaterialId,"activityMaterialId"); + + RequestCheckUtil::checkNotNull($this->activityMaterialId,"activityMaterialId"); RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); } diff --git a/src/service/taobao/bin/top/request/TbkCouponGetRequest.php b/src/service/taobao/bin/top/request/TbkCouponGetRequest.php index e452eb6..6ee7a9f 100644 --- a/src/service/taobao/bin/top/request/TbkCouponGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkCouponGetRequest.php @@ -6,55 +6,55 @@ * @since 1.0, 2020.10.08 */ class TbkCouponGetRequest -{ - /** - * 券ID - **/ - private $activityId; - - /** - * 商品ID - **/ - private $itemId; - - /** - * 带券ID与商品ID的加密串 - **/ +{ + /** + * 券ID + **/ + private $activityId; + + /** + * 商品ID + **/ + private $itemId; + + /** + * 带券ID与商品ID的加密串 + **/ private $me; private $apiParas = array(); - + public function setActivityId($activityId) - { - $this->activityId = $activityId; - $this->apiParas["activity_id"] = $activityId; + { + $this->activityId = $activityId; + $this->apiParas["activity_id"] = $activityId; } - + public function getActivityId() - { - return $this->activityId; + { + return $this->activityId; } - + public function setItemId($itemId) - { - $this->itemId = $itemId; - $this->apiParas["item_id"] = $itemId; + { + $this->itemId = $itemId; + $this->apiParas["item_id"] = $itemId; } - + public function getItemId() - { - return $this->itemId; + { + return $this->itemId; } - + public function setMe($me) - { - $this->me = $me; - $this->apiParas["me"] = $me; + { + $this->me = $me; + $this->apiParas["me"] = $me; } - + public function getMe() - { - return $this->me; + { + return $this->me; } public function getApiMethodName() diff --git a/src/service/taobao/bin/top/request/TbkDgMaterialOptionalRequest.php b/src/service/taobao/bin/top/request/TbkDgMaterialOptionalRequest.php index f024a99..4fbd6ff 100644 --- a/src/service/taobao/bin/top/request/TbkDgMaterialOptionalRequest.php +++ b/src/service/taobao/bin/top/request/TbkDgMaterialOptionalRequest.php @@ -6,599 +6,599 @@ * @since 1.0, 2020.11.03 */ class TbkDgMaterialOptionalRequest -{ - /** - * mm_xxx_xxx_12345678三段式的最后一段数字 - **/ - private $adzoneId; - - /** - * 商品筛选-后台类目ID。用,分割,最大10个,该ID可以通过taobao.itemcats.get接口获取到 - **/ - private $cat; - - /** - * 本地化业务入参-LBS信息-国标城市码,仅支持单个请求,请求饿了么卡券物料时,该字段必填。 (详细城市ID见:https://mo.m.taobao.com/page_2020010315120200508) - **/ - private $cityCode; - - /** - * 智能匹配-设备号加密类型:MD5 - **/ - private $deviceEncrypt; - - /** - * 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID - **/ - private $deviceType; - - /** - * 智能匹配-设备号加密后的值(MD5加密需32位小写) - **/ - private $deviceValue; - - /** - * 商品筛选-KA媒体淘客佣金比率上限。如:1234表示12.34% - **/ - private $endKaTkRate; - - /** - * 商品筛选-折扣价范围上限。单位:元 - **/ - private $endPrice; - - /** - * 商品筛选-淘客佣金比率上限。如:1234表示12.34% - **/ - private $endTkRate; - - /** - * 优惠券筛选-是否有优惠券。true表示该商品有优惠券,false或不设置表示不限 - **/ - private $hasCoupon; - - /** - * 商品筛选-好评率是否高于行业均值。True表示大于等于,false或不设置表示不限 - **/ - private $includeGoodRate; - - /** - * 商品筛选(特定媒体支持)-成交转化是否高于行业均值。True表示大于等于,false或不设置表示不限 - **/ - private $includePayRate30; - - /** - * 商品筛选(特定媒体支持)-退款率是否低于行业均值。True表示大于等于,false或不设置表示不限 - **/ - private $includeRfdRate; - - /** - * ip参数影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 - **/ - private $ip; - - /** - * 商品筛选-是否海外商品。true表示属于海外商品,false或不设置表示不限 - **/ - private $isOverseas; - - /** - * 商品筛选-是否天猫商品。true表示属于天猫商品,false或不设置表示不限 - **/ - private $isTmall; - - /** - * 商品筛选-所在地 - **/ - private $itemloc; - - /** - * 本地化业务入参-LBS信息-纬度 - **/ - private $latitude; - - /** - * 锁佣结束时间 - **/ - private $lockRateEndTime; - - /** - * 锁佣开始时间 - **/ - private $lockRateStartTime; - - /** - * 本地化业务入参-LBS信息-经度 - **/ - private $longitude; - - /** - * 不传时默认物料id=2836;如果直接对消费者投放,可使用官方个性化算法优化的搜索物料id=17004 - **/ - private $materialId; - - /** - * 商品筛选-是否包邮。true表示包邮,false或不设置表示不限 - **/ - private $needFreeShipment; - - /** - * 商品筛选-是否加入消费者保障。true表示加入,false或不设置表示不限 - **/ - private $needPrepay; - - /** - * 商品筛选-牛皮癣程度。取值:1不限,2无,3轻微 - **/ - private $npxLevel; - - /** - * 第几页,默认:1 - **/ - private $pageNo; - - /** - * 页大小,默认20,1~100 - **/ - private $pageSize; - - /** - * 链接形式:1:PC,2:无线,默认:1 - **/ - private $platform; - - /** - * 商品筛选-查询词 - **/ - private $q; - - /** - * 渠道关系ID,仅适用于渠道推广场景 - **/ - private $relationId; - - /** - * 商家id,仅支持饿了么卡券商家ID,支持批量请求1-100以内,多个商家ID使用英文逗号分隔 - **/ - private $sellerIds; - - /** - * 排序_des(降序),排序_asc(升序),销量(total_sales),淘客佣金比率(tk_rate), 累计推广量(tk_total_sales),总支出佣金(tk_total_commi),价格(price) - **/ - private $sort; - - /** - * 会员运营ID - **/ - private $specialId; - - /** - * 商品筛选(特定媒体支持)-店铺dsr评分。筛选大于等于当前设置的店铺dsr评分的商品0-50000之间 - **/ - private $startDsr; - - /** - * 商品筛选-KA媒体淘客佣金比率下限。如:1234表示12.34% - **/ - private $startKaTkRate; - - /** - * 商品筛选-折扣价范围下限。单位:元 - **/ - private $startPrice; - - /** - * 商品筛选-淘客佣金比率下限。如:1234表示12.34% - **/ +{ + /** + * mm_xxx_xxx_12345678三段式的最后一段数字 + **/ + private $adzoneId; + + /** + * 商品筛选-后台类目ID。用,分割,最大10个,该ID可以通过taobao.itemcats.get接口获取到 + **/ + private $cat; + + /** + * 本地化业务入参-LBS信息-国标城市码,仅支持单个请求,请求饿了么卡券物料时,该字段必填。 (详细城市ID见:https://mo.m.taobao.com/page_2020010315120200508) + **/ + private $cityCode; + + /** + * 智能匹配-设备号加密类型:MD5 + **/ + private $deviceEncrypt; + + /** + * 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID + **/ + private $deviceType; + + /** + * 智能匹配-设备号加密后的值(MD5加密需32位小写) + **/ + private $deviceValue; + + /** + * 商品筛选-KA媒体淘客佣金比率上限。如:1234表示12.34% + **/ + private $endKaTkRate; + + /** + * 商品筛选-折扣价范围上限。单位:元 + **/ + private $endPrice; + + /** + * 商品筛选-淘客佣金比率上限。如:1234表示12.34% + **/ + private $endTkRate; + + /** + * 优惠券筛选-是否有优惠券。true表示该商品有优惠券,false或不设置表示不限 + **/ + private $hasCoupon; + + /** + * 商品筛选-好评率是否高于行业均值。True表示大于等于,false或不设置表示不限 + **/ + private $includeGoodRate; + + /** + * 商品筛选(特定媒体支持)-成交转化是否高于行业均值。True表示大于等于,false或不设置表示不限 + **/ + private $includePayRate30; + + /** + * 商品筛选(特定媒体支持)-退款率是否低于行业均值。True表示大于等于,false或不设置表示不限 + **/ + private $includeRfdRate; + + /** + * ip参数影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 + **/ + private $ip; + + /** + * 商品筛选-是否海外商品。true表示属于海外商品,false或不设置表示不限 + **/ + private $isOverseas; + + /** + * 商品筛选-是否天猫商品。true表示属于天猫商品,false或不设置表示不限 + **/ + private $isTmall; + + /** + * 商品筛选-所在地 + **/ + private $itemloc; + + /** + * 本地化业务入参-LBS信息-纬度 + **/ + private $latitude; + + /** + * 锁佣结束时间 + **/ + private $lockRateEndTime; + + /** + * 锁佣开始时间 + **/ + private $lockRateStartTime; + + /** + * 本地化业务入参-LBS信息-经度 + **/ + private $longitude; + + /** + * 不传时默认物料id=2836;如果直接对消费者投放,可使用官方个性化算法优化的搜索物料id=17004 + **/ + private $materialId; + + /** + * 商品筛选-是否包邮。true表示包邮,false或不设置表示不限 + **/ + private $needFreeShipment; + + /** + * 商品筛选-是否加入消费者保障。true表示加入,false或不设置表示不限 + **/ + private $needPrepay; + + /** + * 商品筛选-牛皮癣程度。取值:1不限,2无,3轻微 + **/ + private $npxLevel; + + /** + * 第几页,默认:1 + **/ + private $pageNo; + + /** + * 页大小,默认20,1~100 + **/ + private $pageSize; + + /** + * 链接形式:1:PC,2:无线,默认:1 + **/ + private $platform; + + /** + * 商品筛选-查询词 + **/ + private $q; + + /** + * 渠道关系ID,仅适用于渠道推广场景 + **/ + private $relationId; + + /** + * 商家id,仅支持饿了么卡券商家ID,支持批量请求1-100以内,多个商家ID使用英文逗号分隔 + **/ + private $sellerIds; + + /** + * 排序_des(降序),排序_asc(升序),销量(total_sales),淘客佣金比率(tk_rate), 累计推广量(tk_total_sales),总支出佣金(tk_total_commi),价格(price) + **/ + private $sort; + + /** + * 会员运营ID + **/ + private $specialId; + + /** + * 商品筛选(特定媒体支持)-店铺dsr评分。筛选大于等于当前设置的店铺dsr评分的商品0-50000之间 + **/ + private $startDsr; + + /** + * 商品筛选-KA媒体淘客佣金比率下限。如:1234表示12.34% + **/ + private $startKaTkRate; + + /** + * 商品筛选-折扣价范围下限。单位:元 + **/ + private $startPrice; + + /** + * 商品筛选-淘客佣金比率下限。如:1234表示12.34% + **/ private $startTkRate; private $apiParas = array(); - + public function setAdzoneId($adzoneId) - { - $this->adzoneId = $adzoneId; - $this->apiParas["adzone_id"] = $adzoneId; + { + $this->adzoneId = $adzoneId; + $this->apiParas["adzone_id"] = $adzoneId; } - + public function getAdzoneId() - { - return $this->adzoneId; + { + return $this->adzoneId; } - + public function setCat($cat) - { - $this->cat = $cat; - $this->apiParas["cat"] = $cat; + { + $this->cat = $cat; + $this->apiParas["cat"] = $cat; } - + public function getCat() - { - return $this->cat; + { + return $this->cat; } - + public function setCityCode($cityCode) - { - $this->cityCode = $cityCode; - $this->apiParas["city_code"] = $cityCode; + { + $this->cityCode = $cityCode; + $this->apiParas["city_code"] = $cityCode; } - + public function getCityCode() - { - return $this->cityCode; + { + return $this->cityCode; } - + public function setDeviceEncrypt($deviceEncrypt) - { - $this->deviceEncrypt = $deviceEncrypt; - $this->apiParas["device_encrypt"] = $deviceEncrypt; + { + $this->deviceEncrypt = $deviceEncrypt; + $this->apiParas["device_encrypt"] = $deviceEncrypt; } - + public function getDeviceEncrypt() - { - return $this->deviceEncrypt; + { + return $this->deviceEncrypt; } - + public function setDeviceType($deviceType) - { - $this->deviceType = $deviceType; - $this->apiParas["device_type"] = $deviceType; + { + $this->deviceType = $deviceType; + $this->apiParas["device_type"] = $deviceType; } - + public function getDeviceType() - { - return $this->deviceType; + { + return $this->deviceType; } - + public function setDeviceValue($deviceValue) - { - $this->deviceValue = $deviceValue; - $this->apiParas["device_value"] = $deviceValue; + { + $this->deviceValue = $deviceValue; + $this->apiParas["device_value"] = $deviceValue; } - + public function getDeviceValue() - { - return $this->deviceValue; + { + return $this->deviceValue; } - + public function setEndKaTkRate($endKaTkRate) - { - $this->endKaTkRate = $endKaTkRate; - $this->apiParas["end_ka_tk_rate"] = $endKaTkRate; + { + $this->endKaTkRate = $endKaTkRate; + $this->apiParas["end_ka_tk_rate"] = $endKaTkRate; } - + public function getEndKaTkRate() - { - return $this->endKaTkRate; + { + return $this->endKaTkRate; } - + public function setEndPrice($endPrice) - { - $this->endPrice = $endPrice; - $this->apiParas["end_price"] = $endPrice; + { + $this->endPrice = $endPrice; + $this->apiParas["end_price"] = $endPrice; } - + public function getEndPrice() - { - return $this->endPrice; + { + return $this->endPrice; } - + public function setEndTkRate($endTkRate) - { - $this->endTkRate = $endTkRate; - $this->apiParas["end_tk_rate"] = $endTkRate; + { + $this->endTkRate = $endTkRate; + $this->apiParas["end_tk_rate"] = $endTkRate; } - + public function getEndTkRate() - { - return $this->endTkRate; + { + return $this->endTkRate; } - + public function setHasCoupon($hasCoupon) - { - $this->hasCoupon = $hasCoupon; - $this->apiParas["has_coupon"] = $hasCoupon; + { + $this->hasCoupon = $hasCoupon; + $this->apiParas["has_coupon"] = $hasCoupon; } - + public function getHasCoupon() - { - return $this->hasCoupon; + { + return $this->hasCoupon; } - + public function setIncludeGoodRate($includeGoodRate) - { - $this->includeGoodRate = $includeGoodRate; - $this->apiParas["include_good_rate"] = $includeGoodRate; + { + $this->includeGoodRate = $includeGoodRate; + $this->apiParas["include_good_rate"] = $includeGoodRate; } - + public function getIncludeGoodRate() - { - return $this->includeGoodRate; + { + return $this->includeGoodRate; } - + public function setIncludePayRate30($includePayRate30) - { - $this->includePayRate30 = $includePayRate30; - $this->apiParas["include_pay_rate_30"] = $includePayRate30; + { + $this->includePayRate30 = $includePayRate30; + $this->apiParas["include_pay_rate_30"] = $includePayRate30; } - + public function getIncludePayRate30() - { - return $this->includePayRate30; + { + return $this->includePayRate30; } - + public function setIncludeRfdRate($includeRfdRate) - { - $this->includeRfdRate = $includeRfdRate; - $this->apiParas["include_rfd_rate"] = $includeRfdRate; + { + $this->includeRfdRate = $includeRfdRate; + $this->apiParas["include_rfd_rate"] = $includeRfdRate; } - + public function getIncludeRfdRate() - { - return $this->includeRfdRate; + { + return $this->includeRfdRate; } - + public function setIp($ip) - { - $this->ip = $ip; - $this->apiParas["ip"] = $ip; + { + $this->ip = $ip; + $this->apiParas["ip"] = $ip; } - + public function getIp() - { - return $this->ip; + { + return $this->ip; } - + public function setIsOverseas($isOverseas) - { - $this->isOverseas = $isOverseas; - $this->apiParas["is_overseas"] = $isOverseas; + { + $this->isOverseas = $isOverseas; + $this->apiParas["is_overseas"] = $isOverseas; } - + public function getIsOverseas() - { - return $this->isOverseas; + { + return $this->isOverseas; } - + public function setIsTmall($isTmall) - { - $this->isTmall = $isTmall; - $this->apiParas["is_tmall"] = $isTmall; + { + $this->isTmall = $isTmall; + $this->apiParas["is_tmall"] = $isTmall; } - + public function getIsTmall() - { - return $this->isTmall; + { + return $this->isTmall; } - + public function setItemloc($itemloc) - { - $this->itemloc = $itemloc; - $this->apiParas["itemloc"] = $itemloc; + { + $this->itemloc = $itemloc; + $this->apiParas["itemloc"] = $itemloc; } - + public function getItemloc() - { - return $this->itemloc; + { + return $this->itemloc; } - + public function setLatitude($latitude) - { - $this->latitude = $latitude; - $this->apiParas["latitude"] = $latitude; + { + $this->latitude = $latitude; + $this->apiParas["latitude"] = $latitude; } - + public function getLatitude() - { - return $this->latitude; + { + return $this->latitude; } - + public function setLockRateEndTime($lockRateEndTime) - { - $this->lockRateEndTime = $lockRateEndTime; - $this->apiParas["lock_rate_end_time"] = $lockRateEndTime; + { + $this->lockRateEndTime = $lockRateEndTime; + $this->apiParas["lock_rate_end_time"] = $lockRateEndTime; } - + public function getLockRateEndTime() - { - return $this->lockRateEndTime; + { + return $this->lockRateEndTime; } - + public function setLockRateStartTime($lockRateStartTime) - { - $this->lockRateStartTime = $lockRateStartTime; - $this->apiParas["lock_rate_start_time"] = $lockRateStartTime; + { + $this->lockRateStartTime = $lockRateStartTime; + $this->apiParas["lock_rate_start_time"] = $lockRateStartTime; } - + public function getLockRateStartTime() - { - return $this->lockRateStartTime; + { + return $this->lockRateStartTime; } - + public function setLongitude($longitude) - { - $this->longitude = $longitude; - $this->apiParas["longitude"] = $longitude; + { + $this->longitude = $longitude; + $this->apiParas["longitude"] = $longitude; } - + public function getLongitude() - { - return $this->longitude; + { + return $this->longitude; } - + public function setMaterialId($materialId) - { - $this->materialId = $materialId; - $this->apiParas["material_id"] = $materialId; + { + $this->materialId = $materialId; + $this->apiParas["material_id"] = $materialId; } - + public function getMaterialId() - { - return $this->materialId; + { + return $this->materialId; } - + public function setNeedFreeShipment($needFreeShipment) - { - $this->needFreeShipment = $needFreeShipment; - $this->apiParas["need_free_shipment"] = $needFreeShipment; + { + $this->needFreeShipment = $needFreeShipment; + $this->apiParas["need_free_shipment"] = $needFreeShipment; } - + public function getNeedFreeShipment() - { - return $this->needFreeShipment; + { + return $this->needFreeShipment; } - + public function setNeedPrepay($needPrepay) - { - $this->needPrepay = $needPrepay; - $this->apiParas["need_prepay"] = $needPrepay; + { + $this->needPrepay = $needPrepay; + $this->apiParas["need_prepay"] = $needPrepay; } - + public function getNeedPrepay() - { - return $this->needPrepay; + { + return $this->needPrepay; } - + public function setNpxLevel($npxLevel) - { - $this->npxLevel = $npxLevel; - $this->apiParas["npx_level"] = $npxLevel; + { + $this->npxLevel = $npxLevel; + $this->apiParas["npx_level"] = $npxLevel; } - + public function getNpxLevel() - { - return $this->npxLevel; + { + return $this->npxLevel; } - + public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - $this->apiParas["page_no"] = $pageNo; + { + $this->pageNo = $pageNo; + $this->apiParas["page_no"] = $pageNo; } - + public function getPageNo() - { - return $this->pageNo; + { + return $this->pageNo; } - + public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - $this->apiParas["page_size"] = $pageSize; + { + $this->pageSize = $pageSize; + $this->apiParas["page_size"] = $pageSize; } - + public function getPageSize() - { - return $this->pageSize; + { + return $this->pageSize; } - + public function setPlatform($platform) - { - $this->platform = $platform; - $this->apiParas["platform"] = $platform; + { + $this->platform = $platform; + $this->apiParas["platform"] = $platform; } - + public function getPlatform() - { - return $this->platform; + { + return $this->platform; } - + public function setQ($q) - { - $this->q = $q; - $this->apiParas["q"] = $q; + { + $this->q = $q; + $this->apiParas["q"] = $q; } - + public function getQ() - { - return $this->q; + { + return $this->q; } - + public function setRelationId($relationId) - { - $this->relationId = $relationId; - $this->apiParas["relation_id"] = $relationId; + { + $this->relationId = $relationId; + $this->apiParas["relation_id"] = $relationId; } - + public function getRelationId() - { - return $this->relationId; + { + return $this->relationId; } - + public function setSellerIds($sellerIds) - { - $this->sellerIds = $sellerIds; - $this->apiParas["seller_ids"] = $sellerIds; + { + $this->sellerIds = $sellerIds; + $this->apiParas["seller_ids"] = $sellerIds; } - + public function getSellerIds() - { - return $this->sellerIds; + { + return $this->sellerIds; } - + public function setSort($sort) - { - $this->sort = $sort; - $this->apiParas["sort"] = $sort; + { + $this->sort = $sort; + $this->apiParas["sort"] = $sort; } - + public function getSort() - { - return $this->sort; + { + return $this->sort; } - + public function setSpecialId($specialId) - { - $this->specialId = $specialId; - $this->apiParas["special_id"] = $specialId; + { + $this->specialId = $specialId; + $this->apiParas["special_id"] = $specialId; } - + public function getSpecialId() - { - return $this->specialId; + { + return $this->specialId; } - + public function setStartDsr($startDsr) - { - $this->startDsr = $startDsr; - $this->apiParas["start_dsr"] = $startDsr; + { + $this->startDsr = $startDsr; + $this->apiParas["start_dsr"] = $startDsr; } - + public function getStartDsr() - { - return $this->startDsr; + { + return $this->startDsr; } - + public function setStartKaTkRate($startKaTkRate) - { - $this->startKaTkRate = $startKaTkRate; - $this->apiParas["start_ka_tk_rate"] = $startKaTkRate; + { + $this->startKaTkRate = $startKaTkRate; + $this->apiParas["start_ka_tk_rate"] = $startKaTkRate; } - + public function getStartKaTkRate() - { - return $this->startKaTkRate; + { + return $this->startKaTkRate; } - + public function setStartPrice($startPrice) - { - $this->startPrice = $startPrice; - $this->apiParas["start_price"] = $startPrice; + { + $this->startPrice = $startPrice; + $this->apiParas["start_price"] = $startPrice; } - + public function getStartPrice() - { - return $this->startPrice; + { + return $this->startPrice; } - + public function setStartTkRate($startTkRate) - { - $this->startTkRate = $startTkRate; - $this->apiParas["start_tk_rate"] = $startTkRate; + { + $this->startTkRate = $startTkRate; + $this->apiParas["start_tk_rate"] = $startTkRate; } - + public function getStartTkRate() - { - return $this->startTkRate; + { + return $this->startTkRate; } public function getApiMethodName() @@ -613,8 +613,8 @@ class TbkDgMaterialOptionalRequest public function check() { - - RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); + + RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); RequestCheckUtil::checkMaxValue($this->startDsr,50000,"startDsr"); } diff --git a/src/service/taobao/bin/top/request/TbkDgNewuserOrderGetRequest.php b/src/service/taobao/bin/top/request/TbkDgNewuserOrderGetRequest.php index 6ba7015..9e9c3ac 100644 --- a/src/service/taobao/bin/top/request/TbkDgNewuserOrderGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkDgNewuserOrderGetRequest.php @@ -6,103 +6,103 @@ * @since 1.0, 2019.07.04 */ class TbkDgNewuserOrderGetRequest -{ - /** - * 活动id, 活动名称与活动ID列表,请参见https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8599277 - **/ - private $activityId; - - /** - * mm_xxx_xxx_xxx的第三位 - **/ - private $adzoneId; - - /** - * 结束时间,当活动为淘宝活动,表示最晚结束时间;当活动为支付宝活动,表示最晚绑定时间;当活动为天猫活动,表示最晚领取红包的时间 - **/ - private $endTime; - - /** - * 页码,默认1 - **/ - private $pageNo; - - /** - * 页大小,默认20,1~100 - **/ - private $pageSize; - - /** - * 开始时间,当活动为淘宝活动,表示最早注册时间;当活动为支付宝活动,表示最早绑定时间;当活动为天猫活动,表示最早领取红包时间 - **/ +{ + /** + * 活动id, 活动名称与活动ID列表,请参见https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8599277 + **/ + private $activityId; + + /** + * mm_xxx_xxx_xxx的第三位 + **/ + private $adzoneId; + + /** + * 结束时间,当活动为淘宝活动,表示最晚结束时间;当活动为支付宝活动,表示最晚绑定时间;当活动为天猫活动,表示最晚领取红包的时间 + **/ + private $endTime; + + /** + * 页码,默认1 + **/ + private $pageNo; + + /** + * 页大小,默认20,1~100 + **/ + private $pageSize; + + /** + * 开始时间,当活动为淘宝活动,表示最早注册时间;当活动为支付宝活动,表示最早绑定时间;当活动为天猫活动,表示最早领取红包时间 + **/ private $startTime; private $apiParas = array(); - + public function setActivityId($activityId) - { - $this->activityId = $activityId; - $this->apiParas["activity_id"] = $activityId; + { + $this->activityId = $activityId; + $this->apiParas["activity_id"] = $activityId; } - + public function getActivityId() - { - return $this->activityId; + { + return $this->activityId; } - + public function setAdzoneId($adzoneId) - { - $this->adzoneId = $adzoneId; - $this->apiParas["adzone_id"] = $adzoneId; + { + $this->adzoneId = $adzoneId; + $this->apiParas["adzone_id"] = $adzoneId; } - + public function getAdzoneId() - { - return $this->adzoneId; + { + return $this->adzoneId; } - + public function setEndTime($endTime) - { - $this->endTime = $endTime; - $this->apiParas["end_time"] = $endTime; + { + $this->endTime = $endTime; + $this->apiParas["end_time"] = $endTime; } - + public function getEndTime() - { - return $this->endTime; + { + return $this->endTime; } - + public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - $this->apiParas["page_no"] = $pageNo; + { + $this->pageNo = $pageNo; + $this->apiParas["page_no"] = $pageNo; } - + public function getPageNo() - { - return $this->pageNo; + { + return $this->pageNo; } - + public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - $this->apiParas["page_size"] = $pageSize; + { + $this->pageSize = $pageSize; + $this->apiParas["page_size"] = $pageSize; } - + public function getPageSize() - { - return $this->pageSize; + { + return $this->pageSize; } - + public function setStartTime($startTime) - { - $this->startTime = $startTime; - $this->apiParas["start_time"] = $startTime; + { + $this->startTime = $startTime; + $this->apiParas["start_time"] = $startTime; } - + public function getStartTime() - { - return $this->startTime; + { + return $this->startTime; } public function getApiMethodName() @@ -117,9 +117,9 @@ class TbkDgNewuserOrderGetRequest public function check() { - - RequestCheckUtil::checkNotNull($this->activityId,"activityId"); - RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); + + RequestCheckUtil::checkNotNull($this->activityId,"activityId"); + RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize"); } diff --git a/src/service/taobao/bin/top/request/TbkDgNewuserOrderSumRequest.php b/src/service/taobao/bin/top/request/TbkDgNewuserOrderSumRequest.php index 5f59451..ba60834 100644 --- a/src/service/taobao/bin/top/request/TbkDgNewuserOrderSumRequest.php +++ b/src/service/taobao/bin/top/request/TbkDgNewuserOrderSumRequest.php @@ -6,103 +6,103 @@ * @since 1.0, 2019.07.04 */ class TbkDgNewuserOrderSumRequest -{ - /** - * 活动id, 活动名称与活动ID列表,请参见https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8599277 - **/ - private $activityId; - - /** - * mm_xxx_xxx_xxx的第三位 - **/ - private $adzoneId; - - /** - * 页码,默认1 - **/ - private $pageNo; - - /** - * 页大小,默认20,1~100 - **/ - private $pageSize; - - /** - * 结算月份 - **/ - private $settleMonth; - - /** - * mm_xxx_xxx_xxx的第二位 - **/ +{ + /** + * 活动id, 活动名称与活动ID列表,请参见https://tbk.bbs.taobao.com/detail.html?appId=45301&postId=8599277 + **/ + private $activityId; + + /** + * mm_xxx_xxx_xxx的第三位 + **/ + private $adzoneId; + + /** + * 页码,默认1 + **/ + private $pageNo; + + /** + * 页大小,默认20,1~100 + **/ + private $pageSize; + + /** + * 结算月份 + **/ + private $settleMonth; + + /** + * mm_xxx_xxx_xxx的第二位 + **/ private $siteId; private $apiParas = array(); - + public function setActivityId($activityId) - { - $this->activityId = $activityId; - $this->apiParas["activity_id"] = $activityId; + { + $this->activityId = $activityId; + $this->apiParas["activity_id"] = $activityId; } - + public function getActivityId() - { - return $this->activityId; + { + return $this->activityId; } - + public function setAdzoneId($adzoneId) - { - $this->adzoneId = $adzoneId; - $this->apiParas["adzone_id"] = $adzoneId; + { + $this->adzoneId = $adzoneId; + $this->apiParas["adzone_id"] = $adzoneId; } - + public function getAdzoneId() - { - return $this->adzoneId; + { + return $this->adzoneId; } - + public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - $this->apiParas["page_no"] = $pageNo; + { + $this->pageNo = $pageNo; + $this->apiParas["page_no"] = $pageNo; } - + public function getPageNo() - { - return $this->pageNo; + { + return $this->pageNo; } - + public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - $this->apiParas["page_size"] = $pageSize; + { + $this->pageSize = $pageSize; + $this->apiParas["page_size"] = $pageSize; } - + public function getPageSize() - { - return $this->pageSize; + { + return $this->pageSize; } - + public function setSettleMonth($settleMonth) - { - $this->settleMonth = $settleMonth; - $this->apiParas["settle_month"] = $settleMonth; + { + $this->settleMonth = $settleMonth; + $this->apiParas["settle_month"] = $settleMonth; } - + public function getSettleMonth() - { - return $this->settleMonth; + { + return $this->settleMonth; } - + public function setSiteId($siteId) - { - $this->siteId = $siteId; - $this->apiParas["site_id"] = $siteId; + { + $this->siteId = $siteId; + $this->apiParas["site_id"] = $siteId; } - + public function getSiteId() - { - return $this->siteId; + { + return $this->siteId; } public function getApiMethodName() @@ -117,11 +117,11 @@ class TbkDgNewuserOrderSumRequest public function check() { - - RequestCheckUtil::checkNotNull($this->activityId,"activityId"); - RequestCheckUtil::checkNotNull($this->pageNo,"pageNo"); - RequestCheckUtil::checkNotNull($this->pageSize,"pageSize"); - RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); + + RequestCheckUtil::checkNotNull($this->activityId,"activityId"); + RequestCheckUtil::checkNotNull($this->pageNo,"pageNo"); + RequestCheckUtil::checkNotNull($this->pageSize,"pageSize"); + RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize"); } diff --git a/src/service/taobao/bin/top/request/TbkDgOptimusMaterialRequest.php b/src/service/taobao/bin/top/request/TbkDgOptimusMaterialRequest.php index b74740b..168fe48 100644 --- a/src/service/taobao/bin/top/request/TbkDgOptimusMaterialRequest.php +++ b/src/service/taobao/bin/top/request/TbkDgOptimusMaterialRequest.php @@ -6,183 +6,183 @@ * @since 1.0, 2020.10.26 */ class TbkDgOptimusMaterialRequest -{ - /** - * mm_xxx_xxx_xxx的第三位 - **/ - private $adzoneId; - - /** - * 内容专用-内容详情ID - **/ - private $contentId; - - /** - * 内容专用-内容渠道信息 - **/ - private $contentSource; - - /** - * 智能匹配-设备号加密类型:MD5,类型为OAID时不传 - **/ - private $deviceEncrypt; - - /** - * 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID - **/ - private $deviceType; - - /** - * 智能匹配-设备号加密后的值(MD5加密需32位小写),类型为OAID时传原始OAID值 - **/ - private $deviceValue; - - /** - * 选品库投放id - **/ - private $favoritesId; - - /** - * 商品ID,用于相似商品推荐 - **/ - private $itemId; - - /** - * 官方的物料Id(详细物料id见:https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628875?_k=gpov9a) - **/ - private $materialId; - - /** - * 第几页,默认:1 - **/ - private $pageNo; - - /** - * 页大小,默认20,1~100 - **/ +{ + /** + * mm_xxx_xxx_xxx的第三位 + **/ + private $adzoneId; + + /** + * 内容专用-内容详情ID + **/ + private $contentId; + + /** + * 内容专用-内容渠道信息 + **/ + private $contentSource; + + /** + * 智能匹配-设备号加密类型:MD5,类型为OAID时不传 + **/ + private $deviceEncrypt; + + /** + * 智能匹配-设备号类型:IMEI,或者IDFA,或者UTDID(UTDID不支持MD5加密),或者OAID + **/ + private $deviceType; + + /** + * 智能匹配-设备号加密后的值(MD5加密需32位小写),类型为OAID时传原始OAID值 + **/ + private $deviceValue; + + /** + * 选品库投放id + **/ + private $favoritesId; + + /** + * 商品ID,用于相似商品推荐 + **/ + private $itemId; + + /** + * 官方的物料Id(详细物料id见:https://market.m.taobao.com/app/qn/toutiao-new/index-pc.html#/detail/10628875?_k=gpov9a) + **/ + private $materialId; + + /** + * 第几页,默认:1 + **/ + private $pageNo; + + /** + * 页大小,默认20,1~100 + **/ private $pageSize; private $apiParas = array(); - + public function setAdzoneId($adzoneId) - { - $this->adzoneId = $adzoneId; - $this->apiParas["adzone_id"] = $adzoneId; + { + $this->adzoneId = $adzoneId; + $this->apiParas["adzone_id"] = $adzoneId; } - + public function getAdzoneId() - { - return $this->adzoneId; + { + return $this->adzoneId; } - + public function setContentId($contentId) - { - $this->contentId = $contentId; - $this->apiParas["content_id"] = $contentId; + { + $this->contentId = $contentId; + $this->apiParas["content_id"] = $contentId; } - + public function getContentId() - { - return $this->contentId; + { + return $this->contentId; } - + public function setContentSource($contentSource) - { - $this->contentSource = $contentSource; - $this->apiParas["content_source"] = $contentSource; + { + $this->contentSource = $contentSource; + $this->apiParas["content_source"] = $contentSource; } - + public function getContentSource() - { - return $this->contentSource; + { + return $this->contentSource; } - + public function setDeviceEncrypt($deviceEncrypt) - { - $this->deviceEncrypt = $deviceEncrypt; - $this->apiParas["device_encrypt"] = $deviceEncrypt; + { + $this->deviceEncrypt = $deviceEncrypt; + $this->apiParas["device_encrypt"] = $deviceEncrypt; } - + public function getDeviceEncrypt() - { - return $this->deviceEncrypt; + { + return $this->deviceEncrypt; } - + public function setDeviceType($deviceType) - { - $this->deviceType = $deviceType; - $this->apiParas["device_type"] = $deviceType; + { + $this->deviceType = $deviceType; + $this->apiParas["device_type"] = $deviceType; } - + public function getDeviceType() - { - return $this->deviceType; + { + return $this->deviceType; } - + public function setDeviceValue($deviceValue) - { - $this->deviceValue = $deviceValue; - $this->apiParas["device_value"] = $deviceValue; + { + $this->deviceValue = $deviceValue; + $this->apiParas["device_value"] = $deviceValue; } - + public function getDeviceValue() - { - return $this->deviceValue; + { + return $this->deviceValue; } - + public function setFavoritesId($favoritesId) - { - $this->favoritesId = $favoritesId; - $this->apiParas["favorites_id"] = $favoritesId; + { + $this->favoritesId = $favoritesId; + $this->apiParas["favorites_id"] = $favoritesId; } - + public function getFavoritesId() - { - return $this->favoritesId; + { + return $this->favoritesId; } - + public function setItemId($itemId) - { - $this->itemId = $itemId; - $this->apiParas["item_id"] = $itemId; + { + $this->itemId = $itemId; + $this->apiParas["item_id"] = $itemId; } - + public function getItemId() - { - return $this->itemId; + { + return $this->itemId; } - + public function setMaterialId($materialId) - { - $this->materialId = $materialId; - $this->apiParas["material_id"] = $materialId; + { + $this->materialId = $materialId; + $this->apiParas["material_id"] = $materialId; } - + public function getMaterialId() - { - return $this->materialId; + { + return $this->materialId; } - + public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - $this->apiParas["page_no"] = $pageNo; + { + $this->pageNo = $pageNo; + $this->apiParas["page_no"] = $pageNo; } - + public function getPageNo() - { - return $this->pageNo; + { + return $this->pageNo; } - + public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - $this->apiParas["page_size"] = $pageSize; + { + $this->pageSize = $pageSize; + $this->apiParas["page_size"] = $pageSize; } - + public function getPageSize() - { - return $this->pageSize; + { + return $this->pageSize; } public function getApiMethodName() @@ -197,10 +197,10 @@ class TbkDgOptimusMaterialRequest public function check() { - - RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); - RequestCheckUtil::checkNotNull($this->materialId,"materialId"); - RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); + + RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); + RequestCheckUtil::checkNotNull($this->materialId,"materialId"); + RequestCheckUtil::checkMaxValue($this->pageSize,100,"pageSize"); RequestCheckUtil::checkMinValue($this->pageSize,1,"pageSize"); } diff --git a/src/service/taobao/bin/top/request/TbkDgOptimusPromotionRequest.php b/src/service/taobao/bin/top/request/TbkDgOptimusPromotionRequest.php index 90f6a44..dc76ef1 100644 --- a/src/service/taobao/bin/top/request/TbkDgOptimusPromotionRequest.php +++ b/src/service/taobao/bin/top/request/TbkDgOptimusPromotionRequest.php @@ -6,71 +6,71 @@ * @since 1.0, 2020.10.27 */ class TbkDgOptimusPromotionRequest -{ - /** - * mm_xxx_xxx_xxx的第3段数字 - **/ - private $adzoneId; - - /** - * 第几页,默认:1 - **/ - private $pageNum; - - /** - * 页大小,一次请求请限制在10以内 - **/ - private $pageSize; - - /** - * 官方提供的权益物料Id。有价券-37104、大额店铺券-37116,更多权益物料id敬请期待! - **/ +{ + /** + * mm_xxx_xxx_xxx的第3段数字 + **/ + private $adzoneId; + + /** + * 第几页,默认:1 + **/ + private $pageNum; + + /** + * 页大小,一次请求请限制在10以内 + **/ + private $pageSize; + + /** + * 官方提供的权益物料Id。有价券-37104、大额店铺券-37116,更多权益物料id敬请期待! + **/ private $promotionId; private $apiParas = array(); - + public function setAdzoneId($adzoneId) - { - $this->adzoneId = $adzoneId; - $this->apiParas["adzone_id"] = $adzoneId; + { + $this->adzoneId = $adzoneId; + $this->apiParas["adzone_id"] = $adzoneId; } - + public function getAdzoneId() - { - return $this->adzoneId; + { + return $this->adzoneId; } - + public function setPageNum($pageNum) - { - $this->pageNum = $pageNum; - $this->apiParas["page_num"] = $pageNum; + { + $this->pageNum = $pageNum; + $this->apiParas["page_num"] = $pageNum; } - + public function getPageNum() - { - return $this->pageNum; + { + return $this->pageNum; } - + public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - $this->apiParas["page_size"] = $pageSize; + { + $this->pageSize = $pageSize; + $this->apiParas["page_size"] = $pageSize; } - + public function getPageSize() - { - return $this->pageSize; + { + return $this->pageSize; } - + public function setPromotionId($promotionId) - { - $this->promotionId = $promotionId; - $this->apiParas["promotion_id"] = $promotionId; + { + $this->promotionId = $promotionId; + $this->apiParas["promotion_id"] = $promotionId; } - + public function getPromotionId() - { - return $this->promotionId; + { + return $this->promotionId; } public function getApiMethodName() @@ -85,9 +85,9 @@ class TbkDgOptimusPromotionRequest public function check() { - - RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); - RequestCheckUtil::checkMaxValue($this->pageSize,10,"pageSize"); + + RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); + RequestCheckUtil::checkMaxValue($this->pageSize,10,"pageSize"); RequestCheckUtil::checkNotNull($this->promotionId,"promotionId"); } diff --git a/src/service/taobao/bin/top/request/TbkDgPunishOrderGetRequest.php b/src/service/taobao/bin/top/request/TbkDgPunishOrderGetRequest.php index 7722d60..9cc71d3 100644 --- a/src/service/taobao/bin/top/request/TbkDgPunishOrderGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkDgPunishOrderGetRequest.php @@ -6,23 +6,23 @@ * @since 1.0, 2019.11.10 */ class TbkDgPunishOrderGetRequest -{ - /** - * 入参的对象 - **/ +{ + /** + * 入参的对象 + **/ private $afOrderOption; private $apiParas = array(); - + public function setAfOrderOption($afOrderOption) - { - $this->afOrderOption = $afOrderOption; - $this->apiParas["af_order_option"] = $afOrderOption; + { + $this->afOrderOption = $afOrderOption; + $this->apiParas["af_order_option"] = $afOrderOption; } - + public function getAfOrderOption() - { - return $this->afOrderOption; + { + return $this->afOrderOption; } public function getApiMethodName() diff --git a/src/service/taobao/bin/top/request/TbkDgVegasSendReportRequest.php b/src/service/taobao/bin/top/request/TbkDgVegasSendReportRequest.php index 684a987..db032c1 100644 --- a/src/service/taobao/bin/top/request/TbkDgVegasSendReportRequest.php +++ b/src/service/taobao/bin/top/request/TbkDgVegasSendReportRequest.php @@ -6,87 +6,87 @@ * @since 1.0, 2020.10.20 */ class TbkDgVegasSendReportRequest -{ - /** - * 2020双11大促活动id:1306 - **/ - private $activityId; - - /** - * 统计日期 - **/ - private $bizDate; - - /** - * 页码 - **/ - private $pageNo; - - /** - * 每页大小 - **/ - private $pageSize; - - /** - * 渠道关系id - **/ +{ + /** + * 2020双11大促活动id:1306 + **/ + private $activityId; + + /** + * 统计日期 + **/ + private $bizDate; + + /** + * 页码 + **/ + private $pageNo; + + /** + * 每页大小 + **/ + private $pageSize; + + /** + * 渠道关系id + **/ private $relationId; private $apiParas = array(); - + public function setActivityId($activityId) - { - $this->activityId = $activityId; - $this->apiParas["activity_id"] = $activityId; + { + $this->activityId = $activityId; + $this->apiParas["activity_id"] = $activityId; } - + public function getActivityId() - { - return $this->activityId; + { + return $this->activityId; } - + public function setBizDate($bizDate) - { - $this->bizDate = $bizDate; - $this->apiParas["biz_date"] = $bizDate; + { + $this->bizDate = $bizDate; + $this->apiParas["biz_date"] = $bizDate; } - + public function getBizDate() - { - return $this->bizDate; + { + return $this->bizDate; } - + public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - $this->apiParas["page_no"] = $pageNo; + { + $this->pageNo = $pageNo; + $this->apiParas["page_no"] = $pageNo; } - + public function getPageNo() - { - return $this->pageNo; + { + return $this->pageNo; } - + public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - $this->apiParas["page_size"] = $pageSize; + { + $this->pageSize = $pageSize; + $this->apiParas["page_size"] = $pageSize; } - + public function getPageSize() - { - return $this->pageSize; + { + return $this->pageSize; } - + public function setRelationId($relationId) - { - $this->relationId = $relationId; - $this->apiParas["relation_id"] = $relationId; + { + $this->relationId = $relationId; + $this->apiParas["relation_id"] = $relationId; } - + public function getRelationId() - { - return $this->relationId; + { + return $this->relationId; } public function getApiMethodName() @@ -101,8 +101,8 @@ class TbkDgVegasSendReportRequest public function check() { - - RequestCheckUtil::checkNotNull($this->activityId,"activityId"); + + RequestCheckUtil::checkNotNull($this->activityId,"activityId"); RequestCheckUtil::checkNotNull($this->bizDate,"bizDate"); } diff --git a/src/service/taobao/bin/top/request/TbkDgVegasTljCreateRequest.php b/src/service/taobao/bin/top/request/TbkDgVegasTljCreateRequest.php index 7257eb6..64b14d0 100644 --- a/src/service/taobao/bin/top/request/TbkDgVegasTljCreateRequest.php +++ b/src/service/taobao/bin/top/request/TbkDgVegasTljCreateRequest.php @@ -6,231 +6,231 @@ * @since 1.0, 2020.08.18 */ class TbkDgVegasTljCreateRequest -{ - /** - * 妈妈广告位Id - **/ - private $adzoneId; - - /** - * CPS佣金计划类型 - **/ - private $campaignType; - - /** - * 宝贝id - **/ - private $itemId; - - /** - * 淘礼金名称,最大10个字符 - **/ - private $name; - - /** - * 单个淘礼金面额,支持两位小数,单位元 - **/ - private $perFace; - - /** - * 安全等级,0:适用于常规淘礼金投放场景;1:更高安全级别,适用于淘礼金面额偏大等安全性较高的淘礼金投放场景,可能导致更多用户拦截。security_switch为true,此字段不填写时,使用0作为默认安全级别。如果security_switch为false,不进行安全判断。 - **/ - private $securityLevel; - - /** - * 安全开关,若不进行安全校验,可能放大您的资损风险,请谨慎选择 - **/ - private $securitySwitch; - - /** - * 发放截止时间 - **/ - private $sendEndTime; - - /** - * 发放开始时间 - **/ - private $sendStartTime; - - /** - * 淘礼金总个数 - **/ - private $totalNum; - - /** - * 使用结束日期。如果是结束时间模式为相对时间,时间格式为1-7直接的整数, 例如,1(相对领取时间1天); 如果是绝对时间,格式为yyyy-MM-dd,例如,2019-01-29,表示到2019-01-29 23:59:59结束 - **/ - private $useEndTime; - - /** - * 结束日期的模式,1:相对时间,2:绝对时间 - **/ - private $useEndTimeMode; - - /** - * 使用开始日期。相对时间,无需填写,以用户领取时间作为使用开始时间。绝对时间,格式 yyyy-MM-dd,例如,2019-01-29,表示从2019-01-29 00:00:00 开始 - **/ - private $useStartTime; - - /** - * 单用户累计中奖次数上限 - **/ +{ + /** + * 妈妈广告位Id + **/ + private $adzoneId; + + /** + * CPS佣金计划类型 + **/ + private $campaignType; + + /** + * 宝贝id + **/ + private $itemId; + + /** + * 淘礼金名称,最大10个字符 + **/ + private $name; + + /** + * 单个淘礼金面额,支持两位小数,单位元 + **/ + private $perFace; + + /** + * 安全等级,0:适用于常规淘礼金投放场景;1:更高安全级别,适用于淘礼金面额偏大等安全性较高的淘礼金投放场景,可能导致更多用户拦截。security_switch为true,此字段不填写时,使用0作为默认安全级别。如果security_switch为false,不进行安全判断。 + **/ + private $securityLevel; + + /** + * 安全开关,若不进行安全校验,可能放大您的资损风险,请谨慎选择 + **/ + private $securitySwitch; + + /** + * 发放截止时间 + **/ + private $sendEndTime; + + /** + * 发放开始时间 + **/ + private $sendStartTime; + + /** + * 淘礼金总个数 + **/ + private $totalNum; + + /** + * 使用结束日期。如果是结束时间模式为相对时间,时间格式为1-7直接的整数, 例如,1(相对领取时间1天); 如果是绝对时间,格式为yyyy-MM-dd,例如,2019-01-29,表示到2019-01-29 23:59:59结束 + **/ + private $useEndTime; + + /** + * 结束日期的模式,1:相对时间,2:绝对时间 + **/ + private $useEndTimeMode; + + /** + * 使用开始日期。相对时间,无需填写,以用户领取时间作为使用开始时间。绝对时间,格式 yyyy-MM-dd,例如,2019-01-29,表示从2019-01-29 00:00:00 开始 + **/ + private $useStartTime; + + /** + * 单用户累计中奖次数上限 + **/ private $userTotalWinNumLimit; private $apiParas = array(); - + public function setAdzoneId($adzoneId) - { - $this->adzoneId = $adzoneId; - $this->apiParas["adzone_id"] = $adzoneId; + { + $this->adzoneId = $adzoneId; + $this->apiParas["adzone_id"] = $adzoneId; } - + public function getAdzoneId() - { - return $this->adzoneId; + { + return $this->adzoneId; } - + public function setCampaignType($campaignType) - { - $this->campaignType = $campaignType; - $this->apiParas["campaign_type"] = $campaignType; + { + $this->campaignType = $campaignType; + $this->apiParas["campaign_type"] = $campaignType; } - + public function getCampaignType() - { - return $this->campaignType; + { + return $this->campaignType; } - + public function setItemId($itemId) - { - $this->itemId = $itemId; - $this->apiParas["item_id"] = $itemId; + { + $this->itemId = $itemId; + $this->apiParas["item_id"] = $itemId; } - + public function getItemId() - { - return $this->itemId; + { + return $this->itemId; } - + public function setName($name) - { - $this->name = $name; - $this->apiParas["name"] = $name; + { + $this->name = $name; + $this->apiParas["name"] = $name; } - + public function getName() - { - return $this->name; + { + return $this->name; } - + public function setPerFace($perFace) - { - $this->perFace = $perFace; - $this->apiParas["per_face"] = $perFace; + { + $this->perFace = $perFace; + $this->apiParas["per_face"] = $perFace; } - + public function getPerFace() - { - return $this->perFace; + { + return $this->perFace; } - + public function setSecurityLevel($securityLevel) - { - $this->securityLevel = $securityLevel; - $this->apiParas["security_level"] = $securityLevel; + { + $this->securityLevel = $securityLevel; + $this->apiParas["security_level"] = $securityLevel; } - + public function getSecurityLevel() - { - return $this->securityLevel; + { + return $this->securityLevel; } - + public function setSecuritySwitch($securitySwitch) - { - $this->securitySwitch = $securitySwitch; - $this->apiParas["security_switch"] = $securitySwitch; + { + $this->securitySwitch = $securitySwitch; + $this->apiParas["security_switch"] = $securitySwitch; } - + public function getSecuritySwitch() - { - return $this->securitySwitch; + { + return $this->securitySwitch; } - + public function setSendEndTime($sendEndTime) - { - $this->sendEndTime = $sendEndTime; - $this->apiParas["send_end_time"] = $sendEndTime; + { + $this->sendEndTime = $sendEndTime; + $this->apiParas["send_end_time"] = $sendEndTime; } - + public function getSendEndTime() - { - return $this->sendEndTime; + { + return $this->sendEndTime; } - + public function setSendStartTime($sendStartTime) - { - $this->sendStartTime = $sendStartTime; - $this->apiParas["send_start_time"] = $sendStartTime; + { + $this->sendStartTime = $sendStartTime; + $this->apiParas["send_start_time"] = $sendStartTime; } - + public function getSendStartTime() - { - return $this->sendStartTime; + { + return $this->sendStartTime; } - + public function setTotalNum($totalNum) - { - $this->totalNum = $totalNum; - $this->apiParas["total_num"] = $totalNum; + { + $this->totalNum = $totalNum; + $this->apiParas["total_num"] = $totalNum; } - + public function getTotalNum() - { - return $this->totalNum; + { + return $this->totalNum; } - + public function setUseEndTime($useEndTime) - { - $this->useEndTime = $useEndTime; - $this->apiParas["use_end_time"] = $useEndTime; + { + $this->useEndTime = $useEndTime; + $this->apiParas["use_end_time"] = $useEndTime; } - + public function getUseEndTime() - { - return $this->useEndTime; + { + return $this->useEndTime; } - + public function setUseEndTimeMode($useEndTimeMode) - { - $this->useEndTimeMode = $useEndTimeMode; - $this->apiParas["use_end_time_mode"] = $useEndTimeMode; + { + $this->useEndTimeMode = $useEndTimeMode; + $this->apiParas["use_end_time_mode"] = $useEndTimeMode; } - + public function getUseEndTimeMode() - { - return $this->useEndTimeMode; + { + return $this->useEndTimeMode; } - + public function setUseStartTime($useStartTime) - { - $this->useStartTime = $useStartTime; - $this->apiParas["use_start_time"] = $useStartTime; + { + $this->useStartTime = $useStartTime; + $this->apiParas["use_start_time"] = $useStartTime; } - + public function getUseStartTime() - { - return $this->useStartTime; + { + return $this->useStartTime; } - + public function setUserTotalWinNumLimit($userTotalWinNumLimit) - { - $this->userTotalWinNumLimit = $userTotalWinNumLimit; - $this->apiParas["user_total_win_num_limit"] = $userTotalWinNumLimit; + { + $this->userTotalWinNumLimit = $userTotalWinNumLimit; + $this->apiParas["user_total_win_num_limit"] = $userTotalWinNumLimit; } - + public function getUserTotalWinNumLimit() - { - return $this->userTotalWinNumLimit; + { + return $this->userTotalWinNumLimit; } public function getApiMethodName() @@ -245,14 +245,14 @@ class TbkDgVegasTljCreateRequest public function check() { - - RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); - RequestCheckUtil::checkNotNull($this->itemId,"itemId"); - RequestCheckUtil::checkNotNull($this->name,"name"); - RequestCheckUtil::checkNotNull($this->perFace,"perFace"); - RequestCheckUtil::checkNotNull($this->securitySwitch,"securitySwitch"); - RequestCheckUtil::checkNotNull($this->sendStartTime,"sendStartTime"); - RequestCheckUtil::checkNotNull($this->totalNum,"totalNum"); + + RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId"); + RequestCheckUtil::checkNotNull($this->itemId,"itemId"); + RequestCheckUtil::checkNotNull($this->name,"name"); + RequestCheckUtil::checkNotNull($this->perFace,"perFace"); + RequestCheckUtil::checkNotNull($this->securitySwitch,"securitySwitch"); + RequestCheckUtil::checkNotNull($this->sendStartTime,"sendStartTime"); + RequestCheckUtil::checkNotNull($this->totalNum,"totalNum"); RequestCheckUtil::checkNotNull($this->userTotalWinNumLimit,"userTotalWinNumLimit"); } diff --git a/src/service/taobao/bin/top/request/TbkDgVegasTljInstanceReportRequest.php b/src/service/taobao/bin/top/request/TbkDgVegasTljInstanceReportRequest.php index b7b0897..55756f2 100644 --- a/src/service/taobao/bin/top/request/TbkDgVegasTljInstanceReportRequest.php +++ b/src/service/taobao/bin/top/request/TbkDgVegasTljInstanceReportRequest.php @@ -6,23 +6,23 @@ * @since 1.0, 2020.07.09 */ class TbkDgVegasTljInstanceReportRequest -{ - /** - * 实例ID - **/ +{ + /** + * 实例ID + **/ private $rightsId; private $apiParas = array(); - + public function setRightsId($rightsId) - { - $this->rightsId = $rightsId; - $this->apiParas["rights_id"] = $rightsId; + { + $this->rightsId = $rightsId; + $this->apiParas["rights_id"] = $rightsId; } - + public function getRightsId() - { - return $this->rightsId; + { + return $this->rightsId; } public function getApiMethodName() @@ -37,7 +37,7 @@ class TbkDgVegasTljInstanceReportRequest public function check() { - + RequestCheckUtil::checkNotNull($this->rightsId,"rightsId"); } diff --git a/src/service/taobao/bin/top/request/TbkItemInfoGetRequest.php b/src/service/taobao/bin/top/request/TbkItemInfoGetRequest.php index 436e11e..ea93cab 100644 --- a/src/service/taobao/bin/top/request/TbkItemInfoGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkItemInfoGetRequest.php @@ -6,55 +6,55 @@ * @since 1.0, 2020.10.19 */ class TbkItemInfoGetRequest -{ - /** - * ip地址,影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 - **/ - private $ip; - - /** - * 商品ID串,用,分割,最大40个 - **/ - private $numIids; - - /** - * 链接形式:1:PC,2:无线,默认:1 - **/ +{ + /** + * ip地址,影响邮费获取,如果不传或者传入不准确,邮费无法精准提供 + **/ + private $ip; + + /** + * 商品ID串,用,分割,最大40个 + **/ + private $numIids; + + /** + * 链接形式:1:PC,2:无线,默认:1 + **/ private $platform; private $apiParas = array(); - + public function setIp($ip) - { - $this->ip = $ip; - $this->apiParas["ip"] = $ip; + { + $this->ip = $ip; + $this->apiParas["ip"] = $ip; } - + public function getIp() - { - return $this->ip; + { + return $this->ip; } - + public function setNumIids($numIids) - { - $this->numIids = $numIids; - $this->apiParas["num_iids"] = $numIids; + { + $this->numIids = $numIids; + $this->apiParas["num_iids"] = $numIids; } - + public function getNumIids() - { - return $this->numIids; + { + return $this->numIids; } - + public function setPlatform($platform) - { - $this->platform = $platform; - $this->apiParas["platform"] = $platform; + { + $this->platform = $platform; + $this->apiParas["platform"] = $platform; } - + public function getPlatform() - { - return $this->platform; + { + return $this->platform; } public function getApiMethodName() @@ -69,7 +69,7 @@ class TbkItemInfoGetRequest public function check() { - + RequestCheckUtil::checkNotNull($this->numIids,"numIids"); } diff --git a/src/service/taobao/bin/top/request/TbkOrderDetailsGetRequest.php b/src/service/taobao/bin/top/request/TbkOrderDetailsGetRequest.php index 74f71b7..c342bbd 100644 --- a/src/service/taobao/bin/top/request/TbkOrderDetailsGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkOrderDetailsGetRequest.php @@ -6,167 +6,167 @@ * @since 1.0, 2020.10.27 */ class TbkOrderDetailsGetRequest -{ - /** - * 订单查询结束时间,订单开始时间至订单结束时间,中间时间段日常要求不超过3个小时,但如618、双11、年货节等大促期间预估时间段不可超过20分钟,超过会提示错误,调用时请务必注意时间段的选择,以保证亲能正常调用! - **/ - private $endTime; - - /** - * 跳转类型,当向前或者向后翻页必须提供,-1: 向前翻页,1:向后翻页 - **/ - private $jumpType; - - /** - * 推广者角色类型,2:二方,3:三方,不传,表示所有角色 - **/ - private $memberType; - - /** - * 场景订单场景类型,1:常规订单,2:渠道订单,3:会员运营订单,默认为1 - **/ - private $orderScene; - - /** - * 第几页,默认1,1~100 - **/ - private $pageNo; - - /** - * 页大小,默认20,1~100 - **/ - private $pageSize; - - /** - * 位点,除第一页之外,都需要传递;前端原样返回。 - **/ - private $positionIndex; - - /** - * 查询时间类型,1:按照订单淘客创建时间查询,2:按照订单淘客付款时间查询,3:按照订单淘客结算时间查询 - **/ - private $queryType; - - /** - * 订单查询开始时间 - **/ - private $startTime; - - /** - * 淘客订单状态,12-付款,13-关闭,14-确认收货,3-结算成功;不传,表示所有状态 - **/ +{ + /** + * 订单查询结束时间,订单开始时间至订单结束时间,中间时间段日常要求不超过3个小时,但如618、双11、年货节等大促期间预估时间段不可超过20分钟,超过会提示错误,调用时请务必注意时间段的选择,以保证亲能正常调用! + **/ + private $endTime; + + /** + * 跳转类型,当向前或者向后翻页必须提供,-1: 向前翻页,1:向后翻页 + **/ + private $jumpType; + + /** + * 推广者角色类型,2:二方,3:三方,不传,表示所有角色 + **/ + private $memberType; + + /** + * 场景订单场景类型,1:常规订单,2:渠道订单,3:会员运营订单,默认为1 + **/ + private $orderScene; + + /** + * 第几页,默认1,1~100 + **/ + private $pageNo; + + /** + * 页大小,默认20,1~100 + **/ + private $pageSize; + + /** + * 位点,除第一页之外,都需要传递;前端原样返回。 + **/ + private $positionIndex; + + /** + * 查询时间类型,1:按照订单淘客创建时间查询,2:按照订单淘客付款时间查询,3:按照订单淘客结算时间查询 + **/ + private $queryType; + + /** + * 订单查询开始时间 + **/ + private $startTime; + + /** + * 淘客订单状态,12-付款,13-关闭,14-确认收货,3-结算成功;不传,表示所有状态 + **/ private $tkStatus; private $apiParas = array(); - + public function setEndTime($endTime) - { - $this->endTime = $endTime; - $this->apiParas["end_time"] = $endTime; + { + $this->endTime = $endTime; + $this->apiParas["end_time"] = $endTime; } - + public function getEndTime() - { - return $this->endTime; + { + return $this->endTime; } - + public function setJumpType($jumpType) - { - $this->jumpType = $jumpType; - $this->apiParas["jump_type"] = $jumpType; + { + $this->jumpType = $jumpType; + $this->apiParas["jump_type"] = $jumpType; } - + public function getJumpType() - { - return $this->jumpType; + { + return $this->jumpType; } - + public function setMemberType($memberType) - { - $this->memberType = $memberType; - $this->apiParas["member_type"] = $memberType; + { + $this->memberType = $memberType; + $this->apiParas["member_type"] = $memberType; } - + public function getMemberType() - { - return $this->memberType; + { + return $this->memberType; } - + public function setOrderScene($orderScene) - { - $this->orderScene = $orderScene; - $this->apiParas["order_scene"] = $orderScene; + { + $this->orderScene = $orderScene; + $this->apiParas["order_scene"] = $orderScene; } - + public function getOrderScene() - { - return $this->orderScene; + { + return $this->orderScene; } - + public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - $this->apiParas["page_no"] = $pageNo; + { + $this->pageNo = $pageNo; + $this->apiParas["page_no"] = $pageNo; } - + public function getPageNo() - { - return $this->pageNo; + { + return $this->pageNo; } - + public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - $this->apiParas["page_size"] = $pageSize; + { + $this->pageSize = $pageSize; + $this->apiParas["page_size"] = $pageSize; } - + public function getPageSize() - { - return $this->pageSize; + { + return $this->pageSize; } - + public function setPositionIndex($positionIndex) - { - $this->positionIndex = $positionIndex; - $this->apiParas["position_index"] = $positionIndex; + { + $this->positionIndex = $positionIndex; + $this->apiParas["position_index"] = $positionIndex; } - + public function getPositionIndex() - { - return $this->positionIndex; + { + return $this->positionIndex; } - + public function setQueryType($queryType) - { - $this->queryType = $queryType; - $this->apiParas["query_type"] = $queryType; + { + $this->queryType = $queryType; + $this->apiParas["query_type"] = $queryType; } - + public function getQueryType() - { - return $this->queryType; + { + return $this->queryType; } - + public function setStartTime($startTime) - { - $this->startTime = $startTime; - $this->apiParas["start_time"] = $startTime; + { + $this->startTime = $startTime; + $this->apiParas["start_time"] = $startTime; } - + public function getStartTime() - { - return $this->startTime; + { + return $this->startTime; } - + public function setTkStatus($tkStatus) - { - $this->tkStatus = $tkStatus; - $this->apiParas["tk_status"] = $tkStatus; + { + $this->tkStatus = $tkStatus; + $this->apiParas["tk_status"] = $tkStatus; } - + public function getTkStatus() - { - return $this->tkStatus; + { + return $this->tkStatus; } public function getApiMethodName() @@ -181,8 +181,8 @@ class TbkOrderDetailsGetRequest public function check() { - - RequestCheckUtil::checkNotNull($this->endTime,"endTime"); + + RequestCheckUtil::checkNotNull($this->endTime,"endTime"); RequestCheckUtil::checkNotNull($this->startTime,"startTime"); } diff --git a/src/service/taobao/bin/top/request/TbkRelationRefundRequest.php b/src/service/taobao/bin/top/request/TbkRelationRefundRequest.php index 554d183..d5a9c0f 100644 --- a/src/service/taobao/bin/top/request/TbkRelationRefundRequest.php +++ b/src/service/taobao/bin/top/request/TbkRelationRefundRequest.php @@ -6,23 +6,23 @@ * @since 1.0, 2020.03.23 */ class TbkRelationRefundRequest -{ - /** - * 参数option - **/ +{ + /** + * 参数option + **/ private $searchOption; private $apiParas = array(); - + public function setSearchOption($searchOption) - { - $this->searchOption = $searchOption; - $this->apiParas["search_option"] = $searchOption; + { + $this->searchOption = $searchOption; + $this->apiParas["search_option"] = $searchOption; } - + public function getSearchOption() - { - return $this->searchOption; + { + return $this->searchOption; } public function getApiMethodName() diff --git a/src/service/taobao/bin/top/request/TbkScInvitecodeGetRequest.php b/src/service/taobao/bin/top/request/TbkScInvitecodeGetRequest.php index 7e9ba07..8b8d46c 100644 --- a/src/service/taobao/bin/top/request/TbkScInvitecodeGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkScInvitecodeGetRequest.php @@ -6,55 +6,55 @@ * @since 1.0, 2020.10.30 */ class TbkScInvitecodeGetRequest -{ - /** - * 邀请码类型,1 - 渠道邀请,2 - 渠道裂变,3 -会员邀请 - **/ - private $codeType; - - /** - * 渠道推广的物料类型 - **/ - private $relationApp; - - /** - * 渠道关系ID - **/ +{ + /** + * 邀请码类型,1 - 渠道邀请,2 - 渠道裂变,3 -会员邀请 + **/ + private $codeType; + + /** + * 渠道推广的物料类型 + **/ + private $relationApp; + + /** + * 渠道关系ID + **/ private $relationId; private $apiParas = array(); - + public function setCodeType($codeType) - { - $this->codeType = $codeType; - $this->apiParas["code_type"] = $codeType; + { + $this->codeType = $codeType; + $this->apiParas["code_type"] = $codeType; } - + public function getCodeType() - { - return $this->codeType; + { + return $this->codeType; } - + public function setRelationApp($relationApp) - { - $this->relationApp = $relationApp; - $this->apiParas["relation_app"] = $relationApp; + { + $this->relationApp = $relationApp; + $this->apiParas["relation_app"] = $relationApp; } - + public function getRelationApp() - { - return $this->relationApp; + { + return $this->relationApp; } - + public function setRelationId($relationId) - { - $this->relationId = $relationId; - $this->apiParas["relation_id"] = $relationId; + { + $this->relationId = $relationId; + $this->apiParas["relation_id"] = $relationId; } - + public function getRelationId() - { - return $this->relationId; + { + return $this->relationId; } public function getApiMethodName() @@ -69,8 +69,8 @@ class TbkScInvitecodeGetRequest public function check() { - - RequestCheckUtil::checkNotNull($this->codeType,"codeType"); + + RequestCheckUtil::checkNotNull($this->codeType,"codeType"); RequestCheckUtil::checkNotNull($this->relationApp,"relationApp"); } diff --git a/src/service/taobao/bin/top/request/TbkScPublisherInfoGetRequest.php b/src/service/taobao/bin/top/request/TbkScPublisherInfoGetRequest.php index 5a67656..9d9ec17 100644 --- a/src/service/taobao/bin/top/request/TbkScPublisherInfoGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkScPublisherInfoGetRequest.php @@ -6,119 +6,119 @@ * @since 1.0, 2020.10.30 */ class TbkScPublisherInfoGetRequest -{ - /** - * 淘宝客外部用户标记,如自身系统账户ID;微信ID等 - **/ - private $externalId; - - /** - * 类型,必选 1:渠道信息;2:会员信息 - **/ - private $infoType; - - /** - * 第几页 - **/ - private $pageNo; - - /** - * 每页大小 - **/ - private $pageSize; - - /** - * 备案的场景:common(通用备案),etao(一淘备案),minietao(一淘小程序备案),offlineShop(线下门店备案),offlinePerson(线下个人备案)。如不填默认common。查询会员信息只需填写common即可 - **/ - private $relationApp; - - /** - * 渠道独占 - 渠道关系ID - **/ - private $relationId; - - /** - * 会员独占 - 会员运营ID - **/ +{ + /** + * 淘宝客外部用户标记,如自身系统账户ID;微信ID等 + **/ + private $externalId; + + /** + * 类型,必选 1:渠道信息;2:会员信息 + **/ + private $infoType; + + /** + * 第几页 + **/ + private $pageNo; + + /** + * 每页大小 + **/ + private $pageSize; + + /** + * 备案的场景:common(通用备案),etao(一淘备案),minietao(一淘小程序备案),offlineShop(线下门店备案),offlinePerson(线下个人备案)。如不填默认common。查询会员信息只需填写common即可 + **/ + private $relationApp; + + /** + * 渠道独占 - 渠道关系ID + **/ + private $relationId; + + /** + * 会员独占 - 会员运营ID + **/ private $specialId; private $apiParas = array(); - + public function setExternalId($externalId) - { - $this->externalId = $externalId; - $this->apiParas["external_id"] = $externalId; + { + $this->externalId = $externalId; + $this->apiParas["external_id"] = $externalId; } - + public function getExternalId() - { - return $this->externalId; + { + return $this->externalId; } - + public function setInfoType($infoType) - { - $this->infoType = $infoType; - $this->apiParas["info_type"] = $infoType; + { + $this->infoType = $infoType; + $this->apiParas["info_type"] = $infoType; } - + public function getInfoType() - { - return $this->infoType; + { + return $this->infoType; } - + public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - $this->apiParas["page_no"] = $pageNo; + { + $this->pageNo = $pageNo; + $this->apiParas["page_no"] = $pageNo; } - + public function getPageNo() - { - return $this->pageNo; + { + return $this->pageNo; } - + public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - $this->apiParas["page_size"] = $pageSize; + { + $this->pageSize = $pageSize; + $this->apiParas["page_size"] = $pageSize; } - + public function getPageSize() - { - return $this->pageSize; + { + return $this->pageSize; } - + public function setRelationApp($relationApp) - { - $this->relationApp = $relationApp; - $this->apiParas["relation_app"] = $relationApp; + { + $this->relationApp = $relationApp; + $this->apiParas["relation_app"] = $relationApp; } - + public function getRelationApp() - { - return $this->relationApp; + { + return $this->relationApp; } - + public function setRelationId($relationId) - { - $this->relationId = $relationId; - $this->apiParas["relation_id"] = $relationId; + { + $this->relationId = $relationId; + $this->apiParas["relation_id"] = $relationId; } - + public function getRelationId() - { - return $this->relationId; + { + return $this->relationId; } - + public function setSpecialId($specialId) - { - $this->specialId = $specialId; - $this->apiParas["special_id"] = $specialId; + { + $this->specialId = $specialId; + $this->apiParas["special_id"] = $specialId; } - + public function getSpecialId() - { - return $this->specialId; + { + return $this->specialId; } public function getApiMethodName() @@ -133,8 +133,8 @@ class TbkScPublisherInfoGetRequest public function check() { - - RequestCheckUtil::checkNotNull($this->infoType,"infoType"); + + RequestCheckUtil::checkNotNull($this->infoType,"infoType"); RequestCheckUtil::checkNotNull($this->relationApp,"relationApp"); } diff --git a/src/service/taobao/bin/top/request/TbkScPublisherInfoSaveRequest.php b/src/service/taobao/bin/top/request/TbkScPublisherInfoSaveRequest.php index c6705cf..a8446c5 100644 --- a/src/service/taobao/bin/top/request/TbkScPublisherInfoSaveRequest.php +++ b/src/service/taobao/bin/top/request/TbkScPublisherInfoSaveRequest.php @@ -6,119 +6,119 @@ * @since 1.0, 2020.10.30 */ class TbkScPublisherInfoSaveRequest -{ - /** - * 类型,必选 默认为1: - **/ - private $infoType; - - /** - * 淘宝客邀请渠道或会员的邀请码 - **/ - private $inviterCode; - - /** - * 媒体侧渠道备注 - **/ - private $note; - - /** - * 渠道备案 - 线下场景信息,1 - 门店,2- 学校,3 - 工厂,4 - 其他 - **/ - private $offlineScene; - - /** - * 渠道备案 - 线上场景信息,1 - 微信群,2- QQ群,3 - 其他 - **/ - private $onlineScene; - - /** - * 线下备案注册信息,字段包含: 电话号码(phoneNumber,必填),省(province,必填),市(city,必填),区县街道(location,必填),详细地址(detailAddress,必填),经营类型(career,线下个人必填),店铺类型(shopType,线下店铺必填),店铺名称(shopName,线下店铺必填),店铺证书类型(shopCertifyType,线下店铺选填),店铺证书编号(certifyNumber,线下店铺选填) - **/ - private $registerInfo; - - /** - * 渠道备案 - 来源,取链接的来源 - **/ +{ + /** + * 类型,必选 默认为1: + **/ + private $infoType; + + /** + * 淘宝客邀请渠道或会员的邀请码 + **/ + private $inviterCode; + + /** + * 媒体侧渠道备注 + **/ + private $note; + + /** + * 渠道备案 - 线下场景信息,1 - 门店,2- 学校,3 - 工厂,4 - 其他 + **/ + private $offlineScene; + + /** + * 渠道备案 - 线上场景信息,1 - 微信群,2- QQ群,3 - 其他 + **/ + private $onlineScene; + + /** + * 线下备案注册信息,字段包含: 电话号码(phoneNumber,必填),省(province,必填),市(city,必填),区县街道(location,必填),详细地址(detailAddress,必填),经营类型(career,线下个人必填),店铺类型(shopType,线下店铺必填),店铺名称(shopName,线下店铺必填),店铺证书类型(shopCertifyType,线下店铺选填),店铺证书编号(certifyNumber,线下店铺选填) + **/ + private $registerInfo; + + /** + * 渠道备案 - 来源,取链接的来源 + **/ private $relationFrom; private $apiParas = array(); - + public function setInfoType($infoType) - { - $this->infoType = $infoType; - $this->apiParas["info_type"] = $infoType; + { + $this->infoType = $infoType; + $this->apiParas["info_type"] = $infoType; } - + public function getInfoType() - { - return $this->infoType; + { + return $this->infoType; } - + public function setInviterCode($inviterCode) - { - $this->inviterCode = $inviterCode; - $this->apiParas["inviter_code"] = $inviterCode; + { + $this->inviterCode = $inviterCode; + $this->apiParas["inviter_code"] = $inviterCode; } - + public function getInviterCode() - { - return $this->inviterCode; + { + return $this->inviterCode; } - + public function setNote($note) - { - $this->note = $note; - $this->apiParas["note"] = $note; + { + $this->note = $note; + $this->apiParas["note"] = $note; } - + public function getNote() - { - return $this->note; + { + return $this->note; } - + public function setOfflineScene($offlineScene) - { - $this->offlineScene = $offlineScene; - $this->apiParas["offline_scene"] = $offlineScene; + { + $this->offlineScene = $offlineScene; + $this->apiParas["offline_scene"] = $offlineScene; } - + public function getOfflineScene() - { - return $this->offlineScene; + { + return $this->offlineScene; } - + public function setOnlineScene($onlineScene) - { - $this->onlineScene = $onlineScene; - $this->apiParas["online_scene"] = $onlineScene; + { + $this->onlineScene = $onlineScene; + $this->apiParas["online_scene"] = $onlineScene; } - + public function getOnlineScene() - { - return $this->onlineScene; + { + return $this->onlineScene; } - + public function setRegisterInfo($registerInfo) - { - $this->registerInfo = $registerInfo; - $this->apiParas["register_info"] = $registerInfo; + { + $this->registerInfo = $registerInfo; + $this->apiParas["register_info"] = $registerInfo; } - + public function getRegisterInfo() - { - return $this->registerInfo; + { + return $this->registerInfo; } - + public function setRelationFrom($relationFrom) - { - $this->relationFrom = $relationFrom; - $this->apiParas["relation_from"] = $relationFrom; + { + $this->relationFrom = $relationFrom; + $this->apiParas["relation_from"] = $relationFrom; } - + public function getRelationFrom() - { - return $this->relationFrom; + { + return $this->relationFrom; } public function getApiMethodName() @@ -133,8 +133,8 @@ class TbkScPublisherInfoSaveRequest public function check() { - - RequestCheckUtil::checkNotNull($this->infoType,"infoType"); + + RequestCheckUtil::checkNotNull($this->infoType,"infoType"); RequestCheckUtil::checkNotNull($this->inviterCode,"inviterCode"); } diff --git a/src/service/taobao/bin/top/request/TbkShopGetRequest.php b/src/service/taobao/bin/top/request/TbkShopGetRequest.php index cb28aff..251b267 100644 --- a/src/service/taobao/bin/top/request/TbkShopGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkShopGetRequest.php @@ -6,247 +6,247 @@ * @since 1.0, 2020.02.24 */ class TbkShopGetRequest -{ - /** - * 累计推广商品上限 - **/ - private $endAuctionCount; - - /** - * 淘客佣金比率上限,1~10000 - **/ - private $endCommissionRate; - - /** - * 信用等级上限,1~20 - **/ - private $endCredit; - - /** - * 店铺商品总数上限 - **/ - private $endTotalAction; - - /** - * 需返回的字段列表 - **/ - private $fields; - - /** - * 是否商城的店铺,设置为true表示该是属于淘宝商城的店铺,设置为false或不设置表示不判断这个属性 - **/ - private $isTmall; - - /** - * 第几页,默认1,1~100 - **/ - private $pageNo; - - /** - * 页大小,默认20,1~100 - **/ - private $pageSize; - - /** - * 链接形式:1:PC,2:无线,默认:1 - **/ - private $platform; - - /** - * 查询词 - **/ - private $q; - - /** - * 排序_des(降序),排序_asc(升序),佣金比率(commission_rate), 商品数量(auction_count),销售总数量(total_auction) - **/ - private $sort; - - /** - * 累计推广商品下限 - **/ - private $startAuctionCount; - - /** - * 淘客佣金比率下限,1~10000 - **/ - private $startCommissionRate; - - /** - * 信用等级下限,1~20 - **/ - private $startCredit; - - /** - * 店铺商品总数下限 - **/ +{ + /** + * 累计推广商品上限 + **/ + private $endAuctionCount; + + /** + * 淘客佣金比率上限,1~10000 + **/ + private $endCommissionRate; + + /** + * 信用等级上限,1~20 + **/ + private $endCredit; + + /** + * 店铺商品总数上限 + **/ + private $endTotalAction; + + /** + * 需返回的字段列表 + **/ + private $fields; + + /** + * 是否商城的店铺,设置为true表示该是属于淘宝商城的店铺,设置为false或不设置表示不判断这个属性 + **/ + private $isTmall; + + /** + * 第几页,默认1,1~100 + **/ + private $pageNo; + + /** + * 页大小,默认20,1~100 + **/ + private $pageSize; + + /** + * 链接形式:1:PC,2:无线,默认:1 + **/ + private $platform; + + /** + * 查询词 + **/ + private $q; + + /** + * 排序_des(降序),排序_asc(升序),佣金比率(commission_rate), 商品数量(auction_count),销售总数量(total_auction) + **/ + private $sort; + + /** + * 累计推广商品下限 + **/ + private $startAuctionCount; + + /** + * 淘客佣金比率下限,1~10000 + **/ + private $startCommissionRate; + + /** + * 信用等级下限,1~20 + **/ + private $startCredit; + + /** + * 店铺商品总数下限 + **/ private $startTotalAction; private $apiParas = array(); - + public function setEndAuctionCount($endAuctionCount) - { - $this->endAuctionCount = $endAuctionCount; - $this->apiParas["end_auction_count"] = $endAuctionCount; + { + $this->endAuctionCount = $endAuctionCount; + $this->apiParas["end_auction_count"] = $endAuctionCount; } - + public function getEndAuctionCount() - { - return $this->endAuctionCount; + { + return $this->endAuctionCount; } - + public function setEndCommissionRate($endCommissionRate) - { - $this->endCommissionRate = $endCommissionRate; - $this->apiParas["end_commission_rate"] = $endCommissionRate; + { + $this->endCommissionRate = $endCommissionRate; + $this->apiParas["end_commission_rate"] = $endCommissionRate; } - + public function getEndCommissionRate() - { - return $this->endCommissionRate; + { + return $this->endCommissionRate; } - + public function setEndCredit($endCredit) - { - $this->endCredit = $endCredit; - $this->apiParas["end_credit"] = $endCredit; + { + $this->endCredit = $endCredit; + $this->apiParas["end_credit"] = $endCredit; } - + public function getEndCredit() - { - return $this->endCredit; + { + return $this->endCredit; } - + public function setEndTotalAction($endTotalAction) - { - $this->endTotalAction = $endTotalAction; - $this->apiParas["end_total_action"] = $endTotalAction; + { + $this->endTotalAction = $endTotalAction; + $this->apiParas["end_total_action"] = $endTotalAction; } - + public function getEndTotalAction() - { - return $this->endTotalAction; + { + return $this->endTotalAction; } - + public function setFields($fields) - { - $this->fields = $fields; - $this->apiParas["fields"] = $fields; + { + $this->fields = $fields; + $this->apiParas["fields"] = $fields; } - + public function getFields() - { - return $this->fields; + { + return $this->fields; } - + public function setIsTmall($isTmall) - { - $this->isTmall = $isTmall; - $this->apiParas["is_tmall"] = $isTmall; + { + $this->isTmall = $isTmall; + $this->apiParas["is_tmall"] = $isTmall; } - + public function getIsTmall() - { - return $this->isTmall; + { + return $this->isTmall; } - + public function setPageNo($pageNo) - { - $this->pageNo = $pageNo; - $this->apiParas["page_no"] = $pageNo; + { + $this->pageNo = $pageNo; + $this->apiParas["page_no"] = $pageNo; } - + public function getPageNo() - { - return $this->pageNo; + { + return $this->pageNo; } - + public function setPageSize($pageSize) - { - $this->pageSize = $pageSize; - $this->apiParas["page_size"] = $pageSize; + { + $this->pageSize = $pageSize; + $this->apiParas["page_size"] = $pageSize; } - + public function getPageSize() - { - return $this->pageSize; + { + return $this->pageSize; } - + public function setPlatform($platform) - { - $this->platform = $platform; - $this->apiParas["platform"] = $platform; + { + $this->platform = $platform; + $this->apiParas["platform"] = $platform; } - + public function getPlatform() - { - return $this->platform; + { + return $this->platform; } - + public function setQ($q) - { - $this->q = $q; - $this->apiParas["q"] = $q; + { + $this->q = $q; + $this->apiParas["q"] = $q; } - + public function getQ() - { - return $this->q; + { + return $this->q; } - + public function setSort($sort) - { - $this->sort = $sort; - $this->apiParas["sort"] = $sort; + { + $this->sort = $sort; + $this->apiParas["sort"] = $sort; } - + public function getSort() - { - return $this->sort; + { + return $this->sort; } - + public function setStartAuctionCount($startAuctionCount) - { - $this->startAuctionCount = $startAuctionCount; - $this->apiParas["start_auction_count"] = $startAuctionCount; + { + $this->startAuctionCount = $startAuctionCount; + $this->apiParas["start_auction_count"] = $startAuctionCount; } - + public function getStartAuctionCount() - { - return $this->startAuctionCount; + { + return $this->startAuctionCount; } - + public function setStartCommissionRate($startCommissionRate) - { - $this->startCommissionRate = $startCommissionRate; - $this->apiParas["start_commission_rate"] = $startCommissionRate; + { + $this->startCommissionRate = $startCommissionRate; + $this->apiParas["start_commission_rate"] = $startCommissionRate; } - + public function getStartCommissionRate() - { - return $this->startCommissionRate; + { + return $this->startCommissionRate; } - + public function setStartCredit($startCredit) - { - $this->startCredit = $startCredit; - $this->apiParas["start_credit"] = $startCredit; + { + $this->startCredit = $startCredit; + $this->apiParas["start_credit"] = $startCredit; } - + public function getStartCredit() - { - return $this->startCredit; + { + return $this->startCredit; } - + public function setStartTotalAction($startTotalAction) - { - $this->startTotalAction = $startTotalAction; - $this->apiParas["start_total_action"] = $startTotalAction; + { + $this->startTotalAction = $startTotalAction; + $this->apiParas["start_total_action"] = $startTotalAction; } - + public function getStartTotalAction() - { - return $this->startTotalAction; + { + return $this->startTotalAction; } public function getApiMethodName() @@ -261,8 +261,8 @@ class TbkShopGetRequest public function check() { - - RequestCheckUtil::checkNotNull($this->fields,"fields"); + + RequestCheckUtil::checkNotNull($this->fields,"fields"); RequestCheckUtil::checkNotNull($this->q,"q"); } diff --git a/src/service/taobao/bin/top/request/TbkShopRecommendGetRequest.php b/src/service/taobao/bin/top/request/TbkShopRecommendGetRequest.php index c42de6e..3f80398 100644 --- a/src/service/taobao/bin/top/request/TbkShopRecommendGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkShopRecommendGetRequest.php @@ -6,71 +6,71 @@ * @since 1.0, 2020.10.08 */ class TbkShopRecommendGetRequest -{ - /** - * 返回数量,默认20,最大值40 - **/ - private $count; - - /** - * 需返回的字段列表 - **/ - private $fields; - - /** - * 链接形式:1:PC,2:无线,默认:1 - **/ - private $platform; - - /** - * 卖家Id - **/ +{ + /** + * 返回数量,默认20,最大值40 + **/ + private $count; + + /** + * 需返回的字段列表 + **/ + private $fields; + + /** + * 链接形式:1:PC,2:无线,默认:1 + **/ + private $platform; + + /** + * 卖家Id + **/ private $userId; private $apiParas = array(); - + public function setCount($count) - { - $this->count = $count; - $this->apiParas["count"] = $count; + { + $this->count = $count; + $this->apiParas["count"] = $count; } - + public function getCount() - { - return $this->count; + { + return $this->count; } - + public function setFields($fields) - { - $this->fields = $fields; - $this->apiParas["fields"] = $fields; + { + $this->fields = $fields; + $this->apiParas["fields"] = $fields; } - + public function getFields() - { - return $this->fields; + { + return $this->fields; } - + public function setPlatform($platform) - { - $this->platform = $platform; - $this->apiParas["platform"] = $platform; + { + $this->platform = $platform; + $this->apiParas["platform"] = $platform; } - + public function getPlatform() - { - return $this->platform; + { + return $this->platform; } - + public function setUserId($userId) - { - $this->userId = $userId; - $this->apiParas["user_id"] = $userId; + { + $this->userId = $userId; + $this->apiParas["user_id"] = $userId; } - + public function getUserId() - { - return $this->userId; + { + return $this->userId; } public function getApiMethodName() @@ -85,8 +85,8 @@ class TbkShopRecommendGetRequest public function check() { - - RequestCheckUtil::checkNotNull($this->fields,"fields"); + + RequestCheckUtil::checkNotNull($this->fields,"fields"); RequestCheckUtil::checkNotNull($this->userId,"userId"); } diff --git a/src/service/taobao/bin/top/request/TbkSpreadGetRequest.php b/src/service/taobao/bin/top/request/TbkSpreadGetRequest.php index eddc170..430ec05 100644 --- a/src/service/taobao/bin/top/request/TbkSpreadGetRequest.php +++ b/src/service/taobao/bin/top/request/TbkSpreadGetRequest.php @@ -6,23 +6,23 @@ * @since 1.0, 2020.02.24 */ class TbkSpreadGetRequest -{ - /** - * 请求列表,内部包含多个url - **/ +{ + /** + * 请求列表,内部包含多个url + **/ private $requests; private $apiParas = array(); - + public function setRequests($requests) - { - $this->requests = $requests; - $this->apiParas["requests"] = $requests; + { + $this->requests = $requests; + $this->apiParas["requests"] = $requests; } - + public function getRequests() - { - return $this->requests; + { + return $this->requests; } public function getApiMethodName() diff --git a/src/service/taobao/bin/top/request/TbkTpwdCreateRequest.php b/src/service/taobao/bin/top/request/TbkTpwdCreateRequest.php index 31fa6cf..b36d8c0 100644 --- a/src/service/taobao/bin/top/request/TbkTpwdCreateRequest.php +++ b/src/service/taobao/bin/top/request/TbkTpwdCreateRequest.php @@ -6,87 +6,87 @@ * @since 1.0, 2020.10.08 */ class TbkTpwdCreateRequest -{ - /** - * [已废弃]扩展字段JSON格式 - **/ - private $ext; - - /** - * 口令弹框logoURL - **/ - private $logo; - - /** - * 口令弹框内容 - **/ - private $text; - - /** - * 口令跳转目标页 - **/ - private $url; - - /** - * 生成口令的淘宝用户ID - **/ +{ + /** + * [已废弃]扩展字段JSON格式 + **/ + private $ext; + + /** + * 口令弹框logoURL + **/ + private $logo; + + /** + * 口令弹框内容 + **/ + private $text; + + /** + * 口令跳转目标页 + **/ + private $url; + + /** + * 生成口令的淘宝用户ID + **/ private $userId; private $apiParas = array(); - + public function setExt($ext) - { - $this->ext = $ext; - $this->apiParas["ext"] = $ext; + { + $this->ext = $ext; + $this->apiParas["ext"] = $ext; } - + public function getExt() - { - return $this->ext; + { + return $this->ext; } - + public function setLogo($logo) - { - $this->logo = $logo; - $this->apiParas["logo"] = $logo; + { + $this->logo = $logo; + $this->apiParas["logo"] = $logo; } - + public function getLogo() - { - return $this->logo; + { + return $this->logo; } - + public function setText($text) - { - $this->text = $text; - $this->apiParas["text"] = $text; + { + $this->text = $text; + $this->apiParas["text"] = $text; } - + public function getText() - { - return $this->text; + { + return $this->text; } - + public function setUrl($url) - { - $this->url = $url; - $this->apiParas["url"] = $url; + { + $this->url = $url; + $this->apiParas["url"] = $url; } - + public function getUrl() - { - return $this->url; + { + return $this->url; } - + public function setUserId($userId) - { - $this->userId = $userId; - $this->apiParas["user_id"] = $userId; + { + $this->userId = $userId; + $this->apiParas["user_id"] = $userId; } - + public function getUserId() - { - return $this->userId; + { + return $this->userId; } public function getApiMethodName() @@ -101,8 +101,8 @@ class TbkTpwdCreateRequest public function check() { - - RequestCheckUtil::checkNotNull($this->text,"text"); + + RequestCheckUtil::checkNotNull($this->text,"text"); RequestCheckUtil::checkNotNull($this->url,"url"); } diff --git a/src/service/taobao/bin/top/request/TopAuthTokenCreateRequest.php b/src/service/taobao/bin/top/request/TopAuthTokenCreateRequest.php index 8971833..2475217 100644 --- a/src/service/taobao/bin/top/request/TopAuthTokenCreateRequest.php +++ b/src/service/taobao/bin/top/request/TopAuthTokenCreateRequest.php @@ -6,39 +6,39 @@ * @since 1.0, 2018.07.25 */ class TopAuthTokenCreateRequest -{ - /** - * 授权code,grantType==authorization_code 时需要 - **/ - private $code; - - /** - * 与生成code的uuid配对 - **/ +{ + /** + * 授权code,grantType==authorization_code 时需要 + **/ + private $code; + + /** + * 与生成code的uuid配对 + **/ private $uuid; private $apiParas = array(); - + public function setCode($code) - { - $this->code = $code; - $this->apiParas["code"] = $code; + { + $this->code = $code; + $this->apiParas["code"] = $code; } - + public function getCode() - { - return $this->code; + { + return $this->code; } - + public function setUuid($uuid) - { - $this->uuid = $uuid; - $this->apiParas["uuid"] = $uuid; + { + $this->uuid = $uuid; + $this->apiParas["uuid"] = $uuid; } - + public function getUuid() - { - return $this->uuid; + { + return $this->uuid; } public function getApiMethodName() @@ -53,7 +53,7 @@ class TopAuthTokenCreateRequest public function check() { - + RequestCheckUtil::checkNotNull($this->code,"code"); } diff --git a/src/service/taobao/bin/top/request/TopAuthTokenRefreshRequest.php b/src/service/taobao/bin/top/request/TopAuthTokenRefreshRequest.php index 32d6462..48d013f 100644 --- a/src/service/taobao/bin/top/request/TopAuthTokenRefreshRequest.php +++ b/src/service/taobao/bin/top/request/TopAuthTokenRefreshRequest.php @@ -6,23 +6,23 @@ * @since 1.0, 2019.11.26 */ class TopAuthTokenRefreshRequest -{ - /** - * grantType==refresh_token 时需要 - **/ +{ + /** + * grantType==refresh_token 时需要 + **/ private $refreshToken; private $apiParas = array(); - + public function setRefreshToken($refreshToken) - { - $this->refreshToken = $refreshToken; - $this->apiParas["refresh_token"] = $refreshToken; + { + $this->refreshToken = $refreshToken; + $this->apiParas["refresh_token"] = $refreshToken; } - + public function getRefreshToken() - { - return $this->refreshToken; + { + return $this->refreshToken; } public function getApiMethodName() @@ -37,7 +37,7 @@ class TopAuthTokenRefreshRequest public function check() { - + RequestCheckUtil::checkNotNull($this->refreshToken,"refreshToken"); } diff --git a/src/service/taobao/bin/top/request/TopSdkFeedbackUploadRequest.php b/src/service/taobao/bin/top/request/TopSdkFeedbackUploadRequest.php index 686d4fa..80045b8 100644 --- a/src/service/taobao/bin/top/request/TopSdkFeedbackUploadRequest.php +++ b/src/service/taobao/bin/top/request/TopSdkFeedbackUploadRequest.php @@ -6,39 +6,39 @@ * @since 1.0, 2020.08.19 */ class TopSdkFeedbackUploadRequest -{ - /** - * 具体内容,json形式 - **/ - private $content; - - /** - * 1、回传加密信息 - **/ +{ + /** + * 具体内容,json形式 + **/ + private $content; + + /** + * 1、回传加密信息 + **/ private $type; private $apiParas = array(); - + public function setContent($content) - { - $this->content = $content; - $this->apiParas["content"] = $content; + { + $this->content = $content; + $this->apiParas["content"] = $content; } - + public function getContent() - { - return $this->content; + { + return $this->content; } - + public function setType($type) - { - $this->type = $type; - $this->apiParas["type"] = $type; + { + $this->type = $type; + $this->apiParas["type"] = $type; } - + public function getType() - { - return $this->type; + { + return $this->type; } public function getApiMethodName() @@ -53,7 +53,7 @@ class TopSdkFeedbackUploadRequest public function check() { - + RequestCheckUtil::checkNotNull($this->type,"type"); } diff --git a/src/service/taobao/bin/top/request/TopSecretGetRequest.php b/src/service/taobao/bin/top/request/TopSecretGetRequest.php index 85e9aab..e91acc5 100644 --- a/src/service/taobao/bin/top/request/TopSecretGetRequest.php +++ b/src/service/taobao/bin/top/request/TopSecretGetRequest.php @@ -6,55 +6,55 @@ * @since 1.0, 2019.11.07 */ class TopSecretGetRequest -{ - /** - * 自定义用户id - **/ - private $customerUserId; - - /** - * 伪随机数 - **/ - private $randomNum; - - /** - * 秘钥版本号 - **/ +{ + /** + * 自定义用户id + **/ + private $customerUserId; + + /** + * 伪随机数 + **/ + private $randomNum; + + /** + * 秘钥版本号 + **/ private $secretVersion; private $apiParas = array(); - + public function setCustomerUserId($customerUserId) - { - $this->customerUserId = $customerUserId; - $this->apiParas["customer_user_id"] = $customerUserId; + { + $this->customerUserId = $customerUserId; + $this->apiParas["customer_user_id"] = $customerUserId; } - + public function getCustomerUserId() - { - return $this->customerUserId; + { + return $this->customerUserId; } - + public function setRandomNum($randomNum) - { - $this->randomNum = $randomNum; - $this->apiParas["random_num"] = $randomNum; + { + $this->randomNum = $randomNum; + $this->apiParas["random_num"] = $randomNum; } - + public function getRandomNum() - { - return $this->randomNum; + { + return $this->randomNum; } - + public function setSecretVersion($secretVersion) - { - $this->secretVersion = $secretVersion; - $this->apiParas["secret_version"] = $secretVersion; + { + $this->secretVersion = $secretVersion; + $this->apiParas["secret_version"] = $secretVersion; } - + public function getSecretVersion() - { - return $this->secretVersion; + { + return $this->secretVersion; } public function getApiMethodName() @@ -69,7 +69,7 @@ class TopSecretGetRequest public function check() { - + RequestCheckUtil::checkNotNull($this->randomNum,"randomNum"); } diff --git a/src/service/taobao/bin/top/request/TopSecretRegisterRequest.php b/src/service/taobao/bin/top/request/TopSecretRegisterRequest.php index e491bb7..0de7bf6 100644 --- a/src/service/taobao/bin/top/request/TopSecretRegisterRequest.php +++ b/src/service/taobao/bin/top/request/TopSecretRegisterRequest.php @@ -6,23 +6,23 @@ * @since 1.0, 2018.07.25 */ class TopSecretRegisterRequest -{ - /** - * 用户id,保证唯一 - **/ +{ + /** + * 用户id,保证唯一 + **/ private $userId; private $apiParas = array(); - + public function setUserId($userId) - { - $this->userId = $userId; - $this->apiParas["user_id"] = $userId; + { + $this->userId = $userId; + $this->apiParas["user_id"] = $userId; } - + public function getUserId() - { - return $this->userId; + { + return $this->userId; } public function getApiMethodName() diff --git a/src/service/tencent/CosService.php b/src/service/tencent/CosService.php index c1a9011..5eb4713 100644 --- a/src/service/tencent/CosService.php +++ b/src/service/tencent/CosService.php @@ -1,103 +1,103 @@ -secretId = $secretId; - return $this; - } - - /** - * @param string $secretKey - * @return $this - */ - public function secretKey(string $secretKey): self - { - $this->secretKey = $secretKey; - return $this; - } - - /** - * @param string $region - * @return $this - */ - public function region(string $region): self - { - $this->region = $region; - return $this; - } - - /** - * @param string $bucket - * @return $this - */ - public function bucket(string $bucket): self - { - $this->bucket = $bucket; - return $this; - } - - /** - * @param string $object - * @param string $filePath - * @return bool - */ - public function upload(string $object, string $filePath): bool - { - $cosClient = new Client([ - 'region' => $this->region, - 'schema' => 'https', - 'credentials' => [ - 'secretId' => $this->secretId, - 'secretKey' => $this->secretKey - ] - ]); - $key = $object; - $file = fopen($filePath, "rb"); - if ($file) { - $cosClient->putObject([ - 'Bucket' => $this->bucket, - 'Key' => $key, - 'Body' => $file - ]); - return true; - } - - return false; - } -} +secretId = $secretId; + return $this; + } + + /** + * @param string $secretKey + * @return $this + */ + public function secretKey(string $secretKey): self + { + $this->secretKey = $secretKey; + return $this; + } + + /** + * @param string $region + * @return $this + */ + public function region(string $region): self + { + $this->region = $region; + return $this; + } + + /** + * @param string $bucket + * @return $this + */ + public function bucket(string $bucket): self + { + $this->bucket = $bucket; + return $this; + } + + /** + * @param string $object + * @param string $filePath + * @return bool + */ + public function upload(string $object, string $filePath): bool + { + $cosClient = new Client([ + 'region' => $this->region, + 'schema' => 'https', + 'credentials' => [ + 'secretId' => $this->secretId, + 'secretKey' => $this->secretKey + ] + ]); + $key = $object; + $file = fopen($filePath, "rb"); + if ($file) { + $cosClient->putObject([ + 'Bucket' => $this->bucket, + 'Key' => $key, + 'Body' => $file + ]); + return true; + } + + return false; + } +} diff --git a/src/service/tencent/LbsService.php b/src/service/tencent/LbsService.php index f9a4aee..d5fca3e 100644 --- a/src/service/tencent/LbsService.php +++ b/src/service/tencent/LbsService.php @@ -1,262 +1,262 @@ -key = $key; - return $this; - } - - /** - * 请求参数 - * @param array $param - * @return $this - */ - public function param(array $param): self - { - $this->param = $param; - return $this; - } - - /** - * IP定位 - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceIp - * @return $this - */ - public function ip(): self - { - $this->api_url = 'https://apis.map.qq.com/ws/location/v1/ip'; - return $this; - } - - /** - * 行政区划 - 获取全部行政区划数据 - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceDistrict - * @return $this - */ - public function districtList(): self - { - $this->api_url = "https://apis.map.qq.com/ws/district/v1/list"; - return $this; - } - - /** - * 行政区划 - 获取全部行政区划数据 - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceDistrict - * @return $this - */ - public function districtGetChildren(): self - { - $this->api_url = "https://apis.map.qq.com/ws/district/v1/getchildren"; - return $this; - } - - /** - * 行政区划 - 获取全部行政区划数据 - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceDistrict - * @return $this - */ - public function districtSearch(): self - { - $this->api_url = "https://apis.map.qq.com/ws/district/v1/search"; - return $this; - } - - /** - * 坐标转换 - 实现从其它地图供应商坐标系或标准GPS坐标系,批量转换到腾讯地图坐标系。 - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceTranslate - * @return $this - */ - public function translate(): self - { - $this->api_url = "https://apis.map.qq.com/ws/coord/v1/translate"; - return $this; - } - - /** - * 批量距离计算(矩阵) - 距离矩阵(DistanceMatrix),用于批量计算一组起终点的路面距离(或称导航距离),可应用于网约车派单、多目的地最优路径智能计算等场景中,支持驾车、步行、骑行多种交通方式,满足不同应用需要。 - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceMatrix - * @return $this - */ - public function matrix(): self - { - $this->api_url = "https://apis.map.qq.com/ws/distance/v1/matrix"; - return $this; - } - - /** - * 路线规划(驾车/公交/步骑) - 腾讯地图Direction API,提供多种交通方式的路线计算能力,包括: - * 1. 驾车(driving):支持结合实时路况、少收费、不走高速等多种偏好,精准预估到达时间(ETA); - * 2. 步行(walking):基于步行路线规划。 - * 3. 骑行(bicycling):基于自行车的骑行路线; - * 4. 公交(transit):支持公共汽车、地铁等多种公共交通工具的换乘方案计算; - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceRoute - * @return $this - */ - public function route(): self - { - $this->api_url = "https://apis.map.qq.com/ws/direction/v1/driving/"; - return $this; - } - - /** - * 地址解析(地址转坐标) - 本接口提供由地址描述到所述位置坐标的转换,与逆地址解析的过程正好相反。 - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceGeocoder - * @return $this - */ - public function geoCoder(): self - { - $this->api_url = "https://apis.map.qq.com/ws/geocoder/v1/"; - return $this; - } - - /** - * 逆地址解析(坐标位置描述) - 本接口提供由坐标到坐标所在位置的文字描述的转换。输入坐标返回地理位置信息和附近poi列表。目前应用于物流、出行、O2O、社交等场景。服务响应速度快、稳定,支撑亿级调用。 - * 1)满足传统对省市区、乡镇村、门牌号、道路及交叉口、河流、湖泊、桥、poi列表的需求。 - * 2)业界首创,提供易于人理解的地址描述:海淀区中钢国际广场(欧美汇购物中心北)。 - * 3)提供精准的商圈、知名的大型区域、附近知名的一级地标、代表当前位置的二级地标等。 - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceGcoder - * @return $this - */ - public function gCoder(): self - { - $this->api_url = "https://apis.map.qq.com/ws/geocoder/v1/"; - return $this; - } - - /** - * 关键词输入提示 - 用于获取输入关键字的补完与提示,帮助用户快速输入。本接口为纯HTTP数据接口,需配合前端程序实现Autocomplete(自动完成)的效果。 - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceSuggestion - * @return $this - */ - public function suggestion(): self - { - $this->api_url = "https://apis.map.qq.com/ws/place/v1/suggestion"; - return $this; - } - - /** - * 地点搜索 - 地点搜索(search接口),提供三类范围条件的搜索功能: - * 指定城市的地点搜索:如在北京搜索餐馆; - * 圆形区域的地点搜索:一般用于指定位置的周边(附近)地点搜索,如,搜索颐和园附近的酒店; - * 矩形区域的地点搜索:在地图应用中,往往用于视野内搜索,因为显示地图的区域是个矩形。 - * https://lbs.qq.com/service/webService/webServiceGuide/webServiceSuggestion - * @return $this - */ - public function search(): self - { - $this->api_url = "https://apis.map.qq.com/ws/place/v1/search"; - return $this; - } - - /** - * @return array|mixed - * @throws DtaException - */ - public function toArray() - { - //首先检测是否支持curl - if (!extension_loaded("curl")) { - throw new HttpException(404, '请开启curl模块!'); - } - if (empty($this->key)) { - throw new DtaException('开发密钥不能为空'); - } - if (empty($this->api_url)) { - throw new DtaException('请检查需要调用的接口'); - } - $this->param['key'] = $this->key; - $this->http(); - // 正常 - if (is_array($this->output)) { - return $this->output; - } - if (is_object($this->output)) { - $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); - } - $this->output = json_decode($this->output, true); - return $this->output; - } - - /** - * 网络请求 - */ - private function http(): void - { - //组织参数 - $strParam = $this->createStrParam(); - $result = file_get_contents($this->api_url . "?{$strParam}"); - $result = json_decode($result, true); - $this->output = $result; - } - - /** - * 组参 - * @return string - */ - private function createStrParam(): string - { - $strParam = ''; - foreach ($this->param as $key => $val) { - if ($key !== '' && $val !== '') { - $strParam .= $key . '=' . urlencode($val) . '&'; - } - } - return $strParam; - } +key = $key; + return $this; + } + + /** + * 请求参数 + * @param array $param + * @return $this + */ + public function param(array $param): self + { + $this->param = $param; + return $this; + } + + /** + * IP定位 + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceIp + * @return $this + */ + public function ip(): self + { + $this->api_url = 'https://apis.map.qq.com/ws/location/v1/ip'; + return $this; + } + + /** + * 行政区划 - 获取全部行政区划数据 + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceDistrict + * @return $this + */ + public function districtList(): self + { + $this->api_url = "https://apis.map.qq.com/ws/district/v1/list"; + return $this; + } + + /** + * 行政区划 - 获取全部行政区划数据 + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceDistrict + * @return $this + */ + public function districtGetChildren(): self + { + $this->api_url = "https://apis.map.qq.com/ws/district/v1/getchildren"; + return $this; + } + + /** + * 行政区划 - 获取全部行政区划数据 + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceDistrict + * @return $this + */ + public function districtSearch(): self + { + $this->api_url = "https://apis.map.qq.com/ws/district/v1/search"; + return $this; + } + + /** + * 坐标转换 - 实现从其它地图供应商坐标系或标准GPS坐标系,批量转换到腾讯地图坐标系。 + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceTranslate + * @return $this + */ + public function translate(): self + { + $this->api_url = "https://apis.map.qq.com/ws/coord/v1/translate"; + return $this; + } + + /** + * 批量距离计算(矩阵) - 距离矩阵(DistanceMatrix),用于批量计算一组起终点的路面距离(或称导航距离),可应用于网约车派单、多目的地最优路径智能计算等场景中,支持驾车、步行、骑行多种交通方式,满足不同应用需要。 + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceMatrix + * @return $this + */ + public function matrix(): self + { + $this->api_url = "https://apis.map.qq.com/ws/distance/v1/matrix"; + return $this; + } + + /** + * 路线规划(驾车/公交/步骑) - 腾讯地图Direction API,提供多种交通方式的路线计算能力,包括: + * 1. 驾车(driving):支持结合实时路况、少收费、不走高速等多种偏好,精准预估到达时间(ETA); + * 2. 步行(walking):基于步行路线规划。 + * 3. 骑行(bicycling):基于自行车的骑行路线; + * 4. 公交(transit):支持公共汽车、地铁等多种公共交通工具的换乘方案计算; + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceRoute + * @return $this + */ + public function route(): self + { + $this->api_url = "https://apis.map.qq.com/ws/direction/v1/driving/"; + return $this; + } + + /** + * 地址解析(地址转坐标) - 本接口提供由地址描述到所述位置坐标的转换,与逆地址解析的过程正好相反。 + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceGeocoder + * @return $this + */ + public function geoCoder(): self + { + $this->api_url = "https://apis.map.qq.com/ws/geocoder/v1/"; + return $this; + } + + /** + * 逆地址解析(坐标位置描述) - 本接口提供由坐标到坐标所在位置的文字描述的转换。输入坐标返回地理位置信息和附近poi列表。目前应用于物流、出行、O2O、社交等场景。服务响应速度快、稳定,支撑亿级调用。 + * 1)满足传统对省市区、乡镇村、门牌号、道路及交叉口、河流、湖泊、桥、poi列表的需求。 + * 2)业界首创,提供易于人理解的地址描述:海淀区中钢国际广场(欧美汇购物中心北)。 + * 3)提供精准的商圈、知名的大型区域、附近知名的一级地标、代表当前位置的二级地标等。 + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceGcoder + * @return $this + */ + public function gCoder(): self + { + $this->api_url = "https://apis.map.qq.com/ws/geocoder/v1/"; + return $this; + } + + /** + * 关键词输入提示 - 用于获取输入关键字的补完与提示,帮助用户快速输入。本接口为纯HTTP数据接口,需配合前端程序实现Autocomplete(自动完成)的效果。 + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceSuggestion + * @return $this + */ + public function suggestion(): self + { + $this->api_url = "https://apis.map.qq.com/ws/place/v1/suggestion"; + return $this; + } + + /** + * 地点搜索 - 地点搜索(search接口),提供三类范围条件的搜索功能: + * 指定城市的地点搜索:如在北京搜索餐馆; + * 圆形区域的地点搜索:一般用于指定位置的周边(附近)地点搜索,如,搜索颐和园附近的酒店; + * 矩形区域的地点搜索:在地图应用中,往往用于视野内搜索,因为显示地图的区域是个矩形。 + * https://lbs.qq.com/service/webService/webServiceGuide/webServiceSuggestion + * @return $this + */ + public function search(): self + { + $this->api_url = "https://apis.map.qq.com/ws/place/v1/search"; + return $this; + } + + /** + * @return array|mixed + * @throws DtaException + */ + public function toArray() + { + //首先检测是否支持curl + if (!extension_loaded("curl")) { + throw new HttpException(404, '请开启curl模块!'); + } + if (empty($this->key)) { + throw new DtaException('开发密钥不能为空'); + } + if (empty($this->api_url)) { + throw new DtaException('请检查需要调用的接口'); + } + $this->param['key'] = $this->key; + $this->http(); + // 正常 + if (is_array($this->output)) { + return $this->output; + } + if (is_object($this->output)) { + $this->output = json_encode($this->output, JSON_UNESCAPED_UNICODE); + } + $this->output = json_decode($this->output, true); + return $this->output; + } + + /** + * 网络请求 + */ + private function http(): void + { + //组织参数 + $strParam = $this->createStrParam(); + $result = file_get_contents($this->api_url . "?{$strParam}"); + $result = json_decode($result, true); + $this->output = $result; + } + + /** + * 组参 + * @return string + */ + private function createStrParam(): string + { + $strParam = ''; + foreach ($this->param as $key => $val) { + if ($key !== '' && $val !== '') { + $strParam .= $key . '=' . urlencode($val) . '&'; + } + } + return $strParam; + } } \ No newline at end of file diff --git a/src/service/upyun/UssService.php b/src/service/upyun/UssService.php index b4465ce..8c4e41d 100644 --- a/src/service/upyun/UssService.php +++ b/src/service/upyun/UssService.php @@ -1,81 +1,81 @@ -serviceName = $serviceName; - return $this; - } - - /** - * @param string $operatorName - * @return $this - */ - public function operatorName(string $operatorName) - { - $this->operatorName = $operatorName; - return $this; - } - - /** - * @param string $operatorPassword - * @return $this - */ - public function operatorPassword(string $operatorPassword) - { - $this->operatorPassword = $operatorPassword; - return $this; - } - - /** - * @param string $object - * @param string $filePath - * @return bool - * @throws Exception - */ - public function upload(string $object, string $filePath): bool - { - $serviceConfig = new Config($this->serviceName, $this->operatorName, $this->operatorPassword); - $client = new Upyun($serviceConfig); - $file = fopen($filePath, 'r'); - $client->write($object, $file); - return true; - } -} +serviceName = $serviceName; + return $this; + } + + /** + * @param string $operatorName + * @return $this + */ + public function operatorName(string $operatorName) + { + $this->operatorName = $operatorName; + return $this; + } + + /** + * @param string $operatorPassword + * @return $this + */ + public function operatorPassword(string $operatorPassword) + { + $this->operatorPassword = $operatorPassword; + return $this; + } + + /** + * @param string $object + * @param string $filePath + * @return bool + * @throws Exception + */ + public function upload(string $object, string $filePath): bool + { + $serviceConfig = new Config($this->serviceName, $this->operatorName, $this->operatorPassword); + $client = new Upyun($serviceConfig); + $file = fopen($filePath, 'r'); + $client->write($object, $file); + return true; + } +} diff --git a/src/service/wechat/MiniService.php b/src/service/wechat/MiniService.php index c72462d..c1abe68 100644 --- a/src/service/wechat/MiniService.php +++ b/src/service/wechat/MiniService.php @@ -1,897 +1,897 @@ -app_id = $appId; - return $this; - } - - /** - * @param string $appSecret - * @return $this - */ - public function appSecret(string $appSecret) - { - $this->app_secret = $appSecret; - return $this; - } - - /** - * 驱动方式 - * @param string $cache - * @return $this - */ - public function cache(string $cache): self - { - $this->cache = $cache; - return $this; - } - - /** - * 获取配置信息 - * @return $this - */ - private function getConfig(): self - { - $this->cache = config('dtapp.wechat.mini.cache'); - $this->app_id = config('dtapp.wechat.mini.app_id'); - $this->app_secret = config('dtapp.wechat.mini.app_secret'); - return $this; - } - - /** - * 用户支付完成后,获取该用户的 UnionId,无需用户授权 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/user-info/auth.getPaidUnionId.html - * @param string $openid - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function getPaidUnionId(string $openid) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxa/getpaidunionid?access_token={$accessToken['access_token']}&openid={$openid}"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 获取小程序二维码,适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.createQRCode.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function createWxaQrCode(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(false); - } - - /** - * 获取小程序码,适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function getWxaCode(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxa/getwxacode?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(false); - } - - /** - * 获取小程序码,适用于需要的码数量极多的业务场景。通过该接口生成的小程序码,永久有效,数量暂无限制 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function getWxaCodeUnLimit(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(false); - } - - /** - * 组合模板并添加至帐号下的个人模板库 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.addTemplate.html - * @param array $data - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function addTemplate(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/newtmpl/addtemplate?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->toArray(); - } - - /** - * 删除帐号下的个人模板 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.deleteTemplate.html - * @param string $priTmplId 要删除的模板id - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function deleteTemplate(string $priTmplId) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/newtmpl/deltemplate?access_token={$accessToken['access_token']}"; - $data = [ - 'priTmplId' => $priTmplId - ]; - return HttpService::instance() - ->url($url) - ->data($data) - ->toArray(); - } - - /** - * 获取小程序账号的类目 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getCategory.html - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function getCategory() - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/newtmpl/getcategory?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 获取模板标题下的关键词列表 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getPubTemplateKeyWordsById.html - * @param string $tid 模板标题 id - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function getPubTemplateKeyWordsById(string $tid) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/newtmpl/getpubtemplatekeywords?access_token={$accessToken['access_token']}"; - $data = [ - 'tid' => $tid - ]; - return HttpService::instance() - ->url($url) - ->data($data) - ->toArray(); - } - - /** - * 获取帐号所属类目下的公共模板标题 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getPubTemplateTitleList.html - * @param array $data - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function getPubTemplateTitleList(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/newtmpl/getpubtemplatetitles?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->toArray(); - } - - /** - * 获取当前帐号下的个人模板列表 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getTemplateList.html - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function getTemplateList() - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/newtmpl/gettemplate?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 发送订阅消息 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html - * @param array $data - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function subscribeMessageSend(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 统一服务消息 - 下发小程序和公众号统一的服务消息 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/uniform-message/uniformMessage.send.html - * @param array $data - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function uniformMessageSend(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 登录凭证校验 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html - * @param string $js_code - * @return bool|mixed|string - * @throws DtaException - */ - public function code2Session(string $js_code) - { - if (empty($this->app_id) || empty($this->app_secret)) { - $this->getConfig(); - } - if (empty($this->app_id)) { - throw new DtaException('请检查app_id参数'); - } - if (empty($this->app_secret)) { - throw new DtaException('请检查app_secret参数'); - } - $this->grant_type = "authorization_code"; - $url = "https://api.weixin.qq.com/sns/jscode2session?appid={$this->app_id}&secret={$this->app_secret}&js_code={$js_code}&grant_type={$this->grant_type}"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 检验数据的真实性,并且获取解密后的明文. - * @param string $js_code - * @param string $encrypted_data - * @param string $iv - * @return bool|mixed - * @throws DtaException - */ - public function userInfo(string $js_code, string $encrypted_data, string $iv) - { - $session = $this->code2Session($js_code); - if (!isset($session['openid'])) { - return false; - } - $result = openssl_decrypt(base64_decode($encrypted_data), "AES-128-CBC", base64_decode($session['session_key']), 1, base64_decode($iv)); - return json_decode($result, true); - } - - /** - * 数据签名校验,并且获取解密后的明文. - * @param string $js_code - * @param string $encrypted_data - * @param string $iv - * @return mixed - * @throws DtaException - */ - public function userPhone(string $js_code, string $encrypted_data, string $iv) - { - $session = $this->code2Session($js_code); - if (!isset($session['openid'])) { - return false; - } - $result = openssl_decrypt(base64_decode($encrypted_data), "AES-128-CBC", base64_decode($session['session_key']), 1, base64_decode($iv)); - return json_decode($result, true); - } - - /** - * 数据签名校验,并且获取解密后的明文. - * @param string $session_key - * @param string $encrypted_data - * @param string $iv - * @return mixed - */ - public function decode(string $session_key, string $encrypted_data, string $iv) - { - $result = openssl_decrypt(base64_decode($encrypted_data), "AES-128-CBC", base64_decode($session_key), 1, base64_decode($iv)); - return json_decode($result, true); - } - - /** - * 【小程序直播】直播间管理接口 - 创建直播间 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#1 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastRoomCreate(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/broadcast/room/create?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 【小程序直播】直播间管理接口 - 获取直播间列表 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#2 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastGetLiveInfos(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxa/business/getliveinfo?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 【小程序直播】直播间管理接口 - 获取直播间回放 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#3 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastGetLiveInfo(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxa/business/getliveinfo?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 【小程序直播】直播间管理接口 - 直播间导入商品 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#4 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastRoomAddGoods(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/broadcast/room/addgoods?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 【小程序直播】直播商品管理接口 - 商品添加并提审 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#1 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastGoodsAdd(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 【小程序直播】直播商品管理接口 - 撤回审核 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#2 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastGoodsResetAudit(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/resetaudit?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 【小程序直播】直播商品管理接口 - 重新提交审核 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#3 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastGoodsAudit(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/audit?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 【小程序直播】直播商品管理接口 - 删除商品 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#4 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastGoodsDelete(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/delete?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 【小程序直播】直播商品管理接口 - 更新商品 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#5 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastGoodsUpdate(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/update?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 【小程序直播】直播商品管理接口 - 获取商品状态 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#6 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastGetGoodsWarehouse(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxa/business/getgoodswarehouse?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 【小程序直播】直播商品管理接口 - 获取商品列表 - * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#7 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function broadcastGoodsGetAppRoved(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/getapproved?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 数据分析 - 获取用户访问小程序日留存 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/visit-retain/analysis.getDailyRetain.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function analysisGetDailyRetain(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/datacube/getweanalysisappiddailyretaininfo?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 数据分析 - 获取用户访问小程序月留存 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/visit-retain/analysis.getMonthlyRetain.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function analysisGetMonthlyRetain(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/datacube/getweanalysisappidmonthlyretaininfo?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 数据分析 - 获取用户访问小程序周留存 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/visit-retain/analysis.getWeeklyRetain.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function analysisGetWeeklyRetain(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/datacube/getweanalysisappidweeklyretaininfo?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 数据分析 - 获取用户访问小程序数据概况 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/analysis.getDailySummary.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function analysisGetDailySummary(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/datacube/getweanalysisappiddailysummarytrend?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 数据分析 - 获取小程序新增或活跃用户的画像分布数据。时间范围支持昨天、最近7天、最近30天。其中,新增用户数为时间范围内首次访问小程序的去重用户数,活跃用户数为时间范围内访问过小程序的去重用户数 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/analysis.getUserPortrait.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function analysisGetUserPortrait(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/datacube/getweanalysisappiduserportrait?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 数据分析 - 获取用户访问小程序数据概况 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/analysis.getVisitDistribution.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function analysisGetVisitDistribution(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/datacube/getweanalysisappidvisitdistribution?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 数据分析 - 访问页面。目前只提供按 page_visit_pv 排序的 top200 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/analysis.getVisitPage.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function analysisGetVisitPage(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/datacube/getweanalysisappidvisitpage?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 客服消息 - 获取客服消息内的临时素材。即下载临时的多媒体文件。目前小程序仅支持下载图片文件。 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.getTempMedia.html - * @param string $media_id - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function customerServiceMessageGetTempMedia(string $media_id = '') - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/media/get"; - return HttpService::instance() - ->url($url) - ->data([ - 'access_token' => $accessToken['access_token'], - 'media_id' => $media_id - ]) - ->get() - ->toArray(); - } - - /** - * 客服消息 - 发送客服消息给用户。详细规则见 发送客服消息 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.send.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function customerServiceMessageSend(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 客服消息 - 下发客服当前输入状态给用户。详见 客服消息输入状态 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.setTyping.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function customerServiceMessageSetTyping(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/message/custom/typing?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 客服消息 - 把媒体文件上传到微信服务器。目前仅支持图片。用于发送客服消息或被动回复用户消息 - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.uploadTempMedia.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function customerServiceMessageUploadTempMedia(array $data = []) - { - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->post() - ->toArray(); - } - - /** - * 获取小程序全局唯一后台接口调用凭据(access_token) - * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function accessToken() - { - return $this->getAccessToken(); - } - - /** - * 获取access_token信息 - * @return array|bool|mixed|string|string[] - * @throws DbException - * @throws DtaException - */ - private function getAccessToken() - { - if (empty($this->cache) || empty($this->app_id) || empty($this->app_secret)) { - $this->getConfig(); - } - if (empty($this->cache)) { - throw new DtaException('请检查cache参数'); - } - if (empty($this->app_id)) { - throw new DtaException('请检查app_id参数'); - } - if (empty($this->app_secret)) { - throw new DtaException('请检查app_secret参数'); - } - $this->grant_type = "client_credential"; - if ($this->cache === "file") { - // 文件名 - $file = "{$this->app->getRootPath()}runtime/{$this->app_id}_access_token.json"; - // 获取数据 - $accessToken = file_exists($file) ? json_decode(file_get_contents($file), true) : []; - if (empty($accessToken) || !is_array($accessToken)) { - $accessToken = [ - 'access_token' => '', - 'expires_in' => '', - 'expires_time' => '', - ]; - } - if (empty($accessToken['expires_time'])) { - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - $accessToken_res['expires_time'] = time() + 6000; - file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); - $accessToken = $accessToken_res; - } else if (!isset($accessToken['access_token'])) { - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - $accessToken_res['expires_time'] = time() + 6000; - file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); - $accessToken = $accessToken_res; - } else if ($accessToken['expires_time'] <= time()) { - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - $accessToken_res['expires_time'] = time() + 6000; - file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); - $accessToken = $accessToken_res; - } - return $accessToken; - } - - if ($this->cache === "mysql") { - $access_token = []; - // 文件名 - $file = "{$this->app_id}_access_token"; - // 获取数据 - $cache_mysql_value = dtacache($file); - if (!empty($cache_mysql_value)) { - $access_token['access_token'] = $cache_mysql_value; - } else { - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - dtacache($file, $accessToken_res['access_token'], 6000); - $access_token['access_token'] = $accessToken_res['access_token']; - } - return $access_token; - } - - throw new DtaException("驱动方式错误"); - } -} +app_id = $appId; + return $this; + } + + /** + * @param string $appSecret + * @return $this + */ + public function appSecret(string $appSecret) + { + $this->app_secret = $appSecret; + return $this; + } + + /** + * 驱动方式 + * @param string $cache + * @return $this + */ + public function cache(string $cache): self + { + $this->cache = $cache; + return $this; + } + + /** + * 获取配置信息 + * @return $this + */ + private function getConfig(): self + { + $this->cache = config('dtapp.wechat.mini.cache'); + $this->app_id = config('dtapp.wechat.mini.app_id'); + $this->app_secret = config('dtapp.wechat.mini.app_secret'); + return $this; + } + + /** + * 用户支付完成后,获取该用户的 UnionId,无需用户授权 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/user-info/auth.getPaidUnionId.html + * @param string $openid + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function getPaidUnionId(string $openid) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxa/getpaidunionid?access_token={$accessToken['access_token']}&openid={$openid}"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 获取小程序二维码,适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.createQRCode.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function createWxaQrCode(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(false); + } + + /** + * 获取小程序码,适用于需要的码数量较少的业务场景。通过该接口生成的小程序码,永久有效,有数量限制 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.get.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function getWxaCode(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxa/getwxacode?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(false); + } + + /** + * 获取小程序码,适用于需要的码数量极多的业务场景。通过该接口生成的小程序码,永久有效,数量暂无限制 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/qr-code/wxacode.getUnlimited.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function getWxaCodeUnLimit(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(false); + } + + /** + * 组合模板并添加至帐号下的个人模板库 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.addTemplate.html + * @param array $data + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function addTemplate(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/newtmpl/addtemplate?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->toArray(); + } + + /** + * 删除帐号下的个人模板 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.deleteTemplate.html + * @param string $priTmplId 要删除的模板id + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function deleteTemplate(string $priTmplId) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/newtmpl/deltemplate?access_token={$accessToken['access_token']}"; + $data = [ + 'priTmplId' => $priTmplId + ]; + return HttpService::instance() + ->url($url) + ->data($data) + ->toArray(); + } + + /** + * 获取小程序账号的类目 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getCategory.html + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function getCategory() + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/newtmpl/getcategory?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 获取模板标题下的关键词列表 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getPubTemplateKeyWordsById.html + * @param string $tid 模板标题 id + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function getPubTemplateKeyWordsById(string $tid) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/newtmpl/getpubtemplatekeywords?access_token={$accessToken['access_token']}"; + $data = [ + 'tid' => $tid + ]; + return HttpService::instance() + ->url($url) + ->data($data) + ->toArray(); + } + + /** + * 获取帐号所属类目下的公共模板标题 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getPubTemplateTitleList.html + * @param array $data + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function getPubTemplateTitleList(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/newtmpl/getpubtemplatetitles?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->toArray(); + } + + /** + * 获取当前帐号下的个人模板列表 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.getTemplateList.html + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function getTemplateList() + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/newtmpl/gettemplate?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 发送订阅消息 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/subscribe-message/subscribeMessage.send.html + * @param array $data + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function subscribeMessageSend(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 统一服务消息 - 下发小程序和公众号统一的服务消息 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/uniform-message/uniformMessage.send.html + * @param array $data + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function uniformMessageSend(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/message/wxopen/template/uniform_send?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 登录凭证校验 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html + * @param string $js_code + * @return bool|mixed|string + * @throws DtaException + */ + public function code2Session(string $js_code) + { + if (empty($this->app_id) || empty($this->app_secret)) { + $this->getConfig(); + } + if (empty($this->app_id)) { + throw new DtaException('请检查app_id参数'); + } + if (empty($this->app_secret)) { + throw new DtaException('请检查app_secret参数'); + } + $this->grant_type = "authorization_code"; + $url = "https://api.weixin.qq.com/sns/jscode2session?appid={$this->app_id}&secret={$this->app_secret}&js_code={$js_code}&grant_type={$this->grant_type}"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 检验数据的真实性,并且获取解密后的明文. + * @param string $js_code + * @param string $encrypted_data + * @param string $iv + * @return bool|mixed + * @throws DtaException + */ + public function userInfo(string $js_code, string $encrypted_data, string $iv) + { + $session = $this->code2Session($js_code); + if (!isset($session['openid'])) { + return false; + } + $result = openssl_decrypt(base64_decode($encrypted_data), "AES-128-CBC", base64_decode($session['session_key']), 1, base64_decode($iv)); + return json_decode($result, true); + } + + /** + * 数据签名校验,并且获取解密后的明文. + * @param string $js_code + * @param string $encrypted_data + * @param string $iv + * @return mixed + * @throws DtaException + */ + public function userPhone(string $js_code, string $encrypted_data, string $iv) + { + $session = $this->code2Session($js_code); + if (!isset($session['openid'])) { + return false; + } + $result = openssl_decrypt(base64_decode($encrypted_data), "AES-128-CBC", base64_decode($session['session_key']), 1, base64_decode($iv)); + return json_decode($result, true); + } + + /** + * 数据签名校验,并且获取解密后的明文. + * @param string $session_key + * @param string $encrypted_data + * @param string $iv + * @return mixed + */ + public function decode(string $session_key, string $encrypted_data, string $iv) + { + $result = openssl_decrypt(base64_decode($encrypted_data), "AES-128-CBC", base64_decode($session_key), 1, base64_decode($iv)); + return json_decode($result, true); + } + + /** + * 【小程序直播】直播间管理接口 - 创建直播间 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#1 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastRoomCreate(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/broadcast/room/create?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 【小程序直播】直播间管理接口 - 获取直播间列表 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#2 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastGetLiveInfos(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxa/business/getliveinfo?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 【小程序直播】直播间管理接口 - 获取直播间回放 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#3 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastGetLiveInfo(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxa/business/getliveinfo?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 【小程序直播】直播间管理接口 - 直播间导入商品 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/studio-api.html#4 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastRoomAddGoods(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/broadcast/room/addgoods?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 【小程序直播】直播商品管理接口 - 商品添加并提审 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#1 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastGoodsAdd(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/add?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 【小程序直播】直播商品管理接口 - 撤回审核 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#2 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastGoodsResetAudit(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/resetaudit?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 【小程序直播】直播商品管理接口 - 重新提交审核 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#3 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastGoodsAudit(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/audit?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 【小程序直播】直播商品管理接口 - 删除商品 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#4 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastGoodsDelete(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/delete?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 【小程序直播】直播商品管理接口 - 更新商品 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#5 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastGoodsUpdate(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/update?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 【小程序直播】直播商品管理接口 - 获取商品状态 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#6 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastGetGoodsWarehouse(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxa/business/getgoodswarehouse?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 【小程序直播】直播商品管理接口 - 获取商品列表 + * https://developers.weixin.qq.com/miniprogram/dev/framework/liveplayer/commodity-api.html#7 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function broadcastGoodsGetAppRoved(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/wxaapi/broadcast/goods/getapproved?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 数据分析 - 获取用户访问小程序日留存 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/visit-retain/analysis.getDailyRetain.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function analysisGetDailyRetain(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/datacube/getweanalysisappiddailyretaininfo?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 数据分析 - 获取用户访问小程序月留存 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/visit-retain/analysis.getMonthlyRetain.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function analysisGetMonthlyRetain(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/datacube/getweanalysisappidmonthlyretaininfo?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 数据分析 - 获取用户访问小程序周留存 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/visit-retain/analysis.getWeeklyRetain.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function analysisGetWeeklyRetain(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/datacube/getweanalysisappidweeklyretaininfo?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 数据分析 - 获取用户访问小程序数据概况 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/analysis.getDailySummary.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function analysisGetDailySummary(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/datacube/getweanalysisappiddailysummarytrend?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 数据分析 - 获取小程序新增或活跃用户的画像分布数据。时间范围支持昨天、最近7天、最近30天。其中,新增用户数为时间范围内首次访问小程序的去重用户数,活跃用户数为时间范围内访问过小程序的去重用户数 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/analysis.getUserPortrait.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function analysisGetUserPortrait(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/datacube/getweanalysisappiduserportrait?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 数据分析 - 获取用户访问小程序数据概况 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/analysis.getVisitDistribution.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function analysisGetVisitDistribution(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/datacube/getweanalysisappidvisitdistribution?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 数据分析 - 访问页面。目前只提供按 page_visit_pv 排序的 top200 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/data-analysis/analysis.getVisitPage.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function analysisGetVisitPage(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/datacube/getweanalysisappidvisitpage?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 客服消息 - 获取客服消息内的临时素材。即下载临时的多媒体文件。目前小程序仅支持下载图片文件。 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.getTempMedia.html + * @param string $media_id + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function customerServiceMessageGetTempMedia(string $media_id = '') + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/media/get"; + return HttpService::instance() + ->url($url) + ->data([ + 'access_token' => $accessToken['access_token'], + 'media_id' => $media_id + ]) + ->get() + ->toArray(); + } + + /** + * 客服消息 - 发送客服消息给用户。详细规则见 发送客服消息 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.send.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function customerServiceMessageSend(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 客服消息 - 下发客服当前输入状态给用户。详见 客服消息输入状态 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.setTyping.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function customerServiceMessageSetTyping(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/message/custom/typing?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 客服消息 - 把媒体文件上传到微信服务器。目前仅支持图片。用于发送客服消息或被动回复用户消息 + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/customer-message/customerServiceMessage.uploadTempMedia.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function customerServiceMessageUploadTempMedia(array $data = []) + { + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/media/upload?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->post() + ->toArray(); + } + + /** + * 获取小程序全局唯一后台接口调用凭据(access_token) + * https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/access-token/auth.getAccessToken.html + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function accessToken() + { + return $this->getAccessToken(); + } + + /** + * 获取access_token信息 + * @return array|bool|mixed|string|string[] + * @throws DbException + * @throws DtaException + */ + private function getAccessToken() + { + if (empty($this->cache) || empty($this->app_id) || empty($this->app_secret)) { + $this->getConfig(); + } + if (empty($this->cache)) { + throw new DtaException('请检查cache参数'); + } + if (empty($this->app_id)) { + throw new DtaException('请检查app_id参数'); + } + if (empty($this->app_secret)) { + throw new DtaException('请检查app_secret参数'); + } + $this->grant_type = "client_credential"; + if ($this->cache === "file") { + // 文件名 + $file = "{$this->app->getRootPath()}runtime/{$this->app_id}_access_token.json"; + // 获取数据 + $accessToken = file_exists($file) ? json_decode(file_get_contents($file), true) : []; + if (empty($accessToken) || !is_array($accessToken)) { + $accessToken = [ + 'access_token' => '', + 'expires_in' => '', + 'expires_time' => '', + ]; + } + if (empty($accessToken['expires_time'])) { + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + $accessToken_res['expires_time'] = time() + 6000; + file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); + $accessToken = $accessToken_res; + } else if (!isset($accessToken['access_token'])) { + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + $accessToken_res['expires_time'] = time() + 6000; + file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); + $accessToken = $accessToken_res; + } else if ($accessToken['expires_time'] <= time()) { + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + $accessToken_res['expires_time'] = time() + 6000; + file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); + $accessToken = $accessToken_res; + } + return $accessToken; + } + + if ($this->cache === "mysql") { + $access_token = []; + // 文件名 + $file = "{$this->app_id}_access_token"; + // 获取数据 + $cache_mysql_value = dtacache($file); + if (!empty($cache_mysql_value)) { + $access_token['access_token'] = $cache_mysql_value; + } else { + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + dtacache($file, $accessToken_res['access_token'], 6000); + $access_token['access_token'] = $accessToken_res['access_token']; + } + return $access_token; + } + + throw new DtaException("驱动方式错误"); + } +} diff --git a/src/service/wechat/QyService.php b/src/service/wechat/QyService.php index 1933b75..c4b83e8 100644 --- a/src/service/wechat/QyService.php +++ b/src/service/wechat/QyService.php @@ -1,104 +1,104 @@ -key = $str; - return $this; - } - - /** - * 发送文本消息 - * @param string $content 消息内容 - * @return bool - * @throws DtaException - */ - public function text(string $content = ''): bool - { - $this->msgType = 'text'; - return $this->sendMsg([ - 'text' => [ - 'content' => $content, - ], - ]); - } - - /** - * 发送markdown消息 - * @param string $content 消息内容 - * @return bool - * @throws DtaException - */ - public function markdown(string $content = '') - { - $this->msgType = 'markdown'; - return $this->sendMsg([ - 'markdown' => [ - 'content' => $content, - ], - ]); - } - - /** - * 组装发送消息 - * @param array $data 消息内容数组 - * @return bool - * @throws DtaException - */ - private function sendMsg(array $data): bool - { - if (empty($this->key)) { - throw new DtaException("请检查KEY"); - } - if (empty($data['msgtype'])) { - $data['msgtype'] = $this->msgType; - } - $result = HttpService::instance() - ->url("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=" . $this->key) - ->data($data) - ->toArray(); - return $result['errcode'] === 0; - } -} +key = $str; + return $this; + } + + /** + * 发送文本消息 + * @param string $content 消息内容 + * @return bool + * @throws DtaException + */ + public function text(string $content = ''): bool + { + $this->msgType = 'text'; + return $this->sendMsg([ + 'text' => [ + 'content' => $content, + ], + ]); + } + + /** + * 发送markdown消息 + * @param string $content 消息内容 + * @return bool + * @throws DtaException + */ + public function markdown(string $content = '') + { + $this->msgType = 'markdown'; + return $this->sendMsg([ + 'markdown' => [ + 'content' => $content, + ], + ]); + } + + /** + * 组装发送消息 + * @param array $data 消息内容数组 + * @return bool + * @throws DtaException + */ + private function sendMsg(array $data): bool + { + if (empty($this->key)) { + throw new DtaException("请检查KEY"); + } + if (empty($data['msgtype'])) { + $data['msgtype'] = $this->msgType; + } + $result = HttpService::instance() + ->url("https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=" . $this->key) + ->data($data) + ->toArray(); + return $result['errcode'] === 0; + } +} diff --git a/src/service/wechat/WebAppService.php b/src/service/wechat/WebAppService.php index e6f3488..a711d3d 100644 --- a/src/service/wechat/WebAppService.php +++ b/src/service/wechat/WebAppService.php @@ -1,812 +1,812 @@ -mch_key = $mchKey; - return $this; - } - - /** - * 商户号 - * @var - */ - private $mch_id; - - /** - * 商户号 - * @param string $mchId - * @return $this - */ - public function mchId(string $mchId) - { - $this->mch_id = $mchId; - return $this; - } - - /** - * 公众号的唯一标识 - * @param string $appId - * @return $this - */ - public function appId(string $appId): self - { - $this->app_id = $appId; - return $this; - } - - /** - * 公众号的appsecret - * @param string $appSecret - * @return $this - */ - public function appSecret(string $appSecret): self - { - $this->app_secret = $appSecret; - return $this; - } - - /** - * 获取配置信息 - * @return $this - */ - private function getConfig(): self - { - $this->cache = config('dtapp.wechat.webapp.cache'); - $this->app_id = config('dtapp.wechat.webapp.app_id'); - $this->app_secret = config('dtapp.wechat.webapp.app_secret'); - return $this; - } - - /** - * 授权后重定向的回调链接地址, 请使用 urlEncode 对链接进行处理 - * @param string $redirectUri - * @return $this - * @throws DtaException - */ - public function redirectUri(string $redirectUri) - { - if (empty(Pregs::isLink($redirectUri))) { - throw new DtaException("请检查redirectUri,是否正确"); - } - $this->redirect_uri = Urls::lenCode($redirectUri); - return $this; - } - - /** - * 应用授权作用域,snsapi_base (不弹出授权页面,直接跳转,只能获取用户openid),snsapi_userinfo (弹出授权页面,可通过openid拿到昵称、性别、所在地。并且, 即使在未关注的情况下,只要用户授权,也能获取其信息 ) - * @param string $scope - * @return $this - * @throws DtaException - */ - public function scope(string $scope): self - { - if ($scope === "snsapi_base") { - $this->scope = $scope; - } elseif ($scope === "snsapi_userinfo") { - $this->scope = $scope; - } else { - throw new DtaException("请检查scope参数"); - } - return $this; - } - - /** - * 重定向后会带上state参数,开发者可以填写a-zA-Z0-9的参数值,最多128字节 - * @param string $state - * @return $this - */ - public function state(string $state): self - { - $this->state = $state; - return $this; - } - - /** - * 驱动方式 - * @param string $cache - * @return $this - */ - public function cache(string $cache): self - { - $this->cache = $cache; - return $this; - } - - /** - * 网页授权 - * https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html#0 - * @return void - * @throws DtaException - */ - public function oauth2() - { - if (empty($this->app_id)) { - $this->getConfig(); - } - if (strlen($this->state) > 128) { - throw new DtaException("请检查state参数,最多128字节"); - } - $params = Urls::toParams([ - 'appid' => $this->app_id, - 'redirect_uri' => $this->redirect_uri, - 'response_type' => $this->response_type, - 'scope' => $this->scope, - 'state' => $this->state - ]); - return header("Location:https://open.weixin.qq.com/connect/oauth2/authorize?$params#wechat_redirect"); - } - - /** - * 通过code换取网页授权access_token - * @param string $code - * @param bool $is - * @return array|bool|mixed|string - * @throws DtaException - */ - public function accessToken(string $code, bool $is = true) - { - if (empty($this->app_id) || empty($this->app_secret)) { - $this->getConfig(); - } - if (empty($this->app_id)) { - throw new DtaException('请检查app_id参数'); - } - if (empty($this->app_secret)) { - throw new DtaException('请检查app_secret参数'); - } - return HttpService::instance() - ->url("https://api.weixin.qq.com/sns/oauth2/access_token?appid={$this->app_id}&secret={$this->app_secret}&code={$code}&grant_type={$this->grant_type}") - ->toArray($is); - } - - /** - * 刷新access_token(如果需要) - * @param string $refreshToken - * @param bool $is - * @return array|bool|mixed|string - * @throws DtaException - */ - public function refreshToken(string $refreshToken, bool $is = true) - { - if (empty($this->app_id)) { - $this->getConfig(); - } - if (empty($this->app_id)) { - throw new DtaException('请检查app_id参数'); - } - $this->grant_type = "refresh_token"; - return HttpService::instance() - ->url("https://api.weixin.qq.com/sns/oauth2/refresh_token?appid={$this->app_id}&grant_type={$this->grant_type}&refresh_token={$refreshToken}") - ->toArray($is); - } - - /** - * 拉取用户信息(需scope为 snsapi_userinfo) - * @param string $accessToken - * @param string $openid - * @param string $lang - * @param bool $is - * @return array|bool|mixed|string - */ - public function useInfo(string $accessToken, string $openid, $lang = "zh_CN", bool $is = true) - { - if (empty($this->app_id) || empty($this->app_secret)) { - $this->getConfig(); - } - return HttpService::instance() - ->url("https://api.weixin.qq.com/sns/userinfo?access_token={$accessToken}&openid={$openid}&lang={$lang}") - ->toArray($is); - } - - /** - * 检验授权凭证(access_token)是否有效 - * @param string $accessToken - * @param string $openid - * @param bool $is - * @return array|bool|mixed|string - */ - public function auth(string $accessToken, string $openid, bool $is = true) - { - if (empty($this->app_id) || empty($this->app_secret)) { - $this->getConfig(); - } - return HttpService::instance() - ->url("https://api.weixin.qq.com/sns/auth?access_token={$accessToken}&openid={$openid}") - ->toArray($is); - } - - /** - * 分享 - * @param string $url - * @return array - * @throws DbException - * @throws DtaException - * @throws \Exception - */ - public function share($url = '') - { - if (empty($this->app_id)) { - $this->getConfig(); - } - if (empty($this->app_id)) { - throw new DtaException('请检查app_id参数'); - } - // 获取数据 - $accessToken = $this->getAccessToken(); - if (!isset($accessToken['access_token'])) { - throw new DtaException("获取access_token错误," . $accessToken['errmsg']); - } - $res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token={$accessToken['access_token']}&type=jsapi") - ->toArray(); - if (!empty($res['errcode'])) { - // 获取数据 - $accessToken = $this->getAccessToken(); - if (!isset($accessToken['access_token'])) { - throw new DtaException("获取access_token错误," . $accessToken['errmsg']); - } - $res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token={$accessToken['access_token']}&type=jsapi") - ->toArray(); - if (!empty($res['errcode'])) { - throw new DtaException('accessToken已过期'); - } - } - if (empty($url)) { - // 注意 URL 一定要动态获取,不能 hardcode. - $protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] === 443) ? "https://" : "http://"; - $url = "$protocol$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; - } - $timestamp = time(); - $nonceStr = $this->createNonceStr(); - // 获得jsapi_ticket之后,就可以生成JS-SDK权限验证的签名了。 - $jsapiTicket = $res['ticket']; - // 这里参数的顺序要按照 key 值 ASCII 码升序排序 - $string = "jsapi_ticket=$jsapiTicket&noncestr=$nonceStr×tamp=$timestamp&url=$url"; - return [ - "appId" => $this->app_id, - "nonceStr" => $nonceStr, - "timestamp" => $timestamp, - "url" => $url, - "signature" => sha1($string), - "rawString" => $string - ]; - } - - /** - * @param int $length - * @return string - * @throws \Exception - */ - private function createNonceStr($length = 16): string - { - $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; - $str = ""; - for ($i = 0; $i < $length; $i++) { - $str .= $chars[random_int(0, strlen($chars) - 1)]; - } - return $str; - } - - /** - * 生成二维码 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function qrCode(array $data) - { - // 获取数据 - $accessToken = $this->getAccessToken(); - return HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token={$accessToken['access_token']}") - ->data($data) - ->post() - ->toArray(); - } - - /** - * 发送模板消息 - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function messageTemplateSend(array $data = []) - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->toArray(); - } - - /** - * 设置所属行业 - * https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html#0 - * @param string $access_token - * @param array $data - * @return bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function setIndustry(string $access_token, array $data = []) - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data($data) - ->toArray(); - } - - /** - * 将一条长链接转成短链接 - * @param string $long_url - * @return bool - * @throws DbException - * @throws DtaException - */ - public function shortUrl(string $long_url) - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/shorturl?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->data([ - 'action' => 'long2short', - 'long_url' => $long_url - ]) - ->toArray(); - } - - /** - * 连Wi-Fi完成页跳转小程序 - * https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/WiFi_mini_programs.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function fiNihPageSet(array $data = []) - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/bizwifi/finishpage/set?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->post() - ->data($data) - ->toArray(); - } - - /** - * 自定义菜单 获取自定义菜单配置 - * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Getting_Custom_Menu_Configurations.html - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function menuGet() - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 自定义菜单 创建个性化菜单 - * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function menuAddConditional(array $data = []) - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/menu/addconditional?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->post() - ->data($data) - ->toArray(); - } - - /** - * 自定义菜单 删除个性化菜单 - * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function menuDelConditional(array $data = []) - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/menu/delconditional?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->post() - ->data($data) - ->toArray(); - } - - /** - * 自定义菜单 测试个性化菜单匹配结果 - * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function menuTryMatch(array $data = []) - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/menu/trymatch?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->post() - ->data($data) - ->toArray(); - } - - /** - * 自定义菜单 删除接口 - * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Deleting_Custom-Defined_Menu.html - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function menuDelete() - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 自定义菜单 查询接口 - * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Querying_Custom_Menus.html - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function getCurrentSelfmenuInfo() - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->toArray(); - } - - /** - * 自定义菜单 创建接口 - * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Creating_Custom-Defined_Menu.html - * @param array $data - * @return array|bool|mixed|string - * @throws DbException - * @throws DtaException - */ - public function menuCreate(array $data = []) - { - // 获取数据 - $accessToken = $this->getAccessToken(); - $url = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token={$accessToken['access_token']}"; - return HttpService::instance() - ->url($url) - ->post() - ->data($data) - ->toArray(); - } - - /** - * 获取access_token信息 - * @return array|bool|mixed|string|string[] - * @throws DbException - * @throws DtaException - */ - private function getAccessToken() - { - if (empty($this->cache) || empty($this->app_id) || empty($this->app_secret)) { - $this->getConfig(); - } - if (empty($this->cache)) { - throw new DtaException('请检查cache参数'); - } - if (empty($this->app_id)) { - throw new DtaException('请检查app_id参数'); - } - if (empty($this->app_secret)) { - throw new DtaException('请检查app_secret参数'); - } - - $this->grant_type = "client_credential"; - if ($this->cache === "file") { - // 文件名 - $file = "{$this->app->getRootPath()}runtime/{$this->app_id}_access_token.json"; - // 获取数据 - $accessToken = file_exists($file) ? json_decode(file_get_contents($file), true) : []; - if (empty($accessToken) || !is_array($accessToken)) { - $accessToken = [ - 'access_token' => '', - 'expires_in' => '', - 'expires_time' => '', - ]; - } - if (empty($accessToken['expires_time'])) { - // 文件不存在 - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - $accessToken_res['expires_time'] = time() + 6000; - file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); - $accessToken = $accessToken_res; - } else if (!isset($accessToken['access_token'])) { - // 内容不存在 - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - $accessToken_res['expires_time'] = time() + 6000; - file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); - $accessToken = $accessToken_res; - } else if ($accessToken['expires_time'] <= time()) { - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - $accessToken_res['expires_time'] = time() + 6000; - file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); - $accessToken = $accessToken_res; - } - if (isset($accessToken['access_token'])) { - $judge = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token={$accessToken['access_token']}") - ->toArray(); - if (!isset($judge['ip_list'])) { - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - $accessToken_res['expires_time'] = time() + 6000; - file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); - $accessToken = $accessToken_res; - } - } else { - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - $accessToken_res['expires_time'] = time() + 6000; - file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); - $accessToken = $accessToken_res; - } - return $accessToken; - } - - if ($this->cache === "mysql") { - $access_token = []; - // 文件名 - $file = "{$this->app_id}_access_token"; - // 获取数据 - $cache_mysql_value = dtacache($file); - if (!empty($cache_mysql_value)) { - $access_token['access_token'] = $cache_mysql_value; - } else { - // 获取远程Token - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - // 保存到数据库 - dtacache($file, $accessToken_res['access_token'], 6000); - $access_token['access_token'] = $accessToken_res['access_token']; - } - // 判断token是否可以使用 - $judge = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token={$access_token['access_token']}") - ->toArray(); - if (!isset($judge['ip_list'])) { - $accessToken_res = HttpService::instance() - ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") - ->toArray(); - dtacache($file, $accessToken_res['access_token'], 6000); - $access_token['access_token'] = $accessToken_res['access_token']; - } - return $access_token; - } - - throw new DtaException("驱动方式错误"); - } - - /** - * 微信支付 - * https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1 - * @param array $array - * @return bool|string - */ - public function payUnfIedOrder(array $array) - { - $array['appid'] = $this->app_id; - $array['mch_id'] = $this->mch_id; - $array['nonce_str'] = Randoms::generate(32, 3); - $array['sign_type'] = 'HMAC-SHA256'; - $array['sign'] = $this->paySign($array); - $res = $this->postXmlCurl(Xmls::toXml($array)); - return Xmls::toArray($res); - } - - /** - * 微信内H5调起支付 - * @param string $prepay_id - * @return array - */ - public function h5Pay(string $prepay_id) - { - $array['appId'] = $this->app_id; - $array['timeStamp'] = time(); - $array['nonceStr'] = Randoms::generate(32, 3); - $array['package'] = "prepay_id={$prepay_id}"; - $array['signType'] = 'HMAC-SHA256'; - $array['paySign'] = $this->paySign($array); - return $array; - } - - /** - * 生成支付签名 - * @param array $array 参与签名的内容组成的数组 - * @param bool $hmacsha256 是否使用 HMAC-SHA256算法,否则使用MD5 - * @return string - */ - private function paySign(array $array, bool $hmacsha256 = true): string - { - // 排序 - ksort($array); - // 转成字符串 - $stringA = Urls::toParams($array); - // 在字符串接商户支付秘钥 - $stringSignTemp = "{$stringA}&key=" . $this->mch_key; - //步骤四:MD5或HMAC-SHA256C加密 - if ($hmacsha256) { - $str = hash_hmac("sha256", $stringSignTemp, $this->mch_key); - } else { - $str = md5($stringSignTemp); - } - //符转大写 - return strtoupper($str); - } - - /** - * @param $xml - * @return bool|string - */ - private function postXmlCurl($xml) - { - $ch = curl_init(); - //设置超时 - curl_setopt($ch, CURLOPT_TIMEOUT, 30); - - curl_setopt($ch, CURLOPT_URL, "https://api.mch.weixin.qq.com/pay/unifiedorder"); - //设置header - curl_setopt($ch, CURLOPT_HEADER, FALSE); - //要求结果为字符串且输出到屏幕上 - curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); - - //试试手气新增,增加之后 curl 不报 60# 错误,可以请求到微信的响应 - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //不验证 SSL 证书 - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);//不验证 SSL 证书域名 - //post提交方式 - curl_setopt($ch, CURLOPT_POST, TRUE); - curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); - //运行curl - $data = curl_exec($ch); - //返回结果 - if ($data) { - curl_close($ch); - return $data; - } - - $error = curl_errno($ch); - curl_close($ch); - return "curl error, error code " . $error; - } -} +mch_key = $mchKey; + return $this; + } + + /** + * 商户号 + * @var + */ + private $mch_id; + + /** + * 商户号 + * @param string $mchId + * @return $this + */ + public function mchId(string $mchId) + { + $this->mch_id = $mchId; + return $this; + } + + /** + * 公众号的唯一标识 + * @param string $appId + * @return $this + */ + public function appId(string $appId): self + { + $this->app_id = $appId; + return $this; + } + + /** + * 公众号的appsecret + * @param string $appSecret + * @return $this + */ + public function appSecret(string $appSecret): self + { + $this->app_secret = $appSecret; + return $this; + } + + /** + * 获取配置信息 + * @return $this + */ + private function getConfig(): self + { + $this->cache = config('dtapp.wechat.webapp.cache'); + $this->app_id = config('dtapp.wechat.webapp.app_id'); + $this->app_secret = config('dtapp.wechat.webapp.app_secret'); + return $this; + } + + /** + * 授权后重定向的回调链接地址, 请使用 urlEncode 对链接进行处理 + * @param string $redirectUri + * @return $this + * @throws DtaException + */ + public function redirectUri(string $redirectUri) + { + if (empty(Pregs::isLink($redirectUri))) { + throw new DtaException("请检查redirectUri,是否正确"); + } + $this->redirect_uri = Urls::lenCode($redirectUri); + return $this; + } + + /** + * 应用授权作用域,snsapi_base (不弹出授权页面,直接跳转,只能获取用户openid),snsapi_userinfo (弹出授权页面,可通过openid拿到昵称、性别、所在地。并且, 即使在未关注的情况下,只要用户授权,也能获取其信息 ) + * @param string $scope + * @return $this + * @throws DtaException + */ + public function scope(string $scope): self + { + if ($scope === "snsapi_base") { + $this->scope = $scope; + } elseif ($scope === "snsapi_userinfo") { + $this->scope = $scope; + } else { + throw new DtaException("请检查scope参数"); + } + return $this; + } + + /** + * 重定向后会带上state参数,开发者可以填写a-zA-Z0-9的参数值,最多128字节 + * @param string $state + * @return $this + */ + public function state(string $state): self + { + $this->state = $state; + return $this; + } + + /** + * 驱动方式 + * @param string $cache + * @return $this + */ + public function cache(string $cache): self + { + $this->cache = $cache; + return $this; + } + + /** + * 网页授权 + * https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html#0 + * @return void + * @throws DtaException + */ + public function oauth2() + { + if (empty($this->app_id)) { + $this->getConfig(); + } + if (strlen($this->state) > 128) { + throw new DtaException("请检查state参数,最多128字节"); + } + $params = Urls::toParams([ + 'appid' => $this->app_id, + 'redirect_uri' => $this->redirect_uri, + 'response_type' => $this->response_type, + 'scope' => $this->scope, + 'state' => $this->state + ]); + return header("Location:https://open.weixin.qq.com/connect/oauth2/authorize?$params#wechat_redirect"); + } + + /** + * 通过code换取网页授权access_token + * @param string $code + * @param bool $is + * @return array|bool|mixed|string + * @throws DtaException + */ + public function accessToken(string $code, bool $is = true) + { + if (empty($this->app_id) || empty($this->app_secret)) { + $this->getConfig(); + } + if (empty($this->app_id)) { + throw new DtaException('请检查app_id参数'); + } + if (empty($this->app_secret)) { + throw new DtaException('请检查app_secret参数'); + } + return HttpService::instance() + ->url("https://api.weixin.qq.com/sns/oauth2/access_token?appid={$this->app_id}&secret={$this->app_secret}&code={$code}&grant_type={$this->grant_type}") + ->toArray($is); + } + + /** + * 刷新access_token(如果需要) + * @param string $refreshToken + * @param bool $is + * @return array|bool|mixed|string + * @throws DtaException + */ + public function refreshToken(string $refreshToken, bool $is = true) + { + if (empty($this->app_id)) { + $this->getConfig(); + } + if (empty($this->app_id)) { + throw new DtaException('请检查app_id参数'); + } + $this->grant_type = "refresh_token"; + return HttpService::instance() + ->url("https://api.weixin.qq.com/sns/oauth2/refresh_token?appid={$this->app_id}&grant_type={$this->grant_type}&refresh_token={$refreshToken}") + ->toArray($is); + } + + /** + * 拉取用户信息(需scope为 snsapi_userinfo) + * @param string $accessToken + * @param string $openid + * @param string $lang + * @param bool $is + * @return array|bool|mixed|string + */ + public function useInfo(string $accessToken, string $openid, $lang = "zh_CN", bool $is = true) + { + if (empty($this->app_id) || empty($this->app_secret)) { + $this->getConfig(); + } + return HttpService::instance() + ->url("https://api.weixin.qq.com/sns/userinfo?access_token={$accessToken}&openid={$openid}&lang={$lang}") + ->toArray($is); + } + + /** + * 检验授权凭证(access_token)是否有效 + * @param string $accessToken + * @param string $openid + * @param bool $is + * @return array|bool|mixed|string + */ + public function auth(string $accessToken, string $openid, bool $is = true) + { + if (empty($this->app_id) || empty($this->app_secret)) { + $this->getConfig(); + } + return HttpService::instance() + ->url("https://api.weixin.qq.com/sns/auth?access_token={$accessToken}&openid={$openid}") + ->toArray($is); + } + + /** + * 分享 + * @param string $url + * @return array + * @throws DbException + * @throws DtaException + * @throws \Exception + */ + public function share($url = '') + { + if (empty($this->app_id)) { + $this->getConfig(); + } + if (empty($this->app_id)) { + throw new DtaException('请检查app_id参数'); + } + // 获取数据 + $accessToken = $this->getAccessToken(); + if (!isset($accessToken['access_token'])) { + throw new DtaException("获取access_token错误," . $accessToken['errmsg']); + } + $res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token={$accessToken['access_token']}&type=jsapi") + ->toArray(); + if (!empty($res['errcode'])) { + // 获取数据 + $accessToken = $this->getAccessToken(); + if (!isset($accessToken['access_token'])) { + throw new DtaException("获取access_token错误," . $accessToken['errmsg']); + } + $res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/ticket/getticket?access_token={$accessToken['access_token']}&type=jsapi") + ->toArray(); + if (!empty($res['errcode'])) { + throw new DtaException('accessToken已过期'); + } + } + if (empty($url)) { + // 注意 URL 一定要动态获取,不能 hardcode. + $protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] === 443) ? "https://" : "http://"; + $url = "$protocol$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; + } + $timestamp = time(); + $nonceStr = $this->createNonceStr(); + // 获得jsapi_ticket之后,就可以生成JS-SDK权限验证的签名了。 + $jsapiTicket = $res['ticket']; + // 这里参数的顺序要按照 key 值 ASCII 码升序排序 + $string = "jsapi_ticket=$jsapiTicket&noncestr=$nonceStr×tamp=$timestamp&url=$url"; + return [ + "appId" => $this->app_id, + "nonceStr" => $nonceStr, + "timestamp" => $timestamp, + "url" => $url, + "signature" => sha1($string), + "rawString" => $string + ]; + } + + /** + * @param int $length + * @return string + * @throws \Exception + */ + private function createNonceStr($length = 16): string + { + $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; + $str = ""; + for ($i = 0; $i < $length; $i++) { + $str .= $chars[random_int(0, strlen($chars) - 1)]; + } + return $str; + } + + /** + * 生成二维码 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function qrCode(array $data) + { + // 获取数据 + $accessToken = $this->getAccessToken(); + return HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/qrcode/create?access_token={$accessToken['access_token']}") + ->data($data) + ->post() + ->toArray(); + } + + /** + * 发送模板消息 + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function messageTemplateSend(array $data = []) + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->toArray(); + } + + /** + * 设置所属行业 + * https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Template_Message_Interface.html#0 + * @param string $access_token + * @param array $data + * @return bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function setIndustry(string $access_token, array $data = []) + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data($data) + ->toArray(); + } + + /** + * 将一条长链接转成短链接 + * @param string $long_url + * @return bool + * @throws DbException + * @throws DtaException + */ + public function shortUrl(string $long_url) + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/shorturl?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->data([ + 'action' => 'long2short', + 'long_url' => $long_url + ]) + ->toArray(); + } + + /** + * 连Wi-Fi完成页跳转小程序 + * https://developers.weixin.qq.com/doc/offiaccount/WiFi_via_WeChat/WiFi_mini_programs.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function fiNihPageSet(array $data = []) + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/bizwifi/finishpage/set?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->post() + ->data($data) + ->toArray(); + } + + /** + * 自定义菜单 获取自定义菜单配置 + * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Getting_Custom_Menu_Configurations.html + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function menuGet() + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 自定义菜单 创建个性化菜单 + * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function menuAddConditional(array $data = []) + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/menu/addconditional?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->post() + ->data($data) + ->toArray(); + } + + /** + * 自定义菜单 删除个性化菜单 + * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function menuDelConditional(array $data = []) + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/menu/delconditional?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->post() + ->data($data) + ->toArray(); + } + + /** + * 自定义菜单 测试个性化菜单匹配结果 + * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Personalized_menu_interface.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function menuTryMatch(array $data = []) + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/menu/trymatch?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->post() + ->data($data) + ->toArray(); + } + + /** + * 自定义菜单 删除接口 + * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Deleting_Custom-Defined_Menu.html + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function menuDelete() + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 自定义菜单 查询接口 + * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Querying_Custom_Menus.html + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function getCurrentSelfmenuInfo() + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/get_current_selfmenu_info?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->toArray(); + } + + /** + * 自定义菜单 创建接口 + * https://developers.weixin.qq.com/doc/offiaccount/Custom_Menus/Creating_Custom-Defined_Menu.html + * @param array $data + * @return array|bool|mixed|string + * @throws DbException + * @throws DtaException + */ + public function menuCreate(array $data = []) + { + // 获取数据 + $accessToken = $this->getAccessToken(); + $url = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token={$accessToken['access_token']}"; + return HttpService::instance() + ->url($url) + ->post() + ->data($data) + ->toArray(); + } + + /** + * 获取access_token信息 + * @return array|bool|mixed|string|string[] + * @throws DbException + * @throws DtaException + */ + private function getAccessToken() + { + if (empty($this->cache) || empty($this->app_id) || empty($this->app_secret)) { + $this->getConfig(); + } + if (empty($this->cache)) { + throw new DtaException('请检查cache参数'); + } + if (empty($this->app_id)) { + throw new DtaException('请检查app_id参数'); + } + if (empty($this->app_secret)) { + throw new DtaException('请检查app_secret参数'); + } + + $this->grant_type = "client_credential"; + if ($this->cache === "file") { + // 文件名 + $file = "{$this->app->getRootPath()}runtime/{$this->app_id}_access_token.json"; + // 获取数据 + $accessToken = file_exists($file) ? json_decode(file_get_contents($file), true) : []; + if (empty($accessToken) || !is_array($accessToken)) { + $accessToken = [ + 'access_token' => '', + 'expires_in' => '', + 'expires_time' => '', + ]; + } + if (empty($accessToken['expires_time'])) { + // 文件不存在 + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + $accessToken_res['expires_time'] = time() + 6000; + file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); + $accessToken = $accessToken_res; + } else if (!isset($accessToken['access_token'])) { + // 内容不存在 + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + $accessToken_res['expires_time'] = time() + 6000; + file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); + $accessToken = $accessToken_res; + } else if ($accessToken['expires_time'] <= time()) { + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + $accessToken_res['expires_time'] = time() + 6000; + file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); + $accessToken = $accessToken_res; + } + if (isset($accessToken['access_token'])) { + $judge = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token={$accessToken['access_token']}") + ->toArray(); + if (!isset($judge['ip_list'])) { + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + $accessToken_res['expires_time'] = time() + 6000; + file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); + $accessToken = $accessToken_res; + } + } else { + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + $accessToken_res['expires_time'] = time() + 6000; + file_put_contents($file, json_encode($accessToken_res, JSON_UNESCAPED_UNICODE)); + $accessToken = $accessToken_res; + } + return $accessToken; + } + + if ($this->cache === "mysql") { + $access_token = []; + // 文件名 + $file = "{$this->app_id}_access_token"; + // 获取数据 + $cache_mysql_value = dtacache($file); + if (!empty($cache_mysql_value)) { + $access_token['access_token'] = $cache_mysql_value; + } else { + // 获取远程Token + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + // 保存到数据库 + dtacache($file, $accessToken_res['access_token'], 6000); + $access_token['access_token'] = $accessToken_res['access_token']; + } + // 判断token是否可以使用 + $judge = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token={$access_token['access_token']}") + ->toArray(); + if (!isset($judge['ip_list'])) { + $accessToken_res = HttpService::instance() + ->url("https://api.weixin.qq.com/cgi-bin/token?grant_type={$this->grant_type}&appid={$this->app_id}&secret={$this->app_secret}") + ->toArray(); + dtacache($file, $accessToken_res['access_token'], 6000); + $access_token['access_token'] = $accessToken_res['access_token']; + } + return $access_token; + } + + throw new DtaException("驱动方式错误"); + } + + /** + * 微信支付 + * https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1 + * @param array $array + * @return bool|string + */ + public function payUnfIedOrder(array $array) + { + $array['appid'] = $this->app_id; + $array['mch_id'] = $this->mch_id; + $array['nonce_str'] = Randoms::generate(32, 3); + $array['sign_type'] = 'HMAC-SHA256'; + $array['sign'] = $this->paySign($array); + $res = $this->postXmlCurl(Xmls::toXml($array)); + return Xmls::toArray($res); + } + + /** + * 微信内H5调起支付 + * @param string $prepay_id + * @return array + */ + public function h5Pay(string $prepay_id) + { + $array['appId'] = $this->app_id; + $array['timeStamp'] = time(); + $array['nonceStr'] = Randoms::generate(32, 3); + $array['package'] = "prepay_id={$prepay_id}"; + $array['signType'] = 'HMAC-SHA256'; + $array['paySign'] = $this->paySign($array); + return $array; + } + + /** + * 生成支付签名 + * @param array $array 参与签名的内容组成的数组 + * @param bool $hmacsha256 是否使用 HMAC-SHA256算法,否则使用MD5 + * @return string + */ + private function paySign(array $array, bool $hmacsha256 = true): string + { + // 排序 + ksort($array); + // 转成字符串 + $stringA = Urls::toParams($array); + // 在字符串接商户支付秘钥 + $stringSignTemp = "{$stringA}&key=" . $this->mch_key; + //步骤四:MD5或HMAC-SHA256C加密 + if ($hmacsha256) { + $str = hash_hmac("sha256", $stringSignTemp, $this->mch_key); + } else { + $str = md5($stringSignTemp); + } + //符转大写 + return strtoupper($str); + } + + /** + * @param $xml + * @return bool|string + */ + private function postXmlCurl($xml) + { + $ch = curl_init(); + //设置超时 + curl_setopt($ch, CURLOPT_TIMEOUT, 30); + + curl_setopt($ch, CURLOPT_URL, "https://api.mch.weixin.qq.com/pay/unifiedorder"); + //设置header + curl_setopt($ch, CURLOPT_HEADER, FALSE); + //要求结果为字符串且输出到屏幕上 + curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); + + //试试手气新增,增加之后 curl 不报 60# 错误,可以请求到微信的响应 + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //不验证 SSL 证书 + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);//不验证 SSL 证书域名 + //post提交方式 + curl_setopt($ch, CURLOPT_POST, TRUE); + curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); + //运行curl + $data = curl_exec($ch); + //返回结果 + if ($data) { + curl_close($ch); + return $data; + } + + $error = curl_errno($ch); + curl_close($ch); + return "curl error, error code " . $error; + } +} diff --git a/src/service/weishi/WatermarkService.php b/src/service/weishi/WatermarkService.php index 1fc352a..883f051 100644 --- a/src/service/weishi/WatermarkService.php +++ b/src/service/weishi/WatermarkService.php @@ -1,124 +1,124 @@ -url = $url; - } else { - preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $url, $match); - $this->url = $match[0][0]; - } - return $this; - } - - /** - * 获取接口全部信息 - * @return WatermarkService - * @throws \GuzzleHttp\Exception\GuzzleException - */ - private function getApi(): self - { - $this->contents = $this->getContents($this->url); - return $this; - } - - /** - * 获取全部信息 - * @return $this - * @throws \GuzzleHttp\Exception\GuzzleException - */ - public function getAll(): self - { - $this->getApi(); - $data = [ - 'video_src' => $this->contents['video_src'], - 'cover_image' => $this->contents['cover_image'], - ]; - $this->backtrack = $data; - return $this; - } - - /** - * 返回Array - * @return array|mixed - */ - public function toArray() - { - if (empty($this->backtrack)) { - return []; - } - if (is_array($this->backtrack)) { - return $this->backtrack; - } - return json_decode($this->backtrack, true); - } - - /** - * 获取 - * @param $url - * @return array - * @throws \GuzzleHttp\Exception\GuzzleException - */ - private function getContents($url): array - { - $url = urldecode($url); - $headers = [ - 'Connection' => 'keep-alive', - 'User-Agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16D57 Version/12.0 Safari/604.1' - ]; - $client = new Client(['timeout' => 2, 'headers' => $headers, 'http_errors' => false,]); - $data = []; - if ($headers) { - $data['headers'] = $headers; - } - $data['verify'] = __DIR__ . DIRECTORY_SEPARATOR . 'cacert.pem'; - $jar = new CookieJar; - $data['cookies'] = $jar; - if (!$params) { - $response = $client->request('GET', $url, $data); - } else { - $data ['form_params'] = $params; - $response = $client->request('POST', $url, $data); - } - $body = $response->getBody(); - if ($body instanceof Stream) { - $body = $body->getContents(); - } - $result = json_decode($body, true); - $file = 'weishi.txt'; - $fp = fopen($file, 'ab'); - fwrite($fp, $body); - fclose($fp); - if ($result['ret'] == 0) { - $video = $result['data']['feeds'][0]; - $data['video_src'] = $video['video_url']; - $data['cover_image'] = $video['images'][0]['url']; - return $data; - } - return []; - } +url = $url; + } else { + preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $url, $match); + $this->url = $match[0][0]; + } + return $this; + } + + /** + * 获取接口全部信息 + * @return WatermarkService + * @throws \GuzzleHttp\Exception\GuzzleException + */ + private function getApi(): self + { + $this->contents = $this->getContents($this->url); + return $this; + } + + /** + * 获取全部信息 + * @return $this + * @throws \GuzzleHttp\Exception\GuzzleException + */ + public function getAll(): self + { + $this->getApi(); + $data = [ + 'video_src' => $this->contents['video_src'], + 'cover_image' => $this->contents['cover_image'], + ]; + $this->backtrack = $data; + return $this; + } + + /** + * 返回Array + * @return array|mixed + */ + public function toArray() + { + if (empty($this->backtrack)) { + return []; + } + if (is_array($this->backtrack)) { + return $this->backtrack; + } + return json_decode($this->backtrack, true); + } + + /** + * 获取 + * @param $url + * @return array + * @throws \GuzzleHttp\Exception\GuzzleException + */ + private function getContents($url): array + { + $url = urldecode($url); + $headers = [ + 'Connection' => 'keep-alive', + 'User-Agent' => 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_1_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16D57 Version/12.0 Safari/604.1' + ]; + $client = new Client(['timeout' => 2, 'headers' => $headers, 'http_errors' => false,]); + $data = []; + if ($headers) { + $data['headers'] = $headers; + } + $data['verify'] = __DIR__ . DIRECTORY_SEPARATOR . 'cacert.pem'; + $jar = new CookieJar; + $data['cookies'] = $jar; + if (!$params) { + $response = $client->request('GET', $url, $data); + } else { + $data ['form_params'] = $params; + $response = $client->request('POST', $url, $data); + } + $body = $response->getBody(); + if ($body instanceof Stream) { + $body = $body->getContents(); + } + $result = json_decode($body, true); + $file = 'weishi.txt'; + $fp = fopen($file, 'ab'); + fwrite($fp, $body); + fclose($fp); + if ($result['ret'] == 0) { + $video = $result['data']['feeds'][0]; + $data['video_src'] = $video['video_url']; + $data['cover_image'] = $video['images'][0]['url']; + return $data; + } + return []; + } } \ No newline at end of file diff --git a/src/service/yytianqi/YyTiAnQiService.php b/src/service/yytianqi/YyTiAnQiService.php index 70f3517..7e2d44f 100644 --- a/src/service/yytianqi/YyTiAnQiService.php +++ b/src/service/yytianqi/YyTiAnQiService.php @@ -1,28 +1,28 @@ - 1800, - 'session_prefix' => 'think_' - ]; - - /** - * read方法是在调用Session::start()的时候执行,并且只会执行一次。 - * @param string $sessionId - * @return string - */ - public function read(string $sessionId): string - { - return (string)Db::table($this->table_name) - ->where('session_id', $this->config['session_prefix'] . $sessionId) - ->whereTime('session_expire', '>=', time()) - ->order('session_expire desc') - ->value('session_data', ''); - } - - /** - * delete方法是在销毁会话的时候执行(调用Session::destroy()方法)。 - * @param string $sessionId - * @return bool - * @throws \think\db\exception\DbException - */ - public function delete(string $sessionId): bool - { - $result = Db::table($this->table_name) - ->where('session_id', $this->config['session_prefix'] . $sessionId) - ->delete(); - return $result ? true : false; - } - - /** - * write方法是在本地化会话数据的时候执行(调用Session::save()方法),系统会在每次请求结束的时候自动执行。 - * @param string $sessionId - * @param string $data - * @return bool - * @throws \think\db\exception\DataNotFoundException - * @throws \think\db\exception\DbException - * @throws \think\db\exception\ModelNotFoundException - */ - public function write(string $sessionId, string $data): bool - { - $get = Db::table($this->table_name) - ->where('session_id', $this->config['session_prefix'] . $sessionId) - ->whereTime('session_expire', '>=', time()) - ->field('id') - ->find(); - if (empty($get)) { - $params = [ - 'session_id' => $this->config['session_prefix'] . $sessionId, - 'session_expire' => Times::dateRear("Y-m-d H:i:s", $this->config['session_expire']), - 'session_data' => $data - ]; - $result = Db::table($this->table_name) - ->insert($params); - return $result ? true : false; - } - - $params = [ - 'session_expire' => Times::dateRear("Y-m-d H:i:s", $this->config['session_expire']), - 'session_data' => $data - ]; - $result = Db::table($this->table_name) - ->where('id', $get['id']) - ->update($params); - return $result ? true : false; - } -} + 1800, + 'session_prefix' => 'think_' + ]; + + /** + * read方法是在调用Session::start()的时候执行,并且只会执行一次。 + * @param string $sessionId + * @return string + */ + public function read(string $sessionId): string + { + return (string)Db::table($this->table_name) + ->where('session_id', $this->config['session_prefix'] . $sessionId) + ->whereTime('session_expire', '>=', time()) + ->order('session_expire desc') + ->value('session_data', ''); + } + + /** + * delete方法是在销毁会话的时候执行(调用Session::destroy()方法)。 + * @param string $sessionId + * @return bool + * @throws \think\db\exception\DbException + */ + public function delete(string $sessionId): bool + { + $result = Db::table($this->table_name) + ->where('session_id', $this->config['session_prefix'] . $sessionId) + ->delete(); + return $result ? true : false; + } + + /** + * write方法是在本地化会话数据的时候执行(调用Session::save()方法),系统会在每次请求结束的时候自动执行。 + * @param string $sessionId + * @param string $data + * @return bool + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + */ + public function write(string $sessionId, string $data): bool + { + $get = Db::table($this->table_name) + ->where('session_id', $this->config['session_prefix'] . $sessionId) + ->whereTime('session_expire', '>=', time()) + ->field('id') + ->find(); + if (empty($get)) { + $params = [ + 'session_id' => $this->config['session_prefix'] . $sessionId, + 'session_expire' => Times::dateRear("Y-m-d H:i:s", $this->config['session_expire']), + 'session_data' => $data + ]; + $result = Db::table($this->table_name) + ->insert($params); + return $result ? true : false; + } + + $params = [ + 'session_expire' => Times::dateRear("Y-m-d H:i:s", $this->config['session_expire']), + 'session_data' => $data + ]; + $result = Db::table($this->table_name) + ->where('id', $get['id']) + ->update($params); + return $result ? true : false; + } +} diff --git a/vendor/alibabacloud/openapi-util/.gitignore b/vendor/alibabacloud/openapi-util/.gitignore new file mode 100644 index 0000000..89c7aa5 --- /dev/null +++ b/vendor/alibabacloud/openapi-util/.gitignore @@ -0,0 +1,15 @@ +composer.phar +/vendor/ + +# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control +# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file +composer.lock + +.vscode/ +.idea +.DS_Store + +cache/ +*.cache +runtime/ +.php_cs.cache diff --git a/vendor/alibabacloud/openapi-util/src/OpenApiUtilClient.php b/vendor/alibabacloud/openapi-util/src/OpenApiUtilClient.php index 3b05760..38d2b96 100644 --- a/vendor/alibabacloud/openapi-util/src/OpenApiUtilClient.php +++ b/vendor/alibabacloud/openapi-util/src/OpenApiUtilClient.php @@ -423,6 +423,13 @@ class OpenApiUtilClient foreach ($items as $key => $value) { $pos = \is_int($key) ? $key + 1 : $key; + + if ($value instanceof Model) { + $value = $value->toMap(); + } elseif (\is_object($value)) { + $value = get_object_vars($value); + } + if (\is_array($value) && !empty($value)) { $flatten = array_merge( $flatten, diff --git a/vendor/alibabacloud/openapi-util/tests/OpenApiUtilClientTest.php b/vendor/alibabacloud/openapi-util/tests/OpenApiUtilClientTest.php new file mode 100644 index 0000000..31c951d --- /dev/null +++ b/vendor/alibabacloud/openapi-util/tests/OpenApiUtilClientTest.php @@ -0,0 +1,375 @@ +a = 'foo'; + + $output = new MockModel(); + OpenApiUtilClient::convert($model, $output); + $this->assertEquals($model->a, $output->a); + } + + public function testGetStringToSign() + { + $request = new Request(); + $request->method = 'GET'; + $request->pathname = '/'; + $request->headers['accept'] = 'application/json'; + + $this->assertEquals("GET\napplication/json\n\n\n\n/", OpenApiUtilClient::getStringToSign($request)); + + $request->headers = [ + 'accept' => 'application/json', + 'content-md5' => 'md5', + 'content-type' => 'application/json', + 'date' => 'date', + ]; + $this->assertEquals("GET\napplication/json\nmd5\napplication/json\ndate\n/", OpenApiUtilClient::getStringToSign($request)); + + $request->headers = [ + 'accept' => 'application/json', + 'content-md5' => 'md5', + 'content-type' => 'application/json', + 'date' => 'date', + 'x-acs-custom-key' => 'any value', + ]; + $this->assertEquals("GET\napplication/json\nmd5\napplication/json\ndate\nx-acs-custom-key:any value\n/", OpenApiUtilClient::getStringToSign($request)); + + $request->query = [ + 'key' => 'val ue with space', + ]; + $this->assertEquals("GET\napplication/json\nmd5\napplication/json\ndate\nx-acs-custom-key:any value\n/?key=val ue with space", OpenApiUtilClient::getStringToSign($request)); + } + + public function testGetROASignature() + { + $this->assertEquals('OmuTAr79tpI6CRoAdmzKRq5lHs0=', OpenApiUtilClient::getROASignature('stringtosign', 'secret')); + } + + public function testToForm() + { + $this->assertEquals('client=test&strs.1=str1&strs.2=str2&tag.key=value', OpenApiUtilClient::toForm([ + 'client' => 'test', + 'tag' => [ + 'key' => 'value', + ], + 'strs' => ['str1', 'str2'], + ])); + } + + public function testGetTimestamp() + { + $date = OpenApiUtilClient::getTimestamp(); + $this->assertEquals(20, \strlen($date)); + } + + public function testQuery() + { + $model = new MockModel(); + $model->a = 'foo'; + $model->c = 'boo'; + + $array = [ + 'a' => 'a', + 'b1' => [ + 'a' => 'a', + ], + 'b2' => [ + 'a' => 'a', + ], + 'c' => ['x', 'y', 'z'], + 'd' => [ + $model + ] + ]; + $this->assertEquals([ + 'a' => 'a', + 'b1.a' => 'a', + 'b2.a' => 'a', + 'c.1' => 'x', + 'c.2' => 'y', + 'c.3' => 'z', + 'd.1.A' => 'foo', + 'd.1.b' => '', + 'd.1.c' => 'boo', + ], OpenApiUtilClient::query($array)); + } + + public function testGetRPCSignature() + { + $request = new Request(); + $request->pathname = ''; + $request->query = [ + 'query' => 'test', + 'body' => 'test', + ]; + $this->assertEquals('XlUyV4sXjOuX5FnjUz9IF9tm5rU=', OpenApiUtilClient::getRPCSignature($request->query, $request->method, 'secret')); + } + + public function testArrayToStringWithSpecifiedStyle() + { + $data = ['ok', 'test', 2, 3]; + $this->assertEquals( + 'instance.1=ok&instance.2=test&instance.3=2&instance.4=3', + OpenApiUtilClient::arrayToStringWithSpecifiedStyle( + $data, + 'instance', + 'repeatList' + ) + ); + + $this->assertEquals( + '["ok","test",2,3]', + OpenApiUtilClient::arrayToStringWithSpecifiedStyle( + $data, + 'instance', + 'json' + ) + ); + + $this->assertEquals( + 'ok,test,2,3', + OpenApiUtilClient::arrayToStringWithSpecifiedStyle( + $data, + 'instance', + 'simple' + ) + ); + + $this->assertEquals( + 'ok test 2 3', + OpenApiUtilClient::arrayToStringWithSpecifiedStyle( + $data, + 'instance', + 'spaceDelimited' + ) + ); + + $this->assertEquals( + 'ok|test|2|3', + OpenApiUtilClient::arrayToStringWithSpecifiedStyle( + $data, + 'instance', + 'pipeDelimited' + ) + ); + + $this->assertEquals( + '', + OpenApiUtilClient::arrayToStringWithSpecifiedStyle( + $data, + 'instance', + 'piDelimited' + ) + ); + + $this->assertEquals( + '', + OpenApiUtilClient::arrayToStringWithSpecifiedStyle( + null, + 'instance', + 'pipeDelimited' + ) + ); + } + + public function testParseToArray() + { + $test = $this->parseData(); + $data = $test['data']; + $expected = $test['expected']; + foreach ($data as $index => $item) { + $this->assertEquals($expected[$index], OpenApiUtilClient::parseToArray($item)); + } + } + + public function testParseToMap() + { + $test = $this->parseData(); + $data = $test['data']; + $expected = $test['expected']; + foreach ($data as $index => $item) { + $this->assertEquals($expected[$index], OpenApiUtilClient::parseToMap($item)); + } + } + + public function testGetEndpoint() + { + $endpoint = 'ecs.cn-hangzhou.aliyun.cs.com'; + $useAccelerate = false; + $endpointType = 'public'; + + $this->assertEquals('ecs.cn-hangzhou.aliyun.cs.com', OpenApiUtilClient::getEndpoint($endpoint, $useAccelerate, $endpointType)); + + $endpointType = 'internal'; + $this->assertEquals('ecs-internal.cn-hangzhou.aliyun.cs.com', OpenApiUtilClient::getEndpoint($endpoint, $useAccelerate, $endpointType)); + + $useAccelerate = true; + $endpointType = 'accelerate'; + $this->assertEquals('oss-accelerate.aliyuncs.com', OpenApiUtilClient::getEndpoint($endpoint, $useAccelerate, $endpointType)); + } + + public function testHexEncode() + { + $data = OpenApiUtilClient::hash(Utils::toBytes('test'), 'ACS3-HMAC-SHA256'); + $this->assertEquals( + Utils::toBytes(hex2bin('9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08')), + $data + ); + + $data = OpenApiUtilClient::hash(Utils::toBytes('test'), 'ACS3-RSA-SHA256'); + $this->assertEquals( + Utils::toBytes(hex2bin('9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08')), + $data + ); + + $data = OpenApiUtilClient::hash(Utils::toBytes('test'), 'ACS3-HMAC-SM3'); + $this->assertEquals( + Utils::toBytes(hex2bin('55e12e91650d2fec56ec74e1d3e4ddbfce2ef3a65890c2a19ecf88a307e76a23')), + $data + ); + + $data = OpenApiUtilClient::hash(Utils::toBytes('test'), 'ACS3-HM-SHA256'); + $this->assertEquals('', Utils::toString($data)); + } + + public function testGetEncodePath() + { + $this->assertEquals( + '/path/%20test', + OpenApiUtilClient::getEncodePath('/path/ test') + ); + } + + public function testGetEncodeParam() + { + $this->assertEquals( + 'a%2Fb%2Fc%2F%20test', + OpenApiUtilClient::getEncodeParam('a/b/c/ test') + ); + } + + public function testGetAuthorization() + { + $request = new Request(); + $request->method = ''; + $request->pathname = ''; + $request->query = [ + 'test' => 'ok', + 'empty' => '', + ]; + $request->headers = [ + 'x-acs-test' => 'http', + 'x-acs-TEST' => 'https', + ]; + + $res = OpenApiUtilClient::getAuthorization($request, 'ACS3-HMAC-SHA256', '55e12e91650d2fec56ec74e1d3e4ddbfce2ef3a65890c2a19ecf88a307e76a23', 'acesskey', 'secret'); + + $this->assertEquals('ACS3-HMAC-SHA256 Credential=acesskey,SignedHeaders=x-acs-test,Signature=0a0f89a45f1ec3537a2d1a1046c71b95513a8f1f02526056968da19b99a5b914', $res); + + $request->query = null; + + $res = OpenApiUtilClient::getAuthorization($request, 'ACS3-HMAC-SHA256', '55e12e91650d2fec56ec74e1d3e4ddbfce2ef3a65890c2a19ecf88a307e76a23', 'acesskey', 'secret'); + + $this->assertEquals('ACS3-HMAC-SHA256 Credential=acesskey,SignedHeaders=x-acs-test,Signature=af6d32deb090ae85a21d7183055cf18dca17751da96979cdf964f8f0853e9dd2', $res); + } + + public function testSign() + { + $this->assertEquals( + 'b9ff646822f41ef647c1416fa2b8408923828abc0464af6706e18db3e8553da8', + OpenApiUtilClient::hexEncode(OpenApiUtilClient::sign('secret', 'source', 'ACS3-HMAC-SM3')) + ); + $this->assertEquals('1d93c62698a1c26427265668e79fac099aa26c1df873669599a2fb2f272e64c9', + OpenApiUtilClient::hexEncode(OpenApiUtilClient::sign('secret', 'source', 'ACS3-HMAC-SHA256')) + ); + } + + private function parseData() + { + return [ + 'data' => [ + 'NotArray', + new ParseModel([ + 'str' => 'A', + 'model' => new ParseModel(['str' => 'sub model']), + 'array' => [1, 2, 3], + ]), + [ // model item in array + new ParseModel([ + 'str' => 'A', + ]), + ], + [ // model item in map + 'model' => new ParseModel([ + 'str' => 'A', + ]), + ], + ], + 'expected' => [ + ['NotArray'], + [ + 'str' => 'A', + 'model' => [ + 'str' => 'sub model', + 'model' => null, + 'array' => null, + ], + 'array' => [1, 2, 3], + ], + [ + [ + 'str' => 'A', + 'model' => null, + 'array' => null, + ], + ], + [ + 'model' => [ + 'str' => 'A', + 'model' => null, + 'array' => null, + ], + ], + ], + ]; + } +} + +class MockModel extends Model +{ + public $a = 'A'; + + public $b = ''; + + public $c = ''; + + public function __construct() + { + $this->_name['a'] = 'A'; + $this->_required['c'] = true; + parent::__construct([]); + } +} + +class ParseModel extends Model +{ + public $str; + public $model; + public $array; +} diff --git a/vendor/alibabacloud/openapi-util/tests/bootstrap.php b/vendor/alibabacloud/openapi-util/tests/bootstrap.php new file mode 100644 index 0000000..c62c4e8 --- /dev/null +++ b/vendor/alibabacloud/openapi-util/tests/bootstrap.php @@ -0,0 +1,3 @@ +doesBucketExist($bucket); Common::println("bucket $bucket exist? " . ($doesExist ? "yes" : "no")); +// Get the region of bucket +$regions = $ossClient->getBucketLocation($bucket); +Common::println("bucket $bucket region: " .print_r($regions,true)); + +// Get the meta of a bucket +$metas = $ossClient->getBucketMeta($bucket); +Common::println("bucket $bucket meta: " .print_r($metas,true)); + +// Get the info of bucket +$info = $ossClient->getBucketInfo($bucket); +Common::println("bucket name:".$info->getName()."\n"); +Common::println("bucket location:". $info->getLocation()."\n"); +Common::println("bucket creation time:".$info->getCreateDate()."\n"); +Common::println("bucket storage class:".$info->getStorageClass()."\n"); +Common::println("bucket extranet endpoint:".$info->getExtranetEndpoint()."\n"); +Common::println("bucket intranet endpoint:".$info->getIntranetEndpoint()."\n"); + + // Get the bucket list $bucketListInfo = $ossClient->listBuckets(); @@ -33,6 +51,9 @@ Common::println("bucket $bucket acl get: " . $acl); createBucket($ossClient, $bucket); doesBucketExist($ossClient, $bucket); +getBucketLocation($ossClient, $bucket); +getBucketMeta($ossClient,$bucket); +getBucketInfo($ossClient, $bucket); deleteBucket($ossClient, $bucket); putBucketAcl($ossClient, $bucket); getBucketAcl($ossClient, $bucket); @@ -82,6 +103,71 @@ function doesBucketExist($ossClient, $bucket) } } +/** + * Get the info of bucket + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + */ +function getBucketInfo($ossClient, $bucket) +{ + try { + $info = $ossClient->getBucketInfo($bucket); + printf("bucket name:%s\n", $info->getName()); + printf("bucket location:%s\n", $info->getLocation()); + printf("bucket creation time:%s\n", $info->getCreateDate()); + printf("bucket storage class:%s\n", $info->getStorageClass()); + printf("bucket extranet endpoint:%s\n", $info->getExtranetEndpoint()); + printf("bucket intranet endpoint:%s\n", $info->getIntranetEndpoint()); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} + + +/** + * Get the meta of a bucket + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + */ +function getBucketLocation($ossClient, $bucket) +{ + try { + $regions = $ossClient->getBucketLocation($bucket); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print("bucket $bucket region: " .print_r($regions,true)); + +} + + +/** + * Get the bucket's meta + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + */ +function getBucketMeta($ossClient, $bucket) +{ + try { + $metas = $ossClient->getBucketMeta($bucket); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); + print("bucket $bucket meta: " .print_r($metas,true)); +} + /** * Delete a bucket. If the bucket is not empty, the deletion fails. * A bucket which is not empty indicates that it does not contain any objects or parts that are not completely uploaded during multipart upload diff --git a/vendor/aliyuncs/oss-sdk-php/samples/BucketCname.php b/vendor/aliyuncs/oss-sdk-php/samples/BucketCname.php new file mode 100644 index 0000000..c39eb40 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/samples/BucketCname.php @@ -0,0 +1,91 @@ +'; +$ossClient->addBucketCname($bucket, $myDomain); + +// View cname records +$cnameConfig = $ossClient->getBucketCname($bucket); +Common::println("bucket $bucket cname:" . $cnameConfig->serializeToXml()); + +// Delete bucket cname +$myDomain = ''; +$ossClient->deleteBucketCname($bucket,$myDomain); +Common::println("bucket $bucket cname deleted"); + +//******************************* For complete usage, see the following functions **************************************************** + +addBucketCname($ossClient, $bucket); +getBucketCname($ossClient, $bucket); +deleteBucketCname($ossClient, $bucket); + +/** + * Set bucket cname + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + * @return null + */ +function addBucketCname($ossClient, $bucket) +{ + // Set up a custom domain name. + $myDomain = ''; + try { + $ossClient->addBucketCname($bucket, $myDomain); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Get bucket cname + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + * @return null + */ +function getBucketCname($ossClient, $bucket) +{ + try { + $cnameConfig = $ossClient->getBucketCname($bucket); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); + print($cnameConfig->serializeToXml() . "\n"); +} + +/** + * Delete bucket cname + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + * @return null + */ +function deleteBucketCname($ossClient, $bucket) +{ + $myDomain = ''; + try { + $ossClient->deleteBucketCname($bucket, $myDomain); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} diff --git a/vendor/aliyuncs/oss-sdk-php/samples/BucketEncryption.php b/vendor/aliyuncs/oss-sdk-php/samples/BucketEncryption.php new file mode 100644 index 0000000..0e61d5b --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/samples/BucketEncryption.php @@ -0,0 +1,98 @@ +putBucketEncryption($bucket, $config); +Common::println("bucket $bucket encryoption created"); + +$config = $ossClient->getBucketEncryption($bucket); +Common::println("bucket $bucket encryoption:".$config->serializeToXml()); + +$config = $ossClient->deleteBucketEncryption($bucket); +Common::println("bucket $bucket encryoption has deleted"); + +//******************************* For complete usage, see the following functions **************************************************** +putBucketEncryption($ossClient, $bucket); +getBucketEncryption($ossClient, $bucket); +deleteBucketEncryption($ossClient, $bucket); + +/** + * Configure Bucket encryption + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ + +function putBucketEncryption($ossClient,$bucket){ + try { + // Set Bucket's default server-side encryption method to OSS fully managed encryption (SSE-OSS). + $config = new ServerSideEncryptionConfig("AES256"); + // Set Bucket's default server-side encryption method to KMS, and do not specify a CMK ID. + //$config = new ServerSideEncryptionConfig("KMS"); + // Set Bucket's default server-side encryption method to KMS, and specify the CMK ID. + //$config = new ServerSideEncryptionConfig("KMS", "your kms id"); + $ossClient->putBucketEncryption($bucket, $config); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Get Bucket encryption + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ + +function getBucketEncryption($ossClient,$bucket){ + try { + $config = $ossClient->getBucketEncryption($bucket); + print($config->getSSEAlgorithm()); + print($config->getKMSMasterKeyID()); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} + + +/** + * Delete Bucket encryption + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ + +function deleteBucketEncryption($ossClient,$bucket){ + try { + $ossClient->deleteBucketEncryption($bucket); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} + diff --git a/vendor/aliyuncs/oss-sdk-php/samples/BucketPayment.php b/vendor/aliyuncs/oss-sdk-php/samples/BucketPayment.php new file mode 100644 index 0000000..ad04555 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/samples/BucketPayment.php @@ -0,0 +1,116 @@ +putBucketRequestPayment($bucket, "Requester"); + +//Get requester payment mode configuration +$payer = $ossClient->getBucketRequestPayment($bucket); +Common::println("bucket $bucket Payer:".$payer.PHP_EOL); + +//Third-party paid access to Object +$options = array( + OssClient::OSS_HEADERS => array( + OssClient::OSS_REQUEST_PAYER => 'requester', + )); + +$content = "hello"; +$object = "object"; + +//PutObject interface to specify the payer +$ossClient->putObject($bucket, $object, $content, $options); + +// GetObject interface to specify the payer +$ossClient->getObject($bucket, $object, $options); + +// DeleteObject interface to specify the payer +$ossClient->deleteObject($bucket, $object, $options); + +//******************************* For complete usage, see the following functions **************************************************** + +putBucketRequestPayment($ossClient,$bucket); +getBucketRequestPayment($ossClient,$bucket); +setObjectPayment($ossClient,$bucket); + +/** + * Set requester payment mode + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function putBucketRequestPayment($ossClient, $bucket) +{ + try { + $ossClient->putBucketRequestPayment($bucket, "Requester"); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + + +/** + * Get payment mode of bucket + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function getBucketRequestPayment($ossClient, $bucket) +{ + try { + $payer = $ossClient->getBucketRequestPayment($bucket); + print("bucket $bucket Payer:".$payer.PHP_EOL); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Set payment mode of object + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function setObjectPayment($ossClient,$bucket){ + // Specify the payment model for the requester. + $options = array( + OssClient::OSS_HEADERS => array( + OssClient::OSS_REQUEST_PAYER => 'requester', + )); + + try { + + $content = "hello"; + $object = "object"; + //PutObject interface to specify the payer + $ossClient->putObject($bucket, $object, $content, $options); + // GetObject interface to specify the payer + $ossClient->getObject($bucket, $object, $options); + // DeleteObject interface to specify the payer + $ossClient->deleteObject($bucket, $object, $options); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + + diff --git a/vendor/aliyuncs/oss-sdk-php/samples/BucketPolicy.php b/vendor/aliyuncs/oss-sdk-php/samples/BucketPolicy.php new file mode 100644 index 0000000..333efac --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/samples/BucketPolicy.php @@ -0,0 +1,123 @@ +putBucketPolicy($bucket, $policy); + +// Get bucket pllicy +$policy = $ossClient->getBucketPolicy($bucket); +Common::println("bucket $bucket policy: " . $policy); + + +// Delete bucket pllicy +$policy = $ossClient->deleteBucketPolicy($bucket); + +//******************************* For complete usage, see the following functions **************************************************** + +putBucketPolicy($ossClient, $bucket); +getBucketPolicy($ossClient, $bucket); +deleteBucketPolicy($ossClient, $bucket); + +/** + * Set Bucket Policy + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function putBucketPolicy($ossClient, $bucket) +{ + $policy = <<< BBBB +{ + "Version":"1", + "Statement":[ + { + "Action":[ + "oss:PutObject", + "oss:GetObject" + ], + "Effect":"Allow", + "Resource":["acs:oss:*:*:*/user1/*"] + } + ] +} +BBBB; + + try { + $ossClient->putBucketPolicy($bucket, $policy); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + + +/** + * Get Bucket Policy + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function getBucketPolicy($ossClient, $bucket) +{ + try { + $policy = $ossClient->getBucketPolicy($bucket); + print($policy); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + + +/** + * Delete Bucket Policy + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function deleteBucketPolicy($ossClient, $bucket) +{ + try { + $ossClient->deleteBucketPolicy($bucket); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} diff --git a/vendor/aliyuncs/oss-sdk-php/samples/BucketTags.php b/vendor/aliyuncs/oss-sdk-php/samples/BucketTags.php new file mode 100644 index 0000000..e361eaa --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/samples/BucketTags.php @@ -0,0 +1,112 @@ +addTag(new Tag("key1", "value1")); +$config->addTag(new Tag("key2", "value2")); +$ossClient->putBucketTags($bucket, $config); + +// Get bucket tags +$config = $ossClient->getBucketTags($bucket); +Common::println("bucket $bucket tags: ".$config->serializeToXml()); + +// Delete bucket tags + +// Delete the specified tag of the bucket. +$tags = array(); +$tags[] = new Tag("key1", "value1"); +$tags[] = new Tag("key2", "value2"); +$ossClient->deleteBucketTags($bucket, $tags); + +// Delete all tags in the bucket. +$ossClient->deleteBucketTags($bucket); + +//******************************* For complete usage, see the following functions **************************************************** + +putBucketTags($ossClient, $bucket); +getBucketTags($ossClient, $bucket); +deleteBucketTags($ossClient, $bucket); + + +/** + * Create bucket tag + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function putBucketTags($ossClient, $bucket) +{ + try { + // 设置Bucket标签。 + $config = new TaggingConfig(); + $config->addTag(new Tag("key1", "value1")); + $config->addTag(new Tag("key2", "value2")); + $ossClient->putBucketTags($bucket, $config); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + + +/** + * get bucket tag + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function getBucketTags($ossClient, $bucket) +{ + try { + $config = $ossClient->getBucketTags($bucket); + print_r($config->getTags()); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * delete bucket tag + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function deleteBucketTags($ossClient, $bucket) +{ + try { + // Delete the specified tag of the bucket. + $tags = array(); + $tags[] = new Tag("key1", "value1"); + $tags[] = new Tag("key2", "value2"); + $ossClient->deleteBucketTags($bucket, $tags); + + // Delete all tags in the bucket. + //$ossClient->deleteBucketTags($bucket); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + diff --git a/vendor/aliyuncs/oss-sdk-php/samples/BucketTransferAcceleration.php b/vendor/aliyuncs/oss-sdk-php/samples/BucketTransferAcceleration.php new file mode 100644 index 0000000..ee112db --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/samples/BucketTransferAcceleration.php @@ -0,0 +1,61 @@ +sfer acceleration +$enabled = true; // set true to enable transfer acceleration; set false to disalbe transfer acceleration +$ossClient->putBucketTransferAcceleration($bucket, $enabled); +printf('putBucketTransferAcceleration SUCCESS' . "\n"); + + +// get transfer acceleration +$result = $ossClient->getBucketTransferAcceleration($bucket); +printf('getBucketTransferAcceleration Status:%s'."\n",$result); + + +//******************************* For complete usage, see the following functions **************************************************** +putBucketTransferAcceleration($ossClient,$bucket); +getBucketTransferAcceleration($bucket); + +/** + * @param $ossClient OssClient + * @param $bucket bucket_name string + * @param $enabled string + */ +function putBucketTransferAcceleration($ossClient, $bucket, $enabled) +{ + try{ + $enabled = true; // set true to enable transfer acceleration; set false to disalbe transfer acceleration + $ossClient->putBucketTransferAcceleration($bucket,$enabled); + printf('putBucketTransferAcceleration SUCCESS' . "\n"); + } catch(OssException $e) { + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * @param $ossClient OssClient + * @param $bucket bucket_name string + */ +function getBucketTransferAcceleration($ossClient, $bucket) +{ + try{ + $result = $ossClient->getBucketTransferAcceleration($bucket); + printf('getBucketTransferAcceleration Status:%s'."\n",$result); + } catch(OssException $e) { + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} diff --git a/vendor/aliyuncs/oss-sdk-php/samples/BucketVersion.php b/vendor/aliyuncs/oss-sdk-php/samples/BucketVersion.php new file mode 100644 index 0000000..a1b4ed6 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/samples/BucketVersion.php @@ -0,0 +1,235 @@ +putBucketVersioning($bucket, "Enabled"); +Common::println("bucket $bucket version Enabled"); +// show all object list +$option = array( + OssClient::OSS_KEY_MARKER => null, + OssClient::OSS_VERSION_ID_MARKER => null +); +$bool = true; +while ($bool) { + $result = $ossClient->listObjectVersions($bucket, $option); + ## View the version information of the listed object. + foreach ($result->getObjectVersionList() as $key => $info) { + Common::println("key name: " . $info->getKey()); + Common::println("versionid: " . $info->getVersionId()); + Common::println("Is latest: " . $info->getIsLatest()); + } + + ## View the version information that lists the deletion flags. + foreach ($result->getDeleteMarkerList() as $key => $info) { + Common::println("del_maker key name: " . $info->getKey()); + Common::println("del_maker versionid: " . $info->getVersionId()); + Common::println("del_maker Is latest: " . $info->getIsLatest()); + } + + if ($result->getIsTruncated() === 'true') { + $option = array( + OssClient::OSS_KEY_MARKER => $result->getNextKeyMarker(), + OssClient::OSS_VERSION_ID_MARKER => $result->getNextVersionIdMarker() + ); + } else { + $bool = false; + } +} + +// show the prefix object + +$option = array( + OssClient::OSS_KEY_MARKER => null, + OssClient::OSS_VERSION_ID_MARKER => null, + OssClient::OSS_PREFIX => "test" +); +$bool = true; +while ($bool) { + $result = $ossClient->listObjectVersions($bucket, $option); + ## View the version information of the listed object. + foreach ($result->getObjectVersionList() as $key => $info) { + Common::println("key name: " . $info->getKey()); + Common::println("versionid: " . $info->getVersionId()); + Common::println("Is latest: " . $info->getIsLatest()); + } + + ## View the version information that lists the deletion flags. + foreach ($result->getDeleteMarkerList() as $key => $info) { + Common::println("del_maker key name: " . $info->getKey()); + Common::println("del_maker versionid: " . $info->getVersionId()); + Common::println("del_maker Is latest: " . $info->getIsLatest()); + } + + if ($result->getIsTruncated() === 'true') { + $option[OssClient::OSS_KEY_MARKER] = $result->getNextKeyMarker(); + $option[OssClient::OSS_VERSION_ID_MARKER] = $result->getNextVersionIdMarker(); + } else { + $bool = false; + } +} + +// list the number of objects + +$option = array( + OssClient::OSS_KEY_MARKER => null, + OssClient::OSS_VERSION_ID_MARKER => null, + OssClient::OSS_MAX_KEYS => 200 +); + +$result = $ossClient->listObjectVersions($bucket, $option); +## View the version information of the listed object. +foreach ($result->getObjectVersionList() as $key => $info) { + Common::println("key name: " . $info->getKey()); + Common::println("versionid: " . $info->getVersionId()); + Common::println("Is latest: " . $info->getIsLatest()); +} + +## View the version information that lists the deletion flags. +foreach ($result->getDeleteMarkerList() as $key => $info) { + Common::println("del_maker key name: " . $info->getKey()); + Common::println("del_maker versionid: " . $info->getVersionId()); + Common::println("del_maker Is latest: " . $info->getIsLatest()); +} + + +// show root folder list +$option = array( + OssClient::OSS_KEY_MARKER => null, + OssClient::OSS_VERSION_ID_MARKER => null, + OssClient::OSS_DELIMITER => "/", +); +$bool = true; +while ($bool) { + $result = $ossClient->listObjectVersions($bucket, $option); + ## View the version information of the listed object. + foreach ($result->getObjectVersionList() as $key => $info) { + Common::println("key name: " . $info->getKey()); + Common::println("versionid: " . $info->getVersionId()); + Common::println("Is latest: " . $info->getIsLatest()); + } + + ## View the version information that lists the deletion flags. + foreach ($result->getDeleteMarkerList() as $key => $info) { + Common::println("del_maker key name: " . $info->getKey()); + Common::println("del_maker versionid: " . $info->getVersionId()); + Common::println("del_maker Is latest: " . $info->getIsLatest()); + } + + if ($result->getIsTruncated() === 'true') { + $option[OssClient::OSS_KEY_MARKER] = $result->getNextKeyMarker(); + $option[OssClient::OSS_VERSION_ID_MARKER] = $result->getNextVersionIdMarker(); + } else { + $bool = false; + } +} + +// Show subfolder objects list +$option = array( + OssClient::OSS_KEY_MARKER => null, + OssClient::OSS_VERSION_ID_MARKER => null, + OssClient::OSS_DELIMITER => "/", + OssClient::OSS_PREFIX => "test/", +); +$bool = true; +while ($bool) { + $result = $ossClient->listObjectVersions($bucket, $option); + ## View the version information of the listed object. + foreach ($result->getObjectVersionList() as $key => $info) { + Common::println("key name: " . $info->getKey()); + Common::println("versionid: " . $info->getVersionId()); + Common::println("Is latest: " . $info->getIsLatest()); + } + + ## View the version information that lists the deletion flags. + foreach ($result->getDeleteMarkerList() as $key => $info) { + Common::println("del_maker key name: " . $info->getKey()); + Common::println("del_maker versionid: " . $info->getVersionId()); + Common::println("del_maker Is latest: " . $info->getIsLatest()); + } + + if ($result->getIsTruncated() === 'true') { + $option[OssClient::OSS_KEY_MARKER] = $result->getNextKeyMarker(); + $option[OssClient::OSS_VERSION_ID_MARKER] = $result->getNextVersionIdMarker(); + } else { + $bool = false; + } +} + + +//******************************* For complete usage, see the following functions **************************************************** + +listObjectVersions($ossClient, $bucket); +putBucketVersioning($ossClient, $bucket); +/** + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function listObjectVersions($ossClient, $bucket) +{ + try { + $option = array( + OssClient::OSS_KEY_MARKER => null, + OssClient::OSS_VERSION_ID_MARKER => null, + ); + $bool = true; + while ($bool) { + $result = $ossClient->listObjectVersions($bucket, $option); + ## View the version information of the listed object. + foreach ($result->getObjectVersionList() as $key => $info) { + Common::println("key name: " . $info->getKey()); + Common::println("versionid: " . $info->getVersionId()); + Common::println("Is latest: " . $info->getIsLatest()); + } + + ## View the version information that lists the deletion flags. + foreach ($result->getDeleteMarkerList() as $key => $info) { + Common::println("del_maker key name: " . $info->getKey()); + Common::println("del_maker versionid: " . $info->getVersionId()); + Common::println("del_maker Is latest: " . $info->getIsLatest()); + } + + if ($result->getIsTruncated() === 'true') { + $option[OssClient::OSS_KEY_MARKER] = $result->getNextKeyMarker(); + $option[OssClient::OSS_VERSION_ID_MARKER] = $result->getNextVersionIdMarker(); + } else { + $bool = false; + } + } + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Enabled or Suspended bucket version + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function putBucketVersioning($ossClient, $bucket) +{ + try { + //Set the storage space version control to enable version control (Enabled) or suspend version control (Suspended). + $ossClient->putBucketVersioning($bucket, "Enabled"); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} \ No newline at end of file diff --git a/vendor/aliyuncs/oss-sdk-php/samples/BucketWorm.php b/vendor/aliyuncs/oss-sdk-php/samples/BucketWorm.php new file mode 100644 index 0000000..c4b0fb9 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/samples/BucketWorm.php @@ -0,0 +1,145 @@ +initiateBucketWorm($bucket, 30); +Common::println("bucket $bucket wormId: " . $wormId.PHP_EOL); + +// Cancel an unlocked compliance retention policy +$ossClient->abortBucketWorm($bucket); + +//Lock compliant retention policy +$wormId = $ossClient->initiateBucketWorm($bucket, 30); +$ossClient->completeBucketWorm($bucket, $wormId); + +// Get compliant retention policy +$config = $ossClient->getBucketWorm($bucket); +Common::println("WormId:".$config->getWormId().PHP_EOL); +Common::println("State:". $config->getState().PHP_EOL); +Common::println("Day:". $config->getDay().PHP_EOL); + +// Extend the retention days of objects +$wormId = ""; +// Extend the retention days of objects in the locked compliance retention policy to 120 days. +$ossClient->extendBucketWorm($bucket, $wormId, 120); + +//******************************* For complete usage, see the following functions **************************************************** + +initiateBucketWorm($ossClient, $bucket); +abortBucketWorm($ossClient, $bucket); +completeBucketWorm($ossClient, $bucket); +getBucketWorm($ossClient, $bucket); +extendBucketWorm($ossClient, $bucket); + +/** + * Set Bucket Worm Ploicy + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function initiateBucketWorm($ossClient, $bucket) +{ + try { + $wormId = $ossClient->initiateBucketWorm($bucket,30); + print("bucket $bucket wormId: " . $wormId.PHP_EOL); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + + +/** + * Cancel an unlocked compliance retention policy + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket Name of the bucket to create + * @return null + */ +function abortBucketWorm($ossClient, $bucket) +{ + try { + $ossClient->abortBucketWorm($bucket); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + + +/** + * Complete Bucket Worm + * @param $ossClient $ossClient OssClient instance + * @param $bucket $bucket Name of the bucket to create + */ +function completeBucketWorm($ossClient, $bucket) +{ + try { + $wormId = $ossClient->initiateBucketWorm($bucket, 30); + $ossClient->completeBucketWorm($bucket, $wormId); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Get Bucket Worm + * @param $ossClient $ossClient OssClient instance + * @param $bucket $bucket Name of the bucket to create + */ +function getBucketWorm($ossClient, $bucket) +{ + try { + $config = $ossClient->getBucketWorm($bucket); + + printf("WormId:%s\n", $config->getWormId()); + printf("State:%s\n", $config->getState()); + printf("Day:%d\n", $config->getDay()); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Extend the retention days of objects + * @param $ossClient $ossClient OssClient instance + * @param $bucket $bucket Name of the bucket to create + */ +function extendBucketWorm($ossClient, $bucket) +{ + $wormId = ""; + try { + $ossClient->ExtendBucketWorm($bucket, $wormId, 120); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} \ No newline at end of file diff --git a/vendor/aliyuncs/oss-sdk-php/samples/Object.php b/vendor/aliyuncs/oss-sdk-php/samples/Object.php index ae6eb83..bf6e86b 100644 --- a/vendor/aliyuncs/oss-sdk-php/samples/Object.php +++ b/vendor/aliyuncs/oss-sdk-php/samples/Object.php @@ -3,6 +3,7 @@ require_once __DIR__ . '/Common.php'; use OSS\OssClient; use OSS\Core\OssException; +use OSS\Model\RestoreConfig; $bucket = Common::getBucketName(); $ossClient = Common::getOssClient(); @@ -48,6 +49,17 @@ $ossClient->getObject($bucket, "c.file", $options); Common::println("b.file is fetched to the local file: c.file.localcopy"); Common::println("b.file is created"); + +// Restore Object +$day = 3; +$tier = 'Expedited'; +$config = new RestoreConfig($day,$tier); +$options = array( + OssClient::OSS_RESTORE_CONFIG => $config +); +$ossClient->restoreObject($bucket, 'b.file',$options); + + // Copy an object $result = $ossClient->copyObject($bucket, "c.file", $bucket, "c.file.copy"); Common::println("lastModifiedTime: " . $result[0]); @@ -75,9 +87,37 @@ foreach($result as $object) sleep(2); unlink("c.file.localcopy"); +// Normal upload and download speed limit +$object= "b.file"; +$content = "hello world"; + +// The speed limit is 100 KB/s, which is 819200 bit/s. +$options = array( + OssClient::OSS_HEADERS => array( + OssClient::OSS_TRAFFIC_LIMIT => 819200, + )); +// Speed limit upload. +$ossClient->putObject($bucket, $object, $content, $options); + +// Speed limit download. +$ossClient->getObject($bucket, $object, $options); + +// Signed URL upload and download speed limit + +// Create a URL for uploading with a limited rate, and the validity period is 60s. +$timeout = 60; +$signedUrl = $ossClient->signUrl($bucket, $object, $timeout, "PUT", $options); +Common::println("b.file speed limit upload url:".$signedUrl.PHP_EOL); + +// Create a URL for speed-limited downloads, with a validity period of 120s. +$timeout = 120; +$signedUrl = $ossClient->signUrl($bucket, $object, $timeout, "GET", $options); +Common::println("b.file speed limit download url:".$signedUrl.PHP_EOL); + //******************************* For complete usage, see the following functions **************************************************** listObjects($ossClient, $bucket); +listObjectsV2($ossClient, $bucket); listAllObjects($ossClient, $bucket); createObjectDir($ossClient, $bucket); putObject($ossClient, $bucket); @@ -92,6 +132,11 @@ deleteObjects($ossClient, $bucket); doesObjectExist($ossClient, $bucket); getSymlink($ossClient, $bucket); putSymlink($ossClient, $bucket); +putObjectSpeed($ossClient, $bucket); +getObjectSpeed($ossClient, $bucket); +signUrlSpeedUpload($ossClient, $bucket); +signUrlSpeedDownload($ossClient, $bucket); +restoreObject($ossClient,$bucket); /** * Create a 'virtual' folder * @@ -194,6 +239,10 @@ function listObjects($ossClient, $bucket) print("objectList:\n"); foreach ($objectList as $objectInfo) { print($objectInfo->getKey() . "\n"); + if($objectInfo->getOwner() != null){ + printf("owner id:".$objectInfo->getOwner()->getId() . "\n"); + printf("owner name:".$objectInfo->getOwner()->getDisplayName() . "\n"); + } } } if (!empty($prefixList)) { @@ -204,6 +253,55 @@ function listObjects($ossClient, $bucket) } } +/** + * Lists all files and folders in the bucket. + * Note if there's more items than the max-keys specified, the caller needs to use the nextMarker returned as the value for the next call's maker paramter. + * Loop through all the items returned from ListObjects. + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + * @return null + */ +function listObjectsV2($ossClient, $bucket) +{ + $prefix = 'oss-php-sdk-test/'; + $delimiter = '/'; + $maxkeys = 1000; + $options = array( + 'delimiter' => $delimiter, + 'prefix' => $prefix, + 'max-keys' => $maxkeys, + 'start-after' =>'test-object', + 'fetch-owner' =>'true', + ); + try { + $listObjectInfo = $ossClient->listObjectsV2($bucket, $options); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); + $objectList = $listObjectInfo->getObjectList(); // object list + $prefixList = $listObjectInfo->getPrefixList(); // directory list + if (!empty($objectList)) { + print("objectList:\n"); + foreach ($objectList as $objectInfo) { + print($objectInfo->getKey() . "\n"); + if($objectInfo->getOwner() != null){ + printf("owner id:".$objectInfo->getOwner()->getId() . "\n"); + printf("owner name:".$objectInfo->getOwner()->getDisplayName() . "\n"); + } + } + } + if (!empty($prefixList)) { + print("prefixList: \n"); + foreach ($prefixList as $prefixInfo) { + print($prefixInfo->getPrefix() . "\n"); + } + } +} + /** * Lists all folders and files under the bucket. Use nextMarker repeatedly to get all objects. * @@ -516,3 +614,116 @@ function doesObjectExist($ossClient, $bucket) var_dump($exist); } +/** + * Speed limit upload. + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + * @return null + */ +function putObjectSpeed($ossClient, $bucket) +{ + $object = "upload-test-object-name.txt"; + $content = file_get_contents(__FILE__); + $options = array( + OssClient::OSS_HEADERS => array( + OssClient::OSS_TRAFFIC_LIMIT => 819200, + )); + try { + $ossClient->putObject($bucket, $object, $content, $options); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Speed limit download. + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + * @return null + */ +function getObjectSpeed($ossClient, $bucket) +{ + $object = "upload-test-object-name.txt"; + $options = array( + OssClient::OSS_HEADERS => array( + OssClient::OSS_TRAFFIC_LIMIT => 819200, + )); + try { + $ossClient->getObject($bucket, $object, $options); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Speed limit download. + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + * @return null + */ +function signUrlSpeedUpload($ossClient, $bucket) +{ + $object = "upload-test-object-name.txt"; + $timeout = 120; + $options = array( + OssClient::OSS_TRAFFIC_LIMIT => 819200, + ); + $timeout = 60; + $signedUrl = $ossClient->signUrl($bucket, $object, $timeout, "PUT", $options); + print($signedUrl); +} + + +/** + * Speed limit download. + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + * @return null + */ +function signUrlSpeedDownload($ossClient, $bucket) +{ + $object = "upload-test-object-name.txt"; + $timeout = 120; + $options = array( + OssClient::OSS_TRAFFIC_LIMIT => 819200, + ); + $signedUrl = $ossClient->signUrl($bucket, $object, $timeout, "GET", $options); + print($signedUrl); + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Restore object + * + * @param OssClient $ossClient OssClient instance + * @param string $bucket bucket name + * @return null + */ +function restoreObject($ossClient, $bucket) +{ + $object = "oss-php-sdk-test/upload-test-object-name.txt"; + $day = 3; + $tier = 'Expedited'; + $config = new RestoreConfig($day,$tier); + $options = array( + OssClient::OSS_RESTORE_CONFIG => $config + ); + try { + $ossClient->restoreObject($bucket, $object,$options); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); +} diff --git a/vendor/aliyuncs/oss-sdk-php/samples/ObjectTagging.php b/vendor/aliyuncs/oss-sdk-php/samples/ObjectTagging.php new file mode 100644 index 0000000..adc283b --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/samples/ObjectTagging.php @@ -0,0 +1,366 @@ + array( + 'x-oss-tagging' => 'key1=value1&key2=value2&key3=value3', + ) +); +$result = $ossClient->putObject($bucket, $object, __FILE__,$options); +Common::println("b.file is created"); +Common::println("tag is:".$result['oss-requestheaders']['x-oss-tagging']); + +// Add object tags when uploading parts + +$object = "b.file"; +$file = __FILE__; +$options = array( + OssClient::OSS_CHECK_MD5 => true, + OssClient::OSS_PART_SIZE => 1, + OssClient::OSS_HEADERS => array( + 'x-oss-tagging' => 'key1=value1&key2=value2&key3=value3', + ), +); +$result = $ossClient->multiuploadFile($bucket, $object, $file, $options); +Common::println("b.file is created"); +Common::println("tag is:".$result['oss-requestheaders']['x-oss-tagging']); + +// get tags from object + +$object = "a.txt"; +$result = $ossClient->getObjectTagging($bucket,$object); +printf($object.'tags is: '.$result->serializeToXml().PHP_EOL); + + +// Add or change object tags to uploaded objects +$config = new TaggingConfig(); +$config->addTag(new Tag("key1", "value1")); +$config->addTag(new Tag("key2", "value2")); + +$ossClient->putObjectTagging($bucket, $object, $config); +// Add object tags when uploading +$object = "a.txt"; +$filePath = "D:\\localpath\\b.txt"; +$filePath1 = "D:\\localpath\\c.txt"; +$options = array( + OssClient::OSS_HEADERS => array( + 'x-oss-tagging' => 'key1=value1&key2=value2', + ) +); +$position = $ossClient->appendObject($bucket, $object,'content one',0,$options); +printf('Content one append object Success'.PHP_EOL); +$position = $ossClient->appendObject($bucket, $object, 'content two',$position,$options); +printf('Content two append object Success'.PHP_EOL); + +// delete tags +$object = "g.file"; +$ossClient->deleteObjectTagging($bucket, $object); +printf($object.' tags has deleted'.PHP_EOL); + +// Copy a small file +$fromBucket = $bucket; +$fromObject = "a.file"; +$toBucket = $bucket; +$toObject = $fromObject . '.copy'; +$options = array( + OssClient::OSS_HEADERS => array( + 'x-oss-tagging-directive' => 'Replace', + 'x-oss-tagging'=>'key1=value1&key2=value2&key3=value3', + )); +$ossClient->copyObject($fromBucket, $fromObject, $toBucket, $toObject, $options); +$config = $ossClient->getObjectTagging($bucket, $toObject); +Common::println('object tags is:'.$config->serializeToXml()); + +// Copy a large file +$fromBucket = $bucket; +$fromObject = "a.file"; +$toBucket = $bucket; +$toObject = $fromObject . '.copy'; +$options = array( + OssClient::OSS_HEADERS => array( + 'x-oss-tagging'=>'key1=value1&key2=value2&key3=value3', + )); + +$part_size = 256*1024*1024; +$objectMeta = $ossClient->getObjectMeta($fromBucket, $fromObject); +$length = $objectMeta['content-length']; +$upload_id = $ossClient->initiateMultipartUpload($toBucket, $toObject,$options); +$pieces = $ossClient->generateMultiuploadParts($length, $part_size); +$response_upload_part = array(); +$copyId = 1; +$upload_position = 0; +foreach ($pieces as $i => $piece) { + $from_pos = $upload_position + (integer)$piece['seekTo']; + $to_pos = (integer)$piece['length'] + $from_pos - 1; + $up_options = array( + 'start' => $from_pos, + 'end' => $to_pos, + ); + $response_upload_part[] = $ossClient->uploadPartCopy( $fromBucket, $fromObject, $toBucket, $toObject, $copyId, $upload_id, $up_options); + printf("initiateMultipartUpload, uploadPartCopy - part#{$copyId} OK\n"); + $copyId = $copyId + 1; +} +$upload_parts = array(); +foreach ($response_upload_part as $i => $etag) { + $upload_parts[] = array( + 'PartNumber' => ($i + 1), + 'ETag' => $etag, + ); +} +$result = $ossClient->completeMultipartUpload($toBucket, $toObject, $upload_id, $upload_parts); +$config = $ossClient->getObjectTagging($bucket, $toObject); +Common::println($toObject.' tags is:'.$config->serializeToXml()); + + + +//******************************* For complete usage, see the following functions **************************************************** + +putObject($ossClient,$bucket); +multiuploadFile($ossClient,$bucket); +appendObject($ossClient,$bucket); +putObjectTagging($ossClient,$bucket); +getObjectTagging($ossClient,$bucket); +deleteObjectTagging($ossClient,$bucket); +copyObjectSmall($ossClient,$bucket); +copyObjectLarge($ossClient,$bucket); +/** + * Upload Object add tag + * @param $ossClient OssClient + * @param $bucket bucket_name + */ +function putObject($ossClient,$bucket){ + $object = "b.file"; + $options = array( + OssClient::OSS_HEADERS => array( + 'x-oss-tagging' => 'key1=value1&key2=value2&key3=value3', + )); + try { + // 通过简单上传的方式上传Object。 + $result = $ossClient->putObject($bucket, $object, __FILE__,$options); + Common::println("b.file is created".PHP_EOL); + Common::println("tag is:".$result['oss-requestheaders']['x-oss-tagging'].PHP_EOL); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Add object tags when uploading parts + * @param $ossClient OssClient + * @param $bucket bucket_name + */ +function multiuploadFile($ossClient,$bucket){ + $object = "b.file"; + $file = __FILE__; + $options = array( + OssClient::OSS_CHECK_MD5 => true, + OssClient::OSS_PART_SIZE => 1, + OssClient::OSS_HEADERS => array( + 'x-oss-tagging' => 'key1=value1&key2=value2&key3=value3', + ), + ); + + try { + $result = $ossClient->multiuploadFile($bucket, $object, $file, $options); + Common::println("b.file is created".PHP_EOL); + Common::println("tag is:".$result['oss-requestheaders']['x-oss-tagging'].PHP_EOL); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Add object tags when uploading + * @param $ossClient OssClient + * @param $bucket bucket_name string + */ +function appendObject($ossClient,$bucket){ + $object = "g.file"; + $content_array = array('Hello OSS', 'Hi OSS'); + $options = array( + OssClient::OSS_HEADERS => array( + 'x-oss-tagging' => 'key1=value1&key2=value2', + )); + + try { + $position = $ossClient->appendObject($bucket, $object, $content_array[0], 0, $options); + printf($content_array[0].' append object Success'.PHP_EOL); + $position = $ossClient->appendObject($bucket, $object, $content_array[1], $position); + printf($content_array[1].' append object Success'.PHP_EOL); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * @param $ossClient OssClient + * @param $bucket bucket_name string + * @throws OssException + */ +function putObjectTagging($ossClient,$bucket){ + $object = "g.file"; + $config = new TaggingConfig(); + $config->addTag(new Tag("key1", "value1")); + $config->addTag(new Tag("key2", "value2")); + + try { + $ossClient->putObjectTagging($bucket, $object, $config); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + + +/** + * get object tags + * @param $ossClient OssClient + * @param $bucket bucket_name string + */ +function getObjectTagging($ossClient,$bucket){ + $object = "g.file"; + try { + $config = $ossClient->getObjectTagging($bucket, $object); + printf($object." tags is:".$config->serializeToXml().PHP_EOL); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + + +/** + * get object tags + * @param $ossClient OssClient + * @param $bucket bucket_name string + */ +function deleteObjectTagging($ossClient,$bucket){ + $object = "g.file"; + try { + $ossClient->deleteObjectTagging($bucket, $object); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Copy small files + * @param $ossClient OssClient + * @param $bucket bucket_name string + */ +function copyObjectSmall($ossClient,$bucket){ + $fromBucket = $bucket; + $fromObject = "a.file"; + $toBucket = $bucket; + $toObject = $fromObject . '.copy'; + $options = array( + OssClient::OSS_HEADERS => array( + 'x-oss-tagging-directive' => 'Replace', + 'x-oss-tagging'=>'key1=value1&key2=value2&key3=value3', + )); + + try { + $ossClient->copyObject($fromBucket, $fromObject, $toBucket, $toObject, $options); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + + $config = $ossClient->getObjectTagging($bucket, $toObject); + Common::println('object tags is:'.$config->serializeToXml()); + print(__FUNCTION__ . ": OK" . "\n"); +} + +/** + * Copy a large file + * @param $ossClient OssClient + * @param $bucket bucket_name string + */ +function copyObjectLarge($ossClient,$bucket){ + $fromBucket = $bucket; + $fromObject = "a.file"; + $toBucket = $bucket; + $toObject = $fromObject . '.copy'; + $options = array( + OssClient::OSS_HEADERS => array( + 'x-oss-tagging'=>'key1=value1&key2=value2&key3=value3', + )); + + $part_size = 256*1024*1024; + try{ + $objectMeta = $ossClient->getObjectMeta($fromBucket, $fromObject); + $length = $objectMeta['content-length']; + $upload_id = $ossClient->initiateMultipartUpload($toBucket, $toObject,$options); + $pieces = $ossClient->generateMultiuploadParts($length, $part_size); + $response_upload_part = array(); + $copyId = 1; + $upload_position = 0; + foreach ($pieces as $i => $piece) { + $from_pos = $upload_position + (integer)$piece['seekTo']; + $to_pos = (integer)$piece['length'] + $from_pos - 1; + $up_options = array( + 'start' => $from_pos, + 'end' => $to_pos, + ); + $response_upload_part[] = $ossClient->uploadPartCopy( $fromBucket, $fromObject, $toBucket, $toObject, $copyId, $upload_id, $up_options); + printf("initiateMultipartUpload, uploadPartCopy - part#{$copyId} OK\n"); + $copyId = $copyId + 1; + } + $upload_parts = array(); + foreach ($response_upload_part as $i => $etag) { + $upload_parts[] = array( + 'PartNumber' => ($i + 1), + 'ETag' => $etag, + ); + } + $result = $ossClient->completeMultipartUpload($toBucket, $toObject, $upload_id, $upload_parts); + printf('copy success'. "\n"); + } catch(OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + + + } + $config = $ossClient->getObjectTagging($bucket, $toObject); + Common::println($toObject.' tags is:'.$config->serializeToXml()); + print(__FUNCTION__ . ": OK" . "\n"); +} + diff --git a/vendor/aliyuncs/oss-sdk-php/src/OSS/Core/OssUtil.php b/vendor/aliyuncs/oss-sdk-php/src/OSS/Core/OssUtil.php index a33a152..66b4676 100644 --- a/vendor/aliyuncs/oss-sdk-php/src/OSS/Core/OssUtil.php +++ b/vendor/aliyuncs/oss-sdk-php/src/OSS/Core/OssUtil.php @@ -31,7 +31,11 @@ class OssUtil uksort($options, 'strnatcasecmp'); foreach ($options as $key => $value) { if (is_string($key) && !is_array($value)) { - $temp[] = rawurlencode($key) . '=' . rawurlencode($value); + if (strlen($value) > 0) { + $temp[] = rawurlencode($key) . '=' . rawurlencode($value); + } else { + $temp[] = rawurlencode($key); + } } } return implode('&', $temp); diff --git a/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/CnameTokenInfo.php b/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/CnameTokenInfo.php new file mode 100644 index 0000000..295cfbd --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/CnameTokenInfo.php @@ -0,0 +1,105 @@ +bucket; + } + + /** + * Get cname + * + * @return string + */ + public function getCname() + { + return $this->cname; + } + + /** + * Get token. + * + * @return string + */ + public function getToken() + { + return $this->token; + } + + /** + * Get expireTime. + * + * @return string + */ + public function getExpireTime() + { + return $this->expireTime; + } + + /** + * Parse cname token from the xml. + * + * @param string $strXml + * @throws OssException + * @return null + */ + public function parseFromXml($strXml) + { + $xml = simplexml_load_string($strXml); + if (isset($xml->Bucket) ) { + $this->bucket = strval($xml->Bucket); + } + if (isset($xml->Cname) ) { + $this->cname = strval($xml->Cname); + } + if (isset($xml->Token) ) { + $this->token = strval($xml->Token); + } + if (isset($xml->ExpireTime) ) { + $this->expireTime = strval($xml->ExpireTime); + } + } + + /** + * bucket name + * + * @var string + */ + private $bucket; + /** + * cname + * + * @var string + */ + private $cname; + + /** + * token + * + * @var string + */ + private $token; + + /** + * expire time + * + * @var string + */ + private $expireTime; + +} \ No newline at end of file diff --git a/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectInfo.php b/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectInfo.php index 4adab3c..5b41224 100644 --- a/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectInfo.php +++ b/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectInfo.php @@ -1,7 +1,6 @@ type; } - - /** - * php7 && 64bit can use it - * @return int - */ - public function getSize() - { - return (int)$this->size; - } - - - /** - * php5.x or 32bit must use it - * @return string - */ - public function getSizeStr() - { - return $this->size; - } + + /** + * php7 && 64bit can use it + * @return int + */ + public function getSize() + { + return (int)$this->size; + } + + + /** + * php5.x or 32bit must use it + * @return string + */ + public function getSizeStr() + { + return $this->size; + } /** * @return string diff --git a/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectListInfoV2.php b/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectListInfoV2.php new file mode 100644 index 0000000..c1fef22 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectListInfoV2.php @@ -0,0 +1,147 @@ +bucketName = $bucketName; + $this->prefix = $prefix; + $this->maxKeys = $maxKeys; + $this->delimiter = $delimiter; + $this->isTruncated = $isTruncated; + $this->objectList = $objectList; + $this->prefixList = $prefixList; + $this->continuationToken = $continuationToken; + $this->nextContinuationToken = $nextContinuationToken; + $this->startAfter = $startAfter; + $this->keyCount = $keyCount; + } + + /** + * @return string + */ + public function getBucketName() + { + return $this->bucketName; + } + + /** + * @return string + */ + public function getPrefix() + { + return $this->prefix; + } + + /** + * @return int + */ + public function getMaxKeys() + { + return $this->maxKeys; + } + + /** + * @return string + */ + public function getDelimiter() + { + return $this->delimiter; + } + + /** + * @return mixed + */ + public function getIsTruncated() + { + return $this->isTruncated; + } + + /** + * Get the ObjectInfo list. + * + * @return ObjectInfo[] + */ + public function getObjectList() + { + return $this->objectList; + } + + /** + * Get the PrefixInfo list + * + * @return PrefixInfo[] + */ + public function getPrefixList() + { + return $this->prefixList; + } + + /** + * @return string + */ + public function getContinuationToken() + { + return $this->continuationToken; + } + + /** + * @return string + */ + public function getNextContinuationToken() + { + return $this->nextContinuationToken; + } + + /** + * @return string + */ + public function getStartAfter() + { + return $this->startAfter; + } + + /** + * @return int + */ + public function getKeyCount() + { + return $this->keyCount; + } + + private $bucketName = ""; + private $prefix = ""; + private $maxKeys = 0; + private $delimiter = ""; + private $isTruncated = null; + private $objectList = array(); + private $prefixList = array(); + private $nextContinuationToken = ""; + private $continuationToken = ""; + private $startAfter = ""; + private $keyCount = 0; +} \ No newline at end of file diff --git a/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/TransferAccelerationConfig.php b/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/TransferAccelerationConfig.php new file mode 100644 index 0000000..187fb24 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/src/OSS/Model/TransferAccelerationConfig.php @@ -0,0 +1,73 @@ +Enabled)) { + $this->enabled = (strval($xml->Enabled) === 'TRUE' || strval($xml->Enabled) === 'true') ? true : false; + } + } + + /** + * Serialize the object into xml string. + * + * @return string + */ + public function serializeToXml() + { + $xml = new \SimpleXMLElement(''); + if (isset($this->enabled)) { + if($this->enabled === true){ + $xml->addChild('Enabled','true'); + } else { + $xml->addChild('Enabled','false'); + } + } + return $xml->asXML(); + } + + public function __toString() + { + return $this->serializeToXml(); + } + + + /** + * @return bool + */ + public function getEnabled() + { + return $this->enabled; + } + + /** + * @param boolean enabled + */ + public function setEnabled($enabled) + { + $this->enabled = $enabled; + } + + /** + * @var $enabled boolean + */ + private $enabled = false; +} + + diff --git a/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php b/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php index 0922a0b..d7f73df 100644 --- a/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php +++ b/vendor/aliyuncs/oss-sdk-php/src/OSS/OssClient.php @@ -12,6 +12,7 @@ use OSS\Model\LoggingConfig; use OSS\Model\LiveChannelConfig; use OSS\Model\LiveChannelInfo; use OSS\Model\LiveChannelListInfo; +use OSS\Model\ObjectListInfoV2; use OSS\Model\StorageCapacityConfig; use OSS\Result\AclResult; use OSS\Result\BodyResult; @@ -29,6 +30,7 @@ use OSS\Result\ListBucketsResult; use OSS\Result\ListMultipartUploadResult; use OSS\Model\ListMultipartUploadInfo; use OSS\Result\ListObjectsResult; +use OSS\Result\ListObjectsV2Result; use OSS\Result\ListPartsResult; use OSS\Result\PutSetDeleteResult; use OSS\Result\DeleteObjectsResult; @@ -72,6 +74,11 @@ use OSS\Result\ListObjectVersionsResult; use OSS\Model\DeleteObjectInfo; use OSS\Model\DeletedObjectInfo; use OSS\Result\DeleteObjectVersionsResult; +use OSS\Model\TransferAccelerationConfig; +use OSS\Result\GetBucketTransferAccelerationResult; +use OSS\Model\CnameTokenInfo; +use OSS\Result\CreateBucketCnameTokenResult; +use OSS\Result\GetBucketCnameTokenResult; /** * Class OssClient @@ -542,12 +549,12 @@ class OssClient $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_POST; $options[self::OSS_OBJECT] = '/'; - $options[self::OSS_SUB_RESOURCE] = 'cname'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $cnameConfig = new CnameConfig(); $cnameConfig->addCname($cname); $options[self::OSS_CONTENT] = $cnameConfig->serializeToXml(); $options[self::OSS_COMP] = 'add'; + $options[self::OSS_CNAME] = ''; $response = $this->auth($options); $result = new PutSetDeleteResult($response); @@ -568,7 +575,7 @@ class OssClient $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_GET; $options[self::OSS_OBJECT] = '/'; - $options[self::OSS_SUB_RESOURCE] = 'cname'; + $options[self::OSS_CNAME] = ''; $response = $this->auth($options); $result = new GetCnameResult($response); return $result->getData(); @@ -589,18 +596,64 @@ class OssClient $options[self::OSS_BUCKET] = $bucket; $options[self::OSS_METHOD] = self::OSS_HTTP_POST; $options[self::OSS_OBJECT] = '/'; - $options[self::OSS_SUB_RESOURCE] = 'cname'; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; $cnameConfig = new CnameConfig(); $cnameConfig->addCname($cname); $options[self::OSS_CONTENT] = $cnameConfig->serializeToXml(); $options[self::OSS_COMP] = 'delete'; + $options[self::OSS_CNAME] = ''; $response = $this->auth($options); $result = new PutSetDeleteResult($response); return $result->getData(); } + /** + * create a cname token for a bucket + * + * @param string $bucket bucket name + * @param array $options + * @throws OssException + * @return CnameToken + */ + public function createBucketCnameToken($bucket, $cname, $options = NULL) + { + $this->precheckCommon($bucket, NULL, $options, false); + $options[self::OSS_BUCKET] = $bucket; + $options[self::OSS_METHOD] = self::OSS_HTTP_POST; + $options[self::OSS_OBJECT] = '/'; + $options[self::OSS_CONTENT_TYPE] = 'application/xml'; + $cnameConfig = new CnameConfig(); + $cnameConfig->addCname($cname); + $options[self::OSS_CONTENT] = $cnameConfig->serializeToXml(); + $options[self::OSS_COMP] = 'token'; + $options[self::OSS_CNAME] = ''; + $response = $this->auth($options); + $result = new CreateBucketCnameTokenResult($response); + return $result->getData(); + } + + /** + * get a cname token for a bucket + * + * @param string $bucket bucket name + * @param array $options + * @throws OssException + * @return CnameToken + */ + public function getBucketCnameToken($bucket, $cname, $options = NULL) + { + $this->precheckCommon($bucket, NULL, $options, false); + $options[self::OSS_BUCKET] = $bucket; + $options[self::OSS_METHOD] = self::OSS_HTTP_GET; + $options[self::OSS_OBJECT] = '/'; + $options[self::OSS_COMP] = 'token'; + $options[self::OSS_CNAME] = $cname; + $response = $this->auth($options); + $result = new GetBucketCnameTokenResult($response); + return $result->getData(); + } + /** * Creates a Live Channel under a bucket * @@ -1493,6 +1546,52 @@ class OssClient return $result->getData(); } + + /** + * Put Bucket TransferAcceleration + * @param $bucket + * @param $enabled boolean + * @param null $options + * @return null + * @throws OssException + */ + + public function putBucketTransferAcceleration($bucket,$enabled,$options = NULL) + { + $this->precheckCommon($bucket, NULL, $options, false); + $options[self::OSS_BUCKET] = $bucket; + $options[self::OSS_METHOD] = self::OSS_HTTP_PUT; + $options[self::OSS_OBJECT] = '/'; + $options[self::OSS_SUB_RESOURCE] = 'transferAcceleration'; + $options[self::OSS_CONTENT_TYPE] = 'application/xml'; + $config = new TransferAccelerationConfig(); + $config->setEnabled($enabled); + $options[self::OSS_CONTENT] = $config->serializeToXml(); + $response = $this->auth($options); + $result = new HeaderResult($response); + return $result->getData(); + } + + /** + * Put Bucket TransferAcceleration + * @param $bucket + * @param null $options + * @return enabled boolean + * @throws OssException + */ + public function getBucketTransferAcceleration($bucket,$options = NULL) + { + $this->precheckCommon($bucket, NULL, $options, false); + $options[self::OSS_BUCKET] = $bucket; + $options[self::OSS_METHOD] = self::OSS_HTTP_GET; + $options[self::OSS_OBJECT] = '/'; + $options[self::OSS_SUB_RESOURCE] = 'transferAcceleration'; + $options[self::OSS_CONTENT_TYPE] = 'application/xml'; + $response = $this->auth($options); + $result = new GetBucketTransferAccelerationResult($response); + return $result->getData(); + } + /** * Lists the bucket's object list (in ObjectListInfo) * @@ -1528,6 +1627,52 @@ class OssClient $result = new ListObjectsResult($response); return $result->getData(); } + + + /** + * Lists the bucket's object list v2 (in ObjectListInfoV2) + * + * @param string $bucket + * @param array $options are defined below: + * $options = array( + * 'max-keys' => specifies max object count to return. By default is 100 and max value could be 1000. + * 'prefix' => specifies the key prefix the returned objects must have. Note that the returned keys still contain the prefix. + * 'delimiter' => The delimiter of object name for grouping object. When it's specified, listObjects will differeniate the object and folder. And it will return subfolder's objects. + * 'start-after' => The key of returned object must be greater than the 'start-after'. + * 'continuation-token' => The token from which the list operation must start. + *) + * Prefix, start-after and continuation-token are for filtering and paging. Their length must be less than 256 bytes + * @throws OssException + * @return ObjectListInfoV2 + */ + public function listObjectsV2($bucket, $options = NULL) + { + $this->precheckCommon($bucket, NULL, $options, false); + $options[self::OSS_BUCKET] = $bucket; + $options[self::OSS_METHOD] = self::OSS_HTTP_GET; + $options[self::OSS_OBJECT] = '/'; + $query = isset($options[self::OSS_QUERY_STRING]) ? $options[self::OSS_QUERY_STRING] : array(); + $temp = array( + self::OSS_LIST_TYPE=>2, + self::OSS_ENCODING_TYPE => self::OSS_ENCODING_TYPE_URL, + self::OSS_DELIMITER => isset($options[self::OSS_DELIMITER]) ? $options[self::OSS_DELIMITER] : '/', + self::OSS_PREFIX => isset($options[self::OSS_PREFIX]) ? $options[self::OSS_PREFIX] : '', + self::OSS_MAX_KEYS => isset($options[self::OSS_MAX_KEYS]) ? $options[self::OSS_MAX_KEYS] : self::OSS_MAX_KEYS_VALUE, + self::OSS_START_AFTER => isset($options[self::OSS_START_AFTER]) ? $options[self::OSS_START_AFTER] : '', + ); + if(isset($options[self::OSS_CONTINUATION_TOKEN])){ + $temp[self::OSS_CONTINUATION_TOKEN] = $options[self::OSS_CONTINUATION_TOKEN]; + } + $options[self::OSS_QUERY_STRING] = array_merge( + $query,$temp + ); + $response = $this->auth($options); + $result = new ListObjectsV2Result($response); + return $result->getData(); + } + + + /** * Lists the bucket's object with version information (in ObjectListInfo) @@ -1616,8 +1761,8 @@ class OssClient $is_check_md5 = $this->isCheckMD5($options); if ($is_check_md5) { - $content_md5 = base64_encode(md5($content, true)); - $options[self::OSS_CONTENT_MD5] = $content_md5; + $content_md5 = base64_encode(md5($content, true)); + $options[self::OSS_CONTENT_MD5] = $content_md5; } if (!isset($options[self::OSS_CONTENT_TYPE])) { @@ -1784,8 +1929,8 @@ class OssClient $is_check_md5 = $this->isCheckMD5($options); if ($is_check_md5) { - $content_md5 = base64_encode(md5($content, true)); - $options[self::OSS_CONTENT_MD5] = $content_md5; + $content_md5 = base64_encode(md5($content, true)); + $options[self::OSS_CONTENT_MD5] = $content_md5; } if (!isset($options[self::OSS_CONTENT_TYPE])) { @@ -2334,10 +2479,12 @@ class OssClient $options[self::OSS_OBJECT] = $object; $options[self::OSS_UPLOAD_ID] = $uploadId; $options[self::OSS_CONTENT_TYPE] = 'application/xml'; - if (!is_array($listParts)) { - throw new OssException("listParts must be array type"); + if (is_array($listParts)) { + $options[self::OSS_CONTENT] = OssUtil::createCompleteMultipartUploadXmlBody($listParts); + } else { + $options[self::OSS_CONTENT] = ""; } - $options[self::OSS_CONTENT] = OssUtil::createCompleteMultipartUploadXmlBody($listParts); + $response = $this->auth($options); if (isset($options[self::OSS_CALLBACK]) && !empty($options[self::OSS_CALLBACK])) { $result = new CallbackResult($response); @@ -3180,6 +3327,8 @@ class OssClient self::OSS_WORM_ID, self::OSS_TRAFFIC_LIMIT, self::OSS_VERSION_ID, + self::OSS_CONTINUATION_TOKEN, + self::OSS_CNAME, ); foreach ($signableList as $item) { @@ -3411,6 +3560,9 @@ class OssClient const OSS_PREFIX = 'prefix'; const OSS_DELIMITER = 'delimiter'; const OSS_MARKER = 'marker'; + const OSS_FETCH_OWNER = 'fetch-owner'; + const OSS_START_AFTER = 'start-after'; + const OSS_CONTINUATION_TOKEN = 'continuation-token'; const OSS_ACCEPT_ENCODING = 'Accept-Encoding'; const OSS_CONTENT_MD5 = 'Content-Md5'; const OSS_SELF_CONTENT_MD5 = 'x-oss-meta-md5'; @@ -3463,6 +3615,7 @@ class OssClient const OSS_VERSION_ID_MARKER = 'version-id-marker'; const OSS_VERSION_ID = 'versionId'; const OSS_HEADER_VERSION_ID = 'x-oss-version-id'; + const OSS_CNAME = 'cname'; //private URLs const OSS_URL_ACCESS_KEY_ID = 'OSSAccessKeyId'; @@ -3495,6 +3648,8 @@ class OssClient const OSS_ACL_TYPE_PUBLIC_READ_WRITE = 'public-read-write'; const OSS_ENCODING_TYPE = "encoding-type"; const OSS_ENCODING_TYPE_URL = "url"; + + const OSS_LIST_TYPE = "list-type"; // Domain Types const OSS_HOST_TYPE_NORMAL = "normal";//http://bucket.oss-cn-hangzhou.aliyuncs.com/object @@ -3509,8 +3664,8 @@ class OssClient ); // OssClient version information const OSS_NAME = "aliyun-sdk-php"; - const OSS_VERSION = "2.4.3"; - const OSS_BUILD = "20210825"; + const OSS_VERSION = "2.5.0"; + const OSS_BUILD = "20220513"; const OSS_AUTHOR = ""; const OSS_OPTIONS_ORIGIN = 'Origin'; const OSS_OPTIONS_REQUEST_METHOD = 'Access-Control-Request-Method'; diff --git a/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/CreateBucketCnameTokenResult.php b/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/CreateBucketCnameTokenResult.php new file mode 100644 index 0000000..74bcb8d --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/CreateBucketCnameTokenResult.php @@ -0,0 +1,19 @@ +rawResponse->body; + $info = new CnameTokenInfo(); + $info->parseFromXml($content); + return $info; + } +} \ No newline at end of file diff --git a/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketCnameTokenResult.php b/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketCnameTokenResult.php new file mode 100644 index 0000000..b524d3f --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketCnameTokenResult.php @@ -0,0 +1,19 @@ +rawResponse->body; + $info = new CnameTokenInfo(); + $info->parseFromXml($content); + return $info; + } +} \ No newline at end of file diff --git a/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketTransferAccelerationResult.php b/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketTransferAccelerationResult.php new file mode 100644 index 0000000..a300d62 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketTransferAccelerationResult.php @@ -0,0 +1,22 @@ +rawResponse->body; + $config = new TransferAccelerationConfig(); + $config->parseFromXml($content); + return $config->getEnabled(); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/ListObjectsV2Result.php b/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/ListObjectsV2Result.php new file mode 100644 index 0000000..882c3c0 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/ListObjectsV2Result.php @@ -0,0 +1,72 @@ +rawResponse->body); + $encodingType = isset($xml->EncodingType) ? strval($xml->EncodingType) : ""; + $objectList = $this->parseObjectList($xml, $encodingType); + $prefixList = $this->parsePrefixList($xml, $encodingType); + $bucketName = isset($xml->Name) ? strval($xml->Name) : ""; + $prefix = isset($xml->Prefix) ? strval($xml->Prefix) : ""; + $prefix = OssUtil::decodeKey($prefix, $encodingType); + $maxKeys = isset($xml->MaxKeys) ? intval($xml->MaxKeys) : 0; + $delimiter = isset($xml->Delimiter) ? strval($xml->Delimiter) : ""; + $delimiter = OssUtil::decodeKey($delimiter, $encodingType); + $isTruncated = isset($xml->IsTruncated) ? strval($xml->IsTruncated) : ""; + $continuationToken = isset($xml->ContinuationToken) ? strval($xml->ContinuationToken) : ""; + $nextContinuationToken = isset($xml->NextContinuationToken) ? strval($xml->NextContinuationToken) : ""; + $startAfter = isset($xml->StartAfter) ? strval($xml->StartAfter) : ""; + $startAfter = OssUtil::decodeKey($startAfter, $encodingType); + $keyCount = isset($xml->KeyCount) ? intval($xml->KeyCount) : 0; + return new ObjectListInfoV2($bucketName, $prefix, $maxKeys, $delimiter, $isTruncated, $objectList, $prefixList, $continuationToken, $nextContinuationToken, $startAfter, $keyCount); + } + + private function parseObjectList($xml, $encodingType) + { + $retList = array(); + if (isset($xml->Contents)) { + foreach ($xml->Contents as $content) { + $key = isset($content->Key) ? strval($content->Key) : ""; + $key = OssUtil::decodeKey($key, $encodingType); + $lastModified = isset($content->LastModified) ? strval($content->LastModified) : ""; + $eTag = isset($content->ETag) ? strval($content->ETag) : ""; + $type = isset($content->Type) ? strval($content->Type) : ""; + $size = isset($content->Size) ? strval($content->Size) : "0"; + $storageClass = isset($content->StorageClass) ? strval($content->StorageClass) : ""; + $retList[] = new ObjectInfo($key, $lastModified, $eTag, $type, $size, $storageClass); + } + } + return $retList; + } + + private function parsePrefixList($xml, $encodingType) + { + $retList = array(); + if (isset($xml->CommonPrefixes)) { + foreach ($xml->CommonPrefixes as $commonPrefix) { + $prefix = isset($commonPrefix->Prefix) ? strval($commonPrefix->Prefix) : ""; + $prefix = OssUtil::decodeKey($prefix, $encodingType); + $retList[] = new PrefixInfo($prefix); + } + } + return $retList; + } +} \ No newline at end of file diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/AclResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/AclResultTest.php new file mode 100644 index 0000000..82168d0 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/AclResultTest.php @@ -0,0 +1,59 @@ + + + + 00220120222 + user_example + + + public-read + + +BBBB; + + private $invalidXml = << + + +BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new AclResult($response); + $this->assertEquals("public-read", $result->getData()); + } + + public function testParseNullXml() + { + $response = new ResponseCore(array(), "", 200); + try { + new AclResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('body is null', $e->getMessage()); + } + } + + public function testParseInvalidXml() + { + $response = new ResponseCore(array(), $this->invalidXml, 200); + try { + new AclResult($response); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals("xml format exception", $e->getMessage()); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BodyResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BodyResultTest.php new file mode 100644 index 0000000..290e61a --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BodyResultTest.php @@ -0,0 +1,26 @@ +assertTrue($result->isOK()); + $this->assertEquals($result->getData(), "hi"); + } + + public function testParseInvalid404() + { + $response = new ResponseCore(array(), null, 200); + $result = new BodyResult($response); + $this->assertTrue($result->isOK()); + $this->assertEquals($result->getData(), ""); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BucketCnameTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BucketCnameTest.php new file mode 100644 index 0000000..03b016f --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BucketCnameTest.php @@ -0,0 +1,77 @@ +client = Common::getOssClient(); + $this->bucketName = 'php-sdk-test-bucket-' . strval(rand(0, 10000)); + $this->client->createBucket($this->bucketName); + } + + protected function tearDown(): void + { + $this->client->deleteBucket($this->bucketName); + } + + public function testBucketWithoutCname() + { + $cnameConfig = $this->client->getBucketCname($this->bucketName); + $this->assertEquals(0, count($cnameConfig->getCnames())); + } + + public function testAddCname() + { + $this->client->addBucketCname($this->bucketName, 'www.baidu.com'); + $this->client->addBucketCname($this->bucketName, 'www.qq.com'); + + $ret = $this->client->getBucketCname($this->bucketName); + $this->assertEquals(2, count($ret->getCnames())); + + // add another 2 cnames + $this->client->addBucketCname($this->bucketName, 'www.sina.com.cn'); + $this->client->addBucketCname($this->bucketName, 'www.iqiyi.com'); + + $ret = $this->client->getBucketCname($this->bucketName); + $cnames = $ret->getCnames(); + $cnameList = array(); + + foreach ($cnames as $c) { + $cnameList[] = $c['Domain']; + } + $should = array( + 'www.baidu.com', + 'www.qq.com', + 'www.sina.com.cn', + 'www.iqiyi.com' + ); + $this->assertEquals(4, count($cnames)); + $this->assertEquals(sort($should), sort($cnameList)); + } + + public function testDeleteCname() + { + $this->client->addBucketCname($this->bucketName, 'www.baidu.com'); + $this->client->addBucketCname($this->bucketName, 'www.qq.com'); + + $ret = $this->client->getBucketCname($this->bucketName); + $this->assertEquals(2, count($ret->getCnames())); + + // delete one cname + $this->client->deleteBucketCname($this->bucketName, 'www.baidu.com'); + + $ret = $this->client->getBucketCname($this->bucketName); + $this->assertEquals(1, count($ret->getCnames())); + $cnames = $ret->getCnames(); + $this->assertEquals('www.qq.com', $cnames[0]['Domain']); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BucketInfoTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BucketInfoTest.php new file mode 100644 index 0000000..f99bcee --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BucketInfoTest.php @@ -0,0 +1,21 @@ +assertNotNull($bucketInfo); + $this->assertEquals('cn-beijing', $bucketInfo->getLocation()); + $this->assertEquals('name', $bucketInfo->getName()); + $this->assertEquals('today', $bucketInfo->getCreateDate()); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BucketLiveChannelTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BucketLiveChannelTest.php new file mode 100644 index 0000000..cedf884 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/BucketLiveChannelTest.php @@ -0,0 +1,316 @@ +client = Common::getOssClient(); + $this->bucketName = 'php-sdk-test-rtmp-bucket-name-' . strval(rand(0, 10000)); + $this->client->createBucket($this->bucketName); + Common::waitMetaSync(); + } + + protected function tearDown(): void + { + ////to delete created bucket + //1. delele live channel + $list = $this->client->listBucketLiveChannels($this->bucketName); + if (count($list->getChannelList()) != 0) + { + foreach($list->getChannelList() as $list) + { + $this->client->deleteBucketLiveChannel($this->bucketName, $list->getName()); + } + } + //2. delete exsited object + $prefix = 'live-test/'; + $delimiter = '/'; + $nextMarker = ''; + $maxkeys = 1000; + $options = array( + 'delimiter' => $delimiter, + 'prefix' => $prefix, + 'max-keys' => $maxkeys, + 'marker' => $nextMarker, + ); + + try { + $listObjectInfo = $this->client->listObjects($this->bucketName, $options); + } catch (OssException $e) { + printf($e->getMessage() . "\n"); + return; + } + + $objectList = $listObjectInfo->getObjectList(); // 文件列表 + if (!empty($objectList)) + { + foreach($objectList as $objectInfo) + $this->client->deleteObject($this->bucketName, $objectInfo->getKey()); + } + //3. delete the bucket + $this->client->deleteBucket($this->bucketName); + } + + public function testPutLiveChannel() + { + $config = new LiveChannelConfig(array( + 'description' => 'live channel 1', + 'type' => 'HLS', + 'fragDuration' => 10, + 'fragCount' => 5, + 'playListName' => 'hello.m3u8' + )); + $info = $this->client->putBucketLiveChannel($this->bucketName, 'live-1', $config); + $this->client->deleteBucketLiveChannel($this->bucketName, 'live-1'); + + $this->assertEquals('live-1', $info->getName()); + $this->assertEquals('live channel 1', $info->getDescription()); + $this->assertEquals(1, count($info->getPublishUrls())); + $this->assertEquals(1, count($info->getPlayUrls())); + } + + public function testPutLiveChannelWithDefaultParams() + { + $config = new LiveChannelConfig(array( + 'description' => 'live channel 1', + 'type' => 'HLS', + )); + $info = $this->client->putBucketLiveChannel($this->bucketName, 'live-1', $config); + $this->client->deleteBucketLiveChannel($this->bucketName, 'live-1'); + + $this->assertEquals('live-1', $info->getName()); + $this->assertEquals('live channel 1', $info->getDescription()); + $this->assertEquals(1, count($info->getPublishUrls())); + $this->assertEquals(1, count($info->getPlayUrls())); + } + + public function testListLiveChannels() + { + $config = new LiveChannelConfig(array( + 'description' => 'live channel 1', + 'type' => 'HLS', + 'fragDuration' => 10, + 'fragCount' => 5, + 'playListName' => 'hello.m3u8' + )); + $this->client->putBucketLiveChannel($this->bucketName, 'live-1', $config); + + $config = new LiveChannelConfig(array( + 'description' => 'live channel 2', + 'type' => 'HLS', + 'fragDuration' => 10, + 'fragCount' => 5, + 'playListName' => 'hello.m3u8' + )); + $this->client->putBucketLiveChannel($this->bucketName, 'live-2', $config); + + $list = $this->client->listBucketLiveChannels($this->bucketName); + + $this->assertEquals($this->bucketName, $list->getBucketName()); + $this->assertEquals(false, $list->getIsTruncated()); + $channels = $list->getChannelList(); + $this->assertEquals(2, count($channels)); + + $chan1 = $channels[0]; + $this->assertEquals('live-1', $chan1->getName()); + $this->assertEquals('live channel 1', $chan1->getDescription()); + $this->assertEquals(1, count($chan1->getPublishUrls())); + $this->assertEquals(1, count($chan1->getPlayUrls())); + + $chan2 = $channels[1]; + $this->assertEquals('live-2', $chan2->getName()); + $this->assertEquals('live channel 2', $chan2->getDescription()); + $this->assertEquals(1, count($chan2->getPublishUrls())); + $this->assertEquals(1, count($chan2->getPlayUrls())); + + $list = $this->client->listBucketLiveChannels($this->bucketName, array( + 'prefix' => 'live-', + 'marker' => 'live-1', + 'max-keys' => 10 + )); + $channels = $list->getChannelList(); + $this->assertEquals(1, count($channels)); + $chan2 = $channels[0]; + $this->assertEquals('live-2', $chan2->getName()); + $this->assertEquals('live channel 2', $chan2->getDescription()); + $this->assertEquals(1, count($chan2->getPublishUrls())); + $this->assertEquals(1, count($chan2->getPlayUrls())); + + $this->client->deleteBucketLiveChannel($this->bucketName, 'live-1'); + $this->client->deleteBucketLiveChannel($this->bucketName, 'live-2'); + $list = $this->client->listBucketLiveChannels($this->bucketName, array( + 'prefix' => 'live-' + )); + $this->assertEquals(0, count($list->getChannelList())); + } + + public function testDeleteLiveChannel() + { + $channelName = 'live-to-delete'; + $config = new LiveChannelConfig(array( + 'description' => 'live channel to delete', + 'type' => 'HLS', + 'fragDuration' => 10, + 'fragCount' => 5, + 'playListName' => 'hello.m3u8' + )); + $this->client->putBucketLiveChannel($this->bucketName, $channelName, $config); + + $this->client->deleteBucketLiveChannel($this->bucketName, $channelName); + $list = $this->client->listBucketLiveChannels($this->bucketName, array( + 'prefix' => $channelName + )); + + $this->assertEquals(0, count($list->getChannelList())); + } + + public function testSignRtmpUrl() + { + $channelName = '90475'; + $bucket = 'douyu'; + $now = time(); + $url = $this->client->signRtmpUrl($bucket, $channelName, 900, array( + 'params' => array( + 'playlistName' => 'playlist.m3u8' + ) + )); + + $ret = parse_url($url); + $this->assertEquals('rtmp', $ret['scheme']); + parse_str($ret['query'], $query); + + $this->assertTrue(isset($query['OSSAccessKeyId'])); + $this->assertTrue(isset($query['Signature'])); + $this->assertTrue(intval($query['Expires']) - ($now + 900) < 3); + $this->assertEquals('playlist.m3u8', $query['playlistName']); + } + + public function testGetgenPreSignedRtmpUrlVsSignedRtmpUrl() + { + $channelName = '90475'; + $bucket = 'douyu'; + $url1 = '245'; + $url2 = '123'; + $expiration = 0; + + do { + $begin = time(); + $expiration = time() + 900; + $url1 = $this->client->generatePresignedRtmpUrl($bucket, $channelName, $expiration, array( + 'params' => array( + 'playlistName' => 'playlist.m3u8' + ) + )); + + $url2 = $this->client->signRtmpUrl($bucket, $channelName, 900, array( + 'params' => array( + 'playlistName' => 'playlist.m3u8' + ) + )); + + $end = time(); + + if ($begin == $end) + break; + usleep(500000); + } while (true); + $this->assertEquals($url1, $url1); + $this->assertTrue(strpos($url1, 'Expires='.$expiration) !== false); + } + + public function testLiveChannelInfo() + { + $channelName = 'live-to-put-status'; + $config = new LiveChannelConfig(array( + 'description' => 'test live channel info', + 'type' => 'HLS', + 'fragDuration' => 10, + 'fragCount' => 5, + 'playListName' => 'hello.m3u8' + )); + $this->client->putBucketLiveChannel($this->bucketName, $channelName, $config); + + $info = $this->client->getLiveChannelInfo($this->bucketName, $channelName); + $this->assertEquals('test live channel info', $info->getDescription()); + $this->assertEquals('enabled', $info->getStatus()); + $this->assertEquals('HLS', $info->getType()); + $this->assertEquals(10, $info->getFragDuration()); + $this->assertEquals(5, $info->getFragCount()); + $this->assertEquals('playlist.m3u8', $info->getPlayListName()); + + $this->client->deleteBucketLiveChannel($this->bucketName, $channelName); + $list = $this->client->listBucketLiveChannels($this->bucketName, array( + 'prefix' => $channelName + )); + $this->assertEquals(0, count($list->getChannelList())); + } + + public function testPutLiveChannelStatus() + { + $channelName = 'live-to-put-status'; + $config = new LiveChannelConfig(array( + 'description' => 'test live channel info', + 'type' => 'HLS', + 'fragDuration' => 10, + 'fragCount' => 5, + 'playListName' => 'hello.m3u8' + )); + $this->client->putBucketLiveChannel($this->bucketName, $channelName, $config); + + $info = $this->client->getLiveChannelInfo($this->bucketName, $channelName); + $this->assertEquals('test live channel info', $info->getDescription()); + $this->assertEquals('enabled', $info->getStatus()); + $this->assertEquals('HLS', $info->getType()); + $this->assertEquals(10, $info->getFragDuration()); + $this->assertEquals(5, $info->getFragCount()); + $this->assertEquals('playlist.m3u8', $info->getPlayListName()); + $status = $this->client->getLiveChannelStatus($this->bucketName, $channelName); + $this->assertEquals('Idle', $status->getStatus()); + + + $resp = $this->client->putLiveChannelStatus($this->bucketName, $channelName, "disabled"); + $info = $this->client->getLiveChannelInfo($this->bucketName, $channelName); + $this->assertEquals('test live channel info', $info->getDescription()); + $this->assertEquals('disabled', $info->getStatus()); + $this->assertEquals('HLS', $info->getType()); + $this->assertEquals(10, $info->getFragDuration()); + $this->assertEquals(5, $info->getFragCount()); + $this->assertEquals('playlist.m3u8', $info->getPlayListName()); + + $status = $this->client->getLiveChannelStatus($this->bucketName, $channelName); + //getLiveChannelInfo + $this->assertEquals('Disabled', $status->getStatus()); + + $this->client->deleteBucketLiveChannel($this->bucketName, $channelName); + $list = $this->client->listBucketLiveChannels($this->bucketName, array( + 'prefix' => $channelName + )); + $this->assertEquals(0, count($list->getChannelList())); + + } + public function testLiveChannelHistory() + { + $channelName = 'live-test-history'; + $config = new LiveChannelConfig(array( + 'description' => 'test live channel info', + 'type' => 'HLS', + 'fragDuration' => 10, + 'fragCount' => 5, + 'playListName' => 'hello.m3u8' + )); + $this->client->putBucketLiveChannel($this->bucketName, $channelName, $config); + + $history = $this->client->getLiveChannelHistory($this->bucketName, $channelName); + $this->assertEquals(0, count($history->getLiveRecordList())); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CallbackTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CallbackTest.php new file mode 100644 index 0000000..31df548 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CallbackTest.php @@ -0,0 +1,296 @@ +ossClient->putObject($this->bucket, $copiedObject, file_get_contents(__FILE__)); + + /** + * step 1. Initialize a block upload event, which is initialized to upload Multipart, get the upload id + */ + try { + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + /* + * step 2. uploadPartCopy + */ + $copyId = 1; + $eTag = $this->ossClient->uploadPartCopy($this->bucket, $copiedObject, $this->bucket, $object, $copyId, $upload_id); + $upload_parts[] = array( + 'PartNumber' => $copyId, + 'ETag' => $eTag, + ); + + try { + $listPartsInfo = $this->ossClient->listParts($this->bucket, $object, $upload_id); + $this->assertNotNull($listPartsInfo); + } catch (OssException $e) { + $this->assertTrue(false); + } + + /** + * step 3. + */ + $json = + '{ + "callbackUrl":"'.Common::getCallbackUrl().'",'. + ' "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"{\"mimeType\":${mimeType},\"size\":${size},\"x:var1\":${x:var1},\"x:var2\":${x:var2}}", + "callbackBodyType":"application/json" + }'; + + $var = + '{ + "x:var1":"value1", + "x:var2":"值2" + }'; + $options = array(OssClient::OSS_CALLBACK => $json, + OssClient::OSS_CALLBACK_VAR => $var + ); + + try { + $result = $this->ossClient->completeMultipartUpload($this->bucket, $object, $upload_id, $upload_parts, $options); + $this->assertEquals("200", $result['info']['http_code']); + $this->assertEquals("{\"Status\":\"OK\"}", $result['body']); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testMultipartUploadCallbackFailed() + { + $object = "multipart-callback-test.txt"; + $copiedObject = "multipart-callback-test.txt.copied"; + $this->ossClient->putObject($this->bucket, $copiedObject, file_get_contents(__FILE__)); + + /** + * step 1. Initialize a block upload event, which is initialized to upload Multipart, get the upload id + */ + try { + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + /* + * step 2. uploadPartCopy + */ + $copyId = 1; + $eTag = $this->ossClient->uploadPartCopy($this->bucket, $copiedObject, $this->bucket, $object, $copyId, $upload_id); + $upload_parts[] = array( + 'PartNumber' => $copyId, + 'ETag' => $eTag, + ); + + try { + $listPartsInfo = $this->ossClient->listParts($this->bucket, $object, $upload_id); + $this->assertNotNull($listPartsInfo); + } catch (OssException $e) { + $this->assertTrue(false); + } + + /** + * step 3. + */ + + $json = + '{ + "callbackUrl":"www.baidu.com", + "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"{\"mimeType\":${mimeType},\"size\":${size},\"x:var1\":${x:var1},\"x:var2\":${x:var2}}", + "callbackBodyType":"application/json" + }'; + + $var = + '{ + "x:var1":"value1", + "x:var2":"值2" + }'; + $options = array(OssClient::OSS_CALLBACK => $json, + OssClient::OSS_CALLBACK_VAR => $var + ); + + try { + $result = $this->ossClient->completeMultipartUpload($this->bucket, $object, $upload_id, $upload_parts, $options); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + $this->assertEquals("203", $e->getHTTPStatus()); + } + + } + + public function testPutObjectCallbackNormal() + { + //json + { + $json = + '{ + "callbackUrl":"'.Common::getCallbackUrl().'",'. + ' "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"{\"mimeType\":${mimeType},\"size\":${size}}", + "callbackBodyType":"application/json" + }'; + $options = array(OssClient::OSS_CALLBACK => $json); + $this->putObjectCallbackOk($options, "200"); + } + //url + { + $url = + '{ + "callbackUrl":"'.Common::getCallbackUrl().'",'. + ' "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&imageInfo.height=${imageInfo.height}&imageInfo.width=${imageInfo.width}&imageInfo.format=${imageInfo.format}", + "callbackBodyType":"application/x-www-form-urlencoded" + }'; + $options = array(OssClient::OSS_CALLBACK => $url); + $this->putObjectCallbackOk($options, "200"); + } + // Unspecified typre + { + $url = + '{ + "callbackUrl":"'.Common::getCallbackUrl().'",'. + ' "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&imageInfo.height=${imageInfo.height}&imageInfo.width=${imageInfo.width}&imageInfo.format=${imageInfo.format}" + }'; + $options = array(OssClient::OSS_CALLBACK => $url); + $this->putObjectCallbackOk($options, "200"); + } + //json and body is chinese + { + $json = + '{ + "callbackUrl":"'.Common::getCallbackUrl().'",'. + ' "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"{\" 春水碧于天,画船听雨眠。\":\"垆边人似月,皓腕凝霜雪。\"}", + "callbackBodyType":"application/json" + }'; + $options = array(OssClient::OSS_CALLBACK => $json); + $this->putObjectCallbackOk($options, "200"); + } + //url and body is chinese + { + $url = + '{ + "callbackUrl":"'.Common::getCallbackUrl().'",'. + ' "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"春水碧于天,画船听雨眠。垆边人似月,皓腕凝霜雪", + "callbackBodyType":"application/x-www-form-urlencoded" + }'; + $options = array(OssClient::OSS_CALLBACK => $url); + $this->putObjectCallbackOk($options, "200"); + } + //json and add callback_var + { + $json = + '{ + "callbackUrl":"'.Common::getCallbackUrl().'",'. + ' "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"{\"mimeType\":${mimeType},\"size\":${size},\"x:var1\":${x:var1},\"x:var2\":${x:var2}}", + "callbackBodyType":"application/json" + }'; + + $var = + '{ + "x:var1":"value1", + "x:var2":"aliyun.com" + }'; + $options = array(OssClient::OSS_CALLBACK => $json, + OssClient::OSS_CALLBACK_VAR => $var + ); + $this->putObjectCallbackOk($options, "200"); + } + //url and add callback_var + { + $url = + '{ + "callbackUrl":"'.Common::getCallbackUrl().'",'. + ' "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&imageInfo.height=${imageInfo.height}&imageInfo.width=${imageInfo.width}&imageInfo.format=${imageInfo.format}&my_var1=${x:var1}&my_var2=${x:var2}", + "callbackBodyType":"application/x-www-form-urlencoded" + }'; + $var = + '{ + "x:var1":"value1凌波不过横塘路,但目送,芳", + "x:var2":"值2" + }'; + $options = array(OssClient::OSS_CALLBACK => $url, + OssClient::OSS_CALLBACK_VAR => $var + ); + $this->putObjectCallbackOk($options, "200"); + } + + } + + public function testPutCallbackWithCallbackFailed() + { + { + $json = + '{ + "callbackUrl":"http://www.baidu.com", + "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"{\"mimeType\":${mimeType},\"size\":${size}}", + "callbackBodyType":"application/json" + }'; + $options = array(OssClient::OSS_CALLBACK => $json); + $this->putObjectCallbackFailed($options, "203"); + } + + { + $url = + '{ + "callbackUrl":"http://www.baidu.com", + "callbackHost":"oss-cn-hangzhou.aliyuncs.com", + "callbackBody":"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&imageInfo.height=${imageInfo.height}&imageInfo.width=${imageInfo.width}&imageInfo.format=${imageInfo.format}&my_var1=${x:var1}&my_var2=${x:var2}", + "callbackBodyType":"application/x-www-form-urlencoded" + }'; + $options = array(OssClient::OSS_CALLBACK => $url); + $this->putObjectCallbackFailed($options, "203"); + } + + } + + private function putObjectCallbackOk($options, $status) + { + $object = "oss-php-sdk-callback-test.txt"; + $content = file_get_contents(__FILE__); + try { + $result = $this->ossClient->putObject($this->bucket, $object, $content, $options); + $this->assertEquals($status, $result['info']['http_code']); + $this->assertEquals("{\"Status\":\"OK\"}", $result['body']); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + private function putObjectCallbackFailed($options, $status) + { + $object = "oss-php-sdk-callback-test.txt"; + $content = file_get_contents(__FILE__); + try { + $result = $this->ossClient->putObject($this->bucket, $object, $content, $options); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals($status, $e->getHTTPStatus()); + $this->assertTrue(true); + } + } + + protected function setUp(): void + { + parent::setUp(); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CnameConfigTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CnameConfigTest.php new file mode 100644 index 0000000..8f7529c --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CnameConfigTest.php @@ -0,0 +1,77 @@ + + + + www.foo.com + enabled + 20150101 + + + bar.com + disabled + 20160101 + + +BBBB; + + public function testFromXml() + { + $cnameConfig = new CnameConfig(); + $cnameConfig->parseFromXml($this->xml1); + + $cnames = $cnameConfig->getCnames(); + $this->assertEquals(2, count($cnames)); + $this->assertEquals('www.foo.com', $cnames[0]['Domain']); + $this->assertEquals('enabled', $cnames[0]['Status']); + $this->assertEquals('20150101', $cnames[0]['LastModified']); + + $this->assertEquals('bar.com', $cnames[1]['Domain']); + $this->assertEquals('disabled', $cnames[1]['Status']); + $this->assertEquals('20160101', $cnames[1]['LastModified']); + } + + public function testToXml() + { + $cnameConfig = new CnameConfig(); + $cnameConfig->addCname('www.foo.com'); + $cnameConfig->addCname('bar.com'); + + $xml = $cnameConfig->serializeToXml(); + $comp = new CnameConfig(); + $comp->parseFromXml($xml); + + $cnames1 = $cnameConfig->getCnames(); + $cnames2 = $comp->getCnames(); + + $this->assertEquals(count($cnames1), count($cnames2)); + $this->assertEquals(count($cnames1[0]), count($cnames2[0])); + $this->assertEquals(1, count($cnames1[0])); + $this->assertEquals($cnames1[0]['Domain'], $cnames2[0]['Domain']); + } + + public function testCnameNumberLimit() + { + $cnameConfig = new CnameConfig(); + for ($i = 0; $i < CnameConfig::OSS_MAX_RULES; $i += 1) { + $cnameConfig->addCname(strval($i) . '.foo.com'); + } + try { + $cnameConfig->addCname('www.foo.com'); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals( + $e->getMessage(), + "num of cname in the config exceeds self::OSS_MAX_RULES: " . strval(CnameConfig::OSS_MAX_RULES)); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CnameTokenInfoTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CnameTokenInfoTest.php new file mode 100644 index 0000000..082118e --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CnameTokenInfoTest.php @@ -0,0 +1,31 @@ + + + bucket + www.foo.com + 1234 + 20150101 + +BBBB; + + public function testFromXml() + { + $info = new CnameTokenInfo(); + $info->parseFromXml($this->xml1); + + $this->assertEquals('bucket', $info->getBucket()); + $this->assertEquals('www.foo.com', $info->getCname()); + $this->assertEquals('1234', $info->getToken()); + $this->assertEquals('20150101', $info->getExpireTime()); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/Common.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/Common.php new file mode 100644 index 0000000..1528944 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/Common.php @@ -0,0 +1,80 @@ +getMessage() . "\n"); + return null; + } + return $ossClient; + } + + public static function getBucketName() + { + return getenv('OSS_BUCKET'); + } + + public static function getRegion() + { + return getenv('OSS_REGION'); + } + + public static function getCallbackUrl() + { + return getenv('OSS_CALLBACK_URL'); + } + + /** + * Tool method, create a bucket + */ + public static function createBucket() + { + $ossClient = self::getOssClient(); + if (is_null($ossClient)) exit(1); + $bucket = self::getBucketName(); + $acl = OssClient::OSS_ACL_TYPE_PUBLIC_READ; + try { + $ossClient->createBucket($bucket, $acl); + } catch (OssException $e) { + printf(__FUNCTION__ . ": FAILED\n"); + printf($e->getMessage() . "\n"); + return; + } + print(__FUNCTION__ . ": OK" . "\n"); + } + + /** + * Wait for bucket meta sync + */ + public static function waitMetaSync() + { + if (getenv('TRAVIS')) { + sleep(10); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ContentTypeTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ContentTypeTest.php new file mode 100644 index 0000000..66b4057 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ContentTypeTest.php @@ -0,0 +1,133 @@ +/dev/null', $output, $status); + + $this->assertEquals(0, $status); + } + + private function getContentType($bucket, $object) + { + $client = $this->ossClient; + $headers = $client->getObjectMeta($bucket, $object); + return $headers['content-type']; + } + + public function testByFileName() + { + $client = $this->ossClient; + $bucket = $this->bucket; + + $file = '/tmp/x.html'; + $object = 'test/x'; + $this->runCmd('touch ' . $file); + + $client->uploadFile($bucket, $object, $file); + $type = $this->getContentType($bucket, $object); + + $this->assertEquals('text/html', $type); + + $file = '/tmp/x.json'; + $object = 'test/y'; + $this->runCmd('dd if=/dev/urandom of=' . $file . ' bs=1024 count=100'); + + $client->multiuploadFile($bucket, $object, $file, array('partSize' => 100)); + $type = $this->getContentType($bucket, $object); + + $this->assertEquals('application/json', $type); + } + + public function testByObjectKey() + { + $client = $this->ossClient; + $bucket = $this->bucket; + + $object = "test/x.txt"; + $client->putObject($bucket, $object, "hello world"); + $type = $this->getContentType($bucket, $object); + + $this->assertEquals('text/plain', $type); + + $file = '/tmp/x.html'; + $object = 'test/x.txt'; + $this->runCmd('touch ' . $file); + + $client->uploadFile($bucket, $object, $file); + $type = $this->getContentType($bucket, $object); + + $this->assertEquals('text/html', $type); + + $file = '/tmp/x.none'; + $object = 'test/x.txt'; + $this->runCmd('touch ' . $file); + + $client->uploadFile($bucket, $object, $file); + $type = $this->getContentType($bucket, $object); + + $this->assertEquals('text/plain', $type); + + $file = '/tmp/x.mp3'; + $object = 'test/y.json'; + $this->runCmd('dd if=/dev/urandom of=' . $file . ' bs=1024 count=100'); + + $client->multiuploadFile($bucket, $object, $file, array('partSize' => 100)); + $type = $this->getContentType($bucket, $object); + + $this->assertEquals('audio/mpeg', $type); + + $file = '/tmp/x.none'; + $object = 'test/y.json'; + $this->runCmd('dd if=/dev/urandom of=' . $file . ' bs=1024 count=100'); + + $client->multiuploadFile($bucket, $object, $file, array('partSize' => 100)); + $type = $this->getContentType($bucket, $object); + + $this->assertEquals('application/json', $type); + } + + public function testByUser() + { + $client = $this->ossClient; + $bucket = $this->bucket; + + $object = "test/x.txt"; + $client->putObject($bucket, $object, "hello world", array( + 'Content-Type' => 'text/html' + )); + $type = $this->getContentType($bucket, $object); + + $this->assertEquals('text/html', $type); + + $file = '/tmp/x.html'; + $object = 'test/x'; + $this->runCmd('touch ' . $file); + + $client->uploadFile($bucket, $object, $file, array( + 'Content-Type' => 'application/json' + )); + $type = $this->getContentType($bucket, $object); + + $this->assertEquals('application/json', $type); + + $file = '/tmp/x.json'; + $object = 'test/y'; + $this->runCmd('dd if=/dev/urandom of=' . $file . ' bs=1024 count=100'); + + $client->multiuploadFile($bucket, $object, $file, array( + 'partSize' => 100, + 'Content-Type' => 'audio/mpeg' + )); + $type = $this->getContentType($bucket, $object); + + $this->assertEquals('audio/mpeg', $type); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CopyObjectResult.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CopyObjectResult.php new file mode 100644 index 0000000..7d1b0fb --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CopyObjectResult.php @@ -0,0 +1,52 @@ + + + Fri, 24 Feb 2012 07:18:48 GMT + "5B3C1A2E053D763E1B002CC607C5A0FE" + +BBBB; + + public function testNullResponse() + { + $response = null; + try { + new CopyObjectResult($response); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('raw response is null', $e->getMessage()); + } + } + + public function testOkResponse() + { + $header= array(); + $response = new ResponseCore($header, $this->body, 200); + $result = new CopyObjectResult($response); + $data = $result->getData(); + $this->assertTrue($result->isOK()); + $this->assertEquals("Fri, 24 Feb 2012 07:18:48 GMT", $data[0]); + $this->assertEquals("\"5B3C1A2E053D763E1B002CC607C5A0FE\"", $data[1]); + } + + public function testFailResponse() + { + $response = new ResponseCore(array(), "", 404); + try { + new CopyObjectResult($response); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertFalse(false); + } + } + +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CorsConfigTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CorsConfigTest.php new file mode 100644 index 0000000..3329b1a --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/CorsConfigTest.php @@ -0,0 +1,140 @@ + + + +http://www.b.com +http://www.a.com +http://www.a.com +GET +PUT +POST +x-oss-test +x-oss-test2 +x-oss-test2 +x-oss-test3 +x-oss-test1 +x-oss-test1 +x-oss-test2 +10 + + +http://www.b.com +GET +x-oss-test +x-oss-test1 +110 + + +BBBB; + + private $validXml2 = << + + +http://www.b.com +http://www.a.com +http://www.a.com +GET +PUT +POST +x-oss-test +x-oss-test2 +x-oss-test2 +x-oss-test3 +x-oss-test1 +x-oss-test1 +x-oss-test2 +10 + + +BBBB; + + public function testParseValidXml() + { + $corsConfig = new CorsConfig(); + $corsConfig->parseFromXml($this->validXml); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($corsConfig->serializeToXml())); + $this->assertNotNull($corsConfig->getRules()); + $rules = $corsConfig->getRules(); + $this->assertNotNull($rules[0]->getAllowedHeaders()); + $this->assertNotNull($rules[0]->getAllowedMethods()); + $this->assertNotNull($rules[0]->getAllowedOrigins()); + $this->assertNotNull($rules[0]->getExposeHeaders()); + $this->assertNotNull($rules[0]->getMaxAgeSeconds()); + } + + public function testParseValidXml2() + { + $corsConfig = new CorsConfig(); + $corsConfig->parseFromXml($this->validXml2); + $this->assertEquals($this->cleanXml($this->validXml2), $this->cleanXml($corsConfig->serializeToXml())); + } + + public function testCreateCorsConfigFromMoreThan10Rules() + { + $corsConfig = new CorsConfig(); + $rule = new CorsRule(); + for ($i = 0; $i < CorsConfig::OSS_MAX_RULES; $i += 1) { + $corsConfig->addRule($rule); + } + try { + $corsConfig->addRule($rule); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals($e->getMessage(), "num of rules in the config exceeds self::OSS_MAX_RULES: " . strval(CorsConfig::OSS_MAX_RULES)); + } + } + + public function testCreateCorsConfigParamAbsent() + { + $corsConfig = new CorsConfig(); + $rule = new CorsRule(); + $corsConfig->addRule($rule); + + try { + $xml = $corsConfig->serializeToXml(); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals($e->getMessage(), "maxAgeSeconds is not set in the Rule"); + } + } + + public function testCreateCorsConfigFromScratch() + { + $corsConfig = new CorsConfig(); + $rule = new CorsRule(); + $rule->addAllowedHeader("x-oss-test"); + $rule->addAllowedHeader("x-oss-test2"); + $rule->addAllowedHeader("x-oss-test2"); + $rule->addAllowedHeader("x-oss-test3"); + $rule->addAllowedOrigin("http://www.b.com"); + $rule->addAllowedOrigin("http://www.a.com"); + $rule->addAllowedOrigin("http://www.a.com"); + $rule->addAllowedMethod("GET"); + $rule->addAllowedMethod("PUT"); + $rule->addAllowedMethod("POST"); + $rule->addExposeHeader("x-oss-test1"); + $rule->addExposeHeader("x-oss-test1"); + $rule->addExposeHeader("x-oss-test2"); + $rule->setMaxAgeSeconds(10); + $corsConfig->addRule($rule); + $this->assertEquals($this->cleanXml($this->validXml2), $this->cleanXml($corsConfig->serializeToXml())); + $this->assertEquals($this->cleanXml($this->validXml2), $this->cleanXml(strval($corsConfig))); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/DeleteObjectVersionsResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/DeleteObjectVersionsResultTest.php new file mode 100644 index 0000000..890b1a5 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/DeleteObjectVersionsResultTest.php @@ -0,0 +1,187 @@ + + + + demo.jpg + CAEQNRiBgICEoPiC0BYiIGMxZWJmYmMzYjE0OTQ0ZmZhYjgzNzkzYjc2NjZk**** + true + 111111 + + + BBBB; + + private $validXml1 = << + + + multipart.data + CAEQNRiBgIDyz.6C0BYiIGQ2NWEwNmVhNTA3ZTQ3MzM5ODliYjM1ZTdjYjA4**** + + + BBBB; + + private $validXml2 = << + + + multipart.data + true + CAEQMhiBgIDXiaaB0BYiIGQzYmRkZGUxMTM1ZDRjOTZhNjk4YjRjMTAyZjhl**** + + + test.jpg + true + CAEQMhiBgIDB3aWB0BYiIGUzYTA3YzliMzVmNzRkZGM5NjllYTVlMjYyYWEy**** + + + BBBB; + + private $validXml3 = << + + + multipart.data + + + test.jpg + + + demo.jpg + + + BBBB; + + private $validXml4 = << + + url + + multipart%2F.data + + + test%2F.jpg + + + demo%2F.jpg + + + BBBB; + + private $invalidXml = << + + + BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new DeleteObjectVersionsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $list = $result->getData(); + $this->assertEquals(1, count($list)); + $this->assertEquals('demo.jpg', $list[0]->getKey()); + $this->assertEquals('CAEQNRiBgICEoPiC0BYiIGMxZWJmYmMzYjE0OTQ0ZmZhYjgzNzkzYjc2NjZk****', $list[0]->getVersionId()); + $this->assertEquals('true', $list[0]->getDeleteMarker()); + $this->assertEquals('111111', $list[0]->getDeleteMarkerVersionId()); + + + $response = new ResponseCore(array(), $this->validXml1, 200); + $result = new DeleteObjectVersionsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $list = $result->getData(); + $this->assertEquals(1, count($list)); + $this->assertEquals('multipart.data', $list[0]->getKey()); + $this->assertEquals('CAEQNRiBgIDyz.6C0BYiIGQ2NWEwNmVhNTA3ZTQ3MzM5ODliYjM1ZTdjYjA4****', $list[0]->getVersionId()); + $this->assertEquals('', $list[0]->getDeleteMarker()); + $this->assertEquals('', $list[0]->getDeleteMarkerVersionId()); + + $response = new ResponseCore(array(), $this->validXml2, 200); + $result = new DeleteObjectVersionsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $list = $result->getData(); + $this->assertEquals(2, count($list)); + $this->assertEquals('multipart.data', $list[0]->getKey()); + $this->assertEquals('', $list[0]->getVersionId()); + $this->assertEquals('true', $list[0]->getDeleteMarker()); + $this->assertEquals('CAEQMhiBgIDXiaaB0BYiIGQzYmRkZGUxMTM1ZDRjOTZhNjk4YjRjMTAyZjhl****', $list[0]->getDeleteMarkerVersionId()); + $this->assertEquals('test.jpg', $list[1]->getKey()); + $this->assertEquals('', $list[1]->getVersionId()); + $this->assertEquals('true', $list[1]->getDeleteMarker()); + $this->assertEquals('CAEQMhiBgIDB3aWB0BYiIGUzYTA3YzliMzVmNzRkZGM5NjllYTVlMjYyYWEy****', $list[1]->getDeleteMarkerVersionId()); + + + $response = new ResponseCore(array(), $this->validXml3, 200); + $result = new DeleteObjectVersionsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $list = $result->getData(); + $this->assertEquals(3, count($list)); + $this->assertEquals('multipart.data', $list[0]->getKey()); + $this->assertEquals('', $list[0]->getVersionId()); + $this->assertEquals('', $list[0]->getDeleteMarker()); + $this->assertEquals('', $list[0]->getDeleteMarkerVersionId()); + $this->assertEquals('test.jpg', $list[1]->getKey()); + $this->assertEquals('', $list[1]->getVersionId()); + $this->assertEquals('', $list[1]->getDeleteMarker()); + $this->assertEquals('', $list[1]->getDeleteMarkerVersionId()); + $this->assertEquals('demo.jpg', $list[2]->getKey()); + $this->assertEquals('', $list[2]->getVersionId()); + $this->assertEquals('', $list[2]->getDeleteMarker()); + $this->assertEquals('', $list[2]->getDeleteMarkerVersionId()); + + $response = new ResponseCore(array(), $this->validXml4, 200); + $result = new DeleteObjectVersionsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $list = $result->getData(); + $this->assertEquals(3, count($list)); + $this->assertEquals('multipart/.data', $list[0]->getKey()); + $this->assertEquals('', $list[0]->getVersionId()); + $this->assertEquals('', $list[0]->getDeleteMarker()); + $this->assertEquals('', $list[0]->getDeleteMarkerVersionId()); + $this->assertEquals('test/.jpg', $list[1]->getKey()); + $this->assertEquals('', $list[1]->getVersionId()); + $this->assertEquals('', $list[1]->getDeleteMarker()); + $this->assertEquals('', $list[1]->getDeleteMarkerVersionId()); + $this->assertEquals('demo/.jpg', $list[2]->getKey()); + $this->assertEquals('', $list[2]->getVersionId()); + $this->assertEquals('', $list[2]->getDeleteMarker()); + $this->assertEquals('', $list[2]->getDeleteMarkerVersionId()); + } + + public function testParseNullXml() + { + $response = new ResponseCore(array(), "", 200); + $result = new DeleteObjectVersionsResult($response); + $list = $result->getData(); + $this->assertEquals(0, count($list)); + } + + public function testParseInvalidXml() + { + $response = new ResponseCore(array(), $this->invalidXml, 200); + $result = new DeleteObjectVersionsResult($response); + $list = $result->getData(); + $this->assertEquals(0, count($list)); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ExistResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ExistResultTest.php new file mode 100644 index 0000000..f9c552e --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ExistResultTest.php @@ -0,0 +1,38 @@ +assertTrue($result->isOK()); + $this->assertEquals($result->getData(), true); + } + + public function testParseInvalid404() + { + $response = new ResponseCore(array(), "", 404); + $result = new ExistResult($response); + $this->assertTrue($result->isOK()); + $this->assertEquals($result->getData(), false); + } + + public function testInvalidResponse() + { + $response = new ResponseCore(array(), "", 300); + try { + new ExistResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketEncryptionResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketEncryptionResultTest.php new file mode 100644 index 0000000..6f0e0d2 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketEncryptionResultTest.php @@ -0,0 +1,95 @@ + + + + AES256 + + + + BBBB; + + private $validXml1 = << + + + KMS + kms-id + + + BBBB; + + private $validXml2 = << + + + KMS + + + BBBB; + + private $invalidXml = << + + + BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetBucketEncryptionResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $config = $result->getData(); + $this->assertEquals("AES256", $config->getSSEAlgorithm()); + $this->assertEquals("", $config->getKMSMasterKeyID()); + + + $response = new ResponseCore(array(), $this->validXml1, 200); + $result = new GetBucketEncryptionResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $config = $result->getData(); + $this->assertEquals("KMS", $config->getSSEAlgorithm()); + $this->assertEquals("kms-id", $config->getKMSMasterKeyID()); + + $response = new ResponseCore(array(), $this->validXml2, 200); + $result = new GetBucketEncryptionResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $config = $result->getData(); + $this->assertEquals("KMS", $config->getSSEAlgorithm()); + $this->assertEquals(null, $config->getKMSMasterKeyID()); + } + + public function testParseNullXml() + { + $response = new ResponseCore(array(), "", 200); + $result = new GetBucketEncryptionResult($response); + $config = $result->getData(); + $this->assertEquals(null, $config->getSSEAlgorithm()); + $this->assertEquals(null, $config->getKMSMasterKeyID()); + } + + public function testParseInvalidXml() + { + $response = new ResponseCore(array(), $this->invalidXml, 200); + $result = new GetBucketEncryptionResult($response); + $config = $result->getData(); + $this->assertEquals(null, $config->getSSEAlgorithm()); + $this->assertEquals(null, $config->getKMSMasterKeyID()); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketRequestPaymentResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketRequestPaymentResultTest.php new file mode 100644 index 0000000..2de08be --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketRequestPaymentResultTest.php @@ -0,0 +1,66 @@ + + + Requester + + BBBB; + + private $validXml2 = << + + BucketOwner + + BBBB; + + private $invalidXml = << + + + BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetBucketRequestPaymentResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $payer = $result->getData(); + $this->assertEquals("Requester", $payer); + + $response = new ResponseCore(array(), $this->validXml2, 200); + $result = new GetBucketRequestPaymentResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $payer = $result->getData(); + $this->assertEquals("BucketOwner", $payer); + } + + public function testParseNullXml() + { + $response = new ResponseCore(array(), "", 200); + $result = new GetBucketRequestPaymentResult($response); + $payer = $result->getData(); + $this->assertEquals(null, $payer); + } + + public function testParseInvalidXml() + { + $response = new ResponseCore(array(), $this->invalidXml, 200); + $result = new GetBucketRequestPaymentResult($response); + $payer = $result->getData(); + $this->assertEquals(null, $payer); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketStatResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketStatResultTest.php new file mode 100644 index 0000000..967e65d --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketStatResultTest.php @@ -0,0 +1,59 @@ + + + 100 + 200 + 10 + + BBBB; + + private $invalidXml = << + + + BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetBucketStatResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $stat = $result->getData(); + $this->assertEquals(100, $stat->getStorage()); + $this->assertEquals(200, $stat->getObjectCount()); + $this->assertEquals(10, $stat->getMultipartUploadCount()); + } + + public function testParseNullXml() + { + $response = new ResponseCore(array(), "", 200); + $result = new GetBucketStatResult($response); + $stat = $result->getData(); + $this->assertEquals(0, $stat->getStorage()); + $this->assertEquals(0, $stat->getObjectCount()); + $this->assertEquals(0, $stat->getMultipartUploadCount()); + } + + public function testParseInvalidXml() + { + $response = new ResponseCore(array(), $this->invalidXml, 200); + $result = new GetBucketStatResult($response); + $stat = $result->getData(); + $this->assertEquals(0, $stat->getStorage()); + $this->assertEquals(0, $stat->getObjectCount()); + $this->assertEquals(0, $stat->getMultipartUploadCount()); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketTagsResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketTagsResultTest.php new file mode 100644 index 0000000..f4b2a88 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketTagsResultTest.php @@ -0,0 +1,77 @@ + + + + + testa + value1-test + + + testb + value2-test + + + + BBBB; + + private $invalidXml = << + + + BBBB; + + private $invalidXml2 = << + + + + + BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetBucketTagsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $config = $result->getData(); + $this->assertEquals(2, count($config->getTags())); + $this->assertEquals("testa", $config->getTags()[0]->getKey()); + $this->assertEquals("value1-test", $config->getTags()[0]->getValue()); + $this->assertEquals("testb", $config->getTags()[1]->getKey()); + $this->assertEquals("value2-test", $config->getTags()[1]->getValue()); + } + + public function testParseNullXml() + { + $response = new ResponseCore(array(), "", 200); + $result = new GetBucketTagsResult($response); + $config = $result->getData(); + $this->assertEquals(0, count($config->getTags())); + + } + + public function testParseInvalidXml() + { + $response = new ResponseCore(array(), $this->invalidXml, 200); + $result = new GetBucketTagsResult($response); + $config = $result->getData(); + $this->assertEquals(0, count($config->getTags())); + + $response = new ResponseCore(array(), $this->invalidXml2, 200); + $result = new GetBucketTagsResult($response); + $config = $result->getData(); + $this->assertEquals(0, count($config->getTags())); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketTransferAccelerationResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketTransferAccelerationResultTest.php new file mode 100644 index 0000000..56a3dd4 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketTransferAccelerationResultTest.php @@ -0,0 +1,61 @@ + +true + +BBBB; + private $validXml1 = << +false + +BBBB; + + private $invalidXml2 = << + + +BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetBucketTransferAccelerationResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $enabled = $result->getData(); + $this->assertEquals(true, $enabled); + } + + public function testParseValidXml1() + { + $response = new ResponseCore(array(), $this->validXml1, 200); + $result = new GetBucketTransferAccelerationResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $enabled = $result->getData(); + $this->assertEquals(false, $enabled); + } + + public function testParseInvalidXml2() + { + $response = new ResponseCore(array(), $this->invalidXml2, 200); + $result = new GetBucketTransferAccelerationResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $this->assertNotNull($result->getRawResponse()->body); + $enabled = $result->getData(); + $this->assertEquals(false, $enabled); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketWormResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketWormResultTest.php new file mode 100644 index 0000000..4d5d912 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetBucketWormResultTest.php @@ -0,0 +1,84 @@ + + + ID1 + Locked + 1 + 2018-08-14T15:50:32 + + BBBB; + + private $validXml2 = << + + ID2 + InProgress + 10 + 2018-09-14T15:50:32 + + BBBB; + + private $invalidXml = << + + + BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetBucketWormResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $config = $result->getData(); + $this->assertEquals("ID1", $config->getWormId()); + $this->assertEquals("Locked", $config->getState()); + $this->assertEquals(1, $config->getDay()); + $this->assertEquals("2018-08-14T15:50:32", $config->getCreationDate()); + + $response = new ResponseCore(array(), $this->validXml2, 200); + $result = new GetBucketWormResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $config = $result->getData(); + $this->assertEquals("ID2", $config->getWormId()); + $this->assertEquals("InProgress", $config->getState()); + $this->assertEquals(10, $config->getDay()); + $this->assertEquals("2018-09-14T15:50:32", $config->getCreationDate()); + } + + public function testParseNullXml() + { + $response = new ResponseCore(array(), "", 200); + $result = new GetBucketWormResult($response); + $config = $result->getData(); + $this->assertEquals("", $config->getWormId()); + $this->assertEquals("", $config->getState()); + $this->assertEquals(0, $config->getDay()); + $this->assertEquals("", $config->getCreationDate()); + } + + public function testParseInvalidXml() + { + $response = new ResponseCore(array(), $this->invalidXml, 200); + $result = new GetBucketWormResult($response); + $config = $result->getData(); + $this->assertEquals("", $config->getWormId()); + $this->assertEquals("", $config->getState()); + $this->assertEquals(0, $config->getDay()); + $this->assertEquals("", $config->getCreationDate()); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetCorsResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetCorsResultTest.php new file mode 100644 index 0000000..76d87dc --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetCorsResultTest.php @@ -0,0 +1,67 @@ + + + +http://www.b.com +http://www.a.com +http://www.a.com +GET +PUT +POST +x-oss-test +x-oss-test2 +x-oss-test2 +x-oss-test3 +x-oss-test1 +x-oss-test1 +x-oss-test2 +10 + + +http://www.b.com +GET +x-oss-test +x-oss-test1 +110 + + +BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetCorsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $corsConfig = $result->getData(); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($corsConfig->serializeToXml())); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } + + public function testInvalidResponse() + { + $response = new ResponseCore(array(), $this->validXml, 300); + try { + $result = new GetCorsResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetLifecycleResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetLifecycleResultTest.php new file mode 100644 index 0000000..e6d9a72 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetLifecycleResultTest.php @@ -0,0 +1,59 @@ + + + +delete obsoleted files +obsoleted/ +Enabled +3 + + +delete temporary files +temporary/ +Enabled +2022-10-12T00:00:00.000Z +2022-10-12T00:00:00.000Z + + +BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetLifecycleResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $lifecycleConfig = $result->getData(); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($lifecycleConfig->serializeToXml())); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } + + public function testInvalidResponse() + { + $response = new ResponseCore(array(), $this->validXml, 300); + try { + $result = new GetLifecycleResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } + +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetLoggingResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetLoggingResultTest.php new file mode 100644 index 0000000..35f7436 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetLoggingResultTest.php @@ -0,0 +1,51 @@ + + + +TargetBucket +TargetPrefix + + +BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetLoggingResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $loggingConfig = $result->getData(); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($loggingConfig->serializeToXml())); + $this->assertEquals("TargetBucket", $loggingConfig->getTargetBucket()); + $this->assertEquals("TargetPrefix", $loggingConfig->getTargetPrefix()); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } + + public function testInvalidResponse() + { + $response = new ResponseCore(array(), $this->validXml, 300); + try { + $result = new GetLoggingResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetRefererResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetRefererResultTest.php new file mode 100644 index 0000000..774aae9 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetRefererResultTest.php @@ -0,0 +1,51 @@ + + +true + +http://www.aliyun.com +https://www.aliyun.com +http://www.*.com +https://www.?.aliyuncs.com + + +BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetRefererResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $refererConfig = $result->getData(); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($refererConfig->serializeToXml())); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } + + public function testInvalidResponse() + { + $response = new ResponseCore(array(), $this->validXml, 300); + try { + $result = new GetRefererResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetWebsiteResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetWebsiteResultTest.php new file mode 100644 index 0000000..d853306 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetWebsiteResultTest.php @@ -0,0 +1,50 @@ + + + +index.html + + +errorDocument.html + + +BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetWebsiteResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $websiteConfig = $result->getData(); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($websiteConfig->serializeToXml())); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } + + public function testInvalidResponse() + { + $response = new ResponseCore(array(), $this->validXml, 300); + try { + $result = new GetWebsiteResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/HeaderResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/HeaderResultTest.php new file mode 100644 index 0000000..9354422 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/HeaderResultTest.php @@ -0,0 +1,23 @@ + 'value'), "", 200); + $result = new HeaderResult($response); + $this->assertTrue($result->isOK()); + $this->assertTrue(is_array($result->getData())); + $data = $result->getData(); + $this->assertEquals($data['key'], 'value'); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/HttpTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/HttpTest.php new file mode 100644 index 0000000..989644c --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/HttpTest.php @@ -0,0 +1,77 @@ +assertFalse($res->isOK()); + $this->assertTrue($res->isOK(500)); + } + + public function testGet() + { + $httpCore = new RequestCore("http://www.baidu.com"); + $httpResponse = $httpCore->send_request(); + $this->assertNotNull($httpResponse); + } + + public function testSetProxyAndTimeout() + { + $httpCore = new RequestCore("http://www.baidu.com"); + $httpCore->set_proxy("1.0.2.1:8888"); + $httpCore->connect_timeout = 1; + try { + $httpResponse = $httpCore->send_request(); + $this->assertTrue(false); + } catch (RequestCore_Exception $e) { + $this->assertTrue(true); + } + } + + public function testGetParseTrue() + { + $httpCore = new RequestCore("http://www.baidu.com"); + $httpCore->curlopts = array(CURLOPT_HEADER => true); + $url = $httpCore->send_request(true); + foreach ($httpCore->get_response_header() as $key => $value) { + $this->assertEquals($httpCore->get_response_header($key), $value); + } + $this->assertNotNull($url); + } + + public function testParseResponse() + { + $httpCore = new RequestCore("http://www.baidu.com"); + $response = $httpCore->send_request(); + $parsed = $httpCore->process_response(null, $response); + $this->assertNotNull($parsed); + } + + public function testExceptionGet() + { + $httpCore = null; + $exception = false; + try { + $httpCore = new RequestCore("http://www.notexistsitexx.com"); + $httpCore->set_body(""); + $httpCore->set_method("GET"); + $httpCore->connect_timeout = 10; + $httpCore->timeout = 10; + $res = $httpCore->send_request(); + } catch (RequestCore_Exception $e) { + $exception = true; + } + $this->assertTrue($exception); + } +} + + diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/InitiateMultipartUploadResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/InitiateMultipartUploadResultTest.php new file mode 100644 index 0000000..76b10a6 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/InitiateMultipartUploadResultTest.php @@ -0,0 +1,47 @@ + + + multipart_upload + multipart.data + 0004B9894A22E5B1888A1E29F8236E2D + +BBBB; + + private $invalidXml = << + + multipart_upload + multipart.data + +BBBB; + + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new InitiateMultipartUploadResult($response); + $this->assertEquals("0004B9894A22E5B1888A1E29F8236E2D", $result->getData()); + } + + public function testParseInvalidXml() + { + $response = new ResponseCore(array(), $this->invalidXml, 200); + try { + $result = new InitiateMultipartUploadResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/LifecycleConfigTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/LifecycleConfigTest.php new file mode 100644 index 0000000..063e436 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/LifecycleConfigTest.php @@ -0,0 +1,130 @@ + + + +delete obsoleted files +obsoleted/ +Enabled +3 + + +delete temporary files +temporary/ +Enabled +2022-10-12T00:00:00.000Z +2022-10-12T00:00:00.000Z + + +BBBB; + + private $validLifecycle2 = << + +delete temporary files +temporary/ +Enabled +2022-10-12T00:00:00.000Z +2022-10-12T00:00:00.000Z + + +BBBB; + + private $nullLifecycle = << + +BBBB; + + public function testConstructValidConfig() + { + $lifecycleConfig = new LifecycleConfig(); + $actions = array(); + $actions[] = new LifecycleAction("Expiration", "Days", 3); + $lifecycleRule = new LifecycleRule("delete obsoleted files", "obsoleted/", "Enabled", $actions); + $lifecycleConfig->addRule($lifecycleRule); + $actions = array(); + $actions[] = new LifecycleAction("Expiration", "Date", '2022-10-12T00:00:00.000Z'); + $actions[] = new LifecycleAction("Expiration2", "Date", '2022-10-12T00:00:00.000Z'); + $lifecycleRule = new LifecycleRule("delete temporary files", "temporary/", "Enabled", $actions); + $lifecycleConfig->addRule($lifecycleRule); + try { + $lifecycleConfig->addRule(null); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('lifecycleRule is null', $e->getMessage()); + } + $this->assertEquals($this->cleanXml(strval($lifecycleConfig)), $this->cleanXml($this->validLifecycle)); + } + + public function testParseValidXml() + { + $lifecycleConfig = new LifecycleConfig(); + $lifecycleConfig->parseFromXml($this->validLifecycle); + $this->assertEquals($this->cleanXml($lifecycleConfig->serializeToXml()), $this->cleanXml($this->validLifecycle)); + $this->assertEquals(2, count($lifecycleConfig->getRules())); + $rules = $lifecycleConfig->getRules(); + $this->assertEquals('delete temporary files', $rules[1]->getId()); + } + + public function testParseValidXml2() + { + $lifecycleConfig = new LifecycleConfig(); + $lifecycleConfig->parseFromXml($this->validLifecycle2); + $this->assertEquals($this->cleanXml($lifecycleConfig->serializeToXml()), $this->cleanXml($this->validLifecycle2)); + $this->assertEquals(1, count($lifecycleConfig->getRules())); + $rules = $lifecycleConfig->getRules(); + $this->assertEquals('delete temporary files', $rules[0]->getId()); + } + + public function testParseNullXml() + { + $lifecycleConfig = new LifecycleConfig(); + $lifecycleConfig->parseFromXml($this->nullLifecycle); + $this->assertEquals($this->cleanXml($lifecycleConfig->serializeToXml()), $this->cleanXml($this->nullLifecycle)); + $this->assertEquals(0, count($lifecycleConfig->getRules())); + } + + public function testLifecycleRule() + { + $lifecycleRule = new LifecycleRule("x", "x", "x", array('x')); + $lifecycleRule->setId("id"); + $lifecycleRule->setPrefix("prefix"); + $lifecycleRule->setStatus("Enabled"); + $lifecycleRule->setActions(array()); + + $this->assertEquals('id', $lifecycleRule->getId()); + $this->assertEquals('prefix', $lifecycleRule->getPrefix()); + $this->assertEquals('Enabled', $lifecycleRule->getStatus()); + $this->assertEmpty($lifecycleRule->getActions()); + } + + public function testLifecycleAction() + { + $action = new LifecycleAction('x', 'x', 'x'); + $this->assertEquals($action->getAction(), 'x'); + $this->assertEquals($action->getTimeSpec(), 'x'); + $this->assertEquals($action->getTimeValue(), 'x'); + $action->setAction('y'); + $action->setTimeSpec('y'); + $action->setTimeValue('y'); + $this->assertEquals($action->getAction(), 'y'); + $this->assertEquals($action->getTimeSpec(), 'y'); + $this->assertEquals($action->getTimeValue(), 'y'); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListBucketsResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListBucketsResultTest.php new file mode 100644 index 0000000..634f97d --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListBucketsResultTest.php @@ -0,0 +1,167 @@ + + + + ut_test_put_bucket + ut_test_put_bucket + + + + oss-cn-hangzhou-a + xz02tphky6fjfiuc0 + 2014-05-15T11:18:32.000Z + + + oss-cn-hangzhou-a + xz02tphky6fjfiuc1 + 2014-05-15T11:18:32.000Z + + + +BBBB; + + private $nullXml = << + + + ut_test_put_bucket + ut_test_put_bucket + + + + +BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new ListBucketsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $bucketListInfo = $result->getData(); + $this->assertEquals(2, count($bucketListInfo->getBucketList())); + } + + public function testParseNullXml() + { + $response = new ResponseCore(array(), $this->nullXml, 200); + $result = new ListBucketsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $bucketListInfo = $result->getData(); + $this->assertEquals(0, count($bucketListInfo->getBucketList())); + } + + public function test403() + { + $errorHeader = array( + 'x-oss-request-id' => '1a2b-3c4d' + ); + + $errorBody = <<< BBBB + + + NoSuchBucket + The specified bucket does not exist. + 566B870D207FB3044302EB0A + hello.oss-test.aliyun-inc.com + hello + + BBBB; + $response = new ResponseCore($errorHeader, $errorBody, 403); + try { + new ListBucketsResult($response); + } catch (OssException $e) { + $this->assertEquals( + $e->getMessage(), + 'NoSuchBucket: The specified bucket does not exist. RequestId: 1a2b-3c4d'); + $this->assertEquals($e->getHTTPStatus(), '403'); + $this->assertEquals($e->getRequestId(), '1a2b-3c4d'); + $this->assertEquals($e->getErrorCode(), 'NoSuchBucket'); + $this->assertEquals($e->getErrorMessage(), 'The specified bucket does not exist.'); + $this->assertEquals($e->getDetails(), $errorBody); + } + } + + public function testParseXml2() + { + $xml = << + + + ut_test_put_bucket + ut_test_put_bucket + + + + 2015-12-17T18:12:43.000Z + oss-cn-shanghai.aliyuncs.com + oss-cn-shanghai-internal.aliyuncs.com + oss-cn-shanghai + app-base-oss + cn-shanghai + Standard + + + 2014-12-25T11:21:04.000Z + oss-cn-hangzhou.aliyuncs.com + oss-cn-hangzhou-internal.aliyuncs.com + oss-cn-hangzhou + atestleo23 + cn-hangzhou + IA + + + 2014-12-25T11:21:04.000Z + oss-cn-hangzhou + atestleo23 + + + + BBBB; + + $response = new ResponseCore(array(), $xml, 200); + $result = new ListBucketsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $bucketListInfo = $result->getData(); + $this->assertEquals(3, count($bucketListInfo->getBucketList())); + $this->assertEquals("2015-12-17T18:12:43.000Z", $bucketListInfo->getBucketList()[0]->getCreateDate()); + $this->assertEquals("oss-cn-shanghai", $bucketListInfo->getBucketList()[0]->getLocation()); + $this->assertEquals("app-base-oss", $bucketListInfo->getBucketList()[0]->getName()); + $this->assertEquals("oss-cn-shanghai.aliyuncs.com", $bucketListInfo->getBucketList()[0]->getExtranetEndpoint()); + $this->assertEquals("oss-cn-shanghai-internal.aliyuncs.com", $bucketListInfo->getBucketList()[0]->getIntranetEndpoint()); + $this->assertEquals("cn-shanghai", $bucketListInfo->getBucketList()[0]->getRegion()); + $this->assertEquals("Standard", $bucketListInfo->getBucketList()[0]->getStorageClass()); + + $this->assertEquals("2014-12-25T11:21:04.000Z", $bucketListInfo->getBucketList()[1]->getCreateDate()); + $this->assertEquals("oss-cn-hangzhou", $bucketListInfo->getBucketList()[1]->getLocation()); + $this->assertEquals("atestleo23", $bucketListInfo->getBucketList()[1]->getName()); + $this->assertEquals("oss-cn-hangzhou.aliyuncs.com", $bucketListInfo->getBucketList()[1]->getExtranetEndpoint()); + $this->assertEquals("oss-cn-hangzhou-internal.aliyuncs.com", $bucketListInfo->getBucketList()[1]->getIntranetEndpoint()); + $this->assertEquals("cn-hangzhou", $bucketListInfo->getBucketList()[1]->getRegion()); + $this->assertEquals("IA", $bucketListInfo->getBucketList()[1]->getStorageClass()); + + $this->assertEquals("2014-12-25T11:21:04.000Z", $bucketListInfo->getBucketList()[2]->getCreateDate()); + $this->assertEquals("oss-cn-hangzhou", $bucketListInfo->getBucketList()[2]->getLocation()); + $this->assertEquals("atestleo23", $bucketListInfo->getBucketList()[2]->getName()); + $this->assertEquals(null, $bucketListInfo->getBucketList()[2]->getExtranetEndpoint()); + $this->assertEquals(null, $bucketListInfo->getBucketList()[2]->getIntranetEndpoint()); + $this->assertEquals(null, $bucketListInfo->getBucketList()[2]->getRegion()); + $this->assertEquals(null, $bucketListInfo->getBucketList()[2]->getStorageClass()); + + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListMultipartUploadResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListMultipartUploadResultTest.php new file mode 100644 index 0000000..88bd0a7 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListMultipartUploadResultTest.php @@ -0,0 +1,114 @@ + + + oss-example + xx + 3 + oss.avi + 0004B99B8E707874FC2D692FA5D77D3F + x + xx + 1000 + false + + multipart.data + 0004B999EF518A1FE585B0C9360DC4C8 + 2012-02-23T04:18:23.000Z + + + multipart.data + 0004B999EF5A239BB9138C6227D69F95 + 2012-02-23T04:18:23.000Z + + + oss.avi + 0004B99B8E707874FC2D692FA5D77D3F + 2012-02-23T06:14:27.000Z + + +BBBB; + + private $validXmlWithEncodedKey = << + + oss-example + url + php%2Bkey-marker + 3 + php%2Bnext-key-marker + 0004B99B8E707874FC2D692FA5D77D3F + %2F + php%2Bprefix + 1000 + true + + php%2Bkey-1 + 0004B999EF518A1FE585B0C9360DC4C8 + 2012-02-23T04:18:23.000Z + + + php%2Bkey-2 + 0004B999EF5A239BB9138C6227D69F95 + 2012-02-23T04:18:23.000Z + + + php%2Bkey-3 + 0004B99B8E707874FC2D692FA5D77D3F + 2012-02-23T06:14:27.000Z + + +BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new ListMultipartUploadResult($response); + $listMultipartUploadInfo = $result->getData(); + $this->assertEquals("oss-example", $listMultipartUploadInfo->getBucket()); + $this->assertEquals("xx", $listMultipartUploadInfo->getKeyMarker()); + $this->assertEquals(3, $listMultipartUploadInfo->getUploadIdMarker()); + $this->assertEquals("oss.avi", $listMultipartUploadInfo->getNextKeyMarker()); + $this->assertEquals("0004B99B8E707874FC2D692FA5D77D3F", $listMultipartUploadInfo->getNextUploadIdMarker()); + $this->assertEquals("x", $listMultipartUploadInfo->getDelimiter()); + $this->assertEquals("xx", $listMultipartUploadInfo->getPrefix()); + $this->assertEquals(1000, $listMultipartUploadInfo->getMaxUploads()); + $this->assertEquals("false", $listMultipartUploadInfo->getIsTruncated()); + $uploads = $listMultipartUploadInfo->getUploads(); + $this->assertEquals("multipart.data", $uploads[0]->getKey()); + $this->assertEquals("0004B999EF518A1FE585B0C9360DC4C8", $uploads[0]->getUploadId()); + $this->assertEquals("2012-02-23T04:18:23.000Z", $uploads[0]->getInitiated()); + } + + public function testParseValidXmlWithEncodedKey() + { + $response = new ResponseCore(array(), $this->validXmlWithEncodedKey, 200); + $result = new ListMultipartUploadResult($response); + $listMultipartUploadInfo = $result->getData(); + $this->assertEquals("oss-example", $listMultipartUploadInfo->getBucket()); + $this->assertEquals("php+key-marker", $listMultipartUploadInfo->getKeyMarker()); + $this->assertEquals("php+next-key-marker", $listMultipartUploadInfo->getNextKeyMarker()); + $this->assertEquals(3, $listMultipartUploadInfo->getUploadIdMarker()); + $this->assertEquals("0004B99B8E707874FC2D692FA5D77D3F", $listMultipartUploadInfo->getNextUploadIdMarker()); + $this->assertEquals("/", $listMultipartUploadInfo->getDelimiter()); + $this->assertEquals("php+prefix", $listMultipartUploadInfo->getPrefix()); + $this->assertEquals(1000, $listMultipartUploadInfo->getMaxUploads()); + $this->assertEquals("true", $listMultipartUploadInfo->getIsTruncated()); + $uploads = $listMultipartUploadInfo->getUploads(); + $this->assertEquals("php+key-1", $uploads[0]->getKey()); + $this->assertEquals("0004B999EF518A1FE585B0C9360DC4C8", $uploads[0]->getUploadId()); + $this->assertEquals("2012-02-23T04:18:23.000Z", $uploads[0]->getInitiated()); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListObjectVersionsResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListObjectVersionsResultTest.php new file mode 100644 index 0000000..8ddbdaa --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListObjectVersionsResultTest.php @@ -0,0 +1,215 @@ + + + oss-example + + example + CAEQMxiBgICbof2D0BYiIGRhZjgwMzJiMjA3MjQ0ODE5MWYxZDYwMzJlZjU1**** + 100 + + false + + example + CAEQMxiBgICAof2D0BYiIDJhMGE3N2M1YTI1NDQzOGY5NTkyNTI3MGYyMzJm**** + false + 2019-04-09T07:27:28.000Z + + 1234512528586**** + 12345125285864390 + + + + example + CAEQMxiBgMDNoP2D0BYiIDE3MWUxNzgxZDQxNTRiODI5OGYwZGMwNGY3MzZjN**** + false + 2019-04-09T07:27:28.000Z + "250F8A0AE989679A22926A875F0A2****" + Normal + 93731 + Standard + + 1234512528586**** + 12345125285864390 + + + + pic.jpg + CAEQMxiBgMCZov2D0BYiIDY4MDllOTc2YmY5MjQxMzdiOGI3OTlhNTU0ODIx**** + true + 2019-04-09T07:27:28.000Z + "3663F7B0B9D3153F884C821E7CF4****" + Normal + 574768 + IA + + 1234512528586**** + 12345125285864390 + + + + BBBB; + + private $validXml1 = << + + oss-example + + example + CAEQMxiBgICbof2D0BYiIGRhZjgwMzJiMjA3MjQ0ODE5MWYxZDYwMzJlZjU1**** + 100 + + false + + example + CAEQMxiBgICAof2D0BYiIDJhMGE3N2M1YTI1NDQzOGY5NTkyNTI3MGYyMzJm**** + true + 2019-04-09T07:27:28.000Z + + 1234512528586**** + 12345125285864390 + + + + example-1 + CAEQMxiBgICAof2D0BYiIDJhMGE3N2M1YTI1NDQzOGY5NTkyNTI3MGYyMzJm**** + 2019-04-09T07:27:28.000Z + + 1234512528586**** + 12345125285864390 + + + + example-2 + CAEQMxiBgMDNoP2D0BYiIDE3MWUxNzgxZDQxNTRiODI5OGYwZGMwNGY3MzZjN**** + 2019-04-09T07:27:28.000Z + "250F8A0AE989679A22926A875F0A2****" + Normal + 93731 + Standard + + 1234512528586**** + 12345125285864390 + + + + BBBB; + + private $invalidXml = << + + + BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new ListObjectVersionsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $list = $result->getData(); + $this->assertEquals(0, count($list->getPrefixList())); + $this->assertEquals(1, count($list->getDeleteMarkerList())); + $this->assertEquals(2, count($list->getObjectVersionList())); + + $this->assertEquals('oss-example', $list->getBucketName()); + $this->assertEquals('', $list->getPrefix()); + $this->assertEquals('example', $list->getKeyMarker()); + $this->assertEquals('CAEQMxiBgICbof2D0BYiIGRhZjgwMzJiMjA3MjQ0ODE5MWYxZDYwMzJlZjU1****', $list->getVersionIdMarker()); + $this->assertEquals(100, $list->getMaxKeys()); + $this->assertEquals('', $list->getDelimiter()); + $this->assertEquals('false', $list->getIsTruncated()); + + $deleteMarkerList = $list->getDeleteMarkerList(); + $this->assertEquals('example', $deleteMarkerList[0]->getKey()); + $this->assertEquals('CAEQMxiBgICAof2D0BYiIDJhMGE3N2M1YTI1NDQzOGY5NTkyNTI3MGYyMzJm****', $deleteMarkerList[0]->getVersionId()); + $this->assertEquals('false', $deleteMarkerList[0]->getIsLatest()); + $this->assertEquals('2019-04-09T07:27:28.000Z', $deleteMarkerList[0]->getLastModified()); + + $objectVersionList = $list->getObjectVersionList(); + $this->assertEquals('example', $objectVersionList[0]->getKey()); + $this->assertEquals('CAEQMxiBgMDNoP2D0BYiIDE3MWUxNzgxZDQxNTRiODI5OGYwZGMwNGY3MzZjN****', $objectVersionList[0]->getVersionId()); + $this->assertEquals('false', $objectVersionList[0]->getIsLatest()); + $this->assertEquals('2019-04-09T07:27:28.000Z', $objectVersionList[0]->getLastModified()); + $this->assertEquals('"250F8A0AE989679A22926A875F0A2****"', $objectVersionList[0]->getETag()); + $this->assertEquals('Normal', $objectVersionList[0]->getType()); + $this->assertEquals(93731, $objectVersionList[0]->getSize()); + $this->assertEquals('Standard', $objectVersionList[0]->getStorageClass()); + + $this->assertEquals('pic.jpg', $objectVersionList[1]->getKey()); + $this->assertEquals('CAEQMxiBgMCZov2D0BYiIDY4MDllOTc2YmY5MjQxMzdiOGI3OTlhNTU0ODIx****', $objectVersionList[1]->getVersionId()); + $this->assertEquals('true', $objectVersionList[1]->getIsLatest()); + $this->assertEquals('2019-04-09T07:27:28.000Z', $objectVersionList[1]->getLastModified()); + $this->assertEquals('"3663F7B0B9D3153F884C821E7CF4****"', $objectVersionList[1]->getETag()); + $this->assertEquals('Normal', $objectVersionList[1]->getType()); + $this->assertEquals(574768, $objectVersionList[1]->getSize()); + $this->assertEquals('IA', $objectVersionList[1]->getStorageClass()); + + + $response = new ResponseCore(array(), $this->validXml1, 200); + $result = new ListObjectVersionsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $list = $result->getData(); + $this->assertEquals(0, count($list->getPrefixList())); + $this->assertEquals(2, count($list->getDeleteMarkerList())); + $this->assertEquals(1, count($list->getObjectVersionList())); + + $this->assertEquals('oss-example', $list->getBucketName()); + $this->assertEquals('', $list->getPrefix()); + $this->assertEquals('example', $list->getKeyMarker()); + $this->assertEquals('CAEQMxiBgICbof2D0BYiIGRhZjgwMzJiMjA3MjQ0ODE5MWYxZDYwMzJlZjU1****', $list->getVersionIdMarker()); + $this->assertEquals(100, $list->getMaxKeys()); + $this->assertEquals('', $list->getDelimiter()); + $this->assertEquals('false', $list->getIsTruncated()); + + $deleteMarkerList = $list->getDeleteMarkerList(); + $this->assertEquals('example', $deleteMarkerList[0]->getKey()); + $this->assertEquals('CAEQMxiBgICAof2D0BYiIDJhMGE3N2M1YTI1NDQzOGY5NTkyNTI3MGYyMzJm****', $deleteMarkerList[0]->getVersionId()); + $this->assertEquals('true', $deleteMarkerList[0]->getIsLatest()); + $this->assertEquals('2019-04-09T07:27:28.000Z', $deleteMarkerList[0]->getLastModified()); + + $this->assertEquals('example-1', $deleteMarkerList[1]->getKey()); + $this->assertEquals('CAEQMxiBgICAof2D0BYiIDJhMGE3N2M1YTI1NDQzOGY5NTkyNTI3MGYyMzJm****', $deleteMarkerList[1]->getVersionId()); + $this->assertEquals('', $deleteMarkerList[1]->getIsLatest()); + $this->assertEquals('2019-04-09T07:27:28.000Z', $deleteMarkerList[1]->getLastModified()); + + $objectVersionList = $list->getObjectVersionList(); + $this->assertEquals('example-2', $objectVersionList[0]->getKey()); + $this->assertEquals('CAEQMxiBgMDNoP2D0BYiIDE3MWUxNzgxZDQxNTRiODI5OGYwZGMwNGY3MzZjN****', $objectVersionList[0]->getVersionId()); + $this->assertEquals('', $objectVersionList[0]->getIsLatest()); + $this->assertEquals('2019-04-09T07:27:28.000Z', $objectVersionList[0]->getLastModified()); + $this->assertEquals('"250F8A0AE989679A22926A875F0A2****"', $objectVersionList[0]->getETag()); + $this->assertEquals('Normal', $objectVersionList[0]->getType()); + $this->assertEquals(93731, $objectVersionList[0]->getSize()); + $this->assertEquals('Standard', $objectVersionList[0]->getStorageClass()); + } + + public function testParseNullXml() + { + $response = new ResponseCore(array(), "", 200); + $result = new ListObjectVersionsResult($response); + $list = $result->getData(); + $this->assertTrue(true); + } + + public function testParseInvalidXml() + { + $response = new ResponseCore(array(), $this->invalidXml, 200); + $result = new ListObjectVersionsResult($response); + $stat = $result->getData(); + $this->assertTrue(true); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListObjectsResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListObjectsResultTest.php new file mode 100644 index 0000000..c977ce7 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListObjectsResultTest.php @@ -0,0 +1,151 @@ + + + testbucket-hf + + + 1000 + / + false + + oss-php-sdk-test/ + + + test/ + + +BBBB; + + private $validXml2 = << + + testbucket-hf + oss-php-sdk-test/ + xx + 1000 + / + false + + oss-php-sdk-test/upload-test-object-name.txt + 2015-11-18T03:36:00.000Z + "89B9E567E7EB8815F2F7D41851F9A2CD" + Normal + 13115 + Standard + + cname_user + cname_user + + + +BBBB; + + private $validXmlWithEncodedKey = << + + testbucket-hf + url + php%2Fprefix + php%2Fmarker + php%2Fnext-marker + 1000 + %2F + true + + php/a%2Bb + 2015-11-18T03:36:00.000Z + "89B9E567E7EB8815F2F7D41851F9A2CD" + Normal + 13115 + Standard + + cname_user + cname_user + + + +BBBB; + + public function testParseValidXml1() + { + $response = new ResponseCore(array(), $this->validXml1, 200); + $result = new ListObjectsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $objectListInfo = $result->getData(); + $this->assertEquals(2, count($objectListInfo->getPrefixList())); + $this->assertEquals(0, count($objectListInfo->getObjectList())); + $this->assertEquals('testbucket-hf', $objectListInfo->getBucketName()); + $this->assertEquals('', $objectListInfo->getPrefix()); + $this->assertEquals('', $objectListInfo->getMarker()); + $this->assertEquals(1000, $objectListInfo->getMaxKeys()); + $this->assertEquals('/', $objectListInfo->getDelimiter()); + $this->assertEquals('false', $objectListInfo->getIsTruncated()); + $prefixes = $objectListInfo->getPrefixList(); + $this->assertEquals('oss-php-sdk-test/', $prefixes[0]->getPrefix()); + $this->assertEquals('test/', $prefixes[1]->getPrefix()); + } + + public function testParseValidXml2() + { + $response = new ResponseCore(array(), $this->validXml2, 200); + $result = new ListObjectsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $objectListInfo = $result->getData(); + $this->assertEquals(0, count($objectListInfo->getPrefixList())); + $this->assertEquals(1, count($objectListInfo->getObjectList())); + $this->assertEquals('testbucket-hf', $objectListInfo->getBucketName()); + $this->assertEquals('oss-php-sdk-test/', $objectListInfo->getPrefix()); + $this->assertEquals('xx', $objectListInfo->getMarker()); + $this->assertEquals(1000, $objectListInfo->getMaxKeys()); + $this->assertEquals('/', $objectListInfo->getDelimiter()); + $this->assertEquals('false', $objectListInfo->getIsTruncated()); + $objects = $objectListInfo->getObjectList(); + $this->assertEquals('oss-php-sdk-test/upload-test-object-name.txt', $objects[0]->getKey()); + $this->assertEquals('2015-11-18T03:36:00.000Z', $objects[0]->getLastModified()); + $this->assertEquals('"89B9E567E7EB8815F2F7D41851F9A2CD"', $objects[0]->getETag()); + $this->assertEquals('Normal', $objects[0]->getType()); + $this->assertEquals(13115, $objects[0]->getSize()); + $this->assertEquals('Standard', $objects[0]->getStorageClass()); + } + + public function testParseValidXmlWithEncodedKey() + { + $response = new ResponseCore(array(), $this->validXmlWithEncodedKey, 200); + $result = new ListObjectsResult($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $objectListInfo = $result->getData(); + $this->assertEquals(0, count($objectListInfo->getPrefixList())); + $this->assertEquals(1, count($objectListInfo->getObjectList())); + $this->assertEquals('testbucket-hf', $objectListInfo->getBucketName()); + $this->assertEquals('php/prefix', $objectListInfo->getPrefix()); + $this->assertEquals('php/marker', $objectListInfo->getMarker()); + $this->assertEquals('php/next-marker', $objectListInfo->getNextMarker()); + $this->assertEquals(1000, $objectListInfo->getMaxKeys()); + $this->assertEquals('/', $objectListInfo->getDelimiter()); + $this->assertEquals('true', $objectListInfo->getIsTruncated()); + $objects = $objectListInfo->getObjectList(); + $this->assertEquals('php/a+b', $objects[0]->getKey()); + $this->assertEquals('2015-11-18T03:36:00.000Z', $objects[0]->getLastModified()); + $this->assertEquals('"89B9E567E7EB8815F2F7D41851F9A2CD"', $objects[0]->getETag()); + $this->assertEquals('Normal', $objects[0]->getType()); + $this->assertEquals(13115, $objects[0]->getSize()); + $this->assertEquals('Standard', $objects[0]->getStorageClass()); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListObjectsV2ResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListObjectsV2ResultTest.php new file mode 100644 index 0000000..b072cd2 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListObjectsV2ResultTest.php @@ -0,0 +1,154 @@ + + + testbucket-hf + + + 1000 + / + false + + oss-php-sdk-test/ + + + test/ + + +BBBB; + + private $validXml2 = << + + testbucket-hf + oss-php-sdk-test/ + xx + 1000 + / + false + + oss-php-sdk-test/upload-test-object-name.txt + 2015-11-18T03:36:00.000Z + "89B9E567E7EB8815F2F7D41851F9A2CD" + Normal + 13115 + Standard + + 1 + +BBBB; + + private $validXmlWithEncodedKey = << + + testbucket-hf + url + php%2Fprefix + php%2Fmarker + 1gJiYw-- + CgJiYw-- + 1000 + %2F + true + + php/a%2Bb + 2015-11-18T03:36:00.000Z + "89B9E567E7EB8815F2F7D41851F9A2CD" + Normal + 13115 + Standard + + cname_user + cname_user + + + 1 + +BBBB; + + public function testParseValidXml1() + { + $response = new ResponseCore(array(), $this->validXml1, 200); + $result = new ListObjectsV2Result($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $objectListInfo = $result->getData(); + $this->assertEquals(2, count($objectListInfo->getPrefixList())); + $this->assertEquals(0, count($objectListInfo->getObjectList())); + $this->assertEquals('testbucket-hf', $objectListInfo->getBucketName()); + $this->assertEquals('', $objectListInfo->getPrefix()); + $this->assertEquals('', $objectListInfo->getStartAfter()); + $this->assertEquals(1000, $objectListInfo->getMaxKeys()); + $this->assertEquals('/', $objectListInfo->getDelimiter()); + $this->assertEquals('false', $objectListInfo->getIsTruncated()); + $this->assertEquals(0, $objectListInfo->getKeyCount()); + $prefixes = $objectListInfo->getPrefixList(); + $this->assertEquals('oss-php-sdk-test/', $prefixes[0]->getPrefix()); + $this->assertEquals('test/', $prefixes[1]->getPrefix()); + } + + public function testParseValidXml2() + { + $response = new ResponseCore(array(), $this->validXml2, 200); + $result = new ListObjectsV2Result($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $objectListInfo = $result->getData(); + $this->assertEquals(0, count($objectListInfo->getPrefixList())); + $this->assertEquals(1, count($objectListInfo->getObjectList())); + $this->assertEquals('testbucket-hf', $objectListInfo->getBucketName()); + $this->assertEquals('oss-php-sdk-test/', $objectListInfo->getPrefix()); + $this->assertEquals('xx', $objectListInfo->getStartAfter()); + $this->assertEquals(1000, $objectListInfo->getMaxKeys()); + $this->assertEquals('/', $objectListInfo->getDelimiter()); + $this->assertEquals('false', $objectListInfo->getIsTruncated()); + $this->assertEquals(1, $objectListInfo->getKeyCount()); + $objects = $objectListInfo->getObjectList(); + $this->assertEquals('oss-php-sdk-test/upload-test-object-name.txt', $objects[0]->getKey()); + $this->assertEquals('2015-11-18T03:36:00.000Z', $objects[0]->getLastModified()); + $this->assertEquals('"89B9E567E7EB8815F2F7D41851F9A2CD"', $objects[0]->getETag()); + $this->assertEquals('Normal', $objects[0]->getType()); + $this->assertEquals(13115, $objects[0]->getSize()); + $this->assertEquals('Standard', $objects[0]->getStorageClass()); + } + + public function testParseValidXmlWithEncodedKey() + { + $response = new ResponseCore(array(), $this->validXmlWithEncodedKey, 200); + $result = new ListObjectsV2Result($response); + $this->assertTrue($result->isOK()); + $this->assertNotNull($result->getData()); + $this->assertNotNull($result->getRawResponse()); + $objectListInfo = $result->getData(); + $this->assertEquals(0, count($objectListInfo->getPrefixList())); + $this->assertEquals(1, count($objectListInfo->getObjectList())); + $this->assertEquals('testbucket-hf', $objectListInfo->getBucketName()); + $this->assertEquals('php/prefix', $objectListInfo->getPrefix()); + $this->assertEquals('php/marker', $objectListInfo->getStartAfter()); + $this->assertEquals('CgJiYw--', $objectListInfo->getNextContinuationToken()); + $this->assertEquals('1gJiYw--', $objectListInfo->getContinuationToken()); + $this->assertEquals(1000, $objectListInfo->getMaxKeys()); + $this->assertEquals('/', $objectListInfo->getDelimiter()); + $this->assertEquals('true', $objectListInfo->getIsTruncated()); + $this->assertEquals(1, $objectListInfo->getKeyCount()); + $objects = $objectListInfo->getObjectList(); + $this->assertEquals('php/a+b', $objects[0]->getKey()); + $this->assertEquals('2015-11-18T03:36:00.000Z', $objects[0]->getLastModified()); + $this->assertEquals('"89B9E567E7EB8815F2F7D41851F9A2CD"', $objects[0]->getETag()); + $this->assertEquals('Normal', $objects[0]->getType()); + $this->assertEquals(13115, $objects[0]->getSize()); + $this->assertEquals('Standard', $objects[0]->getStorageClass()); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListPartsResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListPartsResultTest.php new file mode 100644 index 0000000..bdc61a2 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ListPartsResultTest.php @@ -0,0 +1,62 @@ + + + multipart_upload + multipart.data + 0004B999EF5A239BB9138C6227D69F95 + 5 + 1000 + false + + 1 + 2012-02-23T07:01:34.000Z + "3349DC700140D7F86A078484278075A9" + 6291456 + + + 2 + 2012-02-23T07:01:12.000Z + "3349DC700140D7F86A078484278075A9" + 6291456 + + + 5 + 2012-02-23T07:02:03.000Z + "7265F4D211B56873A381D321F586E4A9" + 1024 + + +BBBB; + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new ListPartsResult($response); + $listPartsInfo = $result->getData(); + $this->assertEquals("multipart_upload", $listPartsInfo->getBucket()); + $this->assertEquals("multipart.data", $listPartsInfo->getKey()); + $this->assertEquals("0004B999EF5A239BB9138C6227D69F95", $listPartsInfo->getUploadId()); + $this->assertEquals(5, $listPartsInfo->getNextPartNumberMarker()); + $this->assertEquals(1000, $listPartsInfo->getMaxParts()); + $this->assertEquals("false", $listPartsInfo->getIsTruncated()); + $this->assertEquals(3, count($listPartsInfo->getListPart())); + $parts = $listPartsInfo->getListPart(); + $this->assertEquals(1, $parts[0]->getPartNumber()); + $this->assertEquals('2012-02-23T07:01:34.000Z', $parts[0]->getLastModified()); + $this->assertEquals('"3349DC700140D7F86A078484278075A9"', $parts[0]->getETag()); + $this->assertEquals(6291456, $parts[0]->getSize()); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/LiveChannelXmlTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/LiveChannelXmlTest.php new file mode 100644 index 0000000..b69ef7c --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/LiveChannelXmlTest.php @@ -0,0 +1,277 @@ + + + xxx + enabled + + hls + 1000 + 5 + hello.m3u8 + + +BBBB; + + private $info = << + + live-1 + xxx + + rtmp://bucket.oss-cn-hangzhou.aliyuncs.com/live/213443245345 + + + http://bucket.oss-cn-hangzhou.aliyuncs.com/213443245345/播放列表.m3u8 + + enabled + 2015-11-24T14:25:31.000Z + +BBBB; + + private $list = << + +xxx + yyy + 100 + false + 121312132 + + 12123214323431 + xxx + + rtmp://bucket.oss-cn-hangzhou.aliyuncs.com/live/1 + + + http://bucket.oss-cn-hangzhou.aliyuncs.com/1/播放列表.m3u8 + + enabled + 2015-11-24T14:25:31.000Z + + + 432423432423 + yyy + + rtmp://bucket.oss-cn-hangzhou.aliyuncs.com/live/2 + + + http://bucket.oss-cn-hangzhou.aliyuncs.com/2/播放列表.m3u8 + + enabled + 2016-11-24T14:25:31.000Z + + +BBBB; + + private $status = << + + Live + 2016-10-20T14:25:31.000Z + 10.1.2.4:47745 + + + +BBBB; + + private $history = << + + + 2013-11-24T14:25:31.000Z + 2013-11-24T15:25:31.000Z + 10.101.194.148:56861 + + + 2014-11-24T14:25:31.000Z + 2014-11-24T15:25:31.000Z + 10.101.194.148:56862 + + + 2015-11-24T14:25:31.000Z + 2015-11-24T15:25:31.000Z + 10.101.194.148:56863 + + +BBBB; + + public function testLiveChannelStatus() + { + $stat = new GetLiveChannelStatus(); + $stat->parseFromXml($this->status); + + $this->assertEquals('Live', $stat->getStatus()); + $this->assertEquals('2016-10-20T14:25:31.000Z', $stat->getConnectedTime()); + $this->assertEquals('10.1.2.4:47745', $stat->getRemoteAddr()); + + $this->assertEquals(1280, $stat->getVideoWidth()); + $this->assertEquals(536, $stat->getVideoHeight()); + $this->assertEquals(24, $stat->getVideoFrameRate()); + $this->assertEquals(72513, $stat->getVideoBandwidth()); + $this->assertEquals('H264', $stat->getVideoCodec()); + $this->assertEquals(6519, $stat->getAudioBandwidth()); + $this->assertEquals(44100, $stat->getAudioSampleRate()); + $this->assertEquals('AAC', $stat->getAudioCodec()); + + } + + public function testGetLiveChannelHistory() + { + $history = new GetLiveChannelHistory(); + $history->parseFromXml($this->history); + + $recordList = $history->getLiveRecordList(); + $this->assertEquals(3, count($recordList)); + + $list0 = $recordList[0]; + $this->assertEquals('2013-11-24T14:25:31.000Z', $list0->getStartTime()); + $this->assertEquals('2013-11-24T15:25:31.000Z', $list0->getEndTime()); + $this->assertEquals('10.101.194.148:56861', $list0->getRemoteAddr()); + + $list1 = $recordList[1]; + $this->assertEquals('2014-11-24T14:25:31.000Z', $list1->getStartTime()); + $this->assertEquals('2014-11-24T15:25:31.000Z', $list1->getEndTime()); + $this->assertEquals('10.101.194.148:56862', $list1->getRemoteAddr()); + + $list2 = $recordList[2]; + $this->assertEquals('2015-11-24T14:25:31.000Z', $list2->getStartTime()); + $this->assertEquals('2015-11-24T15:25:31.000Z', $list2->getEndTime()); + $this->assertEquals('10.101.194.148:56863', $list2->getRemoteAddr()); + + } + + public function testLiveChannelConfig() + { + $config = new LiveChannelConfig(array('name' => 'live-1')); + $config->parseFromXml($this->config); + + $this->assertEquals('xxx', $config->getDescription()); + $this->assertEquals('enabled', $config->getStatus()); + $this->assertEquals('hls', $config->getType()); + $this->assertEquals(1000, $config->getFragDuration()); + $this->assertEquals(5, $config->getFragCount()); + $this->assertEquals('hello.m3u8', $config->getPlayListName()); + + $xml = $config->serializeToXml(); + $config2 = new LiveChannelConfig(array('name' => 'live-2')); + $config2->parseFromXml($xml); + $this->assertEquals('xxx', $config2->getDescription()); + $this->assertEquals('enabled', $config2->getStatus()); + $this->assertEquals('hls', $config2->getType()); + $this->assertEquals(1000, $config2->getFragDuration()); + $this->assertEquals(5, $config2->getFragCount()); + $this->assertEquals('hello.m3u8', $config2->getPlayListName()); + } + + public function testLiveChannelInfo() + { + $info = new LiveChannelInfo(array('name' => 'live-1')); + $info->parseFromXml($this->info); + + $this->assertEquals('live-1', $info->getName()); + $this->assertEquals('xxx', $info->getDescription()); + $this->assertEquals('enabled', $info->getStatus()); + $this->assertEquals('2015-11-24T14:25:31.000Z', $info->getLastModified()); + $pubs = $info->getPublishUrls(); + $this->assertEquals(1, count($pubs)); + $this->assertEquals('rtmp://bucket.oss-cn-hangzhou.aliyuncs.com/live/213443245345', $pubs[0]); + + $plays = $info->getPlayUrls(); + $this->assertEquals(1, count($plays)); + $this->assertEquals('http://bucket.oss-cn-hangzhou.aliyuncs.com/213443245345/播放列表.m3u8', $plays[0]); + } + + public function testLiveChannelList() + { + $list = new LiveChannelListInfo(); + $list->parseFromXml($this->list); + + $this->assertEquals('xxx', $list->getPrefix()); + $this->assertEquals('yyy', $list->getMarker()); + $this->assertEquals(100, $list->getMaxKeys()); + $this->assertEquals(false, $list->getIsTruncated()); + $this->assertEquals('121312132', $list->getNextMarker()); + + $channels = $list->getChannelList(); + $this->assertEquals(2, count($channels)); + + $chan1 = $channels[0]; + $this->assertEquals('12123214323431', $chan1->getName()); + $this->assertEquals('xxx', $chan1->getDescription()); + $this->assertEquals('enabled', $chan1->getStatus()); + $this->assertEquals('2015-11-24T14:25:31.000Z', $chan1->getLastModified()); + $pubs = $chan1->getPublishUrls(); + $this->assertEquals(1, count($pubs)); + $this->assertEquals('rtmp://bucket.oss-cn-hangzhou.aliyuncs.com/live/1', $pubs[0]); + + $plays = $chan1->getPlayUrls(); + $this->assertEquals(1, count($plays)); + $this->assertEquals('http://bucket.oss-cn-hangzhou.aliyuncs.com/1/播放列表.m3u8', $plays[0]); + + $chan2 = $channels[1]; + $this->assertEquals('432423432423', $chan2->getName()); + $this->assertEquals('yyy', $chan2->getDescription()); + $this->assertEquals('enabled', $chan2->getStatus()); + $this->assertEquals('2016-11-24T14:25:31.000Z', $chan2->getLastModified()); + $pubs = $chan2->getPublishUrls(); + $this->assertEquals(1, count($pubs)); + $this->assertEquals('rtmp://bucket.oss-cn-hangzhou.aliyuncs.com/live/2', $pubs[0]); + + $plays = $chan2->getPlayUrls(); + $this->assertEquals(1, count($plays)); + $this->assertEquals('http://bucket.oss-cn-hangzhou.aliyuncs.com/2/播放列表.m3u8', $plays[0]); + } + + public function testLiveChannelHistory() + { + $xml = "2013-11-24T14:25:31.000Z2013-11-24T15:25:31.000Z10.101.194.148:56861"; + $history = new LiveChannelHistory(); + $history->parseFromXml($xml); + + $this->assertEquals('2013-11-24T14:25:31.000Z', $history->getStartTime()); + $this->assertEquals('2013-11-24T15:25:31.000Z', $history->getEndTime()); + $this->assertEquals('10.101.194.148:56861', $history->getRemoteAddr()); + } + + public function testGetLiveChannelHistorySerializeToXml() + { + try { + $history = new GetLiveChannelHistory (); + $history->serializeToXml(); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + if (strpos($e, "Not implemented.") == false) + { + $this->assertTrue(false); + } + } + } + +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/LoggingConfigTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/LoggingConfigTest.php new file mode 100644 index 0000000..05336c8 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/LoggingConfigTest.php @@ -0,0 +1,47 @@ + + + +TargetBucket +TargetPrefix + + +BBBB; + + private $nullXml = << + +BBBB; + + public function testParseValidXml() + { + $loggingConfig = new LoggingConfig(); + $loggingConfig->parseFromXml($this->validXml); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml(strval($loggingConfig))); + } + + public function testConstruct() + { + $loggingConfig = new LoggingConfig('TargetBucket', 'TargetPrefix'); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($loggingConfig->serializeToXml())); + } + + public function testFailedConstruct() + { + $loggingConfig = new LoggingConfig('TargetBucket', null); + $this->assertEquals($this->cleanXml($this->nullXml), $this->cleanXml($loggingConfig->serializeToXml())); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/MimeTypesTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/MimeTypesTest.php new file mode 100644 index 0000000..1403d09 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/MimeTypesTest.php @@ -0,0 +1,13 @@ +assertEquals('application/xml', MimeTypes::getMimetype('file.xml')); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ObjectAclTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ObjectAclTest.php new file mode 100644 index 0000000..9260a6a --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/ObjectAclTest.php @@ -0,0 +1,28 @@ +ossClient; + $bucket = $this->bucket; + + $object = 'test/object-acl'; + $client->deleteObject($bucket, $object); + $client->putObject($bucket, $object, "hello world"); + + $acl = $client->getObjectAcl($bucket, $object); + $this->assertEquals('default', $acl); + + $client->putObjectAcl($bucket, $object, 'public-read'); + $acl = $client->getObjectAcl($bucket, $object); + $this->assertEquals('public-read', $acl); + + $content = $client->getObject($bucket, $object); + $this->assertEquals('hello world', $content); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketCnameTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketCnameTest.php new file mode 100644 index 0000000..dabe93f --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketCnameTest.php @@ -0,0 +1,61 @@ +bucket . '-cname'; + $client = new OssClient( + getenv('OSS_ACCESS_KEY_ID'), + getenv('OSS_ACCESS_KEY_SECRET'), + "oss-ap-southeast-2.aliyuncs.com", false); + + $client->createBucket($bucketName); + + try { + $info1 = $client->createBucketCnameToken($bucketName, "www.example.com"); + $this->assertEquals("www.example.com", $info1->getCname()); + $this->assertEquals($bucketName, $info1->getBucket()); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $info2 = $client->getBucketCnameToken($bucketName, "www.example.com"); + $this->assertEquals("www.example.com", $info2->getCname()); + $this->assertEquals($bucketName, $info2->getBucket()); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $result = $client->addBucketCname($bucketName, "www.example.com"); + } catch (OssException $e) { + $this->assertEquals('NeedVerifyDomainOwnership', $e->getErrorCode()); + } + + try { + $config = $client->getBucketCname($bucketName); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $result = $client->deleteBucketCname($bucketName, "www.example.com"); + } catch (OssException $e) { + $this->assertTrue(false); + } + + $client->deleteBucket($bucketName); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketCorsTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketCorsTest.php new file mode 100644 index 0000000..a32154b --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketCorsTest.php @@ -0,0 +1,84 @@ +addAllowedHeader("x-oss-test"); + $rule->addAllowedHeader("x-oss-test2"); + $rule->addAllowedHeader("x-oss-test2"); + $rule->addAllowedHeader("x-oss-test3"); + $rule->addAllowedOrigin("http://www.b.com"); + $rule->addAllowedOrigin("http://www.a.com"); + $rule->addAllowedOrigin("http://www.a.com"); + $rule->addAllowedMethod("GET"); + $rule->addAllowedMethod("PUT"); + $rule->addAllowedMethod("POST"); + $rule->addExposeHeader("x-oss-test1"); + $rule->addExposeHeader("x-oss-test1"); + $rule->addExposeHeader("x-oss-test2"); + $rule->setMaxAgeSeconds(10); + $corsConfig->addRule($rule); + $rule = new CorsRule(); + $rule->addAllowedHeader("x-oss-test"); + $rule->addAllowedMethod("GET"); + $rule->addAllowedOrigin("http://www.b.com"); + $rule->addExposeHeader("x-oss-test1"); + $rule->setMaxAgeSeconds(110); + $corsConfig->addRule($rule); + + try { + $this->ossClient->putBucketCors($this->bucket, $corsConfig); + } catch (OssException $e) { + $this->assertFalse(True); + } + + try { + Common::waitMetaSync(); + $object = "cors/test.txt"; + $this->ossClient->putObject($this->bucket, $object, file_get_contents(__FILE__)); + $headers = $this->ossClient->optionsObject($this->bucket, $object, "http://www.a.com", "GET", "", null); + $this->assertNotEmpty($headers); + } catch (OssException $e) { + var_dump($e->getMessage()); + } + + try { + Common::waitMetaSync(); + $corsConfig2 = $this->ossClient->getBucketCors($this->bucket); + $this->assertNotNull($corsConfig2); + $this->assertEquals($corsConfig->serializeToXml(), $corsConfig2->serializeToXml()); + } catch (OssException $e) { + $this->assertFalse(True); + } + + try { + Common::waitMetaSync(); + $this->ossClient->deleteBucketCors($this->bucket); + } catch (OssException $e) { + $this->assertFalse(True); + } + + try { + Common::waitMetaSync(); + $corsConfig3 = $this->ossClient->getBucketCors($this->bucket); + $this->assertNotNull($corsConfig3); + $this->assertNotEquals($corsConfig->serializeToXml(), $corsConfig3->serializeToXml()); + } catch (OssException $e) { + $this->assertFalse(True); + } + + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketEncryptionTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketEncryptionTest.php new file mode 100644 index 0000000..42c51b2 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketEncryptionTest.php @@ -0,0 +1,63 @@ +ossClient->putBucketEncryption($this->bucket, $config); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $config2 = $this->ossClient->getBucketEncryption($this->bucket); + $this->assertEquals($config->serializeToXml(), $config2->serializeToXml()); + $this->assertEquals("AES256", $config2->getSSEAlgorithm()); + $this->assertEquals(null, $config2->getKMSMasterKeyID()); + } catch (OssException $e) { + $this->assertTrue(false); + } + + $config = new ServerSideEncryptionConfig("KMS", "kms-id"); + try { + $this->ossClient->putBucketEncryption($this->bucket, $config); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $config2 = $this->ossClient->getBucketEncryption($this->bucket); + $this->assertEquals($config->serializeToXml(), $config2->serializeToXml()); + $this->assertEquals("KMS", $config2->getSSEAlgorithm()); + $this->assertEquals("kms-id", $config2->getKMSMasterKeyID()); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + Common::waitMetaSync(); + $this->ossClient->deleteBucketEncryption($this->bucket); + } catch (OssException $e) { + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $config2 = $this->ossClient->getBucketEncryption($this->bucket); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals("NoSuchServerSideEncryptionRule", $e->getErrorCode()); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketInfoTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketInfoTest.php new file mode 100644 index 0000000..759e536 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketInfoTest.php @@ -0,0 +1,20 @@ +ossClient->getBucketInfo($this->bucket); + $this->assertEquals($this->bucket, $info->getName()); + $this->assertEquals("Standard", $info->getStorageClass()); + } catch (OssException $e) { + $this->assertTrue(false); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketLifecycleTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketLifecycleTest.php new file mode 100644 index 0000000..46da1f0 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketLifecycleTest.php @@ -0,0 +1,57 @@ +addRule($lifecycleRule); + $actions = array(); + $actions[] = new LifecycleAction("Expiration", "Date", '2022-10-12T00:00:00.000Z'); + $lifecycleRule = new LifecycleRule("delete temporary files", "temporary/", "Enabled", $actions); + $lifecycleConfig->addRule($lifecycleRule); + + try { + $this->ossClient->putBucketLifecycle($this->bucket, $lifecycleConfig); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + Common::waitMetaSync(); + $lifecycleConfig2 = $this->ossClient->getBucketLifecycle($this->bucket); + $this->assertEquals($lifecycleConfig->serializeToXml(), $lifecycleConfig2->serializeToXml()); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + Common::waitMetaSync(); + $this->ossClient->deleteBucketLifecycle($this->bucket); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + Common::waitMetaSync(); + $lifecycleConfig3 = $this->ossClient->getBucketLifecycle($this->bucket); + $this->assertNotEquals($lifecycleConfig->serializeToXml(), $lifecycleConfig3->serializeToXml()); + } catch (OssException $e) { + $this->assertTrue(false); + } + + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketLoggingTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketLoggingTest.php new file mode 100644 index 0000000..16a10eb --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketLoggingTest.php @@ -0,0 +1,43 @@ +bucket, 'prefix'); + try { + $this->ossClient->putBucketLogging($this->bucket, $this->bucket, 'prefix'); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $loggingConfig2 = $this->ossClient->getBucketLogging($this->bucket); + $this->assertEquals($loggingConfig->serializeToXml(), $loggingConfig2->serializeToXml()); + } catch (OssException $e) { + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $this->ossClient->deleteBucketLogging($this->bucket); + } catch (OssException $e) { + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $loggingConfig3 = $this->ossClient->getBucketLogging($this->bucket); + $this->assertNotEquals($loggingConfig->serializeToXml(), $loggingConfig3->serializeToXml()); + } catch (OssException $e) { + $this->assertTrue(false); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketPolicyTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketPolicyTest.php new file mode 100644 index 0000000..4f0c5ee --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketPolicyTest.php @@ -0,0 +1,47 @@ +ossClient->deleteBucketPolicy($this->bucket); + $policy = $this->ossClient->getBucketPolicy($this->bucket); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + $this->assertEquals("NoSuchBucketPolicy", $e->getErrorCode()); + } + + try { + $this->ossClient->putBucketPolicy($this->bucket, $policy_str); + $policy = $this->ossClient->getBucketPolicy($this->bucket); + $this->assertEquals($policy_str, $policy); + $this->ossClient->deleteBucketPolicy($this->bucket); + } catch (OssException $e) { + $this->assertTrue(false); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketRefererTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketRefererTest.php new file mode 100644 index 0000000..ba7d14f --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketRefererTest.php @@ -0,0 +1,48 @@ +addReferer('http://www.aliyun.com'); + + try { + $this->ossClient->putBucketReferer($this->bucket, $refererConfig); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $refererConfig2 = $this->ossClient->getBucketReferer($this->bucket); + $this->assertEquals($refererConfig->serializeToXml(), $refererConfig2->serializeToXml()); + } catch (OssException $e) { + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $nullRefererConfig = new RefererConfig(); + $nullRefererConfig->setAllowEmptyReferer(false); + $this->ossClient->putBucketReferer($this->bucket, $nullRefererConfig); + } catch (OssException $e) { + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $refererConfig3 = $this->ossClient->getBucketLogging($this->bucket); + $this->assertNotEquals($refererConfig->serializeToXml(), $refererConfig3->serializeToXml()); + } catch (OssException $e) { + $this->assertTrue(false); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketRequestPaymentTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketRequestPaymentTest.php new file mode 100644 index 0000000..9a4b412 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketRequestPaymentTest.php @@ -0,0 +1,51 @@ +ossClient->getBucketRequestPayment($this->bucket); + $this->assertEquals("BucketOwner", $payer); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->ossClient->putBucketRequestPayment($this->bucket, "Requester"); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $payer = $this->ossClient->getBucketRequestPayment($this->bucket); + $this->assertEquals("Requester", $payer); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->ossClient->putBucketRequestPayment($this->bucket, "BucketOwner"); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $payer = $this->ossClient->getBucketRequestPayment($this->bucket); + $this->assertEquals("BucketOwner", $payer); + } catch (OssException $e) { + $this->assertTrue(false); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketStatTestTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketStatTestTest.php new file mode 100644 index 0000000..7f847d8 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketStatTestTest.php @@ -0,0 +1,34 @@ +ossClient->putObject($this->bucket, "name-1.txt", $content); + $this->ossClient->putObject($this->bucket, "name-2.txt", $content); + $this->ossClient->putObject($this->bucket, "name-3.txt", $content); + + $object = "multipart-test.txt"; + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + + Common::waitMetaSync(); + Common::waitMetaSync(); + Common::waitMetaSync(); + $stat = $this->ossClient->getBucketStat($this->bucket); + $this->assertEquals(3, $stat->getObjectCount()); + $this->assertEquals(15, $stat->getStorage()); + $this->assertEquals(1, $stat->getMultipartUploadCount()); + + } catch (OssException $e) { + $this->assertTrue(false); + } + } + +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketStorageCapacityTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketStorageCapacityTest.php new file mode 100644 index 0000000..87548f9 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketStorageCapacityTest.php @@ -0,0 +1,56 @@ +ossClient->getBucketStorageCapacity($this->bucket); + $this->assertEquals($storageCapacity, -1); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->ossClient->putBucketStorageCapacity($this->bucket, 1000); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + Common::waitMetaSync(); + $storageCapacity = $this->ossClient->getBucketStorageCapacity($this->bucket); + $this->assertEquals($storageCapacity, 1000); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->ossClient->putBucketStorageCapacity($this->bucket, 0); + + Common::waitMetaSync(); + + $storageCapacity = $this->ossClient->getBucketStorageCapacity($this->bucket); + $this->assertEquals($storageCapacity, 0); + + $this->ossClient->putObject($this->bucket, 'test-storage-capacity','test-content'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('Bucket storage exceed max storage capacity.',$e->getErrorMessage()); + } + + try { + $this->ossClient->putBucketStorageCapacity($this->bucket, -2); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals(400, $e->getHTTPStatus()); + $this->assertEquals('InvalidArgument', $e->getErrorCode()); + } + } + +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketTagsTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketTagsTest.php new file mode 100644 index 0000000..bafa64b --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketTagsTest.php @@ -0,0 +1,76 @@ +ossClient->getBucketTags($this->bucket); + $this->assertEquals(0, count($config->getTags())); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $config = new TaggingConfig(); + $config->addTag(new Tag("key1", "value1")); + $config->addTag(new Tag("key2", "value2")); + $config->addTag(new Tag("key3", "value3")); + $this->ossClient->putBucketTags($this->bucket, $config); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + Common::waitMetaSync(); + $config2 = $this->ossClient->getBucketTags($this->bucket); + $this->assertEquals(3, count($config2->getTags())); + $this->assertEquals("key1", $config2->getTags()[0]->getKey()); + $this->assertEquals("value1", $config2->getTags()[0]->getValue()); + $this->assertEquals("key2", $config2->getTags()[1]->getKey()); + $this->assertEquals("value2", $config2->getTags()[1]->getValue()); + $this->assertEquals("key3", $config2->getTags()[2]->getKey()); + $this->assertEquals("value3", $config2->getTags()[2]->getValue()); + } catch (OssException $e) { + $this->assertTrue(false); + } + + + try { + Common::waitMetaSync(); + //del key1, key3 + $tags = array(); + $tags[] = new Tag("key1", "value1"); + $tags[] = new Tag("key3", "value3"); + + $this->ossClient->deleteBucketTags($this->bucket, $tags); + $config2 = $this->ossClient->getBucketTags($this->bucket); + $this->assertEquals(1, count($config2->getTags())); + $this->assertEquals("key2", $config2->getTags()[0]->getKey()); + $this->assertEquals("value2", $config2->getTags()[0]->getValue()); + } catch (OssException $e) { + $this->assertTrue(false); + } + + + try { + Common::waitMetaSync(); + //del all + $this->ossClient->deleteBucketTags($this->bucket); + $config2 = $this->ossClient->getBucketTags($this->bucket); + $this->assertEquals(0, count($config2->getTags())); + } catch (OssException $e) { + $this->assertTrue(false); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketTest.php new file mode 100644 index 0000000..6bac445 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketTest.php @@ -0,0 +1,140 @@ +ossClient->createBucket("s"); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('"s"bucket name is invalid', $e->getMessage()); + } + } + + public function testBucketWithInvalidACL() + { + try { + $this->ossClient->createBucket($this->bucket, "invalid"); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('invalid:acl is invalid(private,public-read,public-read-write)', $e->getMessage()); + } + } + + public function testBucket() + { + $this->ossClient->createBucket($this->bucket, OssClient::OSS_ACL_TYPE_PUBLIC_READ_WRITE); + + $bucketListInfo = $this->ossClient->listBuckets(); + $this->assertNotNull($bucketListInfo); + + $bucketList = $bucketListInfo->getBucketList(); + $this->assertTrue(is_array($bucketList)); + $this->assertGreaterThan(0, count($bucketList)); + + $this->ossClient->putBucketAcl($this->bucket, OssClient::OSS_ACL_TYPE_PUBLIC_READ_WRITE); + Common::waitMetaSync(); + $this->assertEquals($this->ossClient->getBucketAcl($this->bucket), OssClient::OSS_ACL_TYPE_PUBLIC_READ_WRITE); + + $this->assertTrue($this->ossClient->doesBucketExist($this->bucket)); + $this->assertFalse($this->ossClient->doesBucketExist($this->bucket . '-notexist')); + + $this->assertEquals($this->ossClient->getBucketLocation($this->bucket), Common::getRegion()); + + $res = $this->ossClient->getBucketMeta($this->bucket); + $this->assertEquals('200', $res['info']['http_code']); + $this->assertEquals(Common::getRegion(), $res['x-oss-bucket-region']); + } + + public function testCreateBucketWithStorageType() + { + $object = 'storage-object'; + + $this->ossClient->putObject($this->archiveBucket, $object,'testcontent'); + try { + $this->ossClient->getObject($this->archiveBucket, $object); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('403', $e->getHTTPStatus()); + $this->assertEquals('InvalidObjectState', $e->getErrorCode()); + } + + $this->ossClient->putObject($this->iaBucket, $object,'testcontent'); + $result = $this->ossClient->getObject($this->iaBucket, $object); + $this->assertEquals($result, 'testcontent'); + + $this->ossClient->putObject($this->bucket, $object,'testcontent'); + $result = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($result, 'testcontent'); + } + + public function testCreateBucketWithInvalidStorageType() + { + try { + $options = array( + OssClient::OSS_STORAGE => 'unknown' + ); + $this->ossClient->createBucket('bucket-name', OssClient::OSS_ACL_TYPE_PRIVATE, $options); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + if (strpos($e, "storage name is invalid") == false) + { + $this->assertTrue(false); + } + } + } + + protected function setUp(): void + { + parent::setUp(); + + $this->iaBucket = 'ia-' . $this->bucket; + $this->archiveBucket = 'archive-' . $this->bucket; + $this->standardBucket = 'standard-' . $this->bucket; + + $options = array( + OssClient::OSS_STORAGE => OssClient::OSS_STORAGE_IA + ); + + $this->ossClient->createBucket($this->iaBucket, OssClient::OSS_ACL_TYPE_PRIVATE, $options); + + $options = array( + OssClient::OSS_STORAGE => OssClient::OSS_STORAGE_ARCHIVE + ); + + $this->ossClient->createBucket($this->archiveBucket, OssClient::OSS_ACL_TYPE_PRIVATE, $options); + + $options = array( + OssClient::OSS_STORAGE => OssClient::OSS_STORAGE_STANDARD + ); + + $this->ossClient->createBucket($this->standardBucket, OssClient::OSS_ACL_TYPE_PRIVATE, $options); + } + + protected function tearDown(): void + { + parent::tearDown(); + + $object = 'storage-object'; + + $this->ossClient->deleteObject($this->iaBucket, $object); + $this->ossClient->deleteObject($this->archiveBucket, $object); + $this->ossClient->deleteBucket($this->iaBucket); + $this->ossClient->deleteBucket($this->archiveBucket); + $this->ossClient->deleteBucket($this->standardBucket); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketTransferAccelerationTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketTransferAccelerationTest.php new file mode 100644 index 0000000..24c8b51 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketTransferAccelerationTest.php @@ -0,0 +1,40 @@ +ossClient->getBucketTransferAcceleration($this->bucket); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals("NoSuchTransferAccelerationConfiguration", $e->getErrorCode()); + } + + try { + $this->ossClient->putBucketTransferAcceleration($this->bucket, true); + Common::waitMetaSync(); + $status = $this->ossClient->getBucketTransferAcceleration($this->bucket); + $this->assertEquals(true, $status); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->ossClient->putBucketTransferAcceleration($this->bucket, false); + Common::waitMetaSync(); + $status = $this->ossClient->getBucketTransferAcceleration($this->bucket); + $this->assertEquals(false, $status); + } catch (OssException $e) { + $this->assertTrue(false); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketVersioningTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketVersioningTest.php new file mode 100644 index 0000000..d9aa5a4 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketVersioningTest.php @@ -0,0 +1,40 @@ +ossClient->getBucketVersioning($this->bucket); + $this->assertEquals(null, $status); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->ossClient->putBucketVersioning($this->bucket, "Enabled"); + Common::waitMetaSync(); + $status = $this->ossClient->getBucketVersioning($this->bucket); + $this->assertEquals("Enabled", $status); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->ossClient->putBucketVersioning($this->bucket, "Suspended"); + Common::waitMetaSync(); + $status = $this->ossClient->getBucketVersioning($this->bucket); + $this->assertEquals("Suspended", $status); + } catch (OssException $e) { + $this->assertTrue(false); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketWebsiteTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketWebsiteTest.php new file mode 100644 index 0000000..dfa9cc1 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketWebsiteTest.php @@ -0,0 +1,46 @@ +ossClient->putBucketWebsite($this->bucket, $websiteConfig); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertTrue(false); + } + + try { + Common::waitMetaSync(); + $websiteConfig2 = $this->ossClient->getBucketWebsite($this->bucket); + $this->assertEquals($websiteConfig->serializeToXml(), $websiteConfig2->serializeToXml()); + } catch (OssException $e) { + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $this->ossClient->deleteBucketWebsite($this->bucket); + } catch (OssException $e) { + $this->assertTrue(false); + } + try { + Common::waitMetaSync(); + $websiteConfig3 = $this->ossClient->getBucketLogging($this->bucket); + $this->assertNotEquals($websiteConfig->serializeToXml(), $websiteConfig3->serializeToXml()); + } catch (OssException $e) { + $this->assertTrue(false); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketWormTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketWormTest.php new file mode 100644 index 0000000..85df417 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientBucketWormTest.php @@ -0,0 +1,36 @@ +ossClient->initiateBucketWorm($this->bucket, 30); + $config = $this->ossClient->getBucketWorm($this->bucket); + $this->assertEquals($wormId, $config->getWormId()); + $this->assertEquals("InProgress", $config->getState()); + $this->assertEquals(30, $config->getDay()); + $this->ossClient->abortBucketWorm($this->bucket); + + $wormId = $this->ossClient->initiateBucketWorm($this->bucket, 60); + $this->ossClient->completeBucketWorm($this->bucket, $wormId); + $config = $this->ossClient->getBucketWorm($this->bucket); + + $this->ossClient->ExtendBucketWorm($this->bucket, $wormId, 120); + $config = $this->ossClient->getBucketWorm($this->bucket); + $this->assertEquals($wormId, $config->getWormId()); + $this->assertEquals("Locked", $config->getState()); + $this->assertEquals(120, $config->getDay()); + + } catch (OssException $e) { + $this->assertTrue(false); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientImageTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientImageTest.php new file mode 100644 index 0000000..6def9f9 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientImageTest.php @@ -0,0 +1,147 @@ +client = $this->ossClient; + $this->bucketName = $this->bucket; + $this->local_file = "example.jpg"; + $this->object = "oss-example.jpg"; + $this->download_file = "image.jpg"; + + Common::waitMetaSync(); + $this->client->uploadFile($this->bucketName, $this->object, $this->local_file); + } + + protected function tearDown(): void + { + parent::tearDown(); + unlink($this->download_file); + } + + public function testImageResize() + { + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $this->download_file, + OssClient::OSS_PROCESS => "image/resize,m_fixed,h_100,w_100", ); + $this->check($options, 100, 100, 3267, 'jpg'); + } + + public function testImageCrop() + { + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $this->download_file, + OssClient::OSS_PROCESS => "image/crop,w_100,h_100,x_100,y_100,r_1", ); + $this->check($options, 100, 100, 1969, 'jpg'); + } + + public function testImageRotate() + { + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $this->download_file, + OssClient::OSS_PROCESS => "image/rotate,90", ); + $this->check($options, 267, 400, 20998, 'jpg'); + } + + public function testImageSharpen() + { + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $this->download_file, + OssClient::OSS_PROCESS => "image/sharpen,100", ); + $this->check($options, 400, 267, 23015, 'jpg'); + } + + public function testImageWatermark() + { + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $this->download_file, + OssClient::OSS_PROCESS => "image/watermark,text_SGVsbG8g5Zu-54mH5pyN5YqhIQ", ); + $this->check($options, 400, 267, 26369, 'jpg'); + } + + public function testImageFormat() + { + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $this->download_file, + OssClient::OSS_PROCESS => "image/format,png", ); + $this->check($options, 400, 267, 160733, 'png'); + } + + public function testImageTofile() + { + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $this->download_file, + OssClient::OSS_PROCESS => "image/resize,m_fixed,w_100,h_100", ); + $this->check($options, 100, 100, 3267, 'jpg'); + } + + public function testProcesObject() + { + $object = 'process-object.jpg'; + $process = 'image/resize,m_fixed,w_100,h_100'. + '|sys/saveas'. + ',o_'.$this->base64url_encode($object). + ',b_'.$this->base64url_encode($this->bucketName); + $result = $this->client->processObject($this->bucketName, $this->object, $process); + $this->assertTrue(stripos($result, '"object": "process-object.jpg",') > 0); + $this->assertTrue(stripos($result, '"status": "OK"') > 0); + + + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $this->download_file, + ); + $this->client->getObject($this->bucketName, $object, $options); + $array = getimagesize($this->download_file); + $this->assertEquals(100, $array[0]); + $this->assertEquals(100, $array[1]); + $this->assertEquals(2, $array[2]); + + //without bucket + $object = 'process-object-1.jpg'; + $process = 'image/watermark,text_SGVsbG8g5Zu-54mH5pyN5YqhIQ'. + '|sys/saveas'. + ',o_'.$this->base64url_encode($object); + $result = $this->client->processObject($this->bucketName, $this->object, $process); + $this->assertTrue(stripos($result, '"object": "process-object-1.jpg",') > 0); + $this->assertTrue(stripos($result, '"status": "OK"') > 0); + + + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $this->download_file, + ); + $this->client->getObject($this->bucketName, $object, $options); + $array = getimagesize($this->download_file); + $this->assertEquals(400, $array[0]); + $this->assertEquals(267, $array[1]); + $this->assertEquals(2, $array[2]); + } + + private function check($options, $width, $height, $size, $type) + { + $this->client->getObject($this->bucketName, $this->object, $options); + $array = getimagesize($this->download_file); + $this->assertEquals($width, $array[0]); + $this->assertEquals($height, $array[1]); + $this->assertEquals($type === 'jpg' ? 2 : 3, $array[2]);//2 <=> jpg + } + + private function base64url_encode($data) + { + return rtrim(strtr(base64_encode($data), '+/', '-_'), '='); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientListObjectsTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientListObjectsTest.php new file mode 100644 index 0000000..8ee47a2 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientListObjectsTest.php @@ -0,0 +1,184 @@ +ossClient->listObjects($this->bucket); + $objectList = $listObjectInfo->getObjectList(); + $prefixList = $listObjectInfo->getPrefixList(); + $this->assertNotNull($objectList); + $this->assertNotNull($prefixList); + $this->assertTrue(is_array($objectList)); + $this->assertTrue(is_array($prefixList)); + $this->assertEquals((2), count($objectList)); + $this->assertEquals(4, count($prefixList)); + + $this->assertEquals('file++00', $objectList[0]->getKey()); + $this->assertEquals('file++01', $objectList[1]->getKey()); + + $this->assertEquals('folder/', $prefixList[0]->getPrefix()); + $this->assertEquals('sub++/', $prefixList[1]->getPrefix()); + $this->assertEquals('test/', $prefixList[2]->getPrefix()); + $this->assertEquals('work/', $prefixList[3]->getPrefix()); + + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testListObjectsWithPrefix() + { + /** + * List the files in your bucket. + */ + $prefix = 'folder/'; + $delimiter = ''; + $next_marker = ''; + $maxkeys = 1000; + $options = array( + 'delimiter' => $delimiter, + 'prefix' => $prefix, + 'max-keys' => $maxkeys, + 'marker' => $next_marker, + ); + + try { + $listObjectInfo = $this->ossClient->listObjects($this->bucket, $options); + $objectList = $listObjectInfo->getObjectList(); + $prefixList = $listObjectInfo->getPrefixList(); + $this->assertNotNull($objectList); + $this->assertNotNull($prefixList); + $this->assertTrue(is_array($objectList)); + $this->assertTrue(is_array($prefixList)); + $this->assertEquals(12, count($objectList)); + $this->assertEquals(0, count($prefixList)); + + $this->assertEquals('folder/00', $objectList[0]->getKey()); + $this->assertEquals('folder/01', $objectList[1]->getKey()); + $this->assertEquals('folder/11', $objectList[11]->getKey()); + + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testListObjectsWithMaxKeysAndMarker() + { + $count = 0; + $nextMarker = ''; + + while (true) { + try { + $options = array( + 'delimiter' => '', + 'marker' => $nextMarker, + 'max-keys' => 2, + ); + $listObjectInfo = $this->ossClient->listObjects($this->bucket, $options); + } catch (OssException $e) { + $this->assertTrue(false); + } + $nextMarker = $listObjectInfo->getNextMarker(); + $listObject = $listObjectInfo->getObjectList(); + $count += count($listObject); + $this->assertEquals(2, count($listObject)); + if ($listObjectInfo->getIsTruncated() !== "true") { + break; + } + } + $this->assertEquals(12 + 8 + 5 + 3 + 2, $count); + } + + public function testListObjectsWithMarker() + { + $count = 0; + $nextMarker = 'h'; + + while (true) { + try { + $options = array( + 'delimiter' => '', + 'marker' => $nextMarker, + 'max-keys' => 1, + ); + $listObjectInfo = $this->ossClient->listObjects($this->bucket, $options); + } catch (OssException $e) { + $this->assertTrue(false); + } + $nextMarker = $listObjectInfo->getNextMarker(); + $listObject = $listObjectInfo->getObjectList(); + $count += count($listObject); + $this->assertEquals(1, count($listObject)); + if ($listObjectInfo->getIsTruncated() !== "true") { + break; + } + } + $this->assertEquals(8 + 5 + 3, $count); + + + $nextMarker = 'h'; + + try { + $options = array( + 'delimiter' => '', + 'marker' => $nextMarker, + 'max-keys' => 5, + ); + $listObjectInfo = $this->ossClient->listObjects($this->bucket, $options); + } catch (OssException $e) { + $this->assertTrue(false); + } + $nextMarker = $listObjectInfo->getNextMarker(); + $listObject = $listObjectInfo->getObjectList(); + $this->assertEquals('test/01', $nextMarker); + $this->assertEquals(5, count($listObject)); + $this->assertEquals("true", $listObjectInfo->getIsTruncated()); + } + + protected function setUp(): void + { + parent::setUp(); + //folder + for ($i = 0; $i < 12; $i++) { + $key = 'folder/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + //test + for ($i = 0; $i < 8; $i++) { + $key = 'test/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + //work + for ($i = 0; $i < 5; $i++) { + $key = 'work/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + //sub++ + for ($i = 0; $i < 3; $i++) { + $key = 'sub++/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + + //file++ + for ($i = 0; $i < 2; $i++) { + $key = 'file++'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + + } + + protected function tearDown(): void + { + parent::tearDown(); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientListObjectsV2Test.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientListObjectsV2Test.php new file mode 100644 index 0000000..c913283 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientListObjectsV2Test.php @@ -0,0 +1,175 @@ +ossClient->putObject($this->bucket, $key, "content"); + } + //test + for ($i = 0; $i < 8; $i++) { + $key = 'test/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + //work + for ($i = 0; $i < 5; $i++) { + $key = 'work/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + //sub++ + for ($i = 0; $i < 3; $i++) { + $key = 'sub++/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + + //file++ + for ($i = 0; $i < 2; $i++) { + $key = 'file++'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + + } + + protected function tearDown(): void + { + parent::tearDown(); + } + public function testListObjectsDefault() + { + try { + $listObjectInfo = $this->ossClient->listObjectsV2($this->bucket); + $objectList = $listObjectInfo->getObjectList(); + $prefixList = $listObjectInfo->getPrefixList(); + $this->assertNotNull($objectList); + $this->assertNotNull($prefixList); + $this->assertTrue(is_array($objectList)); + $this->assertTrue(is_array($prefixList)); + $this->assertEquals((2), count($objectList)); + $this->assertEquals(4, count($prefixList)); + + $this->assertEquals('file++00', $objectList[0]->getKey()); + $this->assertEquals('file++01', $objectList[1]->getKey()); + + $this->assertEquals('folder/', $prefixList[0]->getPrefix()); + $this->assertEquals('sub++/', $prefixList[1]->getPrefix()); + $this->assertEquals('test/', $prefixList[2]->getPrefix()); + $this->assertEquals('work/', $prefixList[3]->getPrefix()); + + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + + public function testListObjectsWithPrefix() + { + /** + * List the files in your bucket. + */ + $prefix = 'folder/'; + $delimiter = ''; + $maxkeys = 1000; + $options = array( + 'delimiter' => $delimiter, + 'prefix' => $prefix, + 'max-keys' => $maxkeys, + ); + + try { + $listObjectInfo = $this->ossClient->listObjectsV2($this->bucket, $options); + $objectList = $listObjectInfo->getObjectList(); + $prefixList = $listObjectInfo->getPrefixList(); + $this->assertNotNull($objectList); + $this->assertNotNull($prefixList); + $this->assertTrue(is_array($objectList)); + $this->assertTrue(is_array($prefixList)); + $this->assertEquals(12, count($objectList)); + $this->assertEquals(0, count($prefixList)); + + $this->assertEquals('folder/00', $objectList[0]->getKey()); + $this->assertEquals('folder/01', $objectList[1]->getKey()); + $this->assertEquals('folder/11', $objectList[11]->getKey()); + + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + + public function testListObjectsWithMaxKeysAndMarker() + { + $count = 0; + $options = array( + 'delimiter' => '', + 'max-keys' => 2, + ); + + while (true) { + try { + + $listObjectInfo = $this->ossClient->listObjectsV2($this->bucket, $options); + } catch (OssException $e) { + $this->assertTrue(false); + } + $options[OssClient::OSS_CONTINUATION_TOKEN] = $listObjectInfo->getNextContinuationToken(); + $listObject = $listObjectInfo->getObjectList(); + $count += count($listObject); + $this->assertEquals(2, count($listObject)); + if ($listObjectInfo->getIsTruncated() !== "true") { + break; + } + } + $this->assertEquals(12 + 8 + 5 + 3 + 2, $count); + } + + + public function testListObjectsWithStartAfter() + { + $count = 0; + $options = array( + 'delimiter' => '', + 'start-after' => 'folder/11', + 'max-keys' => 1, + ); + while (true) { + try { + $listObjectInfo = $this->ossClient->listObjectsV2($this->bucket, $options); + } catch (OssException $e) { + $this->assertTrue(false); + } + $options[OssClient::OSS_CONTINUATION_TOKEN] = $listObjectInfo->getNextContinuationToken(); + $listObject = $listObjectInfo->getObjectList(); + $count += count($listObject); + $this->assertEquals(1, count($listObject)); + if ($listObjectInfo->getIsTruncated() !== "true") { + break; + } + } + $this->assertEquals(8 + 5 + 3, $count); + $options2 = array( + 'delimiter' => '', + 'start-after' => 'folder/11', + 'max-keys' => 5, + ); + try { + $listObjectInfo = $this->ossClient->listObjectsV2($this->bucket, $options2); + } catch (OssException $e) { + $this->assertTrue(false); + } + $listObject = $listObjectInfo->getObjectList(); + $this->assertEquals(5, count($listObject)); + $this->assertEquals("true", $listObjectInfo->getIsTruncated()); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientMultipartUploadTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientMultipartUploadTest.php new file mode 100644 index 0000000..5a6c458 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientMultipartUploadTest.php @@ -0,0 +1,478 @@ +ossClient->uploadDir($this->bucket, "", "abc/ds/s/s/notexitst"); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals("parameter error: abc/ds/s/s/notexitst is not a directory, please check it", $e->getMessage()); + } + + } + + public function testMultipartUploadBigFile() + { + $bigFileName = __DIR__ . DIRECTORY_SEPARATOR . "/bigfile.tmp"; + $localFilename = __DIR__ . DIRECTORY_SEPARATOR . "/localfile.tmp"; + OssUtil::generateFile($bigFileName, 6 * 1024 * 1024); + $object = 'mpu/multipart-bigfile-test.tmp'; + try { + $this->ossClient->multiuploadFile($this->bucket, $object, $bigFileName, array(OssClient::OSS_PART_SIZE => 1)); + $options = array(OssClient::OSS_FILE_DOWNLOAD => $localFilename); + $this->ossClient->getObject($this->bucket, $object, $options); + $this->assertEquals(md5_file($bigFileName), md5_file($localFilename)); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertFalse(true); + } + unlink($bigFileName); + unlink($localFilename); + } + + public function testMultipartUploadBigFileWithMD5Check() + { + $bigFileName = __DIR__ . DIRECTORY_SEPARATOR . "/bigfile.tmp"; + $localFilename = __DIR__ . DIRECTORY_SEPARATOR . "/localfile.tmp"; + OssUtil::generateFile($bigFileName, 6 * 1024 * 1024); + $object = 'mpu/multipart-bigfile-test.tmp'; + $options = array( + OssClient::OSS_CHECK_MD5 => true, + OssClient::OSS_PART_SIZE => 1, + ); + try { + $this->ossClient->multiuploadFile($this->bucket, $object, $bigFileName, $options); + $options = array(OssClient::OSS_FILE_DOWNLOAD => $localFilename); + $this->ossClient->getObject($this->bucket, $object, $options); + $this->assertEquals(md5_file($bigFileName), md5_file($localFilename)); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertFalse(true); + } + unlink($bigFileName); + unlink($localFilename); + } + + public function testCopyPart() + { + $object = "mpu/multipart-test.txt"; + $copiedObject = "mpu/multipart-test.txt.copied"; + $this->ossClient->putObject($this->bucket, $copiedObject, file_get_contents(__FILE__)); + try { + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + + $copyId = 1; + $eTag = $this->ossClient->uploadPartCopy($this->bucket, $copiedObject, $this->bucket, $object, $copyId, $upload_id); + $upload_parts[] = array( + 'PartNumber' => $copyId, + 'ETag' => $eTag, + ); + + try { + $listPartsInfo = $this->ossClient->listParts($this->bucket, $object, $upload_id); + $this->assertNotNull($listPartsInfo); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->ossClient->completeMultipartUpload($this->bucket, $object, $upload_id, $upload_parts); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertTrue(false); + } + + $this->assertEquals($this->ossClient->getObject($this->bucket, $object), file_get_contents(__FILE__)); + $this->assertEquals($this->ossClient->getObject($this->bucket, $copiedObject), file_get_contents(__FILE__)); + } + + public function testCopyPartWithRange() + { + $object = "mpu/multipart-test.txt"; + $copiedObject = "mpu/multipart-test.txt.range.copied"; + $this->ossClient->putObject($this->bucket, $copiedObject, file_get_contents(__FILE__)); + try { + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + /* + * step 2. uploadPartCopy + */ + $copyId = 1; + $options = array( + 'start' => 0, + 'end' => 3, + ); + $eTag = $this->ossClient->uploadPartCopy($this->bucket, $copiedObject, $this->bucket, $object, $copyId, $upload_id, $options); + $upload_parts[] = array( + 'PartNumber' => $copyId, + 'ETag' => $eTag, + ); + + try { + $listPartsInfo = $this->ossClient->listParts($this->bucket, $object, $upload_id); + $this->assertNotNull($listPartsInfo); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->ossClient->completeMultipartUpload($this->bucket, $object, $upload_id, $upload_parts); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertTrue(false); + } + + $this->assertEquals($this->ossClient->getObject($this->bucket, $copiedObject), file_get_contents(__FILE__)); + $this->assertEquals($this->ossClient->getObject($this->bucket, $object), 'ossClient->initiateMultipartUpload($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + $part_size = 10 * 1024 * 1024; + $upload_file = __FILE__; + $upload_filesize = sprintf('%u',filesize($upload_file)); + $pieces = $this->ossClient->generateMultiuploadParts($upload_filesize, $part_size); + $response_upload_part = array(); + $upload_position = 0; + $is_check_md5 = true; + foreach ($pieces as $i => $piece) { + $from_pos = $upload_position + (integer)$piece[OssClient::OSS_SEEK_TO]; + $to_pos = (integer)$piece[OssClient::OSS_LENGTH] + $from_pos - 1; + $up_options = array( + OssClient::OSS_FILE_UPLOAD => $upload_file, + OssClient::OSS_PART_NUM => ($i + 1), + OssClient::OSS_SEEK_TO => $from_pos, + OssClient::OSS_LENGTH => $to_pos - $from_pos + 1, + OssClient::OSS_CHECK_MD5 => $is_check_md5, + ); + if ($is_check_md5) { + $content_md5 = OssUtil::getMd5SumForFile($upload_file, $from_pos, $to_pos); + $up_options[OssClient::OSS_CONTENT_MD5] = $content_md5; + } + //2. 将每一分片上传到OSS + try { + $response_upload_part[] = $this->ossClient->uploadPart($this->bucket, $object, $upload_id, $up_options); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + $upload_parts = array(); + foreach ($response_upload_part as $i => $eTag) { + $upload_parts[] = array( + 'PartNumber' => ($i + 1), + 'ETag' => $eTag, + ); + } + + try { + $listPartsInfo = $this->ossClient->listParts($this->bucket, $object, $upload_id, array('max-parts' => 100)); + $this->assertNotNull($listPartsInfo); + } catch (OssException $e) { + $this->assertTrue(false); + } + $this->assertEquals(1, count($listPartsInfo->getListPart())); + + $numOfMultipartUpload1 = 0; + $options = null; + try { + $listMultipartUploadInfo = $listMultipartUploadInfo = $this->ossClient->listMultipartUploads($this->bucket, $options); + $this->assertNotNull($listMultipartUploadInfo); + $numOfMultipartUpload1 = count($listMultipartUploadInfo->getUploads()); + } catch (OssException $e) { + $this->assertFalse(true); + } + + try { + $this->ossClient->abortMultipartUpload($this->bucket, $object, $upload_id); + } catch (OssException $e) { + $this->assertTrue(false); + } + + $numOfMultipartUpload2 = 0; + try { + $listMultipartUploadInfo = $listMultipartUploadInfo = $this->ossClient->listMultipartUploads($this->bucket, array('max-uploads' => 1000)); + $this->assertNotNull($listMultipartUploadInfo); + $numOfMultipartUpload2 = count($listMultipartUploadInfo->getUploads()); + } catch (OssException $e) { + $this->assertFalse(true); + } + $this->assertEquals($numOfMultipartUpload1 - 1, $numOfMultipartUpload2); + } + + public function testPutObjectByRawApis() + { + $object = "mpu/multipart-test.txt"; + try { + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + $part_size = 10 * 1024 * 1024; + $upload_file = __FILE__; + $upload_filesize = sprintf('%u',filesize($upload_file)); + $pieces = $this->ossClient->generateMultiuploadParts($upload_filesize, $part_size); + $response_upload_part = array(); + $upload_position = 0; + $is_check_md5 = true; + foreach ($pieces as $i => $piece) { + $from_pos = $upload_position + (integer)$piece[OssClient::OSS_SEEK_TO]; + $to_pos = (integer)$piece[OssClient::OSS_LENGTH] + $from_pos - 1; + $up_options = array( + OssClient::OSS_FILE_UPLOAD => $upload_file, + OssClient::OSS_PART_NUM => ($i + 1), + OssClient::OSS_SEEK_TO => $from_pos, + OssClient::OSS_LENGTH => $to_pos - $from_pos + 1, + OssClient::OSS_CHECK_MD5 => $is_check_md5, + ); + if ($is_check_md5) { + $content_md5 = OssUtil::getMd5SumForFile($upload_file, $from_pos, $to_pos); + $up_options[OssClient::OSS_CONTENT_MD5] = $content_md5; + } + //2. 将每一分片上传到OSS + try { + $response_upload_part[] = $this->ossClient->uploadPart($this->bucket, $object, $upload_id, $up_options); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + $upload_parts = array(); + foreach ($response_upload_part as $i => $eTag) { + $upload_parts[] = array( + 'PartNumber' => ($i + 1), + 'ETag' => $eTag, + ); + } + + try { + $listPartsInfo = $this->ossClient->listParts($this->bucket, $object, $upload_id); + $this->assertNotNull($listPartsInfo); + } catch (OssException $e) { + $this->assertTrue(false); + } + + /** + * step 3. + */ + try { + $this->ossClient->completeMultipartUpload($this->bucket, $object, $upload_id, $upload_parts); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + function testPutObjectsByDir() + { + $localDirectory = dirname(__FILE__); + $prefix = "samples/codes"; + try { + $this->ossClient->uploadDir($this->bucket, $prefix, $localDirectory); + } catch (OssException $e) { + var_dump($e->getMessage()); + $this->assertFalse(true); + + } + $this->assertTrue($this->ossClient->doesObjectExist($this->bucket, 'samples/codes/' . "OssClientMultipartUploadTest.php")); + } + + public function testPutObjectByMultipartUpload() + { + $object = "mpu/multipart-test.txt"; + $file = __FILE__; + $options = array(); + + try { + $this->ossClient->multiuploadFile($this->bucket, $object, $file, $options); + $this->assertFalse(false); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testPutObjectByMultipartUploadWithMD5Check() + { + $object = "mpu/multipart-test.txt"; + $file = __FILE__; + $options = array(OssClient::OSS_CHECK_MD5 => true); + + try { + $this->ossClient->multiuploadFile($this->bucket, $object, $file, $options); + $this->assertFalse(false); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testPutObjectByMultipartUploadWithOSS_LENGTH() + { + $object = "mpu/multipart-test-length.txt"; + $file = __FILE__; + + try { + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + $options = array(OssClient::OSS_LENGTH => 4, OssClient::OSS_UPLOAD_ID => $upload_id); + $this->ossClient->multiuploadFile($this->bucket, $object, $file, $options); + $this->assertEquals($this->ossClient->getObject($this->bucket, $object), 'assertFalse(true); + } + } + + public function testPutObjectByMultipartUploadWithOSS_CONTENT_LENGTH() + { + $object = "mpu/multipart-test-content-length.txt"; + $file = __FILE__; + + try { + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + $options = array(OssClient::OSS_CONTENT_LENGTH => 4, OssClient::OSS_UPLOAD_ID => $upload_id); + $this->ossClient->multiuploadFile($this->bucket, $object, $file, $options); + $this->assertEquals($this->ossClient->getObject($this->bucket, $object), 'assertFalse(true); + } + } + + public function testPutObjectByMultipartUploadWithException() + { + $object = "mpu/multipart-test-exception.txt"; + $file = ""; + + try { + $this->ossClient->multiuploadFile($this->bucket, $object, $file); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + if (strpos($e, "parameter invalid, file is empty") == false) + { + $this->assertTrue(true); + } + } + } + + public function testListMultipartUploads() + { + $options = null; + try { + $listMultipartUploadInfo = $this->ossClient->listMultipartUploads($this->bucket, $options); + $this->assertNotNull($listMultipartUploadInfo); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testCompleteMultipartUploadWithException() + { + $object = "mpu/multipart-test-complete.txt"; + $uploadId = "uploadId"; + try { + $listMultipartUploadInfo = $this->ossClient->completeMultipartUpload($this->bucket, $object, $uploadId, null); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('NoSuchUpload', $e->getErrorCode()); + } + } + + public function testCompleteMultipartUploadWithEmptyArray(){ + $object = 'multipart-test-complete.txt'; + try { + $uploadId = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + $listMultipartUploadInfo = $this->ossClient->completeMultipartUpload($this->bucket, $object, $uploadId, array()); + var_dump($listMultipartUploadInfo); + $this->assertNotNull($listMultipartUploadInfo); + } catch (OssException $e) { + $this->assertFalse(true); + } + + } + + + public function testCompleteMultipartUploadWithNull(){ + $object = "mpu/multipart-test.txt"; + try { + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + + $part_size = 5 * 1024 * 1024; + $upload_file = __FILE__; + $upload_filesize = sprintf('%u',filesize($upload_file)); + $pieces = $this->ossClient->generateMultiuploadParts($upload_filesize, $part_size); + $response_upload_part = array(); + $upload_position = 0; + $is_check_md5 = true; + foreach ($pieces as $i => $piece) { + $from_pos = $upload_position + (integer)$piece[OssClient::OSS_SEEK_TO]; + $to_pos = (integer)$piece[OssClient::OSS_LENGTH] + $from_pos - 1; + $up_options = array( + OssClient::OSS_FILE_UPLOAD => $upload_file, + OssClient::OSS_PART_NUM => ($i + 1), + OssClient::OSS_SEEK_TO => $from_pos, + OssClient::OSS_LENGTH => $to_pos - $from_pos + 1, + OssClient::OSS_CHECK_MD5 => $is_check_md5, + ); + if ($is_check_md5) { + $content_md5 = OssUtil::getMd5SumForFile($upload_file, $from_pos, $to_pos); + $up_options[OssClient::OSS_CONTENT_MD5] = $content_md5; + } + try { + $response_upload_part[] = $this->ossClient->uploadPart($this->bucket, $object, $upload_id, $up_options); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + $upload_parts = array(); + foreach ($response_upload_part as $i => $eTag) { + $upload_parts[] = array( + 'PartNumber' => ($i + 1), + 'ETag' => $eTag, + ); + } + + try { + $listPartsInfo = $this->ossClient->listParts($this->bucket, $object, $upload_id); + $this->assertNotNull($listPartsInfo); + } catch (OssException $e) { + $this->assertTrue(false); + } + + $options['headers'] = array( + 'x-oss-forbid-overwrite' => 'false', + 'x-oss-complete-all'=> 'yes' + ); + + try { + $result = $this->ossClient->completeMultipartUpload($this->bucket, $object, $upload_id, null,$options); + var_dump($result); + $this->assertNotNull($result); + } catch (OssException $e) { + $this->assertTrue(false); + } + + } + + + +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectRequestPaymentTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectRequestPaymentTest.php new file mode 100644 index 0000000..6625188 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectRequestPaymentTest.php @@ -0,0 +1,472 @@ +payerClient->listObjects($this->bucket); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->createObjectDir($this->bucket, 'folder/'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->putObject($this->bucket, 'object', 'content'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->putSymlink($this->bucket, 'symlink', 'default-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->getSymlink($this->bucket, 'default-symlink'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->uploadFile($this->bucket, 'file-object', __FILE__); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->appendObject($this->bucket, 'append-object', 'content', 0); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->appendObject($this->bucket, 'append-file', __FILE__, 0); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->copyObject($this->bucket, 'default-object', $this->bucket, 'copy-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->getObjectMeta($this->bucket, 'default-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + + try { + $this->payerClient->getSimplifiedObjectMeta($this->bucket, 'default-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + + try { + $this->payerClient->deleteObject($this->bucket, 'default-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->getObject($this->bucket, 'default-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->doesObjectExist($this->bucket, 'default-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + + try { + $this->payerClient->restoreObject($this->bucket, 'default-ia-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $config = new TaggingConfig(); + $config->addTag(new Tag("key1", "value1")); + $this->payerClient->putObjectTagging($this->bucket, 'default-object', $config); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->getObjectTagging($this->bucket, 'default-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->deleteObjectTagging($this->bucket, 'default-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->initiateMultipartUpload($this->bucket, 'mup-object'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + $uploadId= $this->ossClient->initiateMultipartUpload($this->bucket, 'mup-object'); + + try { + $this->payerClient->listParts($this->bucket, 'mup-object', $uploadId); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->abortMultipartUpload($this->bucket, 'mup-object', $uploadId); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->listMultipartUploads($this->bucket); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + + try { + $this->payerClient->multiuploadFile($this->bucket, 'mup-file', __FILE__); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('AccessDenied', $e->getErrorCode()); + } + } + + public function testObjectOperationsWithRequester() + { + $options = array( + OssClient::OSS_HEADERS => array( + OssClient::OSS_REQUEST_PAYER => 'requester', + )); + + try { + $this->payerClient->listObjects($this->bucket, $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->createObjectDir($this->bucket, 'folder/', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->putObject($this->bucket, 'object', 'content', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->putSymlink($this->bucket, 'symlink', 'default-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->getSymlink($this->bucket, 'default-symlink', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->uploadFile($this->bucket, 'file-object', __FILE__, $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->appendObject($this->bucket, 'append-object', 'content', 0, $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->appendObject($this->bucket, 'append-file', __FILE__, 0, $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->copyObject($this->bucket, 'default-object', $this->bucket, 'copy-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->getObjectMeta($this->bucket, 'default-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->getSimplifiedObjectMeta($this->bucket, 'default-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->getObject($this->bucket, 'default-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->putObject($this->bucket, 'test-object', 'content', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->deleteObject($this->bucket, 'test-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->doesObjectExist($this->bucket, 'default-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + $ia_options = array( + OssClient::OSS_HEADERS => array( + 'x-oss-storage-class' => 'Archive', + )); + $this->ossClient->putObject($this->bucket, 'default-Archive-object', 'content', $ia_options); + try { + $this->payerClient->restoreObject($this->bucket, 'default-Archive-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $config = new TaggingConfig(); + $config->addTag(new Tag("key1", "value1")); + $this->payerClient->putObjectTagging($this->bucket, 'default-object', $config, $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->getObjectTagging($this->bucket, 'default-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->payerClient->deleteObjectTagging($this->bucket, 'default-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testMultipartOperationsWithRequester() + { + $options = array( + OssClient::OSS_HEADERS => array( + OssClient::OSS_REQUEST_PAYER => 'requester', + )); + + $object = "mpu/multipart-test.txt"; + /** + * step 1. 初始化一个分块上传事件, 也就是初始化上传Multipart, 获取upload id + */ + try { + $upload_id = $this->payerClient->initiateMultipartUpload($this->bucket, $object, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /* + * step 2. 上传分片 + */ + $part_size = 1 * 1024 * 1024; + $upload_file = __FILE__; + $upload_filesize = sprintf('%u',filesize($upload_file)); + $pieces = $this->payerClient->generateMultiuploadParts($upload_filesize, $part_size); + $response_upload_part = array(); + $upload_position = 0; + $is_check_md5 = false; + foreach ($pieces as $i => $piece) { + $from_pos = $upload_position + (integer)$piece[OssClient::OSS_SEEK_TO]; + $to_pos = (integer)$piece[OssClient::OSS_LENGTH] + $from_pos - 1; + $up_options = array( + OssClient::OSS_FILE_UPLOAD => $upload_file, + OssClient::OSS_PART_NUM => ($i + 1), + OssClient::OSS_SEEK_TO => $from_pos, + OssClient::OSS_LENGTH => $to_pos - $from_pos + 1, + OssClient::OSS_CHECK_MD5 => $is_check_md5, + OssClient::OSS_HEADERS => array( + OssClient::OSS_REQUEST_PAYER => 'requester', + ), + ); + + //2. 将每一分片上传到OSS + try { + $response_upload_part[] = $this->ossClient->uploadPart($this->bucket, $object, $upload_id, $up_options); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + $upload_parts = array(); + foreach ($response_upload_part as $i => $eTag) { + $upload_parts[] = array( + 'PartNumber' => ($i + 1), + 'ETag' => $eTag, + ); + } + + try { + $listPartsInfo = $this->payerClient->listParts($this->bucket, $object, $upload_id, $options); + $this->assertNotNull($listPartsInfo); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $uploads = $this->payerClient->listMultipartUploads($this->bucket, $options); + $this->assertNotNull($uploads); + } catch (OssException $e) { + $this->assertTrue(false); + } + + /** + * step 3. + */ + try { + $this->payerClient->completeMultipartUpload($this->bucket, $object, $upload_id, $upload_parts, $options); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testMiscOperationsWithRequester() + { + //use multipart + $options = array( + OssClient::OSS_PART_SIZE => 1, + OssClient::OSS_HEADERS => array( + OssClient::OSS_REQUEST_PAYER => 'requester', + )); + + $bigFileName = __DIR__ . DIRECTORY_SEPARATOR . "/bigfile.tmp"; + OssUtil::generateFile($bigFileName, 256 * 1024); + $object = 'mpu/multipart-bigfile-test.tmp'; + try { + $this->ossClient->multiuploadFile($this->bucket, $object, $bigFileName, $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertFalse(true); + } + + //use uploadfile + $options = array( + OssClient::OSS_PART_SIZE => 1024*1024, + OssClient::OSS_HEADERS => array( + OssClient::OSS_REQUEST_PAYER => 'requester', + )); + + try { + $this->ossClient->multiuploadFile($this->bucket, $object, $bigFileName, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + + unlink($bigFileName); + } + + protected function setUp(): void + { + parent::setUp(); + $this->payerClient = new OssClient( + getenv('OSS_PAYER_ACCESS_KEY_ID'), + getenv('OSS_PAYER_ACCESS_KEY_SECRET'), + getenv('OSS_ENDPOINT'), false); + + $policy = '{"Version":"1","Statement":[{"Action":["oss:*"],"Effect": "Allow",'. + '"Principal":["' . getenv('OSS_PAYER_UID') . '"],'. + '"Resource": ["acs:oss:*:*:' . $this->bucket . '","acs:oss:*:*:' . $this->bucket . '/*"]}]}'; + + $this->ossClient->putBucketPolicy($this->bucket, $policy); + $this->ossClient->putBucketRequestPayment($this->bucket, 'Requester'); + $this->ossClient->putObject($this->bucket, "default-object", ""); + $this->ossClient->putSymlink($this->bucket, "default-symlink", "default-object"); + } + + protected function tearDown(): void + { + parent::tearDown(); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectTaggingTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectTaggingTest.php new file mode 100644 index 0000000..401d1b7 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectTaggingTest.php @@ -0,0 +1,160 @@ +ossClient->putObject($this->bucket, $object, $content); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $config = $this->ossClient->getObjectTagging($this->bucket, $object); + $this->assertEquals(0, count($config->getTags())); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $config = new TaggingConfig(); + $config->addTag(new Tag("key1", "value1")); + $config->addTag(new Tag("key2", "value2")); + $config->addTag(new Tag("key3", "value3")); + $this->ossClient->putObjectTagging($this->bucket, $object, $config); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $config2 = $this->ossClient->getObjectTagging($this->bucket, $object); + $this->assertEquals(3, count($config2->getTags())); + $this->assertEquals("key1", $config2->getTags()[0]->getKey()); + $this->assertEquals("value1", $config2->getTags()[0]->getValue()); + $this->assertEquals("key2", $config2->getTags()[1]->getKey()); + $this->assertEquals("value2", $config2->getTags()[1]->getValue()); + $this->assertEquals("key3", $config2->getTags()[2]->getKey()); + $this->assertEquals("value3", $config2->getTags()[2]->getValue()); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $this->ossClient->deleteObjectTagging($this->bucket, $object); + $config2 = $this->ossClient->getObjectTagging($this->bucket, $object); + $this->assertEquals(0, count($config2->getTags())); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testPutObjectTaggingFromHeader() + { + $object = "object-tagging-header.txt"; + $content = "hello world"; + + try { + $options = array( + OssClient::OSS_HEADERS => array( + 'x-oss-tagging' => 'key1=value1&key2=value2&key3=value3', + )); + + $this->ossClient->putObject($this->bucket, $object, $content, $options); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + + $config2 = $this->ossClient->getObjectTagging($this->bucket, $object); + $this->assertEquals(3, count($config2->getTags())); + $this->assertEquals("key1", $config2->getTags()[0]->getKey()); + $this->assertEquals("value1", $config2->getTags()[0]->getValue()); + $this->assertEquals("key2", $config2->getTags()[1]->getKey()); + $this->assertEquals("value2", $config2->getTags()[1]->getValue()); + $this->assertEquals("key3", $config2->getTags()[2]->getKey()); + $this->assertEquals("value3", $config2->getTags()[2]->getValue()); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testAppendObjectTaggingFromHeader() + { + $object = "append-object-tagging-header.txt"; + $content_array = array('Hello OSS', 'Hi OSS', 'OSS OK'); + + try { + $options = array( + OssClient::OSS_HEADERS => array( + 'x-oss-tagging' => 'key1=value1&key2=value2&key3=value3', + )); + + $position = $this->ossClient->appendObject($this->bucket, $object, $content_array[0], 0, $options); + $this->assertEquals($position, strlen($content_array[0])); + $position = $this->ossClient->appendObject($this->bucket, $object, $content_array[1], $position); + $this->assertEquals($position, strlen($content_array[0]) + strlen($content_array[1])); + $position = $this->ossClient->appendObject($this->bucket, $object, $content_array[2], $position, array(OssClient::OSS_LENGTH => strlen($content_array[2]))); + $this->assertEquals($position, strlen($content_array[0]) + strlen($content_array[1]) + strlen($content_array[2])); + + $config2 = $this->ossClient->getObjectTagging($this->bucket, $object); + $this->assertEquals(3, count($config2->getTags())); + $this->assertEquals("key1", $config2->getTags()[0]->getKey()); + $this->assertEquals("value1", $config2->getTags()[0]->getValue()); + $this->assertEquals("key2", $config2->getTags()[1]->getKey()); + $this->assertEquals("value2", $config2->getTags()[1]->getValue()); + $this->assertEquals("key3", $config2->getTags()[2]->getKey()); + $this->assertEquals("value3", $config2->getTags()[2]->getValue()); + + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testMultipartUploadTaggingFromHeader() + { + $file = __DIR__ . DIRECTORY_SEPARATOR . "/bigfile.tmp"; + OssUtil::generateFile($file, 110 * 1024); + + $object = "mpu-object-tagging-header.txt"; + $options = array( + OssClient::OSS_CHECK_MD5 => true, + OssClient::OSS_PART_SIZE => 1, + OssClient::OSS_HEADERS => array( + 'x-oss-tagging' => 'key1=value1&key2=value2&key3=value3', + ), + ); + try { + $this->ossClient->multiuploadFile($this->bucket, $object, $file, $options); + + $config2 = $this->ossClient->getObjectTagging($this->bucket, $object); + $this->assertEquals(3, count($config2->getTags())); + $this->assertEquals("key1", $config2->getTags()[0]->getKey()); + $this->assertEquals("value1", $config2->getTags()[0]->getValue()); + $this->assertEquals("key2", $config2->getTags()[1]->getKey()); + $this->assertEquals("value2", $config2->getTags()[1]->getValue()); + $this->assertEquals("key3", $config2->getTags()[2]->getKey()); + $this->assertEquals("value3", $config2->getTags()[2]->getValue()); + } catch (OssException $e) { + $this->assertFalse(true); + } + + unlink($file); + } + +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectTest.php new file mode 100644 index 0000000..bb61018 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectTest.php @@ -0,0 +1,781 @@ +ossClient->getObjectMeta($this->bucket, $object); + $this->assertEquals('200', $res['info']['http_code']); + $this->assertEquals('text/plain', $res['content-type']); + $this->assertEquals('Accept-Encoding', $res['vary']); + $this->assertTrue(isset($res['content-length'])); + $this->assertFalse(isset($res['content-encoding'])); + } catch (OssException $e) { + $this->assertTrue(false); + } + + $options = array(OssClient::OSS_HEADERS => array(OssClient::OSS_ACCEPT_ENCODING => 'deflate, gzip')); + + try { + $res = $this->ossClient->getObjectMeta($this->bucket, $object, $options); + $this->assertEquals('200', $res['info']['http_code']); + $this->assertEquals('text/plain', $res['content-type']); + $this->assertEquals('Accept-Encoding', $res['vary']); + $this->assertFalse(isset($res['content-length'])); + $this->assertEquals('gzip', $res['content-encoding']); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testGetObjectWithAcceptEncoding() + { + $object = "oss-php-sdk-test/upload-test-object-name.txt"; + $options = array(OssClient::OSS_HEADERS => array(OssClient::OSS_ACCEPT_ENCODING => 'deflate, gzip')); + + try { + $res = $this->ossClient->getObject($this->bucket, $object, $options); + $this->assertEquals(file_get_contents(__FILE__), $res); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testGetObjectWithHeader() + { + $object = "oss-php-sdk-test/upload-test-object-name.txt"; + try { + $res = $this->ossClient->getObject($this->bucket, $object, array(OssClient::OSS_LAST_MODIFIED => "xx")); + $this->assertEquals(file_get_contents(__FILE__), $res); + } catch (OssException $e) { + $this->assertEquals('"/ilegal.txt" object name is invalid', $e->getMessage()); + } + } + + public function testGetObjectWithIleggalEtag() + { + $object = "oss-php-sdk-test/upload-test-object-name.txt"; + try { + $res = $this->ossClient->getObject($this->bucket, $object, array(OssClient::OSS_ETAG => "xx")); + $this->assertEquals(file_get_contents(__FILE__), $res); + } catch (OssException $e) { + $this->assertEquals('"/ilegal.txt" object name is invalid', $e->getMessage()); + } + } + + public function testObject() + { + /** + * Upload the local variable to bucket + */ + $object = "oss-php-sdk-test/upload-test-object-name.txt"; + $content = file_get_contents(__FILE__); + $options = array( + OssClient::OSS_LENGTH => strlen($content), + OssClient::OSS_HEADERS => array( + 'Expires' => 'Fri, 28 Feb 2020 05:38:42 GMT', + 'Cache-Control' => 'no-cache', + 'Content-Disposition' => 'attachment;filename=oss_download.log', + 'Content-Language' => 'zh-CN', + 'x-oss-server-side-encryption' => 'AES256', + 'x-oss-meta-self-define-title' => 'user define meta info', + ), + ); + + try { + $this->ossClient->putObject($this->bucket, $object, $content, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + + try { + $this->ossClient->putObject($this->bucket, $object, $content, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + + try { + $result = $this->ossClient->deleteObjects($this->bucket, "stringtype", $options); + $this->assertEquals('stringtype', $result[0]); + } catch (OssException $e) { + $this->assertEquals('objects must be array', $e->getMessage()); + } + + try { + $result = $this->ossClient->deleteObjects($this->bucket, "stringtype", $options); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('objects must be array', $e->getMessage()); + } + + try { + $this->ossClient->uploadFile($this->bucket, $object, "notexist.txt", $options); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('notexist.txt file does not exist', $e->getMessage()); + } + + /** + * GetObject to the local variable and check for match + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * GetObject first five bytes + */ + try { + $options = array(OssClient::OSS_RANGE => '0-4'); + $content = $this->ossClient->getObject($this->bucket, $object, $options); + $this->assertEquals($content, 'assertFalse(true); + } + + + /** + * Upload the local file to object + */ + try { + $this->ossClient->uploadFile($this->bucket, $object, __FILE__); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Download the file to the local variable and check for match. + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Download the file to the local file + */ + $localfile = "upload-test-object-name.txt"; + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $localfile, + ); + + try { + $this->ossClient->getObject($this->bucket, $object, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + $this->assertTrue(file_get_contents($localfile) === file_get_contents(__FILE__)); + if (file_exists($localfile)) { + unlink($localfile); + } + + /** + * Download the file to the local file. no such key + */ + $localfile = "upload-test-object-name-no-such-key.txt"; + $options = array( + OssClient::OSS_FILE_DOWNLOAD => $localfile, + ); + + try { + $this->ossClient->getObject($this->bucket, $object . "no-such-key", $options); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + $this->assertFalse(file_exists($localfile)); + if (strpos($e, "The specified key does not exist") == false) + { + $this->assertTrue(true); + } + } + + /** + * Download the file to the content. no such key + */ + try { + $result = $this->ossClient->getObject($this->bucket, $object . "no-such-key"); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + if (strpos($e, "The specified key does not exist") == false) + { + $this->assertTrue(true); + } + } + + /** + * Copy object + */ + $to_bucket = $this->bucket; + $to_object = $object . '.copy'; + $options = array(); + try { + $result = $this->ossClient->copyObject($this->bucket, $object, $to_bucket, $to_object, $options); + $this->assertFalse(empty($result)); + $this->assertEquals(strlen("2016-11-21T03:46:58.000Z"), strlen($result[0])); + $this->assertEquals(strlen("\"5B3C1A2E053D763E1B002CC607C5A0FE\""), strlen($result[1])); + } catch (OssException $e) { + $this->assertFalse(true); + var_dump($e->getMessage()); + + } + + /** + * Check if the replication is the same + */ + try { + $content = $this->ossClient->getObject($this->bucket, $to_object); + $this->assertEquals($content, file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * List the files in your bucket. + */ + $prefix = ''; + $delimiter = '/'; + $next_marker = ''; + $maxkeys = 1000; + $options = array( + 'delimiter' => $delimiter, + 'prefix' => $prefix, + 'max-keys' => $maxkeys, + 'marker' => $next_marker, + ); + + try { + $listObjectInfo = $this->ossClient->listObjects($this->bucket, $options); + $objectList = $listObjectInfo->getObjectList(); + $prefixList = $listObjectInfo->getPrefixList(); + $this->assertNotNull($objectList); + $this->assertNotNull($prefixList); + $this->assertTrue(is_array($objectList)); + $this->assertTrue(is_array($prefixList)); + + } catch (OssException $e) { + $this->assertTrue(false); + } + + /** + * Set the meta information for the file + */ + $from_bucket = $this->bucket; + $from_object = "oss-php-sdk-test/upload-test-object-name.txt"; + $to_bucket = $from_bucket; + $to_object = $from_object; + $copy_options = array( + OssClient::OSS_HEADERS => array( + 'Expires' => '2012-10-01 08:00:00', + 'Content-Disposition' => 'attachment; filename="xxxxxx"', + ), + ); + try { + $this->ossClient->copyObject($from_bucket, $from_object, $to_bucket, $to_object, $copy_options); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Get the meta information for the file + */ + $object = "oss-php-sdk-test/upload-test-object-name.txt"; + try { + $objectMeta = $this->ossClient->getObjectMeta($this->bucket, $object); + $this->assertEquals('attachment; filename="xxxxxx"', $objectMeta[strtolower('Content-Disposition')]); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Delete single file + */ + $object = "oss-php-sdk-test/upload-test-object-name.txt"; + + try { + $this->assertTrue($this->ossClient->doesObjectExist($this->bucket, $object)); + $this->ossClient->deleteObject($this->bucket, $object); + $this->assertFalse($this->ossClient->doesObjectExist($this->bucket, $object)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Delete multiple files + */ + $object1 = "oss-php-sdk-test/upload-test-object-name.txt"; + $object2 = "oss-php-sdk-test/upload-test-object-name.txt.copy"; + $list = array($object1, $object2); + try { + $this->assertTrue($this->ossClient->doesObjectExist($this->bucket, $object2)); + + $result = $this->ossClient->deleteObjects($this->bucket, $list); + $this->assertEquals($list[0], $result[0]); + $this->assertEquals($list[1], $result[1]); + + $result = $this->ossClient->deleteObjects($this->bucket, $list, array('quiet' => 'true')); + $this->assertEquals(array(), $result); + $this->assertFalse($this->ossClient->doesObjectExist($this->bucket, $object2)); + + $this->ossClient->putObject($this->bucket, $object, $content); + $this->assertTrue($this->ossClient->doesObjectExist($this->bucket, $object)); + $result = $this->ossClient->deleteObjects($this->bucket, $list, array('quiet' => true)); + $this->assertEquals(array(), $result); + $this->assertFalse($this->ossClient->doesObjectExist($this->bucket, $object)); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testAppendObject() + { + $object = "oss-php-sdk-test/append-test-object-name.txt"; + $content_array = array('Hello OSS', 'Hi OSS', 'OSS OK'); + + /** + * Append the upload string + */ + try { + $position = $this->ossClient->appendObject($this->bucket, $object, $content_array[0], 0); + $this->assertEquals($position, strlen($content_array[0])); + $position = $this->ossClient->appendObject($this->bucket, $object, $content_array[1], $position); + $this->assertEquals($position, strlen($content_array[0]) + strlen($content_array[1])); + $position = $this->ossClient->appendObject($this->bucket, $object, $content_array[2], $position, array(OssClient::OSS_LENGTH => strlen($content_array[2]))); + $this->assertEquals($position, strlen($content_array[0]) + strlen($content_array[1]) + strlen($content_array[2])); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Check if the content is the same + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, implode($content_array)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + + /** + * Delete test object + */ + try { + $this->ossClient->deleteObject($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Append the upload of invalid local files + */ + try { + $position = $this->ossClient->appendFile($this->bucket, $object, "invalid-file-path", 0); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + + /** + * Append the upload of local files + */ + try { + $position = $this->ossClient->appendFile($this->bucket, $object, __FILE__, 0); + $this->assertEquals($position, sprintf('%u',filesize(__FILE__))); + $position = $this->ossClient->appendFile($this->bucket, $object, __FILE__, $position); + $this->assertEquals($position, sprintf('%u',filesize(__FILE__)) * 2); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Check if the replication is the same + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, file_get_contents(__FILE__) . file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Delete test object + */ + try { + $this->ossClient->deleteObject($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + + + $options = array( + OssClient::OSS_HEADERS => array( + 'Expires' => '2012-10-01 08:00:00', + 'Content-Disposition' => 'attachment; filename="xxxxxx"', + ), + ); + + /** + * Append upload with option + */ + try { + $position = $this->ossClient->appendObject($this->bucket, $object, "Hello OSS, ", 0, $options); + $position = $this->ossClient->appendObject($this->bucket, $object, "Hi OSS.", $position); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Get the meta information for the file + */ + try { + $objectMeta = $this->ossClient->getObjectMeta($this->bucket, $object); + $this->assertEquals('attachment; filename="xxxxxx"', $objectMeta[strtolower('Content-Disposition')]); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Delete test object + */ + try { + $this->ossClient->deleteObject($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testPutIllelObject() + { + $object = "/ilegal.txt"; + try { + $this->ossClient->putObject($this->bucket, $object, "hi", null); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('"/ilegal.txt" object name is invalid', $e->getMessage()); + } + } + + public function testCheckMD5() + { + $object = "oss-php-sdk-test/upload-test-object-name.txt"; + $content = file_get_contents(__FILE__); + $options = array(OssClient::OSS_CHECK_MD5 => true); + + /** + * Upload data to start MD5 + */ + try { + $this->ossClient->putObject($this->bucket, $object, $content, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Check if the replication is the same + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Upload file to start MD5 + */ + try { + $this->ossClient->uploadFile($this->bucket, $object, __FILE__, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Check if the replication is the same + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Delete test object + */ + try { + $this->ossClient->deleteObject($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + + $object = "oss-php-sdk-test/append-test-object-name.txt"; + $content_array = array('Hello OSS', 'Hi OSS', 'OSS OK'); + $options = array(OssClient::OSS_CHECK_MD5 => true); + + /** + * Append the upload string + */ + try { + $position = $this->ossClient->appendObject($this->bucket, $object, $content_array[0], 0, $options); + $this->assertEquals($position, strlen($content_array[0])); + $position = $this->ossClient->appendObject($this->bucket, $object, $content_array[1], $position, $options); + $this->assertEquals($position, strlen($content_array[0]) + strlen($content_array[1])); + $position = $this->ossClient->appendObject($this->bucket, $object, $content_array[2], $position, $options); + $this->assertEquals($position, strlen($content_array[0]) + strlen($content_array[1]) + strlen($content_array[1])); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Check if the content is the same + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, implode($content_array)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Delete test object + */ + try { + $this->ossClient->deleteObject($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Append upload of local files + */ + try { + $position = $this->ossClient->appendFile($this->bucket, $object, __FILE__, 0, $options); + $this->assertEquals($position, sprintf('%u',filesize(__FILE__))); + $position = $this->ossClient->appendFile($this->bucket, $object, __FILE__, $position, $options); + $this->assertEquals($position, sprintf('%u',filesize(__FILE__)) * 2); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Check if the replication is the same + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, file_get_contents(__FILE__) . file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * delete test object + */ + try { + $this->ossClient->deleteObject($this->bucket, $object); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testWithInvalidBucketName() + { + try { + $this->ossClient->createBucket("abcefc/", "test-key"); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('"abcefc/"bucket name is invalid', $e->getMessage()); + } + } + + public function testGetSimplifiedObjectMeta() + { + $object = "oss-php-sdk-test/upload-test-object-name.txt"; + + try { + $objectMeta = $this->ossClient->getSimplifiedObjectMeta($this->bucket, $object); + $this->assertEquals(false, array_key_exists(strtolower('Content-Disposition'), $objectMeta)); + $this->assertEquals(strlen(file_get_contents(__FILE__)), $objectMeta[strtolower('Content-Length')]); + $this->assertEquals(true, array_key_exists(strtolower('ETag'), $objectMeta)); + $this->assertEquals(true, array_key_exists(strtolower('Last-Modified'), $objectMeta)); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testUploadStream() + { + $object = "oss-php-sdk-test/put-from-stream.txt"; + $options = array(OssClient::OSS_CHECK_MD5 => true); + $handle = fopen(__FILE__, 'rb'); + /** + * Upload data to start MD5 + */ + try { + $this->ossClient->uploadStream($this->bucket, $object, $handle, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Check if the replication is the same + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + $object = "oss-php-sdk-test/put-from-stream-without-md5.txt"; + $handle = fopen(__FILE__, 'rb'); + try { + $this->ossClient->uploadStream($this->bucket, $object, $handle); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Check if the replication is the same + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + } + + public function testObjectKeyWithQuestionMark() + { + /** + * Upload the local variable to bucket + */ + $object = "oss-php-sdk-test/??/upload-test-object-name???123??123??.txt"; + $content = file_get_contents(__FILE__); + $options = array( + OssClient::OSS_LENGTH => strlen($content), + OssClient::OSS_HEADERS => array( + 'Expires' => 'Fri, 28 Feb 2020 05:38:42 GMT', + 'Cache-Control' => 'no-cache', + 'Content-Disposition' => 'attachment;filename=oss_download.log', + 'Content-Language' => 'zh-CN', + 'x-oss-server-side-encryption' => 'AES256', + 'x-oss-meta-self-define-title' => 'user define meta info', + ), + ); + + try { + $this->ossClient->putObject($this->bucket, $object, $content, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + + try { + $this->ossClient->putObject($this->bucket, $object, $content, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * GetObject to the local variable and check for match + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * GetObject first five bytes + */ + try { + $options = array(OssClient::OSS_RANGE => '0-4'); + $content = $this->ossClient->getObject($this->bucket, $object, $options); + $this->assertEquals($content, 'assertFalse(true); + } + + + /** + * Upload the local file to object + */ + try { + $this->ossClient->uploadFile($this->bucket, $object, __FILE__); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Download the file to the local variable and check for match. + */ + try { + $content = $this->ossClient->getObject($this->bucket, $object); + $this->assertEquals($content, file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + /** + * Copy object + */ + $to_bucket = $this->bucket; + $to_object = $object . '.copy'; + $options = array(); + try { + $result = $this->ossClient->copyObject($this->bucket, $object, $to_bucket, $to_object, $options); + $this->assertFalse(empty($result)); + $this->assertEquals(strlen("2016-11-21T03:46:58.000Z"), strlen($result[0])); + $this->assertEquals(strlen("\"5B3C1A2E053D763E1B002CC607C5A0FE\""), strlen($result[1])); + } catch (OssException $e) { + $this->assertFalse(true); + var_dump($e->getMessage()); + + } + + /** + * Check if the replication is the same + */ + try { + $content = $this->ossClient->getObject($this->bucket, $to_object); + $this->assertEquals($content, file_get_contents(__FILE__)); + } catch (OssException $e) { + $this->assertFalse(true); + } + + + try { + $this->assertTrue($this->ossClient->doesObjectExist($this->bucket, $object)); + $this->ossClient->deleteObject($this->bucket, $object); + $this->assertFalse($this->ossClient->doesObjectExist($this->bucket, $object)); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + protected function setUp(): void + { + parent::setUp(); + $this->ossClient->putObject($this->bucket, 'oss-php-sdk-test/upload-test-object-name.txt', file_get_contents(__FILE__)); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectVersioningTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectVersioningTest.php new file mode 100644 index 0000000..66f204a --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientObjectVersioningTest.php @@ -0,0 +1,610 @@ +ossClient->putObject($this->bucket, $object, $content1, array(OssClient::OSS_HEADERS => array('x-oss-object-acl' => 'public-read', 'x-oss-tagging' => 'key1=value1'))); + $ret2 = $this->ossClient->putObject($this->bucket, $object, $content2, array(OssClient::OSS_HEADERS => array('x-oss-object-acl' => 'private', 'x-oss-tagging' => 'key2=value2'))); + + $this->assertTrue(isset($ret1[OssClient::OSS_HEADER_VERSION_ID])); + $this->assertTrue(isset($ret2[OssClient::OSS_HEADER_VERSION_ID])); + + $versionId1 = $ret1[OssClient::OSS_HEADER_VERSION_ID]; + $versionId2 = $ret2[OssClient::OSS_HEADER_VERSION_ID]; + + //get object + $res = $this->ossClient->getObject($this->bucket, $object); + $res1 = $this->ossClient->getObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $res2 = $this->ossClient->getObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId2)); + $this->assertEquals($content1, $res1); + $this->assertEquals($content2, $res2); + $this->assertEquals($content2, $res); + + //meta + $headers = $this->ossClient->getObjectMeta($this->bucket, $object); + $headers1 = $this->ossClient->getObjectMeta($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $headers2 = $this->ossClient->getObjectMeta($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId2)); + + $this->assertTrue(isset($headers[OssClient::OSS_HEADER_VERSION_ID])); + $this->assertTrue(isset($headers1[OssClient::OSS_HEADER_VERSION_ID])); + $this->assertTrue(isset($headers2[OssClient::OSS_HEADER_VERSION_ID])); + $this->assertEquals($versionId1, $headers1[OssClient::OSS_HEADER_VERSION_ID]); + $this->assertEquals($versionId2, $headers2[OssClient::OSS_HEADER_VERSION_ID]); + $this->assertEquals($versionId2, $headers[OssClient::OSS_HEADER_VERSION_ID]); + + + $sheaders = $this->ossClient->getSimplifiedObjectMeta($this->bucket, $object); + $sheaders1 = $this->ossClient->getSimplifiedObjectMeta($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $sheaders2 = $this->ossClient->getSimplifiedObjectMeta($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId2)); + + $this->assertTrue(isset($sheaders[OssClient::OSS_HEADER_VERSION_ID])); + $this->assertTrue(isset($sheaders1[OssClient::OSS_HEADER_VERSION_ID])); + $this->assertTrue(isset($sheaders2[OssClient::OSS_HEADER_VERSION_ID])); + $this->assertEquals($versionId1, $sheaders1[OssClient::OSS_HEADER_VERSION_ID]); + $this->assertEquals($versionId2, $sheaders2[OssClient::OSS_HEADER_VERSION_ID]); + $this->assertEquals($versionId2, $sheaders[OssClient::OSS_HEADER_VERSION_ID]); + + //acl + $acl = $this->ossClient->getObjectAcl($this->bucket, $object); + $acl1 = $this->ossClient->getObjectAcl($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $acl2 = $this->ossClient->getObjectAcl($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId2)); + + $this->assertEquals('public-read', $acl1); + $this->assertEquals('private', $acl2); + $this->assertEquals('private', $acl); + + $this->ossClient->putObjectAcl($this->bucket, $object, 'public-read-write', array(OssClient::OSS_VERSION_ID => $versionId1)); + $acl = $this->ossClient->getObjectAcl($this->bucket, $object); + $acl1 = $this->ossClient->getObjectAcl($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $this->assertEquals('public-read-write', $acl1); + $this->assertEquals('private', $acl); + + //tagging + $tag = $this->ossClient->getObjectTagging($this->bucket, $object); + $tag1 = $this->ossClient->getObjectTagging($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $tag2 = $this->ossClient->getObjectTagging($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId2)); + $this->assertEquals(1, count($tag1->getTags())); + $this->assertEquals("key1", $tag1->getTags()[0]->getKey()); + $this->assertEquals("value1", $tag1->getTags()[0]->getValue()); + $this->assertEquals(1, count($tag2->getTags())); + $this->assertEquals("key2", $tag2->getTags()[0]->getKey()); + $this->assertEquals("value2", $tag2->getTags()[0]->getValue()); + $this->assertEquals(1, count($tag->getTags())); + $this->assertEquals("key2", $tag->getTags()[0]->getKey()); + $this->assertEquals("value2", $tag->getTags()[0]->getValue()); + + $config = new TaggingConfig(); + $config->addTag(new Tag("key11", "value11")); + $this->ossClient->putObjectTagging($this->bucket, $object, $config, array(OssClient::OSS_VERSION_ID => $versionId1)); + $tag = $this->ossClient->getObjectTagging($this->bucket, $object); + $tag1 = $this->ossClient->getObjectTagging($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $this->assertEquals(1, count($tag1->getTags())); + $this->assertEquals("key11", $tag1->getTags()[0]->getKey()); + $this->assertEquals("value11", $tag1->getTags()[0]->getValue()); + $this->assertEquals(1, count($tag->getTags())); + $this->assertEquals("key2", $tag->getTags()[0]->getKey()); + $this->assertEquals("value2", $tag->getTags()[0]->getValue()); + + $this->ossClient->deleteObjectTagging($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $tag = $this->ossClient->getObjectTagging($this->bucket, $object); + $tag1 = $this->ossClient->getObjectTagging($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $this->assertEquals(0, count($tag1->getTags())); + $this->assertEquals(1, count($tag->getTags())); + $this->assertEquals("key2", $tag->getTags()[0]->getKey()); + $this->assertEquals("value2", $tag->getTags()[0]->getValue()); + + //delete + $dret = $this->ossClient->deleteObject($this->bucket, $object); + $this->assertTrue(isset($dret['x-oss-delete-marker'])); + $this->assertTrue(isset($dret['x-oss-version-id'])); + $this->assertEquals("true", $dret['x-oss-delete-marker']); + $this->assertFalse($this->ossClient->doesObjectExist($this->bucket, $object)); + $this->assertTrue($this->ossClient->doesObjectExist($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1))); + $this->assertTrue($this->ossClient->doesObjectExist($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId2))); + + $dret1 = $this->ossClient->deleteObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $this->assertFalse(isset($dret1['x-oss-delete-marker'])); + $this->assertTrue(isset($dret1['x-oss-version-id'])); + $this->assertEquals($versionId1, $dret1['x-oss-version-id']); + $this->assertFalse($this->ossClient->doesObjectExist($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1))); + + + $dret_ = $this->ossClient->deleteObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $dret['x-oss-version-id'])); + $this->assertTrue(isset($dret_['x-oss-delete-marker'])); + $this->assertTrue(isset($dret_['x-oss-version-id'])); + $this->assertEquals($dret['x-oss-version-id'], $dret_['x-oss-version-id']); + $this->assertTrue($this->ossClient->doesObjectExist($this->bucket, $object)); + + } + + public function testObjectSymlink() + { + $object1 = 'object-target-1'; + $object2 = 'object-target-2'; + $symlink = 'object-symlink'; + $content1 = 'hello'; + $content2 = 'hello world'; + + + $ret1 = $this->ossClient->putObject($this->bucket, $object1, $content1); + $sym1 = $this->ossClient->putSymlink($this->bucket, $symlink, $object1); + + $ret2 = $this->ossClient->putObject($this->bucket, $object2, $content2); + $sym2 = $this->ossClient->putSymlink($this->bucket, $symlink, $object2); + + $this->assertTrue(isset($ret1[OssClient::OSS_HEADER_VERSION_ID])); + $this->assertTrue(isset($ret2[OssClient::OSS_HEADER_VERSION_ID])); + + $this->assertTrue(isset($sym1[OssClient::OSS_HEADER_VERSION_ID])); + $this->assertTrue(isset($sym2[OssClient::OSS_HEADER_VERSION_ID])); + + $versionId1 = $ret1[OssClient::OSS_HEADER_VERSION_ID]; + $versionId2 = $ret2[OssClient::OSS_HEADER_VERSION_ID]; + + $sym_versionId1 = $sym1[OssClient::OSS_HEADER_VERSION_ID]; + $sym_versionId2 = $sym2[OssClient::OSS_HEADER_VERSION_ID]; + + + $sym_ret = $this->ossClient->getSymlink($this->bucket, $symlink); + $sym_ret1 = $this->ossClient->getSymlink($this->bucket, $symlink, array(OssClient::OSS_VERSION_ID => $sym_versionId1)); + $sym_ret2 = $this->ossClient->getSymlink($this->bucket, $symlink, array(OssClient::OSS_VERSION_ID => $sym_versionId2)); + + $this->assertTrue(isset($sym_ret['x-oss-version-id'])); + $this->assertTrue(isset($sym_ret1['x-oss-version-id'])); + $this->assertTrue(isset($sym_ret2['x-oss-version-id'])); + + $this->assertEquals($sym_versionId1, $sym_ret1['x-oss-version-id']); + $this->assertEquals($sym_versionId2, $sym_ret2['x-oss-version-id']); + $this->assertEquals($sym_versionId2, $sym_ret['x-oss-version-id']); + + + $res = $this->ossClient->getObject($this->bucket, $symlink); + $res1 = $this->ossClient->getObject($this->bucket, $symlink, array(OssClient::OSS_VERSION_ID => $sym_versionId1)); + $res2 = $this->ossClient->getObject($this->bucket, $symlink, array(OssClient::OSS_VERSION_ID => $sym_versionId2)); + $this->assertEquals($content1, $res1); + $this->assertEquals($content2, $res2); + $this->assertEquals($content2, $res); + } + + public function testObjectCopy() + { + $object = 'copy-= +object'; + $content1 = 'hello'; + $content2 = 'hello world'; + $to_bucket = $this->bucket; + $to_object = $object . '.copy'; + $to_object1 = $object . '.copy1'; + $to_object2 = $object . '.copy2'; + + $ret1 = $this->ossClient->putObject($this->bucket, $object, $content1); + $ret2 = $this->ossClient->putObject($this->bucket, $object, $content2); + + $versionId1 = $ret1[OssClient::OSS_HEADER_VERSION_ID]; + $versionId2 = $ret2[OssClient::OSS_HEADER_VERSION_ID]; + + $cret = $this->ossClient->copyObject($this->bucket, $object, $to_bucket, $to_object); + $cret1 = $this->ossClient->copyObject($this->bucket, $object, $to_bucket, $to_object1, array(OssClient::OSS_VERSION_ID => $versionId1)); + $cret2 = $this->ossClient->copyObject($this->bucket, $object, $to_bucket, $to_object2, array(OssClient::OSS_VERSION_ID => $versionId2)); + $this->assertFalse(empty($cret1)); + $this->assertEquals(strlen("2016-11-21T03:46:58.000Z"), strlen($cret1[0])); + $this->assertEquals(trim($ret1['etag'], '"'), trim($cret1[1], '"')); + $this->assertTrue(isset($cret1['x-oss-version-id'])); + $this->assertEquals($versionId1, $cret1['x-oss-copy-source-version-id']); + + $this->assertFalse(empty($cret2)); + $this->assertEquals(strlen("2016-11-21T03:46:58.000Z"), strlen($cret2[0])); + $this->assertEquals(trim($ret2['etag'], '"'), trim($cret2[1], '"')); + $this->assertTrue(isset($cret2['x-oss-version-id'])); + $this->assertEquals($versionId2, $cret2['x-oss-copy-source-version-id']); + + $this->assertFalse(empty($cret)); + $this->assertEquals(strlen("2016-11-21T03:46:58.000Z"), strlen($cret[0])); + $this->assertEquals(trim($ret2['etag'], '"'), trim($cret[1], '"')); + $this->assertTrue(isset($cret2['x-oss-version-id'])); + $this->assertEquals($versionId2, $cret['x-oss-copy-source-version-id']); + + $res = $this->ossClient->getObject($this->bucket, $to_object); + $res1 = $this->ossClient->getObject($this->bucket, $to_object1); + $res2 = $this->ossClient->getObject($this->bucket, $to_object2); + $this->assertEquals($content1, $res1); + $this->assertEquals($content2, $res2); + $this->assertEquals($content2, $res); + } + + public function testObjectRestore() + { + $object = 'retore-object'; + $content1 = 'hello'; + $content2 = 'hello world'; + $ret1 = $this->ossClient->putObject($this->bucket, $object, $content1, array(OssClient::OSS_HEADERS => array('x-oss-storage-class' => 'Archive'))); + $ret2 = $this->ossClient->putObject($this->bucket, $object, $content2); + + $versionId1 = $ret1[OssClient::OSS_HEADER_VERSION_ID]; + $versionId2 = $ret2[OssClient::OSS_HEADER_VERSION_ID]; + + try{ + $this->ossClient->getObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + $this->assertTrue(false); + }catch (OssException $e){ + $this->assertEquals('403', $e->getHTTPStatus()); + $this->assertEquals('InvalidObjectState', $e->getErrorCode()); + } + + try{ + $this->ossClient->restoreObject($this->bucket, $object); + $this->assertTrue(false); + }catch(OssException $e){ + $this->assertEquals('400', $e->getHTTPStatus()); + $this->assertEquals('OperationNotSupported', $e->getErrorCode()); + } + + $result = $this->ossClient->restoreObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + common::waitMetaSync(); + $this->assertEquals('202', $result['info']['http_code']); + + try{ + $this->ossClient->restoreObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $versionId1)); + }catch(OssException $e){ + $this->assertEquals('409', $e->getHTTPStatus()); + $this->assertEquals('RestoreAlreadyInProgress', $e->getErrorCode()); + } + } + + public function testObjectMultiPart() + { + $object_src = 'multi-= +object.src'; + $content1 = 'hello'; + $content2 = 'hello world'; + $ret1 = $this->ossClient->putObject($this->bucket, $object_src, $content1); + $ret2 = $this->ossClient->putObject($this->bucket, $object_src, $content2); + + $this->assertTrue(isset($ret1[OssClient::OSS_HEADER_VERSION_ID])); + $this->assertTrue(isset($ret2[OssClient::OSS_HEADER_VERSION_ID])); + + $versionId1 = $ret1[OssClient::OSS_HEADER_VERSION_ID]; + $versionId2 = $ret2[OssClient::OSS_HEADER_VERSION_ID]; + + //object + $object = "multi-object"; + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object); + $copyId = 1; + $eTag = $this->ossClient->uploadPartCopy($this->bucket, $object_src, $this->bucket, $object, $copyId, $upload_id); + $upload_parts[] = array( + 'PartNumber' => $copyId, + 'ETag' => $eTag, + ); + $ret = $this->ossClient->completeMultipartUpload($this->bucket, $object, $upload_id, $upload_parts); + + //object-1 + $object1 = "multi-object-1"; + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object1); + $copyId = 1; + $eTag = $this->ossClient->uploadPartCopy($this->bucket, $object_src, $this->bucket, $object1, $copyId, $upload_id, array(OssClient::OSS_VERSION_ID => $versionId1)); + $upload_parts1[] = array( + 'PartNumber' => $copyId, + 'ETag' => $eTag, + ); + $ret1 = $this->ossClient->completeMultipartUpload($this->bucket, $object1, $upload_id, $upload_parts1); + + //object-2 + $object2 = "multi-object-2"; + $upload_id = $this->ossClient->initiateMultipartUpload($this->bucket, $object2); + $copyId = 1; + $eTag = $this->ossClient->uploadPartCopy($this->bucket, $object_src, $this->bucket, $object2, $copyId, $upload_id, array(OssClient::OSS_VERSION_ID => $versionId2)); + $upload_parts2[] = array( + 'PartNumber' => $copyId, + 'ETag' => $eTag, + ); + $ret2 = $this->ossClient->completeMultipartUpload($this->bucket, $object2, $upload_id, $upload_parts2); + + $res = $this->ossClient->getObject($this->bucket, $object); + $res1 = $this->ossClient->getObject($this->bucket, $object1); + $res2 = $this->ossClient->getObject($this->bucket, $object2); + + $this->assertEquals($content1, $res1); + $this->assertEquals($content2, $res2); + $this->assertEquals($content2, $res); + } + + public function testObjectMisc() + { + //use multipart + $options = array( + OssClient::OSS_PART_SIZE => 1, + ); + + $object = 'misc-object'; + + $smallFile1 = __DIR__ . DIRECTORY_SEPARATOR . "/smallfile1.tmp"; + $smallFile2 = __DIR__ . DIRECTORY_SEPARATOR . "/smallfile2.tmp"; + $bigFile1 = __DIR__ . DIRECTORY_SEPARATOR . "/bigfile1.tmp"; + $bigFile2 = __DIR__ . DIRECTORY_SEPARATOR . "/bigfile2.tmp"; + + OssUtil::generateFile($smallFile1, 5); + OssUtil::generateFile($smallFile2, 10); + OssUtil::generateFile($bigFile1, 128 * 1024); + OssUtil::generateFile($bigFile2, 256 * 1024); + + $sret1 = $this->ossClient->multiuploadFile($this->bucket, $object, $smallFile1, $options); + $sret2 = $this->ossClient->multiuploadFile($this->bucket, $object, $smallFile2, $options); + $bret1 = $this->ossClient->multiuploadFile($this->bucket, $object, $bigFile1, $options); + $bret2 = $this->ossClient->multiuploadFile($this->bucket, $object, $bigFile2, $options); + + + $res = $this->ossClient->getObject($this->bucket, $object); + $sres1 = $this->ossClient->getObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $sret1['x-oss-version-id'])); + $sres2 = $this->ossClient->getObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $sret2['x-oss-version-id'])); + $bres1 = $this->ossClient->getObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $bret1['x-oss-version-id'])); + $bres2 = $this->ossClient->getObject($this->bucket, $object, array(OssClient::OSS_VERSION_ID => $bret2['x-oss-version-id'])); + + + $this->assertEquals(file_get_contents($smallFile1), $sres1); + $this->assertEquals(file_get_contents($smallFile2), $sres2); + $this->assertEquals(file_get_contents($bigFile1), $bres1); + $this->assertEquals(file_get_contents($bigFile2), $bres2); + $this->assertEquals(file_get_contents($bigFile2), $res); + + + unlink($smallFile1); + unlink($smallFile2); + unlink($bigFile1); + unlink($bigFile2); + } + + public function testListObjects() + { + //folder + for ($i = 0; $i < 12; $i++) { + $key = 'folder/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + $this->ossClient->putObject($this->bucket, $key, "content"); + $this->ossClient->deleteObject($this->bucket, $key); + } + + //test + for ($i = 0; $i < 8; $i++) { + $key = 'test/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + $this->ossClient->deleteObject($this->bucket, $key); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + //work + for ($i = 0; $i < 5; $i++) { + $key = 'work/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + //sub++ + for ($i = 0; $i < 3; $i++) { + $key = 'sub++/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + $this->ossClient->putObject($this->bucket, $key, "content"); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + //file++ + for ($i = 0; $i < 2; $i++) { + $key = 'file++'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + $this->ossClient->deleteObject($this->bucket, $key); + } + + //list default + $result = $this->ossClient->listObjectVersions($this->bucket); + $versionList = $result->getObjectVersionList(); + $deleteMarkerList = $result->getDeleteMarkerList(); + $prefixList = $result->getPrefixList(); + + $this->assertNotNull($versionList); + $this->assertNotNull($deleteMarkerList); + $this->assertNotNull($prefixList); + $this->assertTrue(is_array($versionList)); + $this->assertTrue(is_array($deleteMarkerList)); + $this->assertTrue(is_array($prefixList)); + $this->assertEquals(2, count($versionList)); + $this->assertEquals(2, count($deleteMarkerList)); + $this->assertEquals(4, count($prefixList)); + + $this->assertEquals('file++00', $versionList[0]->getKey()); + $this->assertEquals('false', $versionList[0]->getIsLatest()); + $this->assertEquals('file++01', $versionList[1]->getKey()); + $this->assertEquals('false', $versionList[1]->getIsLatest()); + + $this->assertEquals('file++00', $deleteMarkerList[0]->getKey()); + $this->assertEquals('true', $deleteMarkerList[0]->getIsLatest()); + $this->assertEquals('file++01', $deleteMarkerList[1]->getKey()); + $this->assertEquals('true', $deleteMarkerList[1]->getIsLatest()); + + + $this->assertEquals('folder/', $prefixList[0]->getPrefix()); + $this->assertEquals('sub++/', $prefixList[1]->getPrefix()); + $this->assertEquals('test/', $prefixList[2]->getPrefix()); + $this->assertEquals('work/', $prefixList[3]->getPrefix()); + + //list by prefix + $prefix = 'folder/'; + $delimiter = ''; + $next_marker = ''; + $maxkeys = 1000; + $options = array( + 'delimiter' => $delimiter, + 'prefix' => $prefix, + 'max-keys' => $maxkeys, + 'key-marker' => $next_marker, + ); + + $result = $this->ossClient->listObjectVersions($this->bucket, $options); + $versionList = $result->getObjectVersionList(); + $deleteMarkerList = $result->getDeleteMarkerList(); + $prefixList = $result->getPrefixList(); + + $this->assertEquals(24, count($versionList)); + $this->assertEquals(12, count($deleteMarkerList)); + $this->assertEquals(0, count($prefixList)); + + $this->assertEquals('folder/00', $versionList[0]->getKey()); + $this->assertEquals('folder/00', $versionList[1]->getKey()); + $this->assertEquals('folder/00', $deleteMarkerList[0]->getKey()); + $this->assertEquals('folder/01', $deleteMarkerList[1]->getKey()); + + + //max-key & key-marker & version-id-marker + $count = 0; + $markerCount = 0; + $nextMarker = ''; + $nextVersionIdMarker = ''; + + while (true) { + $options = array( + 'delimiter' => '', + 'key-marker' => $nextMarker, + 'max-keys' => 1, + 'version-id-marker' => $nextVersionIdMarker, + ); + $result = $this->ossClient->listObjectVersions($this->bucket, $options); + + $nextMarker = $result->getNextKeyMarker(); + $nextVersionIdMarker = $result->getNextVersionIdMarker(); + $count += count($result->getObjectVersionList()); + $markerCount += count($result->getDeleteMarkerList()); + $this->assertEquals(1, count($result->getObjectVersionList()) + count($result->getDeleteMarkerList())); + if ($result->getIsTruncated() !== "true") { + break; + } + } + $this->assertEquals(12*3 + 8*3 + 5 + 3*3 + 2*2, $count + $markerCount); + } + + public function testDeleteObjects() + { + //deletes + for ($i = 0; $i < 5; $i++) { + $key = 'deletes/'. sprintf("%02d",$i); + $this->ossClient->putObject($this->bucket, $key, "content"); + $this->ossClient->putObject($this->bucket, $key, "content"); + } + + $options = array( + 'delimiter' => '', + 'prefix' => 'deletes/', + 'max-keys' => 1000, + ); + $result = $this->ossClient->listObjects($this->bucket, $options); + $this->assertEquals(5, count($result->getObjectList())); + + //delete without version-id + $objects = array(); + for ($i = 0; $i < 5; $i++) { + $key = 'deletes/'. sprintf("%02d",$i); + $objects[] = new DeleteObjectInfo($key); + } + $dresult = $this->ossClient->deleteObjectVersions($this->bucket, $objects); + $this->assertEquals(5, count($dresult)); + $this->assertEquals('deletes/00', $dresult[0]->getKey()); + $this->assertEquals('true', $dresult[0]->getDeleteMarker()); + $this->assertEquals('', $dresult[0]->getVersionId()); + $this->assertFalse(empty($dresult[0]->getDeleteMarkerVersionId())); + + $result = $this->ossClient->listObjects($this->bucket, $options); + $this->assertEquals(0, count($result->getObjectList())); + + //delete by version-id + $vresult = $this->ossClient->listObjectVersions($this->bucket, $options); + $versions = $vresult->getObjectVersionList(); + $deleteMarkerList = $vresult->getDeleteMarkerList(); + $this->assertEquals(10, count($versions)); + $this->assertEquals(5, count($deleteMarkerList)); + + $objects = array(); + foreach ($versions as $obj) { + $objects[] = new DeleteObjectInfo($obj->getKey(), $obj->getVersionId()); + } + $dresult = $this->ossClient->deleteObjectVersions($this->bucket, $objects); + $this->assertEquals(10, count($dresult)); + $this->assertEquals('deletes/00', $dresult[0]->getKey()); + $this->assertEquals('', $dresult[0]->getDeleteMarker()); + $this->assertFalse(empty($dresult[0]->getVersionId())); + $this->assertTrue(empty($dresult[0]->getDeleteMarkerVersionId())); + $this->assertEquals('deletes/00', $dresult[1]->getKey()); + $this->assertEquals('', $dresult[1]->getDeleteMarker()); + $this->assertFalse(empty($dresult[1]->getVersionId())); + $this->assertTrue(empty($dresult[1]->getDeleteMarkerVersionId())); + + + $vresult = $this->ossClient->listObjectVersions($this->bucket, $options); + $versions = $vresult->getObjectVersionList(); + $deleteMarkerList = $vresult->getDeleteMarkerList(); + $this->assertEquals(0, count($versions)); + $this->assertEquals(5, count($deleteMarkerList)); + + $objects = array(); + foreach ($deleteMarkerList as $obj) { + $objects[] = new DeleteObjectInfo($obj->getKey(), $obj->getVersionId()); + } + $dresult = $this->ossClient->deleteObjectVersions($this->bucket, $objects); + $this->assertEquals(5, count($dresult)); + $this->assertEquals('deletes/00', $dresult[0]->getKey()); + $this->assertEquals('true', $dresult[0]->getDeleteMarker()); + $this->assertFalse(empty($dresult[1]->getVersionId())); + $this->assertFalse(empty($dresult[1]->getDeleteMarkerVersionId())); + + $vresult = $this->ossClient->listObjectVersions($this->bucket, $options); + $versions = $vresult->getObjectVersionList(); + $deleteMarkerList = $vresult->getDeleteMarkerList(); + $this->assertEquals(0, count($versions)); + $this->assertEquals(0, count($deleteMarkerList)); + } + + protected function setUp(): void + { + parent::setUp(); + + $this->ossClient->putBucketVersioning($this->bucket, "Enabled"); + + } + + protected function tearDown(): void + { + if (!$this->ossClient->doesBucketExist($this->bucket)) { + return; + } + + $this->ossClient->putBucketVersioning($this->bucket, "Suspended"); + + $result = $this->ossClient->listObjectVersions( + $this->bucket, array('max-keys' => 1000, 'delimiter' => '')); + + $versions = $result->getObjectVersionList(); + $deleteMarkers = $result->getDeleteMarkerList(); + + foreach ($versions as $obj) { + $options = array( + OssClient::OSS_VERSION_ID => $obj->getVersionId(), + ); + $this->ossClient->deleteObject($this->bucket, $obj->getKey(), $options); + } + + foreach ($deleteMarkers as $del) { + $options = array( + OssClient::OSS_VERSION_ID => $del->getVersionId(), + ); + $this->ossClient->deleteObject($this->bucket, $del->getKey(), $options); + } + + parent::tearDown(); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientRestoreObjectTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientRestoreObjectTest.php new file mode 100644 index 0000000..9aa0b9b --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientRestoreObjectTest.php @@ -0,0 +1,174 @@ +ossClient->putObject($this->iaBucket, $object,'testcontent'); + try{ + $this->ossClient->restoreObject($this->iaBucket, $object); + $this->assertTrue(false); + }catch (OssException $e){ + $this->assertEquals('400', $e->getHTTPStatus()); + $this->assertEquals('OperationNotSupported', $e->getErrorCode()); + } + } + + public function testNullObjectRestoreObject() + { + $object = 'null-object'; + + try{ + $this->ossClient->restoreObject($this->bucket, $object); + $this->assertTrue(false); + }catch (OssException $e){ + $this->assertEquals('404', $e->getHTTPStatus()); + } + } + + public function testArchiveRestoreObject() + { + $object = 'storage-object'; + + $this->ossClient->putObject($this->archiveBucket, $object,'testcontent'); + try{ + $this->ossClient->getObject($this->archiveBucket, $object); + $this->assertTrue(false); + }catch (OssException $e){ + $this->assertEquals('403', $e->getHTTPStatus()); + $this->assertEquals('InvalidObjectState', $e->getErrorCode()); + } + $result = $this->ossClient->restoreObject($this->archiveBucket, $object); + common::waitMetaSync(); + $this->assertEquals('202', $result['info']['http_code']); + + try{ + $this->ossClient->restoreObject($this->archiveBucket, $object); + }catch(OssException $e){ + $this->assertEquals('409', $e->getHTTPStatus()); + $this->assertEquals('RestoreAlreadyInProgress', $e->getErrorCode()); + } + } + + public function testColdArchiveRestoreObject() + { + $client = new OssClient( + getenv('OSS_ACCESS_KEY_ID'), + getenv('OSS_ACCESS_KEY_SECRET'), + 'oss-ap-southeast-1.aliyuncs.com', false); + + $bucket = $this->bucket . 'cold-archive'; + $object = 'storage-object'; + + //create bucket + $options = array( + OssClient::OSS_STORAGE => OssClient::OSS_STORAGE_COLDARCHIVE + ); + $client->createBucket($bucket, OssClient::OSS_ACL_TYPE_PRIVATE, $options); + + //test with days + $client->putObject($bucket, $object,'testcontent'); + + try{ + $client->getObject($bucket, $object); + $this->assertTrue(false); + }catch (OssException $e){ + $this->assertEquals('403', $e->getHTTPStatus()); + $this->assertEquals('InvalidObjectState', $e->getErrorCode()); + } + + $config = new RestoreConfig(5); + $resoptions = array( + OssClient::OSS_RESTORE_CONFIG => $config + ); + try{ + $client->restoreObject($bucket, $object, $resoptions); + }catch(OssException $e){ + $this->assertTrue(false); + } + + try{ + $client->restoreObject($bucket, $object, $resoptions); + }catch(OssException $e){ + $this->assertEquals('409', $e->getHTTPStatus()); + $this->assertEquals('RestoreAlreadyInProgress', $e->getErrorCode()); + } + + //test with days & tier + $client->putObject($bucket, $object,'testcontent'); + + try{ + $client->getObject($bucket, $object); + $this->assertTrue(false); + }catch (OssException $e){ + $this->assertEquals('403', $e->getHTTPStatus()); + $this->assertEquals('InvalidObjectState', $e->getErrorCode()); + } + + $config = new RestoreConfig(5, "Expedited"); + $resoptions = array( + OssClient::OSS_RESTORE_CONFIG => $config + ); + try{ + $client->restoreObject($bucket, $object, $resoptions); + }catch(OssException $e){ + $this->assertTrue(false); + } + + try{ + $client->restoreObject($bucket, $object, $resoptions); + }catch(OssException $e){ + $this->assertEquals('409', $e->getHTTPStatus()); + $this->assertEquals('RestoreAlreadyInProgress', $e->getErrorCode()); + } + + $client->deleteObject($bucket, $object); + $client->deleteBucket($bucket); + } + + + protected function setUp(): void + { + parent::setUp(); + + $this->iaBucket = 'ia-' . $this->bucket; + $this->archiveBucket = 'archive-' . $this->bucket; + $options = array( + OssClient::OSS_STORAGE => OssClient::OSS_STORAGE_IA + ); + + $this->ossClient->createBucket($this->iaBucket, OssClient::OSS_ACL_TYPE_PRIVATE, $options); + + $options = array( + OssClient::OSS_STORAGE => OssClient::OSS_STORAGE_ARCHIVE + ); + + $this->ossClient->createBucket($this->archiveBucket, OssClient::OSS_ACL_TYPE_PRIVATE, $options); + } + + protected function tearDown(): void + { + parent::tearDown(); + + $object = 'storage-object'; + + $this->ossClient->deleteObject($this->iaBucket, $object); + $this->ossClient->deleteObject($this->archiveBucket, $object); + $this->ossClient->deleteBucket($this->iaBucket); + $this->ossClient->deleteBucket($this->archiveBucket); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientSignatureTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientSignatureTest.php new file mode 100644 index 0000000..00cf89a --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientSignatureTest.php @@ -0,0 +1,167 @@ +ossClient->putObject($this->bucket, $object, file_get_contents(__FILE__)); + $timeout = 3600; + try { + $signedUrl = $this->ossClient->signUrl($this->bucket, $object, $timeout); + } catch (OssException $e) { + $this->assertFalse(true); + } + + $request = new RequestCore($signedUrl); + $request->set_method('GET'); + $request->add_header('Content-Type', ''); + $request->send_request(); + $res = new ResponseCore($request->get_response_header(), $request->get_response_body(), $request->get_response_code()); + $this->assertEquals(file_get_contents(__FILE__), $res->body); + } + + public function testGetSignedUrlForPuttingObject() + { + $object = "a.file"; + $timeout = 3600; + try { + $signedUrl = $this->ossClient->signUrl($this->bucket, $object, $timeout, "PUT"); + $content = file_get_contents(__FILE__); + $request = new RequestCore($signedUrl); + $request->set_method('PUT'); + $request->add_header('Content-Type', ''); + $request->add_header('Content-Length', strlen($content)); + $request->set_body($content); + $request->send_request(); + $res = new ResponseCore($request->get_response_header(), + $request->get_response_body(), $request->get_response_code()); + $this->assertTrue($res->isOK()); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testGetSignedUrlForPuttingObjectFromFile() + { + $file = __FILE__; + $object = "a.file"; + $timeout = 3600; + $options = array('Content-Type' => 'txt'); + try { + $signedUrl = $this->ossClient->signUrl($this->bucket, $object, $timeout, "PUT", $options); + $request = new RequestCore($signedUrl); + $request->set_method('PUT'); + $request->add_header('Content-Type', 'txt'); + $request->set_read_file($file); + $request->set_read_stream_size(sprintf('%u',filesize($file))); + $request->send_request(); + $res = new ResponseCore($request->get_response_header(), + $request->get_response_body(), $request->get_response_code()); + $this->assertTrue($res->isOK()); + } catch (OssException $e) { + $this->assertFalse(true); + } + + } + + public function testSignedUrlWithException() + { + $file = __FILE__; + $object = "a.file"; + $timeout = 3600; + $options = array('Content-Type' => 'txt'); + try { + $signedUrl = $this->ossClient->signUrl($this->bucket, $object, $timeout, "POST", $options); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + if (strpos($e, "method is invalid") == false) + { + $this->assertTrue(false); + } + } + } + + function testGetgenPreSignedUrlForGettingObject() + { + $object = "a.file"; + $this->ossClient->putObject($this->bucket, $object, file_get_contents(__FILE__)); + $expires = time() + 3600; + try { + $signedUrl = $this->ossClient->generatePresignedUrl($this->bucket, $object, $expires); + } catch (OssException $e) { + $this->assertFalse(true); + } + + $request = new RequestCore($signedUrl); + $request->set_method('GET'); + $request->add_header('Content-Type', ''); + $request->send_request(); + $res = new ResponseCore($request->get_response_header(), $request->get_response_body(), $request->get_response_code()); + $this->assertEquals(file_get_contents(__FILE__), $res->body); + } + + function testGetgenPreSignedUrlVsSignedUrl() + { + $object = "object-vs.file"; + $signedUrl1 = '245'; + $signedUrl2 = '123'; + $expiration = 0; + + do { + usleep(500000); + $begin = time(); + $expiration = time() + 3600; + $signedUrl1 = $this->ossClient->generatePresignedUrl($this->bucket, $object, $expiration); + $signedUrl2 = $this->ossClient->signUrl($this->bucket, $object, 3600); + $end = time(); + } while ($begin != $end); + $this->assertEquals($signedUrl1, $signedUrl2); + $this->assertTrue(strpos($signedUrl1, 'Expires='.$expiration) !== false); + } + + protected function tearDown(): void + { + $this->ossClient->deleteObject($this->bucket, "a.file"); + parent::tearDown(); + } + + protected function setUp(): void + { + parent::setUp(); + /** + * 上传本地变量到bucket + */ + $object = "a.file"; + $content = file_get_contents(__FILE__); + $options = array( + OssClient::OSS_LENGTH => strlen($content), + OssClient::OSS_HEADERS => array( + 'Expires' => 'Fri, 28 Feb 2020 05:38:42 GMT', + 'Cache-Control' => 'no-cache', + 'Content-Disposition' => 'attachment;filename=oss_download.log', + 'Content-Encoding' => 'utf-8', + 'Content-Language' => 'zh-CN', + 'x-oss-server-side-encryption' => 'AES256', + 'x-oss-meta-self-define-title' => 'user define meta info', + ), + ); + + try { + $this->ossClient->putObject($this->bucket, $object, $content, $options); + } catch (OssException $e) { + $this->assertFalse(true); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientTest.php new file mode 100644 index 0000000..b7c676f --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssClientTest.php @@ -0,0 +1,346 @@ +assertFalse($ossClient->isUseSSL()); + $ossClient->setUseSSL(true); + $this->assertTrue($ossClient->isUseSSL()); + $this->assertTrue(true); + $this->assertEquals(3, $ossClient->getMaxRetries()); + $ossClient->setMaxTries(4); + $this->assertEquals(4, $ossClient->getMaxRetries()); + $ossClient->setTimeout(10); + $ossClient->setConnectTimeout(20); + } catch (OssException $e) { + assertFalse(true); + } + } + + public function testConstrunct2() + { + try { + $ossClient = new OssClient('id', "", 'http://oss-cn-hangzhou.aliyuncs.com'); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals("access key secret is empty", $e->getMessage()); + } + } + + public function testConstrunct3() + { + try { + $ossClient = new OssClient("", 'key', 'http://oss-cn-hangzhou.aliyuncs.com'); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals("access key id is empty", $e->getMessage()); + } + } + + public function testConstrunct4() + { + try { + $ossClient = new OssClient('id', 'key', ""); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('endpoint is empty', $e->getMessage()); + } + } + + public function testConstrunct5() + { + try { + $ossClient = new OssClient('id', 'key', "123.123.123.1"); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testConstrunct6() + { + try { + $ossClient = new OssClient('id', 'key', "https://123.123.123.1"); + $this->assertTrue($ossClient->isUseSSL()); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $ossClient = new OssClient('id', 'key', "https://123.123.123.1:3128"); + $this->assertTrue($ossClient->isUseSSL()); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testConstrunct7() + { + try { + $ossClient = new OssClient('id', 'key', "http://123.123.123.1"); + $this->assertFalse($ossClient->isUseSSL()); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $ossClient = new OssClient('id', 'key', "http://123.123.123.1:3128"); + $this->assertFalse($ossClient->isUseSSL()); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testConstrunct8() + { + try { + $ossClient = new OssClient('id', 'key', "http://123.123.123.1", true); + $ossClient->listBuckets(); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertFalse(false); + } + } + + public function testConstrunct9() + { + try { + $accessKeyId = ' ' . getenv('OSS_ACCESS_KEY_ID') . ' '; + $accessKeySecret = ' ' . getenv('OSS_ACCESS_KEY_SECRET') . ' '; + $endpoint = ' ' . getenv('OSS_ENDPOINT') . '/ '; + $ossClient = new OssClient($accessKeyId, $accessKeySecret, $endpoint, false); + $ossClient->listBuckets(); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testConstrunct10() + { + try { + $ossClient = new OssClient('id', 'key', "http://ABC-COM.TEST.123.cn", true); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + public function testConstrunct11() + { + try { + $ossClient = new OssClient('id', 'key', "oss-test.com\\aliyuncs.com"); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('endpoint is invalid:'."oss-test.com\\aliyuncs.com", $e->getMessage()); + } + } + + public function testConstrunct12() + { + try { + $ossClient = new OssClient('id', 'key', "192.168.1.0:abc123"); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('endpoint is invalid:'."192.168.1.0:abc123", $e->getMessage()); + } + } + + public function testSupportPutEmptyObject() + { + try { + $accessKeyId = ' ' . getenv('OSS_ACCESS_KEY_ID') . ' '; + $accessKeySecret = ' ' . getenv('OSS_ACCESS_KEY_SECRET') . ' '; + $endpoint = ' ' . getenv('OSS_ENDPOINT') . '/ '; + $bucket = $this->bucket; + $ossClient = new OssClient($accessKeyId, $accessKeySecret , $endpoint, false); + $ossClient->putObject($bucket,'test_emptybody',''); + } catch (OssException $e) { + $this->assertFalse(true); + } + + //use invalid sts-token, should fail. + try { + $accessKeyId = ' ' . getenv('OSS_ACCESS_KEY_ID') . ' '; + $accessKeySecret = ' ' . getenv('OSS_ACCESS_KEY_SECRET') . ' '; + $endpoint = ' ' . getenv('OSS_ENDPOINT') . '/ '; + $bucket = $this->bucket; + $ossClient = new OssClient($accessKeyId, $accessKeySecret , $endpoint, false, "invalid-sts-token"); + $ossClient->putObject($bucket,'test_emptybody',''); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('InvalidAccessKeyId', $e->getErrorCode()); + } + } + + public function testCreateObjectDir() + { + $accessKeyId = ' ' . getenv('OSS_ACCESS_KEY_ID') . ' '; + $accessKeySecret = ' ' . getenv('OSS_ACCESS_KEY_SECRET') . ' '; + $endpoint = ' ' . getenv('OSS_ENDPOINT') . '/ '; + $bucket = $this->bucket; + $ossClient = new OssClient($accessKeyId, $accessKeySecret, $endpoint, false); + + try { + $object='test-dir'; + $ossClient->createObjectDir($bucket,$object); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertFalse(true); + } + + try { + $object='0'; + $ossClient->createObjectDir($bucket,$object); + $ossClient->putObject($bucket,$object, ''); + $this->assertTrue(true); + } catch (OssException $e) { + var_dump($e); + $this->assertFalse(true); + } + } + + public function testGetBucketCors() + { + try { + $accessKeyId = ' ' . getenv('OSS_ACCESS_KEY_ID') . ' '; + $accessKeySecret = ' ' . getenv('OSS_ACCESS_KEY_SECRET') . ' '; + $endpoint = ' ' . getenv('OSS_ENDPOINT') . '/ '; + $bucket = getenv('OSS_BUCKET'); + $ossClient = new OssClient($accessKeyId, $accessKeySecret, $endpoint, false); + $ossClient->getBucketCors($bucket); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testGetBucketCname() + { + try { + $accessKeyId = ' ' . getenv('OSS_ACCESS_KEY_ID') . ' '; + $accessKeySecret = ' ' . getenv('OSS_ACCESS_KEY_SECRET') . ' '; + $endpoint = ' ' . getenv('OSS_ENDPOINT') . '/ '; + $bucket = $this->bucket; + $ossClient = new OssClient($accessKeyId, $accessKeySecret, $endpoint, false); + $ossClient->getBucketCname($bucket); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testProxySupport() + { + $accessKeyId = ' ' . getenv('OSS_ACCESS_KEY_ID') . ' '; + $accessKeySecret = ' ' . getenv('OSS_ACCESS_KEY_SECRET') . ' '; + $endpoint = ' ' . getenv('OSS_ENDPOINT') . '/ '; + $bucket = getenv('OSS_BUCKET') . '-proxy'; + $requestProxy = getenv('OSS_PROXY'); + $key = 'test-proxy-srv-object'; + $content = 'test-content'; + $proxys = parse_url($requestProxy); + + $ossClient = new OssClient($accessKeyId, $accessKeySecret, $endpoint, false, null, $requestProxy); + + $result = $ossClient->createBucket($bucket); + $this->checkProxy($result, $proxys); + + $result = $ossClient->putObject($bucket, $key, $content); + $this->checkProxy($result, $proxys); + $result = $ossClient->getObject($bucket, $key); + $this->assertEquals($content, $result); + + // list object + $objectListInfo = $ossClient->listObjects($bucket); + $objectList = $objectListInfo->getObjectList(); + $this->assertNotNull($objectList); + $this->assertTrue(is_array($objectList)); + $objects = array(); + foreach ($objectList as $value) { + $objects[] = $value->getKey(); + } + $this->assertEquals(1, count($objects)); + $this->assertTrue(in_array($key, $objects)); + + $result = $ossClient->deleteObject($bucket, $key); + $this->checkProxy($result,$proxys); + + $result = $ossClient->deleteBucket($bucket); + $this->checkProxy($result, $proxys); + } + + private function checkProxy($result, $proxys) + { + $this->assertEquals($result['info']['primary_ip'], $proxys['host']); + $this->assertEquals($result['info']['primary_port'], $proxys['port']); + $this->assertTrue(array_key_exists('via', $result)); + } + + public function testIpEndpoint() + { + try { + $accessKeyId = 'sk' . getenv('OSS_ACCESS_KEY_ID') . ' '; + $accessKeySecret = ' ' . getenv('OSS_ACCESS_KEY_SECRET') . ' '; + $endpoint = '192.168.1.1'; + $bucket = getenv('OSS_BUCKET'); + $ossClient = new OssClient($accessKeyId, $accessKeySecret, $endpoint, false); + $object = "a.file"; + $timeout = 3600; + $options = array('Content-Type' => 'txt'); + $signedUrl = $ossClient->signUrl($bucket, $object, $timeout, "PUT", $options); + $this->assertTrue(strpos($signedUrl, '192.168.1.1/skyranch-php-test/a.file?') != false); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testCnameEndpoint() + { + try { + $accessKeyId = 'sk' . getenv('OSS_ACCESS_KEY_ID') . ' '; + $accessKeySecret = ' ' . getenv('OSS_ACCESS_KEY_SECRET') . ' '; + $endpoint = 'cname.endpoint'; + $bucket = getenv('OSS_BUCKET'); + $ossClient = new OssClient($accessKeyId, $accessKeySecret, $endpoint, true); + $object = "a.file"; + $timeout = 3600; + $options = array('Content-Type' => 'txt'); + $signedUrl = $ossClient->signUrl($bucket, $object, $timeout, "PUT", $options); + $this->assertTrue(strpos($signedUrl, 'cname.endpoint/a.file?') != false); + } catch (OssException $e) { + $this->assertFalse(true); + } + } + + public function testStsToken() + { + try { + $accessKeyId = 'sk' . getenv('OSS_ACCESS_KEY_ID') . ' '; + $accessKeySecret = ' ' . getenv('OSS_ACCESS_KEY_SECRET') . ' '; + $endpoint = ' ' . getenv('OSS_ENDPOINT') . '/ '; + $bucket = getenv('OSS_BUCKET'); + $ossClient = new OssClient($accessKeyId, $accessKeySecret, $endpoint, false, "test-token"); + $object = "a.file"; + $timeout = 3600; + $options = array('Content-Type' => 'txt'); + $signedUrl = $ossClient->signUrl($bucket, $object, $timeout, "PUT", $options); + $this->assertTrue(strpos($signedUrl, 'security-token=test-token') != false); + } catch (OssException $e) { + $this->assertFalse(true); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssExceptionTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssExceptionTest.php new file mode 100644 index 0000000..91de9bb --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssExceptionTest.php @@ -0,0 +1,19 @@ +assertTrue(false); + } catch (OssException $e) { + $this->assertNotNull($e); + $this->assertEquals($e->getMessage(), "ERR"); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssTrafficLimitTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssTrafficLimitTest.php new file mode 100644 index 0000000..5aeb0ea --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssTrafficLimitTest.php @@ -0,0 +1,96 @@ + array( + OssClient::OSS_TRAFFIC_LIMIT => 819200, + )); + + try { + $result = $this->ossClient->putObject($this->bucket, 'default-object', 'content', $options); + $this->assertTrue(true); + $this->assertTrue(isset($result["x-oss-qos-delay-time"])); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $result = $this->ossClient->appendObject($this->bucket, 'append-object', 'content', 0, $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $result = $this->ossClient->copyObject($this->bucket, 'default-object', $this->bucket, 'copy-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + + try { + $result = $this->ossClient->getObject($this->bucket, 'default-object', $options); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + function testTrafficLimitInQuery() + { + $options = array( + OssClient::OSS_TRAFFIC_LIMIT => 819200, + ); + + $object = "get.file"; + $content = 'hello world'; + $this->ossClient->putObject($this->bucket, $object, $content); + $timeout = 3600; + try { + $signedUrl = $this->ossClient->signUrl($this->bucket, $object, $timeout, "GET", $options); + $this->assertTrue(stripos($signedUrl, 'x-oss-traffic-limit=819200') > 0); + } catch (OssException $e) { + $this->assertFalse(true); + } + + $request = new RequestCore($signedUrl); + $request->set_method('GET'); + $request->add_header('Content-Type', ''); + $request->send_request(); + $res = new ResponseCore($request->get_response_header(), $request->get_response_body(), $request->get_response_code()); + $this->assertEquals($content, $res->body); + + + $object = "put.file"; + $timeout = 3600; + try { + $signedUrl = $this->ossClient->signUrl($this->bucket, $object, $timeout, "PUT", $options); + $this->assertTrue(stripos($signedUrl, 'x-oss-traffic-limit=819200') > 0); + + $request = new RequestCore($signedUrl); + $request->set_method('PUT'); + $request->add_header('Content-Type', ''); + $request->add_header('Content-Length', strlen($content)); + $request->set_body($content); + $request->send_request(); + $res = new ResponseCore($request->get_response_header(), + $request->get_response_body(), $request->get_response_code()); + $this->assertTrue($res->isOK()); + } catch (OssException $e) { + $this->assertFalse(true); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssUtilTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssUtilTest.php new file mode 100644 index 0000000..598a7cc --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/OssUtilTest.php @@ -0,0 +1,300 @@ +assertEquals(OssUtil::chkChinese("hello,world"), 0); + $str = '你好,这里是卖咖啡!'; + $strGBK = OssUtil::encodePath($str); + $this->assertEquals(OssUtil::chkChinese($str), 1); + $this->assertEquals(OssUtil::chkChinese($strGBK), 1); + } + + public function testIsGB2312() + { + $str = '你好,这里是卖咖啡!'; + $this->assertFalse(OssUtil::isGb2312($str)); + } + + public function testCheckChar() + { + $str = '你好,这里是卖咖啡!'; + $this->assertFalse(OssUtil::checkChar($str)); + $this->assertTrue(OssUtil::checkChar(iconv("UTF-8", "GB2312//IGNORE", $str))); + } + + public function testIsIpFormat() + { + $this->assertTrue(OssUtil::isIPFormat("10.101.160.147")); + $this->assertTrue(OssUtil::isIPFormat("12.12.12.34")); + $this->assertTrue(OssUtil::isIPFormat("12.12.12.12")); + $this->assertTrue(OssUtil::isIPFormat("255.255.255.255")); + $this->assertTrue(OssUtil::isIPFormat("0.1.1.1")); + $this->assertFalse(OssUtil::isIPFormat("0.1.1.x")); + $this->assertFalse(OssUtil::isIPFormat("0.1.1.256")); + $this->assertFalse(OssUtil::isIPFormat("256.1.1.1")); + $this->assertFalse(OssUtil::isIPFormat("0.1.1.0.1")); + $this->assertTrue(OssUtil::isIPFormat("10.10.10.10:123")); + } + + public function testToQueryString() + { + $option = array("a" => "b"); + $this->assertEquals('a=b', OssUtil::toQueryString($option)); + } + + public function testSReplace() + { + $str = "<>&'\""; + $this->assertEquals("&lt;&gt;&'"", OssUtil::sReplace($str)); + } + + public function testCheckChinese() + { + $str = '你好,这里是卖咖啡!'; + $this->assertEquals(OssUtil::chkChinese($str), 1); + if (OssUtil::isWin()) { + $strGB = OssUtil::encodePath($str); + $this->assertEquals($str, iconv("GB2312", "UTF-8", $strGB)); + } + } + + public function testValidateOption() + { + $option = 'string'; + + try { + OssUtil::validateOptions($option); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertEquals("string:option must be array", $e->getMessage()); + } + + $option = null; + + try { + OssUtil::validateOptions($option); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertFalse(true); + } + + } + + public function testCreateDeleteObjectsXmlBody() + { + $xml = <<trueobj1 +BBBB; + $a = array('obj1'); + $this->assertEquals($xml, $this->cleanXml(OssUtil::createDeleteObjectsXmlBody($a, 'true'))); + } + + public function testCreateCompleteMultipartUploadXmlBody() + { + $xml = <<2xx +BBBB; + $a = array(array("PartNumber" => 2, "ETag" => "xx")); + $this->assertEquals($this->cleanXml(OssUtil::createCompleteMultipartUploadXmlBody($a)), $xml); + } + + public function testCreateBucketXmlBody() + { + $xml = <<Standard +BBBB; + $storageClass ="Standard"; + $this->assertEquals($this->cleanXml(OssUtil::createBucketXmlBody($storageClass)), $xml); + } + + public function testValidateBucket() + { + $this->assertTrue(OssUtil::validateBucket("xxx")); + $this->assertFalse(OssUtil::validateBucket("XXXqwe123")); + $this->assertFalse(OssUtil::validateBucket("XX")); + $this->assertFalse(OssUtil::validateBucket("/X")); + $this->assertFalse(OssUtil::validateBucket("")); + } + + public function testValidateObject() + { + $this->assertTrue(OssUtil::validateObject("xxx")); + $this->assertTrue(OssUtil::validateObject("xxx23")); + $this->assertTrue(OssUtil::validateObject("12321-xxx")); + $this->assertTrue(OssUtil::validateObject("x")); + $this->assertFalse(OssUtil::validateObject("/aa")); + $this->assertFalse(OssUtil::validateObject("\\aa")); + $this->assertFalse(OssUtil::validateObject("")); + } + + public function testStartWith() + { + $this->assertTrue(OssUtil::startsWith("xxab", "xx"), true); + } + + public function testReadDir() + { + $list = OssUtil::readDir("./src", ".|..|.svn|.git", true); + $this->assertNotNull($list); + } + + //public function testIsWin() + //{ + // //$this->assertTrue(OssUtil::isWin()); + //} + + public function testGetMd5SumForFile() + { + $this->assertEquals(OssUtil::getMd5SumForFile(__FILE__, 0, sprintf('%u',filesize(__FILE__)) - 1), base64_encode(md5(file_get_contents(__FILE__), true))); + // false case + $this->assertEquals(OssUtil::getMd5SumForFile(__FILE__, 0, OssClient::OSS_MAX_PART_SIZE + 1), ""); + $this->assertEquals(OssUtil::getMd5SumForFile(__FILE__, 0, sprintf('%u',filesize(__FILE__)) + 1), ""); + + } + + public function testGenerateFile() + { + $path = __DIR__ . DIRECTORY_SEPARATOR . "generatedFile.txt"; + OssUtil::generateFile($path, 1024 * 1024); + $this->assertEquals(sprintf('%u',filesize($path)), 1024 * 1024); + unlink($path); + } + + public function testThrowOssExceptionWithMessageIfEmpty() + { + $null = null; + try { + OssUtil::throwOssExceptionWithMessageIfEmpty($null, "xx"); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('xx', $e->getMessage()); + } + } + + public function testThrowOssExceptionWithMessageIfEmpty2() + { + $null = ""; + try { + OssUtil::throwOssExceptionWithMessageIfEmpty($null, "xx"); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('xx', $e->getMessage()); + } + } + + public function testValidContent() + { + $null = ""; + try { + OssUtil::validateContent($null); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('http body content is invalid', $e->getMessage()); + } + + $notnull = "x"; + try { + OssUtil::validateContent($notnull); + $this->assertTrue(true); + } catch (OssException $e) { + $this->assertEquals('http body content is invalid', $e->getMessage()); + } + } + + public function testThrowOssExceptionWithMessageIfEmpty3() + { + $null = "xx"; + try { + OssUtil::throwOssExceptionWithMessageIfEmpty($null, "xx"); + $this->assertTrue(True); + } catch (OssException $e) { + $this->assertTrue(false); + } + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } + + public function testGetHostPortFromEndpoint() + { + $str = OssUtil::getHostPortFromEndpoint('http://username:password@hostname:80/path?arg=value#anchor'); + $this->assertEquals('hostname:80', $str); + + $str = OssUtil::getHostPortFromEndpoint('hostname:80'); + $this->assertEquals('hostname:80', $str); + + $str = OssUtil::getHostPortFromEndpoint('www.hostname.com'); + $this->assertEquals('www.hostname.com', $str); + + $str = OssUtil::getHostPortFromEndpoint('http://www.hostname.com'); + $this->assertEquals('www.hostname.com', $str); + + $str = OssUtil::getHostPortFromEndpoint('https://www.hostname.com'); + $this->assertEquals('www.hostname.com', $str); + + $str = OssUtil::getHostPortFromEndpoint('192.168.1.10:8080'); + $this->assertEquals('192.168.1.10:8080', $str); + + $str = OssUtil::getHostPortFromEndpoint('file://username:password@hostname:80/path?arg=value#anchor'); + $this->assertEquals('hostname:80', $str); + + $str = OssUtil::getHostPortFromEndpoint('https://WWW.hostname.com-_www.test.com'); + $this->assertEquals('WWW.hostname.com-_www.test.com', $str); + + try { + $str = OssUtil::getHostPortFromEndpoint('http:///path?arg=value#anchor'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + + try { + $str = OssUtil::getHostPortFromEndpoint('https://www.hostname.com\www.test.com'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + + try { + $str = OssUtil::getHostPortFromEndpoint('www.hostname.com-_*www.test.com'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + + try { + $str = OssUtil::getHostPortFromEndpoint('www.hostname.com:ab123'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + + try { + $str = OssUtil::getHostPortFromEndpoint('www.hostname.com:'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } + + public function testDecodeKey() + { + try { + OssUtil::decodeKey("key", "unknown"); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/PutSetDeleteResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/PutSetDeleteResultTest.php new file mode 100644 index 0000000..202f173 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/PutSetDeleteResultTest.php @@ -0,0 +1,66 @@ +assertFalse(true); + } catch (OssException $e) { + $this->assertEquals('raw response is null', $e->getMessage()); + } + } + + public function testOkResponse() + { + $header= array( + 'x-oss-request-id' => '582AA51E004C4550BD27E0E4', + 'etag' => '595FA1EA77945233921DF12427F9C7CE', + 'content-md5' => 'WV+h6neUUjOSHfEkJ/nHzg==', + 'info' => array( + 'http_code' => '200', + 'method' => 'PUT' + ), + ); + $response = new ResponseCore($header, "this is a mock body, just for test", 200); + $result = new PutSetDeleteResult($response); + $data = $result->getData(); + $this->assertTrue($result->isOK()); + $this->assertEquals("this is a mock body, just for test", $data['body']); + $this->assertEquals('582AA51E004C4550BD27E0E4', $data['x-oss-request-id']); + $this->assertEquals('595FA1EA77945233921DF12427F9C7CE', $data['etag']); + $this->assertEquals('WV+h6neUUjOSHfEkJ/nHzg==', $data['content-md5']); + $this->assertEquals('200', $data['info']['http_code']); + $this->assertEquals('PUT', $data['info']['method']); + } + + public function testFailResponse() + { + $response = new ResponseCore(array(), "", 301); + try { + new PutSetDeleteResult($response); + $this->assertFalse(true); + } catch (OssException $e) { + $this->assertFalse(false); + } + } + + protected function setUp(): void + { + + } + + protected function tearDown(): void + { + + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/RefererConfigTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/RefererConfigTest.php new file mode 100644 index 0000000..5112da8 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/RefererConfigTest.php @@ -0,0 +1,54 @@ + + +true + +http://www.aliyun.com +https://www.aliyun.com +http://www.*.com +https://www.?.aliyuncs.com + + +BBBB; + + private $validXml2 = << + +true + +http://www.aliyun.com + + +BBBB; + + public function testParseValidXml() + { + $refererConfig = new RefererConfig(); + $refererConfig->parseFromXml($this->validXml); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($refererConfig->serializeToXml())); + } + + public function testParseValidXml2() + { + $refererConfig = new RefererConfig(); + $refererConfig->parseFromXml($this->validXml2); + $this->assertEquals(true, $refererConfig->isAllowEmptyReferer()); + $this->assertEquals(1, count($refererConfig->getRefererList())); + $this->assertEquals($this->cleanXml($this->validXml2), $this->cleanXml(strval($refererConfig))); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/StorageCapacityConfigTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/StorageCapacityConfigTest.php new file mode 100644 index 0000000..58aa791 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/StorageCapacityConfigTest.php @@ -0,0 +1,58 @@ + + +10 + +BBBB; + +private $validXml_20 = << + +20 + +BBBB; + + public function testConstruct() + { + $config = new StorageCapacityConfig(10); + $this->assertEquals($config->getStorageCapacity(), 10); + $this->assertEquals($this->cleanXml($this->validXml_10), $this->cleanXml($config->serializeToXml())); + } + + public function testSetStorageCapacity() + { + $config = new StorageCapacityConfig(2); + $config->setStorageCapacity(20); + $this->assertEquals($this->cleanXml($this->validXml_20), $this->cleanXml($config->serializeToXml())); + $this->assertEquals($this->cleanXml($this->validXml_20), $this->cleanXml($config->__toString())); + } + + public function testParseFromXml() + { + try { + $config = new StorageCapacityConfig(10); + $config->parseFromXml('invaide xml'); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + if (strpos($e, "Not implemented.") == false) + { + $this->assertTrue(false); + } + } + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/StorageCapacityTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/StorageCapacityTest.php new file mode 100644 index 0000000..8d2a9df --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/StorageCapacityTest.php @@ -0,0 +1,63 @@ + + + 1 + +BBBB; + + private $validXml = << + + 1 + +BBBB; + + public function testParseInValidXml() + { + $response = new ResponseCore(array(), $this->inValidXml, 300); + try { + new GetStorageCapacityResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } + + public function testParseEmptyXml() + { + $response = new ResponseCore(array(), "", 300); + try { + new GetStorageCapacityResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertTrue(true); + } + } + + public function testParseValidXml() + { + $response = new ResponseCore(array(), $this->validXml, 200); + $result = new GetStorageCapacityResult($response); + $this->assertEquals($result->getData(), 1); + } + + public function testSerializeToXml() + { + $xml = "\n1\n"; + + $storageCapacityConfig = new StorageCapacityConfig(1); + $content = $storageCapacityConfig->serializeToXml(); + $this->assertEquals($content, $xml); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/SymlinkTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/SymlinkTest.php new file mode 100644 index 0000000..c436391 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/SymlinkTest.php @@ -0,0 +1,77 @@ +bucket; + $symlink = 'test-link'; + $special_object = 'exist_object^$#!~'; + $object = 'exist_object'; + + $this->ossClient ->putObject($bucket, $object, 'test_content'); + $this->ossClient->putSymlink($bucket, $symlink, $object); + $result = $this->ossClient->getObject($bucket, $symlink); + $this->assertEquals('test_content', $result); + + $this->ossClient ->putObject($bucket, $special_object, 'test_content'); + $this->ossClient->putSymlink($bucket, $symlink, $special_object); + $result = $this->ossClient->getObject($bucket, $symlink); + $this->assertEquals('test_content', $result); + } + + public function testGetSymlink() + { + $bucket = $this->bucket; + $symlink = 'test-link'; + $object = 'exist_object^$#!~'; + + $this->ossClient ->putObject($bucket, $object, 'test_content'); + $this->ossClient->putSymlink($bucket, $symlink, $object); + + $result = $this->ossClient->getSymlink($bucket, $symlink); + $this->assertEquals($result[OssClient::OSS_SYMLINK_TARGET], $object); + $this->assertEquals('200', $result[OssClient::OSS_INFO][OssClient::OSS_HTTP_CODE]); + $this->assertTrue(isset($result[OssClient::OSS_ETAG])); + $this->assertTrue(isset($result[OssClient::OSS_REQUEST_ID])); + } + + public function testPutNullSymlink() + { + $bucket = $this->bucket; + $symlink = 'null-link'; + $object_not_exist = 'not_exist_object+$#!b不'; + $this->ossClient->putSymlink($bucket, $symlink, $object_not_exist); + + try{ + $this->ossClient->getObject($bucket, $symlink); + $this->assertTrue(false); + }catch (OssException $e){ + $this->assertEquals('The symlink target object does not exist', $e->getErrorMessage()); + } + } + + public function testGetNullSymlink() + { + $bucket = $this->bucket; + $symlink = 'null-link-new'; + + try{ + $result = $this->ossClient->getSymlink($bucket, $symlink); + $this->assertTrue(false); + }catch (OssException $e){ + $this->assertEquals('The specified key does not exist.', $e->getErrorMessage()); + } + } +} + + diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/TestOssClientBase.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/TestOssClientBase.php new file mode 100644 index 0000000..b204871 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/TestOssClientBase.php @@ -0,0 +1,51 @@ +bucket = Common::getBucketName() .'-'. time(); + $this->ossClient = Common::getOssClient(); + $this->ossClient->createBucket($this->bucket); + Common::waitMetaSync(); + } + + protected function tearDown(): void + { + if (!$this->ossClient->doesBucketExist($this->bucket)) { + return; + } + + $objects = $this->ossClient->listObjects( + $this->bucket, array('max-keys' => 1000, 'delimiter' => ''))->getObjectList(); + $keys = array(); + foreach ($objects as $obj) { + $keys[] = $obj->getKey(); + } + if (count($keys) > 0) { + $this->ossClient->deleteObjects($this->bucket, $keys); + } + $uploads = $this->ossClient->listMultipartUploads($this->bucket)->getUploads(); + foreach ($uploads as $up) { + $this->ossClient->abortMultipartUpload($this->bucket, $up->getKey(), $up->getUploadId()); + } + + $this->ossClient->deleteBucket($this->bucket); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/TransferAccelerationConfigTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/TransferAccelerationConfigTest.php new file mode 100644 index 0000000..19f9805 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/TransferAccelerationConfigTest.php @@ -0,0 +1,56 @@ + + +true + +BBBB; + private $validXml1 = << + +false + +BBBB; + + private $invalidXml1 = << + + +BBBB; + + public function testParseValidXml() + { + $transferConfig = new TransferAccelerationConfig(); + $transferConfig->parseFromXml($this->validXml); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml(strval($transferConfig))); + $this->assertEquals(true,$transferConfig->getEnabled()); + } + + public function testValidXml1() + { + $transferConfig = new TransferAccelerationConfig(); + $transferConfig->parseFromXml($this->validXml1); + $this->assertEquals($this->cleanXml($this->validXml1), $this->cleanXml(strval($transferConfig))); + $this->assertEquals(false,$transferConfig->getEnabled()); + } + + public function testInvalidXml1() + { + $transferConfig = new TransferAccelerationConfig(); + $transferConfig->parseFromXml($this->invalidXml1); + $this->assertEquals(false,$transferConfig->getEnabled()); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/UploadPartResultTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/UploadPartResultTest.php new file mode 100644 index 0000000..df4ad94 --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/UploadPartResultTest.php @@ -0,0 +1,33 @@ + '7265F4D211B56873A381D321F586E4A9'); + private $invalidHeader = array(); + + public function testParseValidHeader() + { + $response = new ResponseCore($this->validHeader, "", 200); + $result = new UploadPartResult($response); + $eTag = $result->getData(); + $this->assertEquals('7265F4D211B56873A381D321F586E4A9', $eTag); + } + + public function testParseInvalidHeader() + { + $response = new ResponseCore($this->invalidHeader, "", 200); + try { + new UploadPartResult($response); + $this->assertTrue(false); + } catch (OssException $e) { + $this->assertEquals('cannot get ETag', $e->getMessage()); + } + } +} diff --git a/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/WebsiteConfigTest.php b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/WebsiteConfigTest.php new file mode 100644 index 0000000..d04b42c --- /dev/null +++ b/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/WebsiteConfigTest.php @@ -0,0 +1,56 @@ + + + +index.html + + +errorDocument.html + + +BBBB; + + private $nullXml = << +BBBB; + private $nullXml2 = << +BBBB; + + public function testParseValidXml() + { + $websiteConfig = new WebsiteConfig("index"); + $websiteConfig->parseFromXml($this->validXml); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($websiteConfig->serializeToXml())); + } + + public function testParsenullXml() + { + $websiteConfig = new WebsiteConfig(); + $websiteConfig->parseFromXml($this->nullXml); + $this->assertTrue($this->cleanXml($this->nullXml) === $this->cleanXml($websiteConfig->serializeToXml()) || + $this->cleanXml($this->nullXml2) === $this->cleanXml($websiteConfig->serializeToXml())); + } + + public function testWebsiteConstruct() + { + $websiteConfig = new WebsiteConfig("index.html", "errorDocument.html"); + $this->assertEquals('index.html', $websiteConfig->getIndexDocument()); + $this->assertEquals('errorDocument.html', $websiteConfig->getErrorDocument()); + $this->assertEquals($this->cleanXml($this->validXml), $this->cleanXml($websiteConfig->serializeToXml())); + } + + private function cleanXml($xml) + { + return str_replace("\n", "", str_replace("\r", "", $xml)); + } +} diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 33561a7..dc15c48 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -6,1921 +6,10 @@ $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( - 'Adbar\\Dot' => $vendorDir . '/adbario/php-dot-notation/src/Dot.php', - 'AlibabaCloud\\Credentials\\AccessKeyCredential' => $vendorDir . '/alibabacloud/credentials/src/AccessKeyCredential.php', - 'AlibabaCloud\\Credentials\\BearerTokenCredential' => $vendorDir . '/alibabacloud/credentials/src/BearerTokenCredential.php', - 'AlibabaCloud\\Credentials\\Credential' => $vendorDir . '/alibabacloud/credentials/src/Credential.php', - 'AlibabaCloud\\Credentials\\Credential\\Config' => $vendorDir . '/alibabacloud/credentials/src/Credential/Config.php', - 'AlibabaCloud\\Credentials\\Credentials' => $vendorDir . '/alibabacloud/credentials/src/Credentials.php', - 'AlibabaCloud\\Credentials\\CredentialsInterface' => $vendorDir . '/alibabacloud/credentials/src/CredentialsInterface.php', - 'AlibabaCloud\\Credentials\\EcsRamRoleCredential' => $vendorDir . '/alibabacloud/credentials/src/EcsRamRoleCredential.php', - 'AlibabaCloud\\Credentials\\Filter' => $vendorDir . '/alibabacloud/credentials/src/Filter.php', - 'AlibabaCloud\\Credentials\\Helper' => $vendorDir . '/alibabacloud/credentials/src/Helper.php', - 'AlibabaCloud\\Credentials\\MockTrait' => $vendorDir . '/alibabacloud/credentials/src/MockTrait.php', - 'AlibabaCloud\\Credentials\\Providers\\ChainProvider' => $vendorDir . '/alibabacloud/credentials/src/Providers/ChainProvider.php', - 'AlibabaCloud\\Credentials\\Providers\\EcsRamRoleProvider' => $vendorDir . '/alibabacloud/credentials/src/Providers/EcsRamRoleProvider.php', - 'AlibabaCloud\\Credentials\\Providers\\Provider' => $vendorDir . '/alibabacloud/credentials/src/Providers/Provider.php', - 'AlibabaCloud\\Credentials\\Providers\\RamRoleArnProvider' => $vendorDir . '/alibabacloud/credentials/src/Providers/RamRoleArnProvider.php', - 'AlibabaCloud\\Credentials\\Providers\\RsaKeyPairProvider' => $vendorDir . '/alibabacloud/credentials/src/Providers/RsaKeyPairProvider.php', - 'AlibabaCloud\\Credentials\\RamRoleArnCredential' => $vendorDir . '/alibabacloud/credentials/src/RamRoleArnCredential.php', - 'AlibabaCloud\\Credentials\\Request\\AssumeRole' => $vendorDir . '/alibabacloud/credentials/src/Request/AssumeRole.php', - 'AlibabaCloud\\Credentials\\Request\\GenerateSessionAccessKey' => $vendorDir . '/alibabacloud/credentials/src/Request/GenerateSessionAccessKey.php', - 'AlibabaCloud\\Credentials\\Request\\Request' => $vendorDir . '/alibabacloud/credentials/src/Request/Request.php', - 'AlibabaCloud\\Credentials\\RsaKeyPairCredential' => $vendorDir . '/alibabacloud/credentials/src/RsaKeyPairCredential.php', - 'AlibabaCloud\\Credentials\\Signature\\BearerTokenSignature' => $vendorDir . '/alibabacloud/credentials/src/Signature/BearerTokenSignature.php', - 'AlibabaCloud\\Credentials\\Signature\\ShaHmac1Signature' => $vendorDir . '/alibabacloud/credentials/src/Signature/ShaHmac1Signature.php', - 'AlibabaCloud\\Credentials\\Signature\\ShaHmac256Signature' => $vendorDir . '/alibabacloud/credentials/src/Signature/ShaHmac256Signature.php', - 'AlibabaCloud\\Credentials\\Signature\\ShaHmac256WithRsaSignature' => $vendorDir . '/alibabacloud/credentials/src/Signature/ShaHmac256WithRsaSignature.php', - 'AlibabaCloud\\Credentials\\Signature\\SignatureInterface' => $vendorDir . '/alibabacloud/credentials/src/Signature/SignatureInterface.php', - 'AlibabaCloud\\Credentials\\StsCredential' => $vendorDir . '/alibabacloud/credentials/src/StsCredential.php', - 'AlibabaCloud\\Endpoint\\Endpoint' => $vendorDir . '/alibabacloud/endpoint-util/src/Endpoint.php', - 'AlibabaCloud\\OpenApiUtil\\OpenApiUtilClient' => $vendorDir . '/alibabacloud/openapi-util/src/OpenApiUtilClient.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Dysmsapi' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Dysmsapi.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignRequest\\signFileList' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignRequest/signFileList.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsTemplateRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsTemplateRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsTemplateResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsTemplateResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsTemplateResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsTemplateResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsSignRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsSignRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsSignRequest\\signFileList' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsSignRequest/signFileList.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsSignResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsSignResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsSignResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsSignResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsTemplateRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsTemplateRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsTemplateResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsTemplateResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsTemplateResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsTemplateResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody\\smsSendDetailDTOs' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody/smsSendDetailDTOs.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody\\smsSendDetailDTOs\\smsSendDetailDTO' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody/smsSendDetailDTOs/smsSendDetailDTO.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsTemplateRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsTemplateRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsTemplateResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsTemplateResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsTemplateResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsTemplateResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponseBody\\numberDetail' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponseBody/numberDetail.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsRequest' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsResponse' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsResponseBody' => $vendorDir . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsResponseBody.php', - 'AlibabaCloud\\Tea\\Exception\\TeaError' => $vendorDir . '/alibabacloud/tea/src/Exception/TeaError.php', - 'AlibabaCloud\\Tea\\Exception\\TeaRetryError' => $vendorDir . '/alibabacloud/tea/src/Exception/TeaRetryError.php', - 'AlibabaCloud\\Tea\\Exception\\TeaUnableRetryError' => $vendorDir . '/alibabacloud/tea/src/Exception/TeaUnableRetryError.php', - 'AlibabaCloud\\Tea\\Helper' => $vendorDir . '/alibabacloud/tea/src/Helper.php', - 'AlibabaCloud\\Tea\\Model' => $vendorDir . '/alibabacloud/tea/src/Model.php', - 'AlibabaCloud\\Tea\\Parameter' => $vendorDir . '/alibabacloud/tea/src/Parameter.php', - 'AlibabaCloud\\Tea\\Request' => $vendorDir . '/alibabacloud/tea/src/Request.php', - 'AlibabaCloud\\Tea\\Response' => $vendorDir . '/alibabacloud/tea/src/Response.php', - 'AlibabaCloud\\Tea\\Tea' => $vendorDir . '/alibabacloud/tea/src/Tea.php', - 'AlibabaCloud\\Tea\\Utils\\Utils' => $vendorDir . '/alibabacloud/tea-utils/src/Utils.php', - 'AlibabaCloud\\Tea\\Utils\\Utils\\RuntimeOptions' => $vendorDir . '/alibabacloud/tea-utils/src/Utils/RuntimeOptions.php', 'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php', - 'BaiduBce\\Auth\\BceV1Signer' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Auth/BceV1Signer.php', - 'BaiduBce\\Auth\\SignOptions' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Auth/SignOptions.php', - 'BaiduBce\\Auth\\SignerInterface' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Auth/SignerInterface.php', - 'BaiduBce\\Bce' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Bce.php', - 'BaiduBce\\BceBaseClient' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/BceBaseClient.php', - 'BaiduBce\\BceClientConfigOptions' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/BceClientConfigOptions.php', - 'BaiduBce\\BceHttpResponse' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/BceHttpResponse.php', - 'BaiduBce\\Exception\\BceBaseException' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Exception/BceBaseException.php', - 'BaiduBce\\Exception\\BceClientException' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Exception/BceClientException.php', - 'BaiduBce\\Exception\\BceServiceException' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Exception/BceServiceException.php', - 'BaiduBce\\Http\\BceHttpClient' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Http/BceHttpClient.php', - 'BaiduBce\\Http\\GuzzleLogAdapter' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Http/GuzzleLogAdapter.php', - 'BaiduBce\\Http\\HttpContentTypes' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Http/HttpContentTypes.php', - 'BaiduBce\\Http\\HttpHeaders' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Http/HttpHeaders.php', - 'BaiduBce\\Http\\HttpMethod' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Http/HttpMethod.php', - 'BaiduBce\\Log\\LogFactory' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Log/LogFactory.php', - 'BaiduBce\\Log\\LogFactoryInterface' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Log/LogFactoryInterface.php', - 'BaiduBce\\Log\\MonoLogFactory' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Log/MonoLogFactory.php', - 'BaiduBce\\Log\\NullLogFactory' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Log/NullLogFactory.php', - 'BaiduBce\\Services\\Bos\\BosClient' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Bos/BosClient.php', - 'BaiduBce\\Services\\Bos\\BosOptions' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Bos/BosOptions.php', - 'BaiduBce\\Services\\Bos\\CannedAcl' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Bos/CannedAcl.php', - 'BaiduBce\\Services\\Bos\\StorageClass' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Bos/StorageClass.php', - 'BaiduBce\\Services\\Lss\\LssClient' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Lss/LssClient.php', - 'BaiduBce\\Services\\Media\\MediaClient' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Media/MediaClient.php', - 'BaiduBce\\Services\\Sts\\StsClient' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Sts/StsClient.php', - 'BaiduBce\\Services\\Vod\\VodClient' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Vod/VodClient.php', - 'BaiduBce\\Util\\DateUtils' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Util/DateUtils.php', - 'BaiduBce\\Util\\HttpUtils' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Util/HttpUtils.php', - 'BaiduBce\\Util\\StringUtils' => $vendorDir . '/baidubce/bce-sdk-php/src/BaiduBce/Util/StringUtils.php', - 'Complex\\Complex' => $vendorDir . '/markbaker/complex/classes/src/Complex.php', - 'Complex\\Exception' => $vendorDir . '/markbaker/complex/classes/src/Exception.php', 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', - 'Darabonba\\OpenApi\\Models\\Config' => $vendorDir . '/alibabacloud/darabonba-openapi/src/Models/Config.php', - 'Darabonba\\OpenApi\\Models\\OpenApiRequest' => $vendorDir . '/alibabacloud/darabonba-openapi/src/Models/OpenApiRequest.php', - 'Darabonba\\OpenApi\\Models\\Params' => $vendorDir . '/alibabacloud/darabonba-openapi/src/Models/Params.php', - 'Darabonba\\OpenApi\\OpenApiClient' => $vendorDir . '/alibabacloud/darabonba-openapi/src/OpenApiClient.php', - 'DtApp\\ThinkLibrary\\ApiController' => $baseDir . '/src/ApiController.php', - 'DtApp\\ThinkLibrary\\Controller' => $baseDir . '/src/Controller.php', - 'DtApp\\ThinkLibrary\\Helper' => $baseDir . '/src/Helper.php', - 'DtApp\\ThinkLibrary\\Library' => $baseDir . '/src/Library.php', - 'DtApp\\ThinkLibrary\\Service' => $baseDir . '/src/Service.php', - 'DtApp\\ThinkLibrary\\cache\\Mysql' => $baseDir . '/src/cache/Mysql.php', - 'DtApp\\ThinkLibrary\\command\\Install' => $baseDir . '/src/command/Install.php', - 'DtApp\\ThinkLibrary\\command\\Version' => $baseDir . '/src/command/Version.php', - 'DtApp\\ThinkLibrary\\exception\\DtaException' => $baseDir . '/src/exception/DtaException.php', - 'DtApp\\ThinkLibrary\\exception\\ThinkException' => $baseDir . '/src/exception/ThinkException.php', - 'DtApp\\ThinkLibrary\\extend\\ArraysExtend' => $baseDir . '/src/extend/ArraysExtend.php', - 'DtApp\\ThinkLibrary\\extend\\CodeExtend' => $baseDir . '/src/extend/CodeExtend.php', - 'DtApp\\ThinkLibrary\\extend\\PregSExtend' => $baseDir . '/src/extend/PregSExtend.php', - 'DtApp\\ThinkLibrary\\facade\\Arrays' => $baseDir . '/src/facade/Arrays.php', - 'DtApp\\ThinkLibrary\\facade\\Dates' => $baseDir . '/src/facade/Dates.php', - 'DtApp\\ThinkLibrary\\facade\\Decimals' => $baseDir . '/src/facade/Decimals.php', - 'DtApp\\ThinkLibrary\\facade\\Files' => $baseDir . '/src/facade/Files.php', - 'DtApp\\ThinkLibrary\\facade\\Ints' => $baseDir . '/src/facade/Ints.php', - 'DtApp\\ThinkLibrary\\facade\\Pregs' => $baseDir . '/src/facade/Pregs.php', - 'DtApp\\ThinkLibrary\\facade\\Randoms' => $baseDir . '/src/facade/Randoms.php', - 'DtApp\\ThinkLibrary\\facade\\Requests' => $baseDir . '/src/facade/Requests.php', - 'DtApp\\ThinkLibrary\\facade\\Returns' => $baseDir . '/src/facade/Returns.php', - 'DtApp\\ThinkLibrary\\facade\\Strings' => $baseDir . '/src/facade/Strings.php', - 'DtApp\\ThinkLibrary\\facade\\Times' => $baseDir . '/src/facade/Times.php', - 'DtApp\\ThinkLibrary\\facade\\UnIqIds' => $baseDir . '/src/facade/UnIqIds.php', - 'DtApp\\ThinkLibrary\\facade\\Urls' => $baseDir . '/src/facade/Urls.php', - 'DtApp\\ThinkLibrary\\facade\\Xmls' => $baseDir . '/src/facade/Xmls.php', - 'DtApp\\ThinkLibrary\\helper\\Arrays' => $baseDir . '/src/helper/Arrays.php', - 'DtApp\\ThinkLibrary\\helper\\Dates' => $baseDir . '/src/helper/Dates.php', - 'DtApp\\ThinkLibrary\\helper\\Decimals' => $baseDir . '/src/helper/Decimals.php', - 'DtApp\\ThinkLibrary\\helper\\Files' => $baseDir . '/src/helper/Files.php', - 'DtApp\\ThinkLibrary\\helper\\Ints' => $baseDir . '/src/helper/Ints.php', - 'DtApp\\ThinkLibrary\\helper\\Pregs' => $baseDir . '/src/helper/Pregs.php', - 'DtApp\\ThinkLibrary\\helper\\Randoms' => $baseDir . '/src/helper/Randoms.php', - 'DtApp\\ThinkLibrary\\helper\\Requests' => $baseDir . '/src/helper/Requests.php', - 'DtApp\\ThinkLibrary\\helper\\Returns' => $baseDir . '/src/helper/Returns.php', - 'DtApp\\ThinkLibrary\\helper\\Strings' => $baseDir . '/src/helper/Strings.php', - 'DtApp\\ThinkLibrary\\helper\\Times' => $baseDir . '/src/helper/Times.php', - 'DtApp\\ThinkLibrary\\helper\\UnIqIds' => $baseDir . '/src/helper/UnIqIds.php', - 'DtApp\\ThinkLibrary\\helper\\Urls' => $baseDir . '/src/helper/Urls.php', - 'DtApp\\ThinkLibrary\\helper\\ValidateHelper' => $baseDir . '/src/helper/ValidateHelper.php', - 'DtApp\\ThinkLibrary\\helper\\Xmls' => $baseDir . '/src/helper/Xmls.php', - 'DtApp\\ThinkLibrary\\service\\BeAryChatService' => $baseDir . '/src/service/BeAryChatService.php', - 'DtApp\\ThinkLibrary\\service\\DingTalkService' => $baseDir . '/src/service/DingTalkService.php', - 'DtApp\\ThinkLibrary\\service\\ExcelService' => $baseDir . '/src/service/ExcelService.php', - 'DtApp\\ThinkLibrary\\service\\Ip\\IpIpDistrictInfo' => $baseDir . '/src/service/Ip/IpIpDistrictInfo.php', - 'DtApp\\ThinkLibrary\\service\\Ip\\IpIpReader' => $baseDir . '/src/service/Ip/IpIpReader.php', - 'DtApp\\ThinkLibrary\\service\\Ip\\IpIpService' => $baseDir . '/src/service/Ip/IpIpService.php', - 'DtApp\\ThinkLibrary\\service\\Ip\\MapService' => $baseDir . '/src/service/Ip/MapService.php', - 'DtApp\\ThinkLibrary\\service\\Ip\\OnlineService' => $baseDir . '/src/service/Ip/OnlineService.php', - 'DtApp\\ThinkLibrary\\service\\KaShAngWl' => $baseDir . '/src/service/KaShAngWl.php', - 'DtApp\\ThinkLibrary\\service\\QqWryService' => $baseDir . '/src/service/QqWryService.php', - 'DtApp\\ThinkLibrary\\service\\RouteService' => $baseDir . '/src/service/RouteService.php', - 'DtApp\\ThinkLibrary\\service\\StorageService' => $baseDir . '/src/service/StorageService.php', - 'DtApp\\ThinkLibrary\\service\\SystemService' => $baseDir . '/src/service/SystemService.php', - 'DtApp\\ThinkLibrary\\service\\WorkKileService' => $baseDir . '/src/service/WorkKileService.php', - 'DtApp\\ThinkLibrary\\service\\aliyun\\AliYunSms' => $baseDir . '/src/service/aliyun/AliYunSms.php', - 'DtApp\\ThinkLibrary\\service\\aliyun\\OssService' => $baseDir . '/src/service/aliyun/OssService.php', - 'DtApp\\ThinkLibrary\\service\\amap\\AmApService' => $baseDir . '/src/service/amap/AmApService.php', - 'DtApp\\ThinkLibrary\\service\\baidu\\BosService' => $baseDir . '/src/service/baidu/BosService.php', - 'DtApp\\ThinkLibrary\\service\\baidu\\LbsYunService' => $baseDir . '/src/service/baidu/LbsYunService.php', - 'DtApp\\ThinkLibrary\\service\\bt\\ApiService' => $baseDir . '/src/service/bt/ApiService.php', - 'DtApp\\ThinkLibrary\\service\\crypt\\AesService' => $baseDir . '/src/service/crypt/AesService.php', - 'DtApp\\ThinkLibrary\\service\\curl\\BtService' => $baseDir . '/src/service/curl/BtService.php', - 'DtApp\\ThinkLibrary\\service\\curl\\HttpService' => $baseDir . '/src/service/curl/HttpService.php', - 'DtApp\\ThinkLibrary\\service\\decent\\EJiAoFei' => $baseDir . '/src/service/decent/EJiAoFei.php', - 'DtApp\\ThinkLibrary\\service\\dingdanxia\\DingDanXiaService' => $baseDir . '/src/service/dingdanxia/DingDanXiaService.php', - 'DtApp\\ThinkLibrary\\service\\douyin\\WatermarkService' => $baseDir . '/src/service/douyin/WatermarkService.php', - 'DtApp\\ThinkLibrary\\service\\huaweicloud\\ObsService' => $baseDir . '/src/service/huaweicloud/ObsService.php', - 'DtApp\\ThinkLibrary\\service\\jd\\UnionService' => $baseDir . '/src/service/jd/UnionService.php', - 'DtApp\\ThinkLibrary\\service\\jdcloud\\VientianeService' => $baseDir . '/src/service/jdcloud/VientianeService.php', - 'DtApp\\ThinkLibrary\\service\\ksyun\\Ks3Service' => $baseDir . '/src/service/ksyun/Ks3Service.php', - 'DtApp\\ThinkLibrary\\service\\kuaishou\\WatermarkService' => $baseDir . '/src/service/kuaishou/WatermarkService.php', - 'DtApp\\ThinkLibrary\\service\\pinduoduo\\JinBaoService' => $baseDir . '/src/service/pinduoduo/JinBaoService.php', - 'DtApp\\ThinkLibrary\\service\\qiniu\\KodoService' => $baseDir . '/src/service/qiniu/KodoService.php', - 'DtApp\\ThinkLibrary\\service\\qiniu\\SmsService' => $baseDir . '/src/service/qiniu/SmsService.php', - 'DtApp\\ThinkLibrary\\service\\taobao\\TaoBaoService' => $baseDir . '/src/service/taobao/TaoBaoService.php', - 'DtApp\\ThinkLibrary\\service\\taobao\\TbkService' => $baseDir . '/src/service/taobao/TbkService.php', - 'DtApp\\ThinkLibrary\\service\\tencent\\CosService' => $baseDir . '/src/service/tencent/CosService.php', - 'DtApp\\ThinkLibrary\\service\\tencent\\LbsService' => $baseDir . '/src/service/tencent/LbsService.php', - 'DtApp\\ThinkLibrary\\service\\upyun\\UssService' => $baseDir . '/src/service/upyun/UssService.php', - 'DtApp\\ThinkLibrary\\service\\wechat\\MiniService' => $baseDir . '/src/service/wechat/MiniService.php', - 'DtApp\\ThinkLibrary\\service\\wechat\\QyService' => $baseDir . '/src/service/wechat/QyService.php', - 'DtApp\\ThinkLibrary\\service\\wechat\\WebAppService' => $baseDir . '/src/service/wechat/WebAppService.php', - 'DtApp\\ThinkLibrary\\service\\wechat\\oplatform\\MiniProgramsService' => $baseDir . '/src/service/wechat/oplatform/MiniProgramsService.php', - 'DtApp\\ThinkLibrary\\service\\weishi\\WatermarkService' => $baseDir . '/src/service/weishi/WatermarkService.php', - 'DtApp\\ThinkLibrary\\service\\yytianqi\\YyTiAnQiService' => $baseDir . '/src/service/yytianqi/YyTiAnQiService.php', - 'DtApp\\ThinkLibrary\\session\\Mysql' => $baseDir . '/src/session/Mysql.php', - 'GuzzleHttp\\Client' => $vendorDir . '/guzzlehttp/guzzle/src/Client.php', - 'GuzzleHttp\\ClientInterface' => $vendorDir . '/guzzlehttp/guzzle/src/ClientInterface.php', - 'GuzzleHttp\\Command\\Command' => $vendorDir . '/guzzlehttp/command/src/Command.php', - 'GuzzleHttp\\Command\\CommandInterface' => $vendorDir . '/guzzlehttp/command/src/CommandInterface.php', - 'GuzzleHttp\\Command\\Exception\\CommandClientException' => $vendorDir . '/guzzlehttp/command/src/Exception/CommandClientException.php', - 'GuzzleHttp\\Command\\Exception\\CommandException' => $vendorDir . '/guzzlehttp/command/src/Exception/CommandException.php', - 'GuzzleHttp\\Command\\Exception\\CommandServerException' => $vendorDir . '/guzzlehttp/command/src/Exception/CommandServerException.php', - 'GuzzleHttp\\Command\\Guzzle\\Description' => $vendorDir . '/guzzlehttp/guzzle-services/src/Description.php', - 'GuzzleHttp\\Command\\Guzzle\\DescriptionInterface' => $vendorDir . '/guzzlehttp/guzzle-services/src/DescriptionInterface.php', - 'GuzzleHttp\\Command\\Guzzle\\Deserializer' => $vendorDir . '/guzzlehttp/guzzle-services/src/Deserializer.php', - 'GuzzleHttp\\Command\\Guzzle\\GuzzleClient' => $vendorDir . '/guzzlehttp/guzzle-services/src/GuzzleClient.php', - 'GuzzleHttp\\Command\\Guzzle\\Handler\\ValidatedDescriptionHandler' => $vendorDir . '/guzzlehttp/guzzle-services/src/Handler/ValidatedDescriptionHandler.php', - 'GuzzleHttp\\Command\\Guzzle\\Operation' => $vendorDir . '/guzzlehttp/guzzle-services/src/Operation.php', - 'GuzzleHttp\\Command\\Guzzle\\Parameter' => $vendorDir . '/guzzlehttp/guzzle-services/src/Parameter.php', - 'GuzzleHttp\\Command\\Guzzle\\QuerySerializer\\QuerySerializerInterface' => $vendorDir . '/guzzlehttp/guzzle-services/src/QuerySerializer/QuerySerializerInterface.php', - 'GuzzleHttp\\Command\\Guzzle\\QuerySerializer\\Rfc3986Serializer' => $vendorDir . '/guzzlehttp/guzzle-services/src/QuerySerializer/Rfc3986Serializer.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\AbstractLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/RequestLocation/AbstractLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\BodyLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/RequestLocation/BodyLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\FormParamLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/RequestLocation/FormParamLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\HeaderLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/RequestLocation/HeaderLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\JsonLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/RequestLocation/JsonLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\MultiPartLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/RequestLocation/MultiPartLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\QueryLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/RequestLocation/QueryLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\RequestLocationInterface' => $vendorDir . '/guzzlehttp/guzzle-services/src/RequestLocation/RequestLocationInterface.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\XmlLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/RequestLocation/XmlLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\AbstractLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/ResponseLocation/AbstractLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\BodyLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/ResponseLocation/BodyLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\HeaderLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/ResponseLocation/HeaderLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\JsonLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/ResponseLocation/JsonLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\ReasonPhraseLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/ResponseLocation/ReasonPhraseLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\ResponseLocationInterface' => $vendorDir . '/guzzlehttp/guzzle-services/src/ResponseLocation/ResponseLocationInterface.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\StatusCodeLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/ResponseLocation/StatusCodeLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\XmlLocation' => $vendorDir . '/guzzlehttp/guzzle-services/src/ResponseLocation/XmlLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\SchemaFormatter' => $vendorDir . '/guzzlehttp/guzzle-services/src/SchemaFormatter.php', - 'GuzzleHttp\\Command\\Guzzle\\SchemaValidator' => $vendorDir . '/guzzlehttp/guzzle-services/src/SchemaValidator.php', - 'GuzzleHttp\\Command\\Guzzle\\Serializer' => $vendorDir . '/guzzlehttp/guzzle-services/src/Serializer.php', - 'GuzzleHttp\\Command\\HasDataTrait' => $vendorDir . '/guzzlehttp/command/src/HasDataTrait.php', - 'GuzzleHttp\\Command\\Result' => $vendorDir . '/guzzlehttp/command/src/Result.php', - 'GuzzleHttp\\Command\\ResultInterface' => $vendorDir . '/guzzlehttp/command/src/ResultInterface.php', - 'GuzzleHttp\\Command\\ServiceClient' => $vendorDir . '/guzzlehttp/command/src/ServiceClient.php', - 'GuzzleHttp\\Command\\ServiceClientInterface' => $vendorDir . '/guzzlehttp/command/src/ServiceClientInterface.php', - 'GuzzleHttp\\Command\\ToArrayInterface' => $vendorDir . '/guzzlehttp/command/src/ToArrayInterface.php', - 'GuzzleHttp\\Cookie\\CookieJar' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/CookieJar.php', - 'GuzzleHttp\\Cookie\\CookieJarInterface' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php', - 'GuzzleHttp\\Cookie\\FileCookieJar' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php', - 'GuzzleHttp\\Cookie\\SessionCookieJar' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php', - 'GuzzleHttp\\Cookie\\SetCookie' => $vendorDir . '/guzzlehttp/guzzle/src/Cookie/SetCookie.php', - 'GuzzleHttp\\Exception\\BadResponseException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/BadResponseException.php', - 'GuzzleHttp\\Exception\\ClientException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/ClientException.php', - 'GuzzleHttp\\Exception\\ConnectException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/ConnectException.php', - 'GuzzleHttp\\Exception\\GuzzleException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/GuzzleException.php', - 'GuzzleHttp\\Exception\\RequestException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/RequestException.php', - 'GuzzleHttp\\Exception\\SeekException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/SeekException.php', - 'GuzzleHttp\\Exception\\ServerException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/ServerException.php', - 'GuzzleHttp\\Exception\\TooManyRedirectsException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php', - 'GuzzleHttp\\Exception\\TransferException' => $vendorDir . '/guzzlehttp/guzzle/src/Exception/TransferException.php', - 'GuzzleHttp\\HandlerStack' => $vendorDir . '/guzzlehttp/guzzle/src/HandlerStack.php', - 'GuzzleHttp\\Handler\\CurlFactory' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlFactory.php', - 'GuzzleHttp\\Handler\\CurlFactoryInterface' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php', - 'GuzzleHttp\\Handler\\CurlHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlHandler.php', - 'GuzzleHttp\\Handler\\CurlMultiHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php', - 'GuzzleHttp\\Handler\\EasyHandle' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/EasyHandle.php', - 'GuzzleHttp\\Handler\\MockHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/MockHandler.php', - 'GuzzleHttp\\Handler\\Proxy' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/Proxy.php', - 'GuzzleHttp\\Handler\\StreamHandler' => $vendorDir . '/guzzlehttp/guzzle/src/Handler/StreamHandler.php', - 'GuzzleHttp\\MessageFormatter' => $vendorDir . '/guzzlehttp/guzzle/src/MessageFormatter.php', - 'GuzzleHttp\\Middleware' => $vendorDir . '/guzzlehttp/guzzle/src/Middleware.php', - 'GuzzleHttp\\Pool' => $vendorDir . '/guzzlehttp/guzzle/src/Pool.php', - 'GuzzleHttp\\PrepareBodyMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php', - 'GuzzleHttp\\Promise\\AggregateException' => $vendorDir . '/guzzlehttp/promises/src/AggregateException.php', - 'GuzzleHttp\\Promise\\CancellationException' => $vendorDir . '/guzzlehttp/promises/src/CancellationException.php', - 'GuzzleHttp\\Promise\\Coroutine' => $vendorDir . '/guzzlehttp/promises/src/Coroutine.php', - 'GuzzleHttp\\Promise\\EachPromise' => $vendorDir . '/guzzlehttp/promises/src/EachPromise.php', - 'GuzzleHttp\\Promise\\FulfilledPromise' => $vendorDir . '/guzzlehttp/promises/src/FulfilledPromise.php', - 'GuzzleHttp\\Promise\\Promise' => $vendorDir . '/guzzlehttp/promises/src/Promise.php', - 'GuzzleHttp\\Promise\\PromiseInterface' => $vendorDir . '/guzzlehttp/promises/src/PromiseInterface.php', - 'GuzzleHttp\\Promise\\PromisorInterface' => $vendorDir . '/guzzlehttp/promises/src/PromisorInterface.php', - 'GuzzleHttp\\Promise\\RejectedPromise' => $vendorDir . '/guzzlehttp/promises/src/RejectedPromise.php', - 'GuzzleHttp\\Promise\\RejectionException' => $vendorDir . '/guzzlehttp/promises/src/RejectionException.php', - 'GuzzleHttp\\Promise\\TaskQueue' => $vendorDir . '/guzzlehttp/promises/src/TaskQueue.php', - 'GuzzleHttp\\Promise\\TaskQueueInterface' => $vendorDir . '/guzzlehttp/promises/src/TaskQueueInterface.php', - 'GuzzleHttp\\Psr7\\AppendStream' => $vendorDir . '/guzzlehttp/psr7/src/AppendStream.php', - 'GuzzleHttp\\Psr7\\BufferStream' => $vendorDir . '/guzzlehttp/psr7/src/BufferStream.php', - 'GuzzleHttp\\Psr7\\CachingStream' => $vendorDir . '/guzzlehttp/psr7/src/CachingStream.php', - 'GuzzleHttp\\Psr7\\DroppingStream' => $vendorDir . '/guzzlehttp/psr7/src/DroppingStream.php', - 'GuzzleHttp\\Psr7\\FnStream' => $vendorDir . '/guzzlehttp/psr7/src/FnStream.php', - 'GuzzleHttp\\Psr7\\InflateStream' => $vendorDir . '/guzzlehttp/psr7/src/InflateStream.php', - 'GuzzleHttp\\Psr7\\LazyOpenStream' => $vendorDir . '/guzzlehttp/psr7/src/LazyOpenStream.php', - 'GuzzleHttp\\Psr7\\LimitStream' => $vendorDir . '/guzzlehttp/psr7/src/LimitStream.php', - 'GuzzleHttp\\Psr7\\MessageTrait' => $vendorDir . '/guzzlehttp/psr7/src/MessageTrait.php', - 'GuzzleHttp\\Psr7\\MultipartStream' => $vendorDir . '/guzzlehttp/psr7/src/MultipartStream.php', - 'GuzzleHttp\\Psr7\\NoSeekStream' => $vendorDir . '/guzzlehttp/psr7/src/NoSeekStream.php', - 'GuzzleHttp\\Psr7\\PumpStream' => $vendorDir . '/guzzlehttp/psr7/src/PumpStream.php', - 'GuzzleHttp\\Psr7\\Request' => $vendorDir . '/guzzlehttp/psr7/src/Request.php', - 'GuzzleHttp\\Psr7\\Response' => $vendorDir . '/guzzlehttp/psr7/src/Response.php', - 'GuzzleHttp\\Psr7\\ServerRequest' => $vendorDir . '/guzzlehttp/psr7/src/ServerRequest.php', - 'GuzzleHttp\\Psr7\\Stream' => $vendorDir . '/guzzlehttp/psr7/src/Stream.php', - 'GuzzleHttp\\Psr7\\StreamDecoratorTrait' => $vendorDir . '/guzzlehttp/psr7/src/StreamDecoratorTrait.php', - 'GuzzleHttp\\Psr7\\StreamWrapper' => $vendorDir . '/guzzlehttp/psr7/src/StreamWrapper.php', - 'GuzzleHttp\\Psr7\\UploadedFile' => $vendorDir . '/guzzlehttp/psr7/src/UploadedFile.php', - 'GuzzleHttp\\Psr7\\Uri' => $vendorDir . '/guzzlehttp/psr7/src/Uri.php', - 'GuzzleHttp\\Psr7\\UriNormalizer' => $vendorDir . '/guzzlehttp/psr7/src/UriNormalizer.php', - 'GuzzleHttp\\Psr7\\UriResolver' => $vendorDir . '/guzzlehttp/psr7/src/UriResolver.php', - 'GuzzleHttp\\RedirectMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/RedirectMiddleware.php', - 'GuzzleHttp\\RequestOptions' => $vendorDir . '/guzzlehttp/guzzle/src/RequestOptions.php', - 'GuzzleHttp\\RetryMiddleware' => $vendorDir . '/guzzlehttp/guzzle/src/RetryMiddleware.php', - 'GuzzleHttp\\TransferStats' => $vendorDir . '/guzzlehttp/guzzle/src/TransferStats.php', - 'GuzzleHttp\\UriTemplate' => $vendorDir . '/guzzlehttp/guzzle/src/UriTemplate.php', - 'Guzzle\\Batch\\AbstractBatchDecorator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/AbstractBatchDecorator.php', - 'Guzzle\\Batch\\Batch' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/Batch.php', - 'Guzzle\\Batch\\BatchBuilder' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/BatchBuilder.php', - 'Guzzle\\Batch\\BatchClosureDivisor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/BatchClosureDivisor.php', - 'Guzzle\\Batch\\BatchClosureTransfer' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/BatchClosureTransfer.php', - 'Guzzle\\Batch\\BatchCommandTransfer' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/BatchCommandTransfer.php', - 'Guzzle\\Batch\\BatchDivisorInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/BatchDivisorInterface.php', - 'Guzzle\\Batch\\BatchInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/BatchInterface.php', - 'Guzzle\\Batch\\BatchRequestTransfer' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/BatchRequestTransfer.php', - 'Guzzle\\Batch\\BatchSizeDivisor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/BatchSizeDivisor.php', - 'Guzzle\\Batch\\BatchTransferInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/BatchTransferInterface.php', - 'Guzzle\\Batch\\ExceptionBufferingBatch' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/ExceptionBufferingBatch.php', - 'Guzzle\\Batch\\Exception\\BatchTransferException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/Exception/BatchTransferException.php', - 'Guzzle\\Batch\\FlushingBatch' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/FlushingBatch.php', - 'Guzzle\\Batch\\HistoryBatch' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/HistoryBatch.php', - 'Guzzle\\Batch\\NotifyingBatch' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Batch/NotifyingBatch.php', - 'Guzzle\\Cache\\AbstractCacheAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Cache/AbstractCacheAdapter.php', - 'Guzzle\\Cache\\CacheAdapterFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Cache/CacheAdapterFactory.php', - 'Guzzle\\Cache\\CacheAdapterInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Cache/CacheAdapterInterface.php', - 'Guzzle\\Cache\\ClosureCacheAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Cache/ClosureCacheAdapter.php', - 'Guzzle\\Cache\\DoctrineCacheAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Cache/DoctrineCacheAdapter.php', - 'Guzzle\\Cache\\NullCacheAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Cache/NullCacheAdapter.php', - 'Guzzle\\Cache\\Zf1CacheAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Cache/Zf1CacheAdapter.php', - 'Guzzle\\Cache\\Zf2CacheAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Cache/Zf2CacheAdapter.php', - 'Guzzle\\Common\\AbstractHasDispatcher' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/AbstractHasDispatcher.php', - 'Guzzle\\Common\\Collection' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/Collection.php', - 'Guzzle\\Common\\Event' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/Event.php', - 'Guzzle\\Common\\Exception\\BadMethodCallException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/Exception/BadMethodCallException.php', - 'Guzzle\\Common\\Exception\\ExceptionCollection' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/Exception/ExceptionCollection.php', - 'Guzzle\\Common\\Exception\\GuzzleException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/Exception/GuzzleException.php', - 'Guzzle\\Common\\Exception\\InvalidArgumentException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/Exception/InvalidArgumentException.php', - 'Guzzle\\Common\\Exception\\RuntimeException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/Exception/RuntimeException.php', - 'Guzzle\\Common\\Exception\\UnexpectedValueException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/Exception/UnexpectedValueException.php', - 'Guzzle\\Common\\FromConfigInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/FromConfigInterface.php', - 'Guzzle\\Common\\HasDispatcherInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/HasDispatcherInterface.php', - 'Guzzle\\Common\\ToArrayInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/ToArrayInterface.php', - 'Guzzle\\Common\\Version' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Common/Version.php', - 'Guzzle\\Http\\AbstractEntityBodyDecorator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/AbstractEntityBodyDecorator.php', - 'Guzzle\\Http\\CachingEntityBody' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/CachingEntityBody.php', - 'Guzzle\\Http\\Client' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Client.php', - 'Guzzle\\Http\\ClientInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/ClientInterface.php', - 'Guzzle\\Http\\Curl\\CurlHandle' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Curl/CurlHandle.php', - 'Guzzle\\Http\\Curl\\CurlMulti' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php', - 'Guzzle\\Http\\Curl\\CurlMultiInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMultiInterface.php', - 'Guzzle\\Http\\Curl\\CurlMultiProxy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMultiProxy.php', - 'Guzzle\\Http\\Curl\\CurlVersion' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Curl/CurlVersion.php', - 'Guzzle\\Http\\Curl\\RequestMediator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Curl/RequestMediator.php', - 'Guzzle\\Http\\EntityBody' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/EntityBody.php', - 'Guzzle\\Http\\EntityBodyInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/EntityBodyInterface.php', - 'Guzzle\\Http\\Exception\\BadResponseException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Exception/BadResponseException.php', - 'Guzzle\\Http\\Exception\\ClientErrorResponseException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Exception/ClientErrorResponseException.php', - 'Guzzle\\Http\\Exception\\CouldNotRewindStreamException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Exception/CouldNotRewindStreamException.php', - 'Guzzle\\Http\\Exception\\CurlException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Exception/CurlException.php', - 'Guzzle\\Http\\Exception\\HttpException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Exception/HttpException.php', - 'Guzzle\\Http\\Exception\\MultiTransferException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Exception/MultiTransferException.php', - 'Guzzle\\Http\\Exception\\RequestException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Exception/RequestException.php', - 'Guzzle\\Http\\Exception\\ServerErrorResponseException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Exception/ServerErrorResponseException.php', - 'Guzzle\\Http\\Exception\\TooManyRedirectsException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Exception/TooManyRedirectsException.php', - 'Guzzle\\Http\\IoEmittingEntityBody' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/IoEmittingEntityBody.php', - 'Guzzle\\Http\\Message\\AbstractMessage' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/AbstractMessage.php', - 'Guzzle\\Http\\Message\\EntityEnclosingRequest' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/EntityEnclosingRequest.php', - 'Guzzle\\Http\\Message\\EntityEnclosingRequestInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/EntityEnclosingRequestInterface.php', - 'Guzzle\\Http\\Message\\Header' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/Header.php', - 'Guzzle\\Http\\Message\\Header\\CacheControl' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/CacheControl.php', - 'Guzzle\\Http\\Message\\Header\\HeaderCollection' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/HeaderCollection.php', - 'Guzzle\\Http\\Message\\Header\\HeaderFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/HeaderFactory.php', - 'Guzzle\\Http\\Message\\Header\\HeaderFactoryInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/HeaderFactoryInterface.php', - 'Guzzle\\Http\\Message\\Header\\HeaderInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/HeaderInterface.php', - 'Guzzle\\Http\\Message\\Header\\Link' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/Link.php', - 'Guzzle\\Http\\Message\\MessageInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/MessageInterface.php', - 'Guzzle\\Http\\Message\\PostFile' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/PostFile.php', - 'Guzzle\\Http\\Message\\PostFileInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/PostFileInterface.php', - 'Guzzle\\Http\\Message\\Request' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/Request.php', - 'Guzzle\\Http\\Message\\RequestFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php', - 'Guzzle\\Http\\Message\\RequestFactoryInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactoryInterface.php', - 'Guzzle\\Http\\Message\\RequestInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php', - 'Guzzle\\Http\\Message\\Response' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Message/Response.php', - 'Guzzle\\Http\\Mimetypes' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Mimetypes.php', - 'Guzzle\\Http\\QueryAggregator\\CommaAggregator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/CommaAggregator.php', - 'Guzzle\\Http\\QueryAggregator\\DuplicateAggregator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/DuplicateAggregator.php', - 'Guzzle\\Http\\QueryAggregator\\PhpAggregator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/PhpAggregator.php', - 'Guzzle\\Http\\QueryAggregator\\QueryAggregatorInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/QueryAggregatorInterface.php', - 'Guzzle\\Http\\QueryString' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/QueryString.php', - 'Guzzle\\Http\\ReadLimitEntityBody' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/ReadLimitEntityBody.php', - 'Guzzle\\Http\\RedirectPlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/RedirectPlugin.php', - 'Guzzle\\Http\\StaticClient' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/StaticClient.php', - 'Guzzle\\Http\\Url' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Http/Url.php', - 'Guzzle\\Inflection\\Inflector' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Inflection/Inflector.php', - 'Guzzle\\Inflection\\InflectorInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Inflection/InflectorInterface.php', - 'Guzzle\\Inflection\\MemoizingInflector' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Inflection/MemoizingInflector.php', - 'Guzzle\\Inflection\\PreComputedInflector' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Inflection/PreComputedInflector.php', - 'Guzzle\\Iterator\\AppendIterator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Iterator/AppendIterator.php', - 'Guzzle\\Iterator\\ChunkedIterator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Iterator/ChunkedIterator.php', - 'Guzzle\\Iterator\\FilterIterator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Iterator/FilterIterator.php', - 'Guzzle\\Iterator\\MapIterator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Iterator/MapIterator.php', - 'Guzzle\\Iterator\\MethodProxyIterator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Iterator/MethodProxyIterator.php', - 'Guzzle\\Log\\AbstractLogAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Log/AbstractLogAdapter.php', - 'Guzzle\\Log\\ArrayLogAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Log/ArrayLogAdapter.php', - 'Guzzle\\Log\\ClosureLogAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Log/ClosureLogAdapter.php', - 'Guzzle\\Log\\LogAdapterInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Log/LogAdapterInterface.php', - 'Guzzle\\Log\\MessageFormatter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Log/MessageFormatter.php', - 'Guzzle\\Log\\MonologLogAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Log/MonologLogAdapter.php', - 'Guzzle\\Log\\PsrLogAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Log/PsrLogAdapter.php', - 'Guzzle\\Log\\Zf1LogAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Log/Zf1LogAdapter.php', - 'Guzzle\\Log\\Zf2LogAdapter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Log/Zf2LogAdapter.php', - 'Guzzle\\Parser\\Cookie\\CookieParser' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/Cookie/CookieParser.php', - 'Guzzle\\Parser\\Cookie\\CookieParserInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/Cookie/CookieParserInterface.php', - 'Guzzle\\Parser\\Message\\AbstractMessageParser' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/Message/AbstractMessageParser.php', - 'Guzzle\\Parser\\Message\\MessageParser' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParser.php', - 'Guzzle\\Parser\\Message\\MessageParserInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParserInterface.php', - 'Guzzle\\Parser\\Message\\PeclHttpMessageParser' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/Message/PeclHttpMessageParser.php', - 'Guzzle\\Parser\\ParserRegistry' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/ParserRegistry.php', - 'Guzzle\\Parser\\UriTemplate\\PeclUriTemplate' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/UriTemplate/PeclUriTemplate.php', - 'Guzzle\\Parser\\UriTemplate\\UriTemplate' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/UriTemplate/UriTemplate.php', - 'Guzzle\\Parser\\UriTemplate\\UriTemplateInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/UriTemplate/UriTemplateInterface.php', - 'Guzzle\\Parser\\Url\\UrlParser' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/Url/UrlParser.php', - 'Guzzle\\Parser\\Url\\UrlParserInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Parser/Url/UrlParserInterface.php', - 'Guzzle\\Plugin\\Async\\AsyncPlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Async/AsyncPlugin.php', - 'Guzzle\\Plugin\\Backoff\\AbstractBackoffStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/AbstractBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\AbstractErrorCodeBackoffStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/AbstractErrorCodeBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\BackoffLogger' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/BackoffLogger.php', - 'Guzzle\\Plugin\\Backoff\\BackoffPlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/BackoffPlugin.php', - 'Guzzle\\Plugin\\Backoff\\BackoffStrategyInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/BackoffStrategyInterface.php', - 'Guzzle\\Plugin\\Backoff\\CallbackBackoffStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/CallbackBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\ConstantBackoffStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/ConstantBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\CurlBackoffStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/CurlBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\ExponentialBackoffStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/ExponentialBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\HttpBackoffStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/HttpBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\LinearBackoffStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/LinearBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\ReasonPhraseBackoffStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/ReasonPhraseBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\TruncatedBackoffStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/TruncatedBackoffStrategy.php', - 'Guzzle\\Plugin\\Cache\\CacheKeyProviderInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheKeyProviderInterface.php', - 'Guzzle\\Plugin\\Cache\\CachePlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/CachePlugin.php', - 'Guzzle\\Plugin\\Cache\\CacheStorageInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheStorageInterface.php', - 'Guzzle\\Plugin\\Cache\\CallbackCanCacheStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/CallbackCanCacheStrategy.php', - 'Guzzle\\Plugin\\Cache\\CanCacheStrategyInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/CanCacheStrategyInterface.php', - 'Guzzle\\Plugin\\Cache\\DefaultCacheKeyProvider' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/DefaultCacheKeyProvider.php', - 'Guzzle\\Plugin\\Cache\\DefaultCacheStorage' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/DefaultCacheStorage.php', - 'Guzzle\\Plugin\\Cache\\DefaultCanCacheStrategy' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/DefaultCanCacheStrategy.php', - 'Guzzle\\Plugin\\Cache\\DefaultRevalidation' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/DefaultRevalidation.php', - 'Guzzle\\Plugin\\Cache\\DenyRevalidation' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/DenyRevalidation.php', - 'Guzzle\\Plugin\\Cache\\RevalidationInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/RevalidationInterface.php', - 'Guzzle\\Plugin\\Cache\\SkipRevalidation' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/SkipRevalidation.php', - 'Guzzle\\Plugin\\Cookie\\Cookie' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/Cookie.php', - 'Guzzle\\Plugin\\Cookie\\CookieJar\\ArrayCookieJar' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookieJar/ArrayCookieJar.php', - 'Guzzle\\Plugin\\Cookie\\CookieJar\\CookieJarInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookieJar/CookieJarInterface.php', - 'Guzzle\\Plugin\\Cookie\\CookieJar\\FileCookieJar' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookieJar/FileCookieJar.php', - 'Guzzle\\Plugin\\Cookie\\CookiePlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookiePlugin.php', - 'Guzzle\\Plugin\\Cookie\\Exception\\InvalidCookieException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/Exception/InvalidCookieException.php', - 'Guzzle\\Plugin\\CurlAuth\\CurlAuthPlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/CurlAuth/CurlAuthPlugin.php', - 'Guzzle\\Plugin\\ErrorResponse\\ErrorResponseExceptionInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/ErrorResponse/ErrorResponseExceptionInterface.php', - 'Guzzle\\Plugin\\ErrorResponse\\ErrorResponsePlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/ErrorResponse/ErrorResponsePlugin.php', - 'Guzzle\\Plugin\\ErrorResponse\\Exception\\ErrorResponseException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/ErrorResponse/Exception/ErrorResponseException.php', - 'Guzzle\\Plugin\\History\\HistoryPlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/History/HistoryPlugin.php', - 'Guzzle\\Plugin\\Log\\LogPlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Log/LogPlugin.php', - 'Guzzle\\Plugin\\Md5\\CommandContentMd5Plugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Md5/CommandContentMd5Plugin.php', - 'Guzzle\\Plugin\\Md5\\Md5ValidatorPlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Md5/Md5ValidatorPlugin.php', - 'Guzzle\\Plugin\\Mock\\MockPlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Mock/MockPlugin.php', - 'Guzzle\\Plugin\\Oauth\\OauthPlugin' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Plugin/Oauth/OauthPlugin.php', - 'Guzzle\\Service\\AbstractConfigLoader' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/AbstractConfigLoader.php', - 'Guzzle\\Service\\Builder\\ServiceBuilder' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Builder/ServiceBuilder.php', - 'Guzzle\\Service\\Builder\\ServiceBuilderInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Builder/ServiceBuilderInterface.php', - 'Guzzle\\Service\\Builder\\ServiceBuilderLoader' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Builder/ServiceBuilderLoader.php', - 'Guzzle\\Service\\CachingConfigLoader' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/CachingConfigLoader.php', - 'Guzzle\\Service\\Client' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Client.php', - 'Guzzle\\Service\\ClientInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/ClientInterface.php', - 'Guzzle\\Service\\Command\\AbstractCommand' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/AbstractCommand.php', - 'Guzzle\\Service\\Command\\ClosureCommand' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/ClosureCommand.php', - 'Guzzle\\Service\\Command\\CommandInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/CommandInterface.php', - 'Guzzle\\Service\\Command\\CreateResponseClassEvent' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/CreateResponseClassEvent.php', - 'Guzzle\\Service\\Command\\DefaultRequestSerializer' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/DefaultRequestSerializer.php', - 'Guzzle\\Service\\Command\\DefaultResponseParser' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/DefaultResponseParser.php', - 'Guzzle\\Service\\Command\\Factory\\AliasFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/AliasFactory.php', - 'Guzzle\\Service\\Command\\Factory\\CompositeFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/CompositeFactory.php', - 'Guzzle\\Service\\Command\\Factory\\ConcreteClassFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/ConcreteClassFactory.php', - 'Guzzle\\Service\\Command\\Factory\\FactoryInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/FactoryInterface.php', - 'Guzzle\\Service\\Command\\Factory\\MapFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/MapFactory.php', - 'Guzzle\\Service\\Command\\Factory\\ServiceDescriptionFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/ServiceDescriptionFactory.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\AbstractRequestVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/AbstractRequestVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\BodyVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/BodyVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\HeaderVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/HeaderVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\JsonVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/JsonVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\PostFieldVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/PostFieldVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\PostFileVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/PostFileVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\QueryVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/QueryVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\RequestVisitorInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/RequestVisitorInterface.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\ResponseBodyVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/ResponseBodyVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\XmlVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/XmlVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\AbstractResponseVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/AbstractResponseVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\BodyVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/BodyVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\HeaderVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/HeaderVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\JsonVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/JsonVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\ReasonPhraseVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/ReasonPhraseVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\ResponseVisitorInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/ResponseVisitorInterface.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\StatusCodeVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/StatusCodeVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\XmlVisitor' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/XmlVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\VisitorFlyweight' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/VisitorFlyweight.php', - 'Guzzle\\Service\\Command\\OperationCommand' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/OperationCommand.php', - 'Guzzle\\Service\\Command\\OperationResponseParser' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/OperationResponseParser.php', - 'Guzzle\\Service\\Command\\RequestSerializerInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/RequestSerializerInterface.php', - 'Guzzle\\Service\\Command\\ResponseClassInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/ResponseClassInterface.php', - 'Guzzle\\Service\\Command\\ResponseParserInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Command/ResponseParserInterface.php', - 'Guzzle\\Service\\ConfigLoaderInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/ConfigLoaderInterface.php', - 'Guzzle\\Service\\Description\\Operation' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Description/Operation.php', - 'Guzzle\\Service\\Description\\OperationInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Description/OperationInterface.php', - 'Guzzle\\Service\\Description\\Parameter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Description/Parameter.php', - 'Guzzle\\Service\\Description\\SchemaFormatter' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Description/SchemaFormatter.php', - 'Guzzle\\Service\\Description\\SchemaValidator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Description/SchemaValidator.php', - 'Guzzle\\Service\\Description\\ServiceDescription' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Description/ServiceDescription.php', - 'Guzzle\\Service\\Description\\ServiceDescriptionInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Description/ServiceDescriptionInterface.php', - 'Guzzle\\Service\\Description\\ServiceDescriptionLoader' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Description/ServiceDescriptionLoader.php', - 'Guzzle\\Service\\Description\\ValidatorInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Description/ValidatorInterface.php', - 'Guzzle\\Service\\Exception\\CommandException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Exception/CommandException.php', - 'Guzzle\\Service\\Exception\\CommandTransferException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Exception/CommandTransferException.php', - 'Guzzle\\Service\\Exception\\DescriptionBuilderException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Exception/DescriptionBuilderException.php', - 'Guzzle\\Service\\Exception\\InconsistentClientTransferException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Exception/InconsistentClientTransferException.php', - 'Guzzle\\Service\\Exception\\ResponseClassException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Exception/ResponseClassException.php', - 'Guzzle\\Service\\Exception\\ServiceBuilderException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Exception/ServiceBuilderException.php', - 'Guzzle\\Service\\Exception\\ServiceNotFoundException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Exception/ServiceNotFoundException.php', - 'Guzzle\\Service\\Exception\\ValidationException' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Exception/ValidationException.php', - 'Guzzle\\Service\\Resource\\AbstractResourceIteratorFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Resource/AbstractResourceIteratorFactory.php', - 'Guzzle\\Service\\Resource\\CompositeResourceIteratorFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Resource/CompositeResourceIteratorFactory.php', - 'Guzzle\\Service\\Resource\\MapResourceIteratorFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Resource/MapResourceIteratorFactory.php', - 'Guzzle\\Service\\Resource\\Model' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Resource/Model.php', - 'Guzzle\\Service\\Resource\\ResourceIterator' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIterator.php', - 'Guzzle\\Service\\Resource\\ResourceIteratorApplyBatched' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorApplyBatched.php', - 'Guzzle\\Service\\Resource\\ResourceIteratorClassFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorClassFactory.php', - 'Guzzle\\Service\\Resource\\ResourceIteratorFactoryInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorFactoryInterface.php', - 'Guzzle\\Service\\Resource\\ResourceIteratorInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorInterface.php', - 'Guzzle\\Stream\\PhpStreamRequestFactory' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Stream/PhpStreamRequestFactory.php', - 'Guzzle\\Stream\\Stream' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Stream/Stream.php', - 'Guzzle\\Stream\\StreamInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Stream/StreamInterface.php', - 'Guzzle\\Stream\\StreamRequestFactoryInterface' => $vendorDir . '/guzzle/guzzle/src/Guzzle/Stream/StreamRequestFactoryInterface.php', - 'Guzzle\\Tests\\Batch\\AbstractBatchDecoratorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/AbstractBatchDecoratorTest.php', - 'Guzzle\\Tests\\Batch\\BatchBuilderTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchBuilderTest.php', - 'Guzzle\\Tests\\Batch\\BatchClosureDivisorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchClosureDivisorTest.php', - 'Guzzle\\Tests\\Batch\\BatchClosureTransferTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchClosureTransferTest.php', - 'Guzzle\\Tests\\Batch\\BatchCommandTransferTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchCommandTransferTest.php', - 'Guzzle\\Tests\\Batch\\BatchRequestTransferTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchRequestTransferTest.php', - 'Guzzle\\Tests\\Batch\\BatchSizeDivisorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchSizeDivisorTest.php', - 'Guzzle\\Tests\\Batch\\BatchTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchTest.php', - 'Guzzle\\Tests\\Batch\\ExceptionBufferingBatchTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/ExceptionBufferingBatchTest.php', - 'Guzzle\\Tests\\Batch\\FlushingBatchTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/FlushingBatchTest.php', - 'Guzzle\\Tests\\Batch\\HistoryBatchTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/HistoryBatchTest.php', - 'Guzzle\\Tests\\Batch\\NotifyingBatchTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/NotifyingBatchTest.php', - 'Guzzle\\Tests\\Cache\\CacheAdapterFactoryTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Cache/CacheAdapterFactoryTest.php', - 'Guzzle\\Tests\\Cache\\CacheAdapterTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Cache/CacheAdapterTest.php', - 'Guzzle\\Tests\\Cache\\ClosureCacheAdapterTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Cache/ClosureCacheAdapterTest.php', - 'Guzzle\\Tests\\Cache\\Zf2CacheAdapterTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Cache/Zf2CacheAdapterTest.php', - 'Guzzle\\Tests\\Common\\CollectionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Common/CollectionTest.php', - 'Guzzle\\Tests\\Common\\EventTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Common/EventTest.php', - 'Guzzle\\Tests\\Common\\Exception\\BatchTransferExceptionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Common/Exception/BatchTransferExceptionTest.php', - 'Guzzle\\Tests\\Common\\Exception\\ExceptionCollectionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Common/Exception/ExceptionCollectionTest.php', - 'Guzzle\\Tests\\Common\\VersionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Common/VersionTest.php', - 'Guzzle\\Tests\\GuzzleTestCase' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/GuzzleTestCase.php', - 'Guzzle\\Tests\\Http\\AbstractEntityBodyDecoratorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/AbstractEntityBodyDecoratorTest.php', - 'Guzzle\\Tests\\Http\\CachingEntityBodyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/CachingEntityBodyTest.php', - 'Guzzle\\Tests\\Http\\ClientTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/ClientTest.php', - 'Guzzle\\Tests\\Http\\Curl\\CurlHandleTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlHandleTest.php', - 'Guzzle\\Tests\\Http\\Curl\\CurlMultiProxyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlMultiProxyTest.php', - 'Guzzle\\Tests\\Http\\Curl\\CurlMultiTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlMultiTest.php', - 'Guzzle\\Tests\\Http\\Curl\\CurlVersionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlVersionTest.php', - 'Guzzle\\Tests\\Http\\Curl\\RequestMediatorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/RequestMediatorTest.php', - 'Guzzle\\Tests\\Http\\EntityBodyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/EntityBodyTest.php', - 'Guzzle\\Tests\\Http\\Exception\\CurlExceptionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Exception/CurlExceptionTest.php', - 'Guzzle\\Tests\\Http\\Exception\\ExceptionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Exception/ExceptionTest.php', - 'Guzzle\\Tests\\Http\\Exception\\MultiTransferExceptionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Exception/MultiTransferExceptionTest.php', - 'Guzzle\\Tests\\Http\\IoEmittingEntityBodyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/IoEmittingEntityBodyTest.php', - 'Guzzle\\Tests\\Http\\Message\\AbstractMessageTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/AbstractMessageTest.php', - 'Guzzle\\Tests\\Http\\Message\\EntityEnclosingRequestTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/EntityEnclosingRequestTest.php', - 'Guzzle\\Tests\\Http\\Message\\HeaderComparison' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/HeaderComparison.php', - 'Guzzle\\Tests\\Http\\Message\\HeaderTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/HeaderTest.php', - 'Guzzle\\Tests\\Http\\Message\\Header\\HeaderFactoryTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/Header/HeaderFactoryTest.php', - 'Guzzle\\Tests\\Http\\Message\\Header\\LinkTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/Header/LinkTest.php', - 'Guzzle\\Tests\\Http\\Message\\PostFileTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/PostFileTest.php', - 'Guzzle\\Tests\\Http\\Message\\RequestTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/RequestTest.php', - 'Guzzle\\Tests\\Http\\MimetypesTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/MimetypesTest.php', - 'Guzzle\\Tests\\Http\\QueryStringTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/QueryStringTest.php', - 'Guzzle\\Tests\\Http\\ReadLimitEntityBodyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/ReadLimitEntityBodyTest.php', - 'Guzzle\\Tests\\Http\\Server' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Server.php', - 'Guzzle\\Tests\\Http\\UrlTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Http/UrlTest.php', - 'Guzzle\\Tests\\Inflection\\InflectorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Inflection/InflectorTest.php', - 'Guzzle\\Tests\\Inflection\\MemoizingInflectorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Inflection/MemoizingInflectorTest.php', - 'Guzzle\\Tests\\Inflection\\PreComputedInflectorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Inflection/PreComputedInflectorTest.php', - 'Guzzle\\Tests\\Iterator\\AppendIteratorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Iterator/AppendIteratorTest.php', - 'Guzzle\\Tests\\Iterator\\ChunkedIteratorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Iterator/ChunkedIteratorTest.php', - 'Guzzle\\Tests\\Iterator\\FilterIteratorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Iterator/FilterIteratorTest.php', - 'Guzzle\\Tests\\Iterator\\MapIteratorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Iterator/MapIteratorTest.php', - 'Guzzle\\Tests\\Iterator\\MethodProxyIteratorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Iterator/MethodProxyIteratorTest.php', - 'Guzzle\\Tests\\Log\\ArrayLogAdapterTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Log/ArrayLogAdapterTest.php', - 'Guzzle\\Tests\\Log\\ClosureLogAdapterTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Log/ClosureLogAdapterTest.php', - 'Guzzle\\Tests\\Log\\MessageFormatterTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Log/MessageFormatterTest.php', - 'Guzzle\\Tests\\Log\\PsrLogAdapterTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Log/PsrLogAdapterTest.php', - 'Guzzle\\Tests\\Log\\Zf2LogAdapterTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Log/Zf2LogAdapterTest.php', - 'Guzzle\\Tests\\Mock\\CustomResponseModel' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/CustomResponseModel.php', - 'Guzzle\\Tests\\Mock\\ErrorResponseMock' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/ErrorResponseMock.php', - 'Guzzle\\Tests\\Mock\\ExceptionMock' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/ExceptionMock.php', - 'Guzzle\\Tests\\Mock\\MockMulti' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/MockMulti.php', - 'Guzzle\\Tests\\Mock\\MockObserver' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/MockObserver.php', - 'Guzzle\\Tests\\Mock\\MockSubject' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/MockSubject.php', - 'Guzzle\\Tests\\Parser\\Cookie\\CookieParserProvider' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/Cookie/CookieParserProvider.php', - 'Guzzle\\Tests\\Parser\\Cookie\\CookieParserTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/Cookie/CookieParserTest.php', - 'Guzzle\\Tests\\Parser\\Message\\MessageParserProvider' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/MessageParserProvider.php', - 'Guzzle\\Tests\\Parser\\Message\\MessageParserTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/MessageParserTest.php', - 'Guzzle\\Tests\\Parser\\Message\\PeclHttpMessageParserTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/PeclHttpMessageParserTest.php', - 'Guzzle\\Tests\\Parser\\ParserRegistryTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/ParserRegistryTest.php', - 'Guzzle\\Tests\\Plugin\\Async\\AsyncPluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Async/AsyncPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\AbstractBackoffStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/AbstractBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\BackoffLoggerTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/BackoffLoggerTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\BackoffPluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/BackoffPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\CallbackBackoffStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/CallbackBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\ConstantBackoffStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ConstantBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\CurlBackoffStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/CurlBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\ExponentialBackoffStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ExponentialBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\HttpBackoffStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/HttpBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\LinearBackoffStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/LinearBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\ReasonPhraseBackoffStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ReasonPhraseBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\TruncatedBackoffStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/TruncatedBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\CachePluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/CachePluginTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\CallbackCanCacheStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/CallbackCanCacheStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\DefaultCacheStorageTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultCacheStorageTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\DefaultCanCacheStrategyTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultCanCacheStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\DefaultRevalidationTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultRevalidationTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\DenyRevalidationTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DenyRevalidationTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\SkipRevalidationTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/SkipRevalidationTest.php', - 'Guzzle\\Tests\\Plugin\\Cookie\\CookieJar\\ArrayCookieJarTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookieJar/ArrayCookieJarTest.php', - 'Guzzle\\Tests\\Plugin\\Cookie\\CookieJar\\FileCookieJarTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookieJar/FileCookieJarTest.php', - 'Guzzle\\Tests\\Plugin\\Cookie\\CookiePluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookiePluginTest.php', - 'Guzzle\\Tests\\Plugin\\Cookie\\CookieTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookieTest.php', - 'Guzzle\\Tests\\Plugin\\CurlAuth\\CurlAuthPluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/CurlAuth/CurlAuthPluginTest.php', - 'Guzzle\\Tests\\Plugin\\ErrorResponse\\ErrorResponsePluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/ErrorResponse/ErrorResponsePluginTest.php', - 'Guzzle\\Tests\\Plugin\\History\\HistoryPluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/History/HistoryPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Log\\LogPluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Log/LogPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Md5\\CommandContentMd5PluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Md5/CommandContentMd5PluginTest.php', - 'Guzzle\\Tests\\Plugin\\Md5\\Md5ValidatorPluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Md5/Md5ValidatorPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Mock\\MockPluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Mock/MockPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Oauth\\OauthPluginTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Oauth/OauthPluginTest.php', - 'Guzzle\\Tests\\Service\\AbstractConfigLoaderTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/AbstractConfigLoaderTest.php', - 'Guzzle\\Tests\\Service\\Builder\\ServiceBuilderLoaderTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Builder/ServiceBuilderLoaderTest.php', - 'Guzzle\\Tests\\Service\\CachingConfigLoaderTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/CachingConfigLoaderTest.php', - 'Guzzle\\Tests\\Service\\ClientTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/ClientTest.php', - 'Guzzle\\Tests\\Service\\Command\\AbstractCommandTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/AbstractCommandTest.php', - 'Guzzle\\Tests\\Service\\Command\\ClosureCommandTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/ClosureCommandTest.php', - 'Guzzle\\Tests\\Service\\Command\\CommandTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/CommandTest.php', - 'Guzzle\\Tests\\Service\\Command\\DefaultRequestSerializerTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/DefaultRequestSerializerTest.php', - 'Guzzle\\Tests\\Service\\Command\\DefaultResponseParserTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/DefaultResponseParserTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\AbstractVisitorTestCase' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/AbstractVisitorTestCase.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\BodyVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/BodyVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\HeaderVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/HeaderVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\JsonVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/JsonVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\PostFieldVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/PostFieldVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\PostFileVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/PostFileVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\QueryVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/QueryVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\ResponseBodyVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/ResponseBodyVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\XmlVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/XmlVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\AbstractResponseVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/AbstractResponseVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\BodyVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/BodyVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\HeaderVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/HeaderVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\JsonVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/JsonVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\ReasonPhraseVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/ReasonPhraseVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\StatusCodeVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/StatusCodeVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\XmlVisitorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/XmlVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\OperationCommandTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/OperationCommandTest.php', - 'Guzzle\\Tests\\Service\\Command\\OperationResponseParserTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/OperationResponseParserTest.php', - 'Guzzle\\Tests\\Service\\Description\\OperationTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/OperationTest.php', - 'Guzzle\\Tests\\Service\\Description\\ParameterTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/ParameterTest.php', - 'Guzzle\\Tests\\Service\\Description\\SchemaFormatterTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/SchemaFormatterTest.php', - 'Guzzle\\Tests\\Service\\Description\\SchemaValidatorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/SchemaValidatorTest.php', - 'Guzzle\\Tests\\Service\\Description\\ServiceDescriptionLoaderTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/ServiceDescriptionLoaderTest.php', - 'Guzzle\\Tests\\Service\\Description\\ServiceDescriptionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/ServiceDescriptionTest.php', - 'Guzzle\\Tests\\Service\\Exception\\CommandTransferExceptionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/CommandTransferExceptionTest.php', - 'Guzzle\\Tests\\Service\\Exception\\InconsistentClientTransferExceptionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/InconsistentClientTransferExceptionTest.php', - 'Guzzle\\Tests\\Service\\Exception\\ValidationExceptionTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/ValidationExceptionTest.php', - 'Guzzle\\Tests\\Service\\Mock\\Command\\IterableCommand' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/IterableCommand.php', - 'Guzzle\\Tests\\Service\\Mock\\Command\\MockCommand' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/MockCommand.php', - 'Guzzle\\Tests\\Service\\Mock\\Command\\OtherCommand' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/OtherCommand.php', - 'Guzzle\\Tests\\Service\\Mock\\Command\\Sub\\Sub' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/Sub/Sub.php', - 'Guzzle\\Tests\\Service\\Mock\\MockClient' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/MockClient.php', - 'Guzzle\\Tests\\Service\\Mock\\Model\\MockCommandIterator' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Model/MockCommandIterator.php', - 'Guzzle\\Tests\\Service\\Resource\\CompositeResourceIteratorFactoryTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/CompositeResourceIteratorFactoryTest.php', - 'Guzzle\\Tests\\Service\\Resource\\MapResourceIteratorFactoryTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/MapResourceIteratorFactoryTest.php', - 'Guzzle\\Tests\\Service\\Resource\\ModelTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/ModelTest.php', - 'Guzzle\\Tests\\Service\\Resource\\ResourceIteratorClassFactoryTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/ResourceIteratorClassFactoryTest.php', - 'Guzzle\\Tests\\Service\\Resource\\ResourceIteratorTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/ResourceIteratorTest.php', - 'Guzzle\\Tests\\Stream\\PhpStreamRequestFactoryTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Stream/PhpStreamRequestFactoryTest.php', - 'Guzzle\\Tests\\Stream\\StreamTest' => $vendorDir . '/guzzle/guzzle/tests/Guzzle/Tests/Stream/StreamTest.php', - 'HTMLPurifier' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier.php', - 'HTMLPurifier_Arborize' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Arborize.php', - 'HTMLPurifier_AttrCollections' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrCollections.php', - 'HTMLPurifier_AttrDef' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef.php', - 'HTMLPurifier_AttrDef_CSS' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS.php', - 'HTMLPurifier_AttrDef_CSS_AlphaValue' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/AlphaValue.php', - 'HTMLPurifier_AttrDef_CSS_Background' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Background.php', - 'HTMLPurifier_AttrDef_CSS_BackgroundPosition' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php', - 'HTMLPurifier_AttrDef_CSS_Border' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Border.php', - 'HTMLPurifier_AttrDef_CSS_Color' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Color.php', - 'HTMLPurifier_AttrDef_CSS_Composite' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Composite.php', - 'HTMLPurifier_AttrDef_CSS_DenyElementDecorator' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/DenyElementDecorator.php', - 'HTMLPurifier_AttrDef_CSS_Filter' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Filter.php', - 'HTMLPurifier_AttrDef_CSS_Font' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Font.php', - 'HTMLPurifier_AttrDef_CSS_FontFamily' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/FontFamily.php', - 'HTMLPurifier_AttrDef_CSS_Ident' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Ident.php', - 'HTMLPurifier_AttrDef_CSS_ImportantDecorator' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/ImportantDecorator.php', - 'HTMLPurifier_AttrDef_CSS_Length' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Length.php', - 'HTMLPurifier_AttrDef_CSS_ListStyle' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/ListStyle.php', - 'HTMLPurifier_AttrDef_CSS_Multiple' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Multiple.php', - 'HTMLPurifier_AttrDef_CSS_Number' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Number.php', - 'HTMLPurifier_AttrDef_CSS_Percentage' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Percentage.php', - 'HTMLPurifier_AttrDef_CSS_TextDecoration' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/TextDecoration.php', - 'HTMLPurifier_AttrDef_CSS_URI' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/URI.php', - 'HTMLPurifier_AttrDef_Clone' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Clone.php', - 'HTMLPurifier_AttrDef_Enum' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Enum.php', - 'HTMLPurifier_AttrDef_HTML_Bool' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Bool.php', - 'HTMLPurifier_AttrDef_HTML_Class' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Class.php', - 'HTMLPurifier_AttrDef_HTML_Color' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Color.php', - 'HTMLPurifier_AttrDef_HTML_FrameTarget' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/FrameTarget.php', - 'HTMLPurifier_AttrDef_HTML_ID' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/ID.php', - 'HTMLPurifier_AttrDef_HTML_Length' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Length.php', - 'HTMLPurifier_AttrDef_HTML_LinkTypes' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/LinkTypes.php', - 'HTMLPurifier_AttrDef_HTML_MultiLength' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/MultiLength.php', - 'HTMLPurifier_AttrDef_HTML_Nmtokens' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Nmtokens.php', - 'HTMLPurifier_AttrDef_HTML_Pixels' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Pixels.php', - 'HTMLPurifier_AttrDef_Integer' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Integer.php', - 'HTMLPurifier_AttrDef_Lang' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Lang.php', - 'HTMLPurifier_AttrDef_Switch' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Switch.php', - 'HTMLPurifier_AttrDef_Text' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Text.php', - 'HTMLPurifier_AttrDef_URI' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI.php', - 'HTMLPurifier_AttrDef_URI_Email' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email.php', - 'HTMLPurifier_AttrDef_URI_Email_SimpleCheck' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php', - 'HTMLPurifier_AttrDef_URI_Host' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php', - 'HTMLPurifier_AttrDef_URI_IPv4' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv4.php', - 'HTMLPurifier_AttrDef_URI_IPv6' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv6.php', - 'HTMLPurifier_AttrTransform' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform.php', - 'HTMLPurifier_AttrTransform_Background' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Background.php', - 'HTMLPurifier_AttrTransform_BdoDir' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/BdoDir.php', - 'HTMLPurifier_AttrTransform_BgColor' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/BgColor.php', - 'HTMLPurifier_AttrTransform_BoolToCSS' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/BoolToCSS.php', - 'HTMLPurifier_AttrTransform_Border' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Border.php', - 'HTMLPurifier_AttrTransform_EnumToCSS' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/EnumToCSS.php', - 'HTMLPurifier_AttrTransform_ImgRequired' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgRequired.php', - 'HTMLPurifier_AttrTransform_ImgSpace' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgSpace.php', - 'HTMLPurifier_AttrTransform_Input' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Input.php', - 'HTMLPurifier_AttrTransform_Lang' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Lang.php', - 'HTMLPurifier_AttrTransform_Length' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Length.php', - 'HTMLPurifier_AttrTransform_Name' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Name.php', - 'HTMLPurifier_AttrTransform_NameSync' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/NameSync.php', - 'HTMLPurifier_AttrTransform_Nofollow' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Nofollow.php', - 'HTMLPurifier_AttrTransform_SafeEmbed' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeEmbed.php', - 'HTMLPurifier_AttrTransform_SafeObject' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeObject.php', - 'HTMLPurifier_AttrTransform_SafeParam' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeParam.php', - 'HTMLPurifier_AttrTransform_ScriptRequired' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/ScriptRequired.php', - 'HTMLPurifier_AttrTransform_TargetBlank' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/TargetBlank.php', - 'HTMLPurifier_AttrTransform_TargetNoopener' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/TargetNoopener.php', - 'HTMLPurifier_AttrTransform_TargetNoreferrer' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/TargetNoreferrer.php', - 'HTMLPurifier_AttrTransform_Textarea' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Textarea.php', - 'HTMLPurifier_AttrTypes' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTypes.php', - 'HTMLPurifier_AttrValidator' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrValidator.php', - 'HTMLPurifier_Bootstrap' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Bootstrap.php', - 'HTMLPurifier_CSSDefinition' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/CSSDefinition.php', - 'HTMLPurifier_ChildDef' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef.php', - 'HTMLPurifier_ChildDef_Chameleon' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Chameleon.php', - 'HTMLPurifier_ChildDef_Custom' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Custom.php', - 'HTMLPurifier_ChildDef_Empty' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Empty.php', - 'HTMLPurifier_ChildDef_List' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/List.php', - 'HTMLPurifier_ChildDef_Optional' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Optional.php', - 'HTMLPurifier_ChildDef_Required' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Required.php', - 'HTMLPurifier_ChildDef_StrictBlockquote' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/StrictBlockquote.php', - 'HTMLPurifier_ChildDef_Table' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Table.php', - 'HTMLPurifier_Config' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Config.php', - 'HTMLPurifier_ConfigSchema' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema.php', - 'HTMLPurifier_ConfigSchema_Builder_ConfigSchema' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Builder/ConfigSchema.php', - 'HTMLPurifier_ConfigSchema_Builder_Xml' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Builder/Xml.php', - 'HTMLPurifier_ConfigSchema_Exception' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Exception.php', - 'HTMLPurifier_ConfigSchema_Interchange' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php', - 'HTMLPurifier_ConfigSchema_InterchangeBuilder' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/InterchangeBuilder.php', - 'HTMLPurifier_ConfigSchema_Interchange_Directive' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange/Directive.php', - 'HTMLPurifier_ConfigSchema_Interchange_Id' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange/Id.php', - 'HTMLPurifier_ConfigSchema_Validator' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Validator.php', - 'HTMLPurifier_ConfigSchema_ValidatorAtom' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/ValidatorAtom.php', - 'HTMLPurifier_ContentSets' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ContentSets.php', - 'HTMLPurifier_Context' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Context.php', - 'HTMLPurifier_Definition' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Definition.php', - 'HTMLPurifier_DefinitionCache' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache.php', - 'HTMLPurifier_DefinitionCacheFactory' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCacheFactory.php', - 'HTMLPurifier_DefinitionCache_Decorator' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator.php', - 'HTMLPurifier_DefinitionCache_Decorator_Cleanup' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php', - 'HTMLPurifier_DefinitionCache_Decorator_Memory' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Memory.php', - 'HTMLPurifier_DefinitionCache_Null' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Null.php', - 'HTMLPurifier_DefinitionCache_Serializer' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php', - 'HTMLPurifier_Doctype' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Doctype.php', - 'HTMLPurifier_DoctypeRegistry' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/DoctypeRegistry.php', - 'HTMLPurifier_ElementDef' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ElementDef.php', - 'HTMLPurifier_Encoder' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Encoder.php', - 'HTMLPurifier_EntityLookup' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/EntityLookup.php', - 'HTMLPurifier_EntityParser' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/EntityParser.php', - 'HTMLPurifier_ErrorCollector' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ErrorCollector.php', - 'HTMLPurifier_ErrorStruct' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/ErrorStruct.php', - 'HTMLPurifier_Exception' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Exception.php', - 'HTMLPurifier_Filter' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Filter.php', - 'HTMLPurifier_Filter_ExtractStyleBlocks' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php', - 'HTMLPurifier_Filter_YouTube' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Filter/YouTube.php', - 'HTMLPurifier_Generator' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Generator.php', - 'HTMLPurifier_HTMLDefinition' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLDefinition.php', - 'HTMLPurifier_HTMLModule' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule.php', - 'HTMLPurifier_HTMLModuleManager' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModuleManager.php', - 'HTMLPurifier_HTMLModule_Bdo' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Bdo.php', - 'HTMLPurifier_HTMLModule_CommonAttributes' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/CommonAttributes.php', - 'HTMLPurifier_HTMLModule_Edit' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Edit.php', - 'HTMLPurifier_HTMLModule_Forms' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Forms.php', - 'HTMLPurifier_HTMLModule_Hypertext' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Hypertext.php', - 'HTMLPurifier_HTMLModule_Iframe' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Iframe.php', - 'HTMLPurifier_HTMLModule_Image' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Image.php', - 'HTMLPurifier_HTMLModule_Legacy' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Legacy.php', - 'HTMLPurifier_HTMLModule_List' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/List.php', - 'HTMLPurifier_HTMLModule_Name' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Name.php', - 'HTMLPurifier_HTMLModule_Nofollow' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Nofollow.php', - 'HTMLPurifier_HTMLModule_NonXMLCommonAttributes' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php', - 'HTMLPurifier_HTMLModule_Object' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Object.php', - 'HTMLPurifier_HTMLModule_Presentation' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Presentation.php', - 'HTMLPurifier_HTMLModule_Proprietary' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Proprietary.php', - 'HTMLPurifier_HTMLModule_Ruby' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Ruby.php', - 'HTMLPurifier_HTMLModule_SafeEmbed' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeEmbed.php', - 'HTMLPurifier_HTMLModule_SafeObject' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeObject.php', - 'HTMLPurifier_HTMLModule_SafeScripting' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeScripting.php', - 'HTMLPurifier_HTMLModule_Scripting' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Scripting.php', - 'HTMLPurifier_HTMLModule_StyleAttribute' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/StyleAttribute.php', - 'HTMLPurifier_HTMLModule_Tables' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tables.php', - 'HTMLPurifier_HTMLModule_Target' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Target.php', - 'HTMLPurifier_HTMLModule_TargetBlank' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/TargetBlank.php', - 'HTMLPurifier_HTMLModule_TargetNoopener' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/TargetNoopener.php', - 'HTMLPurifier_HTMLModule_TargetNoreferrer' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/TargetNoreferrer.php', - 'HTMLPurifier_HTMLModule_Text' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Text.php', - 'HTMLPurifier_HTMLModule_Tidy' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy.php', - 'HTMLPurifier_HTMLModule_Tidy_Name' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Name.php', - 'HTMLPurifier_HTMLModule_Tidy_Proprietary' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Proprietary.php', - 'HTMLPurifier_HTMLModule_Tidy_Strict' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Strict.php', - 'HTMLPurifier_HTMLModule_Tidy_Transitional' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Transitional.php', - 'HTMLPurifier_HTMLModule_Tidy_XHTML' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTML.php', - 'HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php', - 'HTMLPurifier_HTMLModule_XMLCommonAttributes' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/XMLCommonAttributes.php', - 'HTMLPurifier_IDAccumulator' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/IDAccumulator.php', - 'HTMLPurifier_Injector' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php', - 'HTMLPurifier_Injector_AutoParagraph' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/AutoParagraph.php', - 'HTMLPurifier_Injector_DisplayLinkURI' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/DisplayLinkURI.php', - 'HTMLPurifier_Injector_Linkify' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/Linkify.php', - 'HTMLPurifier_Injector_PurifierLinkify' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/PurifierLinkify.php', - 'HTMLPurifier_Injector_RemoveEmpty' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/RemoveEmpty.php', - 'HTMLPurifier_Injector_RemoveSpansWithoutAttributes' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/RemoveSpansWithoutAttributes.php', - 'HTMLPurifier_Injector_SafeObject' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/SafeObject.php', - 'HTMLPurifier_Language' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Language.php', - 'HTMLPurifier_LanguageFactory' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/LanguageFactory.php', - 'HTMLPurifier_Length' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Length.php', - 'HTMLPurifier_Lexer' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Lexer.php', - 'HTMLPurifier_Lexer_DOMLex' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php', - 'HTMLPurifier_Lexer_DirectLex' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DirectLex.php', - 'HTMLPurifier_Lexer_PH5P' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/PH5P.php', - 'HTMLPurifier_Node' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Node.php', - 'HTMLPurifier_Node_Comment' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Node/Comment.php', - 'HTMLPurifier_Node_Element' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Node/Element.php', - 'HTMLPurifier_Node_Text' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Node/Text.php', - 'HTMLPurifier_PercentEncoder' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/PercentEncoder.php', - 'HTMLPurifier_Printer' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Printer.php', - 'HTMLPurifier_Printer_CSSDefinition' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Printer/CSSDefinition.php', - 'HTMLPurifier_Printer_ConfigForm' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Printer/ConfigForm.php', - 'HTMLPurifier_Printer_HTMLDefinition' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Printer/HTMLDefinition.php', - 'HTMLPurifier_PropertyList' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/PropertyList.php', - 'HTMLPurifier_PropertyListIterator' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/PropertyListIterator.php', - 'HTMLPurifier_Queue' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Queue.php', - 'HTMLPurifier_Strategy' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy.php', - 'HTMLPurifier_Strategy_Composite' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/Composite.php', - 'HTMLPurifier_Strategy_Core' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/Core.php', - 'HTMLPurifier_Strategy_FixNesting' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/FixNesting.php', - 'HTMLPurifier_Strategy_MakeWellFormed' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/MakeWellFormed.php', - 'HTMLPurifier_Strategy_RemoveForeignElements' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/RemoveForeignElements.php', - 'HTMLPurifier_Strategy_ValidateAttributes' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/ValidateAttributes.php', - 'HTMLPurifier_StringHash' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/StringHash.php', - 'HTMLPurifier_StringHashParser' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/StringHashParser.php', - 'HTMLPurifier_TagTransform' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/TagTransform.php', - 'HTMLPurifier_TagTransform_Font' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/TagTransform/Font.php', - 'HTMLPurifier_TagTransform_Simple' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/TagTransform/Simple.php', - 'HTMLPurifier_Token' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Token.php', - 'HTMLPurifier_TokenFactory' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/TokenFactory.php', - 'HTMLPurifier_Token_Comment' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/Comment.php', - 'HTMLPurifier_Token_Empty' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/Empty.php', - 'HTMLPurifier_Token_End' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/End.php', - 'HTMLPurifier_Token_Start' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/Start.php', - 'HTMLPurifier_Token_Tag' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/Tag.php', - 'HTMLPurifier_Token_Text' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/Text.php', - 'HTMLPurifier_URI' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URI.php', - 'HTMLPurifier_URIDefinition' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIDefinition.php', - 'HTMLPurifier_URIFilter' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter.php', - 'HTMLPurifier_URIFilter_DisableExternal' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternal.php', - 'HTMLPurifier_URIFilter_DisableExternalResources' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php', - 'HTMLPurifier_URIFilter_DisableResources' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableResources.php', - 'HTMLPurifier_URIFilter_HostBlacklist' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/HostBlacklist.php', - 'HTMLPurifier_URIFilter_MakeAbsolute' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/MakeAbsolute.php', - 'HTMLPurifier_URIFilter_Munge' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/Munge.php', - 'HTMLPurifier_URIFilter_SafeIframe' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/SafeIframe.php', - 'HTMLPurifier_URIParser' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIParser.php', - 'HTMLPurifier_URIScheme' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme.php', - 'HTMLPurifier_URISchemeRegistry' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URISchemeRegistry.php', - 'HTMLPurifier_URIScheme_data' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/data.php', - 'HTMLPurifier_URIScheme_file' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/file.php', - 'HTMLPurifier_URIScheme_ftp' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/ftp.php', - 'HTMLPurifier_URIScheme_http' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/http.php', - 'HTMLPurifier_URIScheme_https' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/https.php', - 'HTMLPurifier_URIScheme_mailto' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/mailto.php', - 'HTMLPurifier_URIScheme_news' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/news.php', - 'HTMLPurifier_URIScheme_nntp' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/nntp.php', - 'HTMLPurifier_URIScheme_tel' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php', - 'HTMLPurifier_UnitConverter' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/UnitConverter.php', - 'HTMLPurifier_VarParser' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/VarParser.php', - 'HTMLPurifier_VarParserException' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/VarParserException.php', - 'HTMLPurifier_VarParser_Flexible' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/VarParser/Flexible.php', - 'HTMLPurifier_VarParser_Native' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/VarParser/Native.php', - 'HTMLPurifier_Zipper' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier/Zipper.php', - 'League\\Flysystem\\AdapterInterface' => $vendorDir . '/league/flysystem/src/AdapterInterface.php', - 'League\\Flysystem\\Adapter\\AbstractAdapter' => $vendorDir . '/league/flysystem/src/Adapter/AbstractAdapter.php', - 'League\\Flysystem\\Adapter\\AbstractFtpAdapter' => $vendorDir . '/league/flysystem/src/Adapter/AbstractFtpAdapter.php', - 'League\\Flysystem\\Adapter\\CanOverwriteFiles' => $vendorDir . '/league/flysystem/src/Adapter/CanOverwriteFiles.php', - 'League\\Flysystem\\Adapter\\Ftp' => $vendorDir . '/league/flysystem/src/Adapter/Ftp.php', - 'League\\Flysystem\\Adapter\\Ftpd' => $vendorDir . '/league/flysystem/src/Adapter/Ftpd.php', - 'League\\Flysystem\\Adapter\\Local' => $vendorDir . '/league/flysystem/src/Adapter/Local.php', - 'League\\Flysystem\\Adapter\\NullAdapter' => $vendorDir . '/league/flysystem/src/Adapter/NullAdapter.php', - 'League\\Flysystem\\Adapter\\Polyfill\\NotSupportingVisibilityTrait' => $vendorDir . '/league/flysystem/src/Adapter/Polyfill/NotSupportingVisibilityTrait.php', - 'League\\Flysystem\\Adapter\\Polyfill\\StreamedCopyTrait' => $vendorDir . '/league/flysystem/src/Adapter/Polyfill/StreamedCopyTrait.php', - 'League\\Flysystem\\Adapter\\Polyfill\\StreamedReadingTrait' => $vendorDir . '/league/flysystem/src/Adapter/Polyfill/StreamedReadingTrait.php', - 'League\\Flysystem\\Adapter\\Polyfill\\StreamedTrait' => $vendorDir . '/league/flysystem/src/Adapter/Polyfill/StreamedTrait.php', - 'League\\Flysystem\\Adapter\\Polyfill\\StreamedWritingTrait' => $vendorDir . '/league/flysystem/src/Adapter/Polyfill/StreamedWritingTrait.php', - 'League\\Flysystem\\Adapter\\SynologyFtp' => $vendorDir . '/league/flysystem/src/Adapter/SynologyFtp.php', - 'League\\Flysystem\\Cached\\CacheInterface' => $vendorDir . '/league/flysystem-cached-adapter/src/CacheInterface.php', - 'League\\Flysystem\\Cached\\CachedAdapter' => $vendorDir . '/league/flysystem-cached-adapter/src/CachedAdapter.php', - 'League\\Flysystem\\Cached\\Storage\\AbstractCache' => $vendorDir . '/league/flysystem-cached-adapter/src/Storage/AbstractCache.php', - 'League\\Flysystem\\Cached\\Storage\\Adapter' => $vendorDir . '/league/flysystem-cached-adapter/src/Storage/Adapter.php', - 'League\\Flysystem\\Cached\\Storage\\Memcached' => $vendorDir . '/league/flysystem-cached-adapter/src/Storage/Memcached.php', - 'League\\Flysystem\\Cached\\Storage\\Memory' => $vendorDir . '/league/flysystem-cached-adapter/src/Storage/Memory.php', - 'League\\Flysystem\\Cached\\Storage\\Noop' => $vendorDir . '/league/flysystem-cached-adapter/src/Storage/Noop.php', - 'League\\Flysystem\\Cached\\Storage\\PhpRedis' => $vendorDir . '/league/flysystem-cached-adapter/src/Storage/PhpRedis.php', - 'League\\Flysystem\\Cached\\Storage\\Predis' => $vendorDir . '/league/flysystem-cached-adapter/src/Storage/Predis.php', - 'League\\Flysystem\\Cached\\Storage\\Psr6Cache' => $vendorDir . '/league/flysystem-cached-adapter/src/Storage/Psr6Cache.php', - 'League\\Flysystem\\Cached\\Storage\\Stash' => $vendorDir . '/league/flysystem-cached-adapter/src/Storage/Stash.php', - 'League\\Flysystem\\Config' => $vendorDir . '/league/flysystem/src/Config.php', - 'League\\Flysystem\\ConfigAwareTrait' => $vendorDir . '/league/flysystem/src/ConfigAwareTrait.php', - 'League\\Flysystem\\ConnectionErrorException' => $vendorDir . '/league/flysystem/src/ConnectionErrorException.php', - 'League\\Flysystem\\ConnectionRuntimeException' => $vendorDir . '/league/flysystem/src/ConnectionRuntimeException.php', - 'League\\Flysystem\\CorruptedPathDetected' => $vendorDir . '/league/flysystem/src/CorruptedPathDetected.php', - 'League\\Flysystem\\Directory' => $vendorDir . '/league/flysystem/src/Directory.php', - 'League\\Flysystem\\Exception' => $vendorDir . '/league/flysystem/src/Exception.php', - 'League\\Flysystem\\File' => $vendorDir . '/league/flysystem/src/File.php', - 'League\\Flysystem\\FileExistsException' => $vendorDir . '/league/flysystem/src/FileExistsException.php', - 'League\\Flysystem\\FileNotFoundException' => $vendorDir . '/league/flysystem/src/FileNotFoundException.php', - 'League\\Flysystem\\Filesystem' => $vendorDir . '/league/flysystem/src/Filesystem.php', - 'League\\Flysystem\\FilesystemException' => $vendorDir . '/league/flysystem/src/FilesystemException.php', - 'League\\Flysystem\\FilesystemInterface' => $vendorDir . '/league/flysystem/src/FilesystemInterface.php', - 'League\\Flysystem\\FilesystemNotFoundException' => $vendorDir . '/league/flysystem/src/FilesystemNotFoundException.php', - 'League\\Flysystem\\Handler' => $vendorDir . '/league/flysystem/src/Handler.php', - 'League\\Flysystem\\InvalidRootException' => $vendorDir . '/league/flysystem/src/InvalidRootException.php', - 'League\\Flysystem\\MountManager' => $vendorDir . '/league/flysystem/src/MountManager.php', - 'League\\Flysystem\\NotSupportedException' => $vendorDir . '/league/flysystem/src/NotSupportedException.php', - 'League\\Flysystem\\PluginInterface' => $vendorDir . '/league/flysystem/src/PluginInterface.php', - 'League\\Flysystem\\Plugin\\AbstractPlugin' => $vendorDir . '/league/flysystem/src/Plugin/AbstractPlugin.php', - 'League\\Flysystem\\Plugin\\EmptyDir' => $vendorDir . '/league/flysystem/src/Plugin/EmptyDir.php', - 'League\\Flysystem\\Plugin\\ForcedCopy' => $vendorDir . '/league/flysystem/src/Plugin/ForcedCopy.php', - 'League\\Flysystem\\Plugin\\ForcedRename' => $vendorDir . '/league/flysystem/src/Plugin/ForcedRename.php', - 'League\\Flysystem\\Plugin\\GetWithMetadata' => $vendorDir . '/league/flysystem/src/Plugin/GetWithMetadata.php', - 'League\\Flysystem\\Plugin\\ListFiles' => $vendorDir . '/league/flysystem/src/Plugin/ListFiles.php', - 'League\\Flysystem\\Plugin\\ListPaths' => $vendorDir . '/league/flysystem/src/Plugin/ListPaths.php', - 'League\\Flysystem\\Plugin\\ListWith' => $vendorDir . '/league/flysystem/src/Plugin/ListWith.php', - 'League\\Flysystem\\Plugin\\PluggableTrait' => $vendorDir . '/league/flysystem/src/Plugin/PluggableTrait.php', - 'League\\Flysystem\\Plugin\\PluginNotFoundException' => $vendorDir . '/league/flysystem/src/Plugin/PluginNotFoundException.php', - 'League\\Flysystem\\ReadInterface' => $vendorDir . '/league/flysystem/src/ReadInterface.php', - 'League\\Flysystem\\RootViolationException' => $vendorDir . '/league/flysystem/src/RootViolationException.php', - 'League\\Flysystem\\SafeStorage' => $vendorDir . '/league/flysystem/src/SafeStorage.php', - 'League\\Flysystem\\UnreadableFileException' => $vendorDir . '/league/flysystem/src/UnreadableFileException.php', - 'League\\Flysystem\\Util' => $vendorDir . '/league/flysystem/src/Util.php', - 'League\\Flysystem\\Util\\ContentListingFormatter' => $vendorDir . '/league/flysystem/src/Util/ContentListingFormatter.php', - 'League\\Flysystem\\Util\\MimeType' => $vendorDir . '/league/flysystem/src/Util/MimeType.php', - 'League\\Flysystem\\Util\\StreamHasher' => $vendorDir . '/league/flysystem/src/Util/StreamHasher.php', - 'League\\MimeTypeDetection\\EmptyExtensionToMimeTypeMap' => $vendorDir . '/league/mime-type-detection/src/EmptyExtensionToMimeTypeMap.php', - 'League\\MimeTypeDetection\\ExtensionMimeTypeDetector' => $vendorDir . '/league/mime-type-detection/src/ExtensionMimeTypeDetector.php', - 'League\\MimeTypeDetection\\ExtensionToMimeTypeMap' => $vendorDir . '/league/mime-type-detection/src/ExtensionToMimeTypeMap.php', - 'League\\MimeTypeDetection\\FinfoMimeTypeDetector' => $vendorDir . '/league/mime-type-detection/src/FinfoMimeTypeDetector.php', - 'League\\MimeTypeDetection\\GeneratedExtensionToMimeTypeMap' => $vendorDir . '/league/mime-type-detection/src/GeneratedExtensionToMimeTypeMap.php', - 'League\\MimeTypeDetection\\MimeTypeDetector' => $vendorDir . '/league/mime-type-detection/src/MimeTypeDetector.php', - 'League\\MimeTypeDetection\\OverridingExtensionToMimeTypeMap' => $vendorDir . '/league/mime-type-detection/src/OverridingExtensionToMimeTypeMap.php', - 'Matrix\\Builder' => $vendorDir . '/markbaker/matrix/classes/src/Builder.php', - 'Matrix\\Decomposition\\Decomposition' => $vendorDir . '/markbaker/matrix/classes/src/Decomposition/Decomposition.php', - 'Matrix\\Decomposition\\LU' => $vendorDir . '/markbaker/matrix/classes/src/Decomposition/LU.php', - 'Matrix\\Decomposition\\QR' => $vendorDir . '/markbaker/matrix/classes/src/Decomposition/QR.php', - 'Matrix\\Div0Exception' => $vendorDir . '/markbaker/matrix/classes/src/Div0Exception.php', - 'Matrix\\Exception' => $vendorDir . '/markbaker/matrix/classes/src/Exception.php', - 'Matrix\\Functions' => $vendorDir . '/markbaker/matrix/classes/src/Functions.php', - 'Matrix\\Matrix' => $vendorDir . '/markbaker/matrix/classes/src/Matrix.php', - 'Matrix\\Operators\\Addition' => $vendorDir . '/markbaker/matrix/classes/src/Operators/Addition.php', - 'Matrix\\Operators\\DirectSum' => $vendorDir . '/markbaker/matrix/classes/src/Operators/DirectSum.php', - 'Matrix\\Operators\\Division' => $vendorDir . '/markbaker/matrix/classes/src/Operators/Division.php', - 'Matrix\\Operators\\Multiplication' => $vendorDir . '/markbaker/matrix/classes/src/Operators/Multiplication.php', - 'Matrix\\Operators\\Operator' => $vendorDir . '/markbaker/matrix/classes/src/Operators/Operator.php', - 'Matrix\\Operators\\Subtraction' => $vendorDir . '/markbaker/matrix/classes/src/Operators/Subtraction.php', - 'Monolog\\ErrorHandler' => $vendorDir . '/monolog/monolog/src/Monolog/ErrorHandler.php', - 'Monolog\\Formatter\\ChromePHPFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php', - 'Monolog\\Formatter\\ElasticaFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php', - 'Monolog\\Formatter\\FlowdockFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php', - 'Monolog\\Formatter\\FluentdFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php', - 'Monolog\\Formatter\\FormatterInterface' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php', - 'Monolog\\Formatter\\GelfMessageFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php', - 'Monolog\\Formatter\\HtmlFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php', - 'Monolog\\Formatter\\JsonFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php', - 'Monolog\\Formatter\\LineFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/LineFormatter.php', - 'Monolog\\Formatter\\LogglyFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php', - 'Monolog\\Formatter\\LogstashFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php', - 'Monolog\\Formatter\\MongoDBFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php', - 'Monolog\\Formatter\\NormalizerFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php', - 'Monolog\\Formatter\\ScalarFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php', - 'Monolog\\Formatter\\WildfireFormatter' => $vendorDir . '/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php', - 'Monolog\\Handler\\AbstractHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/AbstractHandler.php', - 'Monolog\\Handler\\AbstractProcessingHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php', - 'Monolog\\Handler\\AbstractSyslogHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php', - 'Monolog\\Handler\\AmqpHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/AmqpHandler.php', - 'Monolog\\Handler\\BrowserConsoleHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php', - 'Monolog\\Handler\\BufferHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/BufferHandler.php', - 'Monolog\\Handler\\ChromePHPHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php', - 'Monolog\\Handler\\CouchDBHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php', - 'Monolog\\Handler\\CubeHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/CubeHandler.php', - 'Monolog\\Handler\\Curl\\Util' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/Curl/Util.php', - 'Monolog\\Handler\\DeduplicationHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php', - 'Monolog\\Handler\\DoctrineCouchDBHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php', - 'Monolog\\Handler\\DynamoDbHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php', - 'Monolog\\Handler\\ElasticSearchHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php', - 'Monolog\\Handler\\ErrorLogHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php', - 'Monolog\\Handler\\FilterHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FilterHandler.php', - 'Monolog\\Handler\\FingersCrossedHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php', - 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php', - 'Monolog\\Handler\\FingersCrossed\\ChannelLevelActivationStrategy' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php', - 'Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php', - 'Monolog\\Handler\\FirePHPHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php', - 'Monolog\\Handler\\FleepHookHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php', - 'Monolog\\Handler\\FlowdockHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php', - 'Monolog\\Handler\\GelfHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/GelfHandler.php', - 'Monolog\\Handler\\GroupHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/GroupHandler.php', - 'Monolog\\Handler\\HandlerInterface' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/HandlerInterface.php', - 'Monolog\\Handler\\HandlerWrapper' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php', - 'Monolog\\Handler\\HipChatHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/HipChatHandler.php', - 'Monolog\\Handler\\IFTTTHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php', - 'Monolog\\Handler\\LogEntriesHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php', - 'Monolog\\Handler\\LogglyHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/LogglyHandler.php', - 'Monolog\\Handler\\MailHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/MailHandler.php', - 'Monolog\\Handler\\MandrillHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/MandrillHandler.php', - 'Monolog\\Handler\\MissingExtensionException' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php', - 'Monolog\\Handler\\MongoDBHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php', - 'Monolog\\Handler\\NativeMailerHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php', - 'Monolog\\Handler\\NewRelicHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php', - 'Monolog\\Handler\\NullHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/NullHandler.php', - 'Monolog\\Handler\\PHPConsoleHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php', - 'Monolog\\Handler\\PsrHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/PsrHandler.php', - 'Monolog\\Handler\\PushoverHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/PushoverHandler.php', - 'Monolog\\Handler\\RavenHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/RavenHandler.php', - 'Monolog\\Handler\\RedisHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/RedisHandler.php', - 'Monolog\\Handler\\RollbarHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/RollbarHandler.php', - 'Monolog\\Handler\\RotatingFileHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php', - 'Monolog\\Handler\\SamplingHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SamplingHandler.php', - 'Monolog\\Handler\\SlackHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SlackHandler.php', - 'Monolog\\Handler\\SlackWebhookHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php', - 'Monolog\\Handler\\Slack\\SlackRecord' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php', - 'Monolog\\Handler\\SlackbotHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php', - 'Monolog\\Handler\\SocketHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SocketHandler.php', - 'Monolog\\Handler\\StreamHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/StreamHandler.php', - 'Monolog\\Handler\\SwiftMailerHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php', - 'Monolog\\Handler\\SyslogHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SyslogHandler.php', - 'Monolog\\Handler\\SyslogUdpHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php', - 'Monolog\\Handler\\SyslogUdp\\UdpSocket' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php', - 'Monolog\\Handler\\TestHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/TestHandler.php', - 'Monolog\\Handler\\WhatFailureGroupHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php', - 'Monolog\\Handler\\ZendMonitorHandler' => $vendorDir . '/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php', - 'Monolog\\Logger' => $vendorDir . '/monolog/monolog/src/Monolog/Logger.php', - 'Monolog\\Processor\\GitProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/GitProcessor.php', - 'Monolog\\Processor\\IntrospectionProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php', - 'Monolog\\Processor\\MemoryPeakUsageProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php', - 'Monolog\\Processor\\MemoryProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php', - 'Monolog\\Processor\\MemoryUsageProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php', - 'Monolog\\Processor\\MercurialProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php', - 'Monolog\\Processor\\ProcessIdProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php', - 'Monolog\\Processor\\PsrLogMessageProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php', - 'Monolog\\Processor\\TagProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/TagProcessor.php', - 'Monolog\\Processor\\UidProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/UidProcessor.php', - 'Monolog\\Processor\\WebProcessor' => $vendorDir . '/monolog/monolog/src/Monolog/Processor/WebProcessor.php', - 'Monolog\\Registry' => $vendorDir . '/monolog/monolog/src/Monolog/Registry.php', - 'MyCLabs\\Enum\\Enum' => $vendorDir . '/myclabs/php-enum/src/Enum.php', - 'MyCLabs\\Enum\\PHPUnit\\Comparator' => $vendorDir . '/myclabs/php-enum/src/PHPUnit/Comparator.php', - 'OSS\\Core\\MimeTypes' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Core/MimeTypes.php', - 'OSS\\Core\\OssException' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Core/OssException.php', - 'OSS\\Core\\OssUtil' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Core/OssUtil.php', - 'OSS\\Http\\RequestCore' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Http/RequestCore.php', - 'OSS\\Http\\RequestCore_Exception' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Http/RequestCore_Exception.php', - 'OSS\\Http\\ResponseCore' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Http/ResponseCore.php', - 'OSS\\Model\\BucketInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/BucketInfo.php', - 'OSS\\Model\\BucketListInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/BucketListInfo.php', - 'OSS\\Model\\BucketStat' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/BucketStat.php', - 'OSS\\Model\\CnameConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/CnameConfig.php', - 'OSS\\Model\\CorsConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/CorsConfig.php', - 'OSS\\Model\\CorsRule' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/CorsRule.php', - 'OSS\\Model\\DeleteMarkerInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/DeleteMarkerInfo.php', - 'OSS\\Model\\DeleteObjectInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/DeleteObjectInfo.php', - 'OSS\\Model\\DeletedObjectInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/DeletedObjectInfo.php', - 'OSS\\Model\\ExtendWormConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/ExtendWormConfig.php', - 'OSS\\Model\\GetLiveChannelHistory' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/GetLiveChannelHistory.php', - 'OSS\\Model\\GetLiveChannelInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/GetLiveChannelInfo.php', - 'OSS\\Model\\GetLiveChannelStatus' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/GetLiveChannelStatus.php', - 'OSS\\Model\\InitiateWormConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/InitiateWormConfig.php', - 'OSS\\Model\\LifecycleAction' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/LifecycleAction.php', - 'OSS\\Model\\LifecycleConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/LifecycleConfig.php', - 'OSS\\Model\\LifecycleRule' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/LifecycleRule.php', - 'OSS\\Model\\ListMultipartUploadInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/ListMultipartUploadInfo.php', - 'OSS\\Model\\ListPartsInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/ListPartsInfo.php', - 'OSS\\Model\\LiveChannelConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/LiveChannelConfig.php', - 'OSS\\Model\\LiveChannelHistory' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/LiveChannelHistory.php', - 'OSS\\Model\\LiveChannelInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/LiveChannelInfo.php', - 'OSS\\Model\\LiveChannelListInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/LiveChannelListInfo.php', - 'OSS\\Model\\LoggingConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/LoggingConfig.php', - 'OSS\\Model\\ObjectInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectInfo.php', - 'OSS\\Model\\ObjectListInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectListInfo.php', - 'OSS\\Model\\ObjectVersionInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectVersionInfo.php', - 'OSS\\Model\\ObjectVersionListInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectVersionListInfo.php', - 'OSS\\Model\\PartInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/PartInfo.php', - 'OSS\\Model\\PrefixInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/PrefixInfo.php', - 'OSS\\Model\\RefererConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/RefererConfig.php', - 'OSS\\Model\\RequestPaymentConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/RequestPaymentConfig.php', - 'OSS\\Model\\RestoreConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/RestoreConfig.php', - 'OSS\\Model\\ServerSideEncryptionConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/ServerSideEncryptionConfig.php', - 'OSS\\Model\\StorageCapacityConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/StorageCapacityConfig.php', - 'OSS\\Model\\Tag' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/Tag.php', - 'OSS\\Model\\TaggingConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/TaggingConfig.php', - 'OSS\\Model\\UploadInfo' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/UploadInfo.php', - 'OSS\\Model\\VersioningConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/VersioningConfig.php', - 'OSS\\Model\\WebsiteConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/WebsiteConfig.php', - 'OSS\\Model\\WormConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/WormConfig.php', - 'OSS\\Model\\XmlConfig' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Model/XmlConfig.php', - 'OSS\\OssClient' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/OssClient.php', - 'OSS\\Result\\AclResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/AclResult.php', - 'OSS\\Result\\AppendResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/AppendResult.php', - 'OSS\\Result\\BodyResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/BodyResult.php', - 'OSS\\Result\\CallbackResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/CallbackResult.php', - 'OSS\\Result\\CopyObjectResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/CopyObjectResult.php', - 'OSS\\Result\\DeleteObjectVersionsResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/DeleteObjectVersionsResult.php', - 'OSS\\Result\\DeleteObjectsResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/DeleteObjectsResult.php', - 'OSS\\Result\\ExistResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/ExistResult.php', - 'OSS\\Result\\GetBucketEncryptionResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketEncryptionResult.php', - 'OSS\\Result\\GetBucketInfoResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketInfoResult.php', - 'OSS\\Result\\GetBucketRequestPaymentResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketRequestPaymentResult.php', - 'OSS\\Result\\GetBucketStatResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketStatResult.php', - 'OSS\\Result\\GetBucketTagsResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketTagsResult.php', - 'OSS\\Result\\GetBucketVersioningResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketVersioningResult.php', - 'OSS\\Result\\GetBucketWormResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketWormResult.php', - 'OSS\\Result\\GetCnameResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetCnameResult.php', - 'OSS\\Result\\GetCorsResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetCorsResult.php', - 'OSS\\Result\\GetLifecycleResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLifecycleResult.php', - 'OSS\\Result\\GetLiveChannelHistoryResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLiveChannelHistoryResult.php', - 'OSS\\Result\\GetLiveChannelInfoResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLiveChannelInfoResult.php', - 'OSS\\Result\\GetLiveChannelStatusResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLiveChannelStatusResult.php', - 'OSS\\Result\\GetLocationResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLocationResult.php', - 'OSS\\Result\\GetLoggingResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLoggingResult.php', - 'OSS\\Result\\GetRefererResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetRefererResult.php', - 'OSS\\Result\\GetStorageCapacityResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetStorageCapacityResult.php', - 'OSS\\Result\\GetWebsiteResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetWebsiteResult.php', - 'OSS\\Result\\HeaderResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/HeaderResult.php', - 'OSS\\Result\\InitiateBucketWormResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/InitiateBucketWormResult.php', - 'OSS\\Result\\InitiateMultipartUploadResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/InitiateMultipartUploadResult.php', - 'OSS\\Result\\ListBucketsResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListBucketsResult.php', - 'OSS\\Result\\ListLiveChannelResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListLiveChannelResult.php', - 'OSS\\Result\\ListMultipartUploadResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListMultipartUploadResult.php', - 'OSS\\Result\\ListObjectVersionsResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListObjectVersionsResult.php', - 'OSS\\Result\\ListObjectsResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListObjectsResult.php', - 'OSS\\Result\\ListPartsResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListPartsResult.php', - 'OSS\\Result\\PutLiveChannelResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/PutLiveChannelResult.php', - 'OSS\\Result\\PutSetDeleteResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/PutSetDeleteResult.php', - 'OSS\\Result\\Result' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/Result.php', - 'OSS\\Result\\SymlinkResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/SymlinkResult.php', - 'OSS\\Result\\UploadPartResult' => $vendorDir . '/aliyuncs/oss-sdk-php/src/OSS/Result/UploadPartResult.php', - 'Obs\\Internal\\Common\\CheckoutStream' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Common/CheckoutStream.php', - 'Obs\\Internal\\Common\\ITransform' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Common/ITransform.php', - 'Obs\\Internal\\Common\\Model' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Common/Model.php', - 'Obs\\Internal\\Common\\ObsTransform' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Common/ObsTransform.php', - 'Obs\\Internal\\Common\\SchemaFormatter' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Common/SchemaFormatter.php', - 'Obs\\Internal\\Common\\SdkCurlFactory' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Common/SdkCurlFactory.php', - 'Obs\\Internal\\Common\\SdkStreamHandler' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Common/SdkStreamHandler.php', - 'Obs\\Internal\\Common\\ToArrayInterface' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Common/ToArrayInterface.php', - 'Obs\\Internal\\Common\\V2Transform' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Common/V2Transform.php', - 'Obs\\Internal\\GetResponseTrait' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/GetResponseTrait.php', - 'Obs\\Internal\\Resource\\Constants' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Resource/Constants.php', - 'Obs\\Internal\\Resource\\OBSConstants' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Resource/OBSConstants.php', - 'Obs\\Internal\\Resource\\OBSRequestResource' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Resource/OBSRequestResource.php', - 'Obs\\Internal\\Resource\\V2Constants' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Resource/V2Constants.php', - 'Obs\\Internal\\Resource\\V2RequestResource' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Resource/V2RequestResource.php', - 'Obs\\Internal\\SendRequestTrait' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/SendRequestTrait.php', - 'Obs\\Internal\\Signature\\AbstractSignature' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Signature/AbstractSignature.php', - 'Obs\\Internal\\Signature\\DefaultSignature' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Signature/DefaultSignature.php', - 'Obs\\Internal\\Signature\\SignatureInterface' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Signature/SignatureInterface.php', - 'Obs\\Internal\\Signature\\V4Signature' => $vendorDir . '/obs/esdk-obs-php/Obs/Internal/Signature/V4Signature.php', - 'Obs\\Log\\ObsConfig' => $vendorDir . '/obs/esdk-obs-php/Obs/Log/ObsConfig.php', - 'Obs\\Log\\ObsLog' => $vendorDir . '/obs/esdk-obs-php/Obs/Log/ObsLog.php', - 'Obs\\ObsClient' => $vendorDir . '/obs/esdk-obs-php/Obs/ObsClient.php', - 'Obs\\ObsException' => $vendorDir . '/obs/esdk-obs-php/Obs/ObsException.php', - 'OneSm\\Sm3' => $vendorDir . '/lizhichao/one-sm/src/Sm3.php', - 'OneSm\\Sm4' => $vendorDir . '/lizhichao/one-sm/src/Sm4.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Calculation' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Category' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Category.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DAverage' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DAverage.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DCount' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DCount.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DCountA' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DCountA.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DGet' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DGet.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DMax' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DMax.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DMin' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DMin.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DProduct' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DProduct.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DStDev' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DStDev.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DStDevP' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DStDevP.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DSum' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DSum.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DVar' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DVar.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DVarP' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DVarP.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DatabaseAbstract' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DatabaseAbstract.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTime.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engine\\CyclicReferenceStack' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/CyclicReferenceStack.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engine\\Logger' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/Logger.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\BesselI' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselI.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\BesselJ' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselJ.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\BesselK' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselK.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\BesselY' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselY.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\BitWise' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BitWise.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\Compare' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/Compare.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertBase' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertBase.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertBinary' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertBinary.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertDecimal' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertDecimal.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertHex' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertHex.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertOctal' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertOctal.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertUOM' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertUOM.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\Erf' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/Erf.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ErfC' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ErfC.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Exception' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Exception.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\ExceptionHandler' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/ExceptionHandler.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Financial' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\FormulaParser' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/FormulaParser.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\FormulaToken' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/FormulaToken.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Functions' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Functions.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Internal\\MakeMatrix' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Internal/MakeMatrix.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Internal\\WildcardMatch' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Internal/WildcardMatch.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Logical' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Logical\\Boolean' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical/Boolean.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Logical\\Conditional' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical/Conditional.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Logical\\Operations' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical/Operations.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Ceiling' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Ceiling.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\CeilingMath' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/CeilingMath.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\CeilingPrecise' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/CeilingPrecise.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Floor' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Floor.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\FloorMath' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/FloorMath.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\FloorPrecise' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/FloorPrecise.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\IntClass' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/IntClass.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Mround' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Mround.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Roman' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Roman.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Round' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Round.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\RoundDown' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/RoundDown.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\RoundUp' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/RoundUp.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Trunc' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Trunc.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\AggregateBase' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/AggregateBase.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Averages' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Averages.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Conditional' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Conditional.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Counts' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Counts.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\MaxMinBase' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/MaxMinBase.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Maximum' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Maximum.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Minimum' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Minimum.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Permutations' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Permutations.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\StandardDeviations' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/StandardDeviations.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\VarianceBase' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/VarianceBase.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Variances' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Variances.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\TextData' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Token\\Stack' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Token/Stack.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Web' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Web.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\AddressHelper' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/AddressHelper.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\AdvancedValueBinder' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/AdvancedValueBinder.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\Cell' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Cell.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\Coordinate' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Coordinate.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\DataType' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DataType.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\DataValidation' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DataValidation.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\DataValidator' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DataValidator.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\DefaultValueBinder' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DefaultValueBinder.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\Hyperlink' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Hyperlink.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\IValueBinder' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/IValueBinder.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\StringValueBinder' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/StringValueBinder.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Axis' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Axis.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Chart' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Chart.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\DataSeries' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/DataSeries.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\DataSeriesValues' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/DataSeriesValues.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Exception' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Exception.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\GridLines' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/GridLines.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Layout' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Layout.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Legend' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Legend.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\PlotArea' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/PlotArea.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Properties' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Properties.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Renderer\\IRenderer' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/IRenderer.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Renderer\\JpGraph' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/JpGraph.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Title' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Title.php', - 'PhpOffice\\PhpSpreadsheet\\Collection\\Cells' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Cells.php', - 'PhpOffice\\PhpSpreadsheet\\Collection\\CellsFactory' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/CellsFactory.php', - 'PhpOffice\\PhpSpreadsheet\\Collection\\Memory' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Memory.php', - 'PhpOffice\\PhpSpreadsheet\\Comment' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Comment.php', - 'PhpOffice\\PhpSpreadsheet\\DefinedName' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/DefinedName.php', - 'PhpOffice\\PhpSpreadsheet\\DocumentGenerator' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/DocumentGenerator.php', - 'PhpOffice\\PhpSpreadsheet\\Document\\Properties' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Document/Properties.php', - 'PhpOffice\\PhpSpreadsheet\\Document\\Security' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Document/Security.php', - 'PhpOffice\\PhpSpreadsheet\\Exception' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Exception.php', - 'PhpOffice\\PhpSpreadsheet\\HashTable' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/HashTable.php', - 'PhpOffice\\PhpSpreadsheet\\Helper\\Html' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Html.php', - 'PhpOffice\\PhpSpreadsheet\\Helper\\Sample' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Sample.php', - 'PhpOffice\\PhpSpreadsheet\\IComparable' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IComparable.php', - 'PhpOffice\\PhpSpreadsheet\\IOFactory' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IOFactory.php', - 'PhpOffice\\PhpSpreadsheet\\NamedFormula' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/NamedFormula.php', - 'PhpOffice\\PhpSpreadsheet\\NamedRange' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/NamedRange.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/BaseReader.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Csv' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Csv.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\DefaultReadFilter' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/DefaultReadFilter.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Exception' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Exception.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Gnumeric' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Gnumeric.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Gnumeric\\PageSetup' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Gnumeric/PageSetup.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Html' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Html.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\IReadFilter' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/IReadFilter.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\IReader' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/IReader.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Ods' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Ods\\PageSettings' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods/PageSettings.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Ods\\Properties' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods/Properties.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Security\\XmlScanner' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Security/XmlScanner.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Slk' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Slk.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Color' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Color\\BIFF5' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color/BIFF5.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Color\\BIFF8' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color/BIFF8.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Color\\BuiltIn' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color/BuiltIn.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\ErrorCode' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/ErrorCode.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Escher' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Escher.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\MD5' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/MD5.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\RC4' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/RC4.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Style\\Border' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Style/Border.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Style\\FillPattern' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Style/FillPattern.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\AutoFilter' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/AutoFilter.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\BaseParserClass' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/BaseParserClass.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\Chart' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Chart.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\ColumnAndRowAttributes' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/ColumnAndRowAttributes.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\ConditionalStyles' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/ConditionalStyles.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\DataValidations' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/DataValidations.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\Hyperlinks' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Hyperlinks.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\PageSetup' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/PageSetup.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\Properties' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Properties.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\SheetViewOptions' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/SheetViewOptions.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\SheetViews' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/SheetViews.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\Styles' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Styles.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\Theme' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Theme.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xml' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xml\\PageSettings' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/PageSettings.php', - 'PhpOffice\\PhpSpreadsheet\\ReferenceHelper' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/ReferenceHelper.php', - 'PhpOffice\\PhpSpreadsheet\\RichText\\ITextElement' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/ITextElement.php', - 'PhpOffice\\PhpSpreadsheet\\RichText\\RichText' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/RichText.php', - 'PhpOffice\\PhpSpreadsheet\\RichText\\Run' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/Run.php', - 'PhpOffice\\PhpSpreadsheet\\RichText\\TextElement' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/TextElement.php', - 'PhpOffice\\PhpSpreadsheet\\Settings' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Settings.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\CodePage' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/CodePage.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Date' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Date.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Drawing' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Drawing.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DgContainer' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DgContainer.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DgContainer\\SpgrContainer' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DgContainer/SpgrContainer.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DgContainer\\SpgrContainer\\SpContainer' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DggContainer' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DggContainer\\BstoreContainer' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DggContainer\\BstoreContainer\\BSE' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer/BSE.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DggContainer\\BstoreContainer\\BSE\\Blip' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\File' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/File.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Font' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Font.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\CholeskyDecomposition' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/CholeskyDecomposition.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\EigenvalueDecomposition' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/EigenvalueDecomposition.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\LUDecomposition' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/LUDecomposition.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\Matrix' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/Matrix.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\QRDecomposition' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/QRDecomposition.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\SingularValueDecomposition' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/SingularValueDecomposition.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLERead' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLERead.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE\\ChainedBlockStream' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/ChainedBlockStream.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE\\PPS' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE\\PPS\\File' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS/File.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE\\PPS\\Root' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS/Root.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\PasswordHasher' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/PasswordHasher.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\StringHelper' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/StringHelper.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\TimeZone' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/TimeZone.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\BestFit' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/BestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\ExponentialBestFit' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/ExponentialBestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\LinearBestFit' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/LinearBestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\LogarithmicBestFit' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/LogarithmicBestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\PolynomialBestFit' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\PowerBestFit' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/PowerBestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\Trend' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/Trend.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\XMLWriter' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/XMLWriter.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Xls' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Xls.php', - 'PhpOffice\\PhpSpreadsheet\\Spreadsheet' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Alignment' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Alignment.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Border' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Border.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Borders' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Borders.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Color' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Color.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Conditional' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Conditional.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\ConditionalFormatting\\ConditionalDataBar' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalDataBar.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\ConditionalFormatting\\ConditionalDataBarExtension' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalDataBarExtension.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\ConditionalFormatting\\ConditionalFormatValueObject' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalFormatValueObject.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\ConditionalFormatting\\ConditionalFormattingRuleExtension' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalFormattingRuleExtension.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Fill' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Fill.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Font' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Font.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\NumberFormat' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Protection' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Protection.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Style' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Style.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Supervisor' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Supervisor.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\AutoFilter' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\AutoFilter\\Column' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter/Column.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\AutoFilter\\Column\\Rule' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter/Column/Rule.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\BaseDrawing' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/BaseDrawing.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\CellIterator' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/CellIterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Column' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Column.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\ColumnCellIterator' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnCellIterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\ColumnDimension' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnDimension.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\ColumnIterator' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnIterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Dimension' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Dimension.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Drawing' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Drawing.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Drawing\\Shadow' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Drawing/Shadow.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\HeaderFooter' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/HeaderFooter.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\HeaderFooterDrawing' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/HeaderFooterDrawing.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Iterator' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Iterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\MemoryDrawing' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/MemoryDrawing.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\PageMargins' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/PageMargins.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\PageSetup' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/PageSetup.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Protection' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Protection.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Row' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Row.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\RowCellIterator' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowCellIterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\RowDimension' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowDimension.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\RowIterator' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowIterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\SheetView' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/SheetView.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Worksheet' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\BaseWriter' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/BaseWriter.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Csv' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Csv.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Exception' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Exception.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Html' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Html.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\IWriter' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/IWriter.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Cell\\Comment' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Cell/Comment.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Cell\\Style' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Cell/Style.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Content' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Content.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Formula' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Formula.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Meta' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Meta.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\MetaInf' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/MetaInf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Mimetype' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Mimetype.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\NamedExpressions' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/NamedExpressions.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Settings' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Settings.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Styles' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Styles.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Thumbnails' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Thumbnails.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\WriterPart' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/WriterPart.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Pdf' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Pdf\\Dompdf' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Dompdf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Pdf\\Mpdf' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Mpdf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Pdf\\Tcpdf' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Tcpdf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\BIFFwriter' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/BIFFwriter.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Escher' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Escher.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Font' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Font.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Parser' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Parser.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Workbook' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Workbook.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Worksheet' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Worksheet.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Xf' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Xf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Chart' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Chart.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Comments' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Comments.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\ContentTypes' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/ContentTypes.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\DefinedNames' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/DefinedNames.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\DocProps' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/DocProps.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Drawing' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Drawing.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Rels' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Rels.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\RelsRibbon' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/RelsRibbon.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\RelsVBA' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/RelsVBA.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\StringTable' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/StringTable.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Style' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Style.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Theme' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Theme.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Workbook' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Workbook.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Worksheet' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/WriterPart.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Xlfn' => $vendorDir . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Xlfn.php', - 'Psr\\Cache\\CacheException' => $vendorDir . '/psr/cache/src/CacheException.php', - 'Psr\\Cache\\CacheItemInterface' => $vendorDir . '/psr/cache/src/CacheItemInterface.php', - 'Psr\\Cache\\CacheItemPoolInterface' => $vendorDir . '/psr/cache/src/CacheItemPoolInterface.php', - 'Psr\\Cache\\InvalidArgumentException' => $vendorDir . '/psr/cache/src/InvalidArgumentException.php', - 'Psr\\Container\\ContainerExceptionInterface' => $vendorDir . '/psr/container/src/ContainerExceptionInterface.php', - 'Psr\\Container\\ContainerInterface' => $vendorDir . '/psr/container/src/ContainerInterface.php', - 'Psr\\Container\\NotFoundExceptionInterface' => $vendorDir . '/psr/container/src/NotFoundExceptionInterface.php', - 'Psr\\Http\\Client\\ClientExceptionInterface' => $vendorDir . '/psr/http-client/src/ClientExceptionInterface.php', - 'Psr\\Http\\Client\\ClientInterface' => $vendorDir . '/psr/http-client/src/ClientInterface.php', - 'Psr\\Http\\Client\\NetworkExceptionInterface' => $vendorDir . '/psr/http-client/src/NetworkExceptionInterface.php', - 'Psr\\Http\\Client\\RequestExceptionInterface' => $vendorDir . '/psr/http-client/src/RequestExceptionInterface.php', - 'Psr\\Http\\Message\\MessageInterface' => $vendorDir . '/psr/http-message/src/MessageInterface.php', - 'Psr\\Http\\Message\\RequestFactoryInterface' => $vendorDir . '/psr/http-factory/src/RequestFactoryInterface.php', - 'Psr\\Http\\Message\\RequestInterface' => $vendorDir . '/psr/http-message/src/RequestInterface.php', - 'Psr\\Http\\Message\\ResponseFactoryInterface' => $vendorDir . '/psr/http-factory/src/ResponseFactoryInterface.php', - 'Psr\\Http\\Message\\ResponseInterface' => $vendorDir . '/psr/http-message/src/ResponseInterface.php', - 'Psr\\Http\\Message\\ServerRequestFactoryInterface' => $vendorDir . '/psr/http-factory/src/ServerRequestFactoryInterface.php', - 'Psr\\Http\\Message\\ServerRequestInterface' => $vendorDir . '/psr/http-message/src/ServerRequestInterface.php', - 'Psr\\Http\\Message\\StreamFactoryInterface' => $vendorDir . '/psr/http-factory/src/StreamFactoryInterface.php', - 'Psr\\Http\\Message\\StreamInterface' => $vendorDir . '/psr/http-message/src/StreamInterface.php', - 'Psr\\Http\\Message\\UploadedFileFactoryInterface' => $vendorDir . '/psr/http-factory/src/UploadedFileFactoryInterface.php', - 'Psr\\Http\\Message\\UploadedFileInterface' => $vendorDir . '/psr/http-message/src/UploadedFileInterface.php', - 'Psr\\Http\\Message\\UriFactoryInterface' => $vendorDir . '/psr/http-factory/src/UriFactoryInterface.php', - 'Psr\\Http\\Message\\UriInterface' => $vendorDir . '/psr/http-message/src/UriInterface.php', - 'Psr\\Log\\AbstractLogger' => $vendorDir . '/psr/log/Psr/Log/AbstractLogger.php', - 'Psr\\Log\\InvalidArgumentException' => $vendorDir . '/psr/log/Psr/Log/InvalidArgumentException.php', - 'Psr\\Log\\LogLevel' => $vendorDir . '/psr/log/Psr/Log/LogLevel.php', - 'Psr\\Log\\LoggerAwareInterface' => $vendorDir . '/psr/log/Psr/Log/LoggerAwareInterface.php', - 'Psr\\Log\\LoggerAwareTrait' => $vendorDir . '/psr/log/Psr/Log/LoggerAwareTrait.php', - 'Psr\\Log\\LoggerInterface' => $vendorDir . '/psr/log/Psr/Log/LoggerInterface.php', - 'Psr\\Log\\LoggerTrait' => $vendorDir . '/psr/log/Psr/Log/LoggerTrait.php', - 'Psr\\Log\\NullLogger' => $vendorDir . '/psr/log/Psr/Log/NullLogger.php', - 'Psr\\Log\\Test\\DummyTest' => $vendorDir . '/psr/log/Psr/Log/Test/DummyTest.php', - 'Psr\\Log\\Test\\LoggerInterfaceTest' => $vendorDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php', - 'Psr\\Log\\Test\\TestLogger' => $vendorDir . '/psr/log/Psr/Log/Test/TestLogger.php', - 'Psr\\SimpleCache\\CacheException' => $vendorDir . '/psr/simple-cache/src/CacheException.php', - 'Psr\\SimpleCache\\CacheInterface' => $vendorDir . '/psr/simple-cache/src/CacheInterface.php', - 'Psr\\SimpleCache\\InvalidArgumentException' => $vendorDir . '/psr/simple-cache/src/InvalidArgumentException.php', - 'Qcloud\\Cos\\Client' => $vendorDir . '/qcloud/cos-sdk-v5/src/Client.php', - 'Qcloud\\Cos\\CommandToRequestTransformer' => $vendorDir . '/qcloud/cos-sdk-v5/src/CommandToRequestTransformer.php', - 'Qcloud\\Cos\\Copy' => $vendorDir . '/qcloud/cos-sdk-v5/src/Copy.php', - 'Qcloud\\Cos\\Descriptions' => $vendorDir . '/qcloud/cos-sdk-v5/src/Descriptions.php', - 'Qcloud\\Cos\\ExceptionMiddleware' => $vendorDir . '/qcloud/cos-sdk-v5/src/ExceptionMiddleware.php', - 'Qcloud\\Cos\\ExceptionParser' => $vendorDir . '/qcloud/cos-sdk-v5/src/ExceptionParser.php', - 'Qcloud\\Cos\\Exception\\CosException' => $vendorDir . '/qcloud/cos-sdk-v5/src/Exception/CosException.php', - 'Qcloud\\Cos\\Exception\\ServiceResponseException' => $vendorDir . '/qcloud/cos-sdk-v5/src/Exception/ServiceResponseException.php', - 'Qcloud\\Cos\\ImageParamTemplate\\BlindWatermarkTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/BlindWatermarkTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\CIParamTransformation' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/CIParamTransformation.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageMogrTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageMogrTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageQrcodeTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageQrcodeTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageStyleTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageStyleTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageViewTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageViewTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageWatermarkTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageWatermarkTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\PicOperationsTransformation' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/PicOperationsTransformation.php', - 'Qcloud\\Cos\\ImageParamTemplate\\TextWatermarkTemplate' => $vendorDir . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/TextWatermarkTemplate.php', - 'Qcloud\\Cos\\MultipartUpload' => $vendorDir . '/qcloud/cos-sdk-v5/src/MultipartUpload.php', - 'Qcloud\\Cos\\RangeDownload' => $vendorDir . '/qcloud/cos-sdk-v5/src/RangeDownload.php', - 'Qcloud\\Cos\\Request\\BodyLocation' => $vendorDir . '/qcloud/cos-sdk-v5/src/Request/BodyLocation.php', - 'Qcloud\\Cos\\ResultTransformer' => $vendorDir . '/qcloud/cos-sdk-v5/src/ResultTransformer.php', - 'Qcloud\\Cos\\Serializer' => $vendorDir . '/qcloud/cos-sdk-v5/src/Serializer.php', - 'Qcloud\\Cos\\Service' => $vendorDir . '/qcloud/cos-sdk-v5/src/Service.php', - 'Qcloud\\Cos\\Signature' => $vendorDir . '/qcloud/cos-sdk-v5/src/Signature.php', - 'Qcloud\\Cos\\SignatureMiddleware' => $vendorDir . '/qcloud/cos-sdk-v5/src/SignatureMiddleware.php', - 'Qiniu\\Auth' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Auth.php', - 'Qiniu\\Cdn\\CdnManager' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Cdn/CdnManager.php', - 'Qiniu\\Config' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Config.php', - 'Qiniu\\Etag' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Etag.php', - 'Qiniu\\Http\\Client' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Http/Client.php', - 'Qiniu\\Http\\Error' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Http/Error.php', - 'Qiniu\\Http\\Request' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Http/Request.php', - 'Qiniu\\Http\\Response' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Http/Response.php', - 'Qiniu\\Processing\\ImageUrlBuilder' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Processing/ImageUrlBuilder.php', - 'Qiniu\\Processing\\Operation' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Processing/Operation.php', - 'Qiniu\\Processing\\PersistentFop' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Processing/PersistentFop.php', - 'Qiniu\\Region' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Region.php', - 'Qiniu\\Rtc\\AppClient' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Rtc/AppClient.php', - 'Qiniu\\Sms\\Sms' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Sms/Sms.php', - 'Qiniu\\Storage\\ArgusManager' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Storage/ArgusManager.php', - 'Qiniu\\Storage\\BucketManager' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Storage/BucketManager.php', - 'Qiniu\\Storage\\FormUploader' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Storage/FormUploader.php', - 'Qiniu\\Storage\\ResumeUploader' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Storage/ResumeUploader.php', - 'Qiniu\\Storage\\UploadManager' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Storage/UploadManager.php', - 'Qiniu\\Zone' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/Zone.php', + 'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php', 'Stringable' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Stringable.php', - 'Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher' => $vendorDir . '/symfony/event-dispatcher/ContainerAwareEventDispatcher.php', - 'Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher' => $vendorDir . '/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php', - 'Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcherInterface' => $vendorDir . '/symfony/event-dispatcher/Debug/TraceableEventDispatcherInterface.php', - 'Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener' => $vendorDir . '/symfony/event-dispatcher/Debug/WrappedListener.php', - 'Symfony\\Component\\EventDispatcher\\DependencyInjection\\RegisterListenersPass' => $vendorDir . '/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php', - 'Symfony\\Component\\EventDispatcher\\Event' => $vendorDir . '/symfony/event-dispatcher/Event.php', - 'Symfony\\Component\\EventDispatcher\\EventDispatcher' => $vendorDir . '/symfony/event-dispatcher/EventDispatcher.php', - 'Symfony\\Component\\EventDispatcher\\EventDispatcherInterface' => $vendorDir . '/symfony/event-dispatcher/EventDispatcherInterface.php', - 'Symfony\\Component\\EventDispatcher\\EventSubscriberInterface' => $vendorDir . '/symfony/event-dispatcher/EventSubscriberInterface.php', - 'Symfony\\Component\\EventDispatcher\\GenericEvent' => $vendorDir . '/symfony/event-dispatcher/GenericEvent.php', - 'Symfony\\Component\\EventDispatcher\\ImmutableEventDispatcher' => $vendorDir . '/symfony/event-dispatcher/ImmutableEventDispatcher.php', - 'Symfony\\Component\\VarDumper\\Caster\\AmqpCaster' => $vendorDir . '/symfony/var-dumper/Caster/AmqpCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ArgsStub' => $vendorDir . '/symfony/var-dumper/Caster/ArgsStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\Caster' => $vendorDir . '/symfony/var-dumper/Caster/Caster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ClassStub' => $vendorDir . '/symfony/var-dumper/Caster/ClassStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' => $vendorDir . '/symfony/var-dumper/Caster/ConstStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\CutArrayStub' => $vendorDir . '/symfony/var-dumper/Caster/CutArrayStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\CutStub' => $vendorDir . '/symfony/var-dumper/Caster/CutStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\DOMCaster' => $vendorDir . '/symfony/var-dumper/Caster/DOMCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\DateCaster' => $vendorDir . '/symfony/var-dumper/Caster/DateCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\DoctrineCaster' => $vendorDir . '/symfony/var-dumper/Caster/DoctrineCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\DsCaster' => $vendorDir . '/symfony/var-dumper/Caster/DsCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\DsPairStub' => $vendorDir . '/symfony/var-dumper/Caster/DsPairStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\EnumStub' => $vendorDir . '/symfony/var-dumper/Caster/EnumStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\ExceptionCaster' => $vendorDir . '/symfony/var-dumper/Caster/ExceptionCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\FrameStub' => $vendorDir . '/symfony/var-dumper/Caster/FrameStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\GmpCaster' => $vendorDir . '/symfony/var-dumper/Caster/GmpCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ImagineCaster' => $vendorDir . '/symfony/var-dumper/Caster/ImagineCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ImgStub' => $vendorDir . '/symfony/var-dumper/Caster/ImgStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\IntlCaster' => $vendorDir . '/symfony/var-dumper/Caster/IntlCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\LinkStub' => $vendorDir . '/symfony/var-dumper/Caster/LinkStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\MemcachedCaster' => $vendorDir . '/symfony/var-dumper/Caster/MemcachedCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\PdoCaster' => $vendorDir . '/symfony/var-dumper/Caster/PdoCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\PgSqlCaster' => $vendorDir . '/symfony/var-dumper/Caster/PgSqlCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ProxyManagerCaster' => $vendorDir . '/symfony/var-dumper/Caster/ProxyManagerCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\RedisCaster' => $vendorDir . '/symfony/var-dumper/Caster/RedisCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ReflectionCaster' => $vendorDir . '/symfony/var-dumper/Caster/ReflectionCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ResourceCaster' => $vendorDir . '/symfony/var-dumper/Caster/ResourceCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\SplCaster' => $vendorDir . '/symfony/var-dumper/Caster/SplCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\StubCaster' => $vendorDir . '/symfony/var-dumper/Caster/StubCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\SymfonyCaster' => $vendorDir . '/symfony/var-dumper/Caster/SymfonyCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\TraceStub' => $vendorDir . '/symfony/var-dumper/Caster/TraceStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\UuidCaster' => $vendorDir . '/symfony/var-dumper/Caster/UuidCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\XmlReaderCaster' => $vendorDir . '/symfony/var-dumper/Caster/XmlReaderCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\XmlResourceCaster' => $vendorDir . '/symfony/var-dumper/Caster/XmlResourceCaster.php', - 'Symfony\\Component\\VarDumper\\Cloner\\AbstractCloner' => $vendorDir . '/symfony/var-dumper/Cloner/AbstractCloner.php', - 'Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface' => $vendorDir . '/symfony/var-dumper/Cloner/ClonerInterface.php', - 'Symfony\\Component\\VarDumper\\Cloner\\Cursor' => $vendorDir . '/symfony/var-dumper/Cloner/Cursor.php', - 'Symfony\\Component\\VarDumper\\Cloner\\Data' => $vendorDir . '/symfony/var-dumper/Cloner/Data.php', - 'Symfony\\Component\\VarDumper\\Cloner\\DumperInterface' => $vendorDir . '/symfony/var-dumper/Cloner/DumperInterface.php', - 'Symfony\\Component\\VarDumper\\Cloner\\Stub' => $vendorDir . '/symfony/var-dumper/Cloner/Stub.php', - 'Symfony\\Component\\VarDumper\\Cloner\\VarCloner' => $vendorDir . '/symfony/var-dumper/Cloner/VarCloner.php', - 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\CliDescriptor' => $vendorDir . '/symfony/var-dumper/Command/Descriptor/CliDescriptor.php', - 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\DumpDescriptorInterface' => $vendorDir . '/symfony/var-dumper/Command/Descriptor/DumpDescriptorInterface.php', - 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\HtmlDescriptor' => $vendorDir . '/symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php', - 'Symfony\\Component\\VarDumper\\Command\\ServerDumpCommand' => $vendorDir . '/symfony/var-dumper/Command/ServerDumpCommand.php', - 'Symfony\\Component\\VarDumper\\Dumper\\AbstractDumper' => $vendorDir . '/symfony/var-dumper/Dumper/AbstractDumper.php', - 'Symfony\\Component\\VarDumper\\Dumper\\CliDumper' => $vendorDir . '/symfony/var-dumper/Dumper/CliDumper.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\CliContextProvider' => $vendorDir . '/symfony/var-dumper/Dumper/ContextProvider/CliContextProvider.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface' => $vendorDir . '/symfony/var-dumper/Dumper/ContextProvider/ContextProviderInterface.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\RequestContextProvider' => $vendorDir . '/symfony/var-dumper/Dumper/ContextProvider/RequestContextProvider.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\SourceContextProvider' => $vendorDir . '/symfony/var-dumper/Dumper/ContextProvider/SourceContextProvider.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ContextualizedDumper' => $vendorDir . '/symfony/var-dumper/Dumper/ContextualizedDumper.php', - 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' => $vendorDir . '/symfony/var-dumper/Dumper/DataDumperInterface.php', - 'Symfony\\Component\\VarDumper\\Dumper\\HtmlDumper' => $vendorDir . '/symfony/var-dumper/Dumper/HtmlDumper.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ServerDumper' => $vendorDir . '/symfony/var-dumper/Dumper/ServerDumper.php', - 'Symfony\\Component\\VarDumper\\Exception\\ThrowingCasterException' => $vendorDir . '/symfony/var-dumper/Exception/ThrowingCasterException.php', - 'Symfony\\Component\\VarDumper\\Server\\Connection' => $vendorDir . '/symfony/var-dumper/Server/Connection.php', - 'Symfony\\Component\\VarDumper\\Server\\DumpServer' => $vendorDir . '/symfony/var-dumper/Server/DumpServer.php', - 'Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait' => $vendorDir . '/symfony/var-dumper/Test/VarDumperTestTrait.php', - 'Symfony\\Component\\VarDumper\\VarDumper' => $vendorDir . '/symfony/var-dumper/VarDumper.php', - 'Symfony\\Polyfill\\Mbstring\\Mbstring' => $vendorDir . '/symfony/polyfill-mbstring/Mbstring.php', - 'Symfony\\Polyfill\\Php72\\Php72' => $vendorDir . '/symfony/polyfill-php72/Php72.php', - 'Symfony\\Polyfill\\Php80\\Php80' => $vendorDir . '/symfony/polyfill-php80/Php80.php', 'UnhandledMatchError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php', - 'Upyun\\Api\\Form' => $vendorDir . '/upyun/sdk/src/Upyun/Api/Form.php', - 'Upyun\\Api\\Pretreat' => $vendorDir . '/upyun/sdk/src/Upyun/Api/Pretreat.php', - 'Upyun\\Api\\Rest' => $vendorDir . '/upyun/sdk/src/Upyun/Api/Rest.php', - 'Upyun\\Api\\SyncVideo' => $vendorDir . '/upyun/sdk/src/Upyun/Api/SyncVideo.php', - 'Upyun\\Config' => $vendorDir . '/upyun/sdk/src/Upyun/Config.php', - 'Upyun\\Signature' => $vendorDir . '/upyun/sdk/src/Upyun/Signature.php', - 'Upyun\\Uploader' => $vendorDir . '/upyun/sdk/src/Upyun/Uploader.php', - 'Upyun\\Upyun' => $vendorDir . '/upyun/sdk/src/Upyun/Upyun.php', - 'Upyun\\Util' => $vendorDir . '/upyun/sdk/src/Upyun/Util.php', 'ValueError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/ValueError.php', - 'ZipStream\\Bigint' => $vendorDir . '/maennchen/zipstream-php/src/Bigint.php', - 'ZipStream\\DeflateStream' => $vendorDir . '/maennchen/zipstream-php/src/DeflateStream.php', - 'ZipStream\\Exception' => $vendorDir . '/maennchen/zipstream-php/src/Exception.php', - 'ZipStream\\Exception\\EncodingException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/EncodingException.php', - 'ZipStream\\Exception\\FileNotFoundException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/FileNotFoundException.php', - 'ZipStream\\Exception\\FileNotReadableException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/FileNotReadableException.php', - 'ZipStream\\Exception\\IncompatibleOptionsException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/IncompatibleOptionsException.php', - 'ZipStream\\Exception\\OverflowException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/OverflowException.php', - 'ZipStream\\Exception\\StreamNotReadableException' => $vendorDir . '/maennchen/zipstream-php/src/Exception/StreamNotReadableException.php', - 'ZipStream\\File' => $vendorDir . '/maennchen/zipstream-php/src/File.php', - 'ZipStream\\Option\\Archive' => $vendorDir . '/maennchen/zipstream-php/src/Option/Archive.php', - 'ZipStream\\Option\\File' => $vendorDir . '/maennchen/zipstream-php/src/Option/File.php', - 'ZipStream\\Option\\Method' => $vendorDir . '/maennchen/zipstream-php/src/Option/Method.php', - 'ZipStream\\Option\\Version' => $vendorDir . '/maennchen/zipstream-php/src/Option/Version.php', - 'ZipStream\\Stream' => $vendorDir . '/maennchen/zipstream-php/src/Stream.php', - 'ZipStream\\ZipStream' => $vendorDir . '/maennchen/zipstream-php/src/ZipStream.php', - 'think\\App' => $vendorDir . '/topthink/framework/src/think/App.php', - 'think\\Cache' => $vendorDir . '/topthink/framework/src/think/Cache.php', - 'think\\Collection' => $vendorDir . '/topthink/think-helper/src/Collection.php', - 'think\\Config' => $vendorDir . '/topthink/framework/src/think/Config.php', - 'think\\Console' => $vendorDir . '/topthink/framework/src/think/Console.php', - 'think\\Container' => $vendorDir . '/topthink/framework/src/think/Container.php', - 'think\\Cookie' => $vendorDir . '/topthink/framework/src/think/Cookie.php', - 'think\\Db' => $vendorDir . '/topthink/framework/src/think/Db.php', - 'think\\DbManager' => $vendorDir . '/topthink/think-orm/src/DbManager.php', - 'think\\Env' => $vendorDir . '/topthink/framework/src/think/Env.php', - 'think\\Event' => $vendorDir . '/topthink/framework/src/think/Event.php', - 'think\\Exception' => $vendorDir . '/topthink/framework/src/think/Exception.php', - 'think\\Facade' => $vendorDir . '/topthink/framework/src/think/Facade.php', - 'think\\File' => $vendorDir . '/topthink/framework/src/think/File.php', - 'think\\Filesystem' => $vendorDir . '/topthink/framework/src/think/Filesystem.php', - 'think\\Http' => $vendorDir . '/topthink/framework/src/think/Http.php', - 'think\\Lang' => $vendorDir . '/topthink/framework/src/think/Lang.php', - 'think\\Log' => $vendorDir . '/topthink/framework/src/think/Log.php', - 'think\\Manager' => $vendorDir . '/topthink/framework/src/think/Manager.php', - 'think\\Middleware' => $vendorDir . '/topthink/framework/src/think/Middleware.php', - 'think\\Model' => $vendorDir . '/topthink/think-orm/src/Model.php', - 'think\\Paginator' => $vendorDir . '/topthink/think-orm/src/Paginator.php', - 'think\\Pipeline' => $vendorDir . '/topthink/framework/src/think/Pipeline.php', - 'think\\Request' => $vendorDir . '/topthink/framework/src/think/Request.php', - 'think\\Response' => $vendorDir . '/topthink/framework/src/think/Response.php', - 'think\\Route' => $vendorDir . '/topthink/framework/src/think/Route.php', - 'think\\Service' => $vendorDir . '/topthink/framework/src/think/Service.php', - 'think\\Session' => $vendorDir . '/topthink/framework/src/think/Session.php', - 'think\\Validate' => $vendorDir . '/topthink/framework/src/think/Validate.php', - 'think\\View' => $vendorDir . '/topthink/framework/src/think/View.php', - 'think\\cache\\Driver' => $vendorDir . '/topthink/framework/src/think/cache/Driver.php', - 'think\\cache\\TagSet' => $vendorDir . '/topthink/framework/src/think/cache/TagSet.php', - 'think\\cache\\driver\\File' => $vendorDir . '/topthink/framework/src/think/cache/driver/File.php', - 'think\\cache\\driver\\Memcache' => $vendorDir . '/topthink/framework/src/think/cache/driver/Memcache.php', - 'think\\cache\\driver\\Memcached' => $vendorDir . '/topthink/framework/src/think/cache/driver/Memcached.php', - 'think\\cache\\driver\\Redis' => $vendorDir . '/topthink/framework/src/think/cache/driver/Redis.php', - 'think\\cache\\driver\\Wincache' => $vendorDir . '/topthink/framework/src/think/cache/driver/Wincache.php', - 'think\\console\\Command' => $vendorDir . '/topthink/framework/src/think/console/Command.php', - 'think\\console\\Input' => $vendorDir . '/topthink/framework/src/think/console/Input.php', - 'think\\console\\Output' => $vendorDir . '/topthink/framework/src/think/console/Output.php', - 'think\\console\\Table' => $vendorDir . '/topthink/framework/src/think/console/Table.php', - 'think\\console\\command\\Clear' => $vendorDir . '/topthink/framework/src/think/console/command/Clear.php', - 'think\\console\\command\\Help' => $vendorDir . '/topthink/framework/src/think/console/command/Help.php', - 'think\\console\\command\\Lists' => $vendorDir . '/topthink/framework/src/think/console/command/Lists.php', - 'think\\console\\command\\Make' => $vendorDir . '/topthink/framework/src/think/console/command/Make.php', - 'think\\console\\command\\RouteList' => $vendorDir . '/topthink/framework/src/think/console/command/RouteList.php', - 'think\\console\\command\\RunServer' => $vendorDir . '/topthink/framework/src/think/console/command/RunServer.php', - 'think\\console\\command\\ServiceDiscover' => $vendorDir . '/topthink/framework/src/think/console/command/ServiceDiscover.php', - 'think\\console\\command\\VendorPublish' => $vendorDir . '/topthink/framework/src/think/console/command/VendorPublish.php', - 'think\\console\\command\\Version' => $vendorDir . '/topthink/framework/src/think/console/command/Version.php', - 'think\\console\\command\\make\\Command' => $vendorDir . '/topthink/framework/src/think/console/command/make/Command.php', - 'think\\console\\command\\make\\Controller' => $vendorDir . '/topthink/framework/src/think/console/command/make/Controller.php', - 'think\\console\\command\\make\\Event' => $vendorDir . '/topthink/framework/src/think/console/command/make/Event.php', - 'think\\console\\command\\make\\Listener' => $vendorDir . '/topthink/framework/src/think/console/command/make/Listener.php', - 'think\\console\\command\\make\\Middleware' => $vendorDir . '/topthink/framework/src/think/console/command/make/Middleware.php', - 'think\\console\\command\\make\\Model' => $vendorDir . '/topthink/framework/src/think/console/command/make/Model.php', - 'think\\console\\command\\make\\Service' => $vendorDir . '/topthink/framework/src/think/console/command/make/Service.php', - 'think\\console\\command\\make\\Subscribe' => $vendorDir . '/topthink/framework/src/think/console/command/make/Subscribe.php', - 'think\\console\\command\\make\\Validate' => $vendorDir . '/topthink/framework/src/think/console/command/make/Validate.php', - 'think\\console\\command\\optimize\\Route' => $vendorDir . '/topthink/framework/src/think/console/command/optimize/Route.php', - 'think\\console\\command\\optimize\\Schema' => $vendorDir . '/topthink/framework/src/think/console/command/optimize/Schema.php', - 'think\\console\\input\\Argument' => $vendorDir . '/topthink/framework/src/think/console/input/Argument.php', - 'think\\console\\input\\Definition' => $vendorDir . '/topthink/framework/src/think/console/input/Definition.php', - 'think\\console\\input\\Option' => $vendorDir . '/topthink/framework/src/think/console/input/Option.php', - 'think\\console\\output\\Ask' => $vendorDir . '/topthink/framework/src/think/console/output/Ask.php', - 'think\\console\\output\\Descriptor' => $vendorDir . '/topthink/framework/src/think/console/output/Descriptor.php', - 'think\\console\\output\\Formatter' => $vendorDir . '/topthink/framework/src/think/console/output/Formatter.php', - 'think\\console\\output\\Question' => $vendorDir . '/topthink/framework/src/think/console/output/Question.php', - 'think\\console\\output\\descriptor\\Console' => $vendorDir . '/topthink/framework/src/think/console/output/descriptor/Console.php', - 'think\\console\\output\\driver\\Buffer' => $vendorDir . '/topthink/framework/src/think/console/output/driver/Buffer.php', - 'think\\console\\output\\driver\\Console' => $vendorDir . '/topthink/framework/src/think/console/output/driver/Console.php', - 'think\\console\\output\\driver\\Nothing' => $vendorDir . '/topthink/framework/src/think/console/output/driver/Nothing.php', - 'think\\console\\output\\formatter\\Stack' => $vendorDir . '/topthink/framework/src/think/console/output/formatter/Stack.php', - 'think\\console\\output\\formatter\\Style' => $vendorDir . '/topthink/framework/src/think/console/output/formatter/Style.php', - 'think\\console\\output\\question\\Choice' => $vendorDir . '/topthink/framework/src/think/console/output/question/Choice.php', - 'think\\console\\output\\question\\Confirmation' => $vendorDir . '/topthink/framework/src/think/console/output/question/Confirmation.php', - 'think\\contract\\Arrayable' => $vendorDir . '/topthink/think-helper/src/contract/Arrayable.php', - 'think\\contract\\CacheHandlerInterface' => $vendorDir . '/topthink/framework/src/think/contract/CacheHandlerInterface.php', - 'think\\contract\\Jsonable' => $vendorDir . '/topthink/think-helper/src/contract/Jsonable.php', - 'think\\contract\\LogHandlerInterface' => $vendorDir . '/topthink/framework/src/think/contract/LogHandlerInterface.php', - 'think\\contract\\ModelRelationInterface' => $vendorDir . '/topthink/framework/src/think/contract/ModelRelationInterface.php', - 'think\\contract\\SessionHandlerInterface' => $vendorDir . '/topthink/framework/src/think/contract/SessionHandlerInterface.php', - 'think\\contract\\TemplateHandlerInterface' => $vendorDir . '/topthink/framework/src/think/contract/TemplateHandlerInterface.php', - 'think\\db\\BaseQuery' => $vendorDir . '/topthink/think-orm/src/db/BaseQuery.php', - 'think\\db\\Builder' => $vendorDir . '/topthink/think-orm/src/db/Builder.php', - 'think\\db\\CacheItem' => $vendorDir . '/topthink/think-orm/src/db/CacheItem.php', - 'think\\db\\Connection' => $vendorDir . '/topthink/think-orm/src/db/Connection.php', - 'think\\db\\ConnectionInterface' => $vendorDir . '/topthink/think-orm/src/db/ConnectionInterface.php', - 'think\\db\\Fetch' => $vendorDir . '/topthink/think-orm/src/db/Fetch.php', - 'think\\db\\Mongo' => $vendorDir . '/topthink/think-orm/src/db/Mongo.php', - 'think\\db\\PDOConnection' => $vendorDir . '/topthink/think-orm/src/db/PDOConnection.php', - 'think\\db\\Query' => $vendorDir . '/topthink/think-orm/src/db/Query.php', - 'think\\db\\Raw' => $vendorDir . '/topthink/think-orm/src/db/Raw.php', - 'think\\db\\Where' => $vendorDir . '/topthink/think-orm/src/db/Where.php', - 'think\\db\\builder\\Mongo' => $vendorDir . '/topthink/think-orm/src/db/builder/Mongo.php', - 'think\\db\\builder\\Mysql' => $vendorDir . '/topthink/think-orm/src/db/builder/Mysql.php', - 'think\\db\\builder\\Oracle' => $vendorDir . '/topthink/think-orm/src/db/builder/Oracle.php', - 'think\\db\\builder\\Pgsql' => $vendorDir . '/topthink/think-orm/src/db/builder/Pgsql.php', - 'think\\db\\builder\\Sqlite' => $vendorDir . '/topthink/think-orm/src/db/builder/Sqlite.php', - 'think\\db\\builder\\Sqlsrv' => $vendorDir . '/topthink/think-orm/src/db/builder/Sqlsrv.php', - 'think\\db\\concern\\AggregateQuery' => $vendorDir . '/topthink/think-orm/src/db/concern/AggregateQuery.php', - 'think\\db\\concern\\JoinAndViewQuery' => $vendorDir . '/topthink/think-orm/src/db/concern/JoinAndViewQuery.php', - 'think\\db\\concern\\ModelRelationQuery' => $vendorDir . '/topthink/think-orm/src/db/concern/ModelRelationQuery.php', - 'think\\db\\concern\\ParamsBind' => $vendorDir . '/topthink/think-orm/src/db/concern/ParamsBind.php', - 'think\\db\\concern\\ResultOperation' => $vendorDir . '/topthink/think-orm/src/db/concern/ResultOperation.php', - 'think\\db\\concern\\TableFieldInfo' => $vendorDir . '/topthink/think-orm/src/db/concern/TableFieldInfo.php', - 'think\\db\\concern\\TimeFieldQuery' => $vendorDir . '/topthink/think-orm/src/db/concern/TimeFieldQuery.php', - 'think\\db\\concern\\Transaction' => $vendorDir . '/topthink/think-orm/src/db/concern/Transaction.php', - 'think\\db\\concern\\WhereQuery' => $vendorDir . '/topthink/think-orm/src/db/concern/WhereQuery.php', - 'think\\db\\connector\\Mongo' => $vendorDir . '/topthink/think-orm/src/db/connector/Mongo.php', - 'think\\db\\connector\\Mysql' => $vendorDir . '/topthink/think-orm/src/db/connector/Mysql.php', - 'think\\db\\connector\\Oracle' => $vendorDir . '/topthink/think-orm/src/db/connector/Oracle.php', - 'think\\db\\connector\\Pgsql' => $vendorDir . '/topthink/think-orm/src/db/connector/Pgsql.php', - 'think\\db\\connector\\Sqlite' => $vendorDir . '/topthink/think-orm/src/db/connector/Sqlite.php', - 'think\\db\\connector\\Sqlsrv' => $vendorDir . '/topthink/think-orm/src/db/connector/Sqlsrv.php', - 'think\\db\\exception\\BindParamException' => $vendorDir . '/topthink/think-orm/src/db/exception/BindParamException.php', - 'think\\db\\exception\\DataNotFoundException' => $vendorDir . '/topthink/think-orm/src/db/exception/DataNotFoundException.php', - 'think\\db\\exception\\DbEventException' => $vendorDir . '/topthink/think-orm/src/db/exception/DbEventException.php', - 'think\\db\\exception\\DbException' => $vendorDir . '/topthink/think-orm/src/db/exception/DbException.php', - 'think\\db\\exception\\InvalidArgumentException' => $vendorDir . '/topthink/think-orm/src/db/exception/InvalidArgumentException.php', - 'think\\db\\exception\\ModelEventException' => $vendorDir . '/topthink/think-orm/src/db/exception/ModelEventException.php', - 'think\\db\\exception\\ModelNotFoundException' => $vendorDir . '/topthink/think-orm/src/db/exception/ModelNotFoundException.php', - 'think\\db\\exception\\PDOException' => $vendorDir . '/topthink/think-orm/src/db/exception/PDOException.php', - 'think\\event\\AppInit' => $vendorDir . '/topthink/framework/src/think/event/AppInit.php', - 'think\\event\\HttpEnd' => $vendorDir . '/topthink/framework/src/think/event/HttpEnd.php', - 'think\\event\\HttpRun' => $vendorDir . '/topthink/framework/src/think/event/HttpRun.php', - 'think\\event\\LogRecord' => $vendorDir . '/topthink/framework/src/think/event/LogRecord.php', - 'think\\event\\LogWrite' => $vendorDir . '/topthink/framework/src/think/event/LogWrite.php', - 'think\\event\\RouteLoaded' => $vendorDir . '/topthink/framework/src/think/event/RouteLoaded.php', - 'think\\exception\\ClassNotFoundException' => $vendorDir . '/topthink/framework/src/think/exception/ClassNotFoundException.php', - 'think\\exception\\ErrorException' => $vendorDir . '/topthink/framework/src/think/exception/ErrorException.php', - 'think\\exception\\FileException' => $vendorDir . '/topthink/framework/src/think/exception/FileException.php', - 'think\\exception\\FuncNotFoundException' => $vendorDir . '/topthink/framework/src/think/exception/FuncNotFoundException.php', - 'think\\exception\\Handle' => $vendorDir . '/topthink/framework/src/think/exception/Handle.php', - 'think\\exception\\HttpException' => $vendorDir . '/topthink/framework/src/think/exception/HttpException.php', - 'think\\exception\\HttpResponseException' => $vendorDir . '/topthink/framework/src/think/exception/HttpResponseException.php', - 'think\\exception\\InvalidArgumentException' => $vendorDir . '/topthink/framework/src/think/exception/InvalidArgumentException.php', - 'think\\exception\\RouteNotFoundException' => $vendorDir . '/topthink/framework/src/think/exception/RouteNotFoundException.php', - 'think\\exception\\ValidateException' => $vendorDir . '/topthink/framework/src/think/exception/ValidateException.php', - 'think\\facade\\App' => $vendorDir . '/topthink/framework/src/think/facade/App.php', - 'think\\facade\\Cache' => $vendorDir . '/topthink/framework/src/think/facade/Cache.php', - 'think\\facade\\Config' => $vendorDir . '/topthink/framework/src/think/facade/Config.php', - 'think\\facade\\Console' => $vendorDir . '/topthink/framework/src/think/facade/Console.php', - 'think\\facade\\Cookie' => $vendorDir . '/topthink/framework/src/think/facade/Cookie.php', - 'think\\facade\\Db' => $vendorDir . '/topthink/think-orm/src/facade/Db.php', - 'think\\facade\\Env' => $vendorDir . '/topthink/framework/src/think/facade/Env.php', - 'think\\facade\\Event' => $vendorDir . '/topthink/framework/src/think/facade/Event.php', - 'think\\facade\\Filesystem' => $vendorDir . '/topthink/framework/src/think/facade/Filesystem.php', - 'think\\facade\\Lang' => $vendorDir . '/topthink/framework/src/think/facade/Lang.php', - 'think\\facade\\Log' => $vendorDir . '/topthink/framework/src/think/facade/Log.php', - 'think\\facade\\Middleware' => $vendorDir . '/topthink/framework/src/think/facade/Middleware.php', - 'think\\facade\\Request' => $vendorDir . '/topthink/framework/src/think/facade/Request.php', - 'think\\facade\\Route' => $vendorDir . '/topthink/framework/src/think/facade/Route.php', - 'think\\facade\\Session' => $vendorDir . '/topthink/framework/src/think/facade/Session.php', - 'think\\facade\\Validate' => $vendorDir . '/topthink/framework/src/think/facade/Validate.php', - 'think\\facade\\View' => $vendorDir . '/topthink/framework/src/think/facade/View.php', - 'think\\file\\UploadedFile' => $vendorDir . '/topthink/framework/src/think/file/UploadedFile.php', - 'think\\filesystem\\CacheStore' => $vendorDir . '/topthink/framework/src/think/filesystem/CacheStore.php', - 'think\\filesystem\\Driver' => $vendorDir . '/topthink/framework/src/think/filesystem/Driver.php', - 'think\\filesystem\\driver\\Local' => $vendorDir . '/topthink/framework/src/think/filesystem/driver/Local.php', - 'think\\helper\\Arr' => $vendorDir . '/topthink/think-helper/src/helper/Arr.php', - 'think\\helper\\Str' => $vendorDir . '/topthink/think-helper/src/helper/Str.php', - 'think\\initializer\\BootService' => $vendorDir . '/topthink/framework/src/think/initializer/BootService.php', - 'think\\initializer\\Error' => $vendorDir . '/topthink/framework/src/think/initializer/Error.php', - 'think\\initializer\\RegisterService' => $vendorDir . '/topthink/framework/src/think/initializer/RegisterService.php', - 'think\\log\\Channel' => $vendorDir . '/topthink/framework/src/think/log/Channel.php', - 'think\\log\\ChannelSet' => $vendorDir . '/topthink/framework/src/think/log/ChannelSet.php', - 'think\\log\\driver\\File' => $vendorDir . '/topthink/framework/src/think/log/driver/File.php', - 'think\\log\\driver\\Socket' => $vendorDir . '/topthink/framework/src/think/log/driver/Socket.php', - 'think\\middleware\\AllowCrossDomain' => $vendorDir . '/topthink/framework/src/think/middleware/AllowCrossDomain.php', - 'think\\middleware\\CheckRequestCache' => $vendorDir . '/topthink/framework/src/think/middleware/CheckRequestCache.php', - 'think\\middleware\\FormTokenCheck' => $vendorDir . '/topthink/framework/src/think/middleware/FormTokenCheck.php', - 'think\\middleware\\LoadLangPack' => $vendorDir . '/topthink/framework/src/think/middleware/LoadLangPack.php', - 'think\\middleware\\SessionInit' => $vendorDir . '/topthink/framework/src/think/middleware/SessionInit.php', - 'think\\model\\Collection' => $vendorDir . '/topthink/think-orm/src/model/Collection.php', - 'think\\model\\Pivot' => $vendorDir . '/topthink/think-orm/src/model/Pivot.php', - 'think\\model\\Relation' => $vendorDir . '/topthink/think-orm/src/model/Relation.php', - 'think\\model\\concern\\Attribute' => $vendorDir . '/topthink/think-orm/src/model/concern/Attribute.php', - 'think\\model\\concern\\Conversion' => $vendorDir . '/topthink/think-orm/src/model/concern/Conversion.php', - 'think\\model\\concern\\ModelEvent' => $vendorDir . '/topthink/think-orm/src/model/concern/ModelEvent.php', - 'think\\model\\concern\\OptimLock' => $vendorDir . '/topthink/think-orm/src/model/concern/OptimLock.php', - 'think\\model\\concern\\RelationShip' => $vendorDir . '/topthink/think-orm/src/model/concern/RelationShip.php', - 'think\\model\\concern\\SoftDelete' => $vendorDir . '/topthink/think-orm/src/model/concern/SoftDelete.php', - 'think\\model\\concern\\TimeStamp' => $vendorDir . '/topthink/think-orm/src/model/concern/TimeStamp.php', - 'think\\model\\concern\\Virtual' => $vendorDir . '/topthink/think-orm/src/model/concern/Virtual.php', - 'think\\model\\relation\\BelongsTo' => $vendorDir . '/topthink/think-orm/src/model/relation/BelongsTo.php', - 'think\\model\\relation\\BelongsToMany' => $vendorDir . '/topthink/think-orm/src/model/relation/BelongsToMany.php', - 'think\\model\\relation\\HasMany' => $vendorDir . '/topthink/think-orm/src/model/relation/HasMany.php', - 'think\\model\\relation\\HasManyThrough' => $vendorDir . '/topthink/think-orm/src/model/relation/HasManyThrough.php', - 'think\\model\\relation\\HasOne' => $vendorDir . '/topthink/think-orm/src/model/relation/HasOne.php', - 'think\\model\\relation\\HasOneThrough' => $vendorDir . '/topthink/think-orm/src/model/relation/HasOneThrough.php', - 'think\\model\\relation\\MorphMany' => $vendorDir . '/topthink/think-orm/src/model/relation/MorphMany.php', - 'think\\model\\relation\\MorphOne' => $vendorDir . '/topthink/think-orm/src/model/relation/MorphOne.php', - 'think\\model\\relation\\MorphTo' => $vendorDir . '/topthink/think-orm/src/model/relation/MorphTo.php', - 'think\\model\\relation\\MorphToMany' => $vendorDir . '/topthink/think-orm/src/model/relation/MorphToMany.php', - 'think\\model\\relation\\OneToOne' => $vendorDir . '/topthink/think-orm/src/model/relation/OneToOne.php', - 'think\\paginator\\driver\\Bootstrap' => $vendorDir . '/topthink/think-orm/src/paginator/driver/Bootstrap.php', - 'think\\response\\File' => $vendorDir . '/topthink/framework/src/think/response/File.php', - 'think\\response\\Html' => $vendorDir . '/topthink/framework/src/think/response/Html.php', - 'think\\response\\Json' => $vendorDir . '/topthink/framework/src/think/response/Json.php', - 'think\\response\\Jsonp' => $vendorDir . '/topthink/framework/src/think/response/Jsonp.php', - 'think\\response\\Redirect' => $vendorDir . '/topthink/framework/src/think/response/Redirect.php', - 'think\\response\\View' => $vendorDir . '/topthink/framework/src/think/response/View.php', - 'think\\response\\Xml' => $vendorDir . '/topthink/framework/src/think/response/Xml.php', - 'think\\route\\Dispatch' => $vendorDir . '/topthink/framework/src/think/route/Dispatch.php', - 'think\\route\\Domain' => $vendorDir . '/topthink/framework/src/think/route/Domain.php', - 'think\\route\\Resource' => $vendorDir . '/topthink/framework/src/think/route/Resource.php', - 'think\\route\\Rule' => $vendorDir . '/topthink/framework/src/think/route/Rule.php', - 'think\\route\\RuleGroup' => $vendorDir . '/topthink/framework/src/think/route/RuleGroup.php', - 'think\\route\\RuleItem' => $vendorDir . '/topthink/framework/src/think/route/RuleItem.php', - 'think\\route\\RuleName' => $vendorDir . '/topthink/framework/src/think/route/RuleName.php', - 'think\\route\\Url' => $vendorDir . '/topthink/framework/src/think/route/Url.php', - 'think\\route\\dispatch\\Callback' => $vendorDir . '/topthink/framework/src/think/route/dispatch/Callback.php', - 'think\\route\\dispatch\\Controller' => $vendorDir . '/topthink/framework/src/think/route/dispatch/Controller.php', - 'think\\route\\dispatch\\Url' => $vendorDir . '/topthink/framework/src/think/route/dispatch/Url.php', - 'think\\service\\ModelService' => $vendorDir . '/topthink/framework/src/think/service/ModelService.php', - 'think\\service\\PaginatorService' => $vendorDir . '/topthink/framework/src/think/service/PaginatorService.php', - 'think\\service\\ValidateService' => $vendorDir . '/topthink/framework/src/think/service/ValidateService.php', - 'think\\session\\Store' => $vendorDir . '/topthink/framework/src/think/session/Store.php', - 'think\\session\\driver\\Cache' => $vendorDir . '/topthink/framework/src/think/session/driver/Cache.php', - 'think\\session\\driver\\File' => $vendorDir . '/topthink/framework/src/think/session/driver/File.php', - 'think\\validate\\ValidateRule' => $vendorDir . '/topthink/framework/src/think/validate/ValidateRule.php', - 'think\\view\\driver\\Php' => $vendorDir . '/topthink/framework/src/think/view/driver/Php.php', ); diff --git a/vendor/composer/autoload_files.php b/vendor/composer/autoload_files.php index 866400a..6cabe9a 100644 --- a/vendor/composer/autoload_files.php +++ b/vendor/composer/autoload_files.php @@ -10,12 +10,11 @@ return array( 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php', '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php', - '25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php', 'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php', + '25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php', 'd767e4fc2dc52fe66584ab8c6684783e' => $vendorDir . '/adbario/php-dot-notation/src/helpers.php', '667aeda72477189d0494fecd327c3641' => $vendorDir . '/symfony/var-dumper/Resources/functions/dump.php', '9b552a3cc426e3287cc811caefa3cf53' => $vendorDir . '/topthink/think-helper/src/helper.php', - '2cffec82183ee1cea088009cef9a6fc3' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php', 'abede361264e2ae69ec1eee813a101af' => $vendorDir . '/markbaker/complex/classes/src/functions/abs.php', '21a5860fbef5be28db5ddfbc3cca67c4' => $vendorDir . '/markbaker/complex/classes/src/functions/acos.php', '1546e3f9d127f2a9bb2d1b6c31c26ef1' => $vendorDir . '/markbaker/complex/classes/src/functions/acosh.php', @@ -75,6 +74,7 @@ return array( '4888a6f58c08148ebe17682f9ce9b2a8' => $vendorDir . '/markbaker/matrix/classes/src/Operations/divideby.php', 'eef6fa3879d3efa347cd24d5eb348f85' => $vendorDir . '/markbaker/matrix/classes/src/Operations/divideinto.php', '35fab96057f1bf5e7aba31a8a6d5fdde' => $vendorDir . '/topthink/think-orm/stubs/load_stubs.php', + '2cffec82183ee1cea088009cef9a6fc3' => $vendorDir . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php', 'cd5441689b14144e5573bf989ee47b34' => $vendorDir . '/qcloud/cos-sdk-v5/src/Common.php', '841780ea2e1d6545ea3a253239d59c05' => $vendorDir . '/qiniu/php-sdk/src/Qiniu/functions.php', '8287b9658cb007bdb2ed347290f0f420' => $baseDir . '/src/common.php', diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index dfbc01e..9f3a107 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -6,7 +6,7 @@ $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( - 'think\\' => array($vendorDir . '/topthink/framework/src/think', $vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src'), + 'think\\' => array($vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src', $vendorDir . '/topthink/framework/src/think'), 'ZipStream\\' => array($vendorDir . '/maennchen/zipstream-php/src'), 'Upyun\\' => array($vendorDir . '/upyun/sdk/src/Upyun'), 'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'), diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index eef80f7..a03687b 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -11,12 +11,11 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php', '37a3dc5111fe8f707ab4c132ef1dbc62' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/functions_include.php', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', - '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php', 'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php', + '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php', 'd767e4fc2dc52fe66584ab8c6684783e' => __DIR__ . '/..' . '/adbario/php-dot-notation/src/helpers.php', '667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php', '9b552a3cc426e3287cc811caefa3cf53' => __DIR__ . '/..' . '/topthink/think-helper/src/helper.php', - '2cffec82183ee1cea088009cef9a6fc3' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php', 'abede361264e2ae69ec1eee813a101af' => __DIR__ . '/..' . '/markbaker/complex/classes/src/functions/abs.php', '21a5860fbef5be28db5ddfbc3cca67c4' => __DIR__ . '/..' . '/markbaker/complex/classes/src/functions/acos.php', '1546e3f9d127f2a9bb2d1b6c31c26ef1' => __DIR__ . '/..' . '/markbaker/complex/classes/src/functions/acosh.php', @@ -76,6 +75,7 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa '4888a6f58c08148ebe17682f9ce9b2a8' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/divideby.php', 'eef6fa3879d3efa347cd24d5eb348f85' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operations/divideinto.php', '35fab96057f1bf5e7aba31a8a6d5fdde' => __DIR__ . '/..' . '/topthink/think-orm/stubs/load_stubs.php', + '2cffec82183ee1cea088009cef9a6fc3' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.composer.php', 'cd5441689b14144e5573bf989ee47b34' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Common.php', '841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php', '8287b9658cb007bdb2ed347290f0f420' => __DIR__ . '/../..' . '/src/common.php', @@ -168,9 +168,9 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa public static $prefixDirsPsr4 = array ( 'think\\' => array ( - 0 => __DIR__ . '/..' . '/topthink/framework/src/think', - 1 => __DIR__ . '/..' . '/topthink/think-helper/src', - 2 => __DIR__ . '/..' . '/topthink/think-orm/src', + 0 => __DIR__ . '/..' . '/topthink/think-helper/src', + 1 => __DIR__ . '/..' . '/topthink/think-orm/src', + 2 => __DIR__ . '/..' . '/topthink/framework/src/think', ), 'ZipStream\\' => array ( @@ -364,1923 +364,12 @@ class ComposerStaticInitd0fae8d29dbee2b634f3a8d96d8353fa ); public static $classMap = array ( - 'Adbar\\Dot' => __DIR__ . '/..' . '/adbario/php-dot-notation/src/Dot.php', - 'AlibabaCloud\\Credentials\\AccessKeyCredential' => __DIR__ . '/..' . '/alibabacloud/credentials/src/AccessKeyCredential.php', - 'AlibabaCloud\\Credentials\\BearerTokenCredential' => __DIR__ . '/..' . '/alibabacloud/credentials/src/BearerTokenCredential.php', - 'AlibabaCloud\\Credentials\\Credential' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Credential.php', - 'AlibabaCloud\\Credentials\\Credential\\Config' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Credential/Config.php', - 'AlibabaCloud\\Credentials\\Credentials' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Credentials.php', - 'AlibabaCloud\\Credentials\\CredentialsInterface' => __DIR__ . '/..' . '/alibabacloud/credentials/src/CredentialsInterface.php', - 'AlibabaCloud\\Credentials\\EcsRamRoleCredential' => __DIR__ . '/..' . '/alibabacloud/credentials/src/EcsRamRoleCredential.php', - 'AlibabaCloud\\Credentials\\Filter' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Filter.php', - 'AlibabaCloud\\Credentials\\Helper' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Helper.php', - 'AlibabaCloud\\Credentials\\MockTrait' => __DIR__ . '/..' . '/alibabacloud/credentials/src/MockTrait.php', - 'AlibabaCloud\\Credentials\\Providers\\ChainProvider' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Providers/ChainProvider.php', - 'AlibabaCloud\\Credentials\\Providers\\EcsRamRoleProvider' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Providers/EcsRamRoleProvider.php', - 'AlibabaCloud\\Credentials\\Providers\\Provider' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Providers/Provider.php', - 'AlibabaCloud\\Credentials\\Providers\\RamRoleArnProvider' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Providers/RamRoleArnProvider.php', - 'AlibabaCloud\\Credentials\\Providers\\RsaKeyPairProvider' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Providers/RsaKeyPairProvider.php', - 'AlibabaCloud\\Credentials\\RamRoleArnCredential' => __DIR__ . '/..' . '/alibabacloud/credentials/src/RamRoleArnCredential.php', - 'AlibabaCloud\\Credentials\\Request\\AssumeRole' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Request/AssumeRole.php', - 'AlibabaCloud\\Credentials\\Request\\GenerateSessionAccessKey' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Request/GenerateSessionAccessKey.php', - 'AlibabaCloud\\Credentials\\Request\\Request' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Request/Request.php', - 'AlibabaCloud\\Credentials\\RsaKeyPairCredential' => __DIR__ . '/..' . '/alibabacloud/credentials/src/RsaKeyPairCredential.php', - 'AlibabaCloud\\Credentials\\Signature\\BearerTokenSignature' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Signature/BearerTokenSignature.php', - 'AlibabaCloud\\Credentials\\Signature\\ShaHmac1Signature' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Signature/ShaHmac1Signature.php', - 'AlibabaCloud\\Credentials\\Signature\\ShaHmac256Signature' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Signature/ShaHmac256Signature.php', - 'AlibabaCloud\\Credentials\\Signature\\ShaHmac256WithRsaSignature' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Signature/ShaHmac256WithRsaSignature.php', - 'AlibabaCloud\\Credentials\\Signature\\SignatureInterface' => __DIR__ . '/..' . '/alibabacloud/credentials/src/Signature/SignatureInterface.php', - 'AlibabaCloud\\Credentials\\StsCredential' => __DIR__ . '/..' . '/alibabacloud/credentials/src/StsCredential.php', - 'AlibabaCloud\\Endpoint\\Endpoint' => __DIR__ . '/..' . '/alibabacloud/endpoint-util/src/Endpoint.php', - 'AlibabaCloud\\OpenApiUtil\\OpenApiUtilClient' => __DIR__ . '/..' . '/alibabacloud/openapi-util/src/OpenApiUtilClient.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Dysmsapi' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Dysmsapi.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignRequest\\signFileList' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignRequest/signFileList.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsSignResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsSignResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\AddSmsTemplateResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/AddSmsTemplateResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsSignResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsSignResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsTemplateRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsTemplateRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsTemplateResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsTemplateResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\DeleteSmsTemplateResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/DeleteSmsTemplateResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsSignRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsSignRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsSignRequest\\signFileList' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsSignRequest/signFileList.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsSignResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsSignResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsSignResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsSignResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsTemplateRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsTemplateRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsTemplateResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsTemplateResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\ModifySmsTemplateResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/ModifySmsTemplateResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody\\smsSendDetailDTOs' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody/smsSendDetailDTOs.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySendDetailsResponseBody\\smsSendDetailDTOs\\smsSendDetailDTO' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySendDetailsResponseBody/smsSendDetailDTOs/smsSendDetailDTO.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsSignResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsSignResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsTemplateRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsTemplateRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsTemplateResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsTemplateResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\QuerySmsTemplateResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/QuerySmsTemplateResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendBatchSmsResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendBatchSmsResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponseBody.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendMessageToGlobeResponseBody\\numberDetail' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendMessageToGlobeResponseBody/numberDetail.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsRequest' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsRequest.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsResponse' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsResponse.php', - 'AlibabaCloud\\SDK\\Dysmsapi\\V20170525\\Models\\SendSmsResponseBody' => __DIR__ . '/..' . '/alibabacloud/dysmsapi-20170525/src/Models/SendSmsResponseBody.php', - 'AlibabaCloud\\Tea\\Exception\\TeaError' => __DIR__ . '/..' . '/alibabacloud/tea/src/Exception/TeaError.php', - 'AlibabaCloud\\Tea\\Exception\\TeaRetryError' => __DIR__ . '/..' . '/alibabacloud/tea/src/Exception/TeaRetryError.php', - 'AlibabaCloud\\Tea\\Exception\\TeaUnableRetryError' => __DIR__ . '/..' . '/alibabacloud/tea/src/Exception/TeaUnableRetryError.php', - 'AlibabaCloud\\Tea\\Helper' => __DIR__ . '/..' . '/alibabacloud/tea/src/Helper.php', - 'AlibabaCloud\\Tea\\Model' => __DIR__ . '/..' . '/alibabacloud/tea/src/Model.php', - 'AlibabaCloud\\Tea\\Parameter' => __DIR__ . '/..' . '/alibabacloud/tea/src/Parameter.php', - 'AlibabaCloud\\Tea\\Request' => __DIR__ . '/..' . '/alibabacloud/tea/src/Request.php', - 'AlibabaCloud\\Tea\\Response' => __DIR__ . '/..' . '/alibabacloud/tea/src/Response.php', - 'AlibabaCloud\\Tea\\Tea' => __DIR__ . '/..' . '/alibabacloud/tea/src/Tea.php', - 'AlibabaCloud\\Tea\\Utils\\Utils' => __DIR__ . '/..' . '/alibabacloud/tea-utils/src/Utils.php', - 'AlibabaCloud\\Tea\\Utils\\Utils\\RuntimeOptions' => __DIR__ . '/..' . '/alibabacloud/tea-utils/src/Utils/RuntimeOptions.php', 'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php', - 'BaiduBce\\Auth\\BceV1Signer' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Auth/BceV1Signer.php', - 'BaiduBce\\Auth\\SignOptions' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Auth/SignOptions.php', - 'BaiduBce\\Auth\\SignerInterface' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Auth/SignerInterface.php', - 'BaiduBce\\Bce' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Bce.php', - 'BaiduBce\\BceBaseClient' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/BceBaseClient.php', - 'BaiduBce\\BceClientConfigOptions' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/BceClientConfigOptions.php', - 'BaiduBce\\BceHttpResponse' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/BceHttpResponse.php', - 'BaiduBce\\Exception\\BceBaseException' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Exception/BceBaseException.php', - 'BaiduBce\\Exception\\BceClientException' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Exception/BceClientException.php', - 'BaiduBce\\Exception\\BceServiceException' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Exception/BceServiceException.php', - 'BaiduBce\\Http\\BceHttpClient' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Http/BceHttpClient.php', - 'BaiduBce\\Http\\GuzzleLogAdapter' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Http/GuzzleLogAdapter.php', - 'BaiduBce\\Http\\HttpContentTypes' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Http/HttpContentTypes.php', - 'BaiduBce\\Http\\HttpHeaders' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Http/HttpHeaders.php', - 'BaiduBce\\Http\\HttpMethod' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Http/HttpMethod.php', - 'BaiduBce\\Log\\LogFactory' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Log/LogFactory.php', - 'BaiduBce\\Log\\LogFactoryInterface' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Log/LogFactoryInterface.php', - 'BaiduBce\\Log\\MonoLogFactory' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Log/MonoLogFactory.php', - 'BaiduBce\\Log\\NullLogFactory' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Log/NullLogFactory.php', - 'BaiduBce\\Services\\Bos\\BosClient' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Bos/BosClient.php', - 'BaiduBce\\Services\\Bos\\BosOptions' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Bos/BosOptions.php', - 'BaiduBce\\Services\\Bos\\CannedAcl' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Bos/CannedAcl.php', - 'BaiduBce\\Services\\Bos\\StorageClass' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Bos/StorageClass.php', - 'BaiduBce\\Services\\Lss\\LssClient' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Lss/LssClient.php', - 'BaiduBce\\Services\\Media\\MediaClient' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Media/MediaClient.php', - 'BaiduBce\\Services\\Sts\\StsClient' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Sts/StsClient.php', - 'BaiduBce\\Services\\Vod\\VodClient' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Services/Vod/VodClient.php', - 'BaiduBce\\Util\\DateUtils' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Util/DateUtils.php', - 'BaiduBce\\Util\\HttpUtils' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Util/HttpUtils.php', - 'BaiduBce\\Util\\StringUtils' => __DIR__ . '/..' . '/baidubce/bce-sdk-php/src/BaiduBce/Util/StringUtils.php', - 'Complex\\Complex' => __DIR__ . '/..' . '/markbaker/complex/classes/src/Complex.php', - 'Complex\\Exception' => __DIR__ . '/..' . '/markbaker/complex/classes/src/Exception.php', 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', - 'Darabonba\\OpenApi\\Models\\Config' => __DIR__ . '/..' . '/alibabacloud/darabonba-openapi/src/Models/Config.php', - 'Darabonba\\OpenApi\\Models\\OpenApiRequest' => __DIR__ . '/..' . '/alibabacloud/darabonba-openapi/src/Models/OpenApiRequest.php', - 'Darabonba\\OpenApi\\Models\\Params' => __DIR__ . '/..' . '/alibabacloud/darabonba-openapi/src/Models/Params.php', - 'Darabonba\\OpenApi\\OpenApiClient' => __DIR__ . '/..' . '/alibabacloud/darabonba-openapi/src/OpenApiClient.php', - 'DtApp\\ThinkLibrary\\ApiController' => __DIR__ . '/../..' . '/src/ApiController.php', - 'DtApp\\ThinkLibrary\\Controller' => __DIR__ . '/../..' . '/src/Controller.php', - 'DtApp\\ThinkLibrary\\Helper' => __DIR__ . '/../..' . '/src/Helper.php', - 'DtApp\\ThinkLibrary\\Library' => __DIR__ . '/../..' . '/src/Library.php', - 'DtApp\\ThinkLibrary\\Service' => __DIR__ . '/../..' . '/src/Service.php', - 'DtApp\\ThinkLibrary\\cache\\Mysql' => __DIR__ . '/../..' . '/src/cache/Mysql.php', - 'DtApp\\ThinkLibrary\\command\\Install' => __DIR__ . '/../..' . '/src/command/Install.php', - 'DtApp\\ThinkLibrary\\command\\Version' => __DIR__ . '/../..' . '/src/command/Version.php', - 'DtApp\\ThinkLibrary\\exception\\DtaException' => __DIR__ . '/../..' . '/src/exception/DtaException.php', - 'DtApp\\ThinkLibrary\\exception\\ThinkException' => __DIR__ . '/../..' . '/src/exception/ThinkException.php', - 'DtApp\\ThinkLibrary\\extend\\ArraysExtend' => __DIR__ . '/../..' . '/src/extend/ArraysExtend.php', - 'DtApp\\ThinkLibrary\\extend\\CodeExtend' => __DIR__ . '/../..' . '/src/extend/CodeExtend.php', - 'DtApp\\ThinkLibrary\\extend\\PregSExtend' => __DIR__ . '/../..' . '/src/extend/PregSExtend.php', - 'DtApp\\ThinkLibrary\\facade\\Arrays' => __DIR__ . '/../..' . '/src/facade/Arrays.php', - 'DtApp\\ThinkLibrary\\facade\\Dates' => __DIR__ . '/../..' . '/src/facade/Dates.php', - 'DtApp\\ThinkLibrary\\facade\\Decimals' => __DIR__ . '/../..' . '/src/facade/Decimals.php', - 'DtApp\\ThinkLibrary\\facade\\Files' => __DIR__ . '/../..' . '/src/facade/Files.php', - 'DtApp\\ThinkLibrary\\facade\\Ints' => __DIR__ . '/../..' . '/src/facade/Ints.php', - 'DtApp\\ThinkLibrary\\facade\\Pregs' => __DIR__ . '/../..' . '/src/facade/Pregs.php', - 'DtApp\\ThinkLibrary\\facade\\Randoms' => __DIR__ . '/../..' . '/src/facade/Randoms.php', - 'DtApp\\ThinkLibrary\\facade\\Requests' => __DIR__ . '/../..' . '/src/facade/Requests.php', - 'DtApp\\ThinkLibrary\\facade\\Returns' => __DIR__ . '/../..' . '/src/facade/Returns.php', - 'DtApp\\ThinkLibrary\\facade\\Strings' => __DIR__ . '/../..' . '/src/facade/Strings.php', - 'DtApp\\ThinkLibrary\\facade\\Times' => __DIR__ . '/../..' . '/src/facade/Times.php', - 'DtApp\\ThinkLibrary\\facade\\UnIqIds' => __DIR__ . '/../..' . '/src/facade/UnIqIds.php', - 'DtApp\\ThinkLibrary\\facade\\Urls' => __DIR__ . '/../..' . '/src/facade/Urls.php', - 'DtApp\\ThinkLibrary\\facade\\Xmls' => __DIR__ . '/../..' . '/src/facade/Xmls.php', - 'DtApp\\ThinkLibrary\\helper\\Arrays' => __DIR__ . '/../..' . '/src/helper/Arrays.php', - 'DtApp\\ThinkLibrary\\helper\\Dates' => __DIR__ . '/../..' . '/src/helper/Dates.php', - 'DtApp\\ThinkLibrary\\helper\\Decimals' => __DIR__ . '/../..' . '/src/helper/Decimals.php', - 'DtApp\\ThinkLibrary\\helper\\Files' => __DIR__ . '/../..' . '/src/helper/Files.php', - 'DtApp\\ThinkLibrary\\helper\\Ints' => __DIR__ . '/../..' . '/src/helper/Ints.php', - 'DtApp\\ThinkLibrary\\helper\\Pregs' => __DIR__ . '/../..' . '/src/helper/Pregs.php', - 'DtApp\\ThinkLibrary\\helper\\Randoms' => __DIR__ . '/../..' . '/src/helper/Randoms.php', - 'DtApp\\ThinkLibrary\\helper\\Requests' => __DIR__ . '/../..' . '/src/helper/Requests.php', - 'DtApp\\ThinkLibrary\\helper\\Returns' => __DIR__ . '/../..' . '/src/helper/Returns.php', - 'DtApp\\ThinkLibrary\\helper\\Strings' => __DIR__ . '/../..' . '/src/helper/Strings.php', - 'DtApp\\ThinkLibrary\\helper\\Times' => __DIR__ . '/../..' . '/src/helper/Times.php', - 'DtApp\\ThinkLibrary\\helper\\UnIqIds' => __DIR__ . '/../..' . '/src/helper/UnIqIds.php', - 'DtApp\\ThinkLibrary\\helper\\Urls' => __DIR__ . '/../..' . '/src/helper/Urls.php', - 'DtApp\\ThinkLibrary\\helper\\ValidateHelper' => __DIR__ . '/../..' . '/src/helper/ValidateHelper.php', - 'DtApp\\ThinkLibrary\\helper\\Xmls' => __DIR__ . '/../..' . '/src/helper/Xmls.php', - 'DtApp\\ThinkLibrary\\service\\BeAryChatService' => __DIR__ . '/../..' . '/src/service/BeAryChatService.php', - 'DtApp\\ThinkLibrary\\service\\DingTalkService' => __DIR__ . '/../..' . '/src/service/DingTalkService.php', - 'DtApp\\ThinkLibrary\\service\\ExcelService' => __DIR__ . '/../..' . '/src/service/ExcelService.php', - 'DtApp\\ThinkLibrary\\service\\Ip\\IpIpDistrictInfo' => __DIR__ . '/../..' . '/src/service/Ip/IpIpDistrictInfo.php', - 'DtApp\\ThinkLibrary\\service\\Ip\\IpIpReader' => __DIR__ . '/../..' . '/src/service/Ip/IpIpReader.php', - 'DtApp\\ThinkLibrary\\service\\Ip\\IpIpService' => __DIR__ . '/../..' . '/src/service/Ip/IpIpService.php', - 'DtApp\\ThinkLibrary\\service\\Ip\\MapService' => __DIR__ . '/../..' . '/src/service/Ip/MapService.php', - 'DtApp\\ThinkLibrary\\service\\Ip\\OnlineService' => __DIR__ . '/../..' . '/src/service/Ip/OnlineService.php', - 'DtApp\\ThinkLibrary\\service\\KaShAngWl' => __DIR__ . '/../..' . '/src/service/KaShAngWl.php', - 'DtApp\\ThinkLibrary\\service\\QqWryService' => __DIR__ . '/../..' . '/src/service/QqWryService.php', - 'DtApp\\ThinkLibrary\\service\\RouteService' => __DIR__ . '/../..' . '/src/service/RouteService.php', - 'DtApp\\ThinkLibrary\\service\\StorageService' => __DIR__ . '/../..' . '/src/service/StorageService.php', - 'DtApp\\ThinkLibrary\\service\\SystemService' => __DIR__ . '/../..' . '/src/service/SystemService.php', - 'DtApp\\ThinkLibrary\\service\\WorkKileService' => __DIR__ . '/../..' . '/src/service/WorkKileService.php', - 'DtApp\\ThinkLibrary\\service\\aliyun\\AliYunSms' => __DIR__ . '/../..' . '/src/service/aliyun/AliYunSms.php', - 'DtApp\\ThinkLibrary\\service\\aliyun\\OssService' => __DIR__ . '/../..' . '/src/service/aliyun/OssService.php', - 'DtApp\\ThinkLibrary\\service\\amap\\AmApService' => __DIR__ . '/../..' . '/src/service/amap/AmApService.php', - 'DtApp\\ThinkLibrary\\service\\baidu\\BosService' => __DIR__ . '/../..' . '/src/service/baidu/BosService.php', - 'DtApp\\ThinkLibrary\\service\\baidu\\LbsYunService' => __DIR__ . '/../..' . '/src/service/baidu/LbsYunService.php', - 'DtApp\\ThinkLibrary\\service\\bt\\ApiService' => __DIR__ . '/../..' . '/src/service/bt/ApiService.php', - 'DtApp\\ThinkLibrary\\service\\crypt\\AesService' => __DIR__ . '/../..' . '/src/service/crypt/AesService.php', - 'DtApp\\ThinkLibrary\\service\\curl\\BtService' => __DIR__ . '/../..' . '/src/service/curl/BtService.php', - 'DtApp\\ThinkLibrary\\service\\curl\\HttpService' => __DIR__ . '/../..' . '/src/service/curl/HttpService.php', - 'DtApp\\ThinkLibrary\\service\\decent\\EJiAoFei' => __DIR__ . '/../..' . '/src/service/decent/EJiAoFei.php', - 'DtApp\\ThinkLibrary\\service\\dingdanxia\\DingDanXiaService' => __DIR__ . '/../..' . '/src/service/dingdanxia/DingDanXiaService.php', - 'DtApp\\ThinkLibrary\\service\\douyin\\WatermarkService' => __DIR__ . '/../..' . '/src/service/douyin/WatermarkService.php', - 'DtApp\\ThinkLibrary\\service\\huaweicloud\\ObsService' => __DIR__ . '/../..' . '/src/service/huaweicloud/ObsService.php', - 'DtApp\\ThinkLibrary\\service\\jd\\UnionService' => __DIR__ . '/../..' . '/src/service/jd/UnionService.php', - 'DtApp\\ThinkLibrary\\service\\jdcloud\\VientianeService' => __DIR__ . '/../..' . '/src/service/jdcloud/VientianeService.php', - 'DtApp\\ThinkLibrary\\service\\ksyun\\Ks3Service' => __DIR__ . '/../..' . '/src/service/ksyun/Ks3Service.php', - 'DtApp\\ThinkLibrary\\service\\kuaishou\\WatermarkService' => __DIR__ . '/../..' . '/src/service/kuaishou/WatermarkService.php', - 'DtApp\\ThinkLibrary\\service\\pinduoduo\\JinBaoService' => __DIR__ . '/../..' . '/src/service/pinduoduo/JinBaoService.php', - 'DtApp\\ThinkLibrary\\service\\qiniu\\KodoService' => __DIR__ . '/../..' . '/src/service/qiniu/KodoService.php', - 'DtApp\\ThinkLibrary\\service\\qiniu\\SmsService' => __DIR__ . '/../..' . '/src/service/qiniu/SmsService.php', - 'DtApp\\ThinkLibrary\\service\\taobao\\TaoBaoService' => __DIR__ . '/../..' . '/src/service/taobao/TaoBaoService.php', - 'DtApp\\ThinkLibrary\\service\\taobao\\TbkService' => __DIR__ . '/../..' . '/src/service/taobao/TbkService.php', - 'DtApp\\ThinkLibrary\\service\\tencent\\CosService' => __DIR__ . '/../..' . '/src/service/tencent/CosService.php', - 'DtApp\\ThinkLibrary\\service\\tencent\\LbsService' => __DIR__ . '/../..' . '/src/service/tencent/LbsService.php', - 'DtApp\\ThinkLibrary\\service\\upyun\\UssService' => __DIR__ . '/../..' . '/src/service/upyun/UssService.php', - 'DtApp\\ThinkLibrary\\service\\wechat\\MiniService' => __DIR__ . '/../..' . '/src/service/wechat/MiniService.php', - 'DtApp\\ThinkLibrary\\service\\wechat\\QyService' => __DIR__ . '/../..' . '/src/service/wechat/QyService.php', - 'DtApp\\ThinkLibrary\\service\\wechat\\WebAppService' => __DIR__ . '/../..' . '/src/service/wechat/WebAppService.php', - 'DtApp\\ThinkLibrary\\service\\wechat\\oplatform\\MiniProgramsService' => __DIR__ . '/../..' . '/src/service/wechat/oplatform/MiniProgramsService.php', - 'DtApp\\ThinkLibrary\\service\\weishi\\WatermarkService' => __DIR__ . '/../..' . '/src/service/weishi/WatermarkService.php', - 'DtApp\\ThinkLibrary\\service\\yytianqi\\YyTiAnQiService' => __DIR__ . '/../..' . '/src/service/yytianqi/YyTiAnQiService.php', - 'DtApp\\ThinkLibrary\\session\\Mysql' => __DIR__ . '/../..' . '/src/session/Mysql.php', - 'GuzzleHttp\\Client' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Client.php', - 'GuzzleHttp\\ClientInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/ClientInterface.php', - 'GuzzleHttp\\Command\\Command' => __DIR__ . '/..' . '/guzzlehttp/command/src/Command.php', - 'GuzzleHttp\\Command\\CommandInterface' => __DIR__ . '/..' . '/guzzlehttp/command/src/CommandInterface.php', - 'GuzzleHttp\\Command\\Exception\\CommandClientException' => __DIR__ . '/..' . '/guzzlehttp/command/src/Exception/CommandClientException.php', - 'GuzzleHttp\\Command\\Exception\\CommandException' => __DIR__ . '/..' . '/guzzlehttp/command/src/Exception/CommandException.php', - 'GuzzleHttp\\Command\\Exception\\CommandServerException' => __DIR__ . '/..' . '/guzzlehttp/command/src/Exception/CommandServerException.php', - 'GuzzleHttp\\Command\\Guzzle\\Description' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/Description.php', - 'GuzzleHttp\\Command\\Guzzle\\DescriptionInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/DescriptionInterface.php', - 'GuzzleHttp\\Command\\Guzzle\\Deserializer' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/Deserializer.php', - 'GuzzleHttp\\Command\\Guzzle\\GuzzleClient' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/GuzzleClient.php', - 'GuzzleHttp\\Command\\Guzzle\\Handler\\ValidatedDescriptionHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/Handler/ValidatedDescriptionHandler.php', - 'GuzzleHttp\\Command\\Guzzle\\Operation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/Operation.php', - 'GuzzleHttp\\Command\\Guzzle\\Parameter' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/Parameter.php', - 'GuzzleHttp\\Command\\Guzzle\\QuerySerializer\\QuerySerializerInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/QuerySerializer/QuerySerializerInterface.php', - 'GuzzleHttp\\Command\\Guzzle\\QuerySerializer\\Rfc3986Serializer' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/QuerySerializer/Rfc3986Serializer.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\AbstractLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/RequestLocation/AbstractLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\BodyLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/RequestLocation/BodyLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\FormParamLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/RequestLocation/FormParamLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\HeaderLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/RequestLocation/HeaderLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\JsonLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/RequestLocation/JsonLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\MultiPartLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/RequestLocation/MultiPartLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\QueryLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/RequestLocation/QueryLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\RequestLocationInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/RequestLocation/RequestLocationInterface.php', - 'GuzzleHttp\\Command\\Guzzle\\RequestLocation\\XmlLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/RequestLocation/XmlLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\AbstractLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/ResponseLocation/AbstractLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\BodyLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/ResponseLocation/BodyLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\HeaderLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/ResponseLocation/HeaderLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\JsonLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/ResponseLocation/JsonLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\ReasonPhraseLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/ResponseLocation/ReasonPhraseLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\ResponseLocationInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/ResponseLocation/ResponseLocationInterface.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\StatusCodeLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/ResponseLocation/StatusCodeLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\XmlLocation' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/ResponseLocation/XmlLocation.php', - 'GuzzleHttp\\Command\\Guzzle\\SchemaFormatter' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/SchemaFormatter.php', - 'GuzzleHttp\\Command\\Guzzle\\SchemaValidator' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/SchemaValidator.php', - 'GuzzleHttp\\Command\\Guzzle\\Serializer' => __DIR__ . '/..' . '/guzzlehttp/guzzle-services/src/Serializer.php', - 'GuzzleHttp\\Command\\HasDataTrait' => __DIR__ . '/..' . '/guzzlehttp/command/src/HasDataTrait.php', - 'GuzzleHttp\\Command\\Result' => __DIR__ . '/..' . '/guzzlehttp/command/src/Result.php', - 'GuzzleHttp\\Command\\ResultInterface' => __DIR__ . '/..' . '/guzzlehttp/command/src/ResultInterface.php', - 'GuzzleHttp\\Command\\ServiceClient' => __DIR__ . '/..' . '/guzzlehttp/command/src/ServiceClient.php', - 'GuzzleHttp\\Command\\ServiceClientInterface' => __DIR__ . '/..' . '/guzzlehttp/command/src/ServiceClientInterface.php', - 'GuzzleHttp\\Command\\ToArrayInterface' => __DIR__ . '/..' . '/guzzlehttp/command/src/ToArrayInterface.php', - 'GuzzleHttp\\Cookie\\CookieJar' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/CookieJar.php', - 'GuzzleHttp\\Cookie\\CookieJarInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php', - 'GuzzleHttp\\Cookie\\FileCookieJar' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php', - 'GuzzleHttp\\Cookie\\SessionCookieJar' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php', - 'GuzzleHttp\\Cookie\\SetCookie' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Cookie/SetCookie.php', - 'GuzzleHttp\\Exception\\BadResponseException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/BadResponseException.php', - 'GuzzleHttp\\Exception\\ClientException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/ClientException.php', - 'GuzzleHttp\\Exception\\ConnectException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/ConnectException.php', - 'GuzzleHttp\\Exception\\GuzzleException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/GuzzleException.php', - 'GuzzleHttp\\Exception\\RequestException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/RequestException.php', - 'GuzzleHttp\\Exception\\SeekException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/SeekException.php', - 'GuzzleHttp\\Exception\\ServerException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/ServerException.php', - 'GuzzleHttp\\Exception\\TooManyRedirectsException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php', - 'GuzzleHttp\\Exception\\TransferException' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Exception/TransferException.php', - 'GuzzleHttp\\HandlerStack' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/HandlerStack.php', - 'GuzzleHttp\\Handler\\CurlFactory' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlFactory.php', - 'GuzzleHttp\\Handler\\CurlFactoryInterface' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php', - 'GuzzleHttp\\Handler\\CurlHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlHandler.php', - 'GuzzleHttp\\Handler\\CurlMultiHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/CurlMultiHandler.php', - 'GuzzleHttp\\Handler\\EasyHandle' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/EasyHandle.php', - 'GuzzleHttp\\Handler\\MockHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/MockHandler.php', - 'GuzzleHttp\\Handler\\Proxy' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/Proxy.php', - 'GuzzleHttp\\Handler\\StreamHandler' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Handler/StreamHandler.php', - 'GuzzleHttp\\MessageFormatter' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/MessageFormatter.php', - 'GuzzleHttp\\Middleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Middleware.php', - 'GuzzleHttp\\Pool' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/Pool.php', - 'GuzzleHttp\\PrepareBodyMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php', - 'GuzzleHttp\\Promise\\AggregateException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/AggregateException.php', - 'GuzzleHttp\\Promise\\CancellationException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/CancellationException.php', - 'GuzzleHttp\\Promise\\Coroutine' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Coroutine.php', - 'GuzzleHttp\\Promise\\EachPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/EachPromise.php', - 'GuzzleHttp\\Promise\\FulfilledPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/FulfilledPromise.php', - 'GuzzleHttp\\Promise\\Promise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/Promise.php', - 'GuzzleHttp\\Promise\\PromiseInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/PromiseInterface.php', - 'GuzzleHttp\\Promise\\PromisorInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/PromisorInterface.php', - 'GuzzleHttp\\Promise\\RejectedPromise' => __DIR__ . '/..' . '/guzzlehttp/promises/src/RejectedPromise.php', - 'GuzzleHttp\\Promise\\RejectionException' => __DIR__ . '/..' . '/guzzlehttp/promises/src/RejectionException.php', - 'GuzzleHttp\\Promise\\TaskQueue' => __DIR__ . '/..' . '/guzzlehttp/promises/src/TaskQueue.php', - 'GuzzleHttp\\Promise\\TaskQueueInterface' => __DIR__ . '/..' . '/guzzlehttp/promises/src/TaskQueueInterface.php', - 'GuzzleHttp\\Psr7\\AppendStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/AppendStream.php', - 'GuzzleHttp\\Psr7\\BufferStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/BufferStream.php', - 'GuzzleHttp\\Psr7\\CachingStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/CachingStream.php', - 'GuzzleHttp\\Psr7\\DroppingStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/DroppingStream.php', - 'GuzzleHttp\\Psr7\\FnStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/FnStream.php', - 'GuzzleHttp\\Psr7\\InflateStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/InflateStream.php', - 'GuzzleHttp\\Psr7\\LazyOpenStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/LazyOpenStream.php', - 'GuzzleHttp\\Psr7\\LimitStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/LimitStream.php', - 'GuzzleHttp\\Psr7\\MessageTrait' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/MessageTrait.php', - 'GuzzleHttp\\Psr7\\MultipartStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/MultipartStream.php', - 'GuzzleHttp\\Psr7\\NoSeekStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/NoSeekStream.php', - 'GuzzleHttp\\Psr7\\PumpStream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/PumpStream.php', - 'GuzzleHttp\\Psr7\\Request' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Request.php', - 'GuzzleHttp\\Psr7\\Response' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Response.php', - 'GuzzleHttp\\Psr7\\ServerRequest' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/ServerRequest.php', - 'GuzzleHttp\\Psr7\\Stream' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Stream.php', - 'GuzzleHttp\\Psr7\\StreamDecoratorTrait' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/StreamDecoratorTrait.php', - 'GuzzleHttp\\Psr7\\StreamWrapper' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/StreamWrapper.php', - 'GuzzleHttp\\Psr7\\UploadedFile' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UploadedFile.php', - 'GuzzleHttp\\Psr7\\Uri' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/Uri.php', - 'GuzzleHttp\\Psr7\\UriNormalizer' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UriNormalizer.php', - 'GuzzleHttp\\Psr7\\UriResolver' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/UriResolver.php', - 'GuzzleHttp\\RedirectMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RedirectMiddleware.php', - 'GuzzleHttp\\RequestOptions' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RequestOptions.php', - 'GuzzleHttp\\RetryMiddleware' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/RetryMiddleware.php', - 'GuzzleHttp\\TransferStats' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/TransferStats.php', - 'GuzzleHttp\\UriTemplate' => __DIR__ . '/..' . '/guzzlehttp/guzzle/src/UriTemplate.php', - 'Guzzle\\Batch\\AbstractBatchDecorator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/AbstractBatchDecorator.php', - 'Guzzle\\Batch\\Batch' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/Batch.php', - 'Guzzle\\Batch\\BatchBuilder' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/BatchBuilder.php', - 'Guzzle\\Batch\\BatchClosureDivisor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/BatchClosureDivisor.php', - 'Guzzle\\Batch\\BatchClosureTransfer' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/BatchClosureTransfer.php', - 'Guzzle\\Batch\\BatchCommandTransfer' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/BatchCommandTransfer.php', - 'Guzzle\\Batch\\BatchDivisorInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/BatchDivisorInterface.php', - 'Guzzle\\Batch\\BatchInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/BatchInterface.php', - 'Guzzle\\Batch\\BatchRequestTransfer' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/BatchRequestTransfer.php', - 'Guzzle\\Batch\\BatchSizeDivisor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/BatchSizeDivisor.php', - 'Guzzle\\Batch\\BatchTransferInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/BatchTransferInterface.php', - 'Guzzle\\Batch\\ExceptionBufferingBatch' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/ExceptionBufferingBatch.php', - 'Guzzle\\Batch\\Exception\\BatchTransferException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/Exception/BatchTransferException.php', - 'Guzzle\\Batch\\FlushingBatch' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/FlushingBatch.php', - 'Guzzle\\Batch\\HistoryBatch' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/HistoryBatch.php', - 'Guzzle\\Batch\\NotifyingBatch' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Batch/NotifyingBatch.php', - 'Guzzle\\Cache\\AbstractCacheAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Cache/AbstractCacheAdapter.php', - 'Guzzle\\Cache\\CacheAdapterFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Cache/CacheAdapterFactory.php', - 'Guzzle\\Cache\\CacheAdapterInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Cache/CacheAdapterInterface.php', - 'Guzzle\\Cache\\ClosureCacheAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Cache/ClosureCacheAdapter.php', - 'Guzzle\\Cache\\DoctrineCacheAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Cache/DoctrineCacheAdapter.php', - 'Guzzle\\Cache\\NullCacheAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Cache/NullCacheAdapter.php', - 'Guzzle\\Cache\\Zf1CacheAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Cache/Zf1CacheAdapter.php', - 'Guzzle\\Cache\\Zf2CacheAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Cache/Zf2CacheAdapter.php', - 'Guzzle\\Common\\AbstractHasDispatcher' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/AbstractHasDispatcher.php', - 'Guzzle\\Common\\Collection' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/Collection.php', - 'Guzzle\\Common\\Event' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/Event.php', - 'Guzzle\\Common\\Exception\\BadMethodCallException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/Exception/BadMethodCallException.php', - 'Guzzle\\Common\\Exception\\ExceptionCollection' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/Exception/ExceptionCollection.php', - 'Guzzle\\Common\\Exception\\GuzzleException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/Exception/GuzzleException.php', - 'Guzzle\\Common\\Exception\\InvalidArgumentException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/Exception/InvalidArgumentException.php', - 'Guzzle\\Common\\Exception\\RuntimeException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/Exception/RuntimeException.php', - 'Guzzle\\Common\\Exception\\UnexpectedValueException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/Exception/UnexpectedValueException.php', - 'Guzzle\\Common\\FromConfigInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/FromConfigInterface.php', - 'Guzzle\\Common\\HasDispatcherInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/HasDispatcherInterface.php', - 'Guzzle\\Common\\ToArrayInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/ToArrayInterface.php', - 'Guzzle\\Common\\Version' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Common/Version.php', - 'Guzzle\\Http\\AbstractEntityBodyDecorator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/AbstractEntityBodyDecorator.php', - 'Guzzle\\Http\\CachingEntityBody' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/CachingEntityBody.php', - 'Guzzle\\Http\\Client' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Client.php', - 'Guzzle\\Http\\ClientInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/ClientInterface.php', - 'Guzzle\\Http\\Curl\\CurlHandle' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Curl/CurlHandle.php', - 'Guzzle\\Http\\Curl\\CurlMulti' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMulti.php', - 'Guzzle\\Http\\Curl\\CurlMultiInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMultiInterface.php', - 'Guzzle\\Http\\Curl\\CurlMultiProxy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Curl/CurlMultiProxy.php', - 'Guzzle\\Http\\Curl\\CurlVersion' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Curl/CurlVersion.php', - 'Guzzle\\Http\\Curl\\RequestMediator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Curl/RequestMediator.php', - 'Guzzle\\Http\\EntityBody' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/EntityBody.php', - 'Guzzle\\Http\\EntityBodyInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/EntityBodyInterface.php', - 'Guzzle\\Http\\Exception\\BadResponseException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Exception/BadResponseException.php', - 'Guzzle\\Http\\Exception\\ClientErrorResponseException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Exception/ClientErrorResponseException.php', - 'Guzzle\\Http\\Exception\\CouldNotRewindStreamException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Exception/CouldNotRewindStreamException.php', - 'Guzzle\\Http\\Exception\\CurlException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Exception/CurlException.php', - 'Guzzle\\Http\\Exception\\HttpException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Exception/HttpException.php', - 'Guzzle\\Http\\Exception\\MultiTransferException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Exception/MultiTransferException.php', - 'Guzzle\\Http\\Exception\\RequestException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Exception/RequestException.php', - 'Guzzle\\Http\\Exception\\ServerErrorResponseException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Exception/ServerErrorResponseException.php', - 'Guzzle\\Http\\Exception\\TooManyRedirectsException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Exception/TooManyRedirectsException.php', - 'Guzzle\\Http\\IoEmittingEntityBody' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/IoEmittingEntityBody.php', - 'Guzzle\\Http\\Message\\AbstractMessage' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/AbstractMessage.php', - 'Guzzle\\Http\\Message\\EntityEnclosingRequest' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/EntityEnclosingRequest.php', - 'Guzzle\\Http\\Message\\EntityEnclosingRequestInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/EntityEnclosingRequestInterface.php', - 'Guzzle\\Http\\Message\\Header' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/Header.php', - 'Guzzle\\Http\\Message\\Header\\CacheControl' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/CacheControl.php', - 'Guzzle\\Http\\Message\\Header\\HeaderCollection' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/HeaderCollection.php', - 'Guzzle\\Http\\Message\\Header\\HeaderFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/HeaderFactory.php', - 'Guzzle\\Http\\Message\\Header\\HeaderFactoryInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/HeaderFactoryInterface.php', - 'Guzzle\\Http\\Message\\Header\\HeaderInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/HeaderInterface.php', - 'Guzzle\\Http\\Message\\Header\\Link' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/Header/Link.php', - 'Guzzle\\Http\\Message\\MessageInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/MessageInterface.php', - 'Guzzle\\Http\\Message\\PostFile' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/PostFile.php', - 'Guzzle\\Http\\Message\\PostFileInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/PostFileInterface.php', - 'Guzzle\\Http\\Message\\Request' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/Request.php', - 'Guzzle\\Http\\Message\\RequestFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactory.php', - 'Guzzle\\Http\\Message\\RequestFactoryInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/RequestFactoryInterface.php', - 'Guzzle\\Http\\Message\\RequestInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/RequestInterface.php', - 'Guzzle\\Http\\Message\\Response' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Message/Response.php', - 'Guzzle\\Http\\Mimetypes' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Mimetypes.php', - 'Guzzle\\Http\\QueryAggregator\\CommaAggregator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/CommaAggregator.php', - 'Guzzle\\Http\\QueryAggregator\\DuplicateAggregator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/DuplicateAggregator.php', - 'Guzzle\\Http\\QueryAggregator\\PhpAggregator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/PhpAggregator.php', - 'Guzzle\\Http\\QueryAggregator\\QueryAggregatorInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/QueryAggregator/QueryAggregatorInterface.php', - 'Guzzle\\Http\\QueryString' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/QueryString.php', - 'Guzzle\\Http\\ReadLimitEntityBody' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/ReadLimitEntityBody.php', - 'Guzzle\\Http\\RedirectPlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/RedirectPlugin.php', - 'Guzzle\\Http\\StaticClient' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/StaticClient.php', - 'Guzzle\\Http\\Url' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Http/Url.php', - 'Guzzle\\Inflection\\Inflector' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Inflection/Inflector.php', - 'Guzzle\\Inflection\\InflectorInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Inflection/InflectorInterface.php', - 'Guzzle\\Inflection\\MemoizingInflector' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Inflection/MemoizingInflector.php', - 'Guzzle\\Inflection\\PreComputedInflector' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Inflection/PreComputedInflector.php', - 'Guzzle\\Iterator\\AppendIterator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Iterator/AppendIterator.php', - 'Guzzle\\Iterator\\ChunkedIterator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Iterator/ChunkedIterator.php', - 'Guzzle\\Iterator\\FilterIterator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Iterator/FilterIterator.php', - 'Guzzle\\Iterator\\MapIterator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Iterator/MapIterator.php', - 'Guzzle\\Iterator\\MethodProxyIterator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Iterator/MethodProxyIterator.php', - 'Guzzle\\Log\\AbstractLogAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Log/AbstractLogAdapter.php', - 'Guzzle\\Log\\ArrayLogAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Log/ArrayLogAdapter.php', - 'Guzzle\\Log\\ClosureLogAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Log/ClosureLogAdapter.php', - 'Guzzle\\Log\\LogAdapterInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Log/LogAdapterInterface.php', - 'Guzzle\\Log\\MessageFormatter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Log/MessageFormatter.php', - 'Guzzle\\Log\\MonologLogAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Log/MonologLogAdapter.php', - 'Guzzle\\Log\\PsrLogAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Log/PsrLogAdapter.php', - 'Guzzle\\Log\\Zf1LogAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Log/Zf1LogAdapter.php', - 'Guzzle\\Log\\Zf2LogAdapter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Log/Zf2LogAdapter.php', - 'Guzzle\\Parser\\Cookie\\CookieParser' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/Cookie/CookieParser.php', - 'Guzzle\\Parser\\Cookie\\CookieParserInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/Cookie/CookieParserInterface.php', - 'Guzzle\\Parser\\Message\\AbstractMessageParser' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/Message/AbstractMessageParser.php', - 'Guzzle\\Parser\\Message\\MessageParser' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParser.php', - 'Guzzle\\Parser\\Message\\MessageParserInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/Message/MessageParserInterface.php', - 'Guzzle\\Parser\\Message\\PeclHttpMessageParser' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/Message/PeclHttpMessageParser.php', - 'Guzzle\\Parser\\ParserRegistry' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/ParserRegistry.php', - 'Guzzle\\Parser\\UriTemplate\\PeclUriTemplate' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/UriTemplate/PeclUriTemplate.php', - 'Guzzle\\Parser\\UriTemplate\\UriTemplate' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/UriTemplate/UriTemplate.php', - 'Guzzle\\Parser\\UriTemplate\\UriTemplateInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/UriTemplate/UriTemplateInterface.php', - 'Guzzle\\Parser\\Url\\UrlParser' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/Url/UrlParser.php', - 'Guzzle\\Parser\\Url\\UrlParserInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Parser/Url/UrlParserInterface.php', - 'Guzzle\\Plugin\\Async\\AsyncPlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Async/AsyncPlugin.php', - 'Guzzle\\Plugin\\Backoff\\AbstractBackoffStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/AbstractBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\AbstractErrorCodeBackoffStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/AbstractErrorCodeBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\BackoffLogger' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/BackoffLogger.php', - 'Guzzle\\Plugin\\Backoff\\BackoffPlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/BackoffPlugin.php', - 'Guzzle\\Plugin\\Backoff\\BackoffStrategyInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/BackoffStrategyInterface.php', - 'Guzzle\\Plugin\\Backoff\\CallbackBackoffStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/CallbackBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\ConstantBackoffStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/ConstantBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\CurlBackoffStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/CurlBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\ExponentialBackoffStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/ExponentialBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\HttpBackoffStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/HttpBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\LinearBackoffStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/LinearBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\ReasonPhraseBackoffStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/ReasonPhraseBackoffStrategy.php', - 'Guzzle\\Plugin\\Backoff\\TruncatedBackoffStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Backoff/TruncatedBackoffStrategy.php', - 'Guzzle\\Plugin\\Cache\\CacheKeyProviderInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheKeyProviderInterface.php', - 'Guzzle\\Plugin\\Cache\\CachePlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/CachePlugin.php', - 'Guzzle\\Plugin\\Cache\\CacheStorageInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/CacheStorageInterface.php', - 'Guzzle\\Plugin\\Cache\\CallbackCanCacheStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/CallbackCanCacheStrategy.php', - 'Guzzle\\Plugin\\Cache\\CanCacheStrategyInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/CanCacheStrategyInterface.php', - 'Guzzle\\Plugin\\Cache\\DefaultCacheKeyProvider' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/DefaultCacheKeyProvider.php', - 'Guzzle\\Plugin\\Cache\\DefaultCacheStorage' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/DefaultCacheStorage.php', - 'Guzzle\\Plugin\\Cache\\DefaultCanCacheStrategy' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/DefaultCanCacheStrategy.php', - 'Guzzle\\Plugin\\Cache\\DefaultRevalidation' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/DefaultRevalidation.php', - 'Guzzle\\Plugin\\Cache\\DenyRevalidation' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/DenyRevalidation.php', - 'Guzzle\\Plugin\\Cache\\RevalidationInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/RevalidationInterface.php', - 'Guzzle\\Plugin\\Cache\\SkipRevalidation' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cache/SkipRevalidation.php', - 'Guzzle\\Plugin\\Cookie\\Cookie' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/Cookie.php', - 'Guzzle\\Plugin\\Cookie\\CookieJar\\ArrayCookieJar' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookieJar/ArrayCookieJar.php', - 'Guzzle\\Plugin\\Cookie\\CookieJar\\CookieJarInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookieJar/CookieJarInterface.php', - 'Guzzle\\Plugin\\Cookie\\CookieJar\\FileCookieJar' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookieJar/FileCookieJar.php', - 'Guzzle\\Plugin\\Cookie\\CookiePlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/CookiePlugin.php', - 'Guzzle\\Plugin\\Cookie\\Exception\\InvalidCookieException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Cookie/Exception/InvalidCookieException.php', - 'Guzzle\\Plugin\\CurlAuth\\CurlAuthPlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/CurlAuth/CurlAuthPlugin.php', - 'Guzzle\\Plugin\\ErrorResponse\\ErrorResponseExceptionInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/ErrorResponse/ErrorResponseExceptionInterface.php', - 'Guzzle\\Plugin\\ErrorResponse\\ErrorResponsePlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/ErrorResponse/ErrorResponsePlugin.php', - 'Guzzle\\Plugin\\ErrorResponse\\Exception\\ErrorResponseException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/ErrorResponse/Exception/ErrorResponseException.php', - 'Guzzle\\Plugin\\History\\HistoryPlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/History/HistoryPlugin.php', - 'Guzzle\\Plugin\\Log\\LogPlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Log/LogPlugin.php', - 'Guzzle\\Plugin\\Md5\\CommandContentMd5Plugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Md5/CommandContentMd5Plugin.php', - 'Guzzle\\Plugin\\Md5\\Md5ValidatorPlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Md5/Md5ValidatorPlugin.php', - 'Guzzle\\Plugin\\Mock\\MockPlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Mock/MockPlugin.php', - 'Guzzle\\Plugin\\Oauth\\OauthPlugin' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Plugin/Oauth/OauthPlugin.php', - 'Guzzle\\Service\\AbstractConfigLoader' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/AbstractConfigLoader.php', - 'Guzzle\\Service\\Builder\\ServiceBuilder' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Builder/ServiceBuilder.php', - 'Guzzle\\Service\\Builder\\ServiceBuilderInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Builder/ServiceBuilderInterface.php', - 'Guzzle\\Service\\Builder\\ServiceBuilderLoader' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Builder/ServiceBuilderLoader.php', - 'Guzzle\\Service\\CachingConfigLoader' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/CachingConfigLoader.php', - 'Guzzle\\Service\\Client' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Client.php', - 'Guzzle\\Service\\ClientInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/ClientInterface.php', - 'Guzzle\\Service\\Command\\AbstractCommand' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/AbstractCommand.php', - 'Guzzle\\Service\\Command\\ClosureCommand' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/ClosureCommand.php', - 'Guzzle\\Service\\Command\\CommandInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/CommandInterface.php', - 'Guzzle\\Service\\Command\\CreateResponseClassEvent' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/CreateResponseClassEvent.php', - 'Guzzle\\Service\\Command\\DefaultRequestSerializer' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/DefaultRequestSerializer.php', - 'Guzzle\\Service\\Command\\DefaultResponseParser' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/DefaultResponseParser.php', - 'Guzzle\\Service\\Command\\Factory\\AliasFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/AliasFactory.php', - 'Guzzle\\Service\\Command\\Factory\\CompositeFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/CompositeFactory.php', - 'Guzzle\\Service\\Command\\Factory\\ConcreteClassFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/ConcreteClassFactory.php', - 'Guzzle\\Service\\Command\\Factory\\FactoryInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/FactoryInterface.php', - 'Guzzle\\Service\\Command\\Factory\\MapFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/MapFactory.php', - 'Guzzle\\Service\\Command\\Factory\\ServiceDescriptionFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/Factory/ServiceDescriptionFactory.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\AbstractRequestVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/AbstractRequestVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\BodyVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/BodyVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\HeaderVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/HeaderVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\JsonVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/JsonVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\PostFieldVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/PostFieldVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\PostFileVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/PostFileVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\QueryVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/QueryVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\RequestVisitorInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/RequestVisitorInterface.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\ResponseBodyVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/ResponseBodyVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Request\\XmlVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Request/XmlVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\AbstractResponseVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/AbstractResponseVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\BodyVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/BodyVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\HeaderVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/HeaderVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\JsonVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/JsonVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\ReasonPhraseVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/ReasonPhraseVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\ResponseVisitorInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/ResponseVisitorInterface.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\StatusCodeVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/StatusCodeVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\Response\\XmlVisitor' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/Response/XmlVisitor.php', - 'Guzzle\\Service\\Command\\LocationVisitor\\VisitorFlyweight' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/LocationVisitor/VisitorFlyweight.php', - 'Guzzle\\Service\\Command\\OperationCommand' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/OperationCommand.php', - 'Guzzle\\Service\\Command\\OperationResponseParser' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/OperationResponseParser.php', - 'Guzzle\\Service\\Command\\RequestSerializerInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/RequestSerializerInterface.php', - 'Guzzle\\Service\\Command\\ResponseClassInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/ResponseClassInterface.php', - 'Guzzle\\Service\\Command\\ResponseParserInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Command/ResponseParserInterface.php', - 'Guzzle\\Service\\ConfigLoaderInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/ConfigLoaderInterface.php', - 'Guzzle\\Service\\Description\\Operation' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Description/Operation.php', - 'Guzzle\\Service\\Description\\OperationInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Description/OperationInterface.php', - 'Guzzle\\Service\\Description\\Parameter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Description/Parameter.php', - 'Guzzle\\Service\\Description\\SchemaFormatter' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Description/SchemaFormatter.php', - 'Guzzle\\Service\\Description\\SchemaValidator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Description/SchemaValidator.php', - 'Guzzle\\Service\\Description\\ServiceDescription' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Description/ServiceDescription.php', - 'Guzzle\\Service\\Description\\ServiceDescriptionInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Description/ServiceDescriptionInterface.php', - 'Guzzle\\Service\\Description\\ServiceDescriptionLoader' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Description/ServiceDescriptionLoader.php', - 'Guzzle\\Service\\Description\\ValidatorInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Description/ValidatorInterface.php', - 'Guzzle\\Service\\Exception\\CommandException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Exception/CommandException.php', - 'Guzzle\\Service\\Exception\\CommandTransferException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Exception/CommandTransferException.php', - 'Guzzle\\Service\\Exception\\DescriptionBuilderException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Exception/DescriptionBuilderException.php', - 'Guzzle\\Service\\Exception\\InconsistentClientTransferException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Exception/InconsistentClientTransferException.php', - 'Guzzle\\Service\\Exception\\ResponseClassException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Exception/ResponseClassException.php', - 'Guzzle\\Service\\Exception\\ServiceBuilderException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Exception/ServiceBuilderException.php', - 'Guzzle\\Service\\Exception\\ServiceNotFoundException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Exception/ServiceNotFoundException.php', - 'Guzzle\\Service\\Exception\\ValidationException' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Exception/ValidationException.php', - 'Guzzle\\Service\\Resource\\AbstractResourceIteratorFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Resource/AbstractResourceIteratorFactory.php', - 'Guzzle\\Service\\Resource\\CompositeResourceIteratorFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Resource/CompositeResourceIteratorFactory.php', - 'Guzzle\\Service\\Resource\\MapResourceIteratorFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Resource/MapResourceIteratorFactory.php', - 'Guzzle\\Service\\Resource\\Model' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Resource/Model.php', - 'Guzzle\\Service\\Resource\\ResourceIterator' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIterator.php', - 'Guzzle\\Service\\Resource\\ResourceIteratorApplyBatched' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorApplyBatched.php', - 'Guzzle\\Service\\Resource\\ResourceIteratorClassFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorClassFactory.php', - 'Guzzle\\Service\\Resource\\ResourceIteratorFactoryInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorFactoryInterface.php', - 'Guzzle\\Service\\Resource\\ResourceIteratorInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorInterface.php', - 'Guzzle\\Stream\\PhpStreamRequestFactory' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Stream/PhpStreamRequestFactory.php', - 'Guzzle\\Stream\\Stream' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Stream/Stream.php', - 'Guzzle\\Stream\\StreamInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Stream/StreamInterface.php', - 'Guzzle\\Stream\\StreamRequestFactoryInterface' => __DIR__ . '/..' . '/guzzle/guzzle/src/Guzzle/Stream/StreamRequestFactoryInterface.php', - 'Guzzle\\Tests\\Batch\\AbstractBatchDecoratorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/AbstractBatchDecoratorTest.php', - 'Guzzle\\Tests\\Batch\\BatchBuilderTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchBuilderTest.php', - 'Guzzle\\Tests\\Batch\\BatchClosureDivisorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchClosureDivisorTest.php', - 'Guzzle\\Tests\\Batch\\BatchClosureTransferTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchClosureTransferTest.php', - 'Guzzle\\Tests\\Batch\\BatchCommandTransferTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchCommandTransferTest.php', - 'Guzzle\\Tests\\Batch\\BatchRequestTransferTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchRequestTransferTest.php', - 'Guzzle\\Tests\\Batch\\BatchSizeDivisorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchSizeDivisorTest.php', - 'Guzzle\\Tests\\Batch\\BatchTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/BatchTest.php', - 'Guzzle\\Tests\\Batch\\ExceptionBufferingBatchTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/ExceptionBufferingBatchTest.php', - 'Guzzle\\Tests\\Batch\\FlushingBatchTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/FlushingBatchTest.php', - 'Guzzle\\Tests\\Batch\\HistoryBatchTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/HistoryBatchTest.php', - 'Guzzle\\Tests\\Batch\\NotifyingBatchTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Batch/NotifyingBatchTest.php', - 'Guzzle\\Tests\\Cache\\CacheAdapterFactoryTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Cache/CacheAdapterFactoryTest.php', - 'Guzzle\\Tests\\Cache\\CacheAdapterTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Cache/CacheAdapterTest.php', - 'Guzzle\\Tests\\Cache\\ClosureCacheAdapterTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Cache/ClosureCacheAdapterTest.php', - 'Guzzle\\Tests\\Cache\\Zf2CacheAdapterTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Cache/Zf2CacheAdapterTest.php', - 'Guzzle\\Tests\\Common\\CollectionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Common/CollectionTest.php', - 'Guzzle\\Tests\\Common\\EventTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Common/EventTest.php', - 'Guzzle\\Tests\\Common\\Exception\\BatchTransferExceptionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Common/Exception/BatchTransferExceptionTest.php', - 'Guzzle\\Tests\\Common\\Exception\\ExceptionCollectionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Common/Exception/ExceptionCollectionTest.php', - 'Guzzle\\Tests\\Common\\VersionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Common/VersionTest.php', - 'Guzzle\\Tests\\GuzzleTestCase' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/GuzzleTestCase.php', - 'Guzzle\\Tests\\Http\\AbstractEntityBodyDecoratorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/AbstractEntityBodyDecoratorTest.php', - 'Guzzle\\Tests\\Http\\CachingEntityBodyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/CachingEntityBodyTest.php', - 'Guzzle\\Tests\\Http\\ClientTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/ClientTest.php', - 'Guzzle\\Tests\\Http\\Curl\\CurlHandleTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlHandleTest.php', - 'Guzzle\\Tests\\Http\\Curl\\CurlMultiProxyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlMultiProxyTest.php', - 'Guzzle\\Tests\\Http\\Curl\\CurlMultiTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlMultiTest.php', - 'Guzzle\\Tests\\Http\\Curl\\CurlVersionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/CurlVersionTest.php', - 'Guzzle\\Tests\\Http\\Curl\\RequestMediatorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Curl/RequestMediatorTest.php', - 'Guzzle\\Tests\\Http\\EntityBodyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/EntityBodyTest.php', - 'Guzzle\\Tests\\Http\\Exception\\CurlExceptionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Exception/CurlExceptionTest.php', - 'Guzzle\\Tests\\Http\\Exception\\ExceptionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Exception/ExceptionTest.php', - 'Guzzle\\Tests\\Http\\Exception\\MultiTransferExceptionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Exception/MultiTransferExceptionTest.php', - 'Guzzle\\Tests\\Http\\IoEmittingEntityBodyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/IoEmittingEntityBodyTest.php', - 'Guzzle\\Tests\\Http\\Message\\AbstractMessageTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/AbstractMessageTest.php', - 'Guzzle\\Tests\\Http\\Message\\EntityEnclosingRequestTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/EntityEnclosingRequestTest.php', - 'Guzzle\\Tests\\Http\\Message\\HeaderComparison' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/HeaderComparison.php', - 'Guzzle\\Tests\\Http\\Message\\HeaderTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/HeaderTest.php', - 'Guzzle\\Tests\\Http\\Message\\Header\\HeaderFactoryTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/Header/HeaderFactoryTest.php', - 'Guzzle\\Tests\\Http\\Message\\Header\\LinkTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/Header/LinkTest.php', - 'Guzzle\\Tests\\Http\\Message\\PostFileTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/PostFileTest.php', - 'Guzzle\\Tests\\Http\\Message\\RequestTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Message/RequestTest.php', - 'Guzzle\\Tests\\Http\\MimetypesTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/MimetypesTest.php', - 'Guzzle\\Tests\\Http\\QueryStringTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/QueryStringTest.php', - 'Guzzle\\Tests\\Http\\ReadLimitEntityBodyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/ReadLimitEntityBodyTest.php', - 'Guzzle\\Tests\\Http\\Server' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/Server.php', - 'Guzzle\\Tests\\Http\\UrlTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Http/UrlTest.php', - 'Guzzle\\Tests\\Inflection\\InflectorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Inflection/InflectorTest.php', - 'Guzzle\\Tests\\Inflection\\MemoizingInflectorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Inflection/MemoizingInflectorTest.php', - 'Guzzle\\Tests\\Inflection\\PreComputedInflectorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Inflection/PreComputedInflectorTest.php', - 'Guzzle\\Tests\\Iterator\\AppendIteratorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Iterator/AppendIteratorTest.php', - 'Guzzle\\Tests\\Iterator\\ChunkedIteratorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Iterator/ChunkedIteratorTest.php', - 'Guzzle\\Tests\\Iterator\\FilterIteratorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Iterator/FilterIteratorTest.php', - 'Guzzle\\Tests\\Iterator\\MapIteratorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Iterator/MapIteratorTest.php', - 'Guzzle\\Tests\\Iterator\\MethodProxyIteratorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Iterator/MethodProxyIteratorTest.php', - 'Guzzle\\Tests\\Log\\ArrayLogAdapterTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Log/ArrayLogAdapterTest.php', - 'Guzzle\\Tests\\Log\\ClosureLogAdapterTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Log/ClosureLogAdapterTest.php', - 'Guzzle\\Tests\\Log\\MessageFormatterTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Log/MessageFormatterTest.php', - 'Guzzle\\Tests\\Log\\PsrLogAdapterTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Log/PsrLogAdapterTest.php', - 'Guzzle\\Tests\\Log\\Zf2LogAdapterTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Log/Zf2LogAdapterTest.php', - 'Guzzle\\Tests\\Mock\\CustomResponseModel' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/CustomResponseModel.php', - 'Guzzle\\Tests\\Mock\\ErrorResponseMock' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/ErrorResponseMock.php', - 'Guzzle\\Tests\\Mock\\ExceptionMock' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/ExceptionMock.php', - 'Guzzle\\Tests\\Mock\\MockMulti' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/MockMulti.php', - 'Guzzle\\Tests\\Mock\\MockObserver' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/MockObserver.php', - 'Guzzle\\Tests\\Mock\\MockSubject' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Mock/MockSubject.php', - 'Guzzle\\Tests\\Parser\\Cookie\\CookieParserProvider' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/Cookie/CookieParserProvider.php', - 'Guzzle\\Tests\\Parser\\Cookie\\CookieParserTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/Cookie/CookieParserTest.php', - 'Guzzle\\Tests\\Parser\\Message\\MessageParserProvider' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/MessageParserProvider.php', - 'Guzzle\\Tests\\Parser\\Message\\MessageParserTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/MessageParserTest.php', - 'Guzzle\\Tests\\Parser\\Message\\PeclHttpMessageParserTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/Message/PeclHttpMessageParserTest.php', - 'Guzzle\\Tests\\Parser\\ParserRegistryTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Parser/ParserRegistryTest.php', - 'Guzzle\\Tests\\Plugin\\Async\\AsyncPluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Async/AsyncPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\AbstractBackoffStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/AbstractBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\BackoffLoggerTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/BackoffLoggerTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\BackoffPluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/BackoffPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\CallbackBackoffStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/CallbackBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\ConstantBackoffStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ConstantBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\CurlBackoffStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/CurlBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\ExponentialBackoffStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ExponentialBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\HttpBackoffStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/HttpBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\LinearBackoffStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/LinearBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\ReasonPhraseBackoffStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/ReasonPhraseBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Backoff\\TruncatedBackoffStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Backoff/TruncatedBackoffStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\CachePluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/CachePluginTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\CallbackCanCacheStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/CallbackCanCacheStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\DefaultCacheStorageTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultCacheStorageTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\DefaultCanCacheStrategyTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultCanCacheStrategyTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\DefaultRevalidationTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DefaultRevalidationTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\DenyRevalidationTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/DenyRevalidationTest.php', - 'Guzzle\\Tests\\Plugin\\Cache\\SkipRevalidationTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cache/SkipRevalidationTest.php', - 'Guzzle\\Tests\\Plugin\\Cookie\\CookieJar\\ArrayCookieJarTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookieJar/ArrayCookieJarTest.php', - 'Guzzle\\Tests\\Plugin\\Cookie\\CookieJar\\FileCookieJarTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookieJar/FileCookieJarTest.php', - 'Guzzle\\Tests\\Plugin\\Cookie\\CookiePluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookiePluginTest.php', - 'Guzzle\\Tests\\Plugin\\Cookie\\CookieTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Cookie/CookieTest.php', - 'Guzzle\\Tests\\Plugin\\CurlAuth\\CurlAuthPluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/CurlAuth/CurlAuthPluginTest.php', - 'Guzzle\\Tests\\Plugin\\ErrorResponse\\ErrorResponsePluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/ErrorResponse/ErrorResponsePluginTest.php', - 'Guzzle\\Tests\\Plugin\\History\\HistoryPluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/History/HistoryPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Log\\LogPluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Log/LogPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Md5\\CommandContentMd5PluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Md5/CommandContentMd5PluginTest.php', - 'Guzzle\\Tests\\Plugin\\Md5\\Md5ValidatorPluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Md5/Md5ValidatorPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Mock\\MockPluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Mock/MockPluginTest.php', - 'Guzzle\\Tests\\Plugin\\Oauth\\OauthPluginTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Plugin/Oauth/OauthPluginTest.php', - 'Guzzle\\Tests\\Service\\AbstractConfigLoaderTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/AbstractConfigLoaderTest.php', - 'Guzzle\\Tests\\Service\\Builder\\ServiceBuilderLoaderTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Builder/ServiceBuilderLoaderTest.php', - 'Guzzle\\Tests\\Service\\CachingConfigLoaderTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/CachingConfigLoaderTest.php', - 'Guzzle\\Tests\\Service\\ClientTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/ClientTest.php', - 'Guzzle\\Tests\\Service\\Command\\AbstractCommandTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/AbstractCommandTest.php', - 'Guzzle\\Tests\\Service\\Command\\ClosureCommandTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/ClosureCommandTest.php', - 'Guzzle\\Tests\\Service\\Command\\CommandTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/CommandTest.php', - 'Guzzle\\Tests\\Service\\Command\\DefaultRequestSerializerTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/DefaultRequestSerializerTest.php', - 'Guzzle\\Tests\\Service\\Command\\DefaultResponseParserTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/DefaultResponseParserTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\AbstractVisitorTestCase' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/AbstractVisitorTestCase.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\BodyVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/BodyVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\HeaderVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/HeaderVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\JsonVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/JsonVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\PostFieldVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/PostFieldVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\PostFileVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/PostFileVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\QueryVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/QueryVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\ResponseBodyVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/ResponseBodyVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Request\\XmlVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Request/XmlVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\AbstractResponseVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/AbstractResponseVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\BodyVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/BodyVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\HeaderVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/HeaderVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\JsonVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/JsonVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\ReasonPhraseVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/ReasonPhraseVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\StatusCodeVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/StatusCodeVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\LocationVisitor\\Response\\XmlVisitorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/LocationVisitor/Response/XmlVisitorTest.php', - 'Guzzle\\Tests\\Service\\Command\\OperationCommandTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/OperationCommandTest.php', - 'Guzzle\\Tests\\Service\\Command\\OperationResponseParserTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Command/OperationResponseParserTest.php', - 'Guzzle\\Tests\\Service\\Description\\OperationTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/OperationTest.php', - 'Guzzle\\Tests\\Service\\Description\\ParameterTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/ParameterTest.php', - 'Guzzle\\Tests\\Service\\Description\\SchemaFormatterTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/SchemaFormatterTest.php', - 'Guzzle\\Tests\\Service\\Description\\SchemaValidatorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/SchemaValidatorTest.php', - 'Guzzle\\Tests\\Service\\Description\\ServiceDescriptionLoaderTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/ServiceDescriptionLoaderTest.php', - 'Guzzle\\Tests\\Service\\Description\\ServiceDescriptionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Description/ServiceDescriptionTest.php', - 'Guzzle\\Tests\\Service\\Exception\\CommandTransferExceptionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/CommandTransferExceptionTest.php', - 'Guzzle\\Tests\\Service\\Exception\\InconsistentClientTransferExceptionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/InconsistentClientTransferExceptionTest.php', - 'Guzzle\\Tests\\Service\\Exception\\ValidationExceptionTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Exception/ValidationExceptionTest.php', - 'Guzzle\\Tests\\Service\\Mock\\Command\\IterableCommand' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/IterableCommand.php', - 'Guzzle\\Tests\\Service\\Mock\\Command\\MockCommand' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/MockCommand.php', - 'Guzzle\\Tests\\Service\\Mock\\Command\\OtherCommand' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/OtherCommand.php', - 'Guzzle\\Tests\\Service\\Mock\\Command\\Sub\\Sub' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Command/Sub/Sub.php', - 'Guzzle\\Tests\\Service\\Mock\\MockClient' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/MockClient.php', - 'Guzzle\\Tests\\Service\\Mock\\Model\\MockCommandIterator' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Mock/Model/MockCommandIterator.php', - 'Guzzle\\Tests\\Service\\Resource\\CompositeResourceIteratorFactoryTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/CompositeResourceIteratorFactoryTest.php', - 'Guzzle\\Tests\\Service\\Resource\\MapResourceIteratorFactoryTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/MapResourceIteratorFactoryTest.php', - 'Guzzle\\Tests\\Service\\Resource\\ModelTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/ModelTest.php', - 'Guzzle\\Tests\\Service\\Resource\\ResourceIteratorClassFactoryTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/ResourceIteratorClassFactoryTest.php', - 'Guzzle\\Tests\\Service\\Resource\\ResourceIteratorTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Service/Resource/ResourceIteratorTest.php', - 'Guzzle\\Tests\\Stream\\PhpStreamRequestFactoryTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Stream/PhpStreamRequestFactoryTest.php', - 'Guzzle\\Tests\\Stream\\StreamTest' => __DIR__ . '/..' . '/guzzle/guzzle/tests/Guzzle/Tests/Stream/StreamTest.php', - 'HTMLPurifier' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier.php', - 'HTMLPurifier_Arborize' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Arborize.php', - 'HTMLPurifier_AttrCollections' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrCollections.php', - 'HTMLPurifier_AttrDef' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef.php', - 'HTMLPurifier_AttrDef_CSS' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS.php', - 'HTMLPurifier_AttrDef_CSS_AlphaValue' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/AlphaValue.php', - 'HTMLPurifier_AttrDef_CSS_Background' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Background.php', - 'HTMLPurifier_AttrDef_CSS_BackgroundPosition' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php', - 'HTMLPurifier_AttrDef_CSS_Border' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Border.php', - 'HTMLPurifier_AttrDef_CSS_Color' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Color.php', - 'HTMLPurifier_AttrDef_CSS_Composite' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Composite.php', - 'HTMLPurifier_AttrDef_CSS_DenyElementDecorator' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/DenyElementDecorator.php', - 'HTMLPurifier_AttrDef_CSS_Filter' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Filter.php', - 'HTMLPurifier_AttrDef_CSS_Font' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Font.php', - 'HTMLPurifier_AttrDef_CSS_FontFamily' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/FontFamily.php', - 'HTMLPurifier_AttrDef_CSS_Ident' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Ident.php', - 'HTMLPurifier_AttrDef_CSS_ImportantDecorator' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/ImportantDecorator.php', - 'HTMLPurifier_AttrDef_CSS_Length' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Length.php', - 'HTMLPurifier_AttrDef_CSS_ListStyle' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/ListStyle.php', - 'HTMLPurifier_AttrDef_CSS_Multiple' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Multiple.php', - 'HTMLPurifier_AttrDef_CSS_Number' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Number.php', - 'HTMLPurifier_AttrDef_CSS_Percentage' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Percentage.php', - 'HTMLPurifier_AttrDef_CSS_TextDecoration' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/TextDecoration.php', - 'HTMLPurifier_AttrDef_CSS_URI' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/URI.php', - 'HTMLPurifier_AttrDef_Clone' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Clone.php', - 'HTMLPurifier_AttrDef_Enum' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Enum.php', - 'HTMLPurifier_AttrDef_HTML_Bool' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Bool.php', - 'HTMLPurifier_AttrDef_HTML_Class' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Class.php', - 'HTMLPurifier_AttrDef_HTML_Color' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Color.php', - 'HTMLPurifier_AttrDef_HTML_FrameTarget' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/FrameTarget.php', - 'HTMLPurifier_AttrDef_HTML_ID' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/ID.php', - 'HTMLPurifier_AttrDef_HTML_Length' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Length.php', - 'HTMLPurifier_AttrDef_HTML_LinkTypes' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/LinkTypes.php', - 'HTMLPurifier_AttrDef_HTML_MultiLength' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/MultiLength.php', - 'HTMLPurifier_AttrDef_HTML_Nmtokens' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Nmtokens.php', - 'HTMLPurifier_AttrDef_HTML_Pixels' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Pixels.php', - 'HTMLPurifier_AttrDef_Integer' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Integer.php', - 'HTMLPurifier_AttrDef_Lang' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Lang.php', - 'HTMLPurifier_AttrDef_Switch' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Switch.php', - 'HTMLPurifier_AttrDef_Text' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/Text.php', - 'HTMLPurifier_AttrDef_URI' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI.php', - 'HTMLPurifier_AttrDef_URI_Email' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email.php', - 'HTMLPurifier_AttrDef_URI_Email_SimpleCheck' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php', - 'HTMLPurifier_AttrDef_URI_Host' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php', - 'HTMLPurifier_AttrDef_URI_IPv4' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv4.php', - 'HTMLPurifier_AttrDef_URI_IPv6' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv6.php', - 'HTMLPurifier_AttrTransform' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform.php', - 'HTMLPurifier_AttrTransform_Background' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Background.php', - 'HTMLPurifier_AttrTransform_BdoDir' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/BdoDir.php', - 'HTMLPurifier_AttrTransform_BgColor' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/BgColor.php', - 'HTMLPurifier_AttrTransform_BoolToCSS' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/BoolToCSS.php', - 'HTMLPurifier_AttrTransform_Border' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Border.php', - 'HTMLPurifier_AttrTransform_EnumToCSS' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/EnumToCSS.php', - 'HTMLPurifier_AttrTransform_ImgRequired' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgRequired.php', - 'HTMLPurifier_AttrTransform_ImgSpace' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgSpace.php', - 'HTMLPurifier_AttrTransform_Input' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Input.php', - 'HTMLPurifier_AttrTransform_Lang' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Lang.php', - 'HTMLPurifier_AttrTransform_Length' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Length.php', - 'HTMLPurifier_AttrTransform_Name' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Name.php', - 'HTMLPurifier_AttrTransform_NameSync' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/NameSync.php', - 'HTMLPurifier_AttrTransform_Nofollow' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Nofollow.php', - 'HTMLPurifier_AttrTransform_SafeEmbed' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeEmbed.php', - 'HTMLPurifier_AttrTransform_SafeObject' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeObject.php', - 'HTMLPurifier_AttrTransform_SafeParam' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeParam.php', - 'HTMLPurifier_AttrTransform_ScriptRequired' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/ScriptRequired.php', - 'HTMLPurifier_AttrTransform_TargetBlank' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/TargetBlank.php', - 'HTMLPurifier_AttrTransform_TargetNoopener' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/TargetNoopener.php', - 'HTMLPurifier_AttrTransform_TargetNoreferrer' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/TargetNoreferrer.php', - 'HTMLPurifier_AttrTransform_Textarea' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTransform/Textarea.php', - 'HTMLPurifier_AttrTypes' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrTypes.php', - 'HTMLPurifier_AttrValidator' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/AttrValidator.php', - 'HTMLPurifier_Bootstrap' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Bootstrap.php', - 'HTMLPurifier_CSSDefinition' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/CSSDefinition.php', - 'HTMLPurifier_ChildDef' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef.php', - 'HTMLPurifier_ChildDef_Chameleon' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Chameleon.php', - 'HTMLPurifier_ChildDef_Custom' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Custom.php', - 'HTMLPurifier_ChildDef_Empty' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Empty.php', - 'HTMLPurifier_ChildDef_List' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/List.php', - 'HTMLPurifier_ChildDef_Optional' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Optional.php', - 'HTMLPurifier_ChildDef_Required' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Required.php', - 'HTMLPurifier_ChildDef_StrictBlockquote' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/StrictBlockquote.php', - 'HTMLPurifier_ChildDef_Table' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Table.php', - 'HTMLPurifier_Config' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Config.php', - 'HTMLPurifier_ConfigSchema' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema.php', - 'HTMLPurifier_ConfigSchema_Builder_ConfigSchema' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Builder/ConfigSchema.php', - 'HTMLPurifier_ConfigSchema_Builder_Xml' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Builder/Xml.php', - 'HTMLPurifier_ConfigSchema_Exception' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Exception.php', - 'HTMLPurifier_ConfigSchema_Interchange' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php', - 'HTMLPurifier_ConfigSchema_InterchangeBuilder' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/InterchangeBuilder.php', - 'HTMLPurifier_ConfigSchema_Interchange_Directive' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange/Directive.php', - 'HTMLPurifier_ConfigSchema_Interchange_Id' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange/Id.php', - 'HTMLPurifier_ConfigSchema_Validator' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/Validator.php', - 'HTMLPurifier_ConfigSchema_ValidatorAtom' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ConfigSchema/ValidatorAtom.php', - 'HTMLPurifier_ContentSets' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ContentSets.php', - 'HTMLPurifier_Context' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Context.php', - 'HTMLPurifier_Definition' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Definition.php', - 'HTMLPurifier_DefinitionCache' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache.php', - 'HTMLPurifier_DefinitionCacheFactory' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCacheFactory.php', - 'HTMLPurifier_DefinitionCache_Decorator' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator.php', - 'HTMLPurifier_DefinitionCache_Decorator_Cleanup' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php', - 'HTMLPurifier_DefinitionCache_Decorator_Memory' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Memory.php', - 'HTMLPurifier_DefinitionCache_Null' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Null.php', - 'HTMLPurifier_DefinitionCache_Serializer' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php', - 'HTMLPurifier_Doctype' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Doctype.php', - 'HTMLPurifier_DoctypeRegistry' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/DoctypeRegistry.php', - 'HTMLPurifier_ElementDef' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ElementDef.php', - 'HTMLPurifier_Encoder' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Encoder.php', - 'HTMLPurifier_EntityLookup' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/EntityLookup.php', - 'HTMLPurifier_EntityParser' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/EntityParser.php', - 'HTMLPurifier_ErrorCollector' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ErrorCollector.php', - 'HTMLPurifier_ErrorStruct' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/ErrorStruct.php', - 'HTMLPurifier_Exception' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Exception.php', - 'HTMLPurifier_Filter' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Filter.php', - 'HTMLPurifier_Filter_ExtractStyleBlocks' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php', - 'HTMLPurifier_Filter_YouTube' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Filter/YouTube.php', - 'HTMLPurifier_Generator' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Generator.php', - 'HTMLPurifier_HTMLDefinition' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLDefinition.php', - 'HTMLPurifier_HTMLModule' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule.php', - 'HTMLPurifier_HTMLModuleManager' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModuleManager.php', - 'HTMLPurifier_HTMLModule_Bdo' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Bdo.php', - 'HTMLPurifier_HTMLModule_CommonAttributes' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/CommonAttributes.php', - 'HTMLPurifier_HTMLModule_Edit' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Edit.php', - 'HTMLPurifier_HTMLModule_Forms' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Forms.php', - 'HTMLPurifier_HTMLModule_Hypertext' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Hypertext.php', - 'HTMLPurifier_HTMLModule_Iframe' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Iframe.php', - 'HTMLPurifier_HTMLModule_Image' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Image.php', - 'HTMLPurifier_HTMLModule_Legacy' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Legacy.php', - 'HTMLPurifier_HTMLModule_List' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/List.php', - 'HTMLPurifier_HTMLModule_Name' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Name.php', - 'HTMLPurifier_HTMLModule_Nofollow' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Nofollow.php', - 'HTMLPurifier_HTMLModule_NonXMLCommonAttributes' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php', - 'HTMLPurifier_HTMLModule_Object' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Object.php', - 'HTMLPurifier_HTMLModule_Presentation' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Presentation.php', - 'HTMLPurifier_HTMLModule_Proprietary' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Proprietary.php', - 'HTMLPurifier_HTMLModule_Ruby' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Ruby.php', - 'HTMLPurifier_HTMLModule_SafeEmbed' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeEmbed.php', - 'HTMLPurifier_HTMLModule_SafeObject' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeObject.php', - 'HTMLPurifier_HTMLModule_SafeScripting' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeScripting.php', - 'HTMLPurifier_HTMLModule_Scripting' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Scripting.php', - 'HTMLPurifier_HTMLModule_StyleAttribute' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/StyleAttribute.php', - 'HTMLPurifier_HTMLModule_Tables' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tables.php', - 'HTMLPurifier_HTMLModule_Target' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Target.php', - 'HTMLPurifier_HTMLModule_TargetBlank' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/TargetBlank.php', - 'HTMLPurifier_HTMLModule_TargetNoopener' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/TargetNoopener.php', - 'HTMLPurifier_HTMLModule_TargetNoreferrer' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/TargetNoreferrer.php', - 'HTMLPurifier_HTMLModule_Text' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Text.php', - 'HTMLPurifier_HTMLModule_Tidy' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy.php', - 'HTMLPurifier_HTMLModule_Tidy_Name' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Name.php', - 'HTMLPurifier_HTMLModule_Tidy_Proprietary' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Proprietary.php', - 'HTMLPurifier_HTMLModule_Tidy_Strict' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Strict.php', - 'HTMLPurifier_HTMLModule_Tidy_Transitional' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Transitional.php', - 'HTMLPurifier_HTMLModule_Tidy_XHTML' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTML.php', - 'HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php', - 'HTMLPurifier_HTMLModule_XMLCommonAttributes' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/XMLCommonAttributes.php', - 'HTMLPurifier_IDAccumulator' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/IDAccumulator.php', - 'HTMLPurifier_Injector' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector.php', - 'HTMLPurifier_Injector_AutoParagraph' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/AutoParagraph.php', - 'HTMLPurifier_Injector_DisplayLinkURI' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/DisplayLinkURI.php', - 'HTMLPurifier_Injector_Linkify' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/Linkify.php', - 'HTMLPurifier_Injector_PurifierLinkify' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/PurifierLinkify.php', - 'HTMLPurifier_Injector_RemoveEmpty' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/RemoveEmpty.php', - 'HTMLPurifier_Injector_RemoveSpansWithoutAttributes' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/RemoveSpansWithoutAttributes.php', - 'HTMLPurifier_Injector_SafeObject' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Injector/SafeObject.php', - 'HTMLPurifier_Language' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Language.php', - 'HTMLPurifier_LanguageFactory' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/LanguageFactory.php', - 'HTMLPurifier_Length' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Length.php', - 'HTMLPurifier_Lexer' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Lexer.php', - 'HTMLPurifier_Lexer_DOMLex' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php', - 'HTMLPurifier_Lexer_DirectLex' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DirectLex.php', - 'HTMLPurifier_Lexer_PH5P' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/PH5P.php', - 'HTMLPurifier_Node' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Node.php', - 'HTMLPurifier_Node_Comment' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Node/Comment.php', - 'HTMLPurifier_Node_Element' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Node/Element.php', - 'HTMLPurifier_Node_Text' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Node/Text.php', - 'HTMLPurifier_PercentEncoder' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/PercentEncoder.php', - 'HTMLPurifier_Printer' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Printer.php', - 'HTMLPurifier_Printer_CSSDefinition' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Printer/CSSDefinition.php', - 'HTMLPurifier_Printer_ConfigForm' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Printer/ConfigForm.php', - 'HTMLPurifier_Printer_HTMLDefinition' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Printer/HTMLDefinition.php', - 'HTMLPurifier_PropertyList' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/PropertyList.php', - 'HTMLPurifier_PropertyListIterator' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/PropertyListIterator.php', - 'HTMLPurifier_Queue' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Queue.php', - 'HTMLPurifier_Strategy' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy.php', - 'HTMLPurifier_Strategy_Composite' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/Composite.php', - 'HTMLPurifier_Strategy_Core' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/Core.php', - 'HTMLPurifier_Strategy_FixNesting' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/FixNesting.php', - 'HTMLPurifier_Strategy_MakeWellFormed' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/MakeWellFormed.php', - 'HTMLPurifier_Strategy_RemoveForeignElements' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/RemoveForeignElements.php', - 'HTMLPurifier_Strategy_ValidateAttributes' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Strategy/ValidateAttributes.php', - 'HTMLPurifier_StringHash' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/StringHash.php', - 'HTMLPurifier_StringHashParser' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/StringHashParser.php', - 'HTMLPurifier_TagTransform' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/TagTransform.php', - 'HTMLPurifier_TagTransform_Font' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/TagTransform/Font.php', - 'HTMLPurifier_TagTransform_Simple' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/TagTransform/Simple.php', - 'HTMLPurifier_Token' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Token.php', - 'HTMLPurifier_TokenFactory' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/TokenFactory.php', - 'HTMLPurifier_Token_Comment' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/Comment.php', - 'HTMLPurifier_Token_Empty' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/Empty.php', - 'HTMLPurifier_Token_End' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/End.php', - 'HTMLPurifier_Token_Start' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/Start.php', - 'HTMLPurifier_Token_Tag' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/Tag.php', - 'HTMLPurifier_Token_Text' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Token/Text.php', - 'HTMLPurifier_URI' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URI.php', - 'HTMLPurifier_URIDefinition' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIDefinition.php', - 'HTMLPurifier_URIFilter' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter.php', - 'HTMLPurifier_URIFilter_DisableExternal' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternal.php', - 'HTMLPurifier_URIFilter_DisableExternalResources' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php', - 'HTMLPurifier_URIFilter_DisableResources' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/DisableResources.php', - 'HTMLPurifier_URIFilter_HostBlacklist' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/HostBlacklist.php', - 'HTMLPurifier_URIFilter_MakeAbsolute' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/MakeAbsolute.php', - 'HTMLPurifier_URIFilter_Munge' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/Munge.php', - 'HTMLPurifier_URIFilter_SafeIframe' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIFilter/SafeIframe.php', - 'HTMLPurifier_URIParser' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIParser.php', - 'HTMLPurifier_URIScheme' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme.php', - 'HTMLPurifier_URISchemeRegistry' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URISchemeRegistry.php', - 'HTMLPurifier_URIScheme_data' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/data.php', - 'HTMLPurifier_URIScheme_file' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/file.php', - 'HTMLPurifier_URIScheme_ftp' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/ftp.php', - 'HTMLPurifier_URIScheme_http' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/http.php', - 'HTMLPurifier_URIScheme_https' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/https.php', - 'HTMLPurifier_URIScheme_mailto' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/mailto.php', - 'HTMLPurifier_URIScheme_news' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/news.php', - 'HTMLPurifier_URIScheme_nntp' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/nntp.php', - 'HTMLPurifier_URIScheme_tel' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/tel.php', - 'HTMLPurifier_UnitConverter' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/UnitConverter.php', - 'HTMLPurifier_VarParser' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/VarParser.php', - 'HTMLPurifier_VarParserException' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/VarParserException.php', - 'HTMLPurifier_VarParser_Flexible' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/VarParser/Flexible.php', - 'HTMLPurifier_VarParser_Native' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/VarParser/Native.php', - 'HTMLPurifier_Zipper' => __DIR__ . '/..' . '/ezyang/htmlpurifier/library/HTMLPurifier/Zipper.php', - 'League\\Flysystem\\AdapterInterface' => __DIR__ . '/..' . '/league/flysystem/src/AdapterInterface.php', - 'League\\Flysystem\\Adapter\\AbstractAdapter' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/AbstractAdapter.php', - 'League\\Flysystem\\Adapter\\AbstractFtpAdapter' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/AbstractFtpAdapter.php', - 'League\\Flysystem\\Adapter\\CanOverwriteFiles' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/CanOverwriteFiles.php', - 'League\\Flysystem\\Adapter\\Ftp' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/Ftp.php', - 'League\\Flysystem\\Adapter\\Ftpd' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/Ftpd.php', - 'League\\Flysystem\\Adapter\\Local' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/Local.php', - 'League\\Flysystem\\Adapter\\NullAdapter' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/NullAdapter.php', - 'League\\Flysystem\\Adapter\\Polyfill\\NotSupportingVisibilityTrait' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/Polyfill/NotSupportingVisibilityTrait.php', - 'League\\Flysystem\\Adapter\\Polyfill\\StreamedCopyTrait' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/Polyfill/StreamedCopyTrait.php', - 'League\\Flysystem\\Adapter\\Polyfill\\StreamedReadingTrait' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/Polyfill/StreamedReadingTrait.php', - 'League\\Flysystem\\Adapter\\Polyfill\\StreamedTrait' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/Polyfill/StreamedTrait.php', - 'League\\Flysystem\\Adapter\\Polyfill\\StreamedWritingTrait' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/Polyfill/StreamedWritingTrait.php', - 'League\\Flysystem\\Adapter\\SynologyFtp' => __DIR__ . '/..' . '/league/flysystem/src/Adapter/SynologyFtp.php', - 'League\\Flysystem\\Cached\\CacheInterface' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/CacheInterface.php', - 'League\\Flysystem\\Cached\\CachedAdapter' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/CachedAdapter.php', - 'League\\Flysystem\\Cached\\Storage\\AbstractCache' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/Storage/AbstractCache.php', - 'League\\Flysystem\\Cached\\Storage\\Adapter' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/Storage/Adapter.php', - 'League\\Flysystem\\Cached\\Storage\\Memcached' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/Storage/Memcached.php', - 'League\\Flysystem\\Cached\\Storage\\Memory' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/Storage/Memory.php', - 'League\\Flysystem\\Cached\\Storage\\Noop' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/Storage/Noop.php', - 'League\\Flysystem\\Cached\\Storage\\PhpRedis' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/Storage/PhpRedis.php', - 'League\\Flysystem\\Cached\\Storage\\Predis' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/Storage/Predis.php', - 'League\\Flysystem\\Cached\\Storage\\Psr6Cache' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/Storage/Psr6Cache.php', - 'League\\Flysystem\\Cached\\Storage\\Stash' => __DIR__ . '/..' . '/league/flysystem-cached-adapter/src/Storage/Stash.php', - 'League\\Flysystem\\Config' => __DIR__ . '/..' . '/league/flysystem/src/Config.php', - 'League\\Flysystem\\ConfigAwareTrait' => __DIR__ . '/..' . '/league/flysystem/src/ConfigAwareTrait.php', - 'League\\Flysystem\\ConnectionErrorException' => __DIR__ . '/..' . '/league/flysystem/src/ConnectionErrorException.php', - 'League\\Flysystem\\ConnectionRuntimeException' => __DIR__ . '/..' . '/league/flysystem/src/ConnectionRuntimeException.php', - 'League\\Flysystem\\CorruptedPathDetected' => __DIR__ . '/..' . '/league/flysystem/src/CorruptedPathDetected.php', - 'League\\Flysystem\\Directory' => __DIR__ . '/..' . '/league/flysystem/src/Directory.php', - 'League\\Flysystem\\Exception' => __DIR__ . '/..' . '/league/flysystem/src/Exception.php', - 'League\\Flysystem\\File' => __DIR__ . '/..' . '/league/flysystem/src/File.php', - 'League\\Flysystem\\FileExistsException' => __DIR__ . '/..' . '/league/flysystem/src/FileExistsException.php', - 'League\\Flysystem\\FileNotFoundException' => __DIR__ . '/..' . '/league/flysystem/src/FileNotFoundException.php', - 'League\\Flysystem\\Filesystem' => __DIR__ . '/..' . '/league/flysystem/src/Filesystem.php', - 'League\\Flysystem\\FilesystemException' => __DIR__ . '/..' . '/league/flysystem/src/FilesystemException.php', - 'League\\Flysystem\\FilesystemInterface' => __DIR__ . '/..' . '/league/flysystem/src/FilesystemInterface.php', - 'League\\Flysystem\\FilesystemNotFoundException' => __DIR__ . '/..' . '/league/flysystem/src/FilesystemNotFoundException.php', - 'League\\Flysystem\\Handler' => __DIR__ . '/..' . '/league/flysystem/src/Handler.php', - 'League\\Flysystem\\InvalidRootException' => __DIR__ . '/..' . '/league/flysystem/src/InvalidRootException.php', - 'League\\Flysystem\\MountManager' => __DIR__ . '/..' . '/league/flysystem/src/MountManager.php', - 'League\\Flysystem\\NotSupportedException' => __DIR__ . '/..' . '/league/flysystem/src/NotSupportedException.php', - 'League\\Flysystem\\PluginInterface' => __DIR__ . '/..' . '/league/flysystem/src/PluginInterface.php', - 'League\\Flysystem\\Plugin\\AbstractPlugin' => __DIR__ . '/..' . '/league/flysystem/src/Plugin/AbstractPlugin.php', - 'League\\Flysystem\\Plugin\\EmptyDir' => __DIR__ . '/..' . '/league/flysystem/src/Plugin/EmptyDir.php', - 'League\\Flysystem\\Plugin\\ForcedCopy' => __DIR__ . '/..' . '/league/flysystem/src/Plugin/ForcedCopy.php', - 'League\\Flysystem\\Plugin\\ForcedRename' => __DIR__ . '/..' . '/league/flysystem/src/Plugin/ForcedRename.php', - 'League\\Flysystem\\Plugin\\GetWithMetadata' => __DIR__ . '/..' . '/league/flysystem/src/Plugin/GetWithMetadata.php', - 'League\\Flysystem\\Plugin\\ListFiles' => __DIR__ . '/..' . '/league/flysystem/src/Plugin/ListFiles.php', - 'League\\Flysystem\\Plugin\\ListPaths' => __DIR__ . '/..' . '/league/flysystem/src/Plugin/ListPaths.php', - 'League\\Flysystem\\Plugin\\ListWith' => __DIR__ . '/..' . '/league/flysystem/src/Plugin/ListWith.php', - 'League\\Flysystem\\Plugin\\PluggableTrait' => __DIR__ . '/..' . '/league/flysystem/src/Plugin/PluggableTrait.php', - 'League\\Flysystem\\Plugin\\PluginNotFoundException' => __DIR__ . '/..' . '/league/flysystem/src/Plugin/PluginNotFoundException.php', - 'League\\Flysystem\\ReadInterface' => __DIR__ . '/..' . '/league/flysystem/src/ReadInterface.php', - 'League\\Flysystem\\RootViolationException' => __DIR__ . '/..' . '/league/flysystem/src/RootViolationException.php', - 'League\\Flysystem\\SafeStorage' => __DIR__ . '/..' . '/league/flysystem/src/SafeStorage.php', - 'League\\Flysystem\\UnreadableFileException' => __DIR__ . '/..' . '/league/flysystem/src/UnreadableFileException.php', - 'League\\Flysystem\\Util' => __DIR__ . '/..' . '/league/flysystem/src/Util.php', - 'League\\Flysystem\\Util\\ContentListingFormatter' => __DIR__ . '/..' . '/league/flysystem/src/Util/ContentListingFormatter.php', - 'League\\Flysystem\\Util\\MimeType' => __DIR__ . '/..' . '/league/flysystem/src/Util/MimeType.php', - 'League\\Flysystem\\Util\\StreamHasher' => __DIR__ . '/..' . '/league/flysystem/src/Util/StreamHasher.php', - 'League\\MimeTypeDetection\\EmptyExtensionToMimeTypeMap' => __DIR__ . '/..' . '/league/mime-type-detection/src/EmptyExtensionToMimeTypeMap.php', - 'League\\MimeTypeDetection\\ExtensionMimeTypeDetector' => __DIR__ . '/..' . '/league/mime-type-detection/src/ExtensionMimeTypeDetector.php', - 'League\\MimeTypeDetection\\ExtensionToMimeTypeMap' => __DIR__ . '/..' . '/league/mime-type-detection/src/ExtensionToMimeTypeMap.php', - 'League\\MimeTypeDetection\\FinfoMimeTypeDetector' => __DIR__ . '/..' . '/league/mime-type-detection/src/FinfoMimeTypeDetector.php', - 'League\\MimeTypeDetection\\GeneratedExtensionToMimeTypeMap' => __DIR__ . '/..' . '/league/mime-type-detection/src/GeneratedExtensionToMimeTypeMap.php', - 'League\\MimeTypeDetection\\MimeTypeDetector' => __DIR__ . '/..' . '/league/mime-type-detection/src/MimeTypeDetector.php', - 'League\\MimeTypeDetection\\OverridingExtensionToMimeTypeMap' => __DIR__ . '/..' . '/league/mime-type-detection/src/OverridingExtensionToMimeTypeMap.php', - 'Matrix\\Builder' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Builder.php', - 'Matrix\\Decomposition\\Decomposition' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Decomposition/Decomposition.php', - 'Matrix\\Decomposition\\LU' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Decomposition/LU.php', - 'Matrix\\Decomposition\\QR' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Decomposition/QR.php', - 'Matrix\\Div0Exception' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Div0Exception.php', - 'Matrix\\Exception' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Exception.php', - 'Matrix\\Functions' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Functions.php', - 'Matrix\\Matrix' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Matrix.php', - 'Matrix\\Operators\\Addition' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operators/Addition.php', - 'Matrix\\Operators\\DirectSum' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operators/DirectSum.php', - 'Matrix\\Operators\\Division' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operators/Division.php', - 'Matrix\\Operators\\Multiplication' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operators/Multiplication.php', - 'Matrix\\Operators\\Operator' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operators/Operator.php', - 'Matrix\\Operators\\Subtraction' => __DIR__ . '/..' . '/markbaker/matrix/classes/src/Operators/Subtraction.php', - 'Monolog\\ErrorHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/ErrorHandler.php', - 'Monolog\\Formatter\\ChromePHPFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php', - 'Monolog\\Formatter\\ElasticaFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php', - 'Monolog\\Formatter\\FlowdockFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php', - 'Monolog\\Formatter\\FluentdFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php', - 'Monolog\\Formatter\\FormatterInterface' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php', - 'Monolog\\Formatter\\GelfMessageFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php', - 'Monolog\\Formatter\\HtmlFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php', - 'Monolog\\Formatter\\JsonFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php', - 'Monolog\\Formatter\\LineFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/LineFormatter.php', - 'Monolog\\Formatter\\LogglyFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php', - 'Monolog\\Formatter\\LogstashFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php', - 'Monolog\\Formatter\\MongoDBFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php', - 'Monolog\\Formatter\\NormalizerFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php', - 'Monolog\\Formatter\\ScalarFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php', - 'Monolog\\Formatter\\WildfireFormatter' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php', - 'Monolog\\Handler\\AbstractHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/AbstractHandler.php', - 'Monolog\\Handler\\AbstractProcessingHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php', - 'Monolog\\Handler\\AbstractSyslogHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php', - 'Monolog\\Handler\\AmqpHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/AmqpHandler.php', - 'Monolog\\Handler\\BrowserConsoleHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php', - 'Monolog\\Handler\\BufferHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/BufferHandler.php', - 'Monolog\\Handler\\ChromePHPHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php', - 'Monolog\\Handler\\CouchDBHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php', - 'Monolog\\Handler\\CubeHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/CubeHandler.php', - 'Monolog\\Handler\\Curl\\Util' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/Curl/Util.php', - 'Monolog\\Handler\\DeduplicationHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php', - 'Monolog\\Handler\\DoctrineCouchDBHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php', - 'Monolog\\Handler\\DynamoDbHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php', - 'Monolog\\Handler\\ElasticSearchHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php', - 'Monolog\\Handler\\ErrorLogHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php', - 'Monolog\\Handler\\FilterHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FilterHandler.php', - 'Monolog\\Handler\\FingersCrossedHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php', - 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php', - 'Monolog\\Handler\\FingersCrossed\\ChannelLevelActivationStrategy' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php', - 'Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php', - 'Monolog\\Handler\\FirePHPHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php', - 'Monolog\\Handler\\FleepHookHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php', - 'Monolog\\Handler\\FlowdockHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php', - 'Monolog\\Handler\\GelfHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/GelfHandler.php', - 'Monolog\\Handler\\GroupHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/GroupHandler.php', - 'Monolog\\Handler\\HandlerInterface' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/HandlerInterface.php', - 'Monolog\\Handler\\HandlerWrapper' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php', - 'Monolog\\Handler\\HipChatHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/HipChatHandler.php', - 'Monolog\\Handler\\IFTTTHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php', - 'Monolog\\Handler\\LogEntriesHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php', - 'Monolog\\Handler\\LogglyHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/LogglyHandler.php', - 'Monolog\\Handler\\MailHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/MailHandler.php', - 'Monolog\\Handler\\MandrillHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/MandrillHandler.php', - 'Monolog\\Handler\\MissingExtensionException' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php', - 'Monolog\\Handler\\MongoDBHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php', - 'Monolog\\Handler\\NativeMailerHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php', - 'Monolog\\Handler\\NewRelicHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php', - 'Monolog\\Handler\\NullHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/NullHandler.php', - 'Monolog\\Handler\\PHPConsoleHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php', - 'Monolog\\Handler\\PsrHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/PsrHandler.php', - 'Monolog\\Handler\\PushoverHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/PushoverHandler.php', - 'Monolog\\Handler\\RavenHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/RavenHandler.php', - 'Monolog\\Handler\\RedisHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/RedisHandler.php', - 'Monolog\\Handler\\RollbarHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/RollbarHandler.php', - 'Monolog\\Handler\\RotatingFileHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php', - 'Monolog\\Handler\\SamplingHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SamplingHandler.php', - 'Monolog\\Handler\\SlackHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SlackHandler.php', - 'Monolog\\Handler\\SlackWebhookHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php', - 'Monolog\\Handler\\Slack\\SlackRecord' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php', - 'Monolog\\Handler\\SlackbotHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php', - 'Monolog\\Handler\\SocketHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SocketHandler.php', - 'Monolog\\Handler\\StreamHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/StreamHandler.php', - 'Monolog\\Handler\\SwiftMailerHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php', - 'Monolog\\Handler\\SyslogHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SyslogHandler.php', - 'Monolog\\Handler\\SyslogUdpHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php', - 'Monolog\\Handler\\SyslogUdp\\UdpSocket' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php', - 'Monolog\\Handler\\TestHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/TestHandler.php', - 'Monolog\\Handler\\WhatFailureGroupHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php', - 'Monolog\\Handler\\ZendMonitorHandler' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php', - 'Monolog\\Logger' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Logger.php', - 'Monolog\\Processor\\GitProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/GitProcessor.php', - 'Monolog\\Processor\\IntrospectionProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php', - 'Monolog\\Processor\\MemoryPeakUsageProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php', - 'Monolog\\Processor\\MemoryProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php', - 'Monolog\\Processor\\MemoryUsageProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php', - 'Monolog\\Processor\\MercurialProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php', - 'Monolog\\Processor\\ProcessIdProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php', - 'Monolog\\Processor\\PsrLogMessageProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php', - 'Monolog\\Processor\\TagProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/TagProcessor.php', - 'Monolog\\Processor\\UidProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/UidProcessor.php', - 'Monolog\\Processor\\WebProcessor' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Processor/WebProcessor.php', - 'Monolog\\Registry' => __DIR__ . '/..' . '/monolog/monolog/src/Monolog/Registry.php', - 'MyCLabs\\Enum\\Enum' => __DIR__ . '/..' . '/myclabs/php-enum/src/Enum.php', - 'MyCLabs\\Enum\\PHPUnit\\Comparator' => __DIR__ . '/..' . '/myclabs/php-enum/src/PHPUnit/Comparator.php', - 'OSS\\Core\\MimeTypes' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Core/MimeTypes.php', - 'OSS\\Core\\OssException' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Core/OssException.php', - 'OSS\\Core\\OssUtil' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Core/OssUtil.php', - 'OSS\\Http\\RequestCore' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Http/RequestCore.php', - 'OSS\\Http\\RequestCore_Exception' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Http/RequestCore_Exception.php', - 'OSS\\Http\\ResponseCore' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Http/ResponseCore.php', - 'OSS\\Model\\BucketInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/BucketInfo.php', - 'OSS\\Model\\BucketListInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/BucketListInfo.php', - 'OSS\\Model\\BucketStat' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/BucketStat.php', - 'OSS\\Model\\CnameConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/CnameConfig.php', - 'OSS\\Model\\CorsConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/CorsConfig.php', - 'OSS\\Model\\CorsRule' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/CorsRule.php', - 'OSS\\Model\\DeleteMarkerInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/DeleteMarkerInfo.php', - 'OSS\\Model\\DeleteObjectInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/DeleteObjectInfo.php', - 'OSS\\Model\\DeletedObjectInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/DeletedObjectInfo.php', - 'OSS\\Model\\ExtendWormConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/ExtendWormConfig.php', - 'OSS\\Model\\GetLiveChannelHistory' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/GetLiveChannelHistory.php', - 'OSS\\Model\\GetLiveChannelInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/GetLiveChannelInfo.php', - 'OSS\\Model\\GetLiveChannelStatus' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/GetLiveChannelStatus.php', - 'OSS\\Model\\InitiateWormConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/InitiateWormConfig.php', - 'OSS\\Model\\LifecycleAction' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/LifecycleAction.php', - 'OSS\\Model\\LifecycleConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/LifecycleConfig.php', - 'OSS\\Model\\LifecycleRule' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/LifecycleRule.php', - 'OSS\\Model\\ListMultipartUploadInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/ListMultipartUploadInfo.php', - 'OSS\\Model\\ListPartsInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/ListPartsInfo.php', - 'OSS\\Model\\LiveChannelConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/LiveChannelConfig.php', - 'OSS\\Model\\LiveChannelHistory' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/LiveChannelHistory.php', - 'OSS\\Model\\LiveChannelInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/LiveChannelInfo.php', - 'OSS\\Model\\LiveChannelListInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/LiveChannelListInfo.php', - 'OSS\\Model\\LoggingConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/LoggingConfig.php', - 'OSS\\Model\\ObjectInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectInfo.php', - 'OSS\\Model\\ObjectListInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectListInfo.php', - 'OSS\\Model\\ObjectVersionInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectVersionInfo.php', - 'OSS\\Model\\ObjectVersionListInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/ObjectVersionListInfo.php', - 'OSS\\Model\\PartInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/PartInfo.php', - 'OSS\\Model\\PrefixInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/PrefixInfo.php', - 'OSS\\Model\\RefererConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/RefererConfig.php', - 'OSS\\Model\\RequestPaymentConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/RequestPaymentConfig.php', - 'OSS\\Model\\RestoreConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/RestoreConfig.php', - 'OSS\\Model\\ServerSideEncryptionConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/ServerSideEncryptionConfig.php', - 'OSS\\Model\\StorageCapacityConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/StorageCapacityConfig.php', - 'OSS\\Model\\Tag' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/Tag.php', - 'OSS\\Model\\TaggingConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/TaggingConfig.php', - 'OSS\\Model\\UploadInfo' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/UploadInfo.php', - 'OSS\\Model\\VersioningConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/VersioningConfig.php', - 'OSS\\Model\\WebsiteConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/WebsiteConfig.php', - 'OSS\\Model\\WormConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/WormConfig.php', - 'OSS\\Model\\XmlConfig' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Model/XmlConfig.php', - 'OSS\\OssClient' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/OssClient.php', - 'OSS\\Result\\AclResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/AclResult.php', - 'OSS\\Result\\AppendResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/AppendResult.php', - 'OSS\\Result\\BodyResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/BodyResult.php', - 'OSS\\Result\\CallbackResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/CallbackResult.php', - 'OSS\\Result\\CopyObjectResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/CopyObjectResult.php', - 'OSS\\Result\\DeleteObjectVersionsResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/DeleteObjectVersionsResult.php', - 'OSS\\Result\\DeleteObjectsResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/DeleteObjectsResult.php', - 'OSS\\Result\\ExistResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/ExistResult.php', - 'OSS\\Result\\GetBucketEncryptionResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketEncryptionResult.php', - 'OSS\\Result\\GetBucketInfoResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketInfoResult.php', - 'OSS\\Result\\GetBucketRequestPaymentResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketRequestPaymentResult.php', - 'OSS\\Result\\GetBucketStatResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketStatResult.php', - 'OSS\\Result\\GetBucketTagsResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketTagsResult.php', - 'OSS\\Result\\GetBucketVersioningResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketVersioningResult.php', - 'OSS\\Result\\GetBucketWormResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketWormResult.php', - 'OSS\\Result\\GetCnameResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetCnameResult.php', - 'OSS\\Result\\GetCorsResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetCorsResult.php', - 'OSS\\Result\\GetLifecycleResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLifecycleResult.php', - 'OSS\\Result\\GetLiveChannelHistoryResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLiveChannelHistoryResult.php', - 'OSS\\Result\\GetLiveChannelInfoResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLiveChannelInfoResult.php', - 'OSS\\Result\\GetLiveChannelStatusResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLiveChannelStatusResult.php', - 'OSS\\Result\\GetLocationResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLocationResult.php', - 'OSS\\Result\\GetLoggingResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetLoggingResult.php', - 'OSS\\Result\\GetRefererResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetRefererResult.php', - 'OSS\\Result\\GetStorageCapacityResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetStorageCapacityResult.php', - 'OSS\\Result\\GetWebsiteResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/GetWebsiteResult.php', - 'OSS\\Result\\HeaderResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/HeaderResult.php', - 'OSS\\Result\\InitiateBucketWormResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/InitiateBucketWormResult.php', - 'OSS\\Result\\InitiateMultipartUploadResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/InitiateMultipartUploadResult.php', - 'OSS\\Result\\ListBucketsResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListBucketsResult.php', - 'OSS\\Result\\ListLiveChannelResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListLiveChannelResult.php', - 'OSS\\Result\\ListMultipartUploadResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListMultipartUploadResult.php', - 'OSS\\Result\\ListObjectVersionsResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListObjectVersionsResult.php', - 'OSS\\Result\\ListObjectsResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListObjectsResult.php', - 'OSS\\Result\\ListPartsResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/ListPartsResult.php', - 'OSS\\Result\\PutLiveChannelResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/PutLiveChannelResult.php', - 'OSS\\Result\\PutSetDeleteResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/PutSetDeleteResult.php', - 'OSS\\Result\\Result' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/Result.php', - 'OSS\\Result\\SymlinkResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/SymlinkResult.php', - 'OSS\\Result\\UploadPartResult' => __DIR__ . '/..' . '/aliyuncs/oss-sdk-php/src/OSS/Result/UploadPartResult.php', - 'Obs\\Internal\\Common\\CheckoutStream' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Common/CheckoutStream.php', - 'Obs\\Internal\\Common\\ITransform' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Common/ITransform.php', - 'Obs\\Internal\\Common\\Model' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Common/Model.php', - 'Obs\\Internal\\Common\\ObsTransform' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Common/ObsTransform.php', - 'Obs\\Internal\\Common\\SchemaFormatter' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Common/SchemaFormatter.php', - 'Obs\\Internal\\Common\\SdkCurlFactory' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Common/SdkCurlFactory.php', - 'Obs\\Internal\\Common\\SdkStreamHandler' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Common/SdkStreamHandler.php', - 'Obs\\Internal\\Common\\ToArrayInterface' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Common/ToArrayInterface.php', - 'Obs\\Internal\\Common\\V2Transform' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Common/V2Transform.php', - 'Obs\\Internal\\GetResponseTrait' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/GetResponseTrait.php', - 'Obs\\Internal\\Resource\\Constants' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Resource/Constants.php', - 'Obs\\Internal\\Resource\\OBSConstants' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Resource/OBSConstants.php', - 'Obs\\Internal\\Resource\\OBSRequestResource' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Resource/OBSRequestResource.php', - 'Obs\\Internal\\Resource\\V2Constants' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Resource/V2Constants.php', - 'Obs\\Internal\\Resource\\V2RequestResource' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Resource/V2RequestResource.php', - 'Obs\\Internal\\SendRequestTrait' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/SendRequestTrait.php', - 'Obs\\Internal\\Signature\\AbstractSignature' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Signature/AbstractSignature.php', - 'Obs\\Internal\\Signature\\DefaultSignature' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Signature/DefaultSignature.php', - 'Obs\\Internal\\Signature\\SignatureInterface' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Signature/SignatureInterface.php', - 'Obs\\Internal\\Signature\\V4Signature' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Internal/Signature/V4Signature.php', - 'Obs\\Log\\ObsConfig' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Log/ObsConfig.php', - 'Obs\\Log\\ObsLog' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/Log/ObsLog.php', - 'Obs\\ObsClient' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/ObsClient.php', - 'Obs\\ObsException' => __DIR__ . '/..' . '/obs/esdk-obs-php/Obs/ObsException.php', - 'OneSm\\Sm3' => __DIR__ . '/..' . '/lizhichao/one-sm/src/Sm3.php', - 'OneSm\\Sm4' => __DIR__ . '/..' . '/lizhichao/one-sm/src/Sm4.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Calculation' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Calculation.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Category' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Category.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DAverage' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DAverage.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DCount' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DCount.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DCountA' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DCountA.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DGet' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DGet.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DMax' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DMax.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DMin' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DMin.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DProduct' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DProduct.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DStDev' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DStDev.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DStDevP' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DStDevP.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DSum' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DSum.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DVar' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DVar.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DVarP' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DVarP.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Database\\DatabaseAbstract' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Database/DatabaseAbstract.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\DateTime' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/DateTime.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engine\\CyclicReferenceStack' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/CyclicReferenceStack.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engine\\Logger' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engine/Logger.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\BesselI' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselI.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\BesselJ' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselJ.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\BesselK' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselK.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\BesselY' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BesselY.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\BitWise' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/BitWise.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\Compare' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/Compare.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertBase' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertBase.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertBinary' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertBinary.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertDecimal' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertDecimal.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertHex' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertHex.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertOctal' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertOctal.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ConvertUOM' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ConvertUOM.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\Erf' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/Erf.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Engineering\\ErfC' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Engineering/ErfC.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Exception' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Exception.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\ExceptionHandler' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/ExceptionHandler.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Financial' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\FormulaParser' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/FormulaParser.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\FormulaToken' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/FormulaToken.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Functions' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Functions.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Internal\\MakeMatrix' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Internal/MakeMatrix.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Internal\\WildcardMatch' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Internal/WildcardMatch.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Logical' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Logical\\Boolean' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical/Boolean.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Logical\\Conditional' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical/Conditional.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Logical\\Operations' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Logical/Operations.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\LookupRef' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/LookupRef.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Ceiling' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Ceiling.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\CeilingMath' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/CeilingMath.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\CeilingPrecise' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/CeilingPrecise.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Floor' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Floor.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\FloorMath' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/FloorMath.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\FloorPrecise' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/FloorPrecise.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\IntClass' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/IntClass.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Mround' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Mround.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Roman' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Roman.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Round' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Round.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\RoundDown' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/RoundDown.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\RoundUp' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/RoundUp.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\MathTrig\\Trunc' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/MathTrig/Trunc.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\AggregateBase' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/AggregateBase.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Averages' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Averages.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Conditional' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Conditional.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Counts' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Counts.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\MaxMinBase' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/MaxMinBase.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Maximum' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Maximum.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Minimum' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Minimum.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Permutations' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Permutations.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\StandardDeviations' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/StandardDeviations.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\VarianceBase' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/VarianceBase.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Statistical\\Variances' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Statistical/Variances.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\TextData' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/TextData.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Token\\Stack' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Token/Stack.php', - 'PhpOffice\\PhpSpreadsheet\\Calculation\\Web' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Web.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\AddressHelper' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/AddressHelper.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\AdvancedValueBinder' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/AdvancedValueBinder.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\Cell' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Cell.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\Coordinate' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Coordinate.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\DataType' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DataType.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\DataValidation' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DataValidation.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\DataValidator' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DataValidator.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\DefaultValueBinder' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/DefaultValueBinder.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\Hyperlink' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Hyperlink.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\IValueBinder' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/IValueBinder.php', - 'PhpOffice\\PhpSpreadsheet\\Cell\\StringValueBinder' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/StringValueBinder.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Axis' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Axis.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Chart' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Chart.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\DataSeries' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/DataSeries.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\DataSeriesValues' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/DataSeriesValues.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Exception' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Exception.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\GridLines' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/GridLines.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Layout' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Layout.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Legend' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Legend.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\PlotArea' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/PlotArea.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Properties' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Properties.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Renderer\\IRenderer' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/IRenderer.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Renderer\\JpGraph' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Renderer/JpGraph.php', - 'PhpOffice\\PhpSpreadsheet\\Chart\\Title' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Chart/Title.php', - 'PhpOffice\\PhpSpreadsheet\\Collection\\Cells' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Cells.php', - 'PhpOffice\\PhpSpreadsheet\\Collection\\CellsFactory' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/CellsFactory.php', - 'PhpOffice\\PhpSpreadsheet\\Collection\\Memory' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Memory.php', - 'PhpOffice\\PhpSpreadsheet\\Comment' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Comment.php', - 'PhpOffice\\PhpSpreadsheet\\DefinedName' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/DefinedName.php', - 'PhpOffice\\PhpSpreadsheet\\DocumentGenerator' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/DocumentGenerator.php', - 'PhpOffice\\PhpSpreadsheet\\Document\\Properties' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Document/Properties.php', - 'PhpOffice\\PhpSpreadsheet\\Document\\Security' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Document/Security.php', - 'PhpOffice\\PhpSpreadsheet\\Exception' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Exception.php', - 'PhpOffice\\PhpSpreadsheet\\HashTable' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/HashTable.php', - 'PhpOffice\\PhpSpreadsheet\\Helper\\Html' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Html.php', - 'PhpOffice\\PhpSpreadsheet\\Helper\\Sample' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Helper/Sample.php', - 'PhpOffice\\PhpSpreadsheet\\IComparable' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IComparable.php', - 'PhpOffice\\PhpSpreadsheet\\IOFactory' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IOFactory.php', - 'PhpOffice\\PhpSpreadsheet\\NamedFormula' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/NamedFormula.php', - 'PhpOffice\\PhpSpreadsheet\\NamedRange' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/NamedRange.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\BaseReader' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/BaseReader.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Csv' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Csv.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\DefaultReadFilter' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/DefaultReadFilter.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Exception' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Exception.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Gnumeric' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Gnumeric.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Gnumeric\\PageSetup' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Gnumeric/PageSetup.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Html' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Html.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\IReadFilter' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/IReadFilter.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\IReader' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/IReader.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Ods' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Ods\\PageSettings' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods/PageSettings.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Ods\\Properties' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Ods/Properties.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Security\\XmlScanner' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Security/XmlScanner.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Slk' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Slk.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Color' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Color\\BIFF5' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color/BIFF5.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Color\\BIFF8' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color/BIFF8.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Color\\BuiltIn' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Color/BuiltIn.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\ErrorCode' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/ErrorCode.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Escher' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Escher.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\MD5' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/MD5.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\RC4' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/RC4.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Style\\Border' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Style/Border.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xls\\Style\\FillPattern' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls/Style/FillPattern.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\AutoFilter' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/AutoFilter.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\BaseParserClass' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/BaseParserClass.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\Chart' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Chart.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\ColumnAndRowAttributes' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/ColumnAndRowAttributes.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\ConditionalStyles' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/ConditionalStyles.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\DataValidations' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/DataValidations.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\Hyperlinks' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Hyperlinks.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\PageSetup' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/PageSetup.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\Properties' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Properties.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\SheetViewOptions' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/SheetViewOptions.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\SheetViews' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/SheetViews.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\Styles' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Styles.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\Theme' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/Theme.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xml' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml.php', - 'PhpOffice\\PhpSpreadsheet\\Reader\\Xml\\PageSettings' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xml/PageSettings.php', - 'PhpOffice\\PhpSpreadsheet\\ReferenceHelper' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/ReferenceHelper.php', - 'PhpOffice\\PhpSpreadsheet\\RichText\\ITextElement' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/ITextElement.php', - 'PhpOffice\\PhpSpreadsheet\\RichText\\RichText' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/RichText.php', - 'PhpOffice\\PhpSpreadsheet\\RichText\\Run' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/Run.php', - 'PhpOffice\\PhpSpreadsheet\\RichText\\TextElement' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/RichText/TextElement.php', - 'PhpOffice\\PhpSpreadsheet\\Settings' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Settings.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\CodePage' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/CodePage.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Date' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Date.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Drawing' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Drawing.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DgContainer' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DgContainer.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DgContainer\\SpgrContainer' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DgContainer/SpgrContainer.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DgContainer\\SpgrContainer\\SpContainer' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DgContainer/SpgrContainer/SpContainer.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DggContainer' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DggContainer\\BstoreContainer' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DggContainer\\BstoreContainer\\BSE' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer/BSE.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Escher\\DggContainer\\BstoreContainer\\BSE\\Blip' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Escher/DggContainer/BstoreContainer/BSE/Blip.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\File' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/File.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Font' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Font.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\CholeskyDecomposition' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/CholeskyDecomposition.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\EigenvalueDecomposition' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/EigenvalueDecomposition.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\LUDecomposition' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/LUDecomposition.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\Matrix' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/Matrix.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\QRDecomposition' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/QRDecomposition.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\JAMA\\SingularValueDecomposition' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/JAMA/SingularValueDecomposition.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLERead' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLERead.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE\\ChainedBlockStream' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/ChainedBlockStream.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE\\PPS' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE\\PPS\\File' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS/File.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\OLE\\PPS\\Root' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/OLE/PPS/Root.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\PasswordHasher' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/PasswordHasher.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\StringHelper' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/StringHelper.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\TimeZone' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/TimeZone.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\BestFit' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/BestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\ExponentialBestFit' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/ExponentialBestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\LinearBestFit' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/LinearBestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\LogarithmicBestFit' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/LogarithmicBestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\PolynomialBestFit' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/PolynomialBestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\PowerBestFit' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/PowerBestFit.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Trend\\Trend' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Trend/Trend.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\XMLWriter' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/XMLWriter.php', - 'PhpOffice\\PhpSpreadsheet\\Shared\\Xls' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/Xls.php', - 'PhpOffice\\PhpSpreadsheet\\Spreadsheet' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Alignment' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Alignment.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Border' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Border.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Borders' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Borders.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Color' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Color.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Conditional' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Conditional.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\ConditionalFormatting\\ConditionalDataBar' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalDataBar.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\ConditionalFormatting\\ConditionalDataBarExtension' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalDataBarExtension.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\ConditionalFormatting\\ConditionalFormatValueObject' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalFormatValueObject.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\ConditionalFormatting\\ConditionalFormattingRuleExtension' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/ConditionalFormatting/ConditionalFormattingRuleExtension.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Fill' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Fill.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Font' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Font.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\NumberFormat' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/NumberFormat.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Protection' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Protection.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Style' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Style.php', - 'PhpOffice\\PhpSpreadsheet\\Style\\Supervisor' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Style/Supervisor.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\AutoFilter' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\AutoFilter\\Column' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter/Column.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\AutoFilter\\Column\\Rule' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter/Column/Rule.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\BaseDrawing' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/BaseDrawing.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\CellIterator' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/CellIterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Column' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Column.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\ColumnCellIterator' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnCellIterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\ColumnDimension' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnDimension.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\ColumnIterator' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/ColumnIterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Dimension' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Dimension.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Drawing' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Drawing.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Drawing\\Shadow' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Drawing/Shadow.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\HeaderFooter' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/HeaderFooter.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\HeaderFooterDrawing' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/HeaderFooterDrawing.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Iterator' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Iterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\MemoryDrawing' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/MemoryDrawing.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\PageMargins' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/PageMargins.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\PageSetup' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/PageSetup.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Protection' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Protection.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Row' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Row.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\RowCellIterator' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowCellIterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\RowDimension' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowDimension.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\RowIterator' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/RowIterator.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\SheetView' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/SheetView.php', - 'PhpOffice\\PhpSpreadsheet\\Worksheet\\Worksheet' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\BaseWriter' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/BaseWriter.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Csv' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Csv.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Exception' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Exception.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Html' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Html.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\IWriter' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/IWriter.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Cell\\Comment' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Cell/Comment.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Cell\\Style' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Cell/Style.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Content' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Content.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Formula' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Formula.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Meta' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Meta.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\MetaInf' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/MetaInf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Mimetype' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Mimetype.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\NamedExpressions' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/NamedExpressions.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Settings' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Settings.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Styles' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Styles.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\Thumbnails' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/Thumbnails.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Ods\\WriterPart' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Ods/WriterPart.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Pdf' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Pdf\\Dompdf' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Dompdf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Pdf\\Mpdf' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Mpdf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Pdf\\Tcpdf' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Pdf/Tcpdf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\BIFFwriter' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/BIFFwriter.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Escher' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Escher.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Font' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Font.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Parser' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Parser.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Workbook' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Workbook.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Worksheet' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Worksheet.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xls\\Xf' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xls/Xf.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Chart' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Chart.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Comments' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Comments.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\ContentTypes' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/ContentTypes.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\DefinedNames' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/DefinedNames.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\DocProps' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/DocProps.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Drawing' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Drawing.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Rels' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Rels.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\RelsRibbon' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/RelsRibbon.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\RelsVBA' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/RelsVBA.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\StringTable' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/StringTable.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Style' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Style.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Theme' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Theme.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Workbook' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Workbook.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Worksheet' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Worksheet.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\WriterPart' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/WriterPart.php', - 'PhpOffice\\PhpSpreadsheet\\Writer\\Xlsx\\Xlfn' => __DIR__ . '/..' . '/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/Xlfn.php', - 'Psr\\Cache\\CacheException' => __DIR__ . '/..' . '/psr/cache/src/CacheException.php', - 'Psr\\Cache\\CacheItemInterface' => __DIR__ . '/..' . '/psr/cache/src/CacheItemInterface.php', - 'Psr\\Cache\\CacheItemPoolInterface' => __DIR__ . '/..' . '/psr/cache/src/CacheItemPoolInterface.php', - 'Psr\\Cache\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/cache/src/InvalidArgumentException.php', - 'Psr\\Container\\ContainerExceptionInterface' => __DIR__ . '/..' . '/psr/container/src/ContainerExceptionInterface.php', - 'Psr\\Container\\ContainerInterface' => __DIR__ . '/..' . '/psr/container/src/ContainerInterface.php', - 'Psr\\Container\\NotFoundExceptionInterface' => __DIR__ . '/..' . '/psr/container/src/NotFoundExceptionInterface.php', - 'Psr\\Http\\Client\\ClientExceptionInterface' => __DIR__ . '/..' . '/psr/http-client/src/ClientExceptionInterface.php', - 'Psr\\Http\\Client\\ClientInterface' => __DIR__ . '/..' . '/psr/http-client/src/ClientInterface.php', - 'Psr\\Http\\Client\\NetworkExceptionInterface' => __DIR__ . '/..' . '/psr/http-client/src/NetworkExceptionInterface.php', - 'Psr\\Http\\Client\\RequestExceptionInterface' => __DIR__ . '/..' . '/psr/http-client/src/RequestExceptionInterface.php', - 'Psr\\Http\\Message\\MessageInterface' => __DIR__ . '/..' . '/psr/http-message/src/MessageInterface.php', - 'Psr\\Http\\Message\\RequestFactoryInterface' => __DIR__ . '/..' . '/psr/http-factory/src/RequestFactoryInterface.php', - 'Psr\\Http\\Message\\RequestInterface' => __DIR__ . '/..' . '/psr/http-message/src/RequestInterface.php', - 'Psr\\Http\\Message\\ResponseFactoryInterface' => __DIR__ . '/..' . '/psr/http-factory/src/ResponseFactoryInterface.php', - 'Psr\\Http\\Message\\ResponseInterface' => __DIR__ . '/..' . '/psr/http-message/src/ResponseInterface.php', - 'Psr\\Http\\Message\\ServerRequestFactoryInterface' => __DIR__ . '/..' . '/psr/http-factory/src/ServerRequestFactoryInterface.php', - 'Psr\\Http\\Message\\ServerRequestInterface' => __DIR__ . '/..' . '/psr/http-message/src/ServerRequestInterface.php', - 'Psr\\Http\\Message\\StreamFactoryInterface' => __DIR__ . '/..' . '/psr/http-factory/src/StreamFactoryInterface.php', - 'Psr\\Http\\Message\\StreamInterface' => __DIR__ . '/..' . '/psr/http-message/src/StreamInterface.php', - 'Psr\\Http\\Message\\UploadedFileFactoryInterface' => __DIR__ . '/..' . '/psr/http-factory/src/UploadedFileFactoryInterface.php', - 'Psr\\Http\\Message\\UploadedFileInterface' => __DIR__ . '/..' . '/psr/http-message/src/UploadedFileInterface.php', - 'Psr\\Http\\Message\\UriFactoryInterface' => __DIR__ . '/..' . '/psr/http-factory/src/UriFactoryInterface.php', - 'Psr\\Http\\Message\\UriInterface' => __DIR__ . '/..' . '/psr/http-message/src/UriInterface.php', - 'Psr\\Log\\AbstractLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/AbstractLogger.php', - 'Psr\\Log\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/log/Psr/Log/InvalidArgumentException.php', - 'Psr\\Log\\LogLevel' => __DIR__ . '/..' . '/psr/log/Psr/Log/LogLevel.php', - 'Psr\\Log\\LoggerAwareInterface' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerAwareInterface.php', - 'Psr\\Log\\LoggerAwareTrait' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerAwareTrait.php', - 'Psr\\Log\\LoggerInterface' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerInterface.php', - 'Psr\\Log\\LoggerTrait' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerTrait.php', - 'Psr\\Log\\NullLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/NullLogger.php', - 'Psr\\Log\\Test\\DummyTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/DummyTest.php', - 'Psr\\Log\\Test\\LoggerInterfaceTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php', - 'Psr\\Log\\Test\\TestLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/TestLogger.php', - 'Psr\\SimpleCache\\CacheException' => __DIR__ . '/..' . '/psr/simple-cache/src/CacheException.php', - 'Psr\\SimpleCache\\CacheInterface' => __DIR__ . '/..' . '/psr/simple-cache/src/CacheInterface.php', - 'Psr\\SimpleCache\\InvalidArgumentException' => __DIR__ . '/..' . '/psr/simple-cache/src/InvalidArgumentException.php', - 'Qcloud\\Cos\\Client' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Client.php', - 'Qcloud\\Cos\\CommandToRequestTransformer' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/CommandToRequestTransformer.php', - 'Qcloud\\Cos\\Copy' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Copy.php', - 'Qcloud\\Cos\\Descriptions' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Descriptions.php', - 'Qcloud\\Cos\\ExceptionMiddleware' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ExceptionMiddleware.php', - 'Qcloud\\Cos\\ExceptionParser' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ExceptionParser.php', - 'Qcloud\\Cos\\Exception\\CosException' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Exception/CosException.php', - 'Qcloud\\Cos\\Exception\\ServiceResponseException' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Exception/ServiceResponseException.php', - 'Qcloud\\Cos\\ImageParamTemplate\\BlindWatermarkTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/BlindWatermarkTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\CIParamTransformation' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/CIParamTransformation.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageMogrTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageMogrTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageQrcodeTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageQrcodeTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageStyleTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageStyleTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageViewTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageViewTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\ImageWatermarkTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/ImageWatermarkTemplate.php', - 'Qcloud\\Cos\\ImageParamTemplate\\PicOperationsTransformation' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/PicOperationsTransformation.php', - 'Qcloud\\Cos\\ImageParamTemplate\\TextWatermarkTemplate' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ImageParamTemplate/TextWatermarkTemplate.php', - 'Qcloud\\Cos\\MultipartUpload' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/MultipartUpload.php', - 'Qcloud\\Cos\\RangeDownload' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/RangeDownload.php', - 'Qcloud\\Cos\\Request\\BodyLocation' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Request/BodyLocation.php', - 'Qcloud\\Cos\\ResultTransformer' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/ResultTransformer.php', - 'Qcloud\\Cos\\Serializer' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Serializer.php', - 'Qcloud\\Cos\\Service' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Service.php', - 'Qcloud\\Cos\\Signature' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/Signature.php', - 'Qcloud\\Cos\\SignatureMiddleware' => __DIR__ . '/..' . '/qcloud/cos-sdk-v5/src/SignatureMiddleware.php', - 'Qiniu\\Auth' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Auth.php', - 'Qiniu\\Cdn\\CdnManager' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Cdn/CdnManager.php', - 'Qiniu\\Config' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Config.php', - 'Qiniu\\Etag' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Etag.php', - 'Qiniu\\Http\\Client' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Http/Client.php', - 'Qiniu\\Http\\Error' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Http/Error.php', - 'Qiniu\\Http\\Request' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Http/Request.php', - 'Qiniu\\Http\\Response' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Http/Response.php', - 'Qiniu\\Processing\\ImageUrlBuilder' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Processing/ImageUrlBuilder.php', - 'Qiniu\\Processing\\Operation' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Processing/Operation.php', - 'Qiniu\\Processing\\PersistentFop' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Processing/PersistentFop.php', - 'Qiniu\\Region' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Region.php', - 'Qiniu\\Rtc\\AppClient' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Rtc/AppClient.php', - 'Qiniu\\Sms\\Sms' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Sms/Sms.php', - 'Qiniu\\Storage\\ArgusManager' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Storage/ArgusManager.php', - 'Qiniu\\Storage\\BucketManager' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Storage/BucketManager.php', - 'Qiniu\\Storage\\FormUploader' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Storage/FormUploader.php', - 'Qiniu\\Storage\\ResumeUploader' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Storage/ResumeUploader.php', - 'Qiniu\\Storage\\UploadManager' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Storage/UploadManager.php', - 'Qiniu\\Zone' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/Zone.php', + 'PhpToken' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php', 'Stringable' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Stringable.php', - 'Symfony\\Component\\EventDispatcher\\ContainerAwareEventDispatcher' => __DIR__ . '/..' . '/symfony/event-dispatcher/ContainerAwareEventDispatcher.php', - 'Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcher' => __DIR__ . '/..' . '/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php', - 'Symfony\\Component\\EventDispatcher\\Debug\\TraceableEventDispatcherInterface' => __DIR__ . '/..' . '/symfony/event-dispatcher/Debug/TraceableEventDispatcherInterface.php', - 'Symfony\\Component\\EventDispatcher\\Debug\\WrappedListener' => __DIR__ . '/..' . '/symfony/event-dispatcher/Debug/WrappedListener.php', - 'Symfony\\Component\\EventDispatcher\\DependencyInjection\\RegisterListenersPass' => __DIR__ . '/..' . '/symfony/event-dispatcher/DependencyInjection/RegisterListenersPass.php', - 'Symfony\\Component\\EventDispatcher\\Event' => __DIR__ . '/..' . '/symfony/event-dispatcher/Event.php', - 'Symfony\\Component\\EventDispatcher\\EventDispatcher' => __DIR__ . '/..' . '/symfony/event-dispatcher/EventDispatcher.php', - 'Symfony\\Component\\EventDispatcher\\EventDispatcherInterface' => __DIR__ . '/..' . '/symfony/event-dispatcher/EventDispatcherInterface.php', - 'Symfony\\Component\\EventDispatcher\\EventSubscriberInterface' => __DIR__ . '/..' . '/symfony/event-dispatcher/EventSubscriberInterface.php', - 'Symfony\\Component\\EventDispatcher\\GenericEvent' => __DIR__ . '/..' . '/symfony/event-dispatcher/GenericEvent.php', - 'Symfony\\Component\\EventDispatcher\\ImmutableEventDispatcher' => __DIR__ . '/..' . '/symfony/event-dispatcher/ImmutableEventDispatcher.php', - 'Symfony\\Component\\VarDumper\\Caster\\AmqpCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/AmqpCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ArgsStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ArgsStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\Caster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/Caster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ClassStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ClassStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ConstStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\CutArrayStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/CutArrayStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\CutStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/CutStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\DOMCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/DOMCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\DateCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/DateCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\DoctrineCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/DoctrineCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\DsCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/DsCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\DsPairStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/DsPairStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\EnumStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/EnumStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\ExceptionCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ExceptionCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\FrameStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/FrameStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\GmpCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/GmpCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ImagineCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ImagineCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ImgStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ImgStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\IntlCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/IntlCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\LinkStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/LinkStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\MemcachedCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/MemcachedCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\PdoCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/PdoCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\PgSqlCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/PgSqlCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ProxyManagerCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ProxyManagerCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\RedisCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/RedisCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ReflectionCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ReflectionCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\ResourceCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/ResourceCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\SplCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/SplCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\StubCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/StubCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\SymfonyCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/SymfonyCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\TraceStub' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/TraceStub.php', - 'Symfony\\Component\\VarDumper\\Caster\\UuidCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/UuidCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\XmlReaderCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/XmlReaderCaster.php', - 'Symfony\\Component\\VarDumper\\Caster\\XmlResourceCaster' => __DIR__ . '/..' . '/symfony/var-dumper/Caster/XmlResourceCaster.php', - 'Symfony\\Component\\VarDumper\\Cloner\\AbstractCloner' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/AbstractCloner.php', - 'Symfony\\Component\\VarDumper\\Cloner\\ClonerInterface' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/ClonerInterface.php', - 'Symfony\\Component\\VarDumper\\Cloner\\Cursor' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/Cursor.php', - 'Symfony\\Component\\VarDumper\\Cloner\\Data' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/Data.php', - 'Symfony\\Component\\VarDumper\\Cloner\\DumperInterface' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/DumperInterface.php', - 'Symfony\\Component\\VarDumper\\Cloner\\Stub' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/Stub.php', - 'Symfony\\Component\\VarDumper\\Cloner\\VarCloner' => __DIR__ . '/..' . '/symfony/var-dumper/Cloner/VarCloner.php', - 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\CliDescriptor' => __DIR__ . '/..' . '/symfony/var-dumper/Command/Descriptor/CliDescriptor.php', - 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\DumpDescriptorInterface' => __DIR__ . '/..' . '/symfony/var-dumper/Command/Descriptor/DumpDescriptorInterface.php', - 'Symfony\\Component\\VarDumper\\Command\\Descriptor\\HtmlDescriptor' => __DIR__ . '/..' . '/symfony/var-dumper/Command/Descriptor/HtmlDescriptor.php', - 'Symfony\\Component\\VarDumper\\Command\\ServerDumpCommand' => __DIR__ . '/..' . '/symfony/var-dumper/Command/ServerDumpCommand.php', - 'Symfony\\Component\\VarDumper\\Dumper\\AbstractDumper' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/AbstractDumper.php', - 'Symfony\\Component\\VarDumper\\Dumper\\CliDumper' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/CliDumper.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\CliContextProvider' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/ContextProvider/CliContextProvider.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/ContextProvider/ContextProviderInterface.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\RequestContextProvider' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/ContextProvider/RequestContextProvider.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\SourceContextProvider' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/ContextProvider/SourceContextProvider.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ContextualizedDumper' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/ContextualizedDumper.php', - 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/DataDumperInterface.php', - 'Symfony\\Component\\VarDumper\\Dumper\\HtmlDumper' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/HtmlDumper.php', - 'Symfony\\Component\\VarDumper\\Dumper\\ServerDumper' => __DIR__ . '/..' . '/symfony/var-dumper/Dumper/ServerDumper.php', - 'Symfony\\Component\\VarDumper\\Exception\\ThrowingCasterException' => __DIR__ . '/..' . '/symfony/var-dumper/Exception/ThrowingCasterException.php', - 'Symfony\\Component\\VarDumper\\Server\\Connection' => __DIR__ . '/..' . '/symfony/var-dumper/Server/Connection.php', - 'Symfony\\Component\\VarDumper\\Server\\DumpServer' => __DIR__ . '/..' . '/symfony/var-dumper/Server/DumpServer.php', - 'Symfony\\Component\\VarDumper\\Test\\VarDumperTestTrait' => __DIR__ . '/..' . '/symfony/var-dumper/Test/VarDumperTestTrait.php', - 'Symfony\\Component\\VarDumper\\VarDumper' => __DIR__ . '/..' . '/symfony/var-dumper/VarDumper.php', - 'Symfony\\Polyfill\\Mbstring\\Mbstring' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/Mbstring.php', - 'Symfony\\Polyfill\\Php72\\Php72' => __DIR__ . '/..' . '/symfony/polyfill-php72/Php72.php', - 'Symfony\\Polyfill\\Php80\\Php80' => __DIR__ . '/..' . '/symfony/polyfill-php80/Php80.php', 'UnhandledMatchError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php', - 'Upyun\\Api\\Form' => __DIR__ . '/..' . '/upyun/sdk/src/Upyun/Api/Form.php', - 'Upyun\\Api\\Pretreat' => __DIR__ . '/..' . '/upyun/sdk/src/Upyun/Api/Pretreat.php', - 'Upyun\\Api\\Rest' => __DIR__ . '/..' . '/upyun/sdk/src/Upyun/Api/Rest.php', - 'Upyun\\Api\\SyncVideo' => __DIR__ . '/..' . '/upyun/sdk/src/Upyun/Api/SyncVideo.php', - 'Upyun\\Config' => __DIR__ . '/..' . '/upyun/sdk/src/Upyun/Config.php', - 'Upyun\\Signature' => __DIR__ . '/..' . '/upyun/sdk/src/Upyun/Signature.php', - 'Upyun\\Uploader' => __DIR__ . '/..' . '/upyun/sdk/src/Upyun/Uploader.php', - 'Upyun\\Upyun' => __DIR__ . '/..' . '/upyun/sdk/src/Upyun/Upyun.php', - 'Upyun\\Util' => __DIR__ . '/..' . '/upyun/sdk/src/Upyun/Util.php', 'ValueError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/ValueError.php', - 'ZipStream\\Bigint' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Bigint.php', - 'ZipStream\\DeflateStream' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/DeflateStream.php', - 'ZipStream\\Exception' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Exception.php', - 'ZipStream\\Exception\\EncodingException' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Exception/EncodingException.php', - 'ZipStream\\Exception\\FileNotFoundException' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Exception/FileNotFoundException.php', - 'ZipStream\\Exception\\FileNotReadableException' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Exception/FileNotReadableException.php', - 'ZipStream\\Exception\\IncompatibleOptionsException' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Exception/IncompatibleOptionsException.php', - 'ZipStream\\Exception\\OverflowException' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Exception/OverflowException.php', - 'ZipStream\\Exception\\StreamNotReadableException' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Exception/StreamNotReadableException.php', - 'ZipStream\\File' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/File.php', - 'ZipStream\\Option\\Archive' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Option/Archive.php', - 'ZipStream\\Option\\File' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Option/File.php', - 'ZipStream\\Option\\Method' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Option/Method.php', - 'ZipStream\\Option\\Version' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Option/Version.php', - 'ZipStream\\Stream' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/Stream.php', - 'ZipStream\\ZipStream' => __DIR__ . '/..' . '/maennchen/zipstream-php/src/ZipStream.php', - 'think\\App' => __DIR__ . '/..' . '/topthink/framework/src/think/App.php', - 'think\\Cache' => __DIR__ . '/..' . '/topthink/framework/src/think/Cache.php', - 'think\\Collection' => __DIR__ . '/..' . '/topthink/think-helper/src/Collection.php', - 'think\\Config' => __DIR__ . '/..' . '/topthink/framework/src/think/Config.php', - 'think\\Console' => __DIR__ . '/..' . '/topthink/framework/src/think/Console.php', - 'think\\Container' => __DIR__ . '/..' . '/topthink/framework/src/think/Container.php', - 'think\\Cookie' => __DIR__ . '/..' . '/topthink/framework/src/think/Cookie.php', - 'think\\Db' => __DIR__ . '/..' . '/topthink/framework/src/think/Db.php', - 'think\\DbManager' => __DIR__ . '/..' . '/topthink/think-orm/src/DbManager.php', - 'think\\Env' => __DIR__ . '/..' . '/topthink/framework/src/think/Env.php', - 'think\\Event' => __DIR__ . '/..' . '/topthink/framework/src/think/Event.php', - 'think\\Exception' => __DIR__ . '/..' . '/topthink/framework/src/think/Exception.php', - 'think\\Facade' => __DIR__ . '/..' . '/topthink/framework/src/think/Facade.php', - 'think\\File' => __DIR__ . '/..' . '/topthink/framework/src/think/File.php', - 'think\\Filesystem' => __DIR__ . '/..' . '/topthink/framework/src/think/Filesystem.php', - 'think\\Http' => __DIR__ . '/..' . '/topthink/framework/src/think/Http.php', - 'think\\Lang' => __DIR__ . '/..' . '/topthink/framework/src/think/Lang.php', - 'think\\Log' => __DIR__ . '/..' . '/topthink/framework/src/think/Log.php', - 'think\\Manager' => __DIR__ . '/..' . '/topthink/framework/src/think/Manager.php', - 'think\\Middleware' => __DIR__ . '/..' . '/topthink/framework/src/think/Middleware.php', - 'think\\Model' => __DIR__ . '/..' . '/topthink/think-orm/src/Model.php', - 'think\\Paginator' => __DIR__ . '/..' . '/topthink/think-orm/src/Paginator.php', - 'think\\Pipeline' => __DIR__ . '/..' . '/topthink/framework/src/think/Pipeline.php', - 'think\\Request' => __DIR__ . '/..' . '/topthink/framework/src/think/Request.php', - 'think\\Response' => __DIR__ . '/..' . '/topthink/framework/src/think/Response.php', - 'think\\Route' => __DIR__ . '/..' . '/topthink/framework/src/think/Route.php', - 'think\\Service' => __DIR__ . '/..' . '/topthink/framework/src/think/Service.php', - 'think\\Session' => __DIR__ . '/..' . '/topthink/framework/src/think/Session.php', - 'think\\Validate' => __DIR__ . '/..' . '/topthink/framework/src/think/Validate.php', - 'think\\View' => __DIR__ . '/..' . '/topthink/framework/src/think/View.php', - 'think\\cache\\Driver' => __DIR__ . '/..' . '/topthink/framework/src/think/cache/Driver.php', - 'think\\cache\\TagSet' => __DIR__ . '/..' . '/topthink/framework/src/think/cache/TagSet.php', - 'think\\cache\\driver\\File' => __DIR__ . '/..' . '/topthink/framework/src/think/cache/driver/File.php', - 'think\\cache\\driver\\Memcache' => __DIR__ . '/..' . '/topthink/framework/src/think/cache/driver/Memcache.php', - 'think\\cache\\driver\\Memcached' => __DIR__ . '/..' . '/topthink/framework/src/think/cache/driver/Memcached.php', - 'think\\cache\\driver\\Redis' => __DIR__ . '/..' . '/topthink/framework/src/think/cache/driver/Redis.php', - 'think\\cache\\driver\\Wincache' => __DIR__ . '/..' . '/topthink/framework/src/think/cache/driver/Wincache.php', - 'think\\console\\Command' => __DIR__ . '/..' . '/topthink/framework/src/think/console/Command.php', - 'think\\console\\Input' => __DIR__ . '/..' . '/topthink/framework/src/think/console/Input.php', - 'think\\console\\Output' => __DIR__ . '/..' . '/topthink/framework/src/think/console/Output.php', - 'think\\console\\Table' => __DIR__ . '/..' . '/topthink/framework/src/think/console/Table.php', - 'think\\console\\command\\Clear' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/Clear.php', - 'think\\console\\command\\Help' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/Help.php', - 'think\\console\\command\\Lists' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/Lists.php', - 'think\\console\\command\\Make' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/Make.php', - 'think\\console\\command\\RouteList' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/RouteList.php', - 'think\\console\\command\\RunServer' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/RunServer.php', - 'think\\console\\command\\ServiceDiscover' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/ServiceDiscover.php', - 'think\\console\\command\\VendorPublish' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/VendorPublish.php', - 'think\\console\\command\\Version' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/Version.php', - 'think\\console\\command\\make\\Command' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/make/Command.php', - 'think\\console\\command\\make\\Controller' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/make/Controller.php', - 'think\\console\\command\\make\\Event' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/make/Event.php', - 'think\\console\\command\\make\\Listener' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/make/Listener.php', - 'think\\console\\command\\make\\Middleware' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/make/Middleware.php', - 'think\\console\\command\\make\\Model' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/make/Model.php', - 'think\\console\\command\\make\\Service' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/make/Service.php', - 'think\\console\\command\\make\\Subscribe' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/make/Subscribe.php', - 'think\\console\\command\\make\\Validate' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/make/Validate.php', - 'think\\console\\command\\optimize\\Route' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/optimize/Route.php', - 'think\\console\\command\\optimize\\Schema' => __DIR__ . '/..' . '/topthink/framework/src/think/console/command/optimize/Schema.php', - 'think\\console\\input\\Argument' => __DIR__ . '/..' . '/topthink/framework/src/think/console/input/Argument.php', - 'think\\console\\input\\Definition' => __DIR__ . '/..' . '/topthink/framework/src/think/console/input/Definition.php', - 'think\\console\\input\\Option' => __DIR__ . '/..' . '/topthink/framework/src/think/console/input/Option.php', - 'think\\console\\output\\Ask' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/Ask.php', - 'think\\console\\output\\Descriptor' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/Descriptor.php', - 'think\\console\\output\\Formatter' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/Formatter.php', - 'think\\console\\output\\Question' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/Question.php', - 'think\\console\\output\\descriptor\\Console' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/descriptor/Console.php', - 'think\\console\\output\\driver\\Buffer' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/driver/Buffer.php', - 'think\\console\\output\\driver\\Console' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/driver/Console.php', - 'think\\console\\output\\driver\\Nothing' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/driver/Nothing.php', - 'think\\console\\output\\formatter\\Stack' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/formatter/Stack.php', - 'think\\console\\output\\formatter\\Style' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/formatter/Style.php', - 'think\\console\\output\\question\\Choice' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/question/Choice.php', - 'think\\console\\output\\question\\Confirmation' => __DIR__ . '/..' . '/topthink/framework/src/think/console/output/question/Confirmation.php', - 'think\\contract\\Arrayable' => __DIR__ . '/..' . '/topthink/think-helper/src/contract/Arrayable.php', - 'think\\contract\\CacheHandlerInterface' => __DIR__ . '/..' . '/topthink/framework/src/think/contract/CacheHandlerInterface.php', - 'think\\contract\\Jsonable' => __DIR__ . '/..' . '/topthink/think-helper/src/contract/Jsonable.php', - 'think\\contract\\LogHandlerInterface' => __DIR__ . '/..' . '/topthink/framework/src/think/contract/LogHandlerInterface.php', - 'think\\contract\\ModelRelationInterface' => __DIR__ . '/..' . '/topthink/framework/src/think/contract/ModelRelationInterface.php', - 'think\\contract\\SessionHandlerInterface' => __DIR__ . '/..' . '/topthink/framework/src/think/contract/SessionHandlerInterface.php', - 'think\\contract\\TemplateHandlerInterface' => __DIR__ . '/..' . '/topthink/framework/src/think/contract/TemplateHandlerInterface.php', - 'think\\db\\BaseQuery' => __DIR__ . '/..' . '/topthink/think-orm/src/db/BaseQuery.php', - 'think\\db\\Builder' => __DIR__ . '/..' . '/topthink/think-orm/src/db/Builder.php', - 'think\\db\\CacheItem' => __DIR__ . '/..' . '/topthink/think-orm/src/db/CacheItem.php', - 'think\\db\\Connection' => __DIR__ . '/..' . '/topthink/think-orm/src/db/Connection.php', - 'think\\db\\ConnectionInterface' => __DIR__ . '/..' . '/topthink/think-orm/src/db/ConnectionInterface.php', - 'think\\db\\Fetch' => __DIR__ . '/..' . '/topthink/think-orm/src/db/Fetch.php', - 'think\\db\\Mongo' => __DIR__ . '/..' . '/topthink/think-orm/src/db/Mongo.php', - 'think\\db\\PDOConnection' => __DIR__ . '/..' . '/topthink/think-orm/src/db/PDOConnection.php', - 'think\\db\\Query' => __DIR__ . '/..' . '/topthink/think-orm/src/db/Query.php', - 'think\\db\\Raw' => __DIR__ . '/..' . '/topthink/think-orm/src/db/Raw.php', - 'think\\db\\Where' => __DIR__ . '/..' . '/topthink/think-orm/src/db/Where.php', - 'think\\db\\builder\\Mongo' => __DIR__ . '/..' . '/topthink/think-orm/src/db/builder/Mongo.php', - 'think\\db\\builder\\Mysql' => __DIR__ . '/..' . '/topthink/think-orm/src/db/builder/Mysql.php', - 'think\\db\\builder\\Oracle' => __DIR__ . '/..' . '/topthink/think-orm/src/db/builder/Oracle.php', - 'think\\db\\builder\\Pgsql' => __DIR__ . '/..' . '/topthink/think-orm/src/db/builder/Pgsql.php', - 'think\\db\\builder\\Sqlite' => __DIR__ . '/..' . '/topthink/think-orm/src/db/builder/Sqlite.php', - 'think\\db\\builder\\Sqlsrv' => __DIR__ . '/..' . '/topthink/think-orm/src/db/builder/Sqlsrv.php', - 'think\\db\\concern\\AggregateQuery' => __DIR__ . '/..' . '/topthink/think-orm/src/db/concern/AggregateQuery.php', - 'think\\db\\concern\\JoinAndViewQuery' => __DIR__ . '/..' . '/topthink/think-orm/src/db/concern/JoinAndViewQuery.php', - 'think\\db\\concern\\ModelRelationQuery' => __DIR__ . '/..' . '/topthink/think-orm/src/db/concern/ModelRelationQuery.php', - 'think\\db\\concern\\ParamsBind' => __DIR__ . '/..' . '/topthink/think-orm/src/db/concern/ParamsBind.php', - 'think\\db\\concern\\ResultOperation' => __DIR__ . '/..' . '/topthink/think-orm/src/db/concern/ResultOperation.php', - 'think\\db\\concern\\TableFieldInfo' => __DIR__ . '/..' . '/topthink/think-orm/src/db/concern/TableFieldInfo.php', - 'think\\db\\concern\\TimeFieldQuery' => __DIR__ . '/..' . '/topthink/think-orm/src/db/concern/TimeFieldQuery.php', - 'think\\db\\concern\\Transaction' => __DIR__ . '/..' . '/topthink/think-orm/src/db/concern/Transaction.php', - 'think\\db\\concern\\WhereQuery' => __DIR__ . '/..' . '/topthink/think-orm/src/db/concern/WhereQuery.php', - 'think\\db\\connector\\Mongo' => __DIR__ . '/..' . '/topthink/think-orm/src/db/connector/Mongo.php', - 'think\\db\\connector\\Mysql' => __DIR__ . '/..' . '/topthink/think-orm/src/db/connector/Mysql.php', - 'think\\db\\connector\\Oracle' => __DIR__ . '/..' . '/topthink/think-orm/src/db/connector/Oracle.php', - 'think\\db\\connector\\Pgsql' => __DIR__ . '/..' . '/topthink/think-orm/src/db/connector/Pgsql.php', - 'think\\db\\connector\\Sqlite' => __DIR__ . '/..' . '/topthink/think-orm/src/db/connector/Sqlite.php', - 'think\\db\\connector\\Sqlsrv' => __DIR__ . '/..' . '/topthink/think-orm/src/db/connector/Sqlsrv.php', - 'think\\db\\exception\\BindParamException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/BindParamException.php', - 'think\\db\\exception\\DataNotFoundException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/DataNotFoundException.php', - 'think\\db\\exception\\DbEventException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/DbEventException.php', - 'think\\db\\exception\\DbException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/DbException.php', - 'think\\db\\exception\\InvalidArgumentException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/InvalidArgumentException.php', - 'think\\db\\exception\\ModelEventException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/ModelEventException.php', - 'think\\db\\exception\\ModelNotFoundException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/ModelNotFoundException.php', - 'think\\db\\exception\\PDOException' => __DIR__ . '/..' . '/topthink/think-orm/src/db/exception/PDOException.php', - 'think\\event\\AppInit' => __DIR__ . '/..' . '/topthink/framework/src/think/event/AppInit.php', - 'think\\event\\HttpEnd' => __DIR__ . '/..' . '/topthink/framework/src/think/event/HttpEnd.php', - 'think\\event\\HttpRun' => __DIR__ . '/..' . '/topthink/framework/src/think/event/HttpRun.php', - 'think\\event\\LogRecord' => __DIR__ . '/..' . '/topthink/framework/src/think/event/LogRecord.php', - 'think\\event\\LogWrite' => __DIR__ . '/..' . '/topthink/framework/src/think/event/LogWrite.php', - 'think\\event\\RouteLoaded' => __DIR__ . '/..' . '/topthink/framework/src/think/event/RouteLoaded.php', - 'think\\exception\\ClassNotFoundException' => __DIR__ . '/..' . '/topthink/framework/src/think/exception/ClassNotFoundException.php', - 'think\\exception\\ErrorException' => __DIR__ . '/..' . '/topthink/framework/src/think/exception/ErrorException.php', - 'think\\exception\\FileException' => __DIR__ . '/..' . '/topthink/framework/src/think/exception/FileException.php', - 'think\\exception\\FuncNotFoundException' => __DIR__ . '/..' . '/topthink/framework/src/think/exception/FuncNotFoundException.php', - 'think\\exception\\Handle' => __DIR__ . '/..' . '/topthink/framework/src/think/exception/Handle.php', - 'think\\exception\\HttpException' => __DIR__ . '/..' . '/topthink/framework/src/think/exception/HttpException.php', - 'think\\exception\\HttpResponseException' => __DIR__ . '/..' . '/topthink/framework/src/think/exception/HttpResponseException.php', - 'think\\exception\\InvalidArgumentException' => __DIR__ . '/..' . '/topthink/framework/src/think/exception/InvalidArgumentException.php', - 'think\\exception\\RouteNotFoundException' => __DIR__ . '/..' . '/topthink/framework/src/think/exception/RouteNotFoundException.php', - 'think\\exception\\ValidateException' => __DIR__ . '/..' . '/topthink/framework/src/think/exception/ValidateException.php', - 'think\\facade\\App' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/App.php', - 'think\\facade\\Cache' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Cache.php', - 'think\\facade\\Config' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Config.php', - 'think\\facade\\Console' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Console.php', - 'think\\facade\\Cookie' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Cookie.php', - 'think\\facade\\Db' => __DIR__ . '/..' . '/topthink/think-orm/src/facade/Db.php', - 'think\\facade\\Env' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Env.php', - 'think\\facade\\Event' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Event.php', - 'think\\facade\\Filesystem' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Filesystem.php', - 'think\\facade\\Lang' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Lang.php', - 'think\\facade\\Log' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Log.php', - 'think\\facade\\Middleware' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Middleware.php', - 'think\\facade\\Request' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Request.php', - 'think\\facade\\Route' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Route.php', - 'think\\facade\\Session' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Session.php', - 'think\\facade\\Validate' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/Validate.php', - 'think\\facade\\View' => __DIR__ . '/..' . '/topthink/framework/src/think/facade/View.php', - 'think\\file\\UploadedFile' => __DIR__ . '/..' . '/topthink/framework/src/think/file/UploadedFile.php', - 'think\\filesystem\\CacheStore' => __DIR__ . '/..' . '/topthink/framework/src/think/filesystem/CacheStore.php', - 'think\\filesystem\\Driver' => __DIR__ . '/..' . '/topthink/framework/src/think/filesystem/Driver.php', - 'think\\filesystem\\driver\\Local' => __DIR__ . '/..' . '/topthink/framework/src/think/filesystem/driver/Local.php', - 'think\\helper\\Arr' => __DIR__ . '/..' . '/topthink/think-helper/src/helper/Arr.php', - 'think\\helper\\Str' => __DIR__ . '/..' . '/topthink/think-helper/src/helper/Str.php', - 'think\\initializer\\BootService' => __DIR__ . '/..' . '/topthink/framework/src/think/initializer/BootService.php', - 'think\\initializer\\Error' => __DIR__ . '/..' . '/topthink/framework/src/think/initializer/Error.php', - 'think\\initializer\\RegisterService' => __DIR__ . '/..' . '/topthink/framework/src/think/initializer/RegisterService.php', - 'think\\log\\Channel' => __DIR__ . '/..' . '/topthink/framework/src/think/log/Channel.php', - 'think\\log\\ChannelSet' => __DIR__ . '/..' . '/topthink/framework/src/think/log/ChannelSet.php', - 'think\\log\\driver\\File' => __DIR__ . '/..' . '/topthink/framework/src/think/log/driver/File.php', - 'think\\log\\driver\\Socket' => __DIR__ . '/..' . '/topthink/framework/src/think/log/driver/Socket.php', - 'think\\middleware\\AllowCrossDomain' => __DIR__ . '/..' . '/topthink/framework/src/think/middleware/AllowCrossDomain.php', - 'think\\middleware\\CheckRequestCache' => __DIR__ . '/..' . '/topthink/framework/src/think/middleware/CheckRequestCache.php', - 'think\\middleware\\FormTokenCheck' => __DIR__ . '/..' . '/topthink/framework/src/think/middleware/FormTokenCheck.php', - 'think\\middleware\\LoadLangPack' => __DIR__ . '/..' . '/topthink/framework/src/think/middleware/LoadLangPack.php', - 'think\\middleware\\SessionInit' => __DIR__ . '/..' . '/topthink/framework/src/think/middleware/SessionInit.php', - 'think\\model\\Collection' => __DIR__ . '/..' . '/topthink/think-orm/src/model/Collection.php', - 'think\\model\\Pivot' => __DIR__ . '/..' . '/topthink/think-orm/src/model/Pivot.php', - 'think\\model\\Relation' => __DIR__ . '/..' . '/topthink/think-orm/src/model/Relation.php', - 'think\\model\\concern\\Attribute' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/Attribute.php', - 'think\\model\\concern\\Conversion' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/Conversion.php', - 'think\\model\\concern\\ModelEvent' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/ModelEvent.php', - 'think\\model\\concern\\OptimLock' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/OptimLock.php', - 'think\\model\\concern\\RelationShip' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/RelationShip.php', - 'think\\model\\concern\\SoftDelete' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/SoftDelete.php', - 'think\\model\\concern\\TimeStamp' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/TimeStamp.php', - 'think\\model\\concern\\Virtual' => __DIR__ . '/..' . '/topthink/think-orm/src/model/concern/Virtual.php', - 'think\\model\\relation\\BelongsTo' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/BelongsTo.php', - 'think\\model\\relation\\BelongsToMany' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/BelongsToMany.php', - 'think\\model\\relation\\HasMany' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/HasMany.php', - 'think\\model\\relation\\HasManyThrough' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/HasManyThrough.php', - 'think\\model\\relation\\HasOne' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/HasOne.php', - 'think\\model\\relation\\HasOneThrough' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/HasOneThrough.php', - 'think\\model\\relation\\MorphMany' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/MorphMany.php', - 'think\\model\\relation\\MorphOne' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/MorphOne.php', - 'think\\model\\relation\\MorphTo' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/MorphTo.php', - 'think\\model\\relation\\MorphToMany' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/MorphToMany.php', - 'think\\model\\relation\\OneToOne' => __DIR__ . '/..' . '/topthink/think-orm/src/model/relation/OneToOne.php', - 'think\\paginator\\driver\\Bootstrap' => __DIR__ . '/..' . '/topthink/think-orm/src/paginator/driver/Bootstrap.php', - 'think\\response\\File' => __DIR__ . '/..' . '/topthink/framework/src/think/response/File.php', - 'think\\response\\Html' => __DIR__ . '/..' . '/topthink/framework/src/think/response/Html.php', - 'think\\response\\Json' => __DIR__ . '/..' . '/topthink/framework/src/think/response/Json.php', - 'think\\response\\Jsonp' => __DIR__ . '/..' . '/topthink/framework/src/think/response/Jsonp.php', - 'think\\response\\Redirect' => __DIR__ . '/..' . '/topthink/framework/src/think/response/Redirect.php', - 'think\\response\\View' => __DIR__ . '/..' . '/topthink/framework/src/think/response/View.php', - 'think\\response\\Xml' => __DIR__ . '/..' . '/topthink/framework/src/think/response/Xml.php', - 'think\\route\\Dispatch' => __DIR__ . '/..' . '/topthink/framework/src/think/route/Dispatch.php', - 'think\\route\\Domain' => __DIR__ . '/..' . '/topthink/framework/src/think/route/Domain.php', - 'think\\route\\Resource' => __DIR__ . '/..' . '/topthink/framework/src/think/route/Resource.php', - 'think\\route\\Rule' => __DIR__ . '/..' . '/topthink/framework/src/think/route/Rule.php', - 'think\\route\\RuleGroup' => __DIR__ . '/..' . '/topthink/framework/src/think/route/RuleGroup.php', - 'think\\route\\RuleItem' => __DIR__ . '/..' . '/topthink/framework/src/think/route/RuleItem.php', - 'think\\route\\RuleName' => __DIR__ . '/..' . '/topthink/framework/src/think/route/RuleName.php', - 'think\\route\\Url' => __DIR__ . '/..' . '/topthink/framework/src/think/route/Url.php', - 'think\\route\\dispatch\\Callback' => __DIR__ . '/..' . '/topthink/framework/src/think/route/dispatch/Callback.php', - 'think\\route\\dispatch\\Controller' => __DIR__ . '/..' . '/topthink/framework/src/think/route/dispatch/Controller.php', - 'think\\route\\dispatch\\Url' => __DIR__ . '/..' . '/topthink/framework/src/think/route/dispatch/Url.php', - 'think\\service\\ModelService' => __DIR__ . '/..' . '/topthink/framework/src/think/service/ModelService.php', - 'think\\service\\PaginatorService' => __DIR__ . '/..' . '/topthink/framework/src/think/service/PaginatorService.php', - 'think\\service\\ValidateService' => __DIR__ . '/..' . '/topthink/framework/src/think/service/ValidateService.php', - 'think\\session\\Store' => __DIR__ . '/..' . '/topthink/framework/src/think/session/Store.php', - 'think\\session\\driver\\Cache' => __DIR__ . '/..' . '/topthink/framework/src/think/session/driver/Cache.php', - 'think\\session\\driver\\File' => __DIR__ . '/..' . '/topthink/framework/src/think/session/driver/File.php', - 'think\\validate\\ValidateRule' => __DIR__ . '/..' . '/topthink/framework/src/think/validate/ValidateRule.php', - 'think\\view\\driver\\Php' => __DIR__ . '/..' . '/topthink/framework/src/think/view/driver/Php.php', ); public static function getInitializer(ClassLoader $loader) diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 7ced341..2018fe3 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -307,17 +307,17 @@ }, { "name": "alibabacloud/openapi-util", - "version": "0.1.10", - "version_normalized": "0.1.10.0", + "version": "0.1.11", + "version_normalized": "0.1.11.0", "source": { "type": "git", "url": "https://github.com/alibabacloud-sdk-php/openapi-util.git", - "reference": "c677ec9ea357caa98c2054dced1f5045634777da" + "reference": "61ee137955a25c9f5f33170babb6071d4bccf12c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/alibabacloud-sdk-php/openapi-util/zipball/c677ec9ea357caa98c2054dced1f5045634777da", - "reference": "c677ec9ea357caa98c2054dced1f5045634777da", + "url": "https://api.github.com/repos/alibabacloud-sdk-php/openapi-util/zipball/61ee137955a25c9f5f33170babb6071d4bccf12c", + "reference": "61ee137955a25c9f5f33170babb6071d4bccf12c", "shasum": "", "mirrors": [ { @@ -335,7 +335,7 @@ "require-dev": { "phpunit/phpunit": "^4.8.35|^5.4.3" }, - "time": "2021-12-14T02:46:22+00:00", + "time": "2021-12-28T07:57:21+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -356,23 +356,23 @@ "description": "Alibaba Cloud OpenApi Util", "support": { "issues": "https://github.com/alibabacloud-sdk-php/openapi-util/issues", - "source": "https://github.com/alibabacloud-sdk-php/openapi-util/tree/0.1.10" + "source": "https://github.com/alibabacloud-sdk-php/openapi-util/tree/0.1.11" }, "install-path": "../alibabacloud/openapi-util" }, { "name": "alibabacloud/tea", - "version": "3.1.22", - "version_normalized": "3.1.22.0", + "version": "3.1.23", + "version_normalized": "3.1.23.0", "source": { "type": "git", "url": "https://github.com/aliyun/tea-php.git", - "reference": "f9c9b2c927253a1c23a5381cc655e41311be7f65" + "reference": "61fce993274edf6e7131af07256ed7723d97a85f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aliyun/tea-php/zipball/f9c9b2c927253a1c23a5381cc655e41311be7f65", - "reference": "f9c9b2c927253a1c23a5381cc655e41311be7f65", + "url": "https://api.github.com/repos/aliyun/tea-php/zipball/61fce993274edf6e7131af07256ed7723d97a85f", + "reference": "61fce993274edf6e7131af07256ed7723d97a85f", "shasum": "", "mirrors": [ { @@ -401,7 +401,7 @@ "suggest": { "ext-sockets": "To use client-side monitoring" }, - "time": "2021-05-11T06:17:44+00:00", + "time": "2021-12-20T02:32:43+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -486,17 +486,17 @@ }, { "name": "aliyuncs/oss-sdk-php", - "version": "v2.4.3", - "version_normalized": "2.4.3.0", + "version": "v2.5.0", + "version_normalized": "2.5.0.0", "source": { "type": "git", "url": "https://github.com/aliyun/aliyun-oss-php-sdk.git", - "reference": "4ccead614915ee6685bf30016afb01aabd347e46" + "reference": "f0413667d765855eb0aaa728b596801464ffdb06" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aliyun/aliyun-oss-php-sdk/zipball/4ccead614915ee6685bf30016afb01aabd347e46", - "reference": "4ccead614915ee6685bf30016afb01aabd347e46", + "url": "https://api.github.com/repos/aliyun/aliyun-oss-php-sdk/zipball/f0413667d765855eb0aaa728b596801464ffdb06", + "reference": "f0413667d765855eb0aaa728b596801464ffdb06", "shasum": "", "mirrors": [ { @@ -512,7 +512,7 @@ "phpunit/phpunit": "*", "satooshi/php-coveralls": "*" }, - "time": "2021-08-25T13:03:58+00:00", + "time": "2022-05-13T07:41:28+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -534,7 +534,7 @@ "homepage": "http://www.aliyun.com/product/oss/", "support": { "issues": "https://github.com/aliyun/aliyun-oss-php-sdk/issues", - "source": "https://github.com/aliyun/aliyun-oss-php-sdk/tree/v2.4.3" + "source": "https://github.com/aliyun/aliyun-oss-php-sdk/tree/v2.5.0" }, "install-path": "../aliyuncs/oss-sdk-php" }, @@ -604,17 +604,17 @@ }, { "name": "ezyang/htmlpurifier", - "version": "v4.13.0", - "version_normalized": "4.13.0.0", + "version": "v4.14.0", + "version_normalized": "4.14.0.0", "source": { "type": "git", "url": "https://github.com/ezyang/htmlpurifier.git", - "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75" + "reference": "12ab42bd6e742c70c0a52f7b82477fcd44e64b75" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/08e27c97e4c6ed02f37c5b2b20488046c8d90d75", - "reference": "08e27c97e4c6ed02f37c5b2b20488046c8d90d75", + "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/12ab42bd6e742c70c0a52f7b82477fcd44e64b75", + "reference": "12ab42bd6e742c70c0a52f7b82477fcd44e64b75", "shasum": "", "mirrors": [ { @@ -626,19 +626,16 @@ "require": { "php": ">=5.2" }, - "require-dev": { - "simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd" - }, - "time": "2020-06-29T00:56:53+00:00", + "time": "2021-12-25T01:21:49+00:00", "type": "library", "installation-source": "dist", "autoload": { - "psr-0": { - "HTMLPurifier": "library/" - }, "files": [ "library/HTMLPurifier.composer.php" ], + "psr-0": { + "HTMLPurifier": "library/" + }, "exclude-from-classmap": [ "/library/HTMLPurifier/Language/" ] @@ -661,7 +658,7 @@ ], "support": { "issues": "https://github.com/ezyang/htmlpurifier/issues", - "source": "https://github.com/ezyang/htmlpurifier/tree/master" + "source": "https://github.com/ezyang/htmlpurifier/tree/v4.14.0" }, "install-path": "../ezyang/htmlpurifier" }, @@ -1270,17 +1267,17 @@ }, { "name": "league/mime-type-detection", - "version": "1.9.0", - "version_normalized": "1.9.0.0", + "version": "1.11.0", + "version_normalized": "1.11.0.0", "source": { "type": "git", "url": "https://github.com/thephpleague/mime-type-detection.git", - "reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69" + "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/aa70e813a6ad3d1558fc927863d47309b4c23e69", - "reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/ff6248ea87a9f116e78edd6002e39e5128a0d4dd", + "reference": "ff6248ea87a9f116e78edd6002e39e5128a0d4dd", "shasum": "", "mirrors": [ { @@ -1298,7 +1295,7 @@ "phpstan/phpstan": "^0.12.68", "phpunit/phpunit": "^8.5.8 || ^9.3" }, - "time": "2021-11-21T11:48:40+00:00", + "time": "2022-04-17T13:12:02+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -1319,7 +1316,7 @@ "description": "Mime-type detection for Flysystem", "support": { "issues": "https://github.com/thephpleague/mime-type-detection/issues", - "source": "https://github.com/thephpleague/mime-type-detection/tree/1.9.0" + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.11.0" }, "funding": [ { @@ -1398,17 +1395,17 @@ }, { "name": "maennchen/zipstream-php", - "version": "2.1.0", - "version_normalized": "2.1.0.0", + "version": "2.2.1", + "version_normalized": "2.2.1.0", "source": { "type": "git", "url": "https://github.com/maennchen/ZipStream-PHP.git", - "reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58" + "reference": "211e9ba1530ea5260b45d90c9ea252f56ec52729" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/c4c5803cc1f93df3d2448478ef79394a5981cc58", - "reference": "c4c5803cc1f93df3d2448478ef79394a5981cc58", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/211e9ba1530ea5260b45d90c9ea252f56ec52729", + "reference": "211e9ba1530ea5260b45d90c9ea252f56ec52729", "shasum": "", "mirrors": [ { @@ -1419,17 +1416,19 @@ }, "require": { "myclabs/php-enum": "^1.5", - "php": ">= 7.1", + "php": "^7.4 || ^8.0", "psr/http-message": "^1.0", "symfony/polyfill-mbstring": "^1.0" }, "require-dev": { "ext-zip": "*", - "guzzlehttp/guzzle": ">= 6.3", + "guzzlehttp/guzzle": "^6.5.3 || ^7.2.0", "mikey179/vfsstream": "^1.6", - "phpunit/phpunit": ">= 7.5" + "php-coveralls/php-coveralls": "^2.4", + "phpunit/phpunit": "^8.5.8 || ^9.4.2", + "vimeo/psalm": "^4.1" }, - "time": "2020-05-30T13:11:16+00:00", + "time": "2022-05-18T15:52:06+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -1466,7 +1465,7 @@ ], "support": { "issues": "https://github.com/maennchen/ZipStream-PHP/issues", - "source": "https://github.com/maennchen/ZipStream-PHP/tree/master" + "source": "https://github.com/maennchen/ZipStream-PHP/tree/2.2.1" }, "funding": [ { @@ -1752,17 +1751,17 @@ }, { "name": "myclabs/php-enum", - "version": "1.8.3", - "version_normalized": "1.8.3.0", + "version": "1.6.6", + "version_normalized": "1.6.6.0", "source": { "type": "git", "url": "https://github.com/myclabs/php-enum.git", - "reference": "b942d263c641ddb5190929ff840c68f78713e937" + "reference": "32c4202886c51fbe5cc3a7c34ec5c9a4a790345e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/php-enum/zipball/b942d263c641ddb5190929ff840c68f78713e937", - "reference": "b942d263c641ddb5190929ff840c68f78713e937", + "url": "https://api.github.com/repos/myclabs/php-enum/zipball/32c4202886c51fbe5cc3a7c34ec5c9a4a790345e", + "reference": "32c4202886c51fbe5cc3a7c34ec5c9a4a790345e", "shasum": "", "mirrors": [ { @@ -1773,14 +1772,13 @@ }, "require": { "ext-json": "*", - "php": "^7.3 || ^8.0" + "php": ">=5.4" }, "require-dev": { - "phpunit/phpunit": "^9.5", - "squizlabs/php_codesniffer": "1.*", - "vimeo/psalm": "^4.6.2" + "phpunit/phpunit": "^4.8.35|^5.7|^6.0", + "squizlabs/php_codesniffer": "1.*" }, - "time": "2021-07-05T08:18:36+00:00", + "time": "2019-02-04T21:18:49+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -1805,18 +1803,8 @@ ], "support": { "issues": "https://github.com/myclabs/php-enum/issues", - "source": "https://github.com/myclabs/php-enum/tree/1.8.3" + "source": "https://github.com/myclabs/php-enum/tree/master" }, - "funding": [ - { - "url": "https://github.com/mnapoli", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/myclabs/php-enum", - "type": "tidelift" - } - ], "install-path": "../myclabs/php-enum" }, { @@ -2395,17 +2383,17 @@ }, { "name": "qcloud/cos-sdk-v5", - "version": "v2.4.4", - "version_normalized": "2.4.4.0", + "version": "v2.5.5", + "version_normalized": "2.5.5.0", "source": { "type": "git", "url": "https://github.com/tencentyun/cos-php-sdk-v5.git", - "reference": "2862ce2c9244eb12f099483db578910bde9b045a" + "reference": "40e51efc05d5addeb9029db7840846809bd666c4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/tencentyun/cos-php-sdk-v5/zipball/2862ce2c9244eb12f099483db578910bde9b045a", - "reference": "2862ce2c9244eb12f099483db578910bde9b045a", + "url": "https://api.github.com/repos/tencentyun/cos-php-sdk-v5/zipball/40e51efc05d5addeb9029db7840846809bd666c4", + "reference": "40e51efc05d5addeb9029db7840846809bd666c4", "shasum": "", "mirrors": [ { @@ -2423,16 +2411,21 @@ "guzzlehttp/psr7": "^1.3.1 || ^2.0", "php": ">=5.6" }, - "time": "2021-12-03T02:40:30+00:00", + "time": "2022-04-27T06:20:21+00:00", "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + }, "installation-source": "dist", "autoload": { - "psr-4": { - "Qcloud\\Cos\\": "src/" - }, "files": [ "src/Common.php" - ] + ], + "psr-4": { + "Qcloud\\Cos\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2460,23 +2453,23 @@ ], "support": { "issues": "https://github.com/tencentyun/cos-php-sdk-v5/issues", - "source": "https://github.com/tencentyun/cos-php-sdk-v5/tree/v2.4.4" + "source": "https://github.com/tencentyun/cos-php-sdk-v5/tree/v2.5.5" }, "install-path": "../qcloud/cos-sdk-v5" }, { "name": "qiniu/php-sdk", - "version": "v7.4.1", - "version_normalized": "7.4.1.0", + "version": "v7.5.0", + "version_normalized": "7.5.0.0", "source": { "type": "git", "url": "https://github.com/qiniu/php-sdk.git", - "reference": "10c7ead8357743b4b987a335c14964fb07700d57" + "reference": "0cc46e4206002d1a736dbb4abb1424b0b7fc3f22" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/qiniu/php-sdk/zipball/10c7ead8357743b4b987a335c14964fb07700d57", - "reference": "10c7ead8357743b4b987a335c14964fb07700d57", + "url": "https://api.github.com/repos/qiniu/php-sdk/zipball/0cc46e4206002d1a736dbb4abb1424b0b7fc3f22", + "reference": "0cc46e4206002d1a736dbb4abb1424b0b7fc3f22", "shasum": "", "mirrors": [ { @@ -2486,6 +2479,7 @@ ] }, "require": { + "myclabs/php-enum": "1.6.6", "php": ">=5.3.3" }, "require-dev": { @@ -2493,16 +2487,16 @@ "phpunit/phpunit": "~4.0", "squizlabs/php_codesniffer": "~3.6" }, - "time": "2021-09-24T09:39:16+00:00", + "time": "2022-04-18T10:49:54+00:00", "type": "library", "installation-source": "dist", "autoload": { - "psr-4": { - "Qiniu\\": "src/Qiniu" - }, "files": [ "src/Qiniu/functions.php" - ] + ], + "psr-4": { + "Qiniu\\": "src/Qiniu" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2525,7 +2519,7 @@ ], "support": { "issues": "https://github.com/qiniu/php-sdk/issues", - "source": "https://github.com/qiniu/php-sdk/tree/v7.4.1" + "source": "https://github.com/qiniu/php-sdk/tree/v7.5.0" }, "install-path": "../qiniu/php-sdk" }, @@ -2600,17 +2594,17 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.23.1", - "version_normalized": "1.23.1.0", + "version": "v1.25.0", + "version_normalized": "1.25.0.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6" + "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6", - "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825", + "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825", "shasum": "", "mirrors": [ { @@ -2622,10 +2616,13 @@ "require": { "php": ">=7.1" }, + "provide": { + "ext-mbstring": "*" + }, "suggest": { "ext-mbstring": "For best performance" }, - "time": "2021-05-27T12:26:48+00:00", + "time": "2021-11-30T18:21:41+00:00", "type": "library", "extra": { "branch-alias": { @@ -2638,12 +2635,12 @@ }, "installation-source": "dist", "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Mbstring\\": "" - }, "files": [ "bootstrap.php" - ] + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2669,7 +2666,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.25.0" }, "funding": [ { @@ -2689,8 +2686,8 @@ }, { "name": "symfony/polyfill-php72", - "version": "v1.23.0", - "version_normalized": "1.23.0.0", + "version": "v1.25.0", + "version_normalized": "1.25.0.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", @@ -2724,12 +2721,12 @@ }, "installation-source": "dist", "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php72\\": "" - }, "files": [ "bootstrap.php" - ] + ], + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -2754,7 +2751,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php72/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-php72/tree/v1.25.0" }, "funding": [ { @@ -2774,17 +2771,17 @@ }, { "name": "symfony/polyfill-php80", - "version": "v1.23.1", - "version_normalized": "1.23.1.0", + "version": "v1.25.0", + "version_normalized": "1.25.0.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be" + "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be", - "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/4407588e0d3f1f52efb65fbe92babe41f37fe50c", + "reference": "4407588e0d3f1f52efb65fbe92babe41f37fe50c", "shasum": "", "mirrors": [ { @@ -2796,7 +2793,7 @@ "require": { "php": ">=7.1" }, - "time": "2021-07-28T13:41:28+00:00", + "time": "2022-03-04T08:16:47+00:00", "type": "library", "extra": { "branch-alias": { @@ -2809,12 +2806,12 @@ }, "installation-source": "dist", "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, "files": [ "bootstrap.php" ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, "classmap": [ "Resources/stubs" ] @@ -2846,7 +2843,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.25.0" }, "funding": [ { @@ -2866,17 +2863,17 @@ }, { "name": "symfony/var-dumper", - "version": "v4.4.34", - "version_normalized": "4.4.34.0", + "version": "v4.4.41", + "version_normalized": "4.4.41.0", "source": { "type": "git", "url": "https://github.com/symfony/var-dumper.git", - "reference": "2d0c056b2faaa3d785bdbd5adecc593a5be9c16e" + "reference": "58eb36075c04aaf92a7a9f38ee9a8b97e24eb481" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/var-dumper/zipball/2d0c056b2faaa3d785bdbd5adecc593a5be9c16e", - "reference": "2d0c056b2faaa3d785bdbd5adecc593a5be9c16e", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/58eb36075c04aaf92a7a9f38ee9a8b97e24eb481", + "reference": "58eb36075c04aaf92a7a9f38ee9a8b97e24eb481", "shasum": "", "mirrors": [ { @@ -2906,7 +2903,7 @@ "ext-intl": "To show region name in time zone dump", "symfony/console": "To use the ServerDumpCommand and/or the bin/var-dump-server script" }, - "time": "2021-11-12T10:50:54+00:00", + "time": "2022-04-25T21:15:06+00:00", "bin": [ "Resources/bin/var-dump-server" ], @@ -2944,7 +2941,7 @@ "dump" ], "support": { - "source": "https://github.com/symfony/var-dumper/tree/v4.4.34" + "source": "https://github.com/symfony/var-dumper/tree/v4.4.41" }, "funding": [ { @@ -2964,17 +2961,17 @@ }, { "name": "topthink/framework", - "version": "v6.0.9", - "version_normalized": "6.0.9.0", + "version": "v6.0.12", + "version_normalized": "6.0.12.0", "source": { "type": "git", "url": "https://github.com/top-think/framework.git", - "reference": "0b5fb453f0e533de3af3a1ab6a202510b61be617" + "reference": "e478316ac843c1a884a3b3a7a94db17c4001ff5c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/top-think/framework/zipball/0b5fb453f0e533de3af3a1ab6a202510b61be617", - "reference": "0b5fb453f0e533de3af3a1ab6a202510b61be617", + "url": "https://api.github.com/repos/top-think/framework/zipball/e478316ac843c1a884a3b3a7a94db17c4001ff5c", + "reference": "e478316ac843c1a884a3b3a7a94db17c4001ff5c", "shasum": "", "mirrors": [ { @@ -2990,17 +2987,19 @@ "league/flysystem-cached-adapter": "^1.0", "php": ">=7.2.5", "psr/container": "~1.0", + "psr/http-message": "^1.0", "psr/log": "~1.0", "psr/simple-cache": "^1.0", "topthink/think-helper": "^3.1.1", "topthink/think-orm": "^2.0" }, "require-dev": { + "guzzlehttp/psr7": "^2.1.0", "mikey179/vfsstream": "^1.6", "mockery/mockery": "^1.2", "phpunit/phpunit": "^7.0" }, - "time": "2021-07-22T03:24:49+00:00", + "time": "2022-01-21T06:31:07+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -3032,23 +3031,23 @@ ], "support": { "issues": "https://github.com/top-think/framework/issues", - "source": "https://github.com/top-think/framework/tree/v6.0.9" + "source": "https://github.com/top-think/framework/tree/v6.0.12" }, "install-path": "../topthink/framework" }, { "name": "topthink/think-helper", - "version": "v3.1.5", - "version_normalized": "3.1.5.0", + "version": "v3.1.6", + "version_normalized": "3.1.6.0", "source": { "type": "git", "url": "https://github.com/top-think/think-helper.git", - "reference": "f98e3ad44acd27ae85a4d923b1bdfd16c6d8d905" + "reference": "769acbe50a4274327162f9c68ec2e89a38eb2aff" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/top-think/think-helper/zipball/f98e3ad44acd27ae85a4d923b1bdfd16c6d8d905", - "reference": "f98e3ad44acd27ae85a4d923b1bdfd16c6d8d905", + "url": "https://api.github.com/repos/top-think/think-helper/zipball/769acbe50a4274327162f9c68ec2e89a38eb2aff", + "reference": "769acbe50a4274327162f9c68ec2e89a38eb2aff", "shasum": "", "mirrors": [ { @@ -3060,16 +3059,19 @@ "require": { "php": ">=7.1.0" }, - "time": "2021-06-21T06:17:31+00:00", + "require-dev": { + "phpunit/phpunit": "^9.5" + }, + "time": "2021-12-15T04:27:55+00:00", "type": "library", "installation-source": "dist", "autoload": { - "psr-4": { - "think\\": "src" - }, "files": [ "src/helper.php" - ] + ], + "psr-4": { + "think\\": "src" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -3084,23 +3086,23 @@ "description": "The ThinkPHP6 Helper Package", "support": { "issues": "https://github.com/top-think/think-helper/issues", - "source": "https://github.com/top-think/think-helper/tree/v3.1.5" + "source": "https://github.com/top-think/think-helper/tree/v3.1.6" }, "install-path": "../topthink/think-helper" }, { "name": "topthink/think-orm", - "version": "v2.0.45", - "version_normalized": "2.0.45.0", + "version": "v2.0.52", + "version_normalized": "2.0.52.0", "source": { "type": "git", "url": "https://github.com/top-think/think-orm.git", - "reference": "3dcf9af447b048103093840833e8c74ab849152f" + "reference": "407a60658f37fc57422ab95a9922c6f69af90f46" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/top-think/think-orm/zipball/3dcf9af447b048103093840833e8c74ab849152f", - "reference": "3dcf9af447b048103093840833e8c74ab849152f", + "url": "https://api.github.com/repos/top-think/think-orm/zipball/407a60658f37fc57422ab95a9922c6f69af90f46", + "reference": "407a60658f37fc57422ab95a9922c6f69af90f46", "shasum": "", "mirrors": [ { @@ -3120,16 +3122,16 @@ "require-dev": { "phpunit/phpunit": "^7|^8|^9.5" }, - "time": "2021-11-30T14:31:05+00:00", + "time": "2022-01-25T06:00:05+00:00", "type": "library", "installation-source": "dist", "autoload": { - "psr-4": { - "think\\": "src" - }, "files": [ "stubs/load_stubs.php" - ] + ], + "psr-4": { + "think\\": "src" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -3148,7 +3150,7 @@ ], "support": { "issues": "https://github.com/top-think/think-orm/issues", - "source": "https://github.com/top-think/think-orm/tree/v2.0.45" + "source": "https://github.com/top-think/think-orm/tree/v2.0.52" }, "install-path": "../topthink/think-orm" }, diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 7201240..4b1f4de 100644 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '306f3e80c4e0f55b5f20e296872a87473d818c14', + 'reference' => '022a41a2dac2ac95ef51cf20c7ffc88f2748ffb3', 'name' => 'dtapps/think-library', 'dev' => true, ), @@ -56,21 +56,21 @@ 'dev_requirement' => false, ), 'alibabacloud/openapi-util' => array( - 'pretty_version' => '0.1.10', - 'version' => '0.1.10.0', + 'pretty_version' => '0.1.11', + 'version' => '0.1.11.0', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/openapi-util', 'aliases' => array(), - 'reference' => 'c677ec9ea357caa98c2054dced1f5045634777da', + 'reference' => '61ee137955a25c9f5f33170babb6071d4bccf12c', 'dev_requirement' => false, ), 'alibabacloud/tea' => array( - 'pretty_version' => '3.1.22', - 'version' => '3.1.22.0', + 'pretty_version' => '3.1.23', + 'version' => '3.1.23.0', 'type' => 'library', 'install_path' => __DIR__ . '/../alibabacloud/tea', 'aliases' => array(), - 'reference' => 'f9c9b2c927253a1c23a5381cc655e41311be7f65', + 'reference' => '61fce993274edf6e7131af07256ed7723d97a85f', 'dev_requirement' => false, ), 'alibabacloud/tea-utils' => array( @@ -83,12 +83,12 @@ 'dev_requirement' => false, ), 'aliyuncs/oss-sdk-php' => array( - 'pretty_version' => 'v2.4.3', - 'version' => '2.4.3.0', + 'pretty_version' => 'v2.5.0', + 'version' => '2.5.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../aliyuncs/oss-sdk-php', 'aliases' => array(), - 'reference' => '4ccead614915ee6685bf30016afb01aabd347e46', + 'reference' => 'f0413667d765855eb0aaa728b596801464ffdb06', 'dev_requirement' => false, ), 'baidubce/bce-sdk-php' => array( @@ -106,16 +106,16 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '306f3e80c4e0f55b5f20e296872a87473d818c14', + 'reference' => '022a41a2dac2ac95ef51cf20c7ffc88f2748ffb3', 'dev_requirement' => false, ), 'ezyang/htmlpurifier' => array( - 'pretty_version' => 'v4.13.0', - 'version' => '4.13.0.0', + 'pretty_version' => 'v4.14.0', + 'version' => '4.14.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../ezyang/htmlpurifier', 'aliases' => array(), - 'reference' => '08e27c97e4c6ed02f37c5b2b20488046c8d90d75', + 'reference' => '12ab42bd6e742c70c0a52f7b82477fcd44e64b75', 'dev_requirement' => false, ), 'guzzle/batch' => array( @@ -323,12 +323,12 @@ 'dev_requirement' => false, ), 'league/mime-type-detection' => array( - 'pretty_version' => '1.9.0', - 'version' => '1.9.0.0', + 'pretty_version' => '1.11.0', + 'version' => '1.11.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../league/mime-type-detection', 'aliases' => array(), - 'reference' => 'aa70e813a6ad3d1558fc927863d47309b4c23e69', + 'reference' => 'ff6248ea87a9f116e78edd6002e39e5128a0d4dd', 'dev_requirement' => false, ), 'lizhichao/one-sm' => array( @@ -341,12 +341,12 @@ 'dev_requirement' => false, ), 'maennchen/zipstream-php' => array( - 'pretty_version' => '2.1.0', - 'version' => '2.1.0.0', + 'pretty_version' => '2.2.1', + 'version' => '2.2.1.0', 'type' => 'library', 'install_path' => __DIR__ . '/../maennchen/zipstream-php', 'aliases' => array(), - 'reference' => 'c4c5803cc1f93df3d2448478ef79394a5981cc58', + 'reference' => '211e9ba1530ea5260b45d90c9ea252f56ec52729', 'dev_requirement' => false, ), 'markbaker/complex' => array( @@ -377,12 +377,12 @@ 'dev_requirement' => false, ), 'myclabs/php-enum' => array( - 'pretty_version' => '1.8.3', - 'version' => '1.8.3.0', + 'pretty_version' => '1.6.6', + 'version' => '1.6.6.0', 'type' => 'library', 'install_path' => __DIR__ . '/../myclabs/php-enum', 'aliases' => array(), - 'reference' => 'b942d263c641ddb5190929ff840c68f78713e937', + 'reference' => '32c4202886c51fbe5cc3a7c34ec5c9a4a790345e', 'dev_requirement' => false, ), 'obs/esdk-obs-php' => array( @@ -479,21 +479,21 @@ 'dev_requirement' => false, ), 'qcloud/cos-sdk-v5' => array( - 'pretty_version' => 'v2.4.4', - 'version' => '2.4.4.0', + 'pretty_version' => 'v2.5.5', + 'version' => '2.5.5.0', 'type' => 'library', 'install_path' => __DIR__ . '/../qcloud/cos-sdk-v5', 'aliases' => array(), - 'reference' => '2862ce2c9244eb12f099483db578910bde9b045a', + 'reference' => '40e51efc05d5addeb9029db7840846809bd666c4', 'dev_requirement' => false, ), 'qiniu/php-sdk' => array( - 'pretty_version' => 'v7.4.1', - 'version' => '7.4.1.0', + 'pretty_version' => 'v7.5.0', + 'version' => '7.5.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../qiniu/php-sdk', 'aliases' => array(), - 'reference' => '10c7ead8357743b4b987a335c14964fb07700d57', + 'reference' => '0cc46e4206002d1a736dbb4abb1424b0b7fc3f22', 'dev_requirement' => false, ), 'symfony/event-dispatcher' => array( @@ -506,17 +506,17 @@ 'dev_requirement' => false, ), 'symfony/polyfill-mbstring' => array( - 'pretty_version' => 'v1.23.1', - 'version' => '1.23.1.0', + 'pretty_version' => 'v1.25.0', + 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', 'aliases' => array(), - 'reference' => '9174a3d80210dca8daa7f31fec659150bbeabfc6', + 'reference' => '0abb51d2f102e00a4eefcf46ba7fec406d245825', 'dev_requirement' => false, ), 'symfony/polyfill-php72' => array( - 'pretty_version' => 'v1.23.0', - 'version' => '1.23.0.0', + 'pretty_version' => 'v1.25.0', + 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php72', 'aliases' => array(), @@ -524,48 +524,48 @@ 'dev_requirement' => true, ), 'symfony/polyfill-php80' => array( - 'pretty_version' => 'v1.23.1', - 'version' => '1.23.1.0', + 'pretty_version' => 'v1.25.0', + 'version' => '1.25.0.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/polyfill-php80', 'aliases' => array(), - 'reference' => '1100343ed1a92e3a38f9ae122fc0eb21602547be', + 'reference' => '4407588e0d3f1f52efb65fbe92babe41f37fe50c', 'dev_requirement' => true, ), 'symfony/var-dumper' => array( - 'pretty_version' => 'v4.4.34', - 'version' => '4.4.34.0', + 'pretty_version' => 'v4.4.41', + 'version' => '4.4.41.0', 'type' => 'library', 'install_path' => __DIR__ . '/../symfony/var-dumper', 'aliases' => array(), - 'reference' => '2d0c056b2faaa3d785bdbd5adecc593a5be9c16e', + 'reference' => '58eb36075c04aaf92a7a9f38ee9a8b97e24eb481', 'dev_requirement' => true, ), 'topthink/framework' => array( - 'pretty_version' => 'v6.0.9', - 'version' => '6.0.9.0', + 'pretty_version' => 'v6.0.12', + 'version' => '6.0.12.0', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/framework', 'aliases' => array(), - 'reference' => '0b5fb453f0e533de3af3a1ab6a202510b61be617', + 'reference' => 'e478316ac843c1a884a3b3a7a94db17c4001ff5c', 'dev_requirement' => false, ), 'topthink/think-helper' => array( - 'pretty_version' => 'v3.1.5', - 'version' => '3.1.5.0', + 'pretty_version' => 'v3.1.6', + 'version' => '3.1.6.0', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/think-helper', 'aliases' => array(), - 'reference' => 'f98e3ad44acd27ae85a4d923b1bdfd16c6d8d905', + 'reference' => '769acbe50a4274327162f9c68ec2e89a38eb2aff', 'dev_requirement' => false, ), 'topthink/think-orm' => array( - 'pretty_version' => 'v2.0.45', - 'version' => '2.0.45.0', + 'pretty_version' => 'v2.0.52', + 'version' => '2.0.52.0', 'type' => 'library', 'install_path' => __DIR__ . '/../topthink/think-orm', 'aliases' => array(), - 'reference' => '3dcf9af447b048103093840833e8c74ab849152f', + 'reference' => '407a60658f37fc57422ab95a9922c6f69af90f46', 'dev_requirement' => false, ), 'upyun/sdk' => array( diff --git a/vendor/ezyang/htmlpurifier/README.md b/vendor/ezyang/htmlpurifier/README.md index 9e0becc..e6b7199 100644 --- a/vendor/ezyang/htmlpurifier/README.md +++ b/vendor/ezyang/htmlpurifier/README.md @@ -1,4 +1,4 @@ -HTML Purifier [![Build Status](https://secure.travis-ci.org/ezyang/htmlpurifier.svg?branch=master)](http://travis-ci.org/ezyang/htmlpurifier) +HTML Purifier [![Build Status](https://github.com/ezyang/htmlpurifier/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/ezyang/htmlpurifier/actions/workflows/ci.yml) ============= HTML Purifier is an HTML filtering solution that uses a unique combination diff --git a/vendor/ezyang/htmlpurifier/VERSION b/vendor/ezyang/htmlpurifier/VERSION index 01b73ab..09ce0ce 100644 --- a/vendor/ezyang/htmlpurifier/VERSION +++ b/vendor/ezyang/htmlpurifier/VERSION @@ -1 +1 @@ -4.13.0 \ No newline at end of file +4.14.0 \ No newline at end of file diff --git a/vendor/ezyang/htmlpurifier/composer.json b/vendor/ezyang/htmlpurifier/composer.json index 0ff86b5..5f62d88 100644 --- a/vendor/ezyang/htmlpurifier/composer.json +++ b/vendor/ezyang/htmlpurifier/composer.json @@ -15,9 +15,6 @@ "require": { "php": ">=5.2" }, - "require-dev": { - "simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd" - }, "autoload": { "psr-0": { "HTMLPurifier": "library/" }, "files": ["library/HTMLPurifier.composer.php"], diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload-legacy.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload-legacy.php index c271cd1..0a17ee4 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload-legacy.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload-legacy.php @@ -4,12 +4,11 @@ * @file * Legacy autoloader for systems lacking spl_autoload_register * - * Must be separate to prevent deprecation warning on PHP 7.2 */ -function __autoload($class) +spl_autoload_register(function($class) { - return HTMLPurifier_Bootstrap::autoload($class); -} + return HTMLPurifier_Bootstrap::autoload($class); +}); // vim: et sw=4 sts=4 diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload.php index 9d8d299..7a69113 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier.autoload.php @@ -17,6 +17,7 @@ if (function_exists('spl_autoload_register') && function_exists('spl_autoload_un require dirname(__FILE__) . '/HTMLPurifier.autoload-legacy.php'; } +// phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.zend_ze1_compatibility_modeRemoved if (ini_get('zend.ze1_compatibility_mode')) { trigger_error("HTML Purifier is not compatible with zend.ze1_compatibility_mode; please turn it off", E_USER_ERROR); } diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier.includes.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier.includes.php index 151e675..ee81cac 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier.includes.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier.includes.php @@ -7,7 +7,7 @@ * primary concern and you are using an opcode cache. PLEASE DO NOT EDIT THIS * FILE, changes will be overwritten the next time the script is run. * - * @version 4.13.0 + * @version 4.14.0 * * @warning * You must *not* include any other HTML Purifier files before this file, diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php index 3c0f8a0..2177fc8 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier.php @@ -19,7 +19,7 @@ */ /* - HTML Purifier 4.13.0 - Standards Compliant HTML Filtering + HTML Purifier 4.14.0 - Standards Compliant HTML Filtering Copyright (C) 2006-2008 Edward Z. Yang This library is free software; you can redistribute it and/or @@ -58,12 +58,12 @@ class HTMLPurifier * Version of HTML Purifier. * @type string */ - public $version = '4.13.0'; + public $version = '4.14.0'; /** * Constant with version of HTML Purifier. */ - const VERSION = '4.13.0'; + const VERSION = '4.14.0'; /** * Global configuration object. diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Background.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Background.php index 7f1ea3b..28c4988 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Background.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Background.php @@ -25,6 +25,7 @@ class HTMLPurifier_AttrDef_CSS_Background extends HTMLPurifier_AttrDef $this->info['background-repeat'] = $def->info['background-repeat']; $this->info['background-attachment'] = $def->info['background-attachment']; $this->info['background-position'] = $def->info['background-position']; + $this->info['background-size'] = $def->info['background-size']; } /** @@ -53,6 +54,7 @@ class HTMLPurifier_AttrDef_CSS_Background extends HTMLPurifier_AttrDef $caught['repeat'] = false; $caught['attachment'] = false; $caught['position'] = false; + $caught['size'] = false; $i = 0; // number of catches diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/CSSDefinition.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/CSSDefinition.php index 21f1a58..3f08b81 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/CSSDefinition.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/CSSDefinition.php @@ -109,6 +109,22 @@ class HTMLPurifier_CSSDefinition extends HTMLPurifier_Definition ); $this->info['background-position'] = new HTMLPurifier_AttrDef_CSS_BackgroundPosition(); + $this->info['background-size'] = new HTMLPurifier_AttrDef_CSS_Composite( + array( + new HTMLPurifier_AttrDef_Enum( + array( + 'auto', + 'cover', + 'contain', + 'initial', + 'inherit', + ) + ), + new HTMLPurifier_AttrDef_CSS_Percentage(), + new HTMLPurifier_AttrDef_CSS_Length() + ) + ); + $border_color = $this->info['border-top-color'] = $this->info['border-bottom-color'] = diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Table.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Table.php index cb6b3e6..67c7e95 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Table.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/Table.php @@ -164,7 +164,7 @@ class HTMLPurifier_ChildDef_Table extends HTMLPurifier_ChildDef } } - if (empty($content)) { + if (empty($content) && $thead === false && $tfoot === false) { return false; } diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php index 3133d8a..16a6b32 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Config.php @@ -21,7 +21,7 @@ class HTMLPurifier_Config * HTML Purifier's version * @type string */ - public $version = '4.13.0'; + public $version = '4.14.0'; /** * Whether or not to automatically finalize @@ -803,7 +803,7 @@ class HTMLPurifier_Config if ($index !== false) { $array = (isset($array[$index]) && is_array($array[$index])) ? $array[$index] : array(); } - $mq = $mq_fix && function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc(); + $mq = $mq_fix && version_compare(PHP_VERSION, '7.4.0', '<') && function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc(); $allowed = HTMLPurifier_Config::getAllowedDirectivesForForm($allowed, $schema); $ret = array(); diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/README b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/README old mode 100644 new mode 100755 diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule.php index 6d898f8..9dbb987 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule.php @@ -257,8 +257,9 @@ class HTMLPurifier_HTMLModule */ public function makeLookup($list) { + $args = func_get_args(); if (is_string($list)) { - $list = func_get_args(); + $list = $args; } $ret = array(); foreach ($list as $value) { diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy.php index 08aa232..12173ba 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy.php @@ -146,10 +146,7 @@ class HTMLPurifier_HTMLModule_Tidy extends HTMLPurifier_HTMLModule $type = "info_$type"; $e = $this; } - // PHP does some weird parsing when I do - // $e->$type[$attr], so I have to assign a ref. - $f =& $e->$type; - $f[$attr] = $fix; + $e->{$type}[$attr] = $fix; break; case 'tag_transform': $this->info_tag_transform[$params['element']] = $fix; diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php index 700a25d..9ee3ffc 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php @@ -168,9 +168,11 @@ class HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4 extends HTMLPurifier_HTMLModule // @vspace for img ------------------------------------------------ $r['img@vspace'] = new HTMLPurifier_AttrTransform_ImgSpace('vspace'); - // @width for hr, td, th ------------------------------------------ + // @width for table, hr, td, th, col ------------------------------------------ + $r['table@width'] = $r['td@width'] = $r['th@width'] = + $r['col@width'] = $r['hr@width'] = new HTMLPurifier_AttrTransform_Length('width'); return $r; diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector/Linkify.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector/Linkify.php index 74f83ea..3b6d70f 100644 --- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector/Linkify.php +++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Injector/Linkify.php @@ -40,6 +40,9 @@ class HTMLPurifier_Injector_Linkify extends HTMLPurifier_Injector '/\\b((?:[a-z][\\w\\-]+:(?:\\/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}\\/)(?:[^\\s()<>]|\\((?:[^\\s()<>]|(?:\\([^\\s()<>]+\\)))*\\))+(?:\\((?:[^\\s()<>]|(?:\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:\'".,<>?\x{00ab}\x{00bb}\x{201c}\x{201d}\x{2018}\x{2019}]))/iu', $token->data, -1, PREG_SPLIT_DELIM_CAPTURE); + if ($bits === false) { + return; + } $token = array(); diff --git a/vendor/league/mime-type-detection/CHANGELOG.md b/vendor/league/mime-type-detection/CHANGELOG.md index 9f296f2..2264f7a 100644 --- a/vendor/league/mime-type-detection/CHANGELOG.md +++ b/vendor/league/mime-type-detection/CHANGELOG.md @@ -1,12 +1,18 @@ # Changelog +## 1.10.0 - 2022-04-11 + +### Fixed + +- Added Flysystem v1 inconclusive mime-types and made it configurable as a constructor parameter. + ## 1.9.0 - 2021-11-21 ### Updated - Updated lookup -- ## 1.8.0 - 2021-09-25 +## 1.8.0 - 2021-09-25 ### Added diff --git a/vendor/league/mime-type-detection/LICENSE b/vendor/league/mime-type-detection/LICENSE index 7c1027d..1f01652 100644 --- a/vendor/league/mime-type-detection/LICENSE +++ b/vendor/league/mime-type-detection/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2013-2020 Frank de Jonge +Copyright (c) 2013-2022 Frank de Jonge Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/vendor/league/mime-type-detection/src/FinfoMimeTypeDetector.php b/vendor/league/mime-type-detection/src/FinfoMimeTypeDetector.php index e2f2e35..ba91938 100644 --- a/vendor/league/mime-type-detection/src/FinfoMimeTypeDetector.php +++ b/vendor/league/mime-type-detection/src/FinfoMimeTypeDetector.php @@ -11,7 +11,13 @@ use finfo; class FinfoMimeTypeDetector implements MimeTypeDetector { - private const INCONCLUSIVE_MIME_TYPES = ['application/x-empty', 'text/plain', 'text/x-asm']; + private const INCONCLUSIVE_MIME_TYPES = [ + 'application/x-empty', + 'text/plain', + 'text/x-asm', + 'application/octet-stream', + 'inode/x-empty', + ]; /** * @var finfo @@ -28,14 +34,21 @@ class FinfoMimeTypeDetector implements MimeTypeDetector */ private $bufferSampleSize; + /** + * @var array + */ + private $inconclusiveMimetypes; + public function __construct( string $magicFile = '', ExtensionToMimeTypeMap $extensionMap = null, - ?int $bufferSampleSize = null + ?int $bufferSampleSize = null, + array $inconclusiveMimetypes = self::INCONCLUSIVE_MIME_TYPES ) { $this->finfo = new finfo(FILEINFO_MIME_TYPE, $magicFile); $this->extensionMap = $extensionMap ?: new GeneratedExtensionToMimeTypeMap(); $this->bufferSampleSize = $bufferSampleSize; + $this->inconclusiveMimetypes = $inconclusiveMimetypes; } public function detectMimeType(string $path, $contents): ?string @@ -44,7 +57,7 @@ class FinfoMimeTypeDetector implements MimeTypeDetector ? (@$this->finfo->buffer($this->takeSample($contents)) ?: null) : null; - if ($mimeType !== null && ! in_array($mimeType, self::INCONCLUSIVE_MIME_TYPES)) { + if ($mimeType !== null && ! in_array($mimeType, $this->inconclusiveMimetypes)) { return $mimeType; } diff --git a/vendor/league/mime-type-detection/src/GeneratedExtensionToMimeTypeMap.php b/vendor/league/mime-type-detection/src/GeneratedExtensionToMimeTypeMap.php index d1f714a..f092388 100644 --- a/vendor/league/mime-type-detection/src/GeneratedExtensionToMimeTypeMap.php +++ b/vendor/league/mime-type-detection/src/GeneratedExtensionToMimeTypeMap.php @@ -66,6 +66,8 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap 'atomsvc' => 'application/atomsvc+xml', 'atx' => 'application/vnd.antix.game-component', 'au' => 'audio/x-au', + 'avci' => 'image/avci', + 'avcs' => 'image/avcs', 'avi' => 'video/x-msvideo', 'avif' => 'image/avif', 'aw' => 'application/applixware', @@ -160,6 +162,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap 'com' => 'application/x-msdownload', 'conf' => 'text/plain', 'cpio' => 'application/x-cpio', + 'cpl' => 'application/cpl+xml', 'cpp' => 'text/x-c', 'cpt' => 'application/mac-compactpro', 'crd' => 'application/x-mscardfile', @@ -583,6 +586,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap 'mpd' => 'application/dash+xml', 'mpe' => 'video/mpeg', 'mpeg' => 'video/mpeg', + 'mpf' => 'application/media-policy-dataset+xml', 'mpg' => 'video/mpeg', 'mpg4' => 'video/mp4', 'mpga' => 'audio/mpeg', @@ -726,6 +730,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap 'pgm' => 'image/x-portable-graymap', 'pgn' => 'application/x-chess-pgn', 'pgp' => 'application/pgp', + 'phar' => 'application/octet-stream', 'php' => 'application/x-httpd-php', 'php3' => 'application/x-httpd-php', 'php4' => 'application/x-httpd-php', @@ -760,7 +765,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'pqa' => 'application/vnd.palm', - 'prc' => 'application/x-pilot', + 'prc' => 'model/prc', 'pre' => 'application/vnd.lotus-freelance', 'prf' => 'application/pics-rules', 'provx' => 'application/provenance+xml', @@ -1000,6 +1005,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap 'txd' => 'application/vnd.genomatix.tuxedo', 'txf' => 'application/vnd.mobius.txf', 'txt' => 'text/plain', + 'u3d' => 'model/u3d', 'u8dsn' => 'message/global-delivery-status', 'u8hdr' => 'message/global-headers', 'u8mdn' => 'message/global-disposition-notification', @@ -1096,6 +1102,7 @@ class GeneratedExtensionToMimeTypeMap implements ExtensionToMimeTypeMap 'webp' => 'image/webp', 'wg' => 'application/vnd.pmi.widget', 'wgt' => 'application/widget', + 'wif' => 'application/watcherinfo+xml', 'wks' => 'application/vnd.ms-works', 'wm' => 'video/x-ms-wm', 'wma' => 'audio/x-ms-wma', diff --git a/vendor/maennchen/zipstream-php/.github/FUNDING.yml b/vendor/maennchen/zipstream-php/.github/FUNDING.yml deleted file mode 100644 index d807a3f..0000000 --- a/vendor/maennchen/zipstream-php/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -open_collective: zipstream diff --git a/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE.md b/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 3c2e66d..0000000 --- a/vendor/maennchen/zipstream-php/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,12 +0,0 @@ -# Description of the problem - -Please be very descriptive and include as much details as possible. - -# Example code - -# Informations - -* ZipStream-PHP version: -* PHP version: - -Please include any supplemental information you deem relevant to this issue. diff --git a/vendor/maennchen/zipstream-php/.travis.yml b/vendor/maennchen/zipstream-php/.travis.yml deleted file mode 100644 index 12c8a64..0000000 --- a/vendor/maennchen/zipstream-php/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: php -dist: trusty -sudo: false -php: - - 7.1 - - 7.2 - - 7.3 -install: composer install -script: ./vendor/bin/phpunit --coverage-clover=coverage.clover -after_script: - - wget https://scrutinizer-ci.com/ocular.phar - - php ocular.phar code-coverage:upload --format=php-clover coverage.clover diff --git a/vendor/maennchen/zipstream-php/README.md b/vendor/maennchen/zipstream-php/README.md index c2e832b..c489867 100644 --- a/vendor/maennchen/zipstream-php/README.md +++ b/vendor/maennchen/zipstream-php/README.md @@ -1,8 +1,7 @@ # ZipStream-PHP -[![Build Status](https://travis-ci.org/maennchen/ZipStream-PHP.svg?branch=master)](https://travis-ci.org/maennchen/ZipStream-PHP) -[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/maennchen/ZipStream-PHP/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/maennchen/ZipStream-PHP/) -[![Code Coverage](https://scrutinizer-ci.com/g/maennchen/ZipStream-PHP/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/maennchen/ZipStream-PHP/) +![.github/workflows/php.yml](https://github.com/maennchen/ZipStream-PHP/workflows/.github/workflows/php.yml/badge.svg) +[![Coverage Status](https://coveralls.io/repos/github/maennchen/ZipStream-PHP/badge.svg?branch=master)](https://coveralls.io/github/maennchen/ZipStream-PHP?branch=master) [![Latest Stable Version](https://poser.pugx.org/maennchen/zipstream-php/v/stable)](https://packagist.org/packages/maennchen/zipstream-php) [![Total Downloads](https://poser.pugx.org/maennchen/zipstream-php/downloads)](https://packagist.org/packages/maennchen/zipstream-php) [![Financial Contributors on Open Collective](https://opencollective.com/zipstream/all/badge.svg?label=financial+contributors)](https://opencollective.com/zipstream) [![License](https://img.shields.io/github/license/maennchen/zipstream-php.svg)](LICENSE) @@ -59,11 +58,13 @@ the current default storage method is 'deflate' i.e files are stored with Compre See the [Wiki](https://github.com/maennchen/ZipStream-PHP/wiki) for details. -## Known issue +## Known issues -The native Mac OS archive extraction tool might not open archives in some conditions. A workaround is to disable the Zip64 feature with the option `$opt->setEnableZip64(false)`. This limits the archive to 4 Gb and 64k files but will allow Mac OS users to open them without issue. See #116. +The native Mac OS archive extraction tool prior to macOS 10.15 might not open archives in some conditions. A workaround is to disable the Zip64 feature with the option `$opt->setEnableZip64(false)`. This limits the archive to 4 Gb and 64k files but will allow users on macOS 10.14 and below to open them without issue. See #116. -The linux `unzip` utility might not handle properly unicode characters. It is recommended to extract with another tool like [7-zip](https://www.7-zip.org/). See #146. +The linux `unzip` utility might not handle properly unicode characters. It is recommended to extract with another tool like [7-zip](https://www.7-zip.org/). See [#146](https://github.com/maennchen/ZipStream-PHP/issues/146). + +It is the responsability of the client code to make sure that files are not saved with the same path, as it is not possible for the library to figure it out while streaming a zip. See [#154](https://github.com/maennchen/ZipStream-PHP/issues/154). ## Upgrade to version 2.0.0 diff --git a/vendor/maennchen/zipstream-php/composer.json b/vendor/maennchen/zipstream-php/composer.json index 103c78c..78943cf 100644 --- a/vendor/maennchen/zipstream-php/composer.json +++ b/vendor/maennchen/zipstream-php/composer.json @@ -22,20 +22,25 @@ } ], "require": { - "php": ">= 7.1", + "php": "^7.4 || ^8.0", "symfony/polyfill-mbstring": "^1.0", "psr/http-message": "^1.0", "myclabs/php-enum": "^1.5" }, "require-dev": { - "phpunit/phpunit": ">= 7.5", - "guzzlehttp/guzzle": ">= 6.3", + "phpunit/phpunit": "^8.5.8 || ^9.4.2", + "guzzlehttp/guzzle": "^6.5.3 || ^7.2.0", "ext-zip": "*", - "mikey179/vfsstream": "^1.6" + "mikey179/vfsstream": "^1.6", + "vimeo/psalm": "^4.1", + "php-coveralls/php-coveralls": "^2.4" }, "autoload": { "psr-4": { "ZipStream\\": "src/" } + }, + "archive": { + "exclude": ["/test", "/CHANGELOG.md", "/CONTRIBUTING.md", "/phpunit.xml.dist", "/psalm.xml"] } } diff --git a/vendor/maennchen/zipstream-php/phpunit.xml.dist b/vendor/maennchen/zipstream-php/phpunit.xml.dist index f6e7227..8a2f318 100644 --- a/vendor/maennchen/zipstream-php/phpunit.xml.dist +++ b/vendor/maennchen/zipstream-php/phpunit.xml.dist @@ -1,17 +1,14 @@ - - - - test - - - - - - - - - - src - - + + + + + src + + + + + test + + + diff --git a/vendor/maennchen/zipstream-php/psalm.xml b/vendor/maennchen/zipstream-php/psalm.xml index 42f355b..4e4c4f6 100644 --- a/vendor/maennchen/zipstream-php/psalm.xml +++ b/vendor/maennchen/zipstream-php/psalm.xml @@ -1,6 +1,5 @@ - diff --git a/vendor/maennchen/zipstream-php/src/Bigint.php b/vendor/maennchen/zipstream-php/src/Bigint.php index 52ccfd2..ff84d0d 100644 --- a/vendor/maennchen/zipstream-php/src/Bigint.php +++ b/vendor/maennchen/zipstream-php/src/Bigint.php @@ -108,6 +108,7 @@ class Bigint /** * Check if is over 32 * + * @psalm-suppress ArgumentTypeCoercion * @param bool $force * @return bool */ diff --git a/vendor/maennchen/zipstream-php/src/File.php b/vendor/maennchen/zipstream-php/src/File.php index 2200a36..6ca1fe7 100644 --- a/vendor/maennchen/zipstream-php/src/File.php +++ b/vendor/maennchen/zipstream-php/src/File.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace ZipStream; use Psr\Http\Message\StreamInterface; +use RuntimeException; use ZipStream\Exception\EncodingException; use ZipStream\Exception\FileNotFoundException; use ZipStream\Exception\FileNotReadableException; @@ -75,8 +76,9 @@ class File * @var resource */ private $deflate; + /** - * @var resource + * @var \HashContext */ private $hash; @@ -291,6 +293,13 @@ class File $this->version = Version::ZIP64(); } + if ($this->bits & self::BIT_EFS_UTF8) { + // Put the tricky entry to + // force Linux unzip to lookup EFS flag. + $fields[] = ['v', 0x5653]; // Choose 'ZS' for proprietary usage + $fields[] = ['v', 0x0000]; // zero length + } + return ZipStream::packFields($fields); } @@ -366,7 +375,8 @@ class File protected function deflateInit(): void { - $this->hash = hash_init(self::HASH_ALGORITHM); + $hash = hash_init(self::HASH_ALGORITHM); + $this->hash = $hash; if ($this->method->equals(Method::DEFLATE())) { $this->deflate = deflate_init( ZLIB_ENCODING_RAW, diff --git a/vendor/maennchen/zipstream-php/src/Option/Archive.php b/vendor/maennchen/zipstream-php/src/Option/Archive.php index b6b95cc..21d14d8 100644 --- a/vendor/maennchen/zipstream-php/src/Option/Archive.php +++ b/vendor/maennchen/zipstream-php/src/Option/Archive.php @@ -3,6 +3,8 @@ declare(strict_types=1); namespace ZipStream\Option; +use Psr\Http\Message\StreamInterface; + final class Archive { const DEFAULT_DEFLATE_LEVEL = 6; @@ -104,7 +106,7 @@ final class Archive private $deflateLevel = 6; /** - * @var resource + * @var StreamInterface|resource */ private $outputStream; @@ -228,7 +230,7 @@ final class Archive } /** - * @return resource + * @return StreamInterface|resource */ public function getOutputStream() { @@ -236,7 +238,7 @@ final class Archive } /** - * @param resource $outputStream + * @param StreamInterface|resource $outputStream */ public function setOutputStream($outputStream): void { diff --git a/vendor/maennchen/zipstream-php/src/Option/File.php b/vendor/maennchen/zipstream-php/src/Option/File.php index 7fd29ea..05ff7b5 100644 --- a/vendor/maennchen/zipstream-php/src/Option/File.php +++ b/vendor/maennchen/zipstream-php/src/Option/File.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace ZipStream\Option; use DateTime; +use DateTimeInterface; final class File { @@ -20,7 +21,7 @@ final class File */ private $deflateLevel; /** - * @var DateTime + * @var DateTimeInterface */ private $time; /** @@ -83,17 +84,17 @@ final class File } /** - * @return DateTime + * @return DateTimeInterface */ - public function getTime(): DateTime + public function getTime(): DateTimeInterface { return $this->time; } /** - * @param DateTime $time + * @param DateTimeInterface $time */ - public function setTime(DateTime $time): void + public function setTime(DateTimeInterface $time): void { $this->time = $time; } diff --git a/vendor/maennchen/zipstream-php/src/Stream.php b/vendor/maennchen/zipstream-php/src/Stream.php index bf410a3..686c3a6 100644 --- a/vendor/maennchen/zipstream-php/src/Stream.php +++ b/vendor/maennchen/zipstream-php/src/Stream.php @@ -67,7 +67,7 @@ class Stream implements StreamInterface { try { $this->seek(0); - } catch (\RuntimeException $e) {} + } catch (RuntimeException $e) {} return (string) stream_get_contents($this->stream); } @@ -81,7 +81,7 @@ class Stream implements StreamInterface * PHP $whence values for `fseek()`. SEEK_SET: Set position equal to * offset bytes SEEK_CUR: Set position to current location plus offset * SEEK_END: Set position to end-of-stream plus offset. - * @throws \RuntimeException on failure. + * @throws RuntimeException on failure. */ public function seek($offset, $whence = SEEK_SET): void { @@ -136,7 +136,7 @@ class Stream implements StreamInterface * Returns the current position of the file read/write pointer * * @return int Position of the file pointer - * @throws \RuntimeException on error. + * @throws RuntimeException on error. */ public function tell(): int { @@ -165,7 +165,7 @@ class Stream implements StreamInterface * * @see seek() * @link http://www.php.net/manual/en/function.fseek.php - * @throws \RuntimeException on failure. + * @throws RuntimeException on failure. */ public function rewind(): void { @@ -177,7 +177,7 @@ class Stream implements StreamInterface * * @param string $string The string that is to be written. * @return int Returns the number of bytes written to the stream. - * @throws \RuntimeException on failure. + * @throws RuntimeException on failure. */ public function write($string): int { @@ -197,7 +197,11 @@ class Stream implements StreamInterface */ public function isWritable(): bool { - return preg_match('/[waxc+]/', $this->getMetadata('mode')) === 1; + $mode = $this->getMetadata('mode'); + if (!is_string($mode)) { + throw new RuntimeException('Could not get stream mode from metadata!'); + } + return preg_match('/[waxc+]/', $mode) === 1; } /** @@ -229,7 +233,11 @@ class Stream implements StreamInterface */ public function isReadable(): bool { - return preg_match('/[r+]/', $this->getMetadata('mode')) === 1; + $mode = $this->getMetadata('mode'); + if (!is_string($mode)) { + throw new RuntimeException('Could not get stream mode from metadata!'); + } + return preg_match('/[r+]/', $mode) === 1; } /** diff --git a/vendor/maennchen/zipstream-php/src/ZipStream.php b/vendor/maennchen/zipstream-php/src/ZipStream.php index e83038c..d281d25 100644 --- a/vendor/maennchen/zipstream-php/src/ZipStream.php +++ b/vendor/maennchen/zipstream-php/src/ZipStream.php @@ -312,12 +312,9 @@ class ZipStream * * Examples: * - * // create a temporary file stream and write text to it - * $fp = tmpfile(); - * fwrite($fp, 'The quick brown fox jumped over the lazy dog.'); - * + * $stream = $response->getBody(); * // add a file named 'streamfile.txt' from the content of the stream - * $x->addFileFromPsr7Stream('streamfile.txt', $fp); + * $x->addFileFromPsr7Stream('streamfile.txt', $stream); * * @return void */ @@ -459,7 +456,13 @@ class ZipStream } $this->need_headers = false; - fwrite($this->opt->getOutputStream(), $str); + $outputStream = $this->opt->getOutputStream(); + + if ($outputStream instanceof StreamInterface) { + $outputStream->write($str); + } else { + fwrite($outputStream, $str); + } if ($this->opt->isFlushOutput()) { // flush output buffer if it is on and flushable diff --git a/vendor/maennchen/zipstream-php/test/ZipStreamTest.php b/vendor/maennchen/zipstream-php/test/ZipStreamTest.php index 6549b0b..8b37f0a 100644 --- a/vendor/maennchen/zipstream-php/test/ZipStreamTest.php +++ b/vendor/maennchen/zipstream-php/test/ZipStreamTest.php @@ -10,6 +10,7 @@ use ZipStream\File; use ZipStream\Option\Archive as ArchiveOptions; use ZipStream\Option\File as FileOptions; use ZipStream\Option\Method; +use ZipStream\Stream; use ZipStream\ZipStream; /** @@ -75,7 +76,7 @@ class ZipStreamTest extends TestCase $tmpDir = $this->validateAndExtractZip($tmp); $files = $this->getRecursiveFileList($tmpDir); - $this->assertEquals(['sample.txt', 'test/sample.txt'], $files); + $this->assertEquals(['sample.txt', 'test' . DIRECTORY_SEPARATOR . 'sample.txt'], $files); $this->assertStringEqualsFile($tmpDir . '/sample.txt', 'Sample String Data'); $this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data'); @@ -307,7 +308,7 @@ class ZipStreamTest extends TestCase $tmpDir = $this->validateAndExtractZip($tmp); $files = $this->getRecursiveFileList($tmpDir); - $this->assertEquals(array('sample.txt', 'test/sample.txt'), $files); + $this->assertEquals(array('sample.txt', 'test' . DIRECTORY_SEPARATOR . 'sample.txt'), $files); $this->assertStringEqualsFile($tmpDir . '/sample.txt', 'Sample String Data'); $this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data'); @@ -433,7 +434,7 @@ class ZipStreamTest extends TestCase $tmpDir = $this->validateAndExtractZip($tmp); $files = $this->getRecursiveFileList($tmpDir); - $this->assertEquals(array('sample.txt', 'test/sample.txt'), $files); + $this->assertEquals(array('sample.txt', 'test' . DIRECTORY_SEPARATOR . 'sample.txt'), $files); $this->assertStringEqualsFile(__FILE__, file_get_contents($tmpDir . '/sample.txt')); $this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data'); @@ -504,6 +505,33 @@ class ZipStreamTest extends TestCase $this->assertStringEqualsFile($tmpDir . '/sample.json', $body); } + public function testAddFileFromPsr7StreamWithOutputToPsr7Stream(): void + { + [$tmp, $resource] = $this->getTmpFileStream(); + $psr7OutputStream = new Stream($resource); + + $options = new ArchiveOptions(); + $options->setOutputStream($psr7OutputStream); + + $zip = new ZipStream(null, $options); + + $body = 'Sample String Data'; + $response = new Response(200, [], $body); + + $fileOptions = new FileOptions(); + $fileOptions->setMethod(Method::STORE()); + + $zip->addFileFromPsr7Stream('sample.json', $response->getBody(), $fileOptions); + $zip->finish(); + $psr7OutputStream->close(); + + $tmpDir = $this->validateAndExtractZip($tmp); + $files = $this->getRecursiveFileList($tmpDir); + + $this->assertEquals(array('sample.json'), $files); + $this->assertStringEqualsFile($tmpDir . '/sample.json', $body); + } + public function testAddFileFromPsr7StreamWithFileSizeSet(): void { [$tmp, $stream] = $this->getTmpFileStream(); @@ -552,7 +580,7 @@ class ZipStreamTest extends TestCase $tmpDir = $this->validateAndExtractZip($tmp); $files = $this->getRecursiveFileList($tmpDir); - $this->assertEquals(['sample.txt', 'test/sample.txt'], $files); + $this->assertEquals(['sample.txt', 'test' . DIRECTORY_SEPARATOR . 'sample.txt'], $files); $this->assertStringEqualsFile($tmpDir . '/sample.txt', 'Sample String Data'); $this->assertStringEqualsFile($tmpDir . '/test/sample.txt', 'More Simple Sample Data'); diff --git a/vendor/myclabs/php-enum/.gitattributes b/vendor/myclabs/php-enum/.gitattributes new file mode 100755 index 0000000..50b8b8a --- /dev/null +++ b/vendor/myclabs/php-enum/.gitattributes @@ -0,0 +1,6 @@ +# Auto detect text files and perform LF normalization +* text=auto + +tests/ export-ignore +phpunit.xml export-ignore +.travis.yml export-ignore diff --git a/vendor/myclabs/php-enum/.gitignore b/vendor/myclabs/php-enum/.gitignore new file mode 100755 index 0000000..ad5190c --- /dev/null +++ b/vendor/myclabs/php-enum/.gitignore @@ -0,0 +1,6 @@ +.DS_Store +nbproject/* +.idea/* +vendor/* +composer.phar +composer.lock diff --git a/vendor/myclabs/php-enum/LICENSE b/vendor/myclabs/php-enum/LICENSE index 2a8cf22..accd5a0 100644 --- a/vendor/myclabs/php-enum/LICENSE +++ b/vendor/myclabs/php-enum/LICENSE @@ -1,6 +1,6 @@ -The MIT License (MIT) +php-enum - PHP Enum implementation http://github.com/myclabs/php-enum -Copyright (c) 2015 My C-Labs +Copyright (C) 2015 My C-Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, diff --git a/vendor/myclabs/php-enum/README.md b/vendor/myclabs/php-enum/README.md index 1e4d1ff..6a08e0a 100644 --- a/vendor/myclabs/php-enum/README.md +++ b/vendor/myclabs/php-enum/README.md @@ -3,18 +3,14 @@ [![Build Status](https://travis-ci.org/myclabs/php-enum.png?branch=master)](https://travis-ci.org/myclabs/php-enum) [![Latest Stable Version](https://poser.pugx.org/myclabs/php-enum/version.png)](https://packagist.org/packages/myclabs/php-enum) [![Total Downloads](https://poser.pugx.org/myclabs/php-enum/downloads.png)](https://packagist.org/packages/myclabs/php-enum) -[![psalm](https://shepherd.dev/github/myclabs/php-enum/coverage.svg)](https://shepherd.dev/github/myclabs/php-enum) - -Maintenance for this project is [supported via Tidelift](https://tidelift.com/subscription/pkg/packagist-myclabs-php-enum?utm_source=packagist-myclabs-php-enum&utm_medium=referral&utm_campaign=readme). ## Why? -First, and mainly, `SplEnum` is not integrated to PHP, you have to install the extension separately. +First, and mainly, `SplEnum` is not integrated to PHP, you have to install it separately. Using an enum instead of class constants provides the following advantages: -- You can use an enum as a parameter type: `function setAction(Action $action) {` -- You can use an enum as a return type: `function getAction() : Action {` +- You can type-hint: `function setAction(Action $action) {` - You can enrich the enum with methods (e.g. `format`, `parse`, …) - You can extend the enum to add new values (make your enum `final` to prevent it) - You can get a list of all the possible values (see below) @@ -35,29 +31,27 @@ use MyCLabs\Enum\Enum; /** * Action enum */ -final class Action extends Enum +class Action extends Enum { private const VIEW = 'view'; private const EDIT = 'edit'; } ``` +Note the `private` keyword requires PHP > 7.1, you can omit it on PHP 7.0. + ## Usage ```php -$action = Action::VIEW(); +$action = new Action(Action::VIEW); -// or with a dynamic key: -$action = Action::$key(); -// or with a dynamic value: -$action = Action::from($value); // or -$action = new Action($value); +$action = Action::VIEW(); ``` As you can see, static methods are automatically implemented to provide quick access to an enum value. -One advantage over using class constants is to be able to use an enum as a parameter type: +One advantage over using class constants is to be able to type-hint enum values: ```php function setAction(Action $action) { @@ -75,19 +69,17 @@ function setAction(Action $action) { Static methods: -- `from()` Creates an Enum instance, checking that the value exist in the enum - `toArray()` method Returns all possible values as an array (constant name in key, constant value in value) - `keys()` Returns the names (keys) of all constants in the Enum class - `values()` Returns instances of the Enum class of all Enum constants (constant name in key, Enum instance in value) - `isValid()` Check if tested value is valid on enum set - `isValidKey()` Check if tested key is valid on enum set -- `assertValidValue()` Assert the value is valid on enum set, throwing exception otherwise - `search()` Return key for searched value ### Static methods ```php -final class Action extends Enum +class Action extends Enum { private const VIEW = 'view'; private const EDIT = 'edit'; @@ -103,7 +95,7 @@ Static method helpers are implemented using [`__callStatic()`](http://www.php.ne If you care about IDE autocompletion, you can either implement the static methods yourself: ```php -final class Action extends Enum +class Action extends Enum { private const VIEW = 'view'; @@ -123,7 +115,7 @@ or you can use phpdoc (this is supported in PhpStorm for example): * @method static Action VIEW() * @method static Action EDIT() */ -final class Action extends Enum +class Action extends Enum { private const VIEW = 'view'; private const EDIT = 'edit'; @@ -133,6 +125,4 @@ final class Action extends Enum ## Related projects - [Doctrine enum mapping](https://github.com/acelaya/doctrine-enum-type) -- [Symfony ParamConverter integration](https://github.com/Ex3v/MyCLabsEnumParamConverter) -- [PHPStan integration](https://github.com/timeweb/phpstan-enum) -- [Yii2 enum mapping](https://github.com/KartaviK/yii2-enum) +- [Symfony 2/3 ParamConverter integration](https://github.com/Ex3v/MyCLabsEnumParamConverter) diff --git a/vendor/myclabs/php-enum/SECURITY.md b/vendor/myclabs/php-enum/SECURITY.md deleted file mode 100644 index 84fd4e3..0000000 --- a/vendor/myclabs/php-enum/SECURITY.md +++ /dev/null @@ -1,11 +0,0 @@ -# Security Policy - -## Supported Versions - -Only the latest stable release is supported. - -## Reporting a Vulnerability - -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). - -Tidelift will coordinate the fix and disclosure. diff --git a/vendor/myclabs/php-enum/composer.json b/vendor/myclabs/php-enum/composer.json index 924f924..88bbe16 100644 --- a/vendor/myclabs/php-enum/composer.json +++ b/vendor/myclabs/php-enum/composer.json @@ -22,12 +22,11 @@ } }, "require": { - "php": "^7.3 || ^8.0", + "php": ">=5.4", "ext-json": "*" }, "require-dev": { - "phpunit/phpunit": "^9.5", - "squizlabs/php_codesniffer": "1.*", - "vimeo/psalm": "^4.6.2" + "phpunit/phpunit": "^4.8.35|^5.7|^6.0", + "squizlabs/php_codesniffer": "1.*" } } diff --git a/vendor/myclabs/php-enum/psalm.xml b/vendor/myclabs/php-enum/psalm.xml deleted file mode 100644 index ff06b66..0000000 --- a/vendor/myclabs/php-enum/psalm.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/myclabs/php-enum/src/Enum.php b/vendor/myclabs/php-enum/src/Enum.php index 89064eb..aa36c42 100644 --- a/vendor/myclabs/php-enum/src/Enum.php +++ b/vendor/myclabs/php-enum/src/Enum.php @@ -14,10 +14,6 @@ namespace MyCLabs\Enum; * @author Matthieu Napoli * @author Daniel Costa * @author Mirosław Filip - * - * @psalm-template T - * @psalm-immutable - * @psalm-consistent-constructor */ abstract class Enum implements \JsonSerializable { @@ -25,88 +21,40 @@ abstract class Enum implements \JsonSerializable * Enum value * * @var mixed - * @psalm-var T */ protected $value; - /** - * Enum key, the constant name - * - * @var string - */ - private $key; - /** * Store existing constants in a static cache per object. * - * * @var array - * @psalm-var array> */ protected static $cache = []; - /** - * Cache of instances of the Enum class - * - * @var array - * @psalm-var array> - */ - protected static $instances = []; - /** * Creates a new value of some type * - * @psalm-pure * @param mixed $value * - * @psalm-param T $value * @throws \UnexpectedValueException if incompatible type is given. */ public function __construct($value) { if ($value instanceof static) { - /** @psalm-var T */ - $value = $value->getValue(); - } + $this->value = $value->getValue(); - /** @psalm-suppress ImplicitToStringCast assertValidValueReturningKey returns always a string but psalm has currently an issue here */ - $this->key = static::assertValidValueReturningKey($value); - - /** @psalm-var T */ - $this->value = $value; - } - - /** - * This method exists only for the compatibility reason when deserializing a previously serialized version - * that didn't had the key property - */ - public function __wakeup() - { - /** @psalm-suppress DocblockTypeContradiction key can be null when deserializing an enum without the key */ - if ($this->key === null) { - /** - * @psalm-suppress InaccessibleProperty key is not readonly as marked by psalm - * @psalm-suppress PossiblyFalsePropertyAssignmentValue deserializing a case that was removed - */ - $this->key = static::search($this->value); + return; } - } - /** - * @param mixed $value - * @return static - */ - public static function from($value): self - { - $key = static::assertValidValueReturningKey($value); + if (!$this->isValid($value)) { + throw new \UnexpectedValueException("Value '$value' is not part of the enum " . \get_called_class()); + } - return self::__callStatic($key, []); + $this->value = $value; } /** - * @psalm-pure * @return mixed - * @psalm-return T */ public function getValue() { @@ -116,17 +64,14 @@ abstract class Enum implements \JsonSerializable /** * Returns the enum key (i.e. the constant name). * - * @psalm-pure - * @return string + * @return mixed */ public function getKey() { - return $this->key; + return static::search($this->value); } /** - * @psalm-pure - * @psalm-suppress InvalidCast * @return string */ public function __toString() @@ -135,27 +80,20 @@ abstract class Enum implements \JsonSerializable } /** - * Determines if Enum should be considered equal with the variable passed as a parameter. - * Returns false if an argument is an object of different class or not an object. + * Compares one Enum with another. * * This method is final, for more information read https://github.com/myclabs/php-enum/issues/4 * - * @psalm-pure - * @psalm-param mixed $variable - * @return bool + * @return bool True if Enums are equal, false if not equal */ - final public function equals($variable = null): bool + final public function equals(Enum $enum = null) { - return $variable instanceof self - && $this->getValue() === $variable->getValue() - && static::class === \get_class($variable); + return $enum !== null && $this->getValue() === $enum->getValue() && \get_called_class() === \get_class($enum); } /** * Returns the names (keys) of all constants in the Enum class * - * @psalm-pure - * @psalm-return list * @return array */ public static function keys() @@ -166,15 +104,12 @@ abstract class Enum implements \JsonSerializable /** * Returns instances of the Enum class of all Enum constants * - * @psalm-pure - * @psalm-return array * @return static[] Constant name in key, Enum instance in value */ public static function values() { $values = array(); - /** @psalm-var T $value */ foreach (static::toArray() as $key => $value) { $values[$key] = new static($value); } @@ -185,20 +120,13 @@ abstract class Enum implements \JsonSerializable /** * Returns all possible values as an array * - * @psalm-pure - * @psalm-suppress ImpureStaticProperty - * - * @psalm-return array * @return array Constant name in key, constant value in value */ public static function toArray() { - $class = static::class; - + $class = \get_called_class(); if (!isset(static::$cache[$class])) { - /** @psalm-suppress ImpureMethodCall this reflection API usage has no side-effects here */ $reflection = new \ReflectionClass($class); - /** @psalm-suppress ImpureMethodCall this reflection API usage has no side-effects here */ static::$cache[$class] = $reflection->getConstants(); } @@ -209,9 +137,7 @@ abstract class Enum implements \JsonSerializable * Check if is valid enum value * * @param $value - * @psalm-param mixed $value - * @psalm-pure - * @psalm-assert-if-true T $value + * * @return bool */ public static function isValid($value) @@ -219,41 +145,11 @@ abstract class Enum implements \JsonSerializable return \in_array($value, static::toArray(), true); } - /** - * Asserts valid enum value - * - * @psalm-pure - * @psalm-assert T $value - * @param mixed $value - */ - public static function assertValidValue($value): void - { - self::assertValidValueReturningKey($value); - } - - /** - * Asserts valid enum value - * - * @psalm-pure - * @psalm-assert T $value - * @param mixed $value - * @return string - */ - private static function assertValidValueReturningKey($value): string - { - if (false === ($key = static::search($value))) { - throw new \UnexpectedValueException("Value '$value' is not part of the enum " . static::class); - } - - return $key; - } - /** * Check if is valid enum key * * @param $key - * @psalm-param string $key - * @psalm-pure + * * @return bool */ public static function isValidKey($key) @@ -266,11 +162,9 @@ abstract class Enum implements \JsonSerializable /** * Return key for value * - * @param mixed $value + * @param $value * - * @psalm-param mixed $value - * @psalm-pure - * @return string|false + * @return mixed */ public static function search($value) { @@ -285,21 +179,15 @@ abstract class Enum implements \JsonSerializable * * @return static * @throws \BadMethodCallException - * - * @psalm-pure */ public static function __callStatic($name, $arguments) { - $class = static::class; - if (!isset(self::$instances[$class][$name])) { - $array = static::toArray(); - if (!isset($array[$name]) && !\array_key_exists($name, $array)) { - $message = "No static method or enum constant '$name' in class " . static::class; - throw new \BadMethodCallException($message); - } - return self::$instances[$class][$name] = new static($array[$name]); + $array = static::toArray(); + if (isset($array[$name]) || \array_key_exists($name, $array)) { + return new static($array[$name]); } - return clone self::$instances[$class][$name]; + + throw new \BadMethodCallException("No static method or enum constant '$name' in class " . \get_called_class()); } /** @@ -308,9 +196,7 @@ abstract class Enum implements \JsonSerializable * * @return mixed * @link http://php.net/manual/en/jsonserializable.jsonserialize.php - * @psalm-pure */ - #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->getValue(); diff --git a/vendor/myclabs/php-enum/src/PHPUnit/Comparator.php b/vendor/myclabs/php-enum/src/PHPUnit/Comparator.php deleted file mode 100644 index 302bf80..0000000 --- a/vendor/myclabs/php-enum/src/PHPUnit/Comparator.php +++ /dev/null @@ -1,54 +0,0 @@ -register(new \MyCLabs\Enum\PHPUnit\Comparator()); - */ -final class Comparator extends \SebastianBergmann\Comparator\Comparator -{ - public function accepts($expected, $actual) - { - return $expected instanceof Enum && ( - $actual instanceof Enum || $actual === null - ); - } - - /** - * @param Enum $expected - * @param Enum|null $actual - * - * @return void - */ - public function assertEquals($expected, $actual, $delta = 0.0, $canonicalize = false, $ignoreCase = false) - { - if ($expected->equals($actual)) { - return; - } - - throw new ComparisonFailure( - $expected, - $actual, - $this->formatEnum($expected), - $this->formatEnum($actual), - false, - 'Failed asserting that two Enums are equal.' - ); - } - - private function formatEnum(Enum $enum = null) - { - if ($enum === null) { - return "null"; - } - - return get_class($enum)."::{$enum->getKey()}()"; - } -} diff --git a/vendor/qcloud/cos-sdk-v5/.github/workflows/format.yml b/vendor/qcloud/cos-sdk-v5/.github/workflows/format.yml new file mode 100644 index 0000000..c1dced7 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/.github/workflows/format.yml @@ -0,0 +1,37 @@ +name: format + +on: + push: + pull_request: + +jobs: + format: + name: Format Code + runs-on: "${{ matrix.os }}" + strategy: + matrix: + os: [ubuntu-latest] + php-version: ['8.0'] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + coverage: none + + - name: Setup Dependencies + run: + composer install -o + + - name: Run + run: | + php bin/format + php bin/release + + - name: Commit Updated + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Format code diff --git a/vendor/qcloud/cos-sdk-v5/.github/workflows/install.yml b/vendor/qcloud/cos-sdk-v5/.github/workflows/install.yml index 6d0b2f8..6eb3a6f 100644 --- a/vendor/qcloud/cos-sdk-v5/.github/workflows/install.yml +++ b/vendor/qcloud/cos-sdk-v5/.github/workflows/install.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0'] + php-version: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] max-parallel: 10 fail-fast: false steps: diff --git a/vendor/qcloud/cos-sdk-v5/CHANGELOG.md b/vendor/qcloud/cos-sdk-v5/CHANGELOG.md index 027189f..346ec5d 100644 --- a/vendor/qcloud/cos-sdk-v5/CHANGELOG.md +++ b/vendor/qcloud/cos-sdk-v5/CHANGELOG.md @@ -1,5 +1,51 @@ cos-php-sdk-v5 Upgrade Guide ==================== +2.5.4 to 2.5.5 +--------- +- fix signHost type error + +2.5.3 to 2.5.4 +--------- +- 新增查询是否开通媒体处理接口 +- 新增获取pm3u8签名接口 +- 新增查询队列列表接口 +- 新增更新队列接口 +- 新增查询任务接口 +- 新增创建多任务接口 +- 新增创建截图任务接口 +- 新增创建转码任务接口 +- 新增创建动图任务接口 +- 新增创建拼接任务接口 +- 新增创建智能封面任务接口 +- 新增创建视频增强任务接口 +- 新增创建精彩集锦任务接口 +- 新增创建人声分离任务接口 +- 修复signHost值获取不到的问题 + +2.5.2 to 2.5.3 +--------- +- 增加ETag的兼容逻辑,防止因为特殊框架或者网关规则导致etag undefined + +2.5.1 to 2.5.2 +--------- +- 修复预签名中Headers参数无效的问题 + +2.5.0 to 2.5.1 +--------- +- 万象相关接口的DetectType审核类型参数可选 +- 万象内容审核接口增加DataId自定义业务标识 +- 新增万象网页审核任务相关接口 +- 新增部分参数校验 +- 修复PHP8.1中将null传递给不可为空的内部函数的问题 + +2.4.4 to 2.5.0 +--------- +- 万象支持病毒检测、人声分离任务接口 +- 万象转码任务支持多个水印参数/多任务接口/查询接口/列表接口 +- 修复签名长期存在的bug +- 修复copy接口404问题,copyObject示例添加注释 +- 审核接口增加仅支持https的说明 + 2.4.3 to 2.4.4 --------- - 修复图片水印签名问题 diff --git a/vendor/qcloud/cos-sdk-v5/composer.json b/vendor/qcloud/cos-sdk-v5/composer.json index ccee3d0..628ba92 100644 --- a/vendor/qcloud/cos-sdk-v5/composer.json +++ b/vendor/qcloud/cos-sdk-v5/composer.json @@ -40,12 +40,17 @@ "guzzlehttp/psr7": "^1.3.1 || ^2.0" }, "config": { - "platform-check": false + "optimize-autoloader": true }, "scripts": { "test": [ "@putenv XDEBUG_MODE=coverage", "phpunit -v --color=always" ] + }, + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } } } diff --git a/vendor/qcloud/cos-sdk-v5/sample/abortMultipartUpload.php b/vendor/qcloud/cos-sdk-v5/sample/abortMultipartUpload.php index 588d7f2..0d8cf88 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/abortMultipartUpload.php +++ b/vendor/qcloud/cos-sdk-v5/sample/abortMultipartUpload.php @@ -24,4 +24,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/appendObject.php b/vendor/qcloud/cos-sdk-v5/sample/appendObject.php index 5298066..88ac654 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/appendObject.php +++ b/vendor/qcloud/cos-sdk-v5/sample/appendObject.php @@ -34,4 +34,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/blindWatermark.php b/vendor/qcloud/cos-sdk-v5/sample/blindWatermark.php index 9aa70c4..e8252a3 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/blindWatermark.php +++ b/vendor/qcloud/cos-sdk-v5/sample/blindWatermark.php @@ -29,4 +29,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/catchException.php b/vendor/qcloud/cos-sdk-v5/sample/catchException.php index c6dd180..0c12f54 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/catchException.php +++ b/vendor/qcloud/cos-sdk-v5/sample/catchException.php @@ -27,4 +27,3 @@ try { $request = $e->getRequest(); // 获取完整的请求 $response = $e->getResponse(); // 获取完整的响应 } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/ciTransformation.php b/vendor/qcloud/cos-sdk-v5/sample/ciTransformation.php index f705017..9dbab31 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/ciTransformation.php +++ b/vendor/qcloud/cos-sdk-v5/sample/ciTransformation.php @@ -36,4 +36,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/completeMultipartUpload.php b/vendor/qcloud/cos-sdk-v5/sample/completeMultipartUpload.php index 9b2b624..5950368 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/completeMultipartUpload.php +++ b/vendor/qcloud/cos-sdk-v5/sample/completeMultipartUpload.php @@ -34,4 +34,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/copy.php b/vendor/qcloud/cos-sdk-v5/sample/copy.php index eba98cc..f400dc3 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/copy.php +++ b/vendor/qcloud/cos-sdk-v5/sample/copy.php @@ -29,4 +29,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/copyObject.php b/vendor/qcloud/cos-sdk-v5/sample/copyObject.php index 4375e8e..d58fc93 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/copyObject.php +++ b/vendor/qcloud/cos-sdk-v5/sample/copyObject.php @@ -16,7 +16,7 @@ try { $result = $cosClient->copyObject(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Key' => 'exampleobject', - 'CopySource' => 'examplebucket2-125000000.cos.ap-guangzhou.myqcloud.com/exampleobject', + 'CopySource' => urlencode('examplebucket2-125000000.cos.ap-guangzhou.myqcloud.com/exampleobject'), //请注意这里需要urlencode,防止因特殊字符产生的400或404错误 'MetadataDirective' => 'Replaced', )); // 请求成功 @@ -25,4 +25,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/createBucket.php b/vendor/qcloud/cos-sdk-v5/sample/createBucket.php index 511dbc3..a2ed0d2 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/createBucket.php +++ b/vendor/qcloud/cos-sdk-v5/sample/createBucket.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/createDocProcessJobs.php b/vendor/qcloud/cos-sdk-v5/sample/createDocProcessJobs.php index 0eae43c..ca8e654 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/createDocProcessJobs.php +++ b/vendor/qcloud/cos-sdk-v5/sample/createDocProcessJobs.php @@ -47,4 +47,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/createFolder.php b/vendor/qcloud/cos-sdk-v5/sample/createFolder.php index 2c9f4a6..1d3b26d 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/createFolder.php +++ b/vendor/qcloud/cos-sdk-v5/sample/createFolder.php @@ -24,4 +24,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/createMediaAnimationJobs.php b/vendor/qcloud/cos-sdk-v5/sample/createMediaAnimationJobs.php new file mode 100644 index 0000000..937ca20 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/createMediaAnimationJobs.php @@ -0,0 +1,79 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + // 提交动图任务 https://cloud.tencent.com/document/product/436/54001 + // start --------------- 使用模版 ----------------- // + $result = $cosClient->createMediaAnimationJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'Animation', + 'QueueId' => 'p81e648af2aee49688xxxxxxxxxxxxxxxx', + 'Input' => array( + 'Object' => 'video01.mp4' + ), + 'Operation' => array( + 'TemplateId' => 't1de276cbdab16xxxxxxxxxxxxxxxxxxxxx', + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'Animation.gif', + ), + ), + )); + // 请求成功 + print_r($result); + // end --------------- 使用模版 ----------------- // + + // start --------------- 自定义参数 ----------------- // + $result = $cosClient->createMediaAnimationJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'Animation', + 'QueueId' => 'p81e648af2aee49688xxxxxxxxxxxxxxxx', + 'Input' => array( + 'Object' => 'video01.mp4' + ), + 'Operation' => array( + 'Animation' => array( + 'Container' => array( + 'Format' => '', + ), + 'Video' => array( + 'Codec' => '', + 'Width' => '', + 'Height' => '', + 'Fps' => '', + 'AnimateOnlyKeepKeyFrame' => '', + 'AnimateTimeIntervalOfFrame' => '', + 'AnimateFramesPerSecond' => '', + 'Quality' => '', + ), + 'TimeInterval' => array( + 'Start' => '', + 'Duration' => '', + ), + ), + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'Animation.gif', + ), + ), + )); + // 请求成功 + print_r($result); + // end --------------- 自定义参数 ----------------- // +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/createMediaConcatJobs.php b/vendor/qcloud/cos-sdk-v5/sample/createMediaConcatJobs.php index 3f967d4..c439338 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/createMediaConcatJobs.php +++ b/vendor/qcloud/cos-sdk-v5/sample/createMediaConcatJobs.php @@ -13,6 +13,7 @@ $cosClient = new Qcloud\Cos\Client( 'secretId' => $secretId , 'secretKey' => $secretKey))); try { + // 提交拼接任务 https://cloud.tencent.com/document/product/436/54013 // start --------------- 使用模版 ----------------- // $result = $cosClient->createMediaConcatJobs(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket @@ -93,4 +94,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/createMediaJobs.php b/vendor/qcloud/cos-sdk-v5/sample/createMediaJobs.php new file mode 100644 index 0000000..fa282d4 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/createMediaJobs.php @@ -0,0 +1,56 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + // 多任务接口 https://cloud.tencent.com/document/product/436/58335 + $result = $cosClient->CreateMediaJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'Transcode', // 可选,单一任务时,优先以Operation.Tag为准,当Operation无Tag参数时,该参数生效 + 'QueueId' => 'paaf4fce5521a40888a303xxxxxxxxxxxxxx', + 'CallBack' => '', + 'Input' => array( + 'Object' => 'example.mp4' + ), + 'Operation' => array( + array( + 'Tag' => 'Transcode', + 'TemplateId' => 't04e1ab86554984f1aa17cxxxxxxxxxxxxxx', + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'video01.mp4', + ), + 'WatermarkTemplateId' => array( + 't112d18d9b2a9b430e91dxxxxxxxxxxxxxx', + ), + ), + array( + 'Tag' => 'Transcode', + 'TemplateId' => 't04e1ab86554984f1aa17xxxxxxxxxxxxxx', + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'video02.mp4', + ), + 'WatermarkTemplateId' => array( + 't1bf713bb5c6a5496e859axxxxxxxxxxxxxx', + ), + ), + ), + )); + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/createMediaSmartCoverJobs.php b/vendor/qcloud/cos-sdk-v5/sample/createMediaSmartCoverJobs.php new file mode 100644 index 0000000..240ea4b --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/createMediaSmartCoverJobs.php @@ -0,0 +1,37 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + // 提交智能封面任务 https://cloud.tencent.com/document/product/436/54017 + $result = $cosClient->createMediaSmartCoverJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'SmartCover', + 'QueueId' => 'p81e648afxxxxxxxxxxxxxxxxx', + 'Input' => array( + 'Object' => 'video01.mp4' + ), + 'Operation' => array( + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'SmartCover-${Number}.jpg', + ), + ), + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/createMediaSnapshotJobs.php b/vendor/qcloud/cos-sdk-v5/sample/createMediaSnapshotJobs.php index b4c75a5..cab83d2 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/createMediaSnapshotJobs.php +++ b/vendor/qcloud/cos-sdk-v5/sample/createMediaSnapshotJobs.php @@ -13,6 +13,7 @@ $cosClient = new Qcloud\Cos\Client( 'secretId' => $secretId , 'secretKey' => $secretKey))); try { + // 提交截图任务 https://cloud.tencent.com/document/product/436/54005 // start --------------- 使用模版 ----------------- // $result = $cosClient->createMediaSnapshotJobs(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket @@ -68,4 +69,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/createMediaTranscodeJobs.php b/vendor/qcloud/cos-sdk-v5/sample/createMediaTranscodeJobs.php index 6f5d4f1..f688e99 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/createMediaTranscodeJobs.php +++ b/vendor/qcloud/cos-sdk-v5/sample/createMediaTranscodeJobs.php @@ -13,21 +13,51 @@ $cosClient = new Qcloud\Cos\Client( 'secretId' => $secretId , 'secretKey' => $secretKey))); try { + // 提交转码任务 https://cloud.tencent.com/document/product/436/54009 // start --------------- 使用模版 ----------------- // $result = $cosClient->createMediaTranscodeJobs(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Tag' => 'Transcode', - 'QueueId' => 'asdadadfafsdkjhfjghdfjg', - 'CallBack' => 'https://example.com/callback', + 'QueueId' => 'paaf4fce5521a40888a3034a5de80f6ca', 'Input' => array( - 'Object' => 'video01.mp4' + 'Object' => 'example.mp4' ), 'Operation' => array( - 'TemplateId' => 'asdfafiahfiushdfisdhfuis', + 'TemplateId' => 't04e1ab86554984f1aa17c062fbf6c007c', 'Output' => array( 'Region' => $region, 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket - 'Object' => 'video02.webm', + 'Object' => 'video02.mp4', + ), + 'Watermark' => array( + array( + 'Type' => 'Text', + 'LocMode' => 'Absolute', + 'Dx' => '64', + 'Dy' => '64', + 'Pos' => 'TopRight', + 'Text' => array( + 'Text' => '第一个水印', + 'FontSize' => '30', + 'FontType' => 'simfang.ttf', + 'FontColor' => '#99ff00', + 'Transparency' => '100', // 不透明度 + ), + ), + array( + 'Type' => 'Text', + 'LocMode' => 'Absolute', + 'Dx' => '64', + 'Dy' => '64', + 'Pos' => 'TopLeft', + 'Text' => array( + 'Text' => '第二个水印', + 'FontSize' => '30', + 'FontType' => 'simfang.ttf', + 'FontColor' => '#99ff00', + 'Transparency' => '100', // 不透明度 + ), + ), ), ), )); @@ -88,4 +118,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/createMediaVideoMontageJobs.php b/vendor/qcloud/cos-sdk-v5/sample/createMediaVideoMontageJobs.php new file mode 100644 index 0000000..4e62de2 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/createMediaVideoMontageJobs.php @@ -0,0 +1,81 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + // 提交精彩集锦任务 https://cloud.tencent.com/document/product/436/58337 + // start --------------- 使用模版 ----------------- // + $result = $cosClient->createMediaVideoMontageJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'VideoMontage', + 'QueueId' => 'p81e648af2aeexxxxxxxxxxxxxxxxxxx', + 'Input' => array( + 'Object' => 'video01.mp4' + ), + 'Operation' => array( + 'TemplateId' => 't1fcc3770199e04737axxxxxxxxxxxxxx', + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'VideoMontage.mp4', + ), + ), + )); + // 请求成功 + print_r($result); + // end --------------- 使用模版 ----------------- // + + // start --------------- 自定义参数 ----------------- // + $result = $cosClient->createMediaVideoMontageJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'VideoMontage', + 'QueueId' => 'p81e648af2aeexxxxxxxxxxxxxxxxxxx', + 'Input' => array( + 'Object' => 'video01.mp4' + ), + 'Operation' => array( + 'VideoMontage' => array( + 'Duration' => '', + 'Container' => array( + 'Format' => '', + ), + 'Video' => array( + 'Codec' => '', + 'Width' => '', + 'Height' => '', + 'Fps' => '', + 'Bitrate' => '', + 'Crf' => '', + ), + 'Audio' => array( + 'Codec' => '', + 'Samplerate' => '', + 'Bitrate' => '', + 'Channels' => '', + 'Remove' => '', + ), + ), + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'VideoMontage.mp4', + ), + ), + )); + // 请求成功 + print_r($result); + // end --------------- 自定义参数 ----------------- // +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/createMediaVideoProcessJobs.php b/vendor/qcloud/cos-sdk-v5/sample/createMediaVideoProcessJobs.php new file mode 100644 index 0000000..4822d8f --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/createMediaVideoProcessJobs.php @@ -0,0 +1,151 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + // 提交视频增强任务 https://cloud.tencent.com/document/product/436/60750 + // start --------------- 使用模版 ----------------- // + $result = $cosClient->createMediaVideoProcessJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'VideoProcess', + 'QueueId' => 'p81e648afxxxxxxxxxxxxxxxxx', + 'Input' => array( + 'Object' => 'video01.mp4' + ), + 'Operation' => array( + 'TemplateId' => 't13466f1ea41a14c0xxxxxxxxxxxxx', // 视频增强模板 ID + 'TranscodeTemplateId' => 't0b6a845f5e42847bd81xxxxxxxxxxxxx', // 转码模板 ID + 'WatermarkTemplateId' => 't185e2e24551b24259a0xxxxxxxxxxxxx', // 水印模板 ID + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'VideoProcess.flv', + ), + ), + )); + // 请求成功 + print_r($result); + // end --------------- 使用模版 ----------------- // + + // start --------------- 自定义参数 ----------------- // + $result = $cosClient->createMediaVideoProcessJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'VideoProcess', + 'QueueId' => 'p81e648afxxxxxxxxxxxxxxxxx', + 'Input' => array( + 'Object' => 'video01.mp4' + ), + 'Operation' => array( + 'VideoProcess' => array( + 'ColorEnhance' => array( + 'Enable' => '', + 'Contrast' => '', + 'Correction' => '', + 'Saturation' => '', + ), + 'MsSharpen' => array( + 'Enable' => '', + 'SharpenLevel' => '', + ), + ), + 'Transcode' => array( + 'Tag' => '', + 'Name' => '', + 'Container' => array( + 'Format' => '', + ), + 'Video' => array( + 'Codec' => '', + 'Width' => '', + 'Height' => '', + 'Fps' => '', + 'Remove' => '', + 'Profile' => '', + 'Bitrate' => '', + 'Crf' => '', + 'Gop' => '', + 'Preset' => '', + 'Bufsize' => '', + 'Maxrate' => '', + 'HlsTsTime' => '', + 'Pixfmt' => '', + 'LongShortMode' => '', + ), + 'TimeInterval' => array( + 'Start' => '', + 'Duration' => '', + ), + 'Audio' => array( + 'Codec' => '', + 'Samplerate' => '', + 'Bitrate' => '', + 'Channels' => '', + 'Remove' => '', + 'KeepTwoTracks' => '', + 'SwitchTrack' => '', + 'SampleFormat' => '', + ), + 'TransConfig' => array( + 'AdjDarMethod' => '', + 'IsCheckReso' => '', + 'ResoAdjMethod' => '', + 'IsCheckVideoBitrate' => '', + 'VideoBitrateAdjMethod' => '', + 'IsCheckAudioBitrate' => '', + 'AudioBitrateAdjMethod' => '', + 'DeleteMetadata' => '', + 'IsHdr2Sdr' => '', + 'HlsEncrypt' => array( + 'IsHlsEncrypt' => '', + 'UriKey' => '', + ), + ), + ), + 'Watermark' => array( + 'Type' => '', + 'Pos' => '', + 'LocMode' => '', + 'Dx' => '', + 'Dy' => '', + 'StartTime' => '', + 'EndTime' => '', + 'Image' => array( + 'Url' => '', + 'Mode' => '', + 'Width' => '', + 'Height' => '', + 'Transparency' => '', + 'Background' => '', + ), + 'Text' => array( + 'FontSize' => '', + 'FontType' => '', + 'FontColor' => '', + 'Transparency' => '', + 'Text' => '', + ), + ), + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'VideoProcess.flv', + ), + ), + )); + // 请求成功 + print_r($result); + // end --------------- 自定义参数 ----------------- // +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/createMediaVoiceSeparateJobs.php b/vendor/qcloud/cos-sdk-v5/sample/createMediaVoiceSeparateJobs.php new file mode 100644 index 0000000..a4bc42a --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/createMediaVoiceSeparateJobs.php @@ -0,0 +1,73 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + // 提交人声分离任务 https://cloud.tencent.com/document/product/436/58341 + // start --------------- 使用模版 ----------------- // + $result = $cosClient->createMediaVoiceSeparateJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'VoiceSeparate', + 'QueueId' => '', + 'CallBack' => '', + 'Input' => array( + 'Object' => 'test.mp3' + ), + 'Operation' => array( + 'TemplateId' => '', + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'VoiceSeparate01.mp3', + 'AuObject' => 'VoiceSeparate02.mp3', + ), + ), + )); + // 请求成功 + print_r($result); + // end --------------- 使用模版 ----------------- // + + // start --------------- 自定义参数 ----------------- // + $result = $cosClient->createMediaVoiceSeparateJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'VoiceSeparate', + 'QueueId' => '', + 'CallBack' => '', + 'Input' => array( + 'Object' => 'test.mp3' + ), + 'Operation' => array( + 'Output' => array( + 'Region' => $region, + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Object' => 'VoiceSeparate01.mp3', + 'AuObject' => 'VoiceSeparate02.mp3', + ), + 'VoiceSeparate' => array( + 'AudioMode' => 'AudioAndBackground', + 'AudioConfig' => array( + 'Codec' => 'mp3', + 'Samplerate' => '11025', + 'Bitrate' => '256', + 'Channels' => '2', + ), + ), + ), + )); + // 请求成功 + print_r($result); + // end --------------- 自定义参数 ----------------- // +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/createMultipartUpload.php b/vendor/qcloud/cos-sdk-v5/sample/createMultipartUpload.php index 91851c8..d81756f 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/createMultipartUpload.php +++ b/vendor/qcloud/cos-sdk-v5/sample/createMultipartUpload.php @@ -36,4 +36,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/deleteBucket.php b/vendor/qcloud/cos-sdk-v5/sample/deleteBucket.php index d929a14..700cb87 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/deleteBucket.php +++ b/vendor/qcloud/cos-sdk-v5/sample/deleteBucket.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/deleteBucketCors.php b/vendor/qcloud/cos-sdk-v5/sample/deleteBucketCors.php index f584fd2..c4ebd87 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/deleteBucketCors.php +++ b/vendor/qcloud/cos-sdk-v5/sample/deleteBucketCors.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/deleteBucketGuetzli.php b/vendor/qcloud/cos-sdk-v5/sample/deleteBucketGuetzli.php index fbb4147..5c00244 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/deleteBucketGuetzli.php +++ b/vendor/qcloud/cos-sdk-v5/sample/deleteBucketGuetzli.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/deleteBucketImageStyle.php b/vendor/qcloud/cos-sdk-v5/sample/deleteBucketImageStyle.php index 411b892..bc403a0 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/deleteBucketImageStyle.php +++ b/vendor/qcloud/cos-sdk-v5/sample/deleteBucketImageStyle.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/deleteBucketLifecycle.php b/vendor/qcloud/cos-sdk-v5/sample/deleteBucketLifecycle.php index bdf5439..69985d7 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/deleteBucketLifecycle.php +++ b/vendor/qcloud/cos-sdk-v5/sample/deleteBucketLifecycle.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/deleteBucketTagging.php b/vendor/qcloud/cos-sdk-v5/sample/deleteBucketTagging.php index cc437b8..ce6ac23 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/deleteBucketTagging.php +++ b/vendor/qcloud/cos-sdk-v5/sample/deleteBucketTagging.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/deleteBuckets.php b/vendor/qcloud/cos-sdk-v5/sample/deleteBuckets.php index ad7826d..d7f1ba1 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/deleteBuckets.php +++ b/vendor/qcloud/cos-sdk-v5/sample/deleteBuckets.php @@ -49,4 +49,4 @@ try { } catch (\Exception $e) { // 请求失败 echo($e); -} \ No newline at end of file +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/deleteObject.php b/vendor/qcloud/cos-sdk-v5/sample/deleteObject.php index e1db6f0..133667c 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/deleteObject.php +++ b/vendor/qcloud/cos-sdk-v5/sample/deleteObject.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/deleteObjectTagging.php b/vendor/qcloud/cos-sdk-v5/sample/deleteObjectTagging.php index a650665..2d1ad16 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/deleteObjectTagging.php +++ b/vendor/qcloud/cos-sdk-v5/sample/deleteObjectTagging.php @@ -22,4 +22,4 @@ try { } catch (\Exception $e) { // 请求失败 echo($e); -} \ No newline at end of file +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/describeMediaJob.php b/vendor/qcloud/cos-sdk-v5/sample/describeMediaJob.php new file mode 100644 index 0000000..4d6d25b --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/describeMediaJob.php @@ -0,0 +1,26 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + // 查询指定的任务 + $result = $cosClient->describeMediaJob(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => '', // jobId + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/describeMediaJobs.php b/vendor/qcloud/cos-sdk-v5/sample/describeMediaJobs.php new file mode 100644 index 0000000..2e5197f --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/describeMediaJobs.php @@ -0,0 +1,31 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + /* + 拉取符合条件的任务, 支持 + Transcode、Snapshot、Animation、Concat、SmartCover、VideoProcess、VideoMontage、VoiceSeparate、SDRtoHDR、 + DigitalWatermark、ExtractDigitalWatermark、SuperResolution、VideoTag、PicProcess、Segment + */ + $result = $cosClient->describeMediaJobs(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Tag' => 'Transcode', // 任务 的Tag + 'QueueId' => 'paaf4fce5521a40888a3034a5dxxxxxxx', // queueId + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/detectAudio.php b/vendor/qcloud/cos-sdk-v5/sample/detectAudio.php index 4555231..5cba84f 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/detectAudio.php +++ b/vendor/qcloud/cos-sdk-v5/sample/detectAudio.php @@ -8,7 +8,7 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'schema' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId , 'secretKey' => $secretKey))); @@ -18,13 +18,14 @@ try { 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Input' => array( 'Object' => 'sound01.mp3', +// 'DataId' => '', // 可选 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 ), - 'Conf' => array( - 'DetectType' => 'Porn,Terrorism,Politics,Ads', -// 'Callback' => 'https://example.com/callback', -// 'CallbackVersion' => '', -// 'BizType' => '', - ), +// 'Conf' => array( +// 'BizType' => '', // 可选 定制化策略 +// 'DetectType' => 'Porn,Terrorism,Politics,Ads', // 可选 若不传此参数,BizType为空时走默认策略,BizType不为空走定制化策略 +// 'Callback' => '', // 可选 回调URL +// 'CallbackVersion' => '', // 可选 回调内容的结构,有效值:Simple(回调内容包含基本信息)、Detail(回调内容包含详细信息)。默认为 Simple。 +// ), // 可选 走默认策略及默认审核场景。 )); // 请求成功 print_r($result); @@ -35,13 +36,14 @@ try { 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Input' => array( 'Url' => 'https://example.com/test.mp3', +// 'DataId' => '', // 可选 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 ), - 'Conf' => array( - 'DetectType' => 'Porn,Terrorism,Politics,Ads', -// 'Callback' => 'https://example.com/callback', -// 'CallbackVersion' => '', -// 'BizType' => '', - ), +// 'Conf' => array( +// 'BizType' => '', // 可选 定制化策略 +// 'DetectType' => 'Porn,Terrorism,Politics,Ads', // 可选 若不传此参数,BizType为空时走默认策略,BizType不为空走定制化策略 +// 'Callback' => '', // 可选 回调URL +// 'CallbackVersion' => '', // 可选 回调内容的结构,有效值:Simple(回调内容包含基本信息)、Detail(回调内容包含详细信息)。默认为 Simple。 +// ), // 可选 走默认策略及默认审核场景。 )); // 请求成功 print_r($result); @@ -50,4 +52,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/detectDocument.php b/vendor/qcloud/cos-sdk-v5/sample/detectDocument.php index 2581c4c..5d84675 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/detectDocument.php +++ b/vendor/qcloud/cos-sdk-v5/sample/detectDocument.php @@ -8,7 +8,7 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'schema' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId , 'secretKey' => $secretKey))); @@ -19,12 +19,13 @@ try { 'Input' => array( 'Object' => 'test01.docx', // 'Type' => 'docx', +// 'DataId' => '', // 选填 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 ), - 'Conf' => array( - 'DetectType' => 'Porn,Terrorism,Politics,Ads', -// 'Callback' => 'https://example.com/callback/', +// 'Conf' => array( // 'BizType' => '', - ), +// 'DetectType' => 'Porn,Terrorism,Politics,Ads', // 选填,在只有BizType时走设定策略的审核场景 +// 'Callback' => '', // 回调URL 选填 +// ), // 选填 在DetectType/BizType都不传的情况下,走默认策略及默认审核场景。 )); // 文档URL审核 @@ -33,12 +34,13 @@ try { 'Input' => array( 'Url' => 'https://example.com/test01.docx', // 'Type' => 'docx', +// 'DataId' => '', // 选填 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 ), - 'Conf' => array( - 'DetectType' => 'Porn,Terrorism,Politics,Ads', -// 'Callback' => 'https://example.com/callback/', +// 'Conf' => array( // 'BizType' => '', - ), +// 'DetectType' => 'Porn,Terrorism,Politics,Ads', // 选填,在只有BizType时走设定策略的审核场景 +// 'Callback' => '', // 回调URL 选填 +// ), // 选填 在DetectType/BizType都不传的情况下,走默认策略及默认审核场景。 )); // 请求成功 print_r($result); @@ -46,4 +48,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/detectImage.php b/vendor/qcloud/cos-sdk-v5/sample/detectImage.php index 68ad951..58a21e9 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/detectImage.php +++ b/vendor/qcloud/cos-sdk-v5/sample/detectImage.php @@ -8,7 +8,7 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'schema' => 'https', // 审核时必须为https 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); @@ -16,12 +16,12 @@ try { //存储桶图片审核 $result = $cosClient->detectImage(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket - 'Key' => 'exampleobject', - 'DetectType' => 'porn,politics', //可选四种参数:porn,politics,terrorist,ads,可使用多种规则,注意规则间不要加空格 + 'Key' => 'test.png', // 桶文件 'ci-process' => 'sensitive-content-recognition', -// 'Interval' => 5, // 审核gif时使用 截帧的间隔 -// 'MaxFrames' => 5, // 针对 GIF 动图审核的最大截帧数量,需大于0。 -// 'BizType' => '', // 审核策略 +// 'BizType' => '', // 可选 定制化策略,不传走默认策略 +// 'DetectType' => 'porn,ads', // 可选 不填走默认策略 或 定制化策略,四种参数:porn,ads等,可使用多种规则,注意规则间不要加空格 +// 'Interval' => 5, // 可选 审核 GIF 时使用 截帧的间隔 +// 'MaxFrames' => 5, // 可选 针对 GIF 动图审核的最大截帧数量,需大于0。 )); // 请求成功 print_r($result); @@ -32,12 +32,12 @@ try { $result = $cosClient->detectImage(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Key' => '/', // 链接图片资源路径写 / 即可 - 'DetectType' => 'porn,ads',//可选四种参数:porn,politics,terrorist,ads,可使用多种规则,注意规则间不要加空格 - 'DetectUrl' => $imgUrl, 'ci-process' => 'sensitive-content-recognition', -// 'Interval' => 5, // 审核gif时使用 截帧的间隔 -// 'MaxFrames' => 5, // 针对 GIF 动图审核的最大截帧数量,需大于0。 -// 'BizType' => '', // 审核策略 + 'DetectUrl' => $imgUrl, +// 'BizType' => '', // 可选 定制化策略,不传走默认策略 +// 'DetectType' => 'porn,ads', // 可选 不填走默认策略 或 定制化策略,四种参数:porn,ads等,可使用多种规则,注意规则间不要加空格 +// 'Interval' => 5, // 可选 审核 GIF 时使用 截帧的间隔 +// 'MaxFrames' => 5, // 可选 针对 GIF 动图审核的最大截帧数量,需大于0。 )); // 请求成功 print_r($result); @@ -45,4 +45,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/detectImages.php b/vendor/qcloud/cos-sdk-v5/sample/detectImages.php index e55fd29..b35024a 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/detectImages.php +++ b/vendor/qcloud/cos-sdk-v5/sample/detectImages.php @@ -8,32 +8,31 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'schema' => 'https', // 审核时必须为https 'credentials' => array( 'secretId' => $secretId, 'secretKey' => $secretKey))); try { - $imgUrl = 'http://example.com/test.php'; $result = $cosClient->detectImages(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Inputs' => array( array( - 'Object' => 'test01.png', -// 'Interval' => '', -// 'MaxFrames' => '', -// 'DataId' => 'aaa', + 'Object' => 'test01.png', // 桶文件 +// 'Interval' => '', // 可选 审核 GIF 时使用 截帧的间隔 +// 'MaxFrames' => '', // 可选 针对 GIF 动图审核的最大截帧数量,需大于0。 +// 'DataId' => 'aaa', // 可选 图片标识,该字段在结果中返回原始内容,长度限制为512字节 ), array( - 'Url' => $imgUrl, -// 'Interval' => '', -// 'MaxFrames' => '', -// 'DataId' => 'bbb', + 'Url' => 'http://example.com/test.png', // 图片URL +// 'Interval' => 5, // 可选 审核 GIF 时使用 截帧的间隔 +// 'MaxFrames' => 5, // 可选 针对 GIF 动图审核的最大截帧数量,需大于0。 +// 'DataId' => 'bbb', // 可选 图片标识,该字段在结果中返回原始内容,长度限制为512字节 ), ), - 'Conf' => array( - 'DetectType' => 'Porn,Terrorism,Politics,Ads', -// 'BizType' => '' - ) +// 'Conf' => array( +// 'BizType' => '' // 可选 定制化策略,不传走默认策略 +// 'DetectType' => 'Porn,Ads', // 可选 不填走默认策略 或 定制化策略,四种参数:Porn,Ads等,可使用多种规则,注意规则间不要加空格 +// ) // 可选 在DetectType/BizType都不传的情况下,走默认策略及默认审核场景。 )); // 请求成功 print_r($result); @@ -41,4 +40,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/detectLable.php b/vendor/qcloud/cos-sdk-v5/sample/detectLable.php index 12eafc4..e0aa056 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/detectLable.php +++ b/vendor/qcloud/cos-sdk-v5/sample/detectLable.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/detectText.php b/vendor/qcloud/cos-sdk-v5/sample/detectText.php index 7e463bd..d8f6f12 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/detectText.php +++ b/vendor/qcloud/cos-sdk-v5/sample/detectText.php @@ -8,7 +8,7 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'schema' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId , 'secretKey' => $secretKey))); @@ -18,12 +18,13 @@ try { $result = $cosClient->detectText(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Input' => array( - 'Content' => base64_encode($content) // 文本需base64_encode - ), - 'Conf' => array( - 'DetectType' => 'Porn,Terrorism,Politics,Ads', //Porn,Terrorism,Politics,Ads,Illegal,Abuse类型 - 'BizType' => '', + 'Content' => base64_encode($content), // 文本需base64_encode +// 'DataId' => '', // 选填 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 ), +// 'Conf' => array( +// 'DetectType' => 'Porn,Terrorism,Politics,Ads,Illegal,Abuse', // 选填,在只有BizType时走设定策略的审核场景 +// 'BizType' => '', +// ), // 非必选,在DetectType/BizType都不传的情况下,走默认策略及默认审核场景。 )); // 请求成功 print_r($result); @@ -34,19 +35,37 @@ try { 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Input' => array( 'Object' => 'test01.txt' +// 'DataId' => '', // 选填 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 ), - 'Conf' => array( - 'DetectType' => 'Porn,Terrorism,Politics,Ads', -// 'Callback' => 'https://example.callback.com/test/', // 回调URL -// 'CallbackVersion' => 'Detail', +// 'Conf' => array( // 'BizType' => '', - ), +// 'DetectType' => 'Porn,Terrorism,Politics,Ads', // 选填,在只有BizType时走设定策略的审核场景 +// 'Callback' => '', // 回调URL 选填 +// 'CallbackVersion' => 'Detail', // 选填 Detail、Simple 默认为 Simple +// ), // 非必选,在DetectType/BizType都不传的情况下,走默认策略及默认审核场景。 )); // 请求成功 print_r($result); // end --------------- 存储桶文本文件审核 ----------------- // + + // start --------------- 文本文件Url审核 ----------------- // + $result = $cosClient->detectText(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Input' => array( + 'Url' => 'http://example.com/test.txt' +// 'DataId' => '', // 选填 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 + ), +// 'Conf' => array( +// 'BizType' => '', +// 'DetectType' => 'Porn,Terrorism,Politics,Ads', // 选填,在只有BizType时走设定策略的审核场景 +// 'Callback' => '', // 选填 回调URL +// 'CallbackVersion' => 'Detail', // 选填 Detail、Simple 默认为 Simple +// ), // 非必选,在DetectType/BizType都不传的情况下,走默认策略及默认审核场景。 + )); + // 请求成功 + print_r($result); + // end --------------- 文本文件Url审核 ----------------- // } catch (\Exception $e) { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/detectVideo.php b/vendor/qcloud/cos-sdk-v5/sample/detectVideo.php index fa0b5dd..5810fc6 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/detectVideo.php +++ b/vendor/qcloud/cos-sdk-v5/sample/detectVideo.php @@ -8,7 +8,7 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'schema' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId , 'secretKey' => $secretKey))); @@ -18,17 +18,18 @@ try { 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Input' => array( 'Object' => 'test.mp4', // 存储桶文件 +// 'DataId' => '', // 可选 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 ), 'Conf' => array( - 'DetectType' => 'Porn,Terrorism,Politics,Ads', -// 'Callback' => 'https://example.com/callback', -// 'BizType' => '', -// 'DetectContent' => 1, -// 'CallbackVersion' => 'Detail', +// 'BizType' => '', // 可选 定制化策略 +// 'DetectType' => 'Porn,Terrorism,Politics,Ads', // 可选 不传走默认策略或定制化策略 +// 'Callback' => '', // 可选 回调URL +// 'DetectContent' => 1, // 可选 用于指定是否审核视频声音,当值为0时:表示只审核视频画面截图;值为1时:表示同时审核视频画面截图和视频声音。默认值为0。 +// 'CallbackVersion' => 'Detail', // 可选 回调内容的结构,有效值:Simple(回调内容包含基本信息)、Detail(回调内容包含详细信息)。默认为 Simple。 'Snapshot' => array( -// 'Mode' => 'Average', -// 'TimeInterval' => 50, - 'Count' => '3', +// 'Mode' => 'Average', // 可选 截帧模式,默认值为 Interval。Interval 表示间隔模式;Average 表示平均模式;Fps 表示固定帧率模式。 +// 'TimeInterval' => 50, // 可选 视频截帧频率 + 'Count' => '3', // 视频截帧数量 ), ), )); @@ -39,17 +40,18 @@ try { 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket 'Input' => array( 'Url' => $videoUrl, // 视频url +// 'DataId' => '', // 可选 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 ), 'Conf' => array( - 'DetectType' => 'Porn,Terrorism,Politics,Ads', -// 'Callback' => 'https://example.com/callback', -// 'BizType' => '', -// 'DetectContent' => 1, -// 'CallbackVersion' => 'Detail', +// 'BizType' => '', // 可选 定制化策略 +// 'DetectType' => 'Porn,Terrorism,Politics,Ads', // 可选 不传走默认策略或定制化策略 +// 'Callback' => '', // 可选 回调URL +// 'DetectContent' => 1, // 可选 用于指定是否审核视频声音,当值为0时:表示只审核视频画面截图;值为1时:表示同时审核视频画面截图和视频声音。默认值为0。 +// 'CallbackVersion' => 'Detail', // 可选 回调内容的结构,有效值:Simple(回调内容包含基本信息)、Detail(回调内容包含详细信息)。默认为 Simple。 'Snapshot' => array( -// 'Mode' => 'Average', -// 'TimeInterval' => 50, - 'Count' => '3', +// 'Mode' => 'Average', // 可选 截帧模式,默认值为 Interval。Interval 表示间隔模式;Average 表示平均模式;Fps 表示固定帧率模式。 +// 'TimeInterval' => 50, // 可选 视频截帧频率 + 'Count' => '3', // 视频截帧数量 ), ), )); @@ -60,4 +62,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/detectVirus.php b/vendor/qcloud/cos-sdk-v5/sample/detectVirus.php new file mode 100644 index 0000000..5cc3747 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/detectVirus.php @@ -0,0 +1,44 @@ + $region, + 'schema' => 'https', // 审核时必须为https + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + // 存储桶文件查毒 + $result = $cosClient->detectVirus(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Input' => array( + 'Object' => 'test01.exe' + ), + 'Conf' => array( + 'DetectType' => 'Virus', +// 'Callback' => '', + ), + )); + + // URL查毒 + $result = $cosClient->detectVirus(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Input' => array( + 'Url' => 'https://example.com/test01.exe', + ), + 'Conf' => array( + 'DetectType' => 'Virus', +// 'Callback' => '', + ), + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/detectWebpage.php b/vendor/qcloud/cos-sdk-v5/sample/detectWebpage.php new file mode 100644 index 0000000..cf38dbd --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/detectWebpage.php @@ -0,0 +1,33 @@ + $region, + 'schema' => 'https', // 审核时必须为https + 'credentials' => array( + 'secretId' => $secretId, + 'secretKey' => $secretKey))); +try { + $result = $cosClient->detectWebpage(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Input' => array( + 'Url' => 'https://www.xxx.com/', +// 'DataId' => '' // 可选 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 + ), +// 'Conf' => array( +//// 'DetectType' => 'Porn,Ads', // 可选 不填走默认策略 +//// 'ReturnHighlightHtml' => 'true', // 可选 'true' 或者 'false' +//// 'Callback' => '', // 可选 +// ), // 可选 在DetectType/BizType都不传的情况下,走默认策略及默认审核场景。 + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/doesBucketExist.php b/vendor/qcloud/cos-sdk-v5/sample/doesBucketExist.php index 9bfa427..9c5641d 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/doesBucketExist.php +++ b/vendor/qcloud/cos-sdk-v5/sample/doesBucketExist.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/doesObjectExist.php b/vendor/qcloud/cos-sdk-v5/sample/doesObjectExist.php index 668d9bd..ff297c9 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/doesObjectExist.php +++ b/vendor/qcloud/cos-sdk-v5/sample/doesObjectExist.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/download.php b/vendor/qcloud/cos-sdk-v5/sample/download.php index 78f1f46..f266e92 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/download.php +++ b/vendor/qcloud/cos-sdk-v5/sample/download.php @@ -36,4 +36,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getBlindWatermark.php b/vendor/qcloud/cos-sdk-v5/sample/getBlindWatermark.php index 7dd5d8b..d300fe5 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getBlindWatermark.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getBlindWatermark.php @@ -33,4 +33,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getBucketAccelerate.php b/vendor/qcloud/cos-sdk-v5/sample/getBucketAccelerate.php index 584a9fe..bf4e1bc 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getBucketAccelerate.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getBucketAccelerate.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getBucketAcl.php b/vendor/qcloud/cos-sdk-v5/sample/getBucketAcl.php index faded17..b37d93a 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getBucketAcl.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getBucketAcl.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getBucketCors.php b/vendor/qcloud/cos-sdk-v5/sample/getBucketCors.php index 273b9c0..405b63b 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getBucketCors.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getBucketCors.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getBucketGuetzli.php b/vendor/qcloud/cos-sdk-v5/sample/getBucketGuetzli.php index a4e218e..145f331 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getBucketGuetzli.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getBucketGuetzli.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getBucketImageStyle.php b/vendor/qcloud/cos-sdk-v5/sample/getBucketImageStyle.php index 52a3c49..962c797 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getBucketImageStyle.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getBucketImageStyle.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getBucketInventory.php b/vendor/qcloud/cos-sdk-v5/sample/getBucketInventory.php index 001f402..87e78c5 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getBucketInventory.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getBucketInventory.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getBucketLifecycle.php b/vendor/qcloud/cos-sdk-v5/sample/getBucketLifecycle.php index c077e43..0552591 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getBucketLifecycle.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getBucketLifecycle.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getBucketLogging.php b/vendor/qcloud/cos-sdk-v5/sample/getBucketLogging.php index 09da0cf..9b5b713 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getBucketLogging.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getBucketLogging.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getBucketTagging.php b/vendor/qcloud/cos-sdk-v5/sample/getBucketTagging.php index da422db..e89a40a 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getBucketTagging.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getBucketTagging.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessJob.php b/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessJob.php index 1213b68..fbfaf01 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessJob.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessJob.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessJobs.php b/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessJobs.php index fc9c9df..c3c53d8 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessJobs.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessJobs.php @@ -30,4 +30,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessQueues.php b/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessQueues.php index 7a72dbe..4dcb405 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessQueues.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getDescribeDocProcessQueues.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDescribeMediaBuckets.php b/vendor/qcloud/cos-sdk-v5/sample/getDescribeMediaBuckets.php new file mode 100644 index 0000000..b83d725 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/getDescribeMediaBuckets.php @@ -0,0 +1,29 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); + +try { + $result = $cosClient->describeMediaBuckets(array( + 'Regions' => '', // 可选 地域信息,例如 ap-shanghai、ap-beijing,若查询多个地域以“,”分隔字符串 + 'BucketNames' => '', // 可选 存储桶名称,以“,”分隔,支持多个存储桶,精确搜索 + 'BucketName' => '', // 可选 存储桶名称前缀,前缀搜索 + 'PageNumber' => 1, // 可选 第几页 + 'PageSize' => 20, // 可选 每页个数 + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDescribeMediaQueues.php b/vendor/qcloud/cos-sdk-v5/sample/getDescribeMediaQueues.php new file mode 100644 index 0000000..f158406 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/getDescribeMediaQueues.php @@ -0,0 +1,29 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); + +try { + $result = $cosClient->describeMediaQueues(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'QueueIds' => '', // 可选 队列 ID,以“,”符号分割字符串 + 'State' => 'Paused', // 可选 1. Active 表示队列内的作业会被媒体转码服务调度转码执行 2. Paused 表示队列暂停,作业不再会被媒体转码调度转码执行,队列内的所有作业状态维持在暂停状态,已经处于转码中的任务将继续转码,不受影响 + 'PageNumber' => '1', // 可选 第几页 + 'PageSize' => '2', // 可选 每页个数 + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDescribeMediaVoiceSeparateJob.php b/vendor/qcloud/cos-sdk-v5/sample/getDescribeMediaVoiceSeparateJob.php new file mode 100644 index 0000000..3b5fc7e --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/getDescribeMediaVoiceSeparateJob.php @@ -0,0 +1,25 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + $result = $cosClient->describeMediaVoiceSeparateJob(array( + 'Bucket' => 'examplebucket-1250000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => 'examplejobid', // JobId + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDetectAudioResult.php b/vendor/qcloud/cos-sdk-v5/sample/getDetectAudioResult.php index eb11cd8..5c418c9 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getDetectAudioResult.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getDetectAudioResult.php @@ -8,14 +8,14 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'schema' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId , 'secretKey' => $secretKey))); try { $result = $cosClient->getDetectAudioResult(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket - 'Key' => 'exampleobject', // jobId + 'Key' => '', // jobId )); // 请求成功 print_r($result); @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDetectDocumentResult.php b/vendor/qcloud/cos-sdk-v5/sample/getDetectDocumentResult.php index 0f9c1b5..6d72ada 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getDetectDocumentResult.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getDetectDocumentResult.php @@ -8,14 +8,14 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'schema' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId , 'secretKey' => $secretKey))); try { $result = $cosClient->getDetectDocumentResult(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket - 'Key' => 'exampleobject', // jobId + 'Key' => '', // jobId )); // 请求成功 print_r($result); @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDetectImageResult.php b/vendor/qcloud/cos-sdk-v5/sample/getDetectImageResult.php new file mode 100644 index 0000000..00036ab --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/getDetectImageResult.php @@ -0,0 +1,25 @@ + $region, + 'schema' => 'https', // 审核时必须为https + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + $result = $cosClient->getDetectImageResult(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => 'exampleobject', // jobId + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDetectTextResult.php b/vendor/qcloud/cos-sdk-v5/sample/getDetectTextResult.php index 1e9ec9d..c98fae6 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getDetectTextResult.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getDetectTextResult.php @@ -8,14 +8,14 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'schema' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId , 'secretKey' => $secretKey))); try { $result = $cosClient->getDetectTextResult(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket - 'Key' => 'exampleobject', // jobId + 'Key' => '', // jobId )); // 请求成功 print_r($result); @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDetectVideoResult.php b/vendor/qcloud/cos-sdk-v5/sample/getDetectVideoResult.php index d8fe635..a4c4d78 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getDetectVideoResult.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getDetectVideoResult.php @@ -8,14 +8,14 @@ $region = "ap-beijing"; //替换为用户的 region,已创建桶归属的regio $cosClient = new Qcloud\Cos\Client( array( 'region' => $region, - 'schema' => 'https', //协议头部,默认为http + 'schema' => 'https', // 审核时必须为https 'credentials'=> array( 'secretId' => $secretId , 'secretKey' => $secretKey))); try { $result = $cosClient->getDetectVideoResult(array( 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket - 'Key' => 'exampleobject', // jobId + 'Key' => '', // jobId )); // 请求成功 print_r($result); @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDetectVirusResult.php b/vendor/qcloud/cos-sdk-v5/sample/getDetectVirusResult.php new file mode 100644 index 0000000..5c10a97 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/getDetectVirusResult.php @@ -0,0 +1,25 @@ + $region, + 'schema' => 'https', // 审核时必须为https + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + $result = $cosClient->getDetectVirusResult(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => '', // jobId + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/getDetectWebpageResult.php b/vendor/qcloud/cos-sdk-v5/sample/getDetectWebpageResult.php new file mode 100644 index 0000000..cd79585 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/getDetectWebpageResult.php @@ -0,0 +1,25 @@ + $region, + 'schema' => 'https', // 审核时必须为https + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); +try { + $result = $cosClient->getDetectWebpageResult(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => '', // jobId + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/getMediaInfo.php b/vendor/qcloud/cos-sdk-v5/sample/getMediaInfo.php index b999c2e..28d328e 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getMediaInfo.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getMediaInfo.php @@ -26,4 +26,4 @@ try { } catch (\Exception $e) { // 请求失败 echo($e); -} \ No newline at end of file +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/getObject.php b/vendor/qcloud/cos-sdk-v5/sample/getObject.php index 4f1e20d..6e7afda 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getObject.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getObject.php @@ -33,4 +33,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getObjectSensitiveContentRecognition.php b/vendor/qcloud/cos-sdk-v5/sample/getObjectSensitiveContentRecognition.php index d2c3154..adde2bf 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getObjectSensitiveContentRecognition.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getObjectSensitiveContentRecognition.php @@ -50,4 +50,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getObjectTagging.php b/vendor/qcloud/cos-sdk-v5/sample/getObjectTagging.php index 72e3792..8bb6023 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getObjectTagging.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getObjectTagging.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getObjectUrl.php b/vendor/qcloud/cos-sdk-v5/sample/getObjectUrl.php index 88a75c2..823cbfa 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getObjectUrl.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getObjectUrl.php @@ -38,4 +38,3 @@ try { // 请求失败 print_r($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getObjectWithoutSign.php b/vendor/qcloud/cos-sdk-v5/sample/getObjectWithoutSign.php index 6044eb2..bc331f5 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getObjectWithoutSign.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getObjectWithoutSign.php @@ -24,4 +24,3 @@ try { // 请求失败 print_r($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getPresignedUrl.php b/vendor/qcloud/cos-sdk-v5/sample/getPresignedUrl.php index 7d068e7..147cf68 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getPresignedUrl.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getPresignedUrl.php @@ -20,7 +20,7 @@ try { 'Key'=>'exampleobject', 'Body'=>'', 'Params'=>array(), - 'Headers'=>array()), + 'Headers'=>array()), //若上传加入headers,content-md5写法为"content-md5" => base64_encode( md5( Body, true ) ) $expires='+30 minutes'); // 请求成功 echo($signedUrl); @@ -28,4 +28,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/getPrivateM3U8.php b/vendor/qcloud/cos-sdk-v5/sample/getPrivateM3U8.php new file mode 100644 index 0000000..1dc8e66 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/getPrivateM3U8.php @@ -0,0 +1,28 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); + +try { + $result = $cosClient->GetPrivateM3U8(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => 'xxx.m3u8', // 桶文件 + 'ci-process' => 'pm3u8', // 操作类型,固定使用 pm3u8 + 'expires' => '3600', // 私有 ts 资源 url 下载凭证的相对有效期,单位为秒,范围为[3600, 43200] + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/getSnapshot.php b/vendor/qcloud/cos-sdk-v5/sample/getSnapshot.php index 4e6965a..68d928f 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/getSnapshot.php +++ b/vendor/qcloud/cos-sdk-v5/sample/getSnapshot.php @@ -38,4 +38,4 @@ try { } catch (\Exception $e) { // 请求失败 echo($e); -} \ No newline at end of file +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/headBucket.php b/vendor/qcloud/cos-sdk-v5/sample/headBucket.php index 1e1c314..ff1fd48 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/headBucket.php +++ b/vendor/qcloud/cos-sdk-v5/sample/headBucket.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/headObject.php b/vendor/qcloud/cos-sdk-v5/sample/headObject.php index 6986395..e5e8e8b 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/headObject.php +++ b/vendor/qcloud/cos-sdk-v5/sample/headObject.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/imageAve.php b/vendor/qcloud/cos-sdk-v5/sample/imageAve.php index 59e317d..892bbcb 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/imageAve.php +++ b/vendor/qcloud/cos-sdk-v5/sample/imageAve.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/imageExif.php b/vendor/qcloud/cos-sdk-v5/sample/imageExif.php index 51d263c..a9973ce 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/imageExif.php +++ b/vendor/qcloud/cos-sdk-v5/sample/imageExif.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/imageInfo.php b/vendor/qcloud/cos-sdk-v5/sample/imageInfo.php index 934f31b..3166578 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/imageInfo.php +++ b/vendor/qcloud/cos-sdk-v5/sample/imageInfo.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/imageMogr.php b/vendor/qcloud/cos-sdk-v5/sample/imageMogr.php index f905b97..435c12e 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/imageMogr.php +++ b/vendor/qcloud/cos-sdk-v5/sample/imageMogr.php @@ -28,4 +28,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/imageProcess.php b/vendor/qcloud/cos-sdk-v5/sample/imageProcess.php index 3619440..0b70b7e 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/imageProcess.php +++ b/vendor/qcloud/cos-sdk-v5/sample/imageProcess.php @@ -29,4 +29,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/imageView.php b/vendor/qcloud/cos-sdk-v5/sample/imageView.php index dc25878..7a9873c 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/imageView.php +++ b/vendor/qcloud/cos-sdk-v5/sample/imageView.php @@ -30,4 +30,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/imageWatermark.php b/vendor/qcloud/cos-sdk-v5/sample/imageWatermark.php index 03ac1a4..14a0b23 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/imageWatermark.php +++ b/vendor/qcloud/cos-sdk-v5/sample/imageWatermark.php @@ -31,4 +31,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/listBuckets.php b/vendor/qcloud/cos-sdk-v5/sample/listBuckets.php index 6f72251..3ed6de2 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/listBuckets.php +++ b/vendor/qcloud/cos-sdk-v5/sample/listBuckets.php @@ -21,4 +21,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/listMultipartUploads.php b/vendor/qcloud/cos-sdk-v5/sample/listMultipartUploads.php index 6cc30bc..dc1050e 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/listMultipartUploads.php +++ b/vendor/qcloud/cos-sdk-v5/sample/listMultipartUploads.php @@ -28,4 +28,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/listObjects.php b/vendor/qcloud/cos-sdk-v5/sample/listObjects.php index 2a4aa5c..562a98b 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/listObjects.php +++ b/vendor/qcloud/cos-sdk-v5/sample/listObjects.php @@ -27,4 +27,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/listParts.php b/vendor/qcloud/cos-sdk-v5/sample/listParts.php index 72b57a9..d0c1053 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/listParts.php +++ b/vendor/qcloud/cos-sdk-v5/sample/listParts.php @@ -26,4 +26,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/picOperations.php b/vendor/qcloud/cos-sdk-v5/sample/picOperations.php index da216e1..5d419b6 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/picOperations.php +++ b/vendor/qcloud/cos-sdk-v5/sample/picOperations.php @@ -31,4 +31,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBlindWatermark.php b/vendor/qcloud/cos-sdk-v5/sample/putBlindWatermark.php index 6ccf015..872f9a9 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBlindWatermark.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBlindWatermark.php @@ -32,4 +32,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBucketAccelerate.php b/vendor/qcloud/cos-sdk-v5/sample/putBucketAccelerate.php index 7aa8323..791631a 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBucketAccelerate.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBucketAccelerate.php @@ -23,4 +23,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBucketAcl.php b/vendor/qcloud/cos-sdk-v5/sample/putBucketAcl.php index 1c588bf..716ac8b 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBucketAcl.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBucketAcl.php @@ -37,4 +37,3 @@ try { // 请求失败 echo "$e\n"; } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBucketCors.php b/vendor/qcloud/cos-sdk-v5/sample/putBucketCors.php index d2fff89..5ae60b5 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBucketCors.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBucketCors.php @@ -30,4 +30,3 @@ try { // 请求失败 echo "$e\n"; } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBucketGuetzli.php b/vendor/qcloud/cos-sdk-v5/sample/putBucketGuetzli.php index 33954f0..e7bcda4 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBucketGuetzli.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBucketGuetzli.php @@ -22,4 +22,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBucketImageStyle.php b/vendor/qcloud/cos-sdk-v5/sample/putBucketImageStyle.php index 6937dfb..4df401b 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBucketImageStyle.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBucketImageStyle.php @@ -24,4 +24,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBucketInventory.php b/vendor/qcloud/cos-sdk-v5/sample/putBucketInventory.php index 75df313..8e6f48d 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBucketInventory.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBucketInventory.php @@ -43,4 +43,3 @@ try { // 请求失败 echo "$e\n"; } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBucketLifecycle.php b/vendor/qcloud/cos-sdk-v5/sample/putBucketLifecycle.php index f19c652..8f3b963 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBucketLifecycle.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBucketLifecycle.php @@ -42,4 +42,3 @@ try { // 请求失败 echo "$e\n"; } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBucketLogging.php b/vendor/qcloud/cos-sdk-v5/sample/putBucketLogging.php index 0b18733..0695959 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBucketLogging.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBucketLogging.php @@ -26,4 +26,3 @@ try { // 请求失败 echo "$e\n"; } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBucketReferer.php b/vendor/qcloud/cos-sdk-v5/sample/putBucketReferer.php index 191b6fe..1de0687 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBucketReferer.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBucketReferer.php @@ -32,4 +32,4 @@ try { } catch (\Exception $e) { // 请求失败 echo($e); -} \ No newline at end of file +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/putBucketTagging.php b/vendor/qcloud/cos-sdk-v5/sample/putBucketTagging.php index 26e6064..bf27b1e 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putBucketTagging.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putBucketTagging.php @@ -30,4 +30,3 @@ try { // 请求失败 echo "$e\n"; } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putImageStyle.php b/vendor/qcloud/cos-sdk-v5/sample/putImageStyle.php index 18b5242..dfa021f 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putImageStyle.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putImageStyle.php @@ -31,4 +31,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putObject.php b/vendor/qcloud/cos-sdk-v5/sample/putObject.php index e42f1fd..56860c9 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putObject.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putObject.php @@ -46,4 +46,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/putObjectTagging.php b/vendor/qcloud/cos-sdk-v5/sample/putObjectTagging.php index 668a7c6..4fe22ed 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putObjectTagging.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putObjectTagging.php @@ -30,4 +30,4 @@ try { } catch (\Exception $e) { // 请求失败 echo "$e\n"; -} \ No newline at end of file +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/putQrcode.php b/vendor/qcloud/cos-sdk-v5/sample/putQrcode.php index 8df50c8..1951ada 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/putQrcode.php +++ b/vendor/qcloud/cos-sdk-v5/sample/putQrcode.php @@ -31,4 +31,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/qrcode.php b/vendor/qcloud/cos-sdk-v5/sample/qrcode.php index e71f40c..0f35466 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/qrcode.php +++ b/vendor/qcloud/cos-sdk-v5/sample/qrcode.php @@ -24,4 +24,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/qrcodeGenerate.php b/vendor/qcloud/cos-sdk-v5/sample/qrcodeGenerate.php index f97b936..16fd8d5 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/qrcodeGenerate.php +++ b/vendor/qcloud/cos-sdk-v5/sample/qrcodeGenerate.php @@ -25,4 +25,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/restoreObject.php b/vendor/qcloud/cos-sdk-v5/sample/restoreObject.php index 78c89bb..cfe0880 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/restoreObject.php +++ b/vendor/qcloud/cos-sdk-v5/sample/restoreObject.php @@ -27,4 +27,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/textWatermark.php b/vendor/qcloud/cos-sdk-v5/sample/textWatermark.php index c4664fe..f8ef0a8 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/textWatermark.php +++ b/vendor/qcloud/cos-sdk-v5/sample/textWatermark.php @@ -29,4 +29,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/trafficLimit.php b/vendor/qcloud/cos-sdk-v5/sample/trafficLimit.php index 5732369..9bc8b1d 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/trafficLimit.php +++ b/vendor/qcloud/cos-sdk-v5/sample/trafficLimit.php @@ -37,4 +37,4 @@ try { } catch (\Exception $e) { // 请求失败 echo($e); -} \ No newline at end of file +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/updateMediaQueue.php b/vendor/qcloud/cos-sdk-v5/sample/updateMediaQueue.php new file mode 100644 index 0000000..391d3e9 --- /dev/null +++ b/vendor/qcloud/cos-sdk-v5/sample/updateMediaQueue.php @@ -0,0 +1,35 @@ + $region, + 'schema' => 'https', //协议头部,默认为http + 'credentials'=> array( + 'secretId' => $secretId , + 'secretKey' => $secretKey))); + +try { + $result = $cosClient->updateMediaQueue(array( + 'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket + 'Key' => 'xxx', // queueId + 'Name' => '', // 模板名称, 长度限制100字符 + 'QueueID' => 'xxx', // queueId + 'State' => 'Active', // 管道状态 + 'NotifyConfig' => array( + 'Url' => '', // 回调配置 + 'Type' => 'Url', // 回调类型,普通回调:Url + 'Event' => 'TaskFinish', // 任务完成:TaskFinish;工作流完成:WorkflowFinishh + 'State' => 'Off', // 回调开关,Off,On + ), // 通知渠道 + )); + // 请求成功 + print_r($result); +} catch (\Exception $e) { + // 请求失败 + echo($e); +} diff --git a/vendor/qcloud/cos-sdk-v5/sample/upload.php b/vendor/qcloud/cos-sdk-v5/sample/upload.php index 8f21b32..1c92698 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/upload.php +++ b/vendor/qcloud/cos-sdk-v5/sample/upload.php @@ -54,4 +54,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/sample/uploadFolder.php b/vendor/qcloud/cos-sdk-v5/sample/uploadFolder.php index 709d7e9..3885f7d 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/uploadFolder.php +++ b/vendor/qcloud/cos-sdk-v5/sample/uploadFolder.php @@ -39,4 +39,4 @@ function uploadfiles( $path, $cosClient ) { } $local_path = '/data/home/folder'; -uploadfiles( $local_path, $cosClient ); \ No newline at end of file +uploadfiles( $local_path, $cosClient ); diff --git a/vendor/qcloud/cos-sdk-v5/sample/uploadPart.php b/vendor/qcloud/cos-sdk-v5/sample/uploadPart.php index 27fe569..b1709cc 100644 --- a/vendor/qcloud/cos-sdk-v5/sample/uploadPart.php +++ b/vendor/qcloud/cos-sdk-v5/sample/uploadPart.php @@ -28,4 +28,3 @@ try { // 请求失败 echo($e); } - diff --git a/vendor/qcloud/cos-sdk-v5/src/Client.php b/vendor/qcloud/cos-sdk-v5/src/Client.php index 830dfe5..41147f9 100644 --- a/vendor/qcloud/cos-sdk-v5/src/Client.php +++ b/vendor/qcloud/cos-sdk-v5/src/Client.php @@ -96,25 +96,43 @@ use GuzzleHttp\Psr7; * @method object GetBucketReferer(array $args) 获取防盗链规则 * @method object GetMediaInfo(array $args) 获取媒体信息 * @method object CreateMediaTranscodeJobs(array $args) 媒体转码 - * @method object CreateMediaSnapshotJobs(array $args) 媒体转码 - * @method object CreateMediaConcatJobs(array $args) 媒体截图 - * @method object DetectAudio(array $args) 媒体拼接 - * @method object GetDetectAudioResult(array $args) 音频审核 - * @method object GetDetectTextResult(array $args) 主动获取音频审核结果 - * @method object DetectVideo(array $args) 主动获取文本文件审核结果 - * @method object GetDetectVideoResult(array $args) 视频审核 - * @method object DetectDocument(array $args) 主动获取视频审核结果 - * @method object GetDetectDocumentResult(array $args) 文档审核 - * @method object CreateDocProcessJobs(array $args) 主动获取文档审核结果 - * @method object DescribeDocProcessQueues(array $args) 提交文档转码任务 - * @method object DescribeDocProcessJob(array $args) 查询文档转码队列 - * @method object GetDescribeDocProcessJobs(array $args) 查询文档转码任务 + * @method object CreateMediaJobs(array $args) 媒体任务 + * @method object DescribeMediaJob(array $args) 查询指定的媒体任务 + * @method object DescribeMediaJobs(array $args) 拉取拉取符合条件的媒体任务 + * @method object CreateMediaSnapshotJobs(array $args) 媒体截图 + * @method object CreateMediaConcatJobs(array $args) 媒体拼接 + * @method object DetectAudio(array $args) 音频审核 + * @method object GetDetectAudioResult(array $args) 主动获取音频审核结果 + * @method object GetDetectTextResult(array $args) 主动获取文本文件审核结果 + * @method object DetectVideo(array $args) 视频审核 + * @method object GetDetectVideoResult(array $args) 主动获取视频审核结果 + * @method object DetectDocument(array $args) 文档审核 + * @method object GetDetectDocumentResult(array $args) 主动获取文档审核结果 + * @method object CreateDocProcessJobs(array $args) 提交文档转码任务 + * @method object DescribeDocProcessQueues(array $args) 查询文档转码队列 + * @method object DescribeDocProcessJob(array $args) 查询文档转码任务 + * @method object GetDescribeDocProcessJobs(array $args) 拉取符合条件的文档转码任务 * @method object DetectImage(array $args) 图片审核 * @method object DetectImages(array $args) 图片审核-批量 + * @method object DetectVirus(array $args) 云查毒 + * @method object GetDetectVirusResult(array $args) 查询病毒检测任务结果 + * @method object GetDetectImageResult(array $args) 主动获取图片审核结果 + * @method object CreateMediaVoiceSeparateJobs(array $args) 提交人声分离任务 + * @method object DescribeMediaVoiceSeparateJob(array $args) 查询指定的人声分离任务 + * @method object DetectWebpage(array $args) 提交网页审核任务 + * @method object GetDetectWebpageResult(array $args) 查询网页审核任务结果 + * @method object DescribeMediaBuckets(array $args) 查询媒体处理开通状态 + * @method object GetPrivateM3U8(array $args) 获取私有 M3U8 ts 资源的下载授权 + * @method object DescribeMediaQueues(array $args) 搜索媒体处理队列 + * @method object UpdateMediaQueue(array $args) 更新媒体处理队列 + * @method object CreateMediaSmartCoverJobs(array $args) 提交智能封面任务 + * @method object CreateMediaVideoProcessJobs(array $args) 提交视频增强任务 + * @method object CreateMediaVideoMontageJobs(array $args) 提交精彩集锦任务 + * @method object CreateMediaAnimationJobs(array $args) 提交动图任务 * @see \Qcloud\Cos\Service::getService() */ class Client extends GuzzleClient { - const VERSION = '2.4.4'; + const VERSION = '2.5.5'; public $httpClient; @@ -131,10 +149,10 @@ class Client extends GuzzleClient { $this->cosConfig['schema'] = isset($cosConfig['schema']) ? $cosConfig['schema'] : 'http'; $this->cosConfig['region'] = isset($cosConfig['region']) ? region_map($cosConfig['region']) : null; $this->cosConfig['appId'] = isset($cosConfig['credentials']['appId']) ? $cosConfig['credentials']['appId'] : null; - $this->cosConfig['secretId'] = isset($cosConfig['credentials']['secretId']) ? $cosConfig['credentials']['secretId'] : ''; - $this->cosConfig['secretKey'] = isset($cosConfig['credentials']['secretKey']) ? $cosConfig['credentials']['secretKey'] : ''; + $this->cosConfig['secretId'] = isset($cosConfig['credentials']['secretId']) ? trim($cosConfig['credentials']['secretId']) : ''; + $this->cosConfig['secretKey'] = isset($cosConfig['credentials']['secretKey']) ? trim($cosConfig['credentials']['secretKey']) : ''; $this->cosConfig['anonymous'] = isset($cosConfig['credentials']['anonymous']) ? $cosConfig['credentials']['anonymous'] : false; - $this->cosConfig['token'] = isset($cosConfig['credentials']['token']) ? $cosConfig['credentials']['token'] : null; + $this->cosConfig['token'] = isset($cosConfig['credentials']['token']) ? trim($cosConfig['credentials']['token']) : null; $this->cosConfig['timeout'] = isset($cosConfig['timeout']) ? $cosConfig['timeout'] : 3600; $this->cosConfig['connect_timeout'] = isset($cosConfig['connect_timeout']) ? $cosConfig['connect_timeout'] : 3600; $this->cosConfig['ip'] = isset($cosConfig['ip']) ? $cosConfig['ip'] : null; @@ -159,7 +177,7 @@ class Client extends GuzzleClient { return $request->withHeader('User-Agent', $this->cosConfig['userAgent']); })); if ($this->cosConfig['anonymous'] != true) { - $handler->push($this::handleSignature($this->cosConfig['secretId'], $this->cosConfig['secretKey'], $this->cosConfig['signHost'])); + $handler->push($this::handleSignature($this->cosConfig['secretId'], $this->cosConfig['secretKey'], $this->cosConfig)); } if ($this->cosConfig['token'] != null) { $handler->push(Middleware::mapRequest(function (RequestInterface $request) { @@ -167,29 +185,37 @@ class Client extends GuzzleClient { })); } $handler->push($this::handleErrors()); - $this->signature = new Signature(trim($this->cosConfig['secretId']), trim($this->cosConfig['secretKey']), $this->cosConfig, trim($this->cosConfig['token'] )); + $this->signature = new Signature($this->cosConfig['secretId'], $this->cosConfig['secretKey'], $this->cosConfig, $this->cosConfig['token']); $area = $this->cosConfig['allow_accelerate'] ? 'accelerate' : $this->cosConfig['region']; $this->httpClient = new HttpClient([ - 'base_uri' => $this->cosConfig['schema'].'://cos.' . $area . '.myqcloud.com/', + 'base_uri' => "{$this->cosConfig['schema']}://cos.{$area}.myqcloud.com/", 'timeout' => $this->cosConfig['timeout'], 'handler' => $handler, 'proxy' => $this->cosConfig['proxy'], 'allow_redirects' => $this->cosConfig['allow_redirects'] ]); $this->desc = new Description($service); - $this->api = (array)($this->desc->getOperations()); + $this->api = (array) $this->desc->getOperations(); parent::__construct($this->httpClient, $this->desc, [$this, 'commandToRequestTransformer'], [$this, 'responseToResultTransformer'], null); } public function inputCheck() { + $message = null; //检查Region if (empty($this->cosConfig['region']) && empty($this->cosConfig['domain']) && empty($this->cosConfig['endpoint']) && empty($this->cosConfig['ip'])) { - $e = new Exception\CosException('Region is empty'); + $message = 'Region is empty'; + } + //检查Secret + if (empty($this->cosConfig['secretId']) || empty($this->cosConfig['secretKey'])) { + $message = 'Secret is empty'; + } + if ($message !== null) { + $e = new Exception\CosException($message); $e->setExceptionCode('Invalid Argument'); throw $e; } @@ -240,6 +266,7 @@ class Client extends GuzzleClient { $request = $transformer->uploadBodyTransformer($command, $request); $request = $transformer->metadataTransformer($command, $request); $request = $transformer->queryStringTransformer($command, $request); + $request = $transformer->headerTransformer($command, $request); $request = $transformer->md5Transformer($command, $request); $request = $transformer->specialParamTransformer($command, $request); $request = $transformer->ciParamTransformer($command, $request); @@ -404,7 +431,7 @@ class Client extends GuzzleClient { $rt = $this->copyObject(array( 'Bucket' => $bucket, 'Key' => $key, - 'CopySource' => "{$copySource['Bucket']}.cos.{$copySource['Region']}.myqcloud.com/{$copySource['Key']}?versionId={$copySource['VersionId']}", + 'CopySource' => "{$copySource['Bucket']}.cos.{$copySource['Region']}.myqcloud.com/". urlencode("{$copySource['Key']}")."?versionId={$copySource['VersionId']}", ) + $options ); return $rt; @@ -457,9 +484,9 @@ class Client extends GuzzleClient { } - public static function handleSignature($secretId, $secretKey, $signHost) { - return function (callable $handler) use ($secretId, $secretKey, $signHost) { - return new SignatureMiddleware($handler, $secretId, $secretKey, $signHost); + public static function handleSignature($secretId, $secretKey, $options) { + return function (callable $handler) use ($secretId, $secretKey, $options) { + return new SignatureMiddleware($handler, $secretId, $secretKey, $options); }; } diff --git a/vendor/qcloud/cos-sdk-v5/src/CommandToRequestTransformer.php b/vendor/qcloud/cos-sdk-v5/src/CommandToRequestTransformer.php index c16d9ee..6c4ed46 100644 --- a/vendor/qcloud/cos-sdk-v5/src/CommandToRequestTransformer.php +++ b/vendor/qcloud/cos-sdk-v5/src/CommandToRequestTransformer.php @@ -151,7 +151,7 @@ class CommandToRequestTransformer { foreach ( $params as $key => $value ) { $uri = $request->getUri(); $query = $uri->getQuery(); - $uri = $uri->withQuery($query. "&" . $key . "=" . $value ); + $uri = $uri->withQuery($query. "&" . urlencode($key) . "=" . $value ); $request = $request->withUri( $uri ); } } @@ -159,6 +159,19 @@ class CommandToRequestTransformer { return $request; } + // add Header string + + public function headerTransformer( CommandInterface $command, $request ) { + $operation = $this->operation; + if ( isset( $command['Headers'] ) ) { + $headers = $command['Headers']; + foreach ( $headers as $key => $value ) { + $request = $request->withHeader( $key, $value); + } + } + return $request; + } + // add meta public function metadataTransformer( CommandInterface $command, $request ) { @@ -223,9 +236,30 @@ class CommandToRequestTransformer { public function cosDomain2CiTransformer(CommandInterface $command, $request) { $action = $command->getName(); + if(key_exists($action, array( 'DescribeMediaBuckets' => 1, ))) { + $origin_host = "ci.{$this->config['region']}.myqcloud.com"; + $host = $origin_host; + if ($this->config['ip'] != null) { + $host = $this->config['ip']; + if ($this->config['port'] != null) { + $host = $this->config['ip'] . ":" . $this->config['port']; + } + } + + $path = $this->config['schema'].'://'. $host . $request->getUri()->getPath(); + $uri = new Uri( $path ); + $query = $request->getUri()->getQuery(); + $uri = $uri->withQuery( $query ); + $request = $request->withUri( $uri ); + $request = $request->withHeader( 'Host', $origin_host ); + return $request; + } $ciActions = array( 'DetectText' => 1, 'CreateMediaTranscodeJobs' => 1, + 'CreateMediaJobs' => 1, + 'DescribeMediaJob' => 1, + 'DescribeMediaJobs' => 1, 'CreateMediaSnapshotJobs' => 1, 'CreateMediaConcatJobs' => 1, 'DetectAudio' => 1, @@ -240,6 +274,19 @@ class CommandToRequestTransformer { 'DescribeDocProcessJob' => 1, 'GetDescribeDocProcessJobs' => 1, 'DetectImages' => 1, + 'GetDetectImageResult' => 1, + 'DetectVirus' => 1, + 'GetDetectVirusResult' => 1, + 'CreateMediaVoiceSeparateJobs' => 1, + 'DescribeMediaVoiceSeparateJob' => 1, + 'DetectWebpage' => 1, + 'GetDetectWebpageResult' => 1, + 'DescribeMediaQueues' => 1, + 'UpdateMediaQueue' => 1, + 'CreateMediaSmartCoverJobs' => 1, + 'CreateMediaVideoProcessJobs' => 1, + 'CreateMediaVideoMontageJobs' => 1, + 'CreateMediaAnimationJobs' => 1, ); if (key_exists($action, $ciActions)) { $bucketname = $command['Bucket']; diff --git a/vendor/qcloud/cos-sdk-v5/src/Descriptions.php b/vendor/qcloud/cos-sdk-v5/src/Descriptions.php index 6def7ed..3014f18 100644 --- a/vendor/qcloud/cos-sdk-v5/src/Descriptions.php +++ b/vendor/qcloud/cos-sdk-v5/src/Descriptions.php @@ -27,9 +27,9 @@ class Descriptions { ), 'parameters' => array( 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), - 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'Tag' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ), 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), - 'CallBack' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ), 'Input' => array( 'required' => true, 'type' => 'object', @@ -43,8 +43,21 @@ class Descriptions { 'type' => 'object', 'location' => 'xml', 'properties' => array( + 'Tag' => array('location' => 'xml', 'type' => 'string', ), 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ), - 'WatermarkTemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'WatermarkTemplateId' => array( + 'type' => 'array', + 'location' => 'xml', + 'data' => array( + 'xmlFlattened' => true, + ), + 'items' => array( + 'name' => 'WatermarkTemplateId', + 'type' => 'string', + 'location' => 'xml', + 'sentAs' => 'WatermarkTemplateId', + ), + ), 'Transcode' => array( 'type' => 'object', 'location' => 'xml', @@ -125,40 +138,48 @@ class Descriptions { ), ), 'Watermark' => array( - 'type' => 'object', + 'type' => 'array', 'location' => 'xml', - 'properties' => array( - 'Type' => array( 'type' => 'string', 'location' => 'xml', ), - 'Pos' => array( 'type' => 'string', 'location' => 'xml', ), - 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ), - 'Dx' => array( 'type' => 'string', 'location' => 'xml', ), - 'Dy' => array( 'type' => 'string', 'location' => 'xml', ), - 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ), - 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ), - 'Image' => array( - 'type' => 'object', - 'location' => 'xml', - 'properties' => array( - 'Url' => array( 'type' => 'string', 'location' => 'xml', ), - 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), - 'Width' => array( 'type' => 'string', 'location' => 'xml', ), - 'Height' => array( 'type' => 'string', 'location' => 'xml', ), - 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ), - 'Background' => array( 'type' => 'string', 'location' => 'xml', ), + 'data' => array( + 'xmlFlattened' => true, + ), + 'items' => array( + 'name' => 'Watermark', + 'type' => 'object', + 'sentAs' => 'Watermark', + 'properties' => array( + 'Type' => array( 'type' => 'string', 'location' => 'xml', ), + 'Pos' => array( 'type' => 'string', 'location' => 'xml', ), + 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ), + 'Dx' => array( 'type' => 'string', 'location' => 'xml', ), + 'Dy' => array( 'type' => 'string', 'location' => 'xml', ), + 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'Image' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Url' => array( 'type' => 'string', 'location' => 'xml', ), + 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ), + 'Background' => array( 'type' => 'string', 'location' => 'xml', ), + ), ), - ), - 'Text' => array( - 'type' => 'object', - 'location' => 'xml', - 'properties' => array( - 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ), - 'FontType' => array( 'type' => 'string', 'location' => 'xml', ), - 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ), - 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ), - 'Text' => array( 'type' => 'string', 'location' => 'xml', ), + 'Text' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ), + 'FontType' => array( 'type' => 'string', 'location' => 'xml', ), + 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ), + 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ), + 'Text' => array( 'type' => 'string', 'location' => 'xml', ), + ), ), ), - ), + ) ), 'RemoveWatermark' => array( 'type' => 'object', @@ -216,12 +237,12 @@ class Descriptions { ); } - public static function CreateMediaSnapshotJobs() { + public static function CreateMediaJobs() { return array( 'httpMethod' => 'POST', 'uri' => '/{Bucket}jobs', 'class' => 'Qcloud\\Cos\\Command', - 'responseClass' => 'CreateMediaSnapshotJobsOutput', + 'responseClass' => 'CreateMediaJobsOutput', 'responseType' => 'model', 'data' => array( 'xmlRoot' => array( @@ -230,9 +251,9 @@ class Descriptions { ), 'parameters' => array( 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), - 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'Tag' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ), 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), - 'CallBack' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ), 'Input' => array( 'required' => true, 'type' => 'object', @@ -243,30 +264,326 @@ class Descriptions { ), 'Operation' => array( 'required' => true, - 'type' => 'object', + 'type' => 'array', 'location' => 'xml', - 'properties' => array( - 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ), - 'Output' => array( - 'required' => true, - 'type' => 'object', - 'location' => 'xml', - 'properties' => array( - 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), - 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), - 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'data' => array( + 'xmlFlattened' => true, + ), + 'items' => array( + 'name' => 'Operation', + 'type' => 'object', + 'sentAs' => 'Operation', + 'properties' => array( + 'Tag' => array('location' => 'xml', 'type' => 'string', ), + 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'TranscodeTemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'VideoProcess' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'ColorEnhance' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Enable' => array( 'type' => 'string', 'location' => 'xml', ), + 'Contrast' => array( 'type' => 'string', 'location' => 'xml', ), + 'Correction' => array( 'type' => 'string', 'location' => 'xml', ), + 'Saturation' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'MsSharpen' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Enable' => array( 'type' => 'string', 'location' => 'xml', ), + 'SharpenLevel' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), ), - ), - 'Snapshot' => array( - 'type' => 'object', - 'location' => 'xml', - 'properties' => array( - 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), - 'Start' => array( 'type' => 'string', 'location' => 'xml', ), - 'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ), - 'Count' => array( 'type' => 'string', 'location' => 'xml', ), - 'Width' => array( 'type' => 'string', 'location' => 'xml', ), - 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + 'VideoMontage' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Duration' => array( 'type' => 'string', 'location' => 'xml', ), + 'Container' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Video' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + 'Fps' => array( 'type' => 'string', 'location' => 'xml', ), + 'Remove' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Crf' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Audio' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Channels' => array( 'type' => 'string', 'location' => 'xml', ), + 'Remove' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + 'Animation' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Container' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Video' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + 'Fps' => array( 'type' => 'string', 'location' => 'xml', ), + 'Remove' => array( 'type' => 'string', 'location' => 'xml', ), + 'AnimateOnlyKeepKeyFrame' => array( 'type' => 'string', 'location' => 'xml', ), + 'AnimateTimeIntervalOfFrame' => array( 'type' => 'string', 'location' => 'xml', ), + 'AnimateFramesPerSecond' => array( 'type' => 'string', 'location' => 'xml', ), + 'Quality' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'TimeInterval' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Start' => array( 'type' => 'string', 'location' => 'xml', ), + 'Duration' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + 'Snapshot' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), + 'Start' => array( 'type' => 'string', 'location' => 'xml', ), + 'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ), + 'Count' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'VoiceSeparate' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'AudioMode' => array( 'type' => 'string', 'location' => 'xml', ), + 'AudioConfig' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Channels' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + 'Segment' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + 'Duration' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'SDRtoHDR' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HdrMode' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'SuperResolution' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Resolution' => array( 'type' => 'string', 'location' => 'xml', ), + 'EnableScaleUp' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'WatermarkTemplateId' => array( + 'type' => 'array', + 'location' => 'xml', + 'data' => array( + 'xmlFlattened' => true, + ), + 'items' => array( + 'name' => 'WatermarkTemplateId', + 'type' => 'string', + 'location' => 'xml', + 'sentAs' => 'WatermarkTemplateId', + ), + ), + 'Transcode' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Container' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Video' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + 'Fps' => array( 'type' => 'string', 'location' => 'xml', ), + 'Remove' => array( 'type' => 'string', 'location' => 'xml', ), + 'Profile' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Crf' => array( 'type' => 'string', 'location' => 'xml', ), + 'Gop' => array( 'type' => 'string', 'location' => 'xml', ), + 'Preset' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ), + 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ), + 'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'TimeInterval' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Start' => array( 'type' => 'string', 'location' => 'xml', ), + 'Duration' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Audio' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Channels' => array( 'type' => 'string', 'location' => 'xml', ), + 'Remove' => array( 'type' => 'string', 'location' => 'xml', ), + 'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ), + 'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ), + 'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'TransConfig' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ), + 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ), + 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ), + 'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ), + 'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ), + 'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ), + 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ), + 'HlsEncrypt' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ), + 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ), + 'Watermark' => array( + 'type' => 'array', + 'location' => 'xml', + 'data' => array( + 'xmlFlattened' => true, + ), + 'items' => array( + 'name' => 'Watermark', + 'type' => 'object', + 'sentAs' => 'Watermark', + 'properties' => array( + 'Type' => array( 'type' => 'string', 'location' => 'xml', ), + 'Pos' => array( 'type' => 'string', 'location' => 'xml', ), + 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ), + 'Dx' => array( 'type' => 'string', 'location' => 'xml', ), + 'Dy' => array( 'type' => 'string', 'location' => 'xml', ), + 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'Image' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Url' => array( 'type' => 'string', 'location' => 'xml', ), + 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ), + 'Background' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Text' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ), + 'FontType' => array( 'type' => 'string', 'location' => 'xml', ), + 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ), + 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ), + 'Text' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ) + ), + 'RemoveWatermark' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Dx' => array( 'type' => 'string', 'location' => 'xml', ), + 'Dy' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Output' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Object' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ), + 'AuObject' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ), + 'SpriteObject' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ), + ), ), ), ), @@ -275,7 +592,7 @@ class Descriptions { ); } - public static function CreateMediaSnapshotJobsOutput() { + public static function CreateMediaJobsOutput() { return array( 'type' => 'object', 'additionalProperties' => true, @@ -305,31 +622,259 @@ class Descriptions { ); } - public static function CreateMediaConcatJobs() { + public static function DescribeMediaJob() { return array( - 'httpMethod' => 'POST', - 'uri' => '/{Bucket}jobs', + 'httpMethod' => 'GET', + 'uri' => '/{Bucket}jobs/{/Key*}', 'class' => 'Qcloud\\Cos\\Command', - 'responseClass' => 'CreateMediaConcatJobsOutput', + 'responseClass' => 'DescribeMediaJobOutput', 'responseType' => 'model', - 'data' => array( - 'xmlRoot' => array( - 'name' => 'Request', - ), - ), 'parameters' => array( - 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), - 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), - 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), - 'CallBack' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), - 'Input' => array( + 'Bucket' => array( 'required' => true, - 'type' => 'object', - 'location' => 'xml', - 'properties' => array( + 'type' => 'string', + 'location' => 'uri', + ), + 'Key' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + ), + ); + } + public static function DescribeMediaJobOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), + ); + } + + public static function DescribeMediaJobs() { + return array( + 'httpMethod' => 'GET', + 'uri' => '/{Bucket}jobs', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'DescribeMediaJobsOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Bucket' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + 'Tag' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'query', + 'sentAs' => 'tag', + ), + 'QueueId' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'query', + 'sentAs' => 'queueId', + ), + 'OrderByTime' => array( + 'type' => 'string', + 'location' => 'query', + 'sentAs' => 'orderByTime', + ), + 'NextToken' => array( + 'type' => 'string', + 'location' => 'query', + 'sentAs' => 'nextToken', + ), + 'Size' => array( + 'type' => 'integer', + 'location' => 'query', + 'sentAs' => 'size', + ), + 'States' => array( + 'type' => 'string', + 'location' => 'query', + 'sentAs' => 'states', + ), + 'StartCreationTime' => array( + 'type' => 'string', + 'location' => 'query', + 'sentAs' => 'startCreationTime', + ), + 'EndCreationTime' => array( + 'type' => 'string', + 'location' => 'query', + 'sentAs' => 'endCreationTime', + ), + ), + ); + } + public static function DescribeMediaJobsOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), + ); + } + + public static function CreateMediaSnapshotJobs() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}jobs', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CreateMediaSnapshotJobsOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ), + 'Input' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), ), ), + 'Operation' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'Output' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Snapshot' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), + 'Start' => array( 'type' => 'string', 'location' => 'xml', ), + 'TimeInterval' => array( 'type' => 'string', 'location' => 'xml', ), + 'Count' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ); + } + + public static function CreateMediaSnapshotJobsOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), + ); + } + + public static function CreateMediaConcatJobs() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}jobs', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CreateMediaConcatJobsOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ), + 'Input' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Object' => array( 'required' =>false, 'type' => 'string', 'location' => 'xml', ), // 拼接任务Input可以为空,完全用数组内的元素拼接 + ), + ), 'Operation' => array( 'required' => true, 'type' => 'object', @@ -361,6 +906,7 @@ class Descriptions { ), ), 'Index' => array( 'type' => 'string', 'location' => 'xml', ), + 'DirectConcat' => array( 'type' => 'string', 'location' => 'xml', ), 'ConcatFragments' => array( 'type' => 'array', 'location' => 'xml', @@ -375,7 +921,7 @@ class Descriptions { 'Url' => array( 'type' => 'string', 'location' => 'xml', ), 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ), 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ), - 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), + // 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), 拼接接口不需要Mode参数 ), ), ), @@ -466,6 +1012,10 @@ class Descriptions { 'type' => 'string', 'location' => 'xml', ), + 'DataId' => array( + 'type' => 'string', + 'location' => 'xml', + ), ), ), 'Conf' => array( @@ -505,6 +1055,7 @@ class Descriptions { 'type' => 'object', 'location' => 'xml', 'properties' => array( + 'DataId' => array( 'type' => 'string', 'location' => 'xml', ), 'JobId' => array( 'type' => 'string', 'location' => 'xml', ), 'State' => array( 'type' => 'string', 'location' => 'xml', ), 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ), @@ -563,6 +1114,7 @@ class Descriptions { 'properties' => array( 'Code' => array( 'type' => 'string', 'location' => 'xml', ), 'Message' => array( 'type' => 'string', 'location' => 'xml', ), + 'DataId' => array( 'type' => 'string', 'location' => 'xml', ), 'JobId' => array( 'type' => 'string', 'location' => 'xml', ), 'State' => array( 'type' => 'string', 'location' => 'xml', ), 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ), @@ -726,6 +1278,7 @@ class Descriptions { 'properties' => array( 'Code' => array( 'type' => 'string', 'location' => 'xml', ), 'Message' => array( 'type' => 'string', 'location' => 'xml', ), + 'DataId' => array( 'type' => 'string', 'location' => 'xml', ), 'JobId' => array( 'type' => 'string', 'location' => 'xml', ), 'State' => array( 'type' => 'string', 'location' => 'xml', ), 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ), @@ -878,6 +1431,7 @@ class Descriptions { 'properties' => array( 'Object' => array( 'type' => 'string', 'location' => 'xml', ), 'Url' => array( 'type' => 'string', 'location' => 'xml', ), + 'DataId' => array( 'type' => 'string', 'location' => 'xml', ), ), ), 'Conf' => array( @@ -915,6 +1469,7 @@ class Descriptions { 'type' => 'object', 'location' => 'xml', 'properties' => array( + 'DataId' => array( 'type' => 'string', 'location' => 'xml', ), 'JobId' => array( 'type' => 'string', 'location' => 'xml', ), 'State' => array( 'type' => 'string', 'location' => 'xml', ), 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ), @@ -972,6 +1527,7 @@ class Descriptions { 'properties' => array( 'Code' => array('type' => 'string', 'location' => 'xml',), 'Message' => array('type' => 'string', 'location' => 'xml',), + 'DataId' => array('type' => 'string', 'location' => 'xml',), 'JobId' => array('type' => 'string', 'location' => 'xml',), 'State' => array('type' => 'string', 'location' => 'xml',), 'CreationTime' => array('type' => 'string', 'location' => 'xml',), @@ -1012,6 +1568,14 @@ class Descriptions { 'Count' => array('type' => 'integer', 'location' => 'xml',), ) ), + 'TeenagerInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Count' => array('type' => 'integer', 'location' => 'xml',), + ) + ), 'Snapshot' => array( 'type' => 'array', 'location' => 'xml', @@ -1257,19 +1821,78 @@ class Descriptions { ), ) ), - ) - ), - ), - 'AudioSection' => array( - 'type' => 'array', - 'location' => 'xml', - 'items' => array( - 'type' => 'object', - 'properties' => array( - 'Url' => array('type' => 'string', 'location' => 'xml',), - 'Text' => array('type' => 'string', 'location' => 'xml',), - 'OffsetTime' => array('type' => 'integer', 'location' => 'xml',), - 'Duration' => array('type' => 'integer', 'location' => 'xml',), + 'TeenagerInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + 'Label' => array('type' => 'string', 'location' => 'xml',), + 'SubLabel' => array('type' => 'string', 'location' => 'xml',), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array('type' => 'integer', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array('type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array('type' => 'numeric', 'location' => 'xml',), + 'Y' => array('type' => 'numeric', 'location' => 'xml',), + 'Height' => array('type' => 'numeric', 'location' => 'xml',), + 'Width' => array('type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array('type' => 'numeric', 'location' => 'xml',), + ) + ), + ) + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array('type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array('type' => 'numeric', 'location' => 'xml',), + 'Y' => array('type' => 'numeric', 'location' => 'xml',), + 'Height' => array('type' => 'numeric', 'location' => 'xml',), + 'Width' => array('type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array('type' => 'numeric', 'location' => 'xml',), + ) + ), + ) + ), + ), + ) + ), + ) + ), + ), + 'AudioSection' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'properties' => array( + 'Url' => array('type' => 'string', 'location' => 'xml',), + 'Text' => array('type' => 'string', 'location' => 'xml',), + 'OffsetTime' => array('type' => 'integer', 'location' => 'xml',), + 'Duration' => array('type' => 'integer', 'location' => 'xml',), 'Label' => array('type' => 'string', 'location' => 'xml',), 'Result' => array('type' => 'integer', 'location' => 'xml',), 'PornInfo' => array( @@ -1324,6 +1947,19 @@ class Descriptions { ), ) ), + 'TeenagerInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'string', 'location' => 'xml',), + 'Score' => array('type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array('type' => 'string', 'location' => 'xml',), + ), + ) + ), ), ), ), @@ -1359,6 +1995,7 @@ class Descriptions { 'Object' => array( 'type' => 'string', 'location' => 'xml', ), 'Url' => array( 'type' => 'string', 'location' => 'xml', ), 'Type' => array( 'type' => 'string', 'location' => 'xml', ), + 'DataId' => array( 'type' => 'string', 'location' => 'xml', ), ), ), 'Conf' => array( @@ -1385,6 +2022,7 @@ class Descriptions { 'type' => 'object', 'location' => 'xml', 'properties' => array( + 'DataId' => array( 'type' => 'string', 'location' => 'xml', ), 'JobId' => array( 'type' => 'string', 'location' => 'xml', ), 'State' => array( 'type' => 'string', 'location' => 'xml', ), 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ), @@ -1442,6 +2080,7 @@ class Descriptions { 'properties' => array( 'Code' => array('type' => 'string', 'location' => 'xml',), 'Message' => array('type' => 'string', 'location' => 'xml',), + 'DataId' => array('type' => 'string', 'location' => 'xml',), 'JobId' => array('type' => 'string', 'location' => 'xml',), 'State' => array('type' => 'string', 'location' => 'xml',), 'Suggestion' => array('type' => 'integer', 'location' => 'xml',), @@ -2405,7 +3044,6 @@ class Descriptions { 'location' => 'query' ), 'DetectType' => array( - 'required' => true, 'type' => 'string', 'location' => 'query', 'sentAs' => 'detect-type' @@ -2444,6 +3082,8 @@ class Descriptions { 'ContentLength' => array('type' => 'numeric', 'minimum' => 0, 'location' => 'header', 'sentAs' => 'Content-Length',), 'Result' => array('type' => 'integer', 'location' => 'xml',), 'Label' => array('type' => 'string', 'location' => 'xml',), + 'JobId' => array('type' => 'string', 'location' => 'xml',), + 'CompressionResult' => array('type' => 'integer', 'location' => 'xml',), 'SubLabel' => array('type' => 'string', 'location' => 'xml',), 'Score' => array('type' => 'integer', 'location' => 'xml',), 'Text' => array('type' => 'string', 'location' => 'xml',), @@ -2569,6 +3209,67 @@ class Descriptions { ), ), ), + 'TerrorismInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Code' => array( 'type' => 'integer', 'location' => 'xml',), + 'Msg' => array( 'type' => 'string', 'location' => 'xml',), + 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',), + 'Score' => array( 'type' => 'integer', 'location' => 'xml',), + 'Label' => array( 'type' => 'string', 'location' => 'xml',), + 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), 'PoliticsInfo' => array( 'type' => 'object', 'location' => 'xml', @@ -2691,6 +3392,67 @@ class Descriptions { ), ), ), + 'TeenagerInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Code' => array( 'type' => 'integer', 'location' => 'xml',), + 'Msg' => array( 'type' => 'string', 'location' => 'xml',), + 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',), + 'Score' => array( 'type' => 'integer', 'location' => 'xml',), + 'Label' => array( 'type' => 'string', 'location' => 'xml',), + 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), ) ); } @@ -2734,11 +3496,10 @@ class Descriptions { ), ), 'Conf' => array( - 'required' => true, 'type' => 'object', 'location' => 'xml', 'properties' => array( - 'DetectType' => array( 'type' => 'string', 'location' => 'xml', 'required' => true,), + 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ), 'BizType' => array( 'type' => 'string', 'location' => 'xml', ), ), ), @@ -2763,14 +3524,16 @@ class Descriptions { 'properties' => array( 'Code' => array( 'type' => 'string', 'location' => 'xml',), 'Message' => array( 'type' => 'string', 'location' => 'xml',), + 'JobId' => array( 'type' => 'string', 'location' => 'xml',), 'DataId' => array( 'type' => 'string', 'location' => 'xml',), + 'CompressionResult' => array( 'type' => 'integer', 'location' => 'xml',), 'Label' => array( 'type' => 'string', 'location' => 'xml',), 'Result' => array( 'type' => 'integer', 'location' => 'xml',), 'Score' => array( 'type' => 'integer', 'location' => 'xml',), - 'SubLabel' => array( 'type' => 'integer', 'location' => 'xml',), - 'Text' => array( 'type' => 'integer', 'location' => 'xml',), - 'Object' => array( 'type' => 'integer', 'location' => 'xml',), - 'Url' => array( 'type' => 'integer', 'location' => 'xml',), + 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',), + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Object' => array( 'type' => 'string', 'location' => 'xml',), + 'Url' => array( 'type' => 'string', 'location' => 'xml',), 'PornInfo' => array( 'type' => 'object', 'location' => 'xml', @@ -3015,11 +3778,1948 @@ class Descriptions { ), ), ), - ), - ), - ), - ) + 'TeenagerInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Code' => array( 'type' => 'integer', 'location' => 'xml',), + 'Msg' => array( 'type' => 'string', 'location' => 'xml',), + 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml',), + 'Score' => array( 'type' => 'integer', 'location' => 'xml',), + 'Label' => array( 'type' => 'string', 'location' => 'xml',), + 'SubLabel' => array( 'type' => 'string', 'location' => 'xml',), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ) + ); + } + + public static function DetectVirus() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}virus/detect', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'DetectVirusOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + 'Input' => array( + 'location' => 'xml', + 'type' => 'object', + 'properties' => array( + 'Object' => array( 'type' => 'string', 'location' => 'xml', ), + 'Url' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Conf' => array( + 'location' => 'xml', + 'type' => 'object', + 'properties' => array( + 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ), + 'Callback' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ); + } + public static function DetectVirusOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ), + 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ), + 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ), + 'JobsDetail' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'JobId' => array( 'type' => 'string', 'location' => 'xml', ), + 'State' => array( 'type' => 'string', 'location' => 'xml', ), + 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ); + } + + public static function GetDetectVirusResult() { + return array( + 'httpMethod' => 'GET', + 'uri' => '/{Bucket}virus/detect/{/Key*}', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'GetDetectVirusResultOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Bucket' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + 'Key' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + ), + ); + } + public static function GetDetectVirusResultOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + 'JobsDetail' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Code' => array('type' => 'string', 'location' => 'xml',), + 'Message' => array('type' => 'string', 'location' => 'xml',), + 'JobId' => array('type' => 'string', 'location' => 'xml',), + 'State' => array('type' => 'string', 'location' => 'xml',), + 'CreationTime' => array('type' => 'string', 'location' => 'xml',), + 'Object' => array('type' => 'string', 'location' => 'xml',), + 'Url' => array('type' => 'string', 'location' => 'xml',), + 'Suggestion' => array('type' => 'string', 'location' => 'xml',), + 'DetectDetail' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Result' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'FileName' => array( 'type' => 'string', 'location' => 'xml', ), + 'VirusName' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ); + } + + public static function GetDetectImageResult() { + return array( + 'httpMethod' => 'GET', + 'uri' => '/{Bucket}image/auditing/{/Key*}', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'GetDetectImageResultOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Bucket' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + 'Key' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + ), + ); + } + public static function GetDetectImageResultOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + 'JobsDetail' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Code' => array('type' => 'string', 'location' => 'xml',), + 'Message' => array('type' => 'string', 'location' => 'xml',), + 'JobId' => array('type' => 'string', 'location' => 'xml',), + 'State' => array('type' => 'string', 'location' => 'xml',), + 'CreationTime' => array('type' => 'string', 'location' => 'xml',), + 'Object' => array('type' => 'string', 'location' => 'xml',), + 'Url' => array('type' => 'string', 'location' => 'xml',), + 'CompressionResult' => array('type' => 'integer', 'location' => 'xml',), + 'Text' => array('type' => 'string', 'location' => 'xml',), + 'Label' => array('type' => 'string', 'location' => 'xml',), + 'SubLabel' => array('type' => 'string', 'location' => 'xml',), + 'Result' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + 'PornInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Score' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Label' => array( 'type' => 'string', 'location' => 'xml', ), + 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + 'AdsInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Score' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Label' => array( 'type' => 'string', 'location' => 'xml', ), + 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + 'PoliticsInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Score' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Label' => array( 'type' => 'string', 'location' => 'xml', ), + 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + 'TerrorismInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Score' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Label' => array( 'type' => 'string', 'location' => 'xml', ), + 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + 'TeenagerInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Score' => array( 'type' => 'integer', 'location' => 'xml', ), + 'Label' => array( 'type' => 'string', 'location' => 'xml', ), + 'SubLabel' => array( 'type' => 'string', 'location' => 'xml', ), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ); + } + + public static function CreateMediaVoiceSeparateJobs() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}jobs', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CreateMediaVoiceSeparateJobsOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'location' => 'xml', 'type' => 'string', ), + 'Input' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Operation' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'VoiceSeparate' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'AudioMode' => array( 'type' => 'string', 'location' => 'xml', ), + 'AudioConfig' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Channels' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + 'Output' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Region' => array('type' => 'string', 'location' => 'xml', ), + 'Bucket' => array('type' => 'string', 'location' => 'xml', ), + 'Object' => array('type' => 'string', 'location' => 'xml', ), + 'AuObject' => array('type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ); + } + + public static function CreateMediaVoiceSeparateJobsOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), + ); + } + + public static function DescribeMediaVoiceSeparateJob() { + return array( + 'httpMethod' => 'GET', + 'uri' => '/{Bucket}jobs/{/Key*}', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'DescribeMediaVoiceSeparateJobOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Bucket' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + 'Key' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + ), + ); + } + public static function DescribeMediaVoiceSeparateJobOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), + ); + } + + public static function DetectWebpage() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}webpage/auditing', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'DetectWebpageOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + 'Input' => array( + 'location' => 'xml', + 'type' => 'object', + 'properties' => array( + 'Url' => array( 'type' => 'string', 'location' => 'xml', ), + 'DataId' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Conf' => array( + 'location' => 'xml', + 'type' => 'object', + 'properties' => array( + 'DetectType' => array( 'type' => 'string', 'location' => 'xml', ), + 'Callback' => array( 'type' => 'string', 'location' => 'xml', ), + 'ReturnHighlightHtml' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ); + } + public static function DetectWebpageOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ), + 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ), + 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ), + 'JobsDetail' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'DataId' => array( 'type' => 'string', 'location' => 'xml', ), + 'JobId' => array( 'type' => 'string', 'location' => 'xml', ), + 'State' => array( 'type' => 'string', 'location' => 'xml', ), + 'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ); + } + + public static function GetDetectWebpageResult() { + return array( + 'httpMethod' => 'GET', + 'uri' => '/{Bucket}webpage/auditing/{/Key*}', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'GetDetectWebpageResultOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Bucket' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + 'Key' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + ), + ); + } + public static function GetDetectWebpageResultOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + 'JobsDetail' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Code' => array('type' => 'string', 'location' => 'xml',), + 'Message' => array('type' => 'string', 'location' => 'xml',), + 'DataId' => array('type' => 'string', 'location' => 'xml',), + 'JobId' => array('type' => 'string', 'location' => 'xml',), + 'State' => array('type' => 'string', 'location' => 'xml',), + 'CreationTime' => array('type' => 'string', 'location' => 'xml',), + 'Url' => array('type' => 'string', 'location' => 'xml',), + 'Suggestion' => array('type' => 'integer', 'location' => 'xml',), + 'Label' => array('type' => 'string', 'location' => 'xml',), + 'PageCount' => array('type' => 'integer', 'location' => 'xml',), + 'HighlightHtml' => array('type' => 'string', 'location' => 'xml',), + 'Labels' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'PornInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + ), + ), + 'AdsInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + ), + ), + 'PoliticsInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + ), + ), + 'TerrorismInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + ), + ), + ), + ), + 'ImageResults' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Results' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Url' => array( 'type' => 'string', 'location' => 'xml',), + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Label' => array( 'type' => 'string', 'location' => 'xml',), + 'Suggestion' => array( 'type' => 'integer', 'location' => 'xml',), + 'PornInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + 'SubLabel' => array('type' => 'string', 'location' => 'xml',), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + 'AdsInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + 'SubLabel' => array('type' => 'string', 'location' => 'xml',), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + 'PoliticsInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + 'SubLabel' => array('type' => 'string', 'location' => 'xml',), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + 'TerrorismInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + 'SubLabel' => array('type' => 'string', 'location' => 'xml',), + 'OcrResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Keywords' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml',), + ), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'ObjectResults' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Location' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'X' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Y' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Width' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Height' => array( 'type' => 'numeric', 'location' => 'xml',), + 'Rotate' => array( 'type' => 'numeric', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ), + 'TextResults' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Results' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Text' => array( 'type' => 'string', 'location' => 'xml',), + 'Label' => array( 'type' => 'string', 'location' => 'xml',), + 'Suggestion' => array( 'type' => 'integer', 'location' => 'xml',), + 'PornInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + 'Keywords' => array('type' => 'string', 'location' => 'xml',), + ), + ), + 'AdsInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + 'Keywords' => array('type' => 'string', 'location' => 'xml',), + ), + ), + 'PoliticsInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + 'Keywords' => array('type' => 'string', 'location' => 'xml',), + ), + ), + 'TerrorismInfo' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'HitFlag' => array('type' => 'integer', 'location' => 'xml',), + 'Score' => array('type' => 'integer', 'location' => 'xml',), + 'Keywords' => array('type' => 'string', 'location' => 'xml',), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ), + ); + } + + public static function DescribeMediaBuckets() { + return array( + 'httpMethod' => 'GET', + 'uri' => '/mediabucket', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'DescribeMediaBucketsOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Regions' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'regions' ), + 'BucketNames' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'bucketNames' ), + 'BucketName' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'bucketName' ), + 'PageNumber' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageNumber' ), + 'PageSize' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageSize' ), + ), + ); + } + public static function DescribeMediaBucketsOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'x-ci-request-id', ), + 'ContentType' => array( 'type' => 'string', 'location' => 'header', 'sentAs' => 'Content-Type', ), + 'ContentLength' => array( 'type' => 'numeric', 'minimum'=> 0, 'location' => 'header', 'sentAs' => 'Content-Length', ), + 'TotalCount' => array( 'type' => 'integer', 'location' => 'xml', ), + 'PageNumber' => array( 'type' => 'integer', 'location' => 'xml', ), + 'PageSize' => array( 'type' => 'integer', 'location' => 'xml', ), + 'MediaBucketList' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'BucketId' => array( 'type' => 'string', 'location' => 'xml',), + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'Region' => array( 'type' => 'string', 'location' => 'xml',), + 'CreateTime' => array( 'type' => 'string', 'location' => 'xml',), + ), + ), + ), + ), + ); + } + + public static function GetPrivateM3U8() { + return array( + 'httpMethod' => 'GET', + 'uri' => '/{Bucket}{/Key*}', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'GetPrivateM3U8Output', + 'responseType' => 'model', + 'parameters' => array( + 'Bucket' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + 'Key' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + 'ci-process' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'query' + ), + 'expires' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'query' + ) + ), + ); + } + public static function GetPrivateM3U8Output() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-cos-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), + ); + } + + public static function DescribeMediaQueues() { + return array( + 'httpMethod' => 'GET', + 'uri' => '/{Bucket}queue', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'DescribeMediaQueuesOutput', + 'responseType' => 'model', + 'parameters' => array( + 'Bucket' => array( + 'required' => true, + 'type' => 'string', + 'location' => 'uri', + ), + 'QueueIds' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'queueIds' ), + 'State' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'state' ), + 'PageNumber' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageNumber' ), + 'PageSize' => array( 'type' => 'string', 'location' => 'query', 'sentAs' => 'pageSize' ), + ), + ); + } + public static function DescribeMediaQueuesOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + 'TotalCount' => array( 'type' => 'integer', 'location' => 'xml', ), + 'PageNumber' => array( 'type' => 'integer', 'location' => 'xml', ), + 'PageSize' => array( 'type' => 'integer', 'location' => 'xml', ), + 'QueueList' => array( + 'type' => 'array', 'location' => 'xml', + 'items' => array( + 'type' => 'object', 'location' => 'xml', + 'properties' => array( + 'QueueId' => array( 'type' => 'string', 'location' => 'xml',), + 'Name' => array( 'type' => 'string', 'location' => 'xml',), + 'State' => array( 'type' => 'string', 'location' => 'xml',), + 'MaxSize' => array( 'type' => 'integer', 'location' => 'xml',), + 'MaxConcurrent' => array( 'type' => 'integer', 'location' => 'xml',), + 'UpdateTime' => array( 'type' => 'string', 'location' => 'xml',), + 'CreateTime' => array( 'type' => 'string', 'location' => 'xml',), + 'NotifyConfig' => array( + 'type' => 'object', 'location' => 'xml', + 'properties' => array( + 'Url' => array( 'type' => 'string', 'location' => 'xml',), + 'State' => array( 'type' => 'string', 'location' => 'xml',), + 'Type' => array( 'type' => 'string', 'location' => 'xml',), + 'Event' => array( 'type' => 'string', 'location' => 'xml',), + ), + ), + ), + ), + ), + 'NonExistPIDs' => array( + 'type' => 'array', 'location' => 'xml', + 'items' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ); + } + + public static function UpdateMediaQueue() { + return array( + 'httpMethod' => 'PUT', + 'uri' => '/{Bucket}queue/{/Key*}', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'UpdateMediaQueueOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Key' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Name' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'QueueID' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'State' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'NotifyConfig' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Url' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ), + 'Type' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ), + 'Event' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ), + 'State' => array( 'required' => false, 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ); + } + public static function UpdateMediaQueueOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), + ); + } + + public static function CreateMediaSmartCoverJobs() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}jobs', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CreateMediaSmartCoverJobsOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ), + 'Input' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Operation' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Output' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ); + } + public static function CreateMediaSmartCoverJobsOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), + ); + } + + public static function CreateMediaVideoProcessJobs() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}jobs', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CreateMediaVideoProcessJobsOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ), + 'Input' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Operation' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'TranscodeTemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'WatermarkTemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'VideoProcess' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'ColorEnhance' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Enable' => array( 'type' => 'string', 'location' => 'xml', ), + 'Contrast' => array( 'type' => 'string', 'location' => 'xml', ), + 'Correction' => array( 'type' => 'string', 'location' => 'xml', ), + 'Saturation' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'MsSharpen' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Enable' => array( 'type' => 'string', 'location' => 'xml', ), + 'SharpenLevel' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + 'Transcode' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Tag' => array( 'type' => 'string', 'location' => 'xml', ), + 'Name' => array( 'type' => 'string', 'location' => 'xml', ), + 'Container' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Video' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + 'Fps' => array( 'type' => 'string', 'location' => 'xml', ), + 'Remove' => array( 'type' => 'string', 'location' => 'xml', ), + 'Profile' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Crf' => array( 'type' => 'string', 'location' => 'xml', ), + 'Gop' => array( 'type' => 'string', 'location' => 'xml', ), + 'Preset' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bufsize' => array( 'type' => 'string', 'location' => 'xml', ), + 'Maxrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'HlsTsTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'Pixfmt' => array( 'type' => 'string', 'location' => 'xml', ), + 'LongShortMode' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'TimeInterval' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Start' => array( 'type' => 'string', 'location' => 'xml', ), + 'Duration' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Audio' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Channels' => array( 'type' => 'string', 'location' => 'xml', ), + 'Remove' => array( 'type' => 'string', 'location' => 'xml', ), + 'KeepTwoTracks' => array( 'type' => 'string', 'location' => 'xml', ), + 'SwitchTrack' => array( 'type' => 'string', 'location' => 'xml', ), + 'SampleFormat' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'TransConfig' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'AdjDarMethod' => array( 'type' => 'string', 'location' => 'xml', ), + 'IsCheckReso' => array( 'type' => 'string', 'location' => 'xml', ), + 'ResoAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ), + 'IsCheckVideoBitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'VideoBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ), + 'IsCheckAudioBitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'AudioBitrateAdjMethod' => array( 'type' => 'string', 'location' => 'xml', ), + 'DeleteMetadata' => array( 'type' => 'string', 'location' => 'xml', ), + 'IsHdr2Sdr' => array( 'type' => 'string', 'location' => 'xml', ), + 'HlsEncrypt' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'IsHlsEncrypt' => array( 'type' => 'string', 'location' => 'xml', ), + 'UriKey' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ), + 'Watermark' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Type' => array( 'type' => 'string', 'location' => 'xml', ), + 'Pos' => array( 'type' => 'string', 'location' => 'xml', ), + 'LocMode' => array( 'type' => 'string', 'location' => 'xml', ), + 'Dx' => array( 'type' => 'string', 'location' => 'xml', ), + 'Dy' => array( 'type' => 'string', 'location' => 'xml', ), + 'StartTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'EndTime' => array( 'type' => 'string', 'location' => 'xml', ), + 'Image' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Url' => array( 'type' => 'string', 'location' => 'xml', ), + 'Mode' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ), + 'Background' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Text' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'FontSize' => array( 'type' => 'string', 'location' => 'xml', ), + 'FontType' => array( 'type' => 'string', 'location' => 'xml', ), + 'FontColor' => array( 'type' => 'string', 'location' => 'xml', ), + 'Transparency' => array( 'type' => 'string', 'location' => 'xml', ), + 'Text' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + 'Output' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ); + } + public static function CreateMediaVideoProcessJobsOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), + ); + } + + public static function CreateMediaVideoMontageJobs() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}jobs', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CreateMediaVideoMontageJobsOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ), + 'Input' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Operation' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'VideoMontage' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Duration' => array( 'type' => 'string', 'location' => 'xml', ), + 'Container' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Video' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + 'Fps' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Crf' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Audio' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Samplerate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Bitrate' => array( 'type' => 'string', 'location' => 'xml', ), + 'Channels' => array( 'type' => 'string', 'location' => 'xml', ), + 'Remove' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + 'Output' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ); + } + public static function CreateMediaVideoMontageJobsOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), + ); + } + + public static function CreateMediaAnimationJobs() { + return array( + 'httpMethod' => 'POST', + 'uri' => '/{Bucket}jobs', + 'class' => 'Qcloud\\Cos\\Command', + 'responseClass' => 'CreateMediaAnimationJobsOutput', + 'responseType' => 'model', + 'data' => array( + 'xmlRoot' => array( + 'name' => 'Request', + ), + ), + 'parameters' => array( + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'uri', ), + 'Tag' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'QueueId' => array( 'required' => true, 'location' => 'xml', 'type' => 'string', ), + 'CallBack' => array( 'required' => false, 'location' => 'xml', 'type' => 'string', ), + 'Input' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Operation' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'TemplateId' => array( 'type' => 'string', 'location' => 'xml', ), + 'Animation' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Container' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Format' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'Video' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Codec' => array( 'type' => 'string', 'location' => 'xml', ), + 'Width' => array( 'type' => 'string', 'location' => 'xml', ), + 'Height' => array( 'type' => 'string', 'location' => 'xml', ), + 'Fps' => array( 'type' => 'string', 'location' => 'xml', ), + 'AnimateOnlyKeepKeyFrame' => array( 'type' => 'string', 'location' => 'xml', ), + 'AnimateTimeIntervalOfFrame' => array( 'type' => 'string', 'location' => 'xml', ), + 'AnimateFramesPerSecond' => array( 'type' => 'string', 'location' => 'xml', ), + 'Quality' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + 'TimeInterval' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Start' => array( 'type' => 'string', 'location' => 'xml', ), + 'Duration' => array( 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + 'Output' => array( + 'required' => true, + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Region' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Bucket' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + 'Object' => array( 'required' => true, 'type' => 'string', 'location' => 'xml', ), + ), + ), + ), + ), + ), + ); + } + public static function CreateMediaAnimationJobsOutput() { + return array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'Body' => array( + 'type' => 'string', + 'instanceOf' => 'GuzzleHttp\\Psr7\\Stream', + 'location' => 'body', + ), + 'RequestId' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'x-ci-request-id', + ), + 'ContentType' => array( + 'type' => 'string', + 'location' => 'header', + 'sentAs' => 'Content-Type', + ), + 'ContentLength' => array( + 'type' => 'numeric', + 'minimum'=> 0, + 'location' => 'header', + 'sentAs' => 'Content-Length', + ), + ), ); } -} \ No newline at end of file +} diff --git a/vendor/qcloud/cos-sdk-v5/src/MultipartUpload.php b/vendor/qcloud/cos-sdk-v5/src/MultipartUpload.php index 5c342e4..2eec9c0 100644 --- a/vendor/qcloud/cos-sdk-v5/src/MultipartUpload.php +++ b/vendor/qcloud/cos-sdk-v5/src/MultipartUpload.php @@ -100,7 +100,15 @@ class MultipartUpload { $index = $index + 1; $partNumber = $this->partNumberList[$index]['PartNumber']; $partSize = $this->partNumberList[$index]['PartSize']; - $etag = $response->getHeaders()["ETag"][0]; + + //兼容两种写法,防止index为undefined + if (array_key_exists('etag', $response->getHeaders())) { + $etag = $response->getHeaders()["etag"][0]; + } + + if (array_key_exists('ETag', $response->getHeaders())) { + $etag = $response->getHeaders()["ETag"][0]; + } $part = array('PartNumber' => $partNumber, 'ETag' => $etag); $this->parts[$partNumber] = $part; $this->uploadedSize += $partSize; diff --git a/vendor/qcloud/cos-sdk-v5/src/ResultTransformer.php b/vendor/qcloud/cos-sdk-v5/src/ResultTransformer.php index be830a9..0bdb245 100644 --- a/vendor/qcloud/cos-sdk-v5/src/ResultTransformer.php +++ b/vendor/qcloud/cos-sdk-v5/src/ResultTransformer.php @@ -70,7 +70,7 @@ class ResultTransformer { public function ciContentInfoTransformer(CommandInterface $command, Result $result) { $action = $command->getName(); - if ($action == "ImageInfo" || $action == "ImageExif" || $action == "ImageAve") { + if ($action == "ImageInfo" || $action == "ImageExif" || $action == "ImageAve" || $action == "GetPrivateM3U8") { $length = intval($result['ContentLength']); if($length > 0){ $result['Data'] = $this->geCiContentInfo($result, $length); @@ -106,8 +106,18 @@ class ResultTransformer { $xml2JsonActions = array( 'CreateMediaTranscodeJobs' => 1, + 'CreateMediaJobs' => 1, + 'DescribeMediaJob' => 1, + 'DescribeMediaJobs' => 1, 'CreateMediaSnapshotJobs' => 1, 'CreateMediaConcatJobs' => 1, + 'CreateMediaVoiceSeparateJobs' => 1, + 'DescribeMediaVoiceSeparateJob' => 1, + 'UpdateMediaQueue' => 1, + 'CreateMediaSmartCoverJobs' => 1, + 'CreateMediaVideoProcessJobs' => 1, + 'CreateMediaVideoMontageJobs' => 1, + 'CreateMediaAnimationJobs' => 1, ); if (key_exists($action, $xml2JsonActions)) { $length = intval($result['ContentLength']); diff --git a/vendor/qcloud/cos-sdk-v5/src/Service.php b/vendor/qcloud/cos-sdk-v5/src/Service.php index 771325e..2fee885 100644 --- a/vendor/qcloud/cos-sdk-v5/src/Service.php +++ b/vendor/qcloud/cos-sdk-v5/src/Service.php @@ -3477,6 +3477,14 @@ class Service { 'type' => 'string', 'location' => 'xml', ), + 'Url' => array( + 'type' => 'string', + 'location' => 'xml', + ), + 'DataId' => array( + 'type' => 'string', + 'location' => 'xml', + ), ), ), 'Conf' => array( @@ -3655,6 +3663,9 @@ class Service { ), ), 'CreateMediaTranscodeJobs' => Descriptions::CreateMediaTranscodeJobs(), // 媒体转码 + 'CreateMediaJobs' => Descriptions::CreateMediaJobs(), // 媒体任务 + 'DescribeMediaJob' => Descriptions::DescribeMediaJob(), // 查询指定的媒体任务 + 'DescribeMediaJobs' => Descriptions::DescribeMediaJobs(), // 拉取拉取符合条件的媒体任务 'CreateMediaSnapshotJobs' => Descriptions::CreateMediaSnapshotJobs(), // 媒体截图 'CreateMediaConcatJobs' => Descriptions::CreateMediaConcatJobs(), // 媒体拼接 'DetectAudio' => Descriptions::DetectAudio(), // 音频审核 @@ -3670,6 +3681,21 @@ class Service { 'GetDescribeDocProcessJobs' => Descriptions::GetDescribeDocProcessJobs(), // 拉取符合条件的文档转码任务 'DetectImage' => Descriptions::DetectImage(), // 图片审核 'DetectImages' => Descriptions::DetectImages(), // 图片审核-批量 + 'DetectVirus' => Descriptions::DetectVirus(), // 云查毒 + 'GetDetectVirusResult' => Descriptions::GetDetectVirusResult(), // 查询病毒检测任务结果 + 'GetDetectImageResult' => Descriptions::GetDetectImageResult(), // 主动获取图片审核结果 + 'CreateMediaVoiceSeparateJobs' => Descriptions::CreateMediaVoiceSeparateJobs(), // 提交人声分离任务 + 'DescribeMediaVoiceSeparateJob' => Descriptions::DescribeMediaVoiceSeparateJob(), // 查询指定的人声分离任务 + 'DetectWebpage' => Descriptions::DetectWebpage(), // 提交网页审核任务 + 'GetDetectWebpageResult' => Descriptions::GetDetectWebpageResult(), // 查询网页审核任务结果 + 'DescribeMediaBuckets' => Descriptions::DescribeMediaBuckets(), // 查询媒体处理开通状态 + 'GetPrivateM3U8' => Descriptions::GetPrivateM3U8(), // 获取私有 M3U8 ts 资源的下载授权 + 'DescribeMediaQueues' => Descriptions::DescribeMediaQueues(), // 搜索媒体处理队列 + 'UpdateMediaQueue' => Descriptions::UpdateMediaQueue(), // 更新媒体处理队列 + 'CreateMediaSmartCoverJobs' => Descriptions::CreateMediaSmartCoverJobs(), // 提交智能封面任务 + 'CreateMediaVideoProcessJobs' => Descriptions::CreateMediaVideoProcessJobs(), // 提交视频增强任务 + 'CreateMediaVideoMontageJobs' => Descriptions::CreateMediaVideoMontageJobs(), // 提交精彩集锦任务 + 'CreateMediaAnimationJobs' => Descriptions::CreateMediaAnimationJobs(), // 提交动图任务 ), 'models' => array( 'AbortMultipartUploadOutput' => array( @@ -6481,6 +6507,7 @@ class Service { 'location' => 'xml', 'properties' => array( 'Code' => array( 'type' => 'string', 'location' => 'xml',), + 'DataId' => array( 'type' => 'string', 'location' => 'xml',), 'Message' => array( 'type' => 'string', 'location' => 'xml',), 'JobId' => array( 'type' => 'string', 'location' => 'xml',), 'State' => array( 'type' => 'string', 'location' => 'xml',), @@ -7022,6 +7049,9 @@ class Service { ) ), 'CreateMediaTranscodeJobsOutput' => Descriptions::CreateMediaTranscodeJobsOutput(), + 'DescribeMediaJobOutput' => Descriptions::DescribeMediaJobOutput(), + 'DescribeMediaJobsOutput' => Descriptions::DescribeMediaJobsOutput(), + 'CreateMediaJobsOutput' => Descriptions::CreateMediaJobsOutput(), 'CreateMediaSnapshotJobsOutput' => Descriptions::CreateMediaSnapshotJobsOutput(), 'CreateMediaConcatJobsOutput' => Descriptions::CreateMediaConcatJobsOutput(), 'DetectAudioOutput' => Descriptions::DetectAudioOutput(), @@ -7037,6 +7067,21 @@ class Service { 'GetDescribeDocProcessJobsOutput' => Descriptions::GetDescribeDocProcessJobsOutput(), 'DetectImageOutput' => Descriptions::DetectImageOutput(), 'DetectImagesOutput' => Descriptions::DetectImagesOutput(), + 'DetectVirusOutput' => Descriptions::DetectVirusOutput(), + 'GetDetectVirusResultOutput' => Descriptions::GetDetectVirusResultOutput(), + 'GetDetectImageResultOutput' => Descriptions::GetDetectImageResultOutput(), + 'CreateMediaVoiceSeparateJobsOutput' => Descriptions::CreateMediaVoiceSeparateJobsOutput(), + 'DescribeMediaVoiceSeparateJobOutput' => Descriptions::DescribeMediaVoiceSeparateJobOutput(), + 'DetectWebpageOutput' => Descriptions::DetectWebpageOutput(), + 'GetDetectWebpageResultOutput' => Descriptions::GetDetectWebpageResultOutput(), + 'DescribeMediaBucketsOutput' => Descriptions::DescribeMediaBucketsOutput(), + 'GetPrivateM3U8Output' => Descriptions::GetPrivateM3U8Output(), + 'DescribeMediaQueuesOutput' => Descriptions::DescribeMediaQueuesOutput(), + 'UpdateMediaQueueOutput' => Descriptions::UpdateMediaQueueOutput(), + 'CreateMediaSmartCoverJobsOutput' => Descriptions::CreateMediaSmartCoverJobsOutput(), + 'CreateMediaVideoProcessJobsOutput' => Descriptions::CreateMediaVideoProcessJobsOutput(), + 'CreateMediaVideoMontageJobsOutput' => Descriptions::CreateMediaVideoMontageJobsOutput(), + 'CreateMediaAnimationJobsOutput' => Descriptions::CreateMediaAnimationJobsOutput(), ) ); } diff --git a/vendor/qcloud/cos-sdk-v5/src/Signature.php b/vendor/qcloud/cos-sdk-v5/src/Signature.php index af9d6a8..28e03d9 100644 --- a/vendor/qcloud/cos-sdk-v5/src/Signature.php +++ b/vendor/qcloud/cos-sdk-v5/src/Signature.php @@ -11,13 +11,13 @@ class Signature { // string: secret key. private $secretKey; - // bool: host trigger - private $signHost; + // array: cos config. + private $options; - public function __construct( $accessKey, $secretKey, $signHost, $token = null ) { + public function __construct( $accessKey, $secretKey, $options, $token = null ) { $this->accessKey = $accessKey; $this->secretKey = $secretKey; - $this->signHost = $signHost; + $this->options = $options; $this->token = $token; $this->signHeader = [ 'cache-control', @@ -74,14 +74,15 @@ class Signature { foreach ( explode( '&', $request->getUri()->getQuery() ) as $query ) { if (!empty($query)) { $tmpquery = explode( '=', $query ); - $key = strtolower( $tmpquery[0] ); + //为了保证CI的key中有=号的情况也能正常通过,ci在这层之前已经encode了,这里需要拆开重新encode,防止上方explode拆错 + $key = strtolower( rawurlencode(urldecode($tmpquery[0])) ); if (count($tmpquery) >= 2) { $value = $tmpquery[1]; } else { $value = ""; } //host开关 - if (!$this->signHost && $key == 'host') { + if (!$this->options['signHost'] && $key == 'host') { continue; } $urlParamListArray[$key] = $key. '='. $value; @@ -95,7 +96,7 @@ class Signature { foreach ( $request->getHeaders() as $key => $value ) { $key = strtolower( urlencode( $key ) ); $value = rawurlencode( $value[0] ); - if ( !$this->signHost && $key == 'host' ) { + if ( !$this->options['signHost'] && $key == 'host' ) { continue; } if ( $this->needCheckHeader( $key ) ) { diff --git a/vendor/qcloud/cos-sdk-v5/src/SignatureMiddleware.php b/vendor/qcloud/cos-sdk-v5/src/SignatureMiddleware.php index 358a87e..ff82554 100644 --- a/vendor/qcloud/cos-sdk-v5/src/SignatureMiddleware.php +++ b/vendor/qcloud/cos-sdk-v5/src/SignatureMiddleware.php @@ -11,9 +11,9 @@ class SignatureMiddleware { /** * @param callable $nextHandler Next handler to invoke. */ - public function __construct(callable $nextHandler, $accessKey, $secretKey, $signHost) { + public function __construct(callable $nextHandler, $accessKey, $secretKey, $options) { $this->nextHandler = $nextHandler; - $this->signature = new Signature($accessKey, $secretKey, $signHost); + $this->signature = new Signature($accessKey, $secretKey, $options); } public function __invoke(RequestInterface $request, array $options) { diff --git a/vendor/qiniu/php-sdk/.gitignore b/vendor/qiniu/php-sdk/.gitignore new file mode 100644 index 0000000..4c842c8 --- /dev/null +++ b/vendor/qiniu/php-sdk/.gitignore @@ -0,0 +1,12 @@ +*.phar +*.zip +build/artifacts +phpunit.xml +phpunit.functional.xml +.DS_Store +.swp +.build +composer.lock +vendor +src/package.xml +.idea/ diff --git a/vendor/qiniu/php-sdk/CHANGELOG.md b/vendor/qiniu/php-sdk/CHANGELOG.md index 9136207..200b76a 100644 --- a/vendor/qiniu/php-sdk/CHANGELOG.md +++ b/vendor/qiniu/php-sdk/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 7.5.0 (2022-04-18) +* 对象存储,新增支持 [深度归档存储类型](https://developer.qiniu.com/kodo/3956/kodo-category#deep_archive) + +## 7.4.3 (2022-04-01) +* 优化签名算法逻辑 + +## 7.4.2(2022-03-01) +* 修复已知关于请求 Header 处理不当问题,比如没有处理为大小写不敏感等问题 + ## 7.4.1(2021-09-24) * 修复了 分片上传 v2 已知问题,明确给出了参数不合理情况下对应的错误提示信息 diff --git a/vendor/qiniu/php-sdk/autoload.php b/vendor/qiniu/php-sdk/autoload.php index 4379b91..b553d1c 100644 --- a/vendor/qiniu/php-sdk/autoload.php +++ b/vendor/qiniu/php-sdk/autoload.php @@ -1,5 +1,9 @@ =5.3.3" + "php": ">=5.3.3", + "myclabs/php-enum": "1.6.6" }, "require-dev": { "paragonie/random_compat": ">=2", diff --git a/vendor/qiniu/php-sdk/examples/bucket_lifecycleRule.php b/vendor/qiniu/php-sdk/examples/bucket_lifecycleRule.php index 8827207..9dc0f84 100644 --- a/vendor/qiniu/php-sdk/examples/bucket_lifecycleRule.php +++ b/vendor/qiniu/php-sdk/examples/bucket_lifecycleRule.php @@ -21,13 +21,17 @@ $name = 'demo'; // 生命周期规则名称 $prefix = 'test'; // 规则策略中的前缀 $delete_after_days = 80; // 用户新创建的文件将在该设定时间之后自动删除 $to_line_after_days = 70; // 用户新创建的文件将在该设定的时间之后自动转为低频存储 +$to_archive_after_days = 72; // 用户新创建的文件将在该设定的时间之后自动转为归档存储 +$to_deep_archive_after_days = 74; // 用户新创建的文件将在该设定的时间之后自动转为深度归档存储 list($ret, $err) = $bucketManager->bucketLifecycleRule( $bucket, $name, $prefix, $delete_after_days, - $to_line_after_days + $to_line_after_days, + $to_archive_after_days, + $to_deep_archive_after_days ); if ($err != null) { var_dump($err); diff --git a/vendor/qiniu/php-sdk/examples/censor_video.php b/vendor/qiniu/php-sdk/examples/censor_video.php old mode 100644 new mode 100755 diff --git a/vendor/qiniu/php-sdk/examples/rs_batch_change_type.php b/vendor/qiniu/php-sdk/examples/rs_batch_change_type.php index 8a22483..6c8df84 100644 --- a/vendor/qiniu/php-sdk/examples/rs_batch_change_type.php +++ b/vendor/qiniu/php-sdk/examples/rs_batch_change_type.php @@ -25,12 +25,17 @@ $keys = array( $keyTypePairs = array(); -// type=0表示普通存储,type=1表示低频存储 +// key 是文件 +// value 是存储类型(fileType) +// 0 表示普通存储 +// 1 表示低频存储 +// 2 表示归档存储 +// 3 表示深度归档存储 foreach ($keys as $key) { $keyTypePairs[$key] = 1; } -$ops = $bucketManager->buildBatchChangeType($bucket, $keyTypePairs); +$ops = BucketManager::buildBatchChangeType($bucket, $keyTypePairs); list($ret, $err) = $bucketManager->batch($ops); if ($err != null) { var_dump($err); diff --git a/vendor/qiniu/php-sdk/examples/rs_batch_restore_ar.php b/vendor/qiniu/php-sdk/examples/rs_batch_restore_ar.php new file mode 100644 index 0000000..b2f79d0 --- /dev/null +++ b/vendor/qiniu/php-sdk/examples/rs_batch_restore_ar.php @@ -0,0 +1,41 @@ +batch($ops); +if ($err != null) { + var_dump($err); +} else { + var_dump($ret); +} diff --git a/vendor/qiniu/php-sdk/examples/rs_change_mime.php b/vendor/qiniu/php-sdk/examples/rs_change_mime.php index 399143d..f4442aa 100644 --- a/vendor/qiniu/php-sdk/examples/rs_change_mime.php +++ b/vendor/qiniu/php-sdk/examples/rs_change_mime.php @@ -21,7 +21,9 @@ $bucketManager = new BucketManager($auth, $config); $key = 'qiniu.mp4'; $newMime = 'video/x-mp4'; -$err = $bucketManager->changeMime($bucket, $key, $newMime); -if ($err) { - print_r($err); +list($ret, $err) = $bucketManager->changeMime($bucket, $key, $newMime); +if ($err != null) { + var_dump($err); +} else { + var_dump($ret); } diff --git a/vendor/qiniu/php-sdk/examples/rs_change_status.php b/vendor/qiniu/php-sdk/examples/rs_change_status.php index 40d243b..bedf61c 100644 --- a/vendor/qiniu/php-sdk/examples/rs_change_status.php +++ b/vendor/qiniu/php-sdk/examples/rs_change_status.php @@ -21,7 +21,9 @@ $status = 1;// 启用:0,禁用:1 $key = "qiniu.jpg"; -$err = $bucketManager->changeStatus($bucket, $key, $status); -if ($err) { - print_r($err); +list($ret, $err) = $bucketManager->changeStatus($bucket, $key, $status); +if ($err != null) { + var_dump($err); +} else { + var_dump($ret); } diff --git a/vendor/qiniu/php-sdk/examples/rs_change_type.php b/vendor/qiniu/php-sdk/examples/rs_change_type.php index 4b87c6f..802c9f4 100644 --- a/vendor/qiniu/php-sdk/examples/rs_change_type.php +++ b/vendor/qiniu/php-sdk/examples/rs_change_type.php @@ -21,9 +21,11 @@ $bucketManager = new BucketManager($auth, $config); // 参考文档:https://developer.qiniu.com/kodo/api/3710/chtype $key = "qiniu.mp4"; -$fileType = 1; // 0 表示标准存储;1 表示低频存储;2 表示归档存储 +$fileType = 1; // 0 表示标准存储;1 表示低频存储;2 表示归档存储;3 表示深度归档存储 -$err = $bucketManager->changeType($bucket, $key, $fileType); -if ($err) { - print_r($err); +list($ret, $err) = $bucketManager->changeType($bucket, $key, $fileType); +if ($err != null) { + var_dump($err); +} else { + var_dump($ret); } diff --git a/vendor/qiniu/php-sdk/examples/rs_copy.php b/vendor/qiniu/php-sdk/examples/rs_copy.php index 2e59374..aae4d96 100644 --- a/vendor/qiniu/php-sdk/examples/rs_copy.php +++ b/vendor/qiniu/php-sdk/examples/rs_copy.php @@ -25,7 +25,9 @@ $destBucket = $bucket; $srcKey = $key; $destKey = $key . "_copy"; -$err = $bucketManager->copy($srcBucket, $srcKey, $destBucket, $destKey, true); -if ($err) { - print_r($err); +list($ret, $err) = $bucketManager->copy($srcBucket, $srcKey, $destBucket, $destKey, true); +if ($err != null) { + var_dump($err); +} else { + var_dump($ret); } diff --git a/vendor/qiniu/php-sdk/examples/rs_delete.php b/vendor/qiniu/php-sdk/examples/rs_delete.php index a41cf22..ad97266 100644 --- a/vendor/qiniu/php-sdk/examples/rs_delete.php +++ b/vendor/qiniu/php-sdk/examples/rs_delete.php @@ -19,7 +19,9 @@ $bucketManager = new BucketManager($auth, $config); $key = "qiniu.mp4_copy"; -$err = $bucketManager->delete($bucket, $key); -if ($err) { - print_r($err); +list($ret, $err) = $bucketManager->delete($bucket, $key); +if ($err != null) { + var_dump($err); +} else { + var_dump($ret); } diff --git a/vendor/qiniu/php-sdk/examples/rs_delete_after_days.php b/vendor/qiniu/php-sdk/examples/rs_delete_after_days.php index 546d7cc..96e55de 100644 --- a/vendor/qiniu/php-sdk/examples/rs_delete_after_days.php +++ b/vendor/qiniu/php-sdk/examples/rs_delete_after_days.php @@ -18,7 +18,9 @@ $bucketManager = new \Qiniu\Storage\BucketManager($auth, $config); $key = 'qiniu.mp4'; $days = 10; // 设置为 0 表示取消生命周期 -$err = $bucketManager->deleteAfterDays($bucket, $key, $days); -if ($err) { - print_r($err); +list($ret, $err) = $bucketManager->deleteAfterDays($bucket, $key, $days); +if ($err != null) { + var_dump($err); +} else { + var_dump($ret); } diff --git a/vendor/qiniu/php-sdk/examples/rs_move.php b/vendor/qiniu/php-sdk/examples/rs_move.php index bffbfb6..a399665 100644 --- a/vendor/qiniu/php-sdk/examples/rs_move.php +++ b/vendor/qiniu/php-sdk/examples/rs_move.php @@ -21,7 +21,9 @@ $destKey = $key . "_move"; // 资源移动或者重命名 // 参考文档:https://developer.qiniu.com/kodo/api/1288/move -$err = $bucketManager->move($srcBucket, $srcKey, $destBucket, $destKey, true); -if ($err) { - print_r($err); +list($ret, $err) = $bucketManager->move($srcBucket, $srcKey, $destBucket, $destKey, true); +if ($err != null) { + var_dump($err); +} else { + var_dump($ret); } diff --git a/vendor/qiniu/php-sdk/examples/rs_prefetch.php b/vendor/qiniu/php-sdk/examples/rs_prefetch.php index 6ddc360..28af115 100644 --- a/vendor/qiniu/php-sdk/examples/rs_prefetch.php +++ b/vendor/qiniu/php-sdk/examples/rs_prefetch.php @@ -17,7 +17,9 @@ $bucketManager = new \Qiniu\Storage\BucketManager($auth, $config); // 镜像资源更新 // 参考文档:https://developer.qiniu.com/kodo/api/1293/prefetch -$err = $bucketManager->prefetch($bucket, $key); -if ($err) { - print_r($err); +list($ret, $err) = $bucketManager->prefetch($bucket, $key); +if ($err != null) { + var_dump($err); +} else { + var_dump($ret); } diff --git a/vendor/qiniu/php-sdk/examples/rs_restore.php b/vendor/qiniu/php-sdk/examples/rs_restore.php new file mode 100644 index 0000000..a3bf070 --- /dev/null +++ b/vendor/qiniu/php-sdk/examples/rs_restore.php @@ -0,0 +1,28 @@ +restoreAr($bucket, $key, 1); +if ($err != null) { + var_dump($err); +} else { + var_dump($ret); +} diff --git a/vendor/qiniu/php-sdk/examples/rtc/README.md b/vendor/qiniu/php-sdk/examples/rtc/README.md old mode 100644 new mode 100755 diff --git a/vendor/qiniu/php-sdk/examples/sms/README.md b/vendor/qiniu/php-sdk/examples/sms/README.md old mode 100644 new mode 100755 diff --git a/vendor/qiniu/php-sdk/src/Qiniu/Auth.php b/vendor/qiniu/php-sdk/src/Qiniu/Auth.php index 8452ac0..22cd395 100644 --- a/vendor/qiniu/php-sdk/src/Qiniu/Auth.php +++ b/vendor/qiniu/php-sdk/src/Qiniu/Auth.php @@ -1,6 +1,7 @@ sign($data); } + /** + * @param string $urlString + * @param string $method + * @param string $body + * @param null|Header $headers + */ + public function signQiniuAuthorization($urlString, $method = "GET", $body = "", $headers = null) + { + $url = parse_url($urlString); + if (!$url) { + return array(null, new \Exception("parse_url error")); + } + + // append method, path and query + if ($method === "") { + $data = "GET "; + } else { + $data = $method . " "; + } + if (isset($url["path"])) { + $data .= $url["path"]; + } + if (isset($url["query"])) { + $data .= "?" . $url["query"]; + } + + // append Host + $data .= "\n"; + $data .= "Host: "; + if (isset($url["host"])) { + $data .= $url["host"]; + } + if (isset($url["port"]) && $url["port"] > 0) { + $data .= ":" . $url["port"]; + } + + // try append content type + if ($headers != null && isset($headers["Content-Type"])) { + // append content type + $data .= "\n"; + $data .= "Content-Type: " . $headers["Content-Type"]; + } + + // try append xQiniuHeaders + if ($headers != null) { + $headerLines = array(); + $keyPrefix = "X-Qiniu-"; + foreach ($headers as $k => $v) { + if (strlen($k) > strlen($keyPrefix) && strpos($k, $keyPrefix) === 0) { + array_push( + $headerLines, + $k . ": " . $v + ); + } + } + if (count($headerLines) > 0) { + $data .= "\n"; + sort($headerLines); + $data .= implode("\n", $headerLines); + } + } + + // append body + $data .= "\n\n"; + if (strlen($body) > 0 + && isset($headers["Content-Type"]) + && $headers["Content-Type"] != "application/octet-stream" + ) { + $data .= $body; + } + + return array($this->sign(utf8_encode($data)), null); + } + public function verifyCallback($contentType, $originAuthorization, $url, $body) { $authorization = 'QBox ' . $this->signRequest($url, $body, $contentType); @@ -141,48 +216,16 @@ final class Auth public function authorizationV2($url, $method, $body = null, $contentType = null) { - $urlItems = parse_url($url); - $host = $urlItems['host']; - - if (isset($urlItems['port'])) { - $port = $urlItems['port']; - } else { - $port = ''; - } - - $path = $urlItems['path']; - if (isset($urlItems['query'])) { - $query = $urlItems['query']; - } else { - $query = ''; + $headers = null; + $result = array(); + if ($contentType != null) { + $headers = new Header(array( + 'Content-Type' => array($contentType), + )); + $result['Content-Type'] = $contentType; } - - //write request uri - $toSignStr = $method . ' ' . $path; - if (!empty($query)) { - $toSignStr .= '?' . $query; - } - - //write host and port - $toSignStr .= "\nHost: " . $host; - if (!empty($port)) { - $toSignStr .= ":" . $port; - } - - //write content type - if (!empty($contentType)) { - $toSignStr .= "\nContent-Type: " . $contentType; - } - - $toSignStr .= "\n\n"; - - //write body - if (!empty($body)) { - $toSignStr .= $body; - } - - $sign = $this->sign($toSignStr); - $auth = 'Qiniu ' . $sign; - return array('Authorization' => $auth); + list($sign) = $this->signQiniuAuthorization($url, $method, $body, $headers); + $result['Authorization'] = 'Qiniu ' . $sign; + return $result; } } diff --git a/vendor/qiniu/php-sdk/src/Qiniu/Config.php b/vendor/qiniu/php-sdk/src/Qiniu/Config.php index 77c4238..b93d99c 100644 --- a/vendor/qiniu/php-sdk/src/Qiniu/Config.php +++ b/vendor/qiniu/php-sdk/src/Qiniu/Config.php @@ -3,7 +3,7 @@ namespace Qiniu; final class Config { - const SDK_VER = '7.4.1'; + const SDK_VER = '7.5.0'; const BLOCK_SIZE = 4194304; //4*1024*1024 分块上传块大小,该参数为接口规格,不能修改 @@ -133,6 +133,12 @@ final class Config $this->regionCache[$cacheId] = $region; } else { $region = Zone::queryZone($accessKey, $bucket); + if (is_array($region)) { + list($region, $err) = $region; + if ($err != null) { + throw new \Exception($err->message()); + } + } $this->regionCache[$cacheId] = $region; } return $region; diff --git a/vendor/qiniu/php-sdk/src/Qiniu/Enum/QiniuEnum.php b/vendor/qiniu/php-sdk/src/Qiniu/Enum/QiniuEnum.php new file mode 100644 index 0000000..28afac8 --- /dev/null +++ b/vendor/qiniu/php-sdk/src/Qiniu/Enum/QiniuEnum.php @@ -0,0 +1,41 @@ + 1) { - $kv[0] =self::ucwordsHyphen($kv[0]); - $headers[$kv[0]] = trim($kv[1]); - } - } - return $headers; - } - private static function escapeQuotes($str) { $find = array("\\", "\""); $replace = array("\\\\", "\\\""); return str_replace($find, $replace, $str); } - - private static function ucwordsHyphen($str) - { - return str_replace('- ', '-', ucwords(str_replace('-', '- ', $str))); - } } diff --git a/vendor/qiniu/php-sdk/src/Qiniu/Http/Header.php b/vendor/qiniu/php-sdk/src/Qiniu/Http/Header.php new file mode 100644 index 0000000..cac8d82 --- /dev/null +++ b/vendor/qiniu/php-sdk/src/Qiniu/Http/Header.php @@ -0,0 +1,274 @@ + $values) { + $normalizedKey = self::normalizeKey($key); + $normalizedValues = array(); + foreach ($values as $value) { + array_push($normalizedValues, self::normalizeValue($value)); + } + $this->data[$normalizedKey] = $normalizedValues; + } + return $this; + } + + /** + * return origin headers, which is field name case-sensitive + * + * @param string $raw + * + * @return array + */ + public static function parseRawText($raw) + { + $headers = array(); + $headerLines = explode("\r\n", $raw); + foreach ($headerLines as $line) { + $headerLine = trim($line); + $kv = explode(':', $headerLine); + if (count($kv) <= 1) { + continue; + } + // for http2 [Pseudo-Header Fields](https://datatracker.ietf.org/doc/html/rfc7540#section-8.1.2.1) + if ($kv[0] == "") { + $fieldName = ":" . $kv[1]; + } else { + $fieldName = $kv[0]; + } + $fieldValue = trim(substr($headerLine, strlen($fieldName . ":"))); + if (isset($headers[$fieldName])) { + array_push($headers[$fieldName], $fieldValue); + } else { + $headers[$fieldName] = array($fieldValue); + } + } + return $headers; + } + + /** + * @param string $raw + * + * @return Header + */ + public static function fromRawText($raw) + { + return new Header(self::parseRawText($raw)); + } + + /** + * @param string $key + * + * @return string + */ + public static function normalizeKey($key) + { + $key = trim($key); + + if (!self::isValidKeyName($key)) { + return $key; + } + + return ucwords(strtolower($key), '-'); + } + + /** + * @param string|numeric $value + * + * @return string|numeric + */ + public static function normalizeValue($value) + { + if (is_numeric($value)) { + return $value + 0; + } + return trim($value); + } + + /** + * @return array + */ + public function getRawData() + { + return $this->data; + } + + /** + * @param $offset string + * + * @return boolean + */ + public function offsetExists($offset) + { + $key = self::normalizeKey($offset); + return isset($this->data[$key]); + } + + /** + * @param $offset string + * + * @return string|null + */ + public function offsetGet($offset) + { + $key = self::normalizeKey($offset); + if (isset($this->data[$key]) && count($this->data[$key])) { + return $this->data[$key][0]; + } else { + return null; + } + } + + /** + * @param $offset string + * @param $value string + * + * @return void + */ + public function offsetSet($offset, $value) + { + $key = self::normalizeKey($offset); + if (isset($this->data[$key]) && count($this->data[$key]) > 0) { + $this->data[$key][0] = self::normalizeValue($value); + } else { + $this->data[$key] = array(self::normalizeValue($value)); + } + } + + /** + * @return void + */ + public function offsetUnset($offset) + { + $key = self::normalizeKey($offset); + unset($this->data[$key]); + } + + /** + * @return \ArrayIterator + */ + public function getIterator() + { + $arr = array(); + foreach ($this->data as $k => $v) { + $arr[$k] = $v[0]; + } + return new \ArrayIterator($arr); + } + + /** + * @return int + */ + public function count() + { + return count($this->data); + } + + private static $isTokenTable = array( + '!' => true, + '#' => true, + '$' => true, + '%' => true, + '&' => true, + '\'' => true, + '*' => true, + '+' => true, + '-' => true, + '.' => true, + '0' => true, + '1' => true, + '2' => true, + '3' => true, + '4' => true, + '5' => true, + '6' => true, + '7' => true, + '8' => true, + '9' => true, + 'A' => true, + 'B' => true, + 'C' => true, + 'D' => true, + 'E' => true, + 'F' => true, + 'G' => true, + 'H' => true, + 'I' => true, + 'J' => true, + 'K' => true, + 'L' => true, + 'M' => true, + 'N' => true, + 'O' => true, + 'P' => true, + 'Q' => true, + 'R' => true, + 'S' => true, + 'T' => true, + 'U' => true, + 'W' => true, + 'V' => true, + 'X' => true, + 'Y' => true, + 'Z' => true, + '^' => true, + '_' => true, + '`' => true, + 'a' => true, + 'b' => true, + 'c' => true, + 'd' => true, + 'e' => true, + 'f' => true, + 'g' => true, + 'h' => true, + 'i' => true, + 'j' => true, + 'k' => true, + 'l' => true, + 'm' => true, + 'n' => true, + 'o' => true, + 'p' => true, + 'q' => true, + 'r' => true, + 's' => true, + 't' => true, + 'u' => true, + 'v' => true, + 'w' => true, + 'x' => true, + 'y' => true, + 'z' => true, + '|' => true, + '~' => true, + ); + + /** + * @param string $str + * + * @return boolean + */ + private static function isValidKeyName($str) + { + for ($i = 0; $i < strlen($str); $i += 1) { + if (!isset(self::$isTokenTable[$str[$i]])) { + return false; + } + } + return true; + } +} diff --git a/vendor/qiniu/php-sdk/src/Qiniu/Http/Response.php b/vendor/qiniu/php-sdk/src/Qiniu/Http/Response.php index 2008cc6..bb50dd9 100644 --- a/vendor/qiniu/php-sdk/src/Qiniu/Http/Response.php +++ b/vendor/qiniu/php-sdk/src/Qiniu/Http/Response.php @@ -8,7 +8,21 @@ namespace Qiniu\Http; final class Response { public $statusCode; + /** + * deprecated because of field names case-sensitive. + * use $normalizedHeaders instead which field names are case-insensitive. + * but be careful not to use $normalizedHeaders with `array_*` functions, + * such as `array_key_exists`, `array_keys`, `array_values`. + * + * use `isset` instead of `array_key_exists`, + * and should never use `array_key_exists` at http header. + * + * use `foreach` instead of `array_keys`, `array_values`. + * + * @deprecated + */ public $headers; + public $normalizedHeaders; public $body; public $error; private $jsonData; @@ -87,21 +101,31 @@ final class Response { $this->statusCode = $code; $this->duration = $duration; - $this->headers = $headers; + $this->headers = array(); $this->body = $body; $this->error = $error; $this->jsonData = null; + if ($error !== null) { return; } + foreach ($headers as $k => $vs) { + if (is_array($vs)) { + $this->headers[$k] = $vs[count($vs) - 1]; + } else { + $this->headers[$k] = $vs; + } + } + $this->normalizedHeaders = new Header($headers); + if ($body === null) { if ($code >= 400) { $this->error = self::$statusTexts[$code]; } return; } - if (self::isJson($headers)) { + if (self::isJson($this->normalizedHeaders)) { try { $jsonData = self::bodyJson($body); if ($code >= 400) { @@ -128,8 +152,11 @@ final class Response return $this->jsonData; } - public function headers() + public function headers($normalized = false) { + if ($normalized) { + return $this->normalizedHeaders; + } return $this->headers; } @@ -145,24 +172,24 @@ final class Response public function xVia() { - $via = $this->headers['X-Via']; + $via = $this->normalizedHeaders['X-Via']; if ($via === null) { - $via = $this->headers['X-Px']; + $via = $this->normalizedHeaders['X-Px']; } if ($via === null) { - $via = $this->headers['Fw-Via']; + $via = $this->normalizedHeaders['Fw-Via']; } return $via; } public function xLog() { - return $this->headers['X-Log']; + return $this->normalizedHeaders['X-Log']; } public function xReqId() { - return $this->headers['X-Reqid']; + return $this->normalizedHeaders['X-Reqid']; } public function ok() @@ -180,7 +207,6 @@ final class Response private static function isJson($headers) { - return array_key_exists('content-type', $headers) || array_key_exists('Content-Type', $headers) && - strpos($headers['Content-Type'], 'application/json') === 0; + return isset($headers['Content-Type']) && strpos($headers['Content-Type'], 'application/json') === 0; } } diff --git a/vendor/qiniu/php-sdk/src/Qiniu/Rtc/AppClient.php b/vendor/qiniu/php-sdk/src/Qiniu/Rtc/AppClient.php old mode 100644 new mode 100755 diff --git a/vendor/qiniu/php-sdk/src/Qiniu/Storage/BucketManager.php b/vendor/qiniu/php-sdk/src/Qiniu/Storage/BucketManager.php index 600cb6c..93fa267 100644 --- a/vendor/qiniu/php-sdk/src/Qiniu/Storage/BucketManager.php +++ b/vendor/qiniu/php-sdk/src/Qiniu/Storage/BucketManager.php @@ -150,7 +150,7 @@ final class BucketManager \Qiniu\setWithoutEmpty($query, 'limit', $limit); \Qiniu\setWithoutEmpty($query, 'delimiter', $delimiter); $url = $this->getRsfHost() . '/list?' . http_build_query($query); - return $this->get($url); + return $this->getV2($url); } /** @@ -182,7 +182,7 @@ final class BucketManager \Qiniu\setWithoutEmpty($query, 'skipconfirm', $skipconfirm); $path = '/v2/list?' . http_build_query($query); $url = $this->getRsfHost() . $path; - $headers = $this->auth->authorization($url, null, 'application/x-www-form-urlencoded'); + $headers = $this->auth->authorizationV2($url, 'POST', null, 'application/x-www-form-urlencoded'); $ret = Client::post($url, null, $headers); if (!$ret->ok()) { return array(null, new Error($url, $ret)); @@ -203,14 +203,20 @@ final class BucketManager * 大于0表示多少天后删除,需大于 to_line_after_days * @param int $to_line_after_days 指定文件上传多少天后转低频存储。指定为0表示 * 不转低频存储,小于0表示上传的文件立即变低频存储 + * @param int $to_archive_after_days 指定文件上传多少天后转归档存储。指定为0表示 + * 不转归档存储,小于0表示上传的文件立即变归档存储 + * @param int $to_deep_archive_after_days 指定文件上传多少天后转深度归档存储。指定为0表示 + * 不转深度归档存储,小于0表示上传的文件立即变深度归档存储 * @return array */ public function bucketLifecycleRule( $bucket, $name, $prefix, - $delete_after_days, - $to_line_after_days + $delete_after_days = null, + $to_line_after_days = null, + $to_archive_after_days = null, + $to_deep_archive_after_days = null ) { $path = '/rules/add'; $params = array(); @@ -229,6 +235,12 @@ final class BucketManager if ($to_line_after_days) { $params['to_line_after_days'] = $to_line_after_days; } + if ($to_archive_after_days) { + $params['to_archive_after_days'] = $to_archive_after_days; + } + if ($to_deep_archive_after_days) { + $params['to_deep_archive_after_days'] = $to_deep_archive_after_days; + } $data = http_build_query($params); $info = $this->ucPost($path, $data); return $info; @@ -245,14 +257,20 @@ final class BucketManager * 大于0表示多少天后删除,需大于 to_line_after_days * @param int $to_line_after_days 指定文件上传多少天后转低频存储。指定为0表示不 * 转低频存储,小于0表示上传的文件立即变低频存储 + * @param int $to_archive_after_days 指定文件上传多少天后转归档存储。指定为0表示 + * 不转归档存储,小于0表示上传的文件立即变归档存储 + * @param int $to_deep_archive_after_days 指定文件上传多少天后转深度归档存储。指定为0表示 + * 不转深度归档存储,小于0表示上传的文件立即变深度归档存储 * @return array */ public function updateBucketLifecycleRule( $bucket, $name, $prefix, - $delete_after_days, - $to_line_after_days + $delete_after_days = null, + $to_line_after_days = null, + $to_archive_after_days = null, + $to_deep_archive_after_days = null ) { $path = '/rules/update'; $params = array(); @@ -271,6 +289,12 @@ final class BucketManager if ($to_line_after_days) { $params['to_line_after_days'] = $to_line_after_days; } + if ($to_archive_after_days) { + $params['to_archive_after_days'] = $to_archive_after_days; + } + if ($to_deep_archive_after_days) { + $params['to_deep_archive_after_days'] = $to_deep_archive_after_days; + } $data = http_build_query($params); return $this->ucPost($path, $data); } @@ -675,7 +699,7 @@ final class BucketManager * * @param string $bucket 待操作资源所在空间 * @param string $key 待操作资源文件名 - * @param int $fileType 0 表示标准存储;1 表示低频存储;2 表示归档存储 + * @param int $fileType 0 表示标准存储;1 表示低频存储;2 表示归档存储;3 表示深度归档存储 * * @return array * @link https://developer.qiniu.com/kodo/api/3710/chtype @@ -687,6 +711,23 @@ final class BucketManager return $this->rsPost($path); } + /** + * 解冻指定资源的存储类型 + * + * @param string $bucket 待操作资源所在空间 + * @param string $key 待操作资源文件名 + * @param int $freezeAfterDays 解冻有效时长,取值范围 1~7 + * + * @return array + * @link https://developer.qiniu.com/kodo/api/6380/restore-archive + */ + public function restoreAr($bucket, $key, $freezeAfterDays) + { + $resource = \Qiniu\entry($bucket, $key); + $path = '/restoreAr/' . $resource . '/freezeAfterDays/' . $freezeAfterDays; + return $this->rsPost($path); + } + /** * 修改文件的存储状态,即禁用状态和启用状态间的的互相转换 * @@ -722,10 +763,14 @@ final class BucketManager $path = '/fetch/' . $resource . '/to/' . $to; $ak = $this->auth->getAccessKey(); - $ioHost = $this->config->getIovipHost($ak, $bucket); + try { + $ioHost = $this->config->getIovipHost($ak, $bucket); + } catch (\Exception $err) { + return array(null, $err); + } $url = $ioHost . $path; - return $this->post($url, null); + return $this->postV2($url, null); } /** @@ -776,7 +821,11 @@ final class BucketManager $data = json_encode($params); $ak = $this->auth->getAccessKey(); - $apiHost = $this->config->getApiHost($ak, $bucket); + try { + $apiHost = $this->config->getApiHost($ak, $bucket); + } catch (\Exception $err) { + return array(null, $err); + } $url = $apiHost . $path; return $this->postV2($url, $data); @@ -801,13 +850,12 @@ final class BucketManager $url = $scheme . "api-" . $zone . ".qiniu.com/sisyphus/fetch?id=" . $id; - $response = $this->getV2($url); + list($ret, $err) = $this->getV2($url); - if (!$response->ok()) { - print("statusCode: " . $response->statusCode); - return array(null, new Error($url, $response)); + if ($err != null) { + return array(null, $err); } - return array($response->json(), null); + return array($ret, null); } @@ -826,10 +874,14 @@ final class BucketManager $path = '/prefetch/' . $resource; $ak = $this->auth->getAccessKey(); - $ioHost = $this->config->getIovipHost($ak, $bucket); + try { + $ioHost = $this->config->getIovipHost($ak, $bucket); + } catch (\Exception $err) { + return array(null, $err); + } $url = $ioHost . $path; - return $this->post($url, null); + return $this->postV2($url, null); } /** @@ -910,42 +962,42 @@ final class BucketManager private function rsPost($path, $body = null) { $url = $this->getRsHost() . $path; - return $this->post($url, $body); + return $this->postV2($url, $body); } private function apiPost($path, $body = null) { $url = $this->getApiHost() . $path; - return $this->post($url, $body); + return $this->postV2($url, $body); } private function ucPost($path, $body = null) { $url = $this->getUcHost() . $path; - return $this->post($url, $body); + return $this->postV2($url, $body); } private function ucGet($path) { $url = $this->getUcHost() . $path; - return $this->get($url); + return $this->getV2($url); } private function apiGet($path) { $url = $this->getApiHost() . $path; - return $this->get($url); + return $this->getV2($url); } private function rsGet($path) { $url = $this->getRsHost() . $path; - return $this->get($url); + return $this->getV2($url); } - private function get($url) + private function getV2($url) { - $headers = $this->auth->authorization($url); + $headers = $this->auth->authorizationV2($url, 'GET', null, 'application/x-www-form-urlencoded'); $ret = Client::get($url, $headers); if (!$ret->ok()) { return array(null, new Error($url, $ret)); @@ -953,27 +1005,9 @@ final class BucketManager return array($ret->json(), null); } - private function getV2($url) - { - $headers = $this->auth->authorizationV2($url, 'GET'); - return Client::get($url, $headers); - } - - private function post($url, $body) - { - $headers = $this->auth->authorization($url, $body, 'application/x-www-form-urlencoded'); - $ret = Client::post($url, $body, $headers); - if (!$ret->ok()) { - return array(null, new Error($url, $ret)); - } - $r = ($ret->body === null) ? array() : $ret->json(); - return array($r, null); - } - private function postV2($url, $body) { - $headers = $this->auth->authorizationV2($url, 'POST', $body, 'application/json'); - $headers["Content-Type"] = 'application/json'; + $headers = $this->auth->authorizationV2($url, 'POST', $body, 'application/x-www-form-urlencoded'); $ret = Client::post($url, $body, $headers); if (!$ret->ok()) { return array(null, new Error($url, $ret)); @@ -1038,6 +1072,15 @@ final class BucketManager return $data; } + public static function buildBatchRestoreAr($bucket, $key_restore_days_pairs) + { + $data = array(); + foreach ($key_restore_days_pairs as $key => $restore_days) { + array_push($data, '/restoreAr/' . \Qiniu\entry($bucket, $key) . '/freezeAfterDays/' . $restore_days); + } + return $data; + } + private static function oneKeyBatch($operation, $bucket, $keys) { $data = array(); diff --git a/vendor/qiniu/php-sdk/src/Qiniu/Storage/FormUploader.php b/vendor/qiniu/php-sdk/src/Qiniu/Storage/FormUploader.php index 1267004..453cc38 100644 --- a/vendor/qiniu/php-sdk/src/Qiniu/Storage/FormUploader.php +++ b/vendor/qiniu/php-sdk/src/Qiniu/Storage/FormUploader.php @@ -2,6 +2,7 @@ namespace Qiniu\Storage; +use Qiniu\Config; use Qiniu\Http\Error; use Qiniu\Http\Client; @@ -14,7 +15,7 @@ final class FormUploader * @param string $upToken 上传凭证 * @param string $key 上传文件名 * @param string $data 上传二进制流 - * @param string $config 上传配置 + * @param Config $config 上传配置 * @param string $params 自定义变量,规格参考 * https://developer.qiniu.com/kodo/manual/1235/vars#xvar * @param string $mime 上传数据的mimeType @@ -56,7 +57,11 @@ final class FormUploader return array(null, $err); } - $upHost = $config->getUpHost($accessKey, $bucket); + try { + $upHost = $config->getUpHost($accessKey, $bucket); + } catch (\Exception $err) { + return array(null, $err); + } $response = Client::multipartPost($upHost, $fields, 'file', $fname, $data, $mime); if (!$response->ok()) { @@ -71,7 +76,7 @@ final class FormUploader * @param string $upToken 上传凭证 * @param string $key 上传文件名 * @param string $filePath 上传文件的路径 - * @param string $config 上传配置 + * @param Config $config 上传配置 * @param string $params 自定义变量,规格参考 * https://developer.qiniu.com/kodo/manual/1235/vars#xvar * @param string $mime 上传数据的mimeType @@ -112,7 +117,11 @@ final class FormUploader return array(null, $err); } - $upHost = $config->getUpHost($accessKey, $bucket); + try { + $upHost = $config->getUpHost($accessKey, $bucket); + } catch (\Exception $err) { + return array(null, $err); + } $response = Client::post($upHost, $fields, $headers); if (!$response->ok()) { diff --git a/vendor/qiniu/php-sdk/src/Qiniu/Storage/ResumeUploader.php b/vendor/qiniu/php-sdk/src/Qiniu/Storage/ResumeUploader.php index 45829b8..eedc9af 100644 --- a/vendor/qiniu/php-sdk/src/Qiniu/Storage/ResumeUploader.php +++ b/vendor/qiniu/php-sdk/src/Qiniu/Storage/ResumeUploader.php @@ -5,6 +5,7 @@ namespace Qiniu\Storage; use Qiniu\Config; use Qiniu\Http\Client; use Qiniu\Http\Error; +use Qiniu\Enum\SplitUploadVersion; /** * 断点续上传类, 该类主要实现了断点续上传中的分块上传, @@ -40,7 +41,7 @@ final class ResumeUploader * @param string $size 上传流的大小 * @param string $params 自定义变量 * @param string $mime 上传数据的mimeType - * @param string $config + * @param Config $config * @param string $resumeRecordFile 断点续传的已上传的部分信息记录文件 * @param string $version 分片上传版本 目前支持v1/v2版本 默认v1 * @param string $partSize 分片上传v2字段 默认大小为4MB 分片大小范围为1 MB - 1 GB @@ -70,9 +71,14 @@ final class ResumeUploader $this->finishedEtags = array("etags"=>array(), "uploadId"=>"", "expiredAt"=>0, "uploaded"=>0); $this->config = $config; $this->resumeRecordFile = $resumeRecordFile ? $resumeRecordFile : null; - $this->version = $version ? $version : 'v1'; $this->partSize = $partSize ? $partSize : config::BLOCK_SIZE; + try { + $this->version = SplitUploadVersion::from($version ? $version : 'v1'); + } catch (\Exception $e) { + throw new \Exception("only support v1/v2 now!", 0, $e); + } + list($accessKey, $bucket, $err) = \Qiniu\explodeUpToken($upToken); $this->bucket = $bucket; if ($err != null) { @@ -92,7 +98,7 @@ final class ResumeUploader public function upload($fname) { $uploaded = 0; - if ($this->version == 'v2') { + if ($this->version == SplitUploadVersion::V2) { $partNumber = 1; $encodedObjectName = $this->key? \Qiniu\base64_urlSafeEncode($this->key) : '~'; }; @@ -125,13 +131,13 @@ final class ResumeUploader } if ($blkputRets) { - if ($this->version == 'v1') { + if ($this->version == SplitUploadVersion::V1) { if (isset($blkputRets['contexts']) && isset($blkputRets['uploaded']) && is_array($blkputRets['contexts']) && is_int($blkputRets['uploaded'])) { $this->contexts = $blkputRets['contexts']; $uploaded = $blkputRets['uploaded']; } - } elseif ($this->version == 'v2') { + } elseif ($this->version == SplitUploadVersion::V2) { if (isset($blkputRets["etags"]) && isset($blkputRets["uploadId"]) && isset($blkputRets["expiredAt"]) && $blkputRets["expiredAt"] > time() && $blkputRets["uploaded"] > 0 && is_array($blkputRets["etags"]) && @@ -149,13 +155,13 @@ final class ResumeUploader throw new \Exception("only support v1/v2 now!"); } } else { - if ($this->version == 'v2') { + if ($this->version == SplitUploadVersion::V2) { $this->makeInitReq($encodedObjectName); } } } else { // init a Multipart Upload task if choose v2 - if ($this->version == 'v2') { + if ($this->version == SplitUploadVersion::V2) { $this->makeInitReq($encodedObjectName); } } @@ -166,10 +172,10 @@ final class ResumeUploader if ($data === false) { throw new \Exception("file read failed", 1); } - if ($this->version == 'v1') { + if ($this->version == SplitUploadVersion::V1) { $crc = \Qiniu\crc32_data($data); $response = $this->makeBlock($data, $blockSize); - } else { + } elseif ($this->version == SplitUploadVersion::V2) { $md5 = md5($data); $response = $this->uploadPart( $data, @@ -178,6 +184,8 @@ final class ResumeUploader $encodedObjectName, $md5 ); + } else { + throw new \Exception("only support v1/v2 now!"); } $ret = null; @@ -193,7 +201,7 @@ final class ResumeUploader $this->host = $upHostBackup; } - if ($this->version == 'v1') { + if ($this->version == SplitUploadVersion::V1) { if ($response->needRetry() || !isset($ret['crc32']) || $crc != $ret['crc32']) { $response = $this->makeBlock($data, $blockSize); $ret = $response->json(); @@ -203,7 +211,7 @@ final class ResumeUploader return array(null, new Error($this->currentUrl, $response)); } array_push($this->contexts, $ret['ctx']); - } else { + } elseif ($this->version == SplitUploadVersion::V2) { if ($response->needRetry() || !isset($ret['md5']) || $md5 != $ret['md5']) { $response = $this->uploadPart( $data, @@ -221,22 +229,26 @@ final class ResumeUploader $blockStatus = array('etag' => $ret['etag'], 'partNumber' => $partNumber); array_push($this->finishedEtags['etags'], $blockStatus); $partNumber += 1; + } else { + throw new \Exception("only support v1/v2 now!"); } $uploaded += $blockSize; - if ($this->version == 'v2') { + if ($this->version == SplitUploadVersion::V2) { $this->finishedEtags['uploaded'] = $uploaded; } if ($this->resumeRecordFile !== null) { - if ($this->version == 'v1') { + if ($this->version == SplitUploadVersion::V1) { $recordData = array( 'contexts' => $this->contexts, 'uploaded' => $uploaded ); $recordData = json_encode($recordData); - } else { + } elseif ($this->version == SplitUploadVersion::V2) { $recordData = json_encode($this->finishedEtags); + } else { + throw new \Exception("only support v1/v2 now!"); } if ($recordData) { $isWritten = file_put_contents($this->resumeRecordFile, $recordData); @@ -248,10 +260,12 @@ final class ResumeUploader } } } - if ($this->version == 'v1') { + if ($this->version == SplitUploadVersion::V1) { return $this->makeFile($fname); - } else { + } elseif ($this->version == SplitUploadVersion::V2) { return $this->completeParts($fname, $this->finishedEtags['uploadId'], $encodedObjectName); + } else { + throw new \Exception("only support v1/v2 now!"); } } diff --git a/vendor/qiniu/php-sdk/src/Qiniu/Storage/UploadManager.php b/vendor/qiniu/php-sdk/src/Qiniu/Storage/UploadManager.php index eb7db96..abadeb6 100644 --- a/vendor/qiniu/php-sdk/src/Qiniu/Storage/UploadManager.php +++ b/vendor/qiniu/php-sdk/src/Qiniu/Storage/UploadManager.php @@ -65,21 +65,23 @@ final class UploadManager /** * 上传文件到七牛 * - * @param $upToken 上传凭证 - * @param $key 上传文件名 - * @param $filePath 上传文件的路径 - * @param $params 自定义变量,规格参考 - * http://developer.qiniu.com/docs/v6/api/overview/up/response/vars.html#xvar - * @param $mime 上传数据的mimeType - * @param $checkCrc 是否校验crc32 - * @param $version 分片上传版本 目前支持v1/v2版本 默认v1 - * @param $partSize 分片上传v2字段 默认大小为4MB 分片大小范围为1 MB - 1 GB - * @param $resumeRecordFile 断点续传文件路径 默认为null - * @return array 包含已上传文件的信息,类似: + * @param string $upToken 上传凭证 + * @param string $key 上传文件名 + * @param string $filePath 上传文件的路径 + * @param array $params 定义变量,规格参考 + * http://developer.qiniu.com/docs/v6/api/overview/up/response/vars.html#xvar + * @param boolean $mime 上传数据的mimeType + * @param string $checkCrc 是否校验crc32 + * @param string $resumeRecordFile 断点续传文件路径 默认为null + * @param string $version 分片上传版本 目前支持v1/v2版本 默认v1 + * @param int $partSize 分片上传v2字段 默认大小为4MB 分片大小范围为1 MB - 1 GB + * + * @return array 包含已上传文件的信息,类似: * [ * "hash" => "", * "key" => "" * ] + * @throws \Exception */ public function putFile( $upToken, diff --git a/vendor/qiniu/php-sdk/test-env.sh b/vendor/qiniu/php-sdk/test-env.sh old mode 100644 new mode 100755 diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/AuthTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/AuthTest.php new file mode 100755 index 0000000..8c6c531 --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/AuthTest.php @@ -0,0 +1,211 @@ +sign('test'); + $this->assertEquals('abcdefghklmnopq:mSNBTR7uS2crJsyFr2Amwv1LaYg=', $token); + } + + public function testSignWithData() + { + global $dummyAuth; + $token = $dummyAuth->signWithData('test'); + $this->assertEquals('abcdefghklmnopq:-jP8eEV9v48MkYiBGs81aDxl60E=:dGVzdA==', $token); + } + + public function testSignRequest() + { + global $dummyAuth; + $token = $dummyAuth->signRequest('http://www.qiniu.com?go=1', 'test', ''); + $this->assertEquals('abcdefghklmnopq:cFyRVoWrE3IugPIMP5YJFTO-O-Y=', $token); + $ctype = 'application/x-www-form-urlencoded'; + $token = $dummyAuth->signRequest('http://www.qiniu.com?go=1', 'test', $ctype); + $this->assertEquals($token, 'abcdefghklmnopq:svWRNcacOE-YMsc70nuIYdaa1e4='); + } + + public function testPrivateDownloadUrl() + { + global $dummyAuth; + $_SERVER['override_qiniu_auth_time'] = true; + $url = $dummyAuth->privateDownloadUrl('http://www.qiniu.com?go=1'); + $expect = 'http://www.qiniu.com?go=1&e=1234571490&token=abcdefghklmnopq:8vzBeLZ9W3E4kbBLFLW0Xe0u7v4='; + $this->assertEquals($expect, $url); + unset($_SERVER['override_qiniu_auth_time']); + } + + public function testUploadToken() + { + global $dummyAuth; + $_SERVER['override_qiniu_auth_time'] = true; + $token = $dummyAuth->uploadToken('1', '2', 3600, array('endUser' => 'y')); + // @codingStandardsIgnoreStart + $exp = 'abcdefghklmnopq:yyeexeUkPOROoTGvwBjJ0F0VLEo=:eyJlbmRVc2VyIjoieSIsInNjb3BlIjoiMToyIiwiZGVhZGxpbmUiOjEyMzQ1NzE0OTB9'; + // @codingStandardsIgnoreEnd + $this->assertEquals($exp, $token); + unset($_SERVER['override_qiniu_auth_time']); + } + + public function testVerifyCallback() + { + } + + public function testSignQiniuAuthorization() + { + $auth = new Auth("ak", "sk"); + + // --- + $url = ""; + $method = ""; + $headers = new Header(array( + "X-Qiniu-" => array("a"), + "X-Qiniu" => array("b"), + "Content-Type" => array("application/x-www-form-urlencoded"), + )); + $body = "{\"name\": \"test\"}"; + list($sign, $err) = $auth->signQiniuAuthorization($url, $method, $body, $headers); + $this->assertNull($err); + $this->assertEquals("ak:0i1vKClRDWFyNkcTFzwcE7PzX74=", $sign); + + // --- + $url = ""; + $method = ""; + $headers = new Header(array( + "Content-Type" => array("application/json"), + )); + list($sign, $err) = $auth->signQiniuAuthorization($url, $method, $body, $headers); + $this->assertNull($err); + $this->assertEquals("ak:K1DI0goT05yhGizDFE5FiPJxAj4=", $sign); + + // --- + $url = ""; + $method = "GET"; + $headers = new Header(array( + "X-Qiniu-" => array("a"), + "X-Qiniu" => array("b"), + "Content-Type" => array("application/x-www-form-urlencoded"), + )); + $body = "{\"name\": \"test\"}"; + list($sign, $err) = $auth->signQiniuAuthorization($url, $method, $body, $headers); + $this->assertNull($err); + $this->assertEquals("ak:0i1vKClRDWFyNkcTFzwcE7PzX74=", $sign); + + // --- + $url = ""; + $method = "POST"; + $headers = new Header(array( + "Content-Type" => array("application/json"), + "X-Qiniu" => array("b"), + )); + $body = "{\"name\": \"test\"}"; + list($sign, $err) = $auth->signQiniuAuthorization($url, $method, $body, $headers); + $this->assertNull($err); + $this->assertEquals("ak:0ujEjW_vLRZxebsveBgqa3JyQ-w=", $sign); + + // --- + $url = "http://upload.qiniup.com"; + $method = ""; + $headers = new Header(array( + "X-Qiniu-" => array("a"), + "X-Qiniu" => array("b"), + "Content-Type" => array("application/x-www-form-urlencoded"), + )); + $body = "{\"name\": \"test\"}"; + list($sign, $err) = $auth->signQiniuAuthorization($url, $method, $body, $headers); + $this->assertNull($err); + $this->assertEquals("ak:GShw5NitGmd5TLoo38nDkGUofRw=", $sign); + + // --- + $url = "http://upload.qiniup.com"; + $method = ""; + $headers = new Header(array( + "Content-Type" => array("application/json"), + "X-Qiniu-Bbb" => array("BBB", "AAA"), + "X-Qiniu-Aaa" => array("DDD", "CCC"), + "X-Qiniu-" => array("a"), + "X-Qiniu" => array("b"), + )); + $body = "{\"name\": \"test\"}"; + list($sign, $err) = $auth->signQiniuAuthorization($url, $method, $body, $headers); + $this->assertNull($err); + $this->assertEquals("ak:DhNA1UCaBqSHCsQjMOLRfVn63GQ=", $sign); + + // --- + $url = "http://upload.qiniup.com"; + $method = ""; + $headers = new Header(array( + "Content-Type" => array("application/x-www-form-urlencoded"), + "X-Qiniu-Bbb" => array("BBB", "AAA"), + "X-Qiniu-Aaa" => array("DDD", "CCC"), + "X-Qiniu-" => array("a"), + "X-Qiniu" => array("b"), + )); + $body = "name=test&language=go"; + list($sign, $err) = $auth->signQiniuAuthorization($url, $method, $body, $headers); + $this->assertNull($err); + $this->assertEquals("ak:KUAhrYh32P9bv0COD8ugZjDCmII=", $sign); + + // --- + $url = "http://upload.qiniup.com"; + $method = ""; + $headers = new Header(array( + "Content-Type" => array("application/x-www"), + "Content-Type" => array("application/x-www-form-urlencoded"), + "X-Qiniu-Bbb" => array("BBB", "AAA"), + "X-Qiniu-Aaa" => array("DDD", "CCC"), + )); + $body = "name=test&language=go"; + list($sign, $err) = $auth->signQiniuAuthorization($url, $method, $body, $headers); + $this->assertNull($err); + $this->assertEquals("ak:KUAhrYh32P9bv0COD8ugZjDCmII=", $sign); + + // --- + $url = "http://upload.qiniup.com/mkfile/sdf.jpg"; + $method = ""; + $headers = new Header(array( + "Content-Type" => array("application/x-www-form-urlencoded"), + "X-Qiniu-Bbb" => array("BBB", "AAA"), + "X-Qiniu-Aaa" => array("DDD", "CCC"), + "X-Qiniu-" => array("a"), + "X-Qiniu" => array("b"), + )); + $body = "name=test&language=go"; + list($sign, $err) = $auth->signQiniuAuthorization($url, $method, $body, $headers); + $this->assertNull($err); + $this->assertEquals("ak:fkRck5_LeyfwdkyyLk-hyNwGKac=", $sign); + + $url = "http://upload.qiniup.com/mkfile/sdf.jpg?s=er3&df"; + $method = ""; + $headers = new Header(array( + "Content-Type" => array("application/x-www-form-urlencoded"), + "X-Qiniu-Bbb" => array("BBB", "AAA"), + "X-Qiniu-Aaa" => array("DDD", "CCC"), + "X-Qiniu-" => array("a"), + "X-Qiniu" => array("b"), + )); + $body = "name=test&language=go"; + list($sign, $err) = $auth->signQiniuAuthorization($url, $method, $body, $headers); + $this->assertNull($err); + $this->assertEquals("ak:PUFPWsEUIpk_dzUvvxTTmwhp3p4=", $sign); + } + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/Base64Test.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/Base64Test.php new file mode 100755 index 0000000..6d63353 --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/Base64Test.php @@ -0,0 +1,14 @@ +assertEquals($a, \Qiniu\base64_urlSafeDecode($b)); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/BucketTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/BucketTest.php new file mode 100755 index 0000000..3fd51bb --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/BucketTest.php @@ -0,0 +1,598 @@ +bucketName = $bucketName; + $this->key = $key; + $this->key2 = $key2; + + global $customCallbackURL; + $this->customCallbackURL = $customCallbackURL; + + global $testAuth; + $config = new Config(); + $this->bucketManager = new BucketManager($testAuth, $config); + + global $dummyAuth; + $this->dummyBucketManager = new BucketManager($dummyAuth); + } + + public function testBuckets() + { + + list($list, $error) = $this->bucketManager->buckets(); + $this->assertNull($error); + $this->assertTrue(in_array($this->bucketName, $list)); + + list($list2, $error) = $this->dummyBucketManager->buckets(); + $this->assertEquals(401, $error->code()); + $this->assertNotNull($error->message()); + $this->assertNotNull($error->getResponse()); + $this->assertNull($list2); + } + + public function testListbuckets() + { + list($ret, $error) = $this->bucketManager->listbuckets('z0'); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testCreateBucket() + { + list($ret, $error) = $this->bucketManager->createBucket('phpsdk-ci-test'); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testDeleteBucket() + { + list($ret, $error) = $this->bucketManager->deleteBucket('phpsdk-ci-test'); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testDomains() + { + list($ret, $error) = $this->bucketManager->domains($this->bucketName); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testBucketInfo() + { + list($ret, $error) = $this->bucketManager->bucketInfo($this->bucketName); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testBucketInfos() + { + list($ret, $error) = $this->bucketManager->bucketInfos('z0'); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testList() + { + list($ret, $error) = $this->bucketManager->listFiles($this->bucketName, null, null, 10); + $this->assertNull($error); + $this->assertNotNull($ret['items'][0]); + $this->assertNotNull($ret['marker']); + } + + public function testListFilesv2() + { + list($ret, $error) = $this->bucketManager->listFilesv2($this->bucketName, null, null, 10); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testBucketLifecycleRule() + { + // delete + $this->bucketManager->deleteBucketLifecycleRule($this->bucketName, 'demo'); + + // add + list($ret, $error) = $this->bucketManager->bucketLifecycleRule( + $this->bucketName, + 'demo', + 'test', + 80, + 70, + 72, + 74 + ); + $this->assertNull($error); + $this->assertNotNull($ret); + + // get + list($ret, $error) = $this->bucketManager->getBucketLifecycleRules($this->bucketName); + $this->assertNull($error); + $this->assertNotNull($ret); + $rule = null; + foreach ($ret as $r) { + if ($r["name"] === "demo") { + $rule = $r; + break; + } + } + $this->assertNotNull($rule); + $this->assertEquals("test", $rule["prefix"]); + $this->assertEquals(80, $rule["delete_after_days"]); + $this->assertEquals(70, $rule["to_line_after_days"]); + $this->assertEquals(72, $rule["to_archive_after_days"]); + $this->assertEquals(74, $rule["to_deep_archive_after_days"]); + + // update + list($ret, $error) = $this->bucketManager->updateBucketLifecycleRule( + $this->bucketName, + 'demo', + 'testupdate', + 90, + 75, + 80, + 85 + ); + $this->assertNull($error); + $this->assertNotNull($ret); + + // get + list($ret, $error) = $this->bucketManager->getBucketLifecycleRules($this->bucketName); + $this->assertNull($error); + $this->assertNotNull($ret); + $rule = null; + foreach ($ret as $r) { + if ($r["name"] === "demo") { + $rule = $r; + break; + } + } + $this->assertNotNull($rule); + $this->assertEquals("testupdate", $rule["prefix"]); + $this->assertEquals(90, $rule["delete_after_days"]); + $this->assertEquals(75, $rule["to_line_after_days"]); + $this->assertEquals(80, $rule["to_archive_after_days"]); + $this->assertEquals(85, $rule["to_deep_archive_after_days"]); + + // delete + list($ret, $error) = $this->bucketManager->deleteBucketLifecycleRule($this->bucketName, 'demo'); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testPutBucketEvent() + { + list($ret, $error) = $this->bucketManager->putBucketEvent( + $this->bucketName, + 'bucketevent', + 'test', + 'img', + array('copy'), + $this->customCallbackURL + ); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testUpdateBucketEvent() + { + list($ret, $error) = $this->bucketManager->updateBucketEvent( + $this->bucketName, + 'bucketevent', + 'test', + 'video', + array('copy'), + $this->customCallbackURL + ); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testGetBucketEvent() + { + list($ret, $error) = $this->bucketManager->getBucketEvents($this->bucketName); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testDeleteBucketEvent() + { + list($ret, $error) = $this->bucketManager->deleteBucketEvent($this->bucketName, 'bucketevent'); + $this->assertNull($error); + $this->assertNotNull($ret); + } + + public function testStat() + { + list($stat, $error) = $this->bucketManager->stat($this->bucketName, $this->key); + $this->assertNull($error); + $this->assertNotNull($stat); + $this->assertNotNull($stat['hash']); + + list($stat, $error) = $this->bucketManager->stat($this->bucketName, 'nofile'); + $this->assertEquals(612, $error->code()); + $this->assertNotNull($error->message()); + $this->assertNull($stat); + + list($stat, $error) = $this->bucketManager->stat('nobucket', 'nofile'); + $this->assertEquals(631, $error->code()); + $this->assertNotNull($error->message()); + $this->assertNull($stat); + } + + public function testDelete() + { + list($ret, $error) = $this->bucketManager->delete($this->bucketName, 'del'); + $this->assertNotNull($error); + $this->assertNull($ret); + } + + + public function testRename() + { + $key = 'renamefrom' . rand(); + $this->bucketManager->copy($this->bucketName, $this->key, $this->bucketName, $key); + $key2 = 'renameto' . $key; + list($ret, $error) = $this->bucketManager->rename($this->bucketName, $key, $key2); + $this->assertNull($error); + list($ret, $error) = $this->bucketManager->delete($this->bucketName, $key2); + $this->assertNull($error); + } + + + public function testCopy() + { + $key = 'copyto' . rand(); + $this->bucketManager->delete($this->bucketName, $key); + + list($ret, $error) = $this->bucketManager->copy( + $this->bucketName, + $this->key, + $this->bucketName, + $key + ); + $this->assertNull($error); + + //test force copy + list($ret, $error) = $this->bucketManager->copy( + $this->bucketName, + $this->key2, + $this->bucketName, + $key, + true + ); + $this->assertNull($error); + + list($key2Stat,) = $this->bucketManager->stat($this->bucketName, $this->key2); + list($key2CopiedStat,) = $this->bucketManager->stat($this->bucketName, $key); + + $this->assertEquals($key2Stat['hash'], $key2CopiedStat['hash']); + + list($ret, $error) = $this->bucketManager->delete($this->bucketName, $key); + $this->assertNull($error); + } + + + public function testChangeMime() + { + list($ret, $error) = $this->bucketManager->changeMime( + $this->bucketName, + 'php-sdk.html', + 'text/html' + ); + $this->assertNull($error); + } + + public function testPrefetch() + { + list($ret, $error) = $this->bucketManager->prefetch( + $this->bucketName, + 'php-sdk.html' + ); + $this->assertNull($error); + } + + public function testPrefetchFailed() + { + list($ret, $error) = $this->bucketManager->prefetch( + 'fakebucket', + 'php-sdk.html' + ); + $this->assertNotNull($error); + $this->assertNull($ret); + } + + public function testFetch() + { + list($ret, $error) = $this->bucketManager->fetch( + 'http://developer.qiniu.com/docs/v6/sdk/php-sdk.html', + $this->bucketName, + 'fetch.html' + ); + $this->assertNull($error); + $this->assertArrayHasKey('hash', $ret); + + list($ret, $error) = $this->bucketManager->fetch( + 'http://developer.qiniu.com/docs/v6/sdk/php-sdk.html', + $this->bucketName, + '' + ); + $this->assertNull($error); + $this->assertArrayHasKey('key', $ret); + + list($ret, $error) = $this->bucketManager->fetch( + 'http://developer.qiniu.com/docs/v6/sdk/php-sdk.html', + $this->bucketName + ); + $this->assertNull($error); + $this->assertArrayHasKey('key', $ret); + } + + public function testFetchFailed() + { + list($ret, $error) = $this->bucketManager->fetch( + 'http://developer.qiniu.com/docs/v6/sdk/php-sdk.html', + 'fakebucket' + ); + $this->assertNotNull($error); + $this->assertNull($ret); + } + + public function testAsynchFetch() + { + list($ret, $error) = $this->bucketManager->asynchFetch( + 'http://devtools.qiniu.com/qiniu.png', + $this->bucketName, + null, + 'qiniu.png' + ); + $this->assertNull($error); + $this->assertArrayHasKey('id', $ret); + + list($ret, $error) = $this->bucketManager->asynchFetch( + 'http://devtools.qiniu.com/qiniu.png', + $this->bucketName, + null, + '' + ); + $this->assertNull($error); + $this->assertArrayHasKey('id', $ret); + + list($ret, $error) = $this->bucketManager->asynchFetch( + 'http://devtools.qiniu.com/qiniu.png', + $this->bucketName + ); + $this->assertNull($error); + $this->assertArrayHasKey('id', $ret); + } + + public function testAsynchFetchFailed() + { + list($ret, $error) = $this->bucketManager->asynchFetch( + 'http://devtools.qiniu.com/qiniu.png', + 'fakebucket' + ); + $this->assertNotNull($error); + $this->assertNull($ret); + } + + + public function testBatchCopy() + { + $key = 'copyto' . rand(); + $ops = BucketManager::buildBatchCopy( + $this->bucketName, + array($this->key => $key), + $this->bucketName, + true + ); + list($ret, $error) = $this->bucketManager->batch($ops); + $this->assertEquals(200, $ret[0]['code']); + $ops = BucketManager::buildBatchDelete($this->bucketName, array($key)); + list($ret, $error) = $this->bucketManager->batch($ops); + $this->assertEquals(200, $ret[0]['code']); + } + + public function testBatchMove() + { + $key = 'movefrom' . rand(); + $this->bucketManager->copy($this->bucketName, $this->key, $this->bucketName, $key); + $key2 = $key . 'to'; + $ops = BucketManager::buildBatchMove( + $this->bucketName, + array($key => $key2), + $this->bucketName, + true + ); + list($ret, $error) = $this->bucketManager->batch($ops); + $this->assertEquals(200, $ret[0]['code']); + list($ret, $error) = $this->bucketManager->delete($this->bucketName, $key2); + $this->assertNull($error); + } + + public function testBatchRename() + { + $key = 'rename' . rand(); + $this->bucketManager->copy($this->bucketName, $this->key, $this->bucketName, $key); + $key2 = $key . 'to'; + $ops = BucketManager::buildBatchRename($this->bucketName, array($key => $key2), true); + list($ret, $error) = $this->bucketManager->batch($ops); + $this->assertEquals(200, $ret[0]['code']); + list($ret, $error) = $this->bucketManager->delete($this->bucketName, $key2); + $this->assertNull($error); + } + + public function testBatchStat() + { + $ops = BucketManager::buildBatchStat($this->bucketName, array('php-sdk.html')); + list($ret, $error) = $this->bucketManager->batch($ops); + $this->assertEquals(200, $ret[0]['code']); + } + + public function testBatchChangeTypeAndBatchRestoreAr() + { + $key = 'toChangeTypeThenRestore' . rand(); + $this->bucketManager->copy($this->bucketName, $this->key, $this->bucketName, $key); + + $ops = BucketManager::buildBatchChangeType($this->bucketName, array($key => 2)); // 2 Archive + list($ret, $error) = $this->bucketManager->batch($ops); + $this->assertNull($error); + $this->assertEquals(200, $ret[0]['code']); + + $ops = BucketManager::buildBatchRestoreAr($this->bucketName, array($key => 1)); // 1 day + list($ret, $error) = $this->bucketManager->batch($ops); + $this->assertNull($error); + $this->assertEquals(200, $ret[0]['code']); + + $this->bucketManager->delete($this->bucketName, $key); + } + + public function testDeleteAfterDays() + { + $key = rand(); + list($ret, $error) = $this->bucketManager->deleteAfterDays($this->bucketName, $key, 1); + $this->assertNotNull($error); + + $this->bucketManager->copy($this->bucketName, $this->key, $this->bucketName, $key); + list($ret, $error) = $this->bucketManager->deleteAfterDays($this->bucketName, $key, 1); + $this->assertEquals(null, $ret); + } + + public function testGetCorsRules() + { + list($ret, $err) = $this->bucketManager->getCorsRules($this->bucketName); + $this->assertNull($err); + } + + public function testPutBucketAccessStyleMode() + { + list($ret, $err) = $this->bucketManager->putBucketAccessStyleMode($this->bucketName, 0); + $this->assertNull($err); + } + + public function testPutBucketAccessMode() + { + list($ret, $err) = $this->bucketManager->putBucketAccessMode($this->bucketName, 0); + $this->assertNull($err); + } + + public function testPutReferAntiLeech() + { + list($ret, $err) = $this->bucketManager->putReferAntiLeech($this->bucketName, 0, "1", "*"); + $this->assertNull($err); + } + + public function testPutBucketMaxAge() + { + list($ret, $err) = $this->bucketManager->putBucketMaxAge($this->bucketName, 31536000); + $this->assertNull($err); + } + + public function testPutBucketQuota() + { + list($ret, $err) = $this->bucketManager->putBucketQuota($this->bucketName, -1, -1); + $this->assertNull($err); + } + + public function testGetBucketQuota() + { + list($ret, $err) = $this->bucketManager->getBucketQuota($this->bucketName); + $this->assertNull($err); + } + + public function testChangeType() + { + list($ret, $err) = $this->bucketManager->changeType($this->bucketName, $this->key, 0); + $this->assertNull($err); + + list($ret, $err) = $this->bucketManager->changeType($this->bucketName, $this->key, 1); + $this->assertNull($err); + } + + public function testArchiveRestoreAr() + { + $key = 'archiveToRestore' . rand(); + $this->bucketManager->delete($this->bucketName, $key); + + $this->bucketManager->copy( + $this->bucketName, + $this->key, + $this->bucketName, + $key + ); + $this->bucketManager->changeType($this->bucketName, $key, 2); + + list(, $err) = $this->bucketManager->restoreAr($this->bucketName, $key, 2); + $this->assertNull($err); + list($ret, $err) = $this->bucketManager->stat($this->bucketName, $key); + $this->assertNull($err); + + $this->assertEquals(2, $ret["type"]); + + // restoreStatus + // null means frozen; + // 1 means be unfreezing; + // 2 means be unfrozen; + $this->assertNotNull($ret["restoreStatus"]); + $this->assertContains($ret["restoreStatus"], array(1, 2)); + + $this->bucketManager->delete($this->bucketName, $key); + } + + public function testDeepArchiveRestoreAr() + { + $key = 'deepArchiveToRestore' . rand(); + $this->bucketManager->delete($this->bucketName, $key); + + $this->bucketManager->copy( + $this->bucketName, + $this->key, + $this->bucketName, + $key + ); + $this->bucketManager->changeType($this->bucketName, $key, 3); + + list(, $err) = $this->bucketManager->restoreAr($this->bucketName, $key, 1); + $this->assertNull($err); + list($ret, $err) = $this->bucketManager->stat($this->bucketName, $key); + $this->assertNull($err); + + $this->assertEquals(3, $ret["type"]); + + // restoreStatus + // null means frozen; + // 1 means be unfreezing; + // 2 means be unfrozen; + $this->assertNotNull($ret["restoreStatus"]); + $this->assertContains($ret["restoreStatus"], array(1, 2)); + + $this->bucketManager->delete($this->bucketName, $key); + } + + public function testChangeStatus() + { + list($ret, $err) = $this->bucketManager->changeStatus($this->bucketName, $this->key, 1); + $this->assertNull($err); + + list($ret, $err) = $this->bucketManager->changeStatus($this->bucketName, $this->key, 0); + $this->assertNull($err); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/CdnManagerTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/CdnManagerTest.php new file mode 100755 index 0000000..2994e83 --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/CdnManagerTest.php @@ -0,0 +1,146 @@ +cdnManager = new CdnManager($testAuth); + + global $timestampAntiLeechEncryptKey; + $this->encryptKey = $timestampAntiLeechEncryptKey; + + global $testStartDate; + $this->testStartDate = $testStartDate; + + global $testEndDate; + $this->testEndDate = $testEndDate; + + global $testGranularity; + $this->testGranularity = $testGranularity; + + global $testLogDate; + $this->testLogDate = $testLogDate; + + global $customDomain; + $this->refreshUrl = $customDomain . '/sdktest.png'; + $this->refreshDirs = $customDomain; + $this->customDomain = $customDomain; + + global $customDomain2; + $this->customDomain2 = $customDomain2; + } + + public function testRefreshUrls() + { + list($ret, $err) = $this->cdnManager->refreshUrls(array($this->refreshUrl)); + $this->assertNull($err); + $this->assertNotNull($ret); + } + + public function testRefreshDirs() + { + list($ret, $err) = $this->cdnManager->refreshDirs(array($this->refreshDirs)); + $this->assertNull($err); + $this->assertNotNull($ret); + } + + public function testRefreshUrlsAndDirs() + { + list($ret, $err) = $this->cdnManager->refreshUrlsAndDirs(array($this->refreshUrl), array($this->refreshDirs)); + $this->assertNull($err); + $this->assertNotNull($ret); + } + + public function testGetCdnRefreshList() + { + list($ret, $err) = $this->cdnManager->getCdnRefreshList(null, null, null, 'success'); + $this->assertNull($err); + $this->assertNotNull($ret); + } + + public function testPrefetchUrls() + { + list($ret, $err) = $this->cdnManager->prefetchUrls(array($this->refreshUrl)); + $this->assertNull($err); + $this->assertNotNull($ret); + } + + public function testGetCdnPrefetchList() + { + list($ret, $err) = $this->cdnManager->getCdnPrefetchList(null, null, 'success'); + $this->assertNull($err); + $this->assertNotNull($ret); + } + + public function testGetBandwidthData() + { + list($ret, $err) = $this->cdnManager->getBandwidthData( + array($this->customDomain2), + $this->testStartDate, + $this->testEndDate, + $this->testGranularity + ); + $this->assertNull($err); + $this->assertNotNull($ret); + } + + public function testGetFluxData() + { + list($ret, $err) = $this->cdnManager->getFluxData( + array($this->customDomain2), + $this->testStartDate, + $this->testEndDate, + $this->testGranularity + ); + $this->assertNull($err); + $this->assertNotNull($ret); + } + + public function testGetCdnLogList() + { + $domain = getenv('QINIU_TEST_DOMAIN'); + list($ret, $err) = $this->cdnManager->getCdnLogList(array($domain), $this->testLogDate); + $this->assertNull($err); + $this->assertNotNull($ret); + } + + public function testCreateTimestampAntiLeechUrl() + { + $signUrl = $this->cdnManager->createTimestampAntiLeechUrl($this->refreshUrl, $this->encryptKey, 3600); + $response = Client::get($signUrl); + $this->assertNull($response->error); + $this->assertEquals($response->statusCode, 200); + + $signUrl = $this->cdnManager->createTimestampAntiLeechUrl( + $this->refreshUrl . '?qiniu', + $this->encryptKey, + 3600 + ); + $response = Client::get($signUrl); + $this->assertNull($response->error); + $this->assertEquals($response->statusCode, 200); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ConfigTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ConfigTest.php new file mode 100644 index 0000000..9f7a7ac --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ConfigTest.php @@ -0,0 +1,45 @@ +accessKey = $accessKey; + global $bucketName; + $this->bucketName = $bucketName; + } + + public function testGetApiHost() + { + $conf = new Config(); + $hasException = false; + $apiHost = ''; + try { + $apiHost = $conf->getApiHost($this->accessKey, $this->bucketName); + } catch (\Exception $e) { + $hasException = true; + } + $this->assertFalse($hasException); + $this->assertEquals('http://api.qiniu.com', $apiHost); + } + + public function testGetApiHostErrored() + { + $conf = new Config(); + $hasException = false; + try { + $conf->getApiHost($this->accessKey, "fakebucket"); + } catch (\Exception $e) { + $hasException = true; + } + $this->assertTrue($hasException); + } + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/Crc32Test.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/Crc32Test.php new file mode 100755 index 0000000..bfb36da --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/Crc32Test.php @@ -0,0 +1,21 @@ +assertEquals('1352841281', $b); + } + + public function testFile() + { + $b = \Qiniu\crc32_file(__file__); + $c = \Qiniu\crc32_file(__file__); + $this->assertEquals($c, $b); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/DownloadTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/DownloadTest.php new file mode 100755 index 0000000..5373ab3 --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/DownloadTest.php @@ -0,0 +1,25 @@ +privateDownloadUrl($base_url); + $response = Client::get($private_url); + $this->assertEquals(200, $response->statusCode); + } + + public function testFop() + { + global $testAuth; + $base_url = 'http://sdk.peterpy.cn/gogopher.jpg?exif'; + $private_url = $testAuth->privateDownloadUrl($base_url); + $response = Client::get($private_url); + $this->assertEquals(200, $response->statusCode); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/EtagTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/EtagTest.php new file mode 100755 index 0000000..b77e805 --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/EtagTest.php @@ -0,0 +1,52 @@ +assertEquals('Fto5o-5ea0sNMlW_75VgGJCv2AcJ', $r); + $this->assertNull($error); + } + + public function testLess4M() + { + $file = qiniuTempFile(3 * 1024 * 1024, false); + list($r, $error) = Etag::sum($file); + unlink($file); + $this->assertEquals('Fs5BpnAjRykYTg6o5E09cjuXrDkG', $r); + $this->assertNull($error); + } + + public function test4M() + { + $file = qiniuTempFile(4 * 1024 * 1024, false); + list($r, $error) = Etag::sum($file); + unlink($file); + $this->assertEquals('FiuKULnybewpEnrfTmxjsxc-3dWp', $r); + $this->assertNull($error); + } + + public function testMore4M() + { + $file = qiniuTempFile(5 * 1024 * 1024, false); + list($r, $error) = Etag::sum($file); + unlink($file); + $this->assertEquals('lhvyfIWMYFTq4s4alzlhXoAkqfVL', $r); + $this->assertNull($error); + } + + public function test8M() + { + $file = qiniuTempFile(8 * 1024 * 1024, false); + list($r, $error) = Etag::sum($file); + unlink($file); + $this->assertEquals('lmRm9ZfGZ86bnMys4wRTWtJj9ClG', $r); + $this->assertNull($error); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/FopTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/FopTest.php new file mode 100755 index 0000000..6cbdb7f --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/FopTest.php @@ -0,0 +1,37 @@ +execute('gogopher.jpg', 'exif'); + $this->assertNull($error); + $this->assertNotNull($exif); + } + + public function testExifPrivate() + { + global $testAuth; + $fop = new Operation('private-res.qiniudn.com', $testAuth); + list($exif, $error) = $fop->execute('noexif.jpg', 'exif'); + $this->assertNotNull($error); + $this->assertNull($exif); + } + + public function testbuildUrl() + { + $fops = 'imageView2/2/h/200'; + $fop = new Operation('testres.qiniudn.com'); + $url = $fop->buildUrl('gogopher.jpg', $fops); + $this->assertEquals($url, 'http://testres.qiniudn.com/gogopher.jpg?imageView2/2/h/200'); + + $fops = array('imageView2/2/h/200', 'imageInfo'); + $url = $fop->buildUrl('gogopher.jpg', $fops); + $this->assertEquals($url, 'http://testres.qiniudn.com/gogopher.jpg?imageView2/2/h/200|imageInfo'); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/FormUpTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/FormUpTest.php new file mode 100755 index 0000000..402cc39 --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/FormUpTest.php @@ -0,0 +1,76 @@ +bucketName = $bucketName; + + global $testAuth; + $this->auth = $testAuth; + $this->cfg = new Config(); + } + + public function testData() + { + $token = $this->auth->uploadToken($this->bucketName); + list($ret, $error) = FormUploader::put($token, 'formput', 'hello world', $this->cfg, null, 'text/plain', null); + $this->assertNull($error); + $this->assertNotNull($ret['hash']); + } + + public function testData2() + { + $upManager = new UploadManager(); + $token = $this->auth->uploadToken($this->bucketName); + list($ret, $error) = $upManager->put($token, 'formput', 'hello world', null, 'text/plain', null); + $this->assertNull($error); + $this->assertNotNull($ret['hash']); + } + + public function testDataFailed() + { + $token = $this->auth->uploadToken('fakebucket'); + list($ret, $error) = FormUploader::put($token, 'formput', 'hello world', $this->cfg, null, 'text/plain', null); + $this->assertNull($ret); + $this->assertNotNull($error); + } + + public function testFile() + { + $key = 'formPutFile'; + $token = $this->auth->uploadToken($this->bucketName, $key); + list($ret, $error) = FormUploader::putFile($token, $key, __file__, $this->cfg, null, 'text/plain', null); + $this->assertNull($error); + $this->assertNotNull($ret['hash']); + } + + public function testFile2() + { + $key = 'formPutFile'; + $token = $this->auth->uploadToken($this->bucketName, $key); + $upManager = new UploadManager(); + list($ret, $error) = $upManager->putFile($token, $key, __file__, null, 'text/plain', null); + $this->assertNull($error); + $this->assertNotNull($ret['hash']); + } + + public function testFileFailed() + { + $key = 'fakekey'; + $token = $this->auth->uploadToken('fakebucket', $key); + list($ret, $error) = FormUploader::putFile($token, $key, __file__, $this->cfg, null, 'text/plain', null); + $this->assertNull($ret); + $this->assertNotNull($error); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/HeaderTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/HeaderTest.php new file mode 100644 index 0000000..b7ecd1f --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/HeaderTest.php @@ -0,0 +1,167 @@ + array('200'), + ':x-test-1' => array('hello1'), + ':x-Test-2' => array('hello2'), + 'content-type' => array('application/json'), + 'CONTENT-LENGTH' => array(1234), + 'oRiGin' => array('https://www.qiniu.com'), + 'ReFer' => array('www.qiniu.com'), + 'Last-Modified' => array('Mon, 06 Sep 2021 06:44:52 GMT'), + 'acCePt-ChArsEt' => array('utf-8'), + 'x-test-3' => array('hello3'), + 'cache-control' => array('no-cache', 'no-store'), + ); + + public function testNormalizeKey() + { + $except = array( + ':status', + ':x-test-1', + ':x-Test-2', + 'Content-Type', + 'Content-Length', + 'Origin', + 'Refer', + 'Last-Modified', + 'Accept-Charset', + 'X-Test-3', + 'Cache-Control' + ); + $actual = array_map(function ($str) { + return Header::normalizeKey($str); + }, array_keys($this->heads)); + $this->assertEquals($actual, $except); + } + + + public function testInvalidKeyName() + { + $except = array( + 'a:x-test-1', + ); + + $actual = array_map(function ($str) { + return Header::normalizeKey($str); + }, $except); + + $this->assertEquals($except, $actual); + } + + public function testGetRawData() + { + $header = new Header($this->heads); + foreach ($this->heads as $k => $v) { + $rawHeader = $header->getRawData(); + $this->assertEquals($v, $rawHeader[Header::normalizeKey($k)]); + } + } + + public function testOffsetExists() + { + $header = new Header($this->heads); + foreach (array_keys($this->heads) as $k) { + $this->assertNotNull($header[$k]); + } + + $except = array( + ':status', + ':x-test-1', + ':x-Test-2', + 'Content-Type', + 'Content-Length', + 'Origin', + 'Refer', + 'Last-Modified', + 'Accept-Charset', + 'X-Test-3', + 'Cache-Control' + ); + foreach ($except as $k) { + $this->assertNotNull($header[$k], $k." is null"); + } + } + + public function testOffsetGet() + { + $header = new Header($this->heads); + foreach ($this->heads as $k => $v) { + $this->assertEquals($v[0], $header[$k]); + } + + $this->assertNull($header['no-exist']); + } + + public function testOffsetSet() + { + $header = new Header($this->heads); + $header["X-Test-3"] = "hello"; + $this->assertEquals("hello", $header["X-Test-3"]); + $header["x-test-3"] = "hello test3"; + $this->assertEquals("hello test3", $header["x-test-3"]); + $header[":x-Test-2"] = "hello"; + $this->assertEquals("hello", $header[":x-Test-2"]); + $header[":x-test-2"] = "hello test2"; + $this->assertEquals("hello", $header[":x-Test-2"]); + } + + public function testOffsetUnset() + { + $header = new Header($this->heads); + unset($header["X-Test-3"]); + $this->assertFalse(isset($header["X-Test-3"])); + + $header = new Header($this->heads); + unset($header["x-test-3"]); + $this->assertFalse(isset($header["x-test-3"])); + + $header = new Header($this->heads); + unset($header[":x-test-2"]); + $this->assertTrue(isset($header[":x-Test-2"])); + + $header = new Header($this->heads); + unset($header[":x-Test-2"]); + $this->assertFalse(isset($header[":x-Test-2"])); + } + + public function testGetIterator() + { + $header = new Header($this->heads); + + $hasException = false; + try { + foreach ($header as $k => $v) { + $hasException = !isset($header[$k]); + } + } catch (\Exception $e) { + $hasException = true; + } + $this->assertFalse($hasException); + } + + public function testCount() + { + $header = new Header($this->heads); + + $this->assertEquals(count($this->heads), count($header)); + } + + public function testFromRaw() + { + $lines = array(); + foreach ($this->heads as $k => $vs) { + foreach ($vs as $v) { + array_push($lines, $k . ": " . $v); + } + } + $raw = implode("\r\n", $lines); + $headerFromRaw = Header::fromRawText($raw); + $this->assertEquals(new Header($this->heads), $headerFromRaw); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/HttpTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/HttpTest.php new file mode 100755 index 0000000..558bc1f --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/HttpTest.php @@ -0,0 +1,79 @@ +assertEquals($response->statusCode, 200); + $this->assertNotNull($response->body); + $this->assertNull($response->error); + } + + public function testGetQiniu() + { + $response = Client::get('upload.qiniu.com'); + $this->assertEquals(405, $response->statusCode); + $this->assertNotNull($response->body); + $this->assertNotNull($response->xReqId()); + $this->assertNotNull($response->xLog()); + $this->assertNotNull($response->error); + } + + public function testDelete() + { + $response = Client::delete('uc.qbox.me/bucketTagging', array()); + $this->assertEquals($response->statusCode, 401); + $this->assertNotNull($response->body); + $this->assertNotNull($response->error); + } + + public function testDeleteQiniu() + { + $response = Client::delete('uc.qbox.me/bucketTagging', array()); + $this->assertEquals(401, $response->statusCode); + $this->assertNotNull($response->body); + $this->assertNotNull($response->xReqId()); + $this->assertNotNull($response->xLog()); + $this->assertNotNull($response->error); + } + + public function testPost() + { + $response = Client::post('qiniu.com', null); + $this->assertEquals($response->statusCode, 200); + $this->assertNotNull($response->body); + $this->assertNull($response->error); + } + + public function testPostQiniu() + { + $response = Client::post('upload.qiniu.com', null); + $this->assertEquals($response->statusCode, 400); + $this->assertNotNull($response->body); + $this->assertNotNull($response->xReqId()); + $this->assertNotNull($response->xLog()); + $this->assertNotNull($response->error); + } + + public function testPut() + { + $response = Client::PUT('uc.qbox.me/bucketTagging', null); + $this->assertEquals($response->statusCode, 401); + $this->assertNotNull($response->body); + $this->assertNotNull($response->error); + } + + public function testPutQiniu() + { + $response = Client::put('uc.qbox.me/bucketTagging', null); + $this->assertEquals(401, $response->statusCode); + $this->assertNotNull($response->body); + $this->assertNotNull($response->xReqId()); + $this->assertNotNull($response->xLog()); + $this->assertNotNull($response->error); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ImageUrlBuilderTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ImageUrlBuilderTest.php new file mode 100755 index 0000000..fca87b6 --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ImageUrlBuilderTest.php @@ -0,0 +1,261 @@ + + */ +class ImageUrlBuilderTest extends \PHPUnit_Framework_TestCase +{ + /** + * 缩略图测试 + * + * @test + * @return void + * @author Sherlock Ren + */ + public function testThumbutl() + { + $imageUrlBuilder = new \Qiniu\Processing\ImageUrlBuilder(); + $url = 'http://78re52.com1.z0.glb.clouddn.com/resource/gogopher.jpg'; + $url2 = $url . '?watermark/1/gravity/SouthEast/dx/0/dy/0/image/' + . 'aHR0cDovL2Fkcy1jZG4uY2h1Y2h1amllLmNvbS9Ga1R6bnpIY2RLdmRBUFc5cHZZZ3pTc21UY0tB'; + // 异常测试 + $this->assertEquals($url, $imageUrlBuilder->thumbnail($url, 1, 0, 0)); + $this->assertEquals($url, \Qiniu\thumbnail($url, 1, 0, 0)); + + // 简单缩略测试 + $this->assertEquals( + $url . '?imageView2/1/w/200/h/200/ignore-error/1/', + $imageUrlBuilder->thumbnail($url, 1, 200, 200) + ); + $this->assertEquals( + $url . '?imageView2/1/w/200/h/200/ignore-error/1/', + \Qiniu\thumbnail($url, 1, 200, 200) + ); + + // 输出格式测试 + $this->assertEquals( + $url . '?imageView2/1/w/200/h/200/format/png/ignore-error/1/', + $imageUrlBuilder->thumbnail($url, 1, 200, 200, 'png') + ); + $this->assertEquals( + $url . '?imageView2/1/w/200/h/200/format/png/ignore-error/1/', + \Qiniu\thumbnail($url, 1, 200, 200, 'png') + ); + + // 渐进显示测试 + $this->assertEquals( + $url . '?imageView2/1/w/200/h/200/format/png/interlace/1/ignore-error/1/', + $imageUrlBuilder->thumbnail($url, 1, 200, 200, 'png', 1) + ); + $this->assertEquals( + $url . '?imageView2/1/w/200/h/200/format/png/ignore-error/1/', + \Qiniu\thumbnail($url, 1, 200, 200, 'png', 2) + ); + + // 图片质量测试 + $this->assertEquals( + $url . '?imageView2/1/w/200/h/200/format/png/interlace/1/q/80/ignore-error/1/', + $imageUrlBuilder->thumbnail($url, 1, 200, 200, 'png', 1, 80) + ); + $this->assertEquals( + $url . '?imageView2/1/w/200/h/200/format/png/interlace/1/ignore-error/1/', + \Qiniu\thumbnail($url, 1, 200, 200, 'png', 1, 101) + ); + + // 多参数测试 + $this->assertEquals( + $url2 . '|imageView2/1/w/200/h/200/ignore-error/1/', + $imageUrlBuilder->thumbnail($url2, 1, 200, 200) + ); + $this->assertEquals( + $url2 . '|imageView2/1/w/200/h/200/ignore-error/1/', + \Qiniu\thumbnail($url2, 1, 200, 200) + ); + } + + /** + * 图片水印测试 + * + * @test + * @param void + * @return void + * @author Sherlock Ren + */ + public function waterImgTest() + { + $imageUrlBuilder = new \Qiniu\Processing\ImageUrlBuilder(); + $url = 'http://78re52.com1.z0.glb.clouddn.com/resource/gogopher.jpg'; + $url2 = $url . '?imageView2/1/w/200/h/200/format/png/ignore-error/1/'; + $image = 'http://developer.qiniu.com/resource/logo-2.jpg'; + + // 水印简单测试 + $this->assertEquals( + $url . '?watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/dissolve/100/gravity/SouthEast/', + $imageUrlBuilder->waterImg($url, $image) + ); + $this->assertEquals( + $url . '?watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/gravity/SouthEast/', + $imageUrlBuilder->waterImg($url, $image, 101) + ); + $this->assertEquals( + $url . '?watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==/', + $imageUrlBuilder->waterImg($url, $image, 101, 'sdfsd') + ); + $this->assertEquals( + $url . '?watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/dissolve/100/gravity/SouthEast/', + \Qiniu\waterImg($url, $image) + ); + + // 横轴边距测试 + $this->assertEquals( + $url . '?watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/dissolve/100/gravity/SouthEast/dx/10/', + $imageUrlBuilder->waterImg($url, $image, 100, 'SouthEast', 10) + ); + $this->assertEquals( + $url . '?watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/dissolve/100/gravity/SouthEast/', + \Qiniu\waterImg($url, $image, 100, 'SouthEast', 'sad') + ); + + // 纵轴边距测试 + $this->assertEquals( + $url . '?watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/dissolve/100/gravity/SouthEast/dx/10/dy/10/', + $imageUrlBuilder->waterImg($url, $image, 100, 'SouthEast', 10, 10) + ); + $this->assertEquals( + $url . '?watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/dissolve/100/gravity/SouthEast/', + \Qiniu\waterImg($url, $image, 100, 'SouthEast', 'sad', 'asdf') + ); + + // 自适应原图的短边比例测试 + $this->assertEquals( + $url . '?watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/dissolve/100/gravity/SouthEast/dx/10/dy/10/ws/0.5/', + $imageUrlBuilder->waterImg($url, $image, 100, 'SouthEast', 10, 10, 0.5) + ); + $this->assertEquals( + $url . '?watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/dissolve/100/gravity/SouthEast/', + \Qiniu\waterImg($url, $image, 100, 'SouthEast', 'sad', 'asdf', 2) + ); + + // 多参数测试 + $this->assertEquals( + $url2 . '|watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/dissolve/100/gravity/SouthEast/', + $imageUrlBuilder->waterImg($url2, $image) + ); + $this->assertEquals( + $url2 . '|watermark/1/image/aHR0cDovL2RldmVsb3Blci5xaW5pdS5jb20vcmVzb3VyY2UvbG9nby0yLmpwZw==' + . '/dissolve/100/gravity/SouthEast/', + \Qiniu\waterImg($url2, $image) + ); + } + + /** + * 文字水印测试 + * + * @test + * @param void + * @return void + * @author Sherlock Ren + */ + public function waterTextTest() + { + $imageUrlBuilder = new \Qiniu\Processing\ImageUrlBuilder(); + $url = 'http://78re52.com1.z0.glb.clouddn.com/resource/gogopher.jpg'; + $url2 = $url . '?imageView2/1/w/200/h/200/format/png/ignore-error/1/'; + $text = '测试一下'; + $font = '微软雅黑'; + $fontColor = '#FF0000'; + + // 水印简单测试 + $this->assertEquals($url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/' + . 'fontsize/500/dissolve/100/gravity/SouthEast/', $imageUrlBuilder->waterText($url, $text, $font, 500)); + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/' + . 'dissolve/100/gravity/SouthEast/', + \Qiniu\waterText($url, $text, $font, 'sdf') + ); + + // 字体颜色测试 + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/fontsize/500/fill/' + . 'I0ZGMDAwMA==/dissolve/100/gravity/SouthEast/', + $imageUrlBuilder->waterText($url, $text, $font, 500, $fontColor) + ); + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/fill/I0ZGMDAwMA==' + . '/dissolve/100/gravity/SouthEast/', + \Qiniu\waterText($url, $text, $font, 'sdf', $fontColor) + ); + + // 透明度测试 + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/fontsize/500/fill/I0ZGMDAwMA==' + . '/dissolve/80/gravity/SouthEast/', + $imageUrlBuilder->waterText($url, $text, $font, 500, $fontColor, 80) + ); + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/fill/I0ZGMDAwMA==' + . '/gravity/SouthEast/', + \Qiniu\waterText($url, $text, $font, 'sdf', $fontColor, 101) + ); + + // 水印位置测试 + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/fontsize/500/fill/I0ZGMDAwMA==' + . '/dissolve/80/gravity/East/', + $imageUrlBuilder->waterText($url, $text, $font, 500, $fontColor, 80, 'East') + ); + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/fill/I0ZGMDAwMA==/', + \Qiniu\waterText($url, $text, $font, 'sdf', $fontColor, 101, 'sdfsdf') + ); + + // 横轴距离测试 + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/fontsize/500/fill/I0ZGMDAwMA==' + . '/dissolve/80/gravity/East/dx/10/', + $imageUrlBuilder->waterText($url, $text, $font, 500, $fontColor, 80, 'East', 10) + ); + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/fill/I0ZGMDAwMA==/', + \Qiniu\waterText($url, $text, $font, 'sdf', $fontColor, 101, 'sdfsdf', 'sdfs') + ); + + // 纵轴距离测试 + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/fontsize/500/fill/I0ZGMDAwMA==' + . '/dissolve/80/gravity/East/dx/10/dy/10/', + $imageUrlBuilder->waterText($url, $text, $font, 500, $fontColor, 80, 'East', 10, 10) + ); + $this->assertEquals( + $url . '?watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/fill/I0ZGMDAwMA==/', + \Qiniu\waterText($url, $text, $font, 'sdf', $fontColor, 101, 'sdfsdf', 'sdfs', 'ssdf') + ); + // 多参数测试 + $this->assertEquals( + $url2 . '|watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/' + . 'fontsize/500/dissolve/100/gravity/SouthEast/', + $imageUrlBuilder->waterText($url2, $text, $font, 500) + ); + $this->assertEquals( + $url2 . '|watermark/2/text/5rWL6K-V5LiA5LiL/font/5b6u6L2v6ZuF6buR/' + . 'fontsize/500/dissolve/100/gravity/SouthEast/', + \Qiniu\waterText($url2, $text, $font, 500) + ); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/PfopTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/PfopTest.php new file mode 100755 index 0000000..d03b3f6 --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/PfopTest.php @@ -0,0 +1,66 @@ +execute($bucket, $key, $fops); + $this->assertNull($error); + list($status, $error) = $pfop->status($id); + $this->assertNotNull($status); + $this->assertNull($error); + } + + + public function testPfops() + { + global $testAuth; + $bucket = 'testres'; + $key = 'sintel_trailer.mp4'; + $fops = array( + 'avthumb/m3u8/segtime/10/vcodec/libx264/s/320x240', + 'vframe/jpg/offset/7/w/480/h/360', + ); + $pfop = new PersistentFop($testAuth, null); + + list($id, $error) = $pfop->execute($bucket, $key, $fops); + $this->assertNull($error); + + list($status, $error) = $pfop->status($id); + $this->assertNotNull($status); + $this->assertNull($error); + } + + public function testMkzip() + { + global $testAuth; + $bucket = 'phpsdk'; + $key = 'php-logo.png'; + $pfop = new PersistentFop($testAuth, null); + + $url1 = 'http://phpsdk.qiniudn.com/php-logo.png'; + $url2 = 'http://phpsdk.qiniudn.com/php-sdk.html'; + $zipKey = 'test.zip'; + + $fops = 'mkzip/2/url/' . \Qiniu\base64_urlSafeEncode($url1); + $fops .= '/url/' . \Qiniu\base64_urlSafeEncode($url2); + $fops .= '|saveas/' . \Qiniu\base64_urlSafeEncode("$bucket:$zipKey"); + + list($id, $error) = $pfop->execute($bucket, $key, $fops); + $this->assertNull($error); + + list($status, $error) = $pfop->status($id); + $this->assertNotNull($status); + $this->assertNull($error); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ResumeUpTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ResumeUpTest.php new file mode 100755 index 0000000..989786a --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ResumeUpTest.php @@ -0,0 +1,312 @@ +delete($bucketName, $key); + } + } + protected $bucketName; + protected $auth; + + protected function setUp() + { + global $bucketName; + $this->bucketName = $bucketName; + + global $testAuth; + $this->auth = $testAuth; + } + + public function test4ML() + { + $key = "resumePutFile4ML_".rand(); + $upManager = new UploadManager(); + $token = $this->auth->uploadToken($this->bucketName, $key); + $tempFile = qiniuTempFile(4 * 1024 * 1024 + 10); + $resumeFile = tempnam(sys_get_temp_dir(), 'resume_file'); + $this->assertNotFalse($resumeFile); + list($ret, $error) = $upManager->putFile( + $token, + $key, + $tempFile, + null, + 'application/octet-stream', + false, + $resumeFile + ); + $this->assertNull($error); + $this->assertNotNull($ret['hash']); + unlink($resumeFile); + + $domain = getenv('QINIU_TEST_DOMAIN'); + $response = Client::get("http://$domain/$key"); + $this->assertEquals(200, $response->statusCode); + $this->assertEquals(md5_file($tempFile, true), md5($response->body(), true)); + unlink($tempFile); + } + + public function test4ML2() + { + $key = 'resumePutFile4ML_'.rand(); + $zone = new Zone(array('upload.fake.qiniu.com'), array('upload.qiniup.com')); + $cfg = new Config($zone); + $upManager = new UploadManager($cfg); + $token = $this->auth->uploadToken($this->bucketName, $key); + $tempFile = qiniuTempFile(4 * 1024 * 1024 + 10); + $resumeFile = tempnam(sys_get_temp_dir(), 'resume_file'); + $this->assertNotFalse($resumeFile); + list($ret, $error) = $upManager->putFile( + $token, + $key, + $tempFile, + null, + 'application/octet-stream', + false, + $resumeFile + ); + $this->assertNull($error); + $this->assertNotNull($ret['hash']); + unlink($resumeFile); + + $domain = getenv('QINIU_TEST_DOMAIN'); + $response = Client::get("http://$domain/$key"); + $this->assertEquals(200, $response->statusCode); + $this->assertEquals(md5_file($tempFile, true), md5($response->body(), true)); + unlink($tempFile); + } + + // public function test8M() + // { + // $key = 'resumePutFile8M'; + // $upManager = new UploadManager(); + // $token = $this->auth->uploadToken($this->bucketName, $key); + // $tempFile = qiniuTempFile(8*1024*1024+10); + // list($ret, $error) = $upManager->putFile($token, $key, $tempFile); + // $this->assertNull($error); + // $this->assertNotNull($ret['hash']); + // unlink($tempFile); + // } + + public function testFileWithFileType() + { + $config = new Config(); + $bucketManager = new BucketManager($this->auth, $config); + + $testCases = array( + array( + "fileType" => 1, + "name" => "IA" + ), + array( + "fileType" => 2, + "name" => "Archive" + ), + array( + "fileType" => 3, + "name" => "DeepArchive" + ) + ); + + foreach ($testCases as $testCase) { + $key = 'FileType'.$testCase["name"].rand(); + $police = array( + "fileType" => $testCase["fileType"], + ); + $token = $this->auth->uploadToken($this->bucketName, $key, 3600, $police); + $upManager = new UploadManager(); + list($ret, $error) = $upManager->putFile($token, $key, __file__, null, 'text/plain'); + $this->assertNull($error); + $this->assertNotNull($ret); + array_push(self::$keyToDelete, $key); + list($ret, $err) = $bucketManager->stat($this->bucketName, $key); + $this->assertNull($err); + $this->assertEquals($testCase["fileType"], $ret["type"]); + } + } + + public function testResumeUploadWithParams() + { + $key = "resumePutFile4ML_".rand(); + $upManager = new UploadManager(); + $policy = array('returnBody' => '{"hash":$(etag),"fname":$(fname),"var_1":$(x:var_1),"var_2":$(x:var_2)}'); + $token = $this->auth->uploadToken($this->bucketName, $key, 3600, $policy); + $tempFile = qiniuTempFile(4 * 1024 * 1024 + 10); + $resumeFile = tempnam(sys_get_temp_dir(), 'resume_file'); + $this->assertNotFalse($resumeFile); + list($ret, $error) = $upManager->putFile( + $token, + $key, + $tempFile, + ["x:var_1" => "val_1", "x:var_2" => "val_2", "x-qn-meta-m1" => "val_1", "x-qn-meta-m2" => "val_2"], + 'application/octet-stream', + false, + $resumeFile + ); + $this->assertNull($error); + $this->assertNotNull($ret['hash']); + $this->assertEquals("val_1", $ret['var_1']); + $this->assertEquals("val_2", $ret['var_2']); + $this->assertEquals(basename($tempFile), $ret['fname']); + unlink($resumeFile); + + $domain = getenv('QINIU_TEST_DOMAIN'); + $response = Client::get("http://$domain/$key"); + $this->assertEquals(200, $response->statusCode); + $this->assertEquals(md5_file($tempFile, true), md5($response->body(), true)); + $this->assertEquals("val_1", $response->headers()["X-Qn-Meta-M1"]); + $this->assertEquals("val_2", $response->headers()["X-Qn-Meta-M2"]); + unlink($tempFile); + } + + public function testResumeUploadV2() + { + $zone = new Zone(array('up.qiniup.com')); + $cfg = new Config($zone); + $upManager = new UploadManager($cfg); + $testFileSize = array( + config::BLOCK_SIZE / 2, + config::BLOCK_SIZE, + config::BLOCK_SIZE + 10, + config::BLOCK_SIZE * 2, + config::BLOCK_SIZE * 2.5 + ); + $partSize = 5 * 1024 * 1024; + foreach ($testFileSize as $item) { + $key = 'resumePutFile4ML_'.rand()."_"; + $token = $this->auth->uploadToken($this->bucketName, $key); + $tempFile = qiniuTempFile($item); + $resumeFile = tempnam(sys_get_temp_dir(), 'resume_file'); + $this->assertNotFalse($resumeFile); + list($ret, $error) = $upManager->putFile( + $token, + $key, + $tempFile, + null, + 'application/octet-stream', + false, + $resumeFile, + 'v2', + $partSize + ); + $this->assertNull($error); + $this->assertNotNull($ret['hash']); + unlink($resumeFile); + + $domain = getenv('QINIU_TEST_DOMAIN'); + $response = Client::get("http://$domain/$key"); + $this->assertEquals(200, $response->statusCode); + $this->assertEquals(md5_file($tempFile, true), md5($response->body(), true)); + unlink($tempFile); + } + } + + public function testResumeUploadV2WithParams() + { + $key = "resumePutFile4ML_".rand(); + $upManager = new UploadManager(); + $policy = array('returnBody' => '{"hash":$(etag),"fname":$(fname),"var_1":$(x:var_1),"var_2":$(x:var_2)}'); + $token = $this->auth->uploadToken($this->bucketName, $key, 3600, $policy); + $tempFile = qiniuTempFile(4 * 1024 * 1024 + 10); + $resumeFile = tempnam(sys_get_temp_dir(), 'resume_file'); + $this->assertNotFalse($resumeFile); + list($ret, $error) = $upManager->putFile( + $token, + $key, + $tempFile, + ["x:var_1" => "val_1", "x:var_2" => "val_2", "x-qn-meta-m1" => "val_1", "x-qn-meta-m2" => "val_2"], + 'application/octet-stream', + false, + $resumeFile, + 'v2' + ); + $this->assertNull($error); + $this->assertNotNull($ret['hash']); + $this->assertEquals("val_1", $ret['var_1']); + $this->assertEquals("val_2", $ret['var_2']); + $this->assertEquals(basename($tempFile), $ret['fname']); + unlink($resumeFile); + + $domain = getenv('QINIU_TEST_DOMAIN'); + $response = Client::get("http://$domain/$key"); + $this->assertEquals(200, $response->statusCode); + $this->assertEquals(md5_file($tempFile, true), md5($response->body(), true)); + $this->assertEquals("val_1", $response->headers()["X-Qn-Meta-M1"]); + $this->assertEquals("val_2", $response->headers()["X-Qn-Meta-M2"]); + unlink($tempFile); + } + + // valid versions are tested above + // Use PHPUnit's Data Provider to test multiple Exception is better, + // but not match the test style of this project + public function testResumeUploadWithInvalidVersion() + { + $zone = new Zone(array('up.qiniup.com')); + $cfg = new Config($zone); + $upManager = new UploadManager($cfg); + $testFileSize = config::BLOCK_SIZE * 2; + $partSize = 5 * 1024 * 1024; + $testInvalidVersions = array( + // High probability invalid versions + 'v', + '1', + '2' + ); + + $expectExceptionCount = 0; + foreach ($testInvalidVersions as $invalidVersion) { + $key = 'resumePutFile4ML_'.rand()."_"; + $token = $this->auth->uploadToken($this->bucketName, $key); + $tempFile = qiniuTempFile($testFileSize); + $resumeFile = tempnam(sys_get_temp_dir(), 'resume_file'); + $this->assertNotFalse($resumeFile); + try { + $upManager->putFile( + $token, + $key, + $tempFile, + null, + 'application/octet-stream', + false, + $resumeFile, + $invalidVersion, + $partSize + ); + } catch (\Exception $e) { + $isRightException = false; + $expectExceptionCount++; + while ($e) { + $isRightException = $e instanceof \UnexpectedValueException; + if ($isRightException) { + break; + } + $e = $e->getPrevious(); + } + $this->assertTrue($isRightException); + } + + unlink($resumeFile); + unlink($tempFile); + } + $this->assertEquals(count($testInvalidVersions), $expectExceptionCount); + } +} diff --git a/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ZoneTest.php b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ZoneTest.php new file mode 100755 index 0000000..cc5cce5 --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/Qiniu/Tests/ZoneTest.php @@ -0,0 +1,125 @@ +bucketName = $bucketName; + + global $bucketNameBC; + $this->bucketNameBC = $bucketNameBC; + + global $bucketNameNA; + $this->bucketNameNA = $bucketNameNA; + + global $bucketNameFS; + $this->bucketNameFS = $bucketNameFS; + + global $bucketNameAS; + $this->bucketNameAS = $bucketNameAS; + + global $accessKey; + $this->ak = $accessKey; + + $this->zone = new Zone(); + $this->zoneHttps = new Zone('https'); + } + + public function testUpHosts() + { + list($ret, $err) = Zone::queryZone($this->ak, 'fakebucket'); + $this->assertNull($ret); + $this->assertNotNull($err); + + $zone = Zone::queryZone($this->ak, $this->bucketName); + $this->assertContains('upload.qiniup.com', $zone->cdnUpHosts); + + $zone = Zone::queryZone($this->ak, $this->bucketNameBC); + $this->assertContains('upload-z1.qiniup.com', $zone->cdnUpHosts); + + $zone = Zone::queryZone($this->ak, $this->bucketNameFS); + $this->assertContains('upload-z2.qiniup.com', $zone->cdnUpHosts); + + $zone = Zone::queryZone($this->ak, $this->bucketNameNA); + $this->assertContains('upload-na0.qiniup.com', $zone->cdnUpHosts); + + $zone = Zone::queryZone($this->ak, $this->bucketNameAS); + $this->assertContains('upload-as0.qiniup.com', $zone->cdnUpHosts); + } + + public function testIoHosts() + { + $zone = Zone::queryZone($this->ak, $this->bucketName); + $this->assertEquals($zone->iovipHost, 'iovip.qbox.me'); + + $zone = Zone::queryZone($this->ak, $this->bucketNameBC); + $this->assertEquals($zone->iovipHost, 'iovip-z1.qbox.me'); + + $zone = Zone::queryZone($this->ak, $this->bucketNameFS); + $this->assertEquals($zone->iovipHost, 'iovip-z2.qbox.me'); + + $zone = Zone::queryZone($this->ak, $this->bucketNameNA); + $this->assertEquals($zone->iovipHost, 'iovip-na0.qbox.me'); + + $zone = Zone::queryZone($this->ak, $this->bucketNameAS); + $this->assertEquals($zone->iovipHost, 'iovip-as0.qbox.me'); + } + + public function testZonez0() + { + $zone = Zone::zonez0(); + $this->assertContains('upload.qiniup.com', $zone->cdnUpHosts); + } + + public function testZonez1() + { + $zone = Zone::zonez1(); + $this->assertContains('upload-z1.qiniup.com', $zone->cdnUpHosts); + } + + public function testZonez2() + { + $zone = Zone::zonez2(); + $this->assertContains('upload-z2.qiniup.com', $zone->cdnUpHosts); + } + + public function testZoneNa0() + { + $zone = Zone::zoneNa0(); + $this->assertContains('upload-na0.qiniup.com', $zone->cdnUpHosts); + } + + public function testZoneAs0() + { + $zone = Zone::zoneAs0(); + $this->assertContains('upload-as0.qiniup.com', $zone->cdnUpHosts); + } + + public function testQvmZonez0() + { + $zone = Zone::qvmZonez0(); + $this->assertContains('free-qvm-z0-xs.qiniup.com', $zone->srcUpHosts); + } + + public function testQvmZonez1() + { + $zone = Zone::qvmZonez1(); + $this->assertContains('free-qvm-z1-zz.qiniup.com', $zone->srcUpHosts); + } +} diff --git a/vendor/qiniu/php-sdk/tests/bootstrap.php b/vendor/qiniu/php-sdk/tests/bootstrap.php new file mode 100755 index 0000000..9859a81 --- /dev/null +++ b/vendor/qiniu/php-sdk/tests/bootstrap.php @@ -0,0 +1,61 @@ + 0) { + $length = min($rest_size, 4 * 1024); + if (fwrite($file, random_bytes($length)) == false) { + return false; + } + $rest_size -= $length; + } + } else if ($size > 0) { + fseek($file, $size - 1); + fwrite($file, ' '); + } + fclose($file); + return $fileName; +} diff --git a/vendor/symfony/polyfill-mbstring/Mbstring.php b/vendor/symfony/polyfill-mbstring/Mbstring.php index b599095..b65c54a 100644 --- a/vendor/symfony/polyfill-mbstring/Mbstring.php +++ b/vendor/symfony/polyfill-mbstring/Mbstring.php @@ -80,7 +80,7 @@ final class Mbstring public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null) { - if (\is_array($fromEncoding) || false !== strpos($fromEncoding, ',')) { + if (\is_array($fromEncoding) || ($fromEncoding !== null && false !== strpos($fromEncoding, ','))) { $fromEncoding = self::mb_detect_encoding($s, $fromEncoding); } else { $fromEncoding = self::getEncoding($fromEncoding); @@ -602,6 +602,9 @@ final class Mbstring if (80000 > \PHP_VERSION_ID) { return false; } + if (\is_int($c) || 'long' === $c || 'entity' === $c) { + return false; + } throw new \ValueError('Argument #1 ($substitute_character) must be "none", "long", "entity" or a valid codepoint'); } diff --git a/vendor/symfony/polyfill-mbstring/composer.json b/vendor/symfony/polyfill-mbstring/composer.json index 2ed7a74..1fa21ca 100644 --- a/vendor/symfony/polyfill-mbstring/composer.json +++ b/vendor/symfony/polyfill-mbstring/composer.json @@ -18,6 +18,9 @@ "require": { "php": ">=7.1" }, + "provide": { + "ext-mbstring": "*" + }, "autoload": { "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" }, "files": [ "bootstrap.php" ] diff --git a/vendor/symfony/polyfill-php80/Php80.php b/vendor/symfony/polyfill-php80/Php80.php index 5fef511..362dd1a 100644 --- a/vendor/symfony/polyfill-php80/Php80.php +++ b/vendor/symfony/polyfill-php80/Php80.php @@ -100,6 +100,16 @@ final class Php80 public static function str_ends_with(string $haystack, string $needle): bool { - return '' === $needle || ('' !== $haystack && 0 === substr_compare($haystack, $needle, -\strlen($needle))); + if ('' === $needle || $needle === $haystack) { + return true; + } + + if ('' === $haystack) { + return false; + } + + $needleLength = \strlen($needle); + + return $needleLength <= \strlen($haystack) && 0 === substr_compare($haystack, $needle, -$needleLength); } } diff --git a/vendor/symfony/polyfill-php80/PhpToken.php b/vendor/symfony/polyfill-php80/PhpToken.php new file mode 100644 index 0000000..fe6e691 --- /dev/null +++ b/vendor/symfony/polyfill-php80/PhpToken.php @@ -0,0 +1,103 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Polyfill\Php80; + +/** + * @author Fedonyuk Anton + * + * @internal + */ +class PhpToken implements \Stringable +{ + /** + * @var int + */ + public $id; + + /** + * @var string + */ + public $text; + + /** + * @var int + */ + public $line; + + /** + * @var int + */ + public $pos; + + public function __construct(int $id, string $text, int $line = -1, int $position = -1) + { + $this->id = $id; + $this->text = $text; + $this->line = $line; + $this->pos = $position; + } + + public function getTokenName(): ?string + { + if ('UNKNOWN' === $name = token_name($this->id)) { + $name = \strlen($this->text) > 1 || \ord($this->text) < 32 ? null : $this->text; + } + + return $name; + } + + /** + * @param int|string|array $kind + */ + public function is($kind): bool + { + foreach ((array) $kind as $value) { + if (\in_array($value, [$this->id, $this->text], true)) { + return true; + } + } + + return false; + } + + public function isIgnorable(): bool + { + return \in_array($this->id, [\T_WHITESPACE, \T_COMMENT, \T_DOC_COMMENT, \T_OPEN_TAG], true); + } + + public function __toString(): string + { + return (string) $this->text; + } + + /** + * @return static[] + */ + public static function tokenize(string $code, int $flags = 0): array + { + $line = 1; + $position = 0; + $tokens = token_get_all($code, $flags); + foreach ($tokens as $index => $token) { + if (\is_string($token)) { + $id = \ord($token); + $text = $token; + } else { + [$id, $text, $line] = $token; + } + $tokens[$index] = new static($id, $text, $line, $position); + $position += \strlen($text); + } + + return $tokens; + } +} diff --git a/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php b/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php new file mode 100644 index 0000000..72f1081 --- /dev/null +++ b/vendor/symfony/polyfill-php80/Resources/stubs/PhpToken.php @@ -0,0 +1,7 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\VarDumper\Caster; + +use Symfony\Component\VarDumper\Cloner\Stub; + +/** + * @author Nicolas Grekas + * + * @internal + */ +final class MysqliCaster +{ + public static function castMysqliDriver(\mysqli_driver $c, array $a, Stub $stub, bool $isNested): array + { + foreach ($a as $k => $v) { + if (isset($c->$k)) { + $a[$k] = $c->$k; + } + } + + return $a; + } +} diff --git a/vendor/symfony/var-dumper/Caster/ReflectionCaster.php b/vendor/symfony/var-dumper/Caster/ReflectionCaster.php index 819a618..2a74b25 100644 --- a/vendor/symfony/var-dumper/Caster/ReflectionCaster.php +++ b/vendor/symfony/var-dumper/Caster/ReflectionCaster.php @@ -134,7 +134,7 @@ class ReflectionCaster array_unshift($trace, [ 'function' => 'yield', 'file' => $function->getExecutingFile(), - 'line' => $function->getExecutingLine() - 1, + 'line' => $function->getExecutingLine() - (int) (\PHP_VERSION_ID < 80100), ]); $trace[] = $frame; $a[$prefix.'trace'] = new TraceStub($trace, false, 0, -1, -1); @@ -263,15 +263,17 @@ class ReflectionCaster unset($a[$prefix.'allowsNull']); } - try { - $a[$prefix.'default'] = $v = $c->getDefaultValue(); - if ($c->isDefaultValueConstant()) { - $a[$prefix.'default'] = new ConstStub($c->getDefaultValueConstantName(), $v); - } - if (null === $v) { - unset($a[$prefix.'allowsNull']); + if ($c->isOptional()) { + try { + $a[$prefix.'default'] = $v = $c->getDefaultValue(); + if ($c->isDefaultValueConstant()) { + $a[$prefix.'default'] = new ConstStub($c->getDefaultValueConstantName(), $v); + } + if (null === $v) { + unset($a[$prefix.'allowsNull']); + } + } catch (\ReflectionException $e) { } - } catch (\ReflectionException $e) { } return $a; diff --git a/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php b/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php index e7a0f64..9f5a375 100644 --- a/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php +++ b/vendor/symfony/var-dumper/Caster/XmlReaderCaster.php @@ -1,4 +1,5 @@ ['Symfony\Component\VarDumper\Caster\DsCaster', 'castPair'], 'Symfony\Component\VarDumper\Caster\DsPairStub' => ['Symfony\Component\VarDumper\Caster\DsCaster', 'castPairStub'], + 'mysqli_driver' => ['Symfony\Component\VarDumper\Caster\MysqliCaster', 'castMysqliDriver'], + 'CurlHandle' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castCurl'], ':curl' => ['Symfony\Component\VarDumper\Caster\ResourceCaster', 'castCurl'], diff --git a/vendor/symfony/var-dumper/Dumper/AbstractDumper.php b/vendor/symfony/var-dumper/Dumper/AbstractDumper.php index 4ddaf5e..2d3bb01 100644 --- a/vendor/symfony/var-dumper/Dumper/AbstractDumper.php +++ b/vendor/symfony/var-dumper/Dumper/AbstractDumper.php @@ -46,8 +46,7 @@ abstract class AbstractDumper implements DataDumperInterface, DumperInterface { $this->flags = $flags; $this->setCharset($charset ?: ini_get('php.output_encoding') ?: ini_get('default_charset') ?: 'UTF-8'); - $this->decimalPoint = localeconv(); - $this->decimalPoint = $this->decimalPoint['decimal_point']; + $this->decimalPoint = \PHP_VERSION_ID >= 80000 ? '.' : localeconv()['decimal_point']; $this->setOutput($output ?: static::$defaultOutput); if (!$output && \is_string(static::$defaultOutput)) { static::$defaultOutput = $this->outputStream; @@ -122,8 +121,7 @@ abstract class AbstractDumper implements DataDumperInterface, DumperInterface */ public function dump(Data $data, $output = null) { - $this->decimalPoint = localeconv(); - $this->decimalPoint = $this->decimalPoint['decimal_point']; + $this->decimalPoint = \PHP_VERSION_ID >= 80000 ? '.' : localeconv()['decimal_point']; if ($locale = $this->flags & (self::DUMP_COMMA_SEPARATOR | self::DUMP_TRAILING_COMMA) ? setlocale(\LC_NUMERIC, 0) : null) { setlocale(\LC_NUMERIC, 'C'); diff --git a/vendor/symfony/var-dumper/Dumper/HtmlDumper.php b/vendor/symfony/var-dumper/Dumper/HtmlDumper.php index 8409a0c..4db0f08 100644 --- a/vendor/symfony/var-dumper/Dumper/HtmlDumper.php +++ b/vendor/symfony/var-dumper/Dumper/HtmlDumper.php @@ -371,7 +371,7 @@ return function (root, x) { if (/\bsf-dump-toggle\b/.test(a.className)) { e.preventDefault(); if (!toggle(a, isCtrlKey(e))) { - var r = doc.getElementById(a.getAttribute('href').substr(1)), + var r = doc.getElementById(a.getAttribute('href').slice(1)), s = r.previousSibling, f = r.parentNode, t = a.parentNode; @@ -438,7 +438,7 @@ return function (root, x) { toggle(a); } } else if (/\bsf-dump-ref\b/.test(elt.className) && (a = elt.getAttribute('href'))) { - a = a.substr(1); + a = a.slice(1); elt.className += ' '+a; if (/[\[{]$/.test(elt.previousSibling.nodeValue)) { @@ -978,7 +978,7 @@ EOHTML } $this->lastDepth = $depth; - $this->line = mb_convert_encoding($this->line, 'HTML-ENTITIES', 'UTF-8'); + $this->line = mb_encode_numericentity($this->line, [0x80, 0xFFFF, 0, 0xFFFF], 'UTF-8'); if (-1 === $depth) { AbstractDumper::dumpLine(0); diff --git a/vendor/symfony/var-dumper/LICENSE b/vendor/symfony/var-dumper/LICENSE index c1f0aac..a843ec1 100644 --- a/vendor/symfony/var-dumper/LICENSE +++ b/vendor/symfony/var-dumper/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2014-2021 Fabien Potencier +Copyright (c) 2014-2022 Fabien Potencier Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/vendor/symfony/var-dumper/Resources/bin/var-dump-server b/vendor/symfony/var-dumper/Resources/bin/var-dump-server old mode 100644 new mode 100755 diff --git a/vendor/topthink/framework/.gitignore b/vendor/topthink/framework/.gitignore new file mode 100644 index 0000000..b267fba --- /dev/null +++ b/vendor/topthink/framework/.gitignore @@ -0,0 +1,7 @@ +/vendor +composer.phar +composer.lock +.DS_Store +Thumbs.db +/.idea +/.vscode \ No newline at end of file diff --git a/vendor/topthink/framework/README.md b/vendor/topthink/framework/README.md index 0ea03c9..aa16486 100644 --- a/vendor/topthink/framework/README.md +++ b/vendor/topthink/framework/README.md @@ -35,7 +35,7 @@ ThinkPHP6.0底层架构采用PHP7.1改写和进一步优化。 * 统一和精简大量用法 -> ThinkPHP6.0的运行环境要求PHP7.1+,兼容PHP8.0。 +> ThinkPHP6.0的运行环境要求PHP7.2+,兼容PHP8.1 ## 安装 diff --git a/vendor/topthink/framework/composer.json b/vendor/topthink/framework/composer.json index 4be2ae0..90793d3 100644 --- a/vendor/topthink/framework/composer.json +++ b/vendor/topthink/framework/composer.json @@ -27,13 +27,15 @@ "psr/log": "~1.0", "psr/container": "~1.0", "psr/simple-cache": "^1.0", + "psr/http-message": "^1.0", "topthink/think-orm": "^2.0", "topthink/think-helper": "^3.1.1" }, "require-dev": { "mikey179/vfsstream": "^1.6", "mockery/mockery": "^1.2", - "phpunit/phpunit": "^7.0" + "phpunit/phpunit": "^7.0", + "guzzlehttp/psr7": "^2.1.0" }, "autoload": { "files": [], diff --git a/vendor/topthink/framework/src/helper.php b/vendor/topthink/framework/src/helper.php index 650edcb..e436e14 100644 --- a/vendor/topthink/framework/src/helper.php +++ b/vendor/topthink/framework/src/helper.php @@ -149,7 +149,7 @@ if (!function_exists('cookie')) { { if (is_null($value)) { // 删除 - Cookie::delete($name); + Cookie::delete($name, $option ?: []); } elseif ('' === $value) { // 获取 return 0 === strpos($name, '?') ? Cookie::has(substr($name, 1)) : Cookie::get($name); diff --git a/vendor/topthink/framework/src/think/App.php b/vendor/topthink/framework/src/think/App.php index 056a341..073a41a 100644 --- a/vendor/topthink/framework/src/think/App.php +++ b/vendor/topthink/framework/src/think/App.php @@ -39,7 +39,7 @@ use think\initializer\RegisterService; */ class App extends Container { - const VERSION = '6.0.9'; + const VERSION = '6.0.12LTS'; /** * 应用调试模式 @@ -168,7 +168,7 @@ class App extends Container */ public function __construct(string $rootPath = '') { - $this->thinkPath = dirname(__DIR__) . DIRECTORY_SEPARATOR; + $this->thinkPath = realpath(dirname(__DIR__)) . DIRECTORY_SEPARATOR; $this->rootPath = $rootPath ? rtrim($rootPath, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR : $this->getDefaultRootPath(); $this->appPath = $this->rootPath . 'app' . DIRECTORY_SEPARATOR; $this->runtimePath = $this->rootPath . 'runtime' . DIRECTORY_SEPARATOR; @@ -450,13 +450,8 @@ class App extends Container // 加载全局初始化文件 $this->load(); - // 加载框架默认语言包 - $langSet = $this->lang->defaultLangSet(); - - $this->lang->load($this->thinkPath . 'lang' . DIRECTORY_SEPARATOR . $langSet . '.php'); - // 加载应用默认语言包 - $this->loadLangPack($langSet); + $this->loadLangPack(); // 监听AppInit $this->event->trigger(AppInit::class); @@ -482,25 +477,13 @@ class App extends Container /** * 加载语言包 - * @param string $langset 语言 * @return void */ - public function loadLangPack($langset) + public function loadLangPack() { - if (empty($langset)) { - return; - } - - // 加载系统语言包 - $files = glob($this->appPath . 'lang' . DIRECTORY_SEPARATOR . $langset . '.*'); - $this->lang->load($files); - - // 加载扩展(自定义)语言包 - $list = $this->config->get('lang.extend_list', []); - - if (isset($list[$langset])) { - $this->lang->load($list[$langset]); - } + // 加载默认语言包 + $langSet = $this->lang->defaultLangSet(); + $this->lang->switchLangSet($langSet); } /** diff --git a/vendor/topthink/framework/src/think/Container.php b/vendor/topthink/framework/src/think/Container.php index 74026bb..e3a4341 100644 --- a/vendor/topthink/framework/src/think/Container.php +++ b/vendor/topthink/framework/src/think/Container.php @@ -27,6 +27,7 @@ use ReflectionMethod; use think\exception\ClassNotFoundException; use think\exception\FuncNotFoundException; use think\helper\Str; +use Traversable; /** * 容器管理类 支持PSR-11 @@ -520,34 +521,38 @@ class Container implements ContainerInterface, ArrayAccess, IteratorAggregate, C $this->delete($name); } - public function offsetExists($key) + #[\ReturnTypeWillChange] + public function offsetExists($key): bool { return $this->exists($key); } + #[\ReturnTypeWillChange] public function offsetGet($key) { return $this->make($key); } + #[\ReturnTypeWillChange] public function offsetSet($key, $value) { $this->bind($key, $value); } + #[\ReturnTypeWillChange] public function offsetUnset($key) { $this->delete($key); } //Countable - public function count() + public function count(): int { return count($this->instances); } //IteratorAggregate - public function getIterator() + public function getIterator(): Traversable { return new ArrayIterator($this->instances); } diff --git a/vendor/topthink/framework/src/think/Cookie.php b/vendor/topthink/framework/src/think/Cookie.php index ebbfd64..04774a6 100644 --- a/vendor/topthink/framework/src/think/Cookie.php +++ b/vendor/topthink/framework/src/think/Cookie.php @@ -158,11 +158,13 @@ class Cookie * Cookie删除 * @access public * @param string $name cookie名称 + * @param array $options cookie参数 * @return void */ - public function delete(string $name): void + public function delete(string $name, array $options = []): void { - $this->setCookie($name, '', time() - 3600, $this->config); + $config = array_merge($this->config, array_change_key_case($options)); + $this->setCookie($name, '', time() - 3600, $config); } /** diff --git a/vendor/topthink/framework/src/think/Env.php b/vendor/topthink/framework/src/think/Env.php index 4c26b33..9e1b7f4 100644 --- a/vendor/topthink/framework/src/think/Env.php +++ b/vendor/topthink/framework/src/think/Env.php @@ -26,6 +26,17 @@ class Env implements ArrayAccess */ protected $data = []; + /** + * 数据转换映射 + * @var array + */ + protected $convert = [ + 'true' => true, + 'false' => false, + 'off' => false, + 'on' => true, + ]; + public function __construct() { $this->data = $_ENV; @@ -39,7 +50,7 @@ class Env implements ArrayAccess */ public function load(string $file): void { - $env = parse_ini_file($file, true) ?: []; + $env = parse_ini_file($file, true, INI_SCANNER_RAW) ?: []; $this->set($env); } @@ -57,9 +68,14 @@ class Env implements ArrayAccess } $name = strtoupper(str_replace('.', '_', $name)); - if (isset($this->data[$name])) { - return $this->data[$name]; + $result = $this->data[$name]; + + if (is_string($result) && isset($this->convert[$result])) { + return $this->convert[$result]; + } + + return $result; } return $this->getEnv($name, $default); @@ -159,21 +175,25 @@ class Env implements ArrayAccess } // ArrayAccess + #[\ReturnTypeWillChange] public function offsetSet($name, $value): void { $this->set($name, $value); } + #[\ReturnTypeWillChange] public function offsetExists($name): bool { return $this->__isset($name); } - public function offsetUnset($name) + #[\ReturnTypeWillChange] + public function offsetUnset($name): void { throw new Exception('not support: unset'); } + #[\ReturnTypeWillChange] public function offsetGet($name) { return $this->get($name); diff --git a/vendor/topthink/framework/src/think/File.php b/vendor/topthink/framework/src/think/File.php index f7c37bd..087e808 100644 --- a/vendor/topthink/framework/src/think/File.php +++ b/vendor/topthink/framework/src/think/File.php @@ -176,7 +176,7 @@ class File extends SplFileInfo $this->hashName = call_user_func($rule); break; default: - $this->hashName = date('Ymd') . DIRECTORY_SEPARATOR . md5((string) microtime(true)); + $this->hashName = date('Ymd') . DIRECTORY_SEPARATOR . md5(microtime(true) . $this->getPathname()); break; } } diff --git a/vendor/topthink/framework/src/think/Lang.php b/vendor/topthink/framework/src/think/Lang.php index 0b79b76..0226f81 100644 --- a/vendor/topthink/framework/src/think/Lang.php +++ b/vendor/topthink/framework/src/think/Lang.php @@ -18,6 +18,8 @@ namespace think; */ class Lang { + protected $app; + /** * 配置参数 * @var array @@ -62,15 +64,26 @@ class Lang * @access public * @param array $config */ - public function __construct(array $config = []) + public function __construct(App $app, array $config = []) { $this->config = array_merge($this->config, array_change_key_case($config)); $this->range = $this->config['default_lang']; + $this->app = $app; + } + + public static function __make(App $app, Config $config) + { + return new static($app, $config->get('lang')); } - public static function __make(Config $config) + /** + * 获取当前语言配置 + * @access public + * @return array + */ + public function getConfig(): array { - return new static($config->get('lang')); + return $this->config; } /** @@ -104,6 +117,35 @@ class Lang return $this->config['default_lang']; } + /** + * 切换语言 + * @access public + * @param string $langset 语言 + * @return void + */ + public function switchLangSet(string $langset) + { + if (empty($langset)) { + return; + } + + // 加载系统语言包 + $this->load([ + $this->app->getThinkPath() . 'lang' . DIRECTORY_SEPARATOR . $langset . '.php', + ]); + + // 加载系统语言包 + $files = glob($this->app->getAppPath() . 'lang' . DIRECTORY_SEPARATOR . $langset . '.*'); + $this->load($files); + + // 加载扩展(自定义)语言包 + $list = $this->app->config->get('lang.extend_list', []); + + if (isset($list[$langset])) { + $this->load($list[$langset]); + } + } + /** * 加载语言定义(不区分大小写) * @access public @@ -202,6 +244,10 @@ class Lang { $range = $range ?: $this->range; + if (!isset($this->lang[$range])) { + $this->switchLangSet($range); + } + // 空参数返回所有定义 if (is_null($name)) { return $this->lang[$range] ?? []; @@ -241,6 +287,7 @@ class Lang /** * 自动侦测设置获取语言选择 + * @deprecated * @access public * @param Request $request * @return string @@ -280,6 +327,7 @@ class Lang /** * 保存当前语言到Cookie + * @deprecated * @access public * @param Cookie $cookie Cookie对象 * @return void diff --git a/vendor/topthink/framework/src/think/Request.php b/vendor/topthink/framework/src/think/Request.php index 1c15f63..fe9938d 100644 --- a/vendor/topthink/framework/src/think/Request.php +++ b/vendor/topthink/framework/src/think/Request.php @@ -13,6 +13,7 @@ declare (strict_types = 1); namespace think; use ArrayAccess; +use think\facade\Lang; use think\file\UploadedFile; use think\route\Rule; @@ -1227,7 +1228,7 @@ class Request implements ArrayAccess 7 => 'file write error', ]; - $msg = $fileUploadErrors[$error]; + $msg = Lang::get($fileUploadErrors[$error]); throw new Exception($msg, $error); } @@ -2150,19 +2151,23 @@ class Request implements ArrayAccess } // ArrayAccess + #[\ReturnTypeWillChange] public function offsetExists($name): bool { return $this->has($name); } + #[\ReturnTypeWillChange] public function offsetGet($name) { return $this->param($name); } + #[\ReturnTypeWillChange] public function offsetSet($name, $value) {} + #[\ReturnTypeWillChange] public function offsetUnset($name) {} diff --git a/vendor/topthink/framework/src/think/Response.php b/vendor/topthink/framework/src/think/Response.php index a8a61ff..49f26dc 100644 --- a/vendor/topthink/framework/src/think/Response.php +++ b/vendor/topthink/framework/src/think/Response.php @@ -130,16 +130,19 @@ abstract class Response // 处理输出数据 $data = $this->getContent(); - if (!headers_sent() && !empty($this->header)) { - // 发送状态码 - http_response_code($this->code); - // 发送头部信息 - foreach ($this->header as $name => $val) { - header($name . (!is_null($val) ? ':' . $val : '')); + if (!headers_sent()) { + if (!empty($this->header)) { + // 发送状态码 + http_response_code($this->code); + // 发送头部信息 + foreach ($this->header as $name => $val) { + header($name . (!is_null($val) ? ':' . $val : '')); + } + } + + if ($this->cookie) { + $this->cookie->save(); } - } - if ($this->cookie) { - $this->cookie->save(); } $this->sendData($data); diff --git a/vendor/topthink/framework/src/think/cache/Driver.php b/vendor/topthink/framework/src/think/cache/Driver.php index 5813c7b..37ffbc9 100644 --- a/vendor/topthink/framework/src/think/cache/Driver.php +++ b/vendor/topthink/framework/src/think/cache/Driver.php @@ -249,7 +249,7 @@ abstract class Driver implements CacheInterface, CacheHandlerInterface * @param string $data 缓存数据 * @return mixed */ - protected function unserialize(string $data) + protected function unserialize($data) { if (is_numeric($data)) { return $data; diff --git a/vendor/topthink/framework/src/think/console/command/Make.php b/vendor/topthink/framework/src/think/console/command/Make.php index 662b337..a74e9e8 100644 --- a/vendor/topthink/framework/src/think/console/command/Make.php +++ b/vendor/topthink/framework/src/think/console/command/Make.php @@ -67,7 +67,7 @@ abstract class Make extends Command protected function getPathName(string $name): string { - $name = str_replace('app\\', '', $name); + $name = substr($name, 4); return $this->app->getBasePath() . ltrim(str_replace('\\', '/', $name), '/') . '.php'; } diff --git a/vendor/topthink/framework/src/think/console/command/RouteList.php b/vendor/topthink/framework/src/think/console/command/RouteList.php index ed579b8..e9d4c5d 100644 --- a/vendor/topthink/framework/src/think/console/command/RouteList.php +++ b/vendor/topthink/framework/src/think/console/command/RouteList.php @@ -91,14 +91,13 @@ class RouteList extends Command foreach ($routeList as $item) { $item['route'] = $item['route'] instanceof \Closure ? '' : $item['route']; + $row = [$item['rule'], $item['route'], $item['method'], $item['name']]; if ($this->input->hasOption('more')) { - $item = [$item['rule'], $item['route'], $item['method'], $item['name'], $item['domain'], json_encode($item['option']), json_encode($item['pattern'])]; - } else { - $item = [$item['rule'], $item['route'], $item['method'], $item['name']]; + array_push($row, $item['domain'], json_encode($item['option']), json_encode($item['pattern'])); } - $rows[] = $item; + $rows[] = $row; } if ($this->input->getOption('sort')) { diff --git a/vendor/topthink/framework/src/think/console/input/Option.php b/vendor/topthink/framework/src/think/console/input/Option.php index 19c7e1e..d7e6514 100644 --- a/vendor/topthink/framework/src/think/console/input/Option.php +++ b/vendor/topthink/framework/src/think/console/input/Option.php @@ -18,7 +18,7 @@ namespace think\console\input; class Option { // 无需传值 - const VALUE_NONE = 1; + const VALUE_NONE = 1; // 必须传值 const VALUE_REQUIRED = 2; // 可选传值 @@ -30,13 +30,13 @@ class Option * 选项名 * @var string */ - private $name; + private $name = ''; /** * 选项短名称 * @var string */ - private $shortcut; + private $shortcut = ''; /** * 选项类型 @@ -54,7 +54,7 @@ class Option * 选项描述 * @var string */ - private $description; + private $description = ''; /** * 构造方法 @@ -76,10 +76,10 @@ class Option } if (empty($shortcut)) { - $shortcut = null; + $shortcut = ''; } - if (null !== $shortcut) { + if ('' !== $shortcut) { if (is_array($shortcut)) { $shortcut = implode('|', $shortcut); } @@ -114,7 +114,7 @@ class Option * 获取短名称 * @return string */ - public function getShortcut() + public function getShortcut(): string { return $this->shortcut; } @@ -123,7 +123,7 @@ class Option * 获取选项名 * @return string */ - public function getName() + public function getName(): string { return $this->name; } @@ -132,7 +132,7 @@ class Option * 是否可以设置值 * @return bool 类型不是 self::VALUE_NONE 的时候返回true,其他均返回false */ - public function acceptValue() + public function acceptValue(): bool { return $this->isValueRequired() || $this->isValueOptional(); } @@ -141,7 +141,7 @@ class Option * 是否必须 * @return bool 类型是 self::VALUE_REQUIRED 的时候返回true,其他均返回false */ - public function isValueRequired() + public function isValueRequired(): bool { return self::VALUE_REQUIRED === (self::VALUE_REQUIRED & $this->mode); } @@ -150,7 +150,7 @@ class Option * 是否可选 * @return bool 类型是 self::VALUE_OPTIONAL 的时候返回true,其他均返回false */ - public function isValueOptional() + public function isValueOptional(): bool { return self::VALUE_OPTIONAL === (self::VALUE_OPTIONAL & $this->mode); } @@ -159,7 +159,7 @@ class Option * 选项值是否接受数组 * @return bool 类型是 self::VALUE_IS_ARRAY 的时候返回true,其他均返回false */ - public function isArray() + public function isArray(): bool { return self::VALUE_IS_ARRAY === (self::VALUE_IS_ARRAY & $this->mode); } @@ -199,7 +199,7 @@ class Option * 获取描述文字 * @return string */ - public function getDescription() + public function getDescription(): string { return $this->description; } @@ -209,7 +209,7 @@ class Option * @param Option $option * @return bool */ - public function equals(Option $option) + public function equals(Option $option): bool { return $option->getName() === $this->getName() && $option->getShortcut() === $this->getShortcut() diff --git a/vendor/topthink/framework/src/think/filesystem/Driver.php b/vendor/topthink/framework/src/think/filesystem/Driver.php index 6712959..0e61cf4 100644 --- a/vendor/topthink/framework/src/think/filesystem/Driver.php +++ b/vendor/topthink/framework/src/think/filesystem/Driver.php @@ -17,6 +17,7 @@ use League\Flysystem\Adapter\AbstractAdapter; use League\Flysystem\Cached\CachedAdapter; use League\Flysystem\Cached\Storage\Memory as MemoryStore; use League\Flysystem\Filesystem; +use RuntimeException; use think\Cache; use think\File; @@ -91,6 +92,16 @@ abstract class Driver return $path; } + protected function concatPathToUrl($url, $path) + { + return rtrim($url, '/') . '/' . ltrim($path, '/'); + } + + public function url(string $path): string + { + throw new RuntimeException('This driver does not support retrieving URLs.'); + } + /** * 保存文件 * @param string $path 路径 diff --git a/vendor/topthink/framework/src/think/filesystem/driver/Local.php b/vendor/topthink/framework/src/think/filesystem/driver/Local.php index c10ccc3..31172d0 100644 --- a/vendor/topthink/framework/src/think/filesystem/driver/Local.php +++ b/vendor/topthink/framework/src/think/filesystem/driver/Local.php @@ -41,4 +41,12 @@ class Local extends Driver $permissions ); } + + public function url(string $path): string + { + if (isset($this->config['url'])) { + return $this->concatPathToUrl($this->config['url'], $path); + } + return parent::url($path); + } } diff --git a/vendor/topthink/framework/src/think/log/driver/File.php b/vendor/topthink/framework/src/think/log/driver/File.php index e5682fc..1f726b0 100644 --- a/vendor/topthink/framework/src/think/log/driver/File.php +++ b/vendor/topthink/framework/src/think/log/driver/File.php @@ -139,7 +139,9 @@ class File implements LogHandlerInterface try { if (count($files) > $this->config['max_files']) { + set_error_handler(function ($errno, $errstr, $errfile, $errline) {}); unlink($files[0]); + restore_error_handler(); } } catch (\Exception $e) { // diff --git a/vendor/topthink/framework/src/think/middleware/LoadLangPack.php b/vendor/topthink/framework/src/think/middleware/LoadLangPack.php index 478e29c..d6bf6a4 100644 --- a/vendor/topthink/framework/src/think/middleware/LoadLangPack.php +++ b/vendor/topthink/framework/src/think/middleware/LoadLangPack.php @@ -14,6 +14,8 @@ namespace think\middleware; use Closure; use think\App; +use think\Config; +use think\Cookie; use think\Lang; use think\Request; use think\Response; @@ -24,13 +26,14 @@ use think\Response; class LoadLangPack { protected $app; - protected $lang; + protected $config; - public function __construct(App $app, Lang $lang) + public function __construct(App $app, Lang $lang, Config $config) { - $this->app = $app; - $this->lang = $lang; + $this->app = $app; + $this->lang = $lang; + $this->config = $lang->getConfig(); } /** @@ -43,19 +46,71 @@ class LoadLangPack public function handle($request, Closure $next) { // 自动侦测当前语言 - $langset = $this->lang->detect($request); + $langset = $this->detect($request); if ($this->lang->defaultLangSet() != $langset) { - // 加载系统语言包 - $this->lang->load([ - $this->app->getThinkPath() . 'lang' . DIRECTORY_SEPARATOR . $langset . '.php', - ]); - - $this->app->LoadLangPack($langset); + $this->lang->switchLangSet($langset); } - $this->lang->saveToCookie($this->app->cookie); + $this->saveToCookie($this->app->cookie, $langset); return $next($request); } + + /** + * 自动侦测设置获取语言选择 + * @access protected + * @param Request $request + * @return string + */ + protected function detect(Request $request): string + { + // 自动侦测设置获取语言选择 + $langSet = ''; + + if ($request->get($this->config['detect_var'])) { + // url中设置了语言变量 + $langSet = strtolower($request->get($this->config['detect_var'])); + } elseif ($request->header($this->config['header_var'])) { + // Header中设置了语言变量 + $langSet = strtolower($request->header($this->config['header_var'])); + } elseif ($request->cookie($this->config['cookie_var'])) { + // Cookie中设置了语言变量 + $langSet = strtolower($request->cookie($this->config['cookie_var'])); + } elseif ($request->server('HTTP_ACCEPT_LANGUAGE')) { + // 自动侦测浏览器语言 + $match = preg_match('/^([a-z\d\-]+)/i', $request->server('HTTP_ACCEPT_LANGUAGE'), $matches); + if ($match) { + $langSet = strtolower($matches[1]); + if (isset($this->config['accept_language'][$langSet])) { + $langSet = $this->config['accept_language'][$langSet]; + } + } + } + + if (empty($this->config['allow_lang_list']) || in_array($langSet, $this->config['allow_lang_list'])) { + // 合法的语言 + $range = $langSet; + $this->lang->setLangSet($range); + } else { + $range = $this->lang->getLangSet(); + } + + return $range; + } + + /** + * 保存当前语言到Cookie + * @access protected + * @param Cookie $cookie Cookie对象 + * @param string $langSet 语言 + * @return void + */ + protected function saveToCookie(Cookie $cookie, string $langSet) + { + if ($this->config['use_cookie']) { + $cookie->set($this->config['cookie_var'], $langSet); + } + } + } diff --git a/vendor/topthink/framework/src/think/route/Dispatch.php b/vendor/topthink/framework/src/think/route/Dispatch.php index e77e299..0599dc1 100644 --- a/vendor/topthink/framework/src/think/route/Dispatch.php +++ b/vendor/topthink/framework/src/think/route/Dispatch.php @@ -12,6 +12,7 @@ declare (strict_types = 1); namespace think\route; +use Psr\Http\Message\ResponseInterface; use think\App; use think\Container; use think\Request; @@ -94,6 +95,12 @@ abstract class Dispatch { if ($data instanceof Response) { $response = $data; + } elseif ($data instanceof ResponseInterface) { + $response = Response::create($data->getBody()->getContents(), 'html', $data->getStatusCode()); + + foreach ($data->getHeaders() as $header => $values) { + $response->header([$header => implode(", ", $values)]); + } } elseif (!is_null($data)) { // 默认自动识别响应输出类型 $type = $this->request->isJson() ? 'json' : 'html'; diff --git a/vendor/topthink/framework/src/think/route/Resource.php b/vendor/topthink/framework/src/think/route/Resource.php index bb37cb6..5185cdc 100644 --- a/vendor/topthink/framework/src/think/route/Resource.php +++ b/vendor/topthink/framework/src/think/route/Resource.php @@ -213,7 +213,7 @@ class Resource extends RuleGroup } /** - * 绑定资源模型 + * 绑定资源中间件 * @access public * @param array|string $name 资源类型或者中间件定义 * @param array|string $middleware 中间件定义 diff --git a/vendor/topthink/framework/src/think/route/Rule.php b/vendor/topthink/framework/src/think/route/Rule.php index 31b2e0e..2d864cd 100644 --- a/vendor/topthink/framework/src/think/route/Rule.php +++ b/vendor/topthink/framework/src/think/route/Rule.php @@ -532,6 +532,17 @@ abstract class Rule return $this->setOption('view', $view); } + /** + * 通过闭包检查路由是否匹配 + * @access public + * @param callable $match 闭包 + * @return $this + */ + public function match(callable $match) + { + return $this->setOption('match', $match); + } + /** * 设置路由完整匹配 * @access public @@ -694,6 +705,13 @@ abstract class Rule */ protected function checkOption(array $option, Request $request): bool { + // 检查当前路由是否匹配 + if (isset($option['match']) && is_callable($option['match'])) { + if (false === $option['match']($this, $request)) { + return false; + } + } + // 请求类型检测 if (!empty($option['method'])) { if (is_string($option['method']) && false === stripos($option['method'], $request->method())) { diff --git a/vendor/topthink/framework/src/think/route/RuleItem.php b/vendor/topthink/framework/src/think/route/RuleItem.php index 1f9aa52..e4e3246 100644 --- a/vendor/topthink/framework/src/think/route/RuleItem.php +++ b/vendor/topthink/framework/src/think/route/RuleItem.php @@ -196,7 +196,7 @@ class RuleItem extends Rule $url = $this->urlSuffixCheck($request, $url, $option); if (is_null($match)) { - $match = $this->match($url, $option, $pattern, $completeMatch); + $match = $this->checkMatch($url, $option, $pattern, $completeMatch); } if (false !== $match) { @@ -252,7 +252,7 @@ class RuleItem extends Rule * @param bool $completeMatch 是否完全匹配 * @return array|false */ - private function match(string $url, array $option, array $pattern, bool $completeMatch) + private function checkMatch(string $url, array $option, array $pattern, bool $completeMatch) { if (isset($option['complete_match'])) { $completeMatch = $option['complete_match']; diff --git a/vendor/topthink/framework/src/think/route/Url.php b/vendor/topthink/framework/src/think/route/Url.php index 8dd410c..b3f8b9f 100644 --- a/vendor/topthink/framework/src/think/route/Url.php +++ b/vendor/topthink/framework/src/think/route/Url.php @@ -320,7 +320,7 @@ class Url } if (empty($pattern)) { - return [rtrim($url, '?/-'), $domain, $suffix]; + return [rtrim($url, '?-'), $domain, $suffix]; } $type = $this->route->config('url_common_param'); @@ -331,11 +331,11 @@ class Url $url = str_replace(['[:' . $key . ']', '<' . $key . '?>', ':' . $key, '<' . $key . '>'], $type ? (string) $vars[$key] : urlencode((string) $vars[$key]), $url); $keys[] = $key; $url = str_replace(['/?', '-?'], ['/', '-'], $url); - $result = [rtrim($url, '?/-'), $domain, $suffix]; + $result = [rtrim($url, '?-'), $domain, $suffix]; } elseif (2 == $val) { $url = str_replace(['/[:' . $key . ']', '[:' . $key . ']', '<' . $key . '?>'], '', $url); $url = str_replace(['/?', '-?'], ['/', '-'], $url); - $result = [rtrim($url, '?/-'), $domain, $suffix]; + $result = [rtrim($url, '?-'), $domain, $suffix]; } else { $result = null; $keys = []; diff --git a/vendor/topthink/framework/src/think/route/dispatch/Controller.php b/vendor/topthink/framework/src/think/route/dispatch/Controller.php index 611101b..f18512c 100644 --- a/vendor/topthink/framework/src/think/route/dispatch/Controller.php +++ b/vendor/topthink/framework/src/think/route/dispatch/Controller.php @@ -113,6 +113,13 @@ class Controller extends Dispatch }); } + protected function parseActions($actions) + { + return array_map(function ($item) { + return strtolower($item); + }, is_string($actions) ? explode(",", $actions) : $actions); + } + /** * 使用反射机制注册控制器中间件 * @access public @@ -128,30 +135,34 @@ class Controller extends Dispatch $reflectionProperty->setAccessible(true); $middlewares = $reflectionProperty->getValue($controller); + $action = $this->request->action(true); foreach ($middlewares as $key => $val) { if (!is_int($key)) { - if (isset($val['only']) && !in_array($this->request->action(true), array_map(function ($item) { - return strtolower($item); - }, is_string($val['only']) ? explode(",", $val['only']) : $val['only']))) { - continue; - } elseif (isset($val['except']) && in_array($this->request->action(true), array_map(function ($item) { - return strtolower($item); - }, is_string($val['except']) ? explode(',', $val['except']) : $val['except']))) { - continue; - } else { - $val = $key; - } + $middleware = $key; + $options = $val; + } elseif (isset($val['middleware'])) { + $middleware = $val['middleware']; + $options = $val['options'] ?? []; + } else { + $middleware = $val; + $options = []; + } + + if (isset($options['only']) && !in_array($action, $this->parseActions($options['only']))) { + continue; + } elseif (isset($options['except']) && in_array($action, $this->parseActions($options['except']))) { + continue; } - if (is_string($val) && strpos($val, ':')) { - $val = explode(':', $val); - if (count($val) > 1) { - $val = [$val[0], array_slice($val, 1)]; + if (is_string($middleware) && strpos($middleware, ':')) { + $middleware = explode(':', $middleware); + if (count($middleware) > 1) { + $middleware = [$middleware[0], array_slice($middleware, 1)]; } } - $this->app->middleware->controller($val); + $this->app->middleware->controller($middleware); } } } diff --git a/vendor/topthink/framework/tests/AppTest.php b/vendor/topthink/framework/tests/AppTest.php new file mode 100644 index 0000000..6b86015 --- /dev/null +++ b/vendor/topthink/framework/tests/AppTest.php @@ -0,0 +1,215 @@ + 'class', + ]; + + public function register() + { + + } + + public function boot() + { + + } +} + +/** + * @property array initializers + */ +class AppTest extends TestCase +{ + /** @var App */ + protected $app; + + protected function setUp() + { + $this->app = new App(); + } + + protected function tearDown(): void + { + m::close(); + } + + public function testService() + { + $this->app->register(stdClass::class); + + $this->assertInstanceOf(stdClass::class, $this->app->getService(stdClass::class)); + + $service = m::mock(SomeService::class); + + $service->shouldReceive('register')->once(); + + $this->app->register($service); + + $this->assertEquals($service, $this->app->getService(SomeService::class)); + + $service2 = m::mock(SomeService::class); + + $service2->shouldReceive('register')->once(); + + $this->app->register($service2); + + $this->assertEquals($service, $this->app->getService(SomeService::class)); + + $this->app->register($service2, true); + + $this->assertEquals($service2, $this->app->getService(SomeService::class)); + + $service->shouldReceive('boot')->once(); + $service2->shouldReceive('boot')->once(); + + $this->app->boot(); + } + + public function testDebug() + { + $this->app->debug(false); + + $this->assertFalse($this->app->isDebug()); + + $this->app->debug(true); + + $this->assertTrue($this->app->isDebug()); + } + + public function testNamespace() + { + $namespace = 'test'; + + $this->app->setNamespace($namespace); + + $this->assertEquals($namespace, $this->app->getNamespace()); + } + + public function testVersion() + { + $this->assertEquals(App::VERSION, $this->app->version()); + } + + public function testPath() + { + $rootPath = __DIR__ . DIRECTORY_SEPARATOR; + + $app = new App($rootPath); + + $this->assertEquals($rootPath, $app->getRootPath()); + + $this->assertEquals(dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR, $app->getThinkPath()); + + $this->assertEquals($rootPath . 'app' . DIRECTORY_SEPARATOR, $app->getAppPath()); + + $appPath = $rootPath . 'app' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR; + $app->setAppPath($appPath); + $this->assertEquals($appPath, $app->getAppPath()); + + $this->assertEquals($rootPath . 'app' . DIRECTORY_SEPARATOR, $app->getBasePath()); + + $this->assertEquals($rootPath . 'config' . DIRECTORY_SEPARATOR, $app->getConfigPath()); + + $this->assertEquals($rootPath . 'runtime' . DIRECTORY_SEPARATOR, $app->getRuntimePath()); + + $runtimePath = $rootPath . 'runtime' . DIRECTORY_SEPARATOR . 'admin' . DIRECTORY_SEPARATOR; + $app->setRuntimePath($runtimePath); + $this->assertEquals($runtimePath, $app->getRuntimePath()); + } + + /** + * @param vfsStreamDirectory $root + * @param bool $debug + * @return App + */ + protected function prepareAppForInitialize(vfsStreamDirectory $root, $debug = true) + { + $rootPath = $root->url() . DIRECTORY_SEPARATOR; + + $app = new App($rootPath); + + $initializer = m::mock(); + $initializer->shouldReceive('init')->once()->with($app); + + $app->instance($initializer->mockery_getName(), $initializer); + + (function () use ($initializer) { + $this->initializers = [$initializer->mockery_getName()]; + })->call($app); + + $env = m::mock(Env::class); + $env->shouldReceive('load')->once()->with($rootPath . '.env'); + $env->shouldReceive('get')->once()->with('config_ext', '.php')->andReturn('.php'); + $env->shouldReceive('get')->once()->with('app_debug')->andReturn($debug); + + $event = m::mock(Event::class); + $event->shouldReceive('trigger')->once()->with(AppInit::class); + $event->shouldReceive('bind')->once()->with([]); + $event->shouldReceive('listenEvents')->once()->with([]); + $event->shouldReceive('subscribe')->once()->with([]); + + $app->instance('env', $env); + $app->instance('event', $event); + + return $app; + } + + public function testInitialize() + { + $root = vfsStream::setup('rootDir', null, [ + '.env' => '', + 'app' => [ + 'common.php' => '', + 'event.php' => '[],"listen"=>[],"subscribe"=>[]];', + 'provider.php' => ' [ + 'app.php' => 'prepareAppForInitialize($root, true); + + $app->debug(false); + + $app->initialize(); + + $this->assertIsInt($app->getBeginMem()); + $this->assertIsFloat($app->getBeginTime()); + + $this->assertTrue($app->initialized()); + } + + public function testFactory() + { + $this->assertInstanceOf(stdClass::class, App::factory(stdClass::class)); + + $this->expectException(ClassNotFoundException::class); + + App::factory('SomeClass'); + } + + public function testParseClass() + { + $this->assertEquals('app\\controller\\SomeClass', $this->app->parseClass('controller', 'some_class')); + $this->app->setNamespace('app2'); + $this->assertEquals('app2\\controller\\SomeClass', $this->app->parseClass('controller', 'some_class')); + } + +} diff --git a/vendor/topthink/framework/tests/CacheTest.php b/vendor/topthink/framework/tests/CacheTest.php new file mode 100644 index 0000000..5b5a13c --- /dev/null +++ b/vendor/topthink/framework/tests/CacheTest.php @@ -0,0 +1,149 @@ +app = m::mock(App::class)->makePartial(); + + Container::setInstance($this->app); + $this->app->shouldReceive('make')->with(App::class)->andReturn($this->app); + $this->config = m::mock(Config::class)->makePartial(); + $this->app->shouldReceive('get')->with('config')->andReturn($this->config); + + $this->cache = new Cache($this->app); + } + + public function testGetConfig() + { + $config = [ + 'default' => 'file', + ]; + + $this->config->shouldReceive('get')->with('cache')->andReturn($config); + + $this->assertEquals($config, $this->cache->getConfig()); + + $this->expectException(InvalidArgumentException::class); + $this->cache->getStoreConfig('foo'); + } + + public function testCacheManagerInstances() + { + $this->config->shouldReceive('get')->with("cache.stores.single", null)->andReturn(['type' => 'file']); + + $channel1 = $this->cache->store('single'); + $channel2 = $this->cache->store('single'); + + $this->assertSame($channel1, $channel2); + } + + public function testFileCache() + { + $root = vfsStream::setup(); + + $this->config->shouldReceive('get')->with("cache.default", null)->andReturn('file'); + + $this->config->shouldReceive('get')->with("cache.stores.file", null)->andReturn(['type' => 'file', 'path' => $root->url()]); + + $this->cache->set('foo', 5); + $this->cache->inc('foo'); + $this->assertEquals(6, $this->cache->get('foo')); + $this->cache->dec('foo', 2); + $this->assertEquals(4, $this->cache->get('foo')); + + $this->cache->set('bar', true); + $this->assertTrue($this->cache->get('bar')); + + $this->cache->set('baz', null); + $this->assertNull($this->cache->get('baz')); + + $this->assertTrue($this->cache->has('baz')); + $this->cache->delete('baz'); + $this->assertFalse($this->cache->has('baz')); + $this->assertNull($this->cache->get('baz')); + $this->assertFalse($this->cache->get('baz', false)); + + $this->assertTrue($root->hasChildren()); + $this->cache->clear(); + $this->assertFalse($root->hasChildren()); + + //tags + $this->cache->tag('foo')->set('bar', 'foobar'); + $this->assertEquals('foobar', $this->cache->get('bar')); + $this->cache->tag('foo')->clear(); + $this->assertFalse($this->cache->has('bar')); + + //multiple + $this->cache->setMultiple(['foo' => ['foobar', 'bar'], 'foobar' => ['foo', 'bar']]); + $this->assertEquals(['foo' => ['foobar', 'bar'], 'foobar' => ['foo', 'bar']], $this->cache->getMultiple(['foo', 'foobar'])); + $this->assertTrue($this->cache->deleteMultiple(['foo', 'foobar'])); + } + + public function testRedisCache() + { + if (extension_loaded('redis')) { + return; + } + $this->config->shouldReceive('get')->with("cache.default", null)->andReturn('redis'); + $this->config->shouldReceive('get')->with("cache.stores.redis", null)->andReturn(['type' => 'redis']); + + $redis = m::mock('overload:\Predis\Client'); + + $redis->shouldReceive("set")->once()->with('foo', 5)->andReturnTrue(); + $redis->shouldReceive("incrby")->once()->with('foo', 1)->andReturnTrue(); + $redis->shouldReceive("decrby")->once()->with('foo', 2)->andReturnTrue(); + $redis->shouldReceive("get")->once()->with('foo')->andReturn('6'); + $redis->shouldReceive("get")->once()->with('foo')->andReturn('4'); + $redis->shouldReceive("set")->once()->with('bar', serialize(true))->andReturnTrue(); + $redis->shouldReceive("set")->once()->with('baz', serialize(null))->andReturnTrue(); + $redis->shouldReceive("del")->once()->with('baz')->andReturnTrue(); + $redis->shouldReceive("flushDB")->once()->andReturnTrue(); + $redis->shouldReceive("set")->once()->with('bar', serialize('foobar'))->andReturnTrue(); + $redis->shouldReceive("sAdd")->once()->with('tag:' . md5('foo'), 'bar')->andReturnTrue(); + $redis->shouldReceive("sMembers")->once()->with('tag:' . md5('foo'))->andReturn(['bar']); + $redis->shouldReceive("del")->once()->with(['bar'])->andReturnTrue(); + $redis->shouldReceive("del")->once()->with('tag:' . md5('foo'))->andReturnTrue(); + + $this->cache->set('foo', 5); + $this->cache->inc('foo'); + $this->assertEquals(6, $this->cache->get('foo')); + $this->cache->dec('foo', 2); + $this->assertEquals(4, $this->cache->get('foo')); + + $this->cache->set('bar', true); + $this->cache->set('baz', null); + $this->cache->delete('baz'); + $this->cache->clear(); + + //tags + $this->cache->tag('foo')->set('bar', 'foobar'); + $this->cache->tag('foo')->clear(); + } +} diff --git a/vendor/topthink/framework/tests/ConfigTest.php b/vendor/topthink/framework/tests/ConfigTest.php new file mode 100644 index 0000000..271a34f --- /dev/null +++ b/vendor/topthink/framework/tests/ConfigTest.php @@ -0,0 +1,46 @@ +setContent(" 'value1','key2'=>'value2'];"); + $root->addChild($file); + + $config = new Config(); + + $config->load($file->url(), 'test'); + + $this->assertEquals('value1', $config->get('test.key1')); + $this->assertEquals('value2', $config->get('test.key2')); + + $this->assertSame(['key1' => 'value1', 'key2' => 'value2'], $config->get('test')); + } + + public function testSetAndGet() + { + $config = new Config(); + + $config->set([ + 'key1' => 'value1', + 'key2' => [ + 'key3' => 'value3', + ], + ], 'test'); + + $this->assertTrue($config->has('test.key1')); + $this->assertEquals('value1', $config->get('test.key1')); + $this->assertEquals('value3', $config->get('test.key2.key3')); + + $this->assertEquals(['key3' => 'value3'], $config->get('test.key2')); + $this->assertFalse($config->has('test.key3')); + $this->assertEquals('none', $config->get('test.key3', 'none')); + } +} diff --git a/vendor/topthink/framework/tests/ContainerTest.php b/vendor/topthink/framework/tests/ContainerTest.php new file mode 100644 index 0000000..e27deb0 --- /dev/null +++ b/vendor/topthink/framework/tests/ContainerTest.php @@ -0,0 +1,314 @@ +name = $name; + } + + public function some(Container $container) + { + } + + protected function protectionFun() + { + return true; + } + + public static function test(Container $container) + { + return $container; + } + + public static function __make() + { + return new self('Taylor'); + } +} + +class SomeClass +{ + public $container; + + public $count = 0; + + public function __construct(Container $container) + { + $this->container = $container; + } +} + +class ContainerTest extends TestCase +{ + protected function tearDown(): void + { + Container::setInstance(null); + } + + public function testClosureResolution() + { + $container = new Container; + + Container::setInstance($container); + + $container->bind('name', function () { + return 'Taylor'; + }); + + $this->assertEquals('Taylor', $container->make('name')); + + $this->assertEquals('Taylor', Container::pull('name')); + } + + public function testGet() + { + $container = new Container; + + $this->expectException(ClassNotFoundException::class); + $this->expectExceptionMessage('class not exists: name'); + $container->get('name'); + + $container->bind('name', function () { + return 'Taylor'; + }); + + $this->assertSame('Taylor', $container->get('name')); + } + + public function testExist() + { + $container = new Container; + + $container->bind('name', function () { + return 'Taylor'; + }); + + $this->assertFalse($container->exists("name")); + + $container->make('name'); + + $this->assertTrue($container->exists('name')); + } + + public function testInstance() + { + $container = new Container; + + $container->bind('name', function () { + return 'Taylor'; + }); + + $this->assertEquals('Taylor', $container->get('name')); + + $container->bind('name2', Taylor::class); + + $object = new stdClass(); + + $this->assertFalse($container->exists('name2')); + + $container->instance('name2', $object); + + $this->assertTrue($container->exists('name2')); + + $this->assertTrue($container->exists(Taylor::class)); + + $this->assertEquals($object, $container->make(Taylor::class)); + + unset($container->name1); + + $this->assertFalse($container->exists('name1')); + + $container->delete('name2'); + + $this->assertFalse($container->exists('name2')); + + foreach ($container as $class => $instance) { + + } + } + + public function testBind() + { + $container = new Container; + + $object = new stdClass(); + + $container->bind(['name' => Taylor::class]); + + $container->bind('name2', $object); + + $container->bind('name3', Taylor::class); + $container->bind('name3', Taylor::class); + + $container->name4 = $object; + + $container['name5'] = $object; + + $this->assertTrue(isset($container->name4)); + + $this->assertTrue(isset($container['name5'])); + + $this->assertInstanceOf(Taylor::class, $container->get('name')); + + $this->assertSame($object, $container->get('name2')); + + $this->assertSame($object, $container->name4); + + $this->assertSame($object, $container['name5']); + + $this->assertInstanceOf(Taylor::class, $container->get('name3')); + + unset($container['name']); + + $this->assertFalse(isset($container['name'])); + + unset($container->name3); + + $this->assertFalse(isset($container->name3)); + } + + public function testAutoConcreteResolution() + { + $container = new Container; + + $taylor = $container->make(Taylor::class); + + $this->assertInstanceOf(Taylor::class, $taylor); + $this->assertAttributeSame('Taylor', 'name', $taylor); + } + + public function testGetAndSetInstance() + { + $this->assertInstanceOf(Container::class, Container::getInstance()); + + $object = new stdClass(); + + Container::setInstance($object); + + $this->assertSame($object, Container::getInstance()); + + Container::setInstance(function () { + return $this; + }); + + $this->assertSame($this, Container::getInstance()); + } + + public function testResolving() + { + $container = new Container(); + $container->bind(Container::class, $container); + + $container->resolving(function (SomeClass $taylor, Container $container) { + $taylor->count++; + }); + $container->resolving(SomeClass::class, function (SomeClass $taylor, Container $container) { + $taylor->count++; + }); + + /** @var SomeClass $someClass */ + $someClass = $container->invokeClass(SomeClass::class); + $this->assertEquals(2, $someClass->count); + } + + public function testInvokeFunctionWithoutMethodThrowsException() + { + $this->expectException(FuncNotFoundException::class); + $this->expectExceptionMessage('function not exists: ContainerTestCallStub()'); + $container = new Container(); + $container->invokeFunction('ContainerTestCallStub', []); + } + + public function testInvokeProtectionMethod() + { + $container = new Container(); + $this->assertTrue($container->invokeMethod([Taylor::class, 'protectionFun'], [], true)); + } + + public function testInvoke() + { + $container = new Container(); + + Container::setInstance($container); + + $container->bind(Container::class, $container); + + $stub = $this->createMock(Taylor::class); + + $stub->expects($this->once())->method('some')->with($container)->will($this->returnSelf()); + + $container->invokeMethod([$stub, 'some']); + + $this->assertEquals('48', $container->invoke('ord', ['0'])); + + $this->assertSame($container, $container->invoke(Taylor::class . '::test', [])); + + $this->assertSame($container, $container->invokeMethod(Taylor::class . '::test')); + + $reflect = new ReflectionMethod($container, 'exists'); + + $this->assertTrue($container->invokeReflectMethod($container, $reflect, [Container::class])); + + $this->assertSame($container, $container->invoke(function (Container $container) { + return $container; + })); + + $this->assertSame($container, $container->invoke(Taylor::class . '::test')); + + $object = $container->invokeClass(SomeClass::class); + $this->assertInstanceOf(SomeClass::class, $object); + $this->assertSame($container, $object->container); + + $stdClass = new stdClass(); + + $container->invoke(function (Container $container, stdClass $stdObject, $key1, $lowKey, $key2 = 'default') use ($stdClass) { + $this->assertEquals('value1', $key1); + $this->assertEquals('default', $key2); + $this->assertEquals('value2', $lowKey); + $this->assertSame($stdClass, $stdObject); + return $container; + }, ['some' => $stdClass, 'key1' => 'value1', 'low_key' => 'value2']); + } + + public function testInvokeMethodNotExists() + { + $container = $this->resolveContainer(); + $this->expectException(FuncNotFoundException::class); + + $container->invokeMethod([SomeClass::class, 'any']); + } + + public function testInvokeClassNotExists() + { + $container = new Container(); + + Container::setInstance($container); + + $container->bind(Container::class, $container); + + $this->expectExceptionObject(new ClassNotFoundException('class not exists: SomeClass')); + + $container->invokeClass('SomeClass'); + } + + protected function resolveContainer() + { + $container = new Container(); + + Container::setInstance($container); + return $container; + } + +} diff --git a/vendor/topthink/framework/tests/DbTest.php b/vendor/topthink/framework/tests/DbTest.php new file mode 100644 index 0000000..3bd0c1e --- /dev/null +++ b/vendor/topthink/framework/tests/DbTest.php @@ -0,0 +1,49 @@ +shouldReceive('get')->with('database.cache_store', null)->andReturn(null); + $cache->shouldReceive('store')->with(null)->andReturn($store); + + $db = Db::__make($event, $config, $log, $cache); + + $config->shouldReceive('get')->with('database.foo', null)->andReturn('foo'); + $this->assertEquals('foo', $db->getConfig('foo')); + + $config->shouldReceive('get')->with('database', [])->andReturn([]); + $this->assertEquals([], $db->getConfig()); + + $callback = function () { + }; + $event->shouldReceive('listen')->with('db.some', $callback); + $db->event('some', $callback); + + $event->shouldReceive('trigger')->with('db.some', null, false); + $db->trigger('some'); + } + +} diff --git a/vendor/topthink/framework/tests/DispatchTest.php b/vendor/topthink/framework/tests/DispatchTest.php new file mode 100644 index 0000000..2b9e413 --- /dev/null +++ b/vendor/topthink/framework/tests/DispatchTest.php @@ -0,0 +1,32 @@ + ['tp', 'thinkphp'], 'psr' => 'psr-7'], '123'); + } + }; + + $response = $dispatch->run(); + + $this->assertInstanceOf(\think\Response::class, $response); + $this->assertEquals('123', $response->getContent()); + $this->assertEquals('tp, thinkphp', $response->getHeader('framework')); + $this->assertEquals('psr-7', $response->getHeader('psr')); + } +} diff --git a/vendor/topthink/framework/tests/EnvTest.php b/vendor/topthink/framework/tests/EnvTest.php new file mode 100644 index 0000000..9b3b615 --- /dev/null +++ b/vendor/topthink/framework/tests/EnvTest.php @@ -0,0 +1,80 @@ +setContent("key1=value1\nkey2=value2"); + $root->addChild($envFile); + + $env = new Env(); + + $env->load($envFile->url()); + + $this->assertEquals('value1', $env->get('key1')); + $this->assertEquals('value2', $env->get('key2')); + } + + public function testServerEnv() + { + $env = new Env(); + + $this->assertEquals('value2', $env->get('key2', 'value2')); + + putenv('PHP_KEY7=value7'); + putenv('PHP_KEY8=false'); + putenv('PHP_KEY9=true'); + + $this->assertEquals('value7', $env->get('key7')); + $this->assertFalse($env->get('KEY8')); + $this->assertTrue($env->get('key9')); + } + + public function testSetEnv() + { + $env = new Env(); + + $env->set([ + 'key1' => 'value1', + 'key2' => [ + 'key1' => 'value1-2', + ], + ]); + + $env->set('key3', 'value3'); + + $env->key4 = 'value4'; + + $env['key5'] = 'value5'; + + $this->assertEquals('value1', $env->get('key1')); + $this->assertEquals('value1-2', $env->get('key2.key1')); + + $this->assertEquals('value3', $env->get('key3')); + + $this->assertEquals('value4', $env->key4); + + $this->assertEquals('value5', $env['key5']); + + $this->expectException(Exception::class); + + unset($env['key5']); + } + + public function testHasEnv() + { + $env = new Env(); + $env->set(['foo' => 'bar']); + $this->assertTrue($env->has('foo')); + $this->assertTrue(isset($env->foo)); + $this->assertTrue($env->offsetExists('foo')); + } +} diff --git a/vendor/topthink/framework/tests/EventTest.php b/vendor/topthink/framework/tests/EventTest.php new file mode 100644 index 0000000..ded5a36 --- /dev/null +++ b/vendor/topthink/framework/tests/EventTest.php @@ -0,0 +1,134 @@ +app = m::mock(App::class)->makePartial(); + + Container::setInstance($this->app); + $this->app->shouldReceive('make')->with(App::class)->andReturn($this->app); + $this->config = m::mock(Config::class)->makePartial(); + $this->app->shouldReceive('get')->with('config')->andReturn($this->config); + + $this->event = new Event($this->app); + } + + public function testBasic() + { + $this->event->bind(['foo' => 'baz']); + + $this->event->listen('foo', function ($bar) { + $this->assertEquals('bar', $bar); + }); + + $this->assertTrue($this->event->hasListener('foo')); + + $this->event->trigger('baz', 'bar'); + + $this->event->remove('foo'); + + $this->assertFalse($this->event->hasListener('foo')); + } + + public function testOnceEvent() + { + $this->event->listen('AppInit', function ($bar) { + $this->assertEquals('bar', $bar); + return 'foo'; + }); + + $this->assertEquals('foo', $this->event->trigger('AppInit', 'bar', true)); + $this->assertEquals(['foo'], $this->event->trigger('AppInit', 'bar')); + } + + public function testClassListener() + { + $listener = m::mock("overload:SomeListener", TestListener::class); + + $listener->shouldReceive('handle')->andReturnTrue(); + + $this->event->listen('some', "SomeListener"); + + $this->assertTrue($this->event->until('some')); + } + + public function testSubscribe() + { + $listener = m::mock("overload:SomeListener", TestListener::class); + + $listener->shouldReceive('subscribe')->andReturnUsing(function (Event $event) use ($listener) { + + $listener->shouldReceive('onBar')->once()->andReturnFalse(); + + $event->listenEvents(['SomeListener::onBar' => [[$listener, 'onBar']]]); + }); + + $this->event->subscribe('SomeListener'); + + $this->assertTrue($this->event->hasListener('SomeListener::onBar')); + + $this->event->trigger('SomeListener::onBar'); + } + + public function testAutoObserve() + { + $listener = m::mock("overload:SomeListener", TestListener::class); + + $listener->shouldReceive('onBar')->once(); + + $this->app->shouldReceive('make')->with('SomeListener')->andReturn($listener); + + $this->event->observe('SomeListener'); + + $this->event->trigger('bar'); + } + +} + +class TestListener +{ + public function handle() + { + + } + + public function onBar() + { + + } + + public function onFoo() + { + + } + + public function subscribe() + { + + } +} diff --git a/vendor/topthink/framework/tests/FilesystemTest.php b/vendor/topthink/framework/tests/FilesystemTest.php new file mode 100644 index 0000000..df5ffe2 --- /dev/null +++ b/vendor/topthink/framework/tests/FilesystemTest.php @@ -0,0 +1,131 @@ +app = m::mock(App::class)->makePartial(); + Container::setInstance($this->app); + $this->app->shouldReceive('make')->with(App::class)->andReturn($this->app); + $this->config = m::mock(Config::class); + $this->config->shouldReceive('get')->with('filesystem.default', null)->andReturn('local'); + $this->app->shouldReceive('get')->with('config')->andReturn($this->config); + $this->filesystem = new Filesystem($this->app); + + $this->root = vfsStream::setup('rootDir'); + } + + protected function tearDown(): void + { + m::close(); + } + + public function testDisk() + { + $this->config->shouldReceive('get')->with('filesystem.disks.local', null)->andReturn([ + 'type' => 'local', + 'root' => $this->root->url(), + ]); + + $this->config->shouldReceive('get')->with('filesystem.disks.foo', null)->andReturn([ + 'type' => 'local', + 'root' => $this->root->url(), + ]); + + $this->assertInstanceOf(Local::class, $this->filesystem->disk()); + + $this->assertInstanceOf(Local::class, $this->filesystem->disk('foo')); + } + + public function testCache() + { + $this->config->shouldReceive('get')->with('filesystem.disks.local', null)->andReturn([ + 'type' => 'local', + 'root' => $this->root->url(), + 'cache' => true, + ]); + + $this->assertInstanceOf(Local::class, $this->filesystem->disk()); + + $this->config->shouldReceive('get')->with('filesystem.disks.cache', null)->andReturn([ + 'type' => NullDriver::class, + 'root' => $this->root->url(), + 'cache' => [ + 'store' => 'flysystem', + ], + ]); + + $cache = m::mock(Cache::class); + + $cacheDriver = m::mock(File::class); + + $cache->shouldReceive('store')->once()->with('flysystem')->andReturn($cacheDriver); + + $this->app->shouldReceive('make')->with(Cache::class)->andReturn($cache); + + $cacheDriver->shouldReceive('get')->with('flysystem')->once()->andReturn(null); + + $cacheDriver->shouldReceive('set')->withAnyArgs(); + + $this->filesystem->disk('cache')->put('test.txt', 'aa'); + } + + public function testPutFile() + { + $root = vfsStream::setup('rootDir', null, [ + 'foo.jpg' => 'hello', + ]); + + $this->config->shouldReceive('get')->with('filesystem.disks.local', null)->andReturn([ + 'type' => NullDriver::class, + 'root' => $root->url(), + 'cache' => true, + ]); + + $file = m::mock(\think\File::class); + + $file->shouldReceive('hashName')->with(null)->once()->andReturn('foo.jpg'); + + $file->shouldReceive('getRealPath')->once()->andReturn($root->getChild('foo.jpg')->url()); + + $this->filesystem->putFile('test', $file); + } +} + +class NullDriver extends Driver +{ + protected function createAdapter(): AdapterInterface + { + return new NullAdapter(); + } +} diff --git a/vendor/topthink/framework/tests/HttpTest.php b/vendor/topthink/framework/tests/HttpTest.php new file mode 100644 index 0000000..c3e0abd --- /dev/null +++ b/vendor/topthink/framework/tests/HttpTest.php @@ -0,0 +1,155 @@ +app = m::mock(App::class)->makePartial(); + + $this->http = m::mock(Http::class, [$this->app])->shouldAllowMockingProtectedMethods()->makePartial(); + } + + protected function prepareApp($request, $response) + { + $this->app->shouldReceive('instance')->once()->with('request', $request); + $this->app->shouldReceive('initialized')->once()->andReturnFalse(); + $this->app->shouldReceive('initialize')->once(); + $this->app->shouldReceive('get')->with('request')->andReturn($request); + + $route = m::mock(Route::class); + + $route->shouldReceive('dispatch')->withArgs(function ($req, $withRoute) use ($request) { + if ($withRoute) { + $withRoute(); + } + return $req === $request; + })->andReturn($response); + + $route->shouldReceive('config')->with('route_annotation')->andReturn(true); + + $this->app->shouldReceive('get')->with('route')->andReturn($route); + + $console = m::mock(Console::class); + + $console->shouldReceive('call'); + + $this->app->shouldReceive('get')->with('console')->andReturn($console); + } + + public function testRun() + { + $root = vfsStream::setup('rootDir', null, [ + 'app' => [ + 'controller' => [], + 'middleware.php' => ' [ + 'route.php' => 'app->shouldReceive('getBasePath')->andReturn($root->getChild('app')->url() . DIRECTORY_SEPARATOR); + $this->app->shouldReceive('getRootPath')->andReturn($root->url() . DIRECTORY_SEPARATOR); + + $request = m::mock(Request::class)->makePartial(); + $response = m::mock(Response::class)->makePartial(); + + $this->prepareApp($request, $response); + + $this->assertEquals($response, $this->http->run($request)); + } + + public function multiAppRunProvider() + { + $request1 = m::mock(Request::class)->makePartial(); + $request1->shouldReceive('subDomain')->andReturn('www'); + $request1->shouldReceive('host')->andReturn('www.domain.com'); + + $request2 = m::mock(Request::class)->makePartial(); + $request2->shouldReceive('subDomain')->andReturn('app2'); + $request2->shouldReceive('host')->andReturn('app2.domain.com'); + + $request3 = m::mock(Request::class)->makePartial(); + $request3->shouldReceive('pathinfo')->andReturn('some1/a/b/c'); + + $request4 = m::mock(Request::class)->makePartial(); + $request4->shouldReceive('pathinfo')->andReturn('app3/a/b/c'); + + $request5 = m::mock(Request::class)->makePartial(); + $request5->shouldReceive('pathinfo')->andReturn('some2/a/b/c'); + + return [ + [$request1, true, 'app1'], + [$request2, true, 'app2'], + [$request3, true, 'app3'], + [$request4, true, null], + [$request5, true, 'some2', 'path'], + [$request1, false, 'some3'], + ]; + } + + public function testRunWithException() + { + $request = m::mock(Request::class); + $response = m::mock(Response::class); + + $this->app->shouldReceive('instance')->once()->with('request', $request); + $this->app->shouldReceive('initialize')->once(); + + $exception = new Exception(); + + $this->http->shouldReceive('runWithRequest')->once()->with($request)->andThrow($exception); + + $handle = m::mock(Handle::class); + + $handle->shouldReceive('report')->once()->with($exception); + $handle->shouldReceive('render')->once()->with($request, $exception)->andReturn($response); + + $this->app->shouldReceive('make')->with(Handle::class)->andReturn($handle); + + $this->assertEquals($response, $this->http->run($request)); + } + + public function testEnd() + { + $response = m::mock(Response::class); + $event = m::mock(Event::class); + $event->shouldReceive('trigger')->once()->with(HttpEnd::class, $response); + $this->app->shouldReceive('get')->once()->with('event')->andReturn($event); + $log = m::mock(Log::class); + $log->shouldReceive('save')->once(); + $this->app->shouldReceive('get')->once()->with('log')->andReturn($log); + + $this->http->end($response); + } + +} diff --git a/vendor/topthink/framework/tests/InteractsWithApp.php b/vendor/topthink/framework/tests/InteractsWithApp.php new file mode 100644 index 0000000..f4fcf73 --- /dev/null +++ b/vendor/topthink/framework/tests/InteractsWithApp.php @@ -0,0 +1,30 @@ +app = m::mock(App::class)->makePartial(); + Container::setInstance($this->app); + $this->app->shouldReceive('make')->with(App::class)->andReturn($this->app); + $this->app->shouldReceive('isDebug')->andReturnTrue(); + $this->config = m::mock(Config::class)->makePartial(); + $this->config->shouldReceive('get')->with('app.show_error_msg')->andReturnTrue(); + $this->app->shouldReceive('get')->with('config')->andReturn($this->config); + $this->app->shouldReceive('runningInConsole')->andReturn(false); + } +} diff --git a/vendor/topthink/framework/tests/LogTest.php b/vendor/topthink/framework/tests/LogTest.php new file mode 100644 index 0000000..981110f --- /dev/null +++ b/vendor/topthink/framework/tests/LogTest.php @@ -0,0 +1,130 @@ +prepareApp(); + + $this->log = new Log($this->app); + } + + public function testGetConfig() + { + $config = [ + 'default' => 'file', + ]; + + $this->config->shouldReceive('get')->with('log')->andReturn($config); + + $this->assertEquals($config, $this->log->getConfig()); + + $this->expectException(InvalidArgumentException::class); + $this->log->getChannelConfig('foo'); + } + + public function testChannel() + { + $this->assertInstanceOf(ChannelSet::class, $this->log->channel(['file', 'mail'])); + } + + public function testLogManagerInstances() + { + $this->config->shouldReceive('get')->with("log.channels.single", null)->andReturn(['type' => 'file']); + + $channel1 = $this->log->channel('single'); + $channel2 = $this->log->channel('single'); + + $this->assertSame($channel1, $channel2); + } + + public function testFileLog() + { + $root = vfsStream::setup(); + + $this->config->shouldReceive('get')->with("log.default", null)->andReturn('file'); + + $this->config->shouldReceive('get')->with("log.channels.file", null)->andReturn(['type' => 'file', 'path' => $root->url()]); + + $this->log->info('foo'); + + $this->assertEquals($this->log->getLog(), ['info' => ['foo']]); + + $this->log->clear(); + + $this->assertEmpty($this->log->getLog()); + + $this->log->error('foo'); + $this->assertArrayHasKey('error', $this->log->getLog()); + + $this->log->emergency('foo'); + $this->assertArrayHasKey('emergency', $this->log->getLog()); + + $this->log->alert('foo'); + $this->assertArrayHasKey('alert', $this->log->getLog()); + + $this->log->critical('foo'); + $this->assertArrayHasKey('critical', $this->log->getLog()); + + $this->log->warning('foo'); + $this->assertArrayHasKey('warning', $this->log->getLog()); + + $this->log->notice('foo'); + $this->assertArrayHasKey('notice', $this->log->getLog()); + + $this->log->debug('foo'); + $this->assertArrayHasKey('debug', $this->log->getLog()); + + $this->log->sql('foo'); + $this->assertArrayHasKey('sql', $this->log->getLog()); + + $this->log->custom('foo'); + $this->assertArrayHasKey('custom', $this->log->getLog()); + + $this->log->write('foo'); + $this->assertTrue($root->hasChildren()); + $this->assertEmpty($this->log->getLog()); + + $this->log->close(); + + $this->log->info('foo'); + + $this->assertEmpty($this->log->getLog()); + } + + public function testSave() + { + $root = vfsStream::setup(); + + $this->config->shouldReceive('get')->with("log.default", null)->andReturn('file'); + + $this->config->shouldReceive('get')->with("log.channels.file", null)->andReturn(['type' => 'file', 'path' => $root->url()]); + + $this->log->info('foo'); + + $this->log->save(); + + $this->assertTrue($root->hasChildren()); + } + +} diff --git a/vendor/topthink/framework/tests/MiddlewareTest.php b/vendor/topthink/framework/tests/MiddlewareTest.php new file mode 100644 index 0000000..aa53059 --- /dev/null +++ b/vendor/topthink/framework/tests/MiddlewareTest.php @@ -0,0 +1,108 @@ +prepareApp(); + + $this->middleware = new Middleware($this->app); + } + + public function testSetMiddleware() + { + $this->middleware->add('BarMiddleware', 'bar'); + + $this->assertEquals(1, count($this->middleware->all('bar'))); + + $this->middleware->controller('BarMiddleware'); + $this->assertEquals(1, count($this->middleware->all('controller'))); + + $this->middleware->import(['FooMiddleware']); + $this->assertEquals(1, count($this->middleware->all())); + + $this->middleware->unshift(['BazMiddleware', 'baz']); + $this->assertEquals(2, count($this->middleware->all())); + $this->assertEquals([['BazMiddleware', 'handle'], 'baz'], $this->middleware->all()[0]); + + $this->config->shouldReceive('get')->with('middleware.alias', [])->andReturn(['foo' => ['FooMiddleware', 'FarMiddleware']]); + + $this->middleware->add('foo'); + $this->assertEquals(3, count($this->middleware->all())); + $this->middleware->add(function () { + }); + $this->middleware->add(function () { + }); + $this->assertEquals(5, count($this->middleware->all())); + } + + public function testPipelineAndEnd() + { + $bar = m::mock("overload:BarMiddleware"); + $foo = m::mock("overload:FooMiddleware", Foo::class); + + $request = m::mock(Request::class); + $response = m::mock(Response::class); + + $e = new Exception(); + + $handle = m::mock(Handle::class); + $handle->shouldReceive('report')->with($e)->andReturnNull(); + $handle->shouldReceive('render')->with($request, $e)->andReturn($response); + + $foo->shouldReceive('handle')->once()->andReturnUsing(function ($request, $next) { + return $next($request); + }); + $bar->shouldReceive('handle')->once()->andReturnUsing(function ($request, $next) use ($e) { + $next($request); + throw $e; + }); + + $foo->shouldReceive('end')->once()->with($response)->andReturnNull(); + + $this->app->shouldReceive('make')->with(Handle::class)->andReturn($handle); + + $this->config->shouldReceive('get')->once()->with('middleware.priority', [])->andReturn(['FooMiddleware', 'BarMiddleware']); + + $this->middleware->import([function ($request, $next) { + return $next($request); + }, 'BarMiddleware', 'FooMiddleware']); + + $this->assertInstanceOf(Pipeline::class, $pipeline = $this->middleware->pipeline()); + + $pipeline->send($request)->then(function ($request) use ($e, $response) { + throw $e; + }); + + $this->middleware->end($response); + } +} + +class Foo +{ + public function end(Response $response) + { + } +} diff --git a/vendor/topthink/framework/tests/RouteTest.php b/vendor/topthink/framework/tests/RouteTest.php new file mode 100644 index 0000000..6a7f8ee --- /dev/null +++ b/vendor/topthink/framework/tests/RouteTest.php @@ -0,0 +1,291 @@ +prepareApp(); + $this->route = new Route($this->app); + } + + /** + * @param $path + * @param string $method + * @param string $host + * @return m\Mock|Request + */ + protected function makeRequest($path, $method = 'GET', $host = 'localhost') + { + $request = m::mock(Request::class)->makePartial(); + $request->shouldReceive('host')->andReturn($host); + $request->shouldReceive('pathinfo')->andReturn($path); + $request->shouldReceive('url')->andReturn('/' . $path); + $request->shouldReceive('method')->andReturn(strtoupper($method)); + return $request; + } + + public function testSimpleRequest() + { + $this->route->get('foo', function () { + return 'get-foo'; + }); + + $this->route->put('foo', function () { + return 'put-foo'; + }); + + $this->route->group(function () { + $this->route->post('foo', function () { + return 'post-foo'; + }); + }); + + $request = $this->makeRequest('foo', 'post'); + $response = $this->route->dispatch($request); + $this->assertEquals(200, $response->getCode()); + $this->assertEquals('post-foo', $response->getContent()); + + $request = $this->makeRequest('foo', 'get'); + $response = $this->route->dispatch($request); + $this->assertEquals(200, $response->getCode()); + $this->assertEquals('get-foo', $response->getContent()); + } + + public function testOptionsRequest() + { + $this->route->get('foo', function () { + return 'get-foo'; + }); + + $this->route->put('foo', function () { + return 'put-foo'; + }); + + $this->route->group(function () { + $this->route->post('foo', function () { + return 'post-foo'; + }); + }); + $this->route->group('abc', function () { + $this->route->post('foo/:id', function () { + return 'post-abc-foo'; + }); + }); + + $this->route->post('foo/:id', function () { + return 'post-abc-foo'; + }); + + $this->route->resource('bar', 'SomeClass'); + + $request = $this->makeRequest('foo', 'options'); + $response = $this->route->dispatch($request); + $this->assertEquals(204, $response->getCode()); + $this->assertEquals('GET, PUT, POST', $response->getHeader('Allow')); + + $request = $this->makeRequest('bar', 'options'); + $response = $this->route->dispatch($request); + $this->assertEquals(204, $response->getCode()); + $this->assertEquals('GET, POST', $response->getHeader('Allow')); + + $request = $this->makeRequest('bar/1', 'options'); + $response = $this->route->dispatch($request); + $this->assertEquals(204, $response->getCode()); + $this->assertEquals('GET, PUT, DELETE', $response->getHeader('Allow')); + + $request = $this->makeRequest('xxxx', 'options'); + $response = $this->route->dispatch($request); + $this->assertEquals(204, $response->getCode()); + $this->assertEquals('GET, POST, PUT, DELETE', $response->getHeader('Allow')); + } + + public function testAllowCrossDomain() + { + $this->route->get('foo', function () { + return 'get-foo'; + })->allowCrossDomain(['some' => 'bar']); + + $request = $this->makeRequest('foo', 'get'); + $response = $this->route->dispatch($request); + + $this->assertEquals('bar', $response->getHeader('some')); + $this->assertArrayHasKey('Access-Control-Allow-Credentials', $response->getHeader()); + + $request = $this->makeRequest('foo2', 'options'); + $response = $this->route->dispatch($request); + + $this->assertEquals(204, $response->getCode()); + $this->assertArrayHasKey('Access-Control-Allow-Credentials', $response->getHeader()); + $this->assertEquals('GET, POST, PUT, DELETE', $response->getHeader('Allow')); + } + + public function testControllerDispatch() + { + $this->route->get('foo', 'foo/bar'); + + $controller = m::Mock(\stdClass::class); + + $this->app->shouldReceive('parseClass')->with('controller', 'Foo')->andReturn($controller->mockery_getName()); + $this->app->shouldReceive('make')->with($controller->mockery_getName(), [], true)->andReturn($controller); + + $controller->shouldReceive('bar')->andReturn('bar'); + + $request = $this->makeRequest('foo'); + $response = $this->route->dispatch($request); + $this->assertEquals('bar', $response->getContent()); + } + + public function testEmptyControllerDispatch() + { + $this->route->get('foo', 'foo/bar'); + + $controller = m::Mock(\stdClass::class); + + $this->app->shouldReceive('parseClass')->with('controller', 'Error')->andReturn($controller->mockery_getName()); + $this->app->shouldReceive('make')->with($controller->mockery_getName(), [], true)->andReturn($controller); + + $controller->shouldReceive('bar')->andReturn('bar'); + + $request = $this->makeRequest('foo'); + $response = $this->route->dispatch($request); + $this->assertEquals('bar', $response->getContent()); + } + + protected function createMiddleware($times = 1) + { + $middleware = m::mock(Str::random(5)); + $middleware->shouldReceive('handle')->times($times)->andReturnUsing(function ($request, Closure $next) { + return $next($request); + }); + $this->app->shouldReceive('make')->with($middleware->mockery_getName())->andReturn($middleware); + + return $middleware; + } + + public function testControllerWithMiddleware() + { + $this->route->get('foo', 'foo/bar'); + + $controller = m::mock(FooClass::class); + + $controller->middleware = [ + $this->createMiddleware()->mockery_getName() . ":params1:params2", + $this->createMiddleware(0)->mockery_getName() => ['except' => 'bar'], + $this->createMiddleware()->mockery_getName() => ['only' => 'bar'], + [ + 'middleware' => [$this->createMiddleware()->mockery_getName(), [new \stdClass()]], + 'options' => ['only' => 'bar'], + ], + ]; + + $this->app->shouldReceive('parseClass')->with('controller', 'Foo')->andReturn($controller->mockery_getName()); + $this->app->shouldReceive('make')->with($controller->mockery_getName(), [], true)->andReturn($controller); + + $controller->shouldReceive('bar')->once()->andReturn('bar'); + + $request = $this->makeRequest('foo'); + $response = $this->route->dispatch($request); + $this->assertEquals('bar', $response->getContent()); + } + + public function testUrlDispatch() + { + $controller = m::mock(FooClass::class); + $controller->shouldReceive('index')->andReturn('bar'); + + $this->app->shouldReceive('parseClass')->once()->with('controller', 'Foo') + ->andReturn($controller->mockery_getName()); + $this->app->shouldReceive('make')->with($controller->mockery_getName(), [], true)->andReturn($controller); + + $request = $this->makeRequest('foo'); + $response = $this->route->dispatch($request); + $this->assertEquals('bar', $response->getContent()); + } + + public function testRedirectDispatch() + { + $this->route->redirect('foo', 'http://localhost', 302); + + $request = $this->makeRequest('foo'); + $this->app->shouldReceive('make')->with(Request::class)->andReturn($request); + $response = $this->route->dispatch($request); + + $this->assertInstanceOf(Redirect::class, $response); + $this->assertEquals(302, $response->getCode()); + $this->assertEquals('http://localhost', $response->getData()); + } + + public function testViewDispatch() + { + $this->route->view('foo', 'index/hello', ['city' => 'shanghai']); + + $request = $this->makeRequest('foo'); + $response = $this->route->dispatch($request); + + $this->assertInstanceOf(View::class, $response); + $this->assertEquals(['city' => 'shanghai'], $response->getVars()); + $this->assertEquals('index/hello', $response->getData()); + } + + public function testResponseDispatch() + { + $this->route->get('hello/:name', response() + ->data('Hello,ThinkPHP') + ->code(200) + ->contentType('text/plain')); + + $request = $this->makeRequest('hello/some'); + $response = $this->route->dispatch($request); + + $this->assertEquals('Hello,ThinkPHP', $response->getContent()); + $this->assertEquals(200, $response->getCode()); + } + + public function testDomainBindResponse() + { + $this->route->domain('test', function () { + $this->route->get('/', function () { + return 'Hello,ThinkPHP'; + }); + }); + + $request = $this->makeRequest('', 'get', 'test.domain.com'); + $response = $this->route->dispatch($request); + + $this->assertEquals('Hello,ThinkPHP', $response->getContent()); + $this->assertEquals(200, $response->getCode()); + } + +} + +class FooClass +{ + public $middleware = []; + + public function bar() + { + + } +} diff --git a/vendor/topthink/framework/tests/SessionTest.php b/vendor/topthink/framework/tests/SessionTest.php new file mode 100644 index 0000000..b3b48a7 --- /dev/null +++ b/vendor/topthink/framework/tests/SessionTest.php @@ -0,0 +1,225 @@ +app = m::mock(App::class)->makePartial(); + Container::setInstance($this->app); + + $this->app->shouldReceive('make')->with(App::class)->andReturn($this->app); + $this->config = m::mock(Config::class)->makePartial(); + + $this->app->shouldReceive('get')->with('config')->andReturn($this->config); + $handlerClass = "\\think\\session\\driver\\Test" . Str::random(10); + $this->config->shouldReceive("get")->with("session.type", "file")->andReturn($handlerClass); + $this->session = new Session($this->app); + + $this->handler = m::mock('overload:' . $handlerClass, SessionHandlerInterface::class); + } + + public function testLoadData() + { + $data = [ + "bar" => 'foo', + ]; + + $id = md5(uniqid()); + + $this->handler->shouldReceive("read")->once()->with($id)->andReturn(serialize($data)); + + $this->session->setId($id); + $this->session->init(); + + $this->assertEquals('foo', $this->session->get('bar')); + $this->assertTrue($this->session->has('bar')); + $this->assertFalse($this->session->has('foo')); + + $this->session->set('foo', 'bar'); + $this->assertTrue($this->session->has('foo')); + + $this->assertEquals('bar', $this->session->pull('foo')); + $this->assertFalse($this->session->has('foo')); + } + + public function testSave() + { + + $id = md5(uniqid()); + + $this->handler->shouldReceive('read')->once()->with($id)->andReturn(""); + + $this->handler->shouldReceive('write')->once()->with($id, serialize([ + "bar" => 'foo', + ]))->andReturnTrue(); + + $this->session->setId($id); + $this->session->init(); + + $this->session->set('bar', 'foo'); + + $this->session->save(); + } + + public function testFlash() + { + $this->session->flash('foo', 'bar'); + $this->session->flash('bar', 0); + $this->session->flash('baz', true); + + $this->assertTrue($this->session->has('foo')); + $this->assertEquals('bar', $this->session->get('foo')); + $this->assertEquals(0, $this->session->get('bar')); + $this->assertTrue($this->session->get('baz')); + + $this->session->clearFlashData(); + + $this->assertTrue($this->session->has('foo')); + $this->assertEquals('bar', $this->session->get('foo')); + $this->assertEquals(0, $this->session->get('bar')); + + $this->session->clearFlashData(); + + $this->assertFalse($this->session->has('foo')); + $this->assertNull($this->session->get('foo')); + + $this->session->flash('foo', 'bar'); + $this->assertTrue($this->session->has('foo')); + $this->session->clearFlashData(); + $this->session->reflash(); + $this->session->clearFlashData(); + + $this->assertTrue($this->session->has('foo')); + } + + public function testClear() + { + $this->session->set('bar', 'foo'); + $this->assertEquals('foo', $this->session->get('bar')); + $this->session->clear(); + $this->assertFalse($this->session->has('foo')); + } + + public function testSetName() + { + $this->session->setName('foo'); + $this->assertEquals('foo', $this->session->getName()); + } + + public function testDestroy() + { + $id = md5(uniqid()); + + $this->handler->shouldReceive('read')->once()->with($id)->andReturn(""); + $this->handler->shouldReceive('delete')->once()->with($id)->andReturnTrue(); + + $this->session->setId($id); + $this->session->init(); + + $this->session->set('bar', 'foo'); + + $this->session->destroy(); + + $this->assertFalse($this->session->has('bar')); + + $this->assertNotEquals($id, $this->session->getId()); + } + + public function testFileHandler() + { + $root = vfsStream::setup(); + + vfsStream::newFile('bar') + ->at($root) + ->lastModified(time()); + + vfsStream::newFile('bar') + ->at(vfsStream::newDirectory("foo")->at($root)) + ->lastModified(100); + + $this->assertTrue($root->hasChild("bar")); + $this->assertTrue($root->hasChild("foo/bar")); + + $handler = new TestFileHandle($this->app, [ + 'path' => $root->url(), + 'gc_probability' => 1, + 'gc_divisor' => 1, + ]); + + $this->assertTrue($root->hasChild("bar")); + $this->assertFalse($root->hasChild("foo/bar")); + + $id = md5(uniqid()); + $handler->write($id, "bar"); + + $this->assertTrue($root->hasChild("sess_{$id}")); + + $this->assertEquals("bar", $handler->read($id)); + + $handler->delete($id); + + $this->assertFalse($root->hasChild("sess_{$id}")); + } + + public function testCacheHandler() + { + $id = md5(uniqid()); + + $cache = m::mock(\think\Cache::class); + + $store = m::mock(Driver::class); + + $cache->shouldReceive('store')->once()->with('redis')->andReturn($store); + + $handler = new Cache($cache, ['store' => 'redis']); + + $store->shouldReceive("set")->with($id, "bar", 1440)->once()->andReturnTrue(); + $handler->write($id, "bar"); + + $store->shouldReceive("get")->with($id)->once()->andReturn("bar"); + $this->assertEquals("bar", $handler->read($id)); + + $store->shouldReceive("delete")->with($id)->once()->andReturnTrue(); + $handler->delete($id); + } +} + +class TestFileHandle extends File +{ + protected function writeFile($path, $content): bool + { + return (bool) file_put_contents($path, $content); + } +} diff --git a/vendor/topthink/framework/tests/ViewTest.php b/vendor/topthink/framework/tests/ViewTest.php new file mode 100644 index 0000000..e413510 --- /dev/null +++ b/vendor/topthink/framework/tests/ViewTest.php @@ -0,0 +1,127 @@ +app = m::mock(App::class)->makePartial(); + Container::setInstance($this->app); + + $this->app->shouldReceive('make')->with(App::class)->andReturn($this->app); + $this->config = m::mock(Config::class)->makePartial(); + $this->app->shouldReceive('get')->with('config')->andReturn($this->config); + + $this->view = new View($this->app); + } + + public function testAssignData() + { + $this->view->assign('foo', 'bar'); + $this->view->assign(['baz' => 'boom']); + $this->view->qux = "corge"; + + $this->assertEquals('bar', $this->view->foo); + $this->assertEquals('boom', $this->view->baz); + $this->assertEquals('corge', $this->view->qux); + $this->assertTrue(isset($this->view->qux)); + } + + public function testRender() + { + $this->config->shouldReceive("get")->with("view.type", 'php')->andReturn(TestTemplate::class); + + $this->view->filter(function ($content) { + return $content; + }); + + $this->assertEquals("fetch", $this->view->fetch('foo')); + $this->assertEquals("display", $this->view->display('foo')); + } + +} + +class TestTemplate implements TemplateHandlerInterface +{ + + /** + * 检测是否存在模板文件 + * @access public + * @param string $template 模板文件或者模板规则 + * @return bool + */ + public function exists(string $template): bool + { + return true; + } + + /** + * 渲染模板文件 + * @access public + * @param string $template 模板文件 + * @param array $data 模板变量 + * @return void + */ + public function fetch(string $template, array $data = []): void + { + echo "fetch"; + } + + /** + * 渲染模板内容 + * @access public + * @param string $content 模板内容 + * @param array $data 模板变量 + * @return void + */ + public function display(string $content, array $data = []): void + { + echo "display"; + } + + /** + * 配置模板引擎 + * @access private + * @param array $config 参数 + * @return void + */ + public function config(array $config): void + { + // TODO: Implement config() method. + } + + /** + * 获取模板引擎配置 + * @access public + * @param string $name 参数名 + * @return void + */ + public function getConfig(string $name) + { + // TODO: Implement getConfig() method. + } +} diff --git a/vendor/topthink/framework/tests/bootstrap.php b/vendor/topthink/framework/tests/bootstrap.php new file mode 100644 index 0000000..3459061 --- /dev/null +++ b/vendor/topthink/framework/tests/bootstrap.php @@ -0,0 +1,3 @@ + 以下类库都在`\\think\\helper`命名空间下 ## Str diff --git a/vendor/topthink/think-helper/composer.json b/vendor/topthink/think-helper/composer.json index b68c43b..0892fa6 100644 --- a/vendor/topthink/think-helper/composer.json +++ b/vendor/topthink/think-helper/composer.json @@ -10,7 +10,10 @@ ], "require": { "php": ">=7.1.0" - }, + }, + "require-dev": { + "phpunit/phpunit": "^9.5" + }, "autoload": { "psr-4": { "think\\": "src" @@ -18,5 +21,16 @@ "files": [ "src/helper.php" ] + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests" + } + }, + "scripts": { + "test": "./vendor/bin/phpunit --colors" + }, + "scripts-descriptions": { + "test": "Run all tests." } } diff --git a/vendor/topthink/think-helper/phpunit.xml.dist b/vendor/topthink/think-helper/phpunit.xml.dist new file mode 100644 index 0000000..c083f14 --- /dev/null +++ b/vendor/topthink/think-helper/phpunit.xml.dist @@ -0,0 +1,17 @@ + + + + + ./tests/ + + + + + ./src + + + diff --git a/vendor/topthink/think-helper/src/Collection.php b/vendor/topthink/think-helper/src/Collection.php index fa408c2..5b19ffc 100644 --- a/vendor/topthink/think-helper/src/Collection.php +++ b/vendor/topthink/think-helper/src/Collection.php @@ -20,6 +20,7 @@ use JsonSerializable; use think\contract\Arrayable; use think\contract\Jsonable; use think\helper\Arr; +use Traversable; /** * 数据集管理类 @@ -142,7 +143,7 @@ class Collection implements ArrayAccess, Countable, IteratorAggregate, JsonSeria public function intersect($items, string $indexKey = null) { if ($this->isEmpty() || is_scalar($this->items[0])) { - return new static(array_diff($this->items, $this->convertToArray($items))); + return new static(array_intersect($this->items, $this->convertToArray($items))); } $intersect = []; @@ -579,16 +580,19 @@ class Collection implements ArrayAccess, Countable, IteratorAggregate, JsonSeria } // ArrayAccess - public function offsetExists($offset) + #[\ReturnTypeWillChange] + public function offsetExists($offset) : bool { return array_key_exists($offset, $this->items); } + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->items[$offset]; } + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (is_null($offset)) { @@ -598,24 +602,27 @@ class Collection implements ArrayAccess, Countable, IteratorAggregate, JsonSeria } } + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->items[$offset]); } //Countable - public function count() + public function count(): int { return count($this->items); } //IteratorAggregate - public function getIterator() + #[\ReturnTypeWillChange] + public function getIterator(): Traversable { return new ArrayIterator($this->items); } //JsonSerializable + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->toArray(); @@ -627,7 +634,7 @@ class Collection implements ArrayAccess, Countable, IteratorAggregate, JsonSeria * @param integer $options json参数 * @return string */ - public function toJson(int $options = JSON_UNESCAPED_UNICODE) : string + public function toJson(int $options = JSON_UNESCAPED_UNICODE): string { return json_encode($this->toArray(), $options); } diff --git a/vendor/topthink/think-helper/src/helper/Str.php b/vendor/topthink/think-helper/src/helper/Str.php index 7391fbd..664dba2 100644 --- a/vendor/topthink/think-helper/src/helper/Str.php +++ b/vendor/topthink/think-helper/src/helper/Str.php @@ -179,7 +179,7 @@ class Str } if (!ctype_lower($value)) { - $value = preg_replace('/\s+/u', '', $value); + $value = preg_replace('/\s+/u', '', ucwords($value)); $value = static::lower(preg_replace('/(.)(?=[A-Z])/u', '$1' . $delimiter, $value)); } diff --git a/vendor/topthink/think-helper/tests/ArrTest.php b/vendor/topthink/think-helper/tests/ArrTest.php new file mode 100644 index 0000000..a8effe7 --- /dev/null +++ b/vendor/topthink/think-helper/tests/ArrTest.php @@ -0,0 +1,342 @@ + 'ThinkPHP'], 'price', 100); + $this->assertSame(['name' => 'ThinkPHP', 'price' => 100], $array); + } + + public function testCrossJoin() + { + // Single dimension + $this->assertSame( + [[1, 'a'], [1, 'b'], [1, 'c']], + Arr::crossJoin([1], ['a', 'b', 'c']) + ); + // Square matrix + $this->assertSame( + [[1, 'a'], [1, 'b'], [2, 'a'], [2, 'b']], + Arr::crossJoin([1, 2], ['a', 'b']) + ); + // Rectangular matrix + $this->assertSame( + [[1, 'a'], [1, 'b'], [1, 'c'], [2, 'a'], [2, 'b'], [2, 'c']], + Arr::crossJoin([1, 2], ['a', 'b', 'c']) + ); + // 3D matrix + $this->assertSame( + [ + [1, 'a', 'I'], [1, 'a', 'II'], [1, 'a', 'III'], + [1, 'b', 'I'], [1, 'b', 'II'], [1, 'b', 'III'], + [2, 'a', 'I'], [2, 'a', 'II'], [2, 'a', 'III'], + [2, 'b', 'I'], [2, 'b', 'II'], [2, 'b', 'III'], + ], + Arr::crossJoin([1, 2], ['a', 'b'], ['I', 'II', 'III']) + ); + // With 1 empty dimension + $this->assertSame([], Arr::crossJoin([], ['a', 'b'], ['I', 'II', 'III'])); + $this->assertSame([], Arr::crossJoin([1, 2], [], ['I', 'II', 'III'])); + $this->assertSame([], Arr::crossJoin([1, 2], ['a', 'b'], [])); + // With empty arrays + $this->assertSame([], Arr::crossJoin([], [], [])); + $this->assertSame([], Arr::crossJoin([], [])); + $this->assertSame([], Arr::crossJoin([])); + // Not really a proper usage, still, test for preserving BC + $this->assertSame([[]], Arr::crossJoin()); + } + + public function testDivide() + { + list($keys, $values) = Arr::divide(['name' => 'ThinkPHP']); + $this->assertSame(['name'], $keys); + $this->assertSame(['ThinkPHP'], $values); + } + + public function testDot() + { + $array = Arr::dot(['foo' => ['bar' => 'baz']]); + $this->assertSame(['foo.bar' => 'baz'], $array); + $array = Arr::dot([]); + $this->assertSame([], $array); + $array = Arr::dot(['foo' => []]); + $this->assertSame(['foo' => []], $array); + $array = Arr::dot(['foo' => ['bar' => []]]); + $this->assertSame(['foo.bar' => []], $array); + } + + public function testExcept() + { + $array = ['name' => 'ThinkPHP', 'price' => 100]; + $array = Arr::except($array, ['price']); + $this->assertSame(['name' => 'ThinkPHP'], $array); + } + + public function testExists() + { + $this->assertTrue(Arr::exists([1], 0)); + $this->assertTrue(Arr::exists([null], 0)); + $this->assertTrue(Arr::exists(['a' => 1], 'a')); + $this->assertTrue(Arr::exists(['a' => null], 'a')); + $this->assertFalse(Arr::exists([1], 1)); + $this->assertFalse(Arr::exists([null], 1)); + $this->assertFalse(Arr::exists(['a' => 1], 0)); + } + + public function testFirst() + { + $array = [100, 200, 300]; + $value = Arr::first($array, function ($value) { + return $value >= 150; + }); + $this->assertSame(200, $value); + $this->assertSame(100, Arr::first($array)); + + $this->assertSame('default', Arr::first([], null, 'default')); + + $this->assertSame('default', Arr::first([], function () { + return false; + }, 'default')); + } + + public function testLast() + { + $array = [100, 200, 300]; + $last = Arr::last($array, function ($value) { + return $value < 250; + }); + $this->assertSame(200, $last); + $last = Arr::last($array, function ($value, $key) { + return $key < 2; + }); + $this->assertSame(200, $last); + $this->assertSame(300, Arr::last($array)); + } + + public function testFlatten() + { + // Flat arrays are unaffected + $array = ['#foo', '#bar', '#baz']; + $this->assertSame(['#foo', '#bar', '#baz'], Arr::flatten(['#foo', '#bar', '#baz'])); + // Nested arrays are flattened with existing flat items + $array = [['#foo', '#bar'], '#baz']; + $this->assertSame(['#foo', '#bar', '#baz'], Arr::flatten($array)); + // Flattened array includes "null" items + $array = [['#foo', null], '#baz', null]; + $this->assertSame(['#foo', null, '#baz', null], Arr::flatten($array)); + // Sets of nested arrays are flattened + $array = [['#foo', '#bar'], ['#baz']]; + $this->assertSame(['#foo', '#bar', '#baz'], Arr::flatten($array)); + // Deeply nested arrays are flattened + $array = [['#foo', ['#bar']], ['#baz']]; + $this->assertSame(['#foo', '#bar', '#baz'], Arr::flatten($array)); + // Nested arrays are flattened alongside arrays + $array = [new Collection(['#foo', '#bar']), ['#baz']]; + $this->assertSame(['#foo', '#bar', '#baz'], Arr::flatten($array)); + // Nested arrays containing plain arrays are flattened + $array = [new Collection(['#foo', ['#bar']]), ['#baz']]; + $this->assertSame(['#foo', '#bar', '#baz'], Arr::flatten($array)); + // Nested arrays containing arrays are flattened + $array = [['#foo', new Collection(['#bar'])], ['#baz']]; + $this->assertSame(['#foo', '#bar', '#baz'], Arr::flatten($array)); + // Nested arrays containing arrays containing arrays are flattened + $array = [['#foo', new Collection(['#bar', ['#zap']])], ['#baz']]; + $this->assertSame(['#foo', '#bar', '#zap', '#baz'], Arr::flatten($array)); + } + + public function testFlattenWithDepth() + { + // No depth flattens recursively + $array = [['#foo', ['#bar', ['#baz']]], '#zap']; + $this->assertSame(['#foo', '#bar', '#baz', '#zap'], Arr::flatten($array)); + // Specifying a depth only flattens to that depth + $array = [['#foo', ['#bar', ['#baz']]], '#zap']; + $this->assertSame(['#foo', ['#bar', ['#baz']], '#zap'], Arr::flatten($array, 1)); + $array = [['#foo', ['#bar', ['#baz']]], '#zap']; + $this->assertSame(['#foo', '#bar', ['#baz'], '#zap'], Arr::flatten($array, 2)); + } + + public function testGet() + { + $array = ['products.item' => ['price' => 100]]; + $this->assertSame(['price' => 100], Arr::get($array, 'products.item')); + $array = ['products' => ['item' => ['price' => 100]]]; + $value = Arr::get($array, 'products.item'); + $this->assertSame(['price' => 100], $value); + // Test null array values + $array = ['foo' => null, 'bar' => ['baz' => null]]; + $this->assertNull(Arr::get($array, 'foo', 'default')); + $this->assertNull(Arr::get($array, 'bar.baz', 'default')); + // Test null key returns the whole array + $array = ['foo', 'bar']; + $this->assertSame($array, Arr::get($array, null)); + // Test $array is empty and key is null + $this->assertSame([], Arr::get([], null)); + $this->assertSame([], Arr::get([], null, 'default')); + } + + public function testHas() + { + $array = ['products.item' => ['price' => 100]]; + $this->assertTrue(Arr::has($array, 'products.item')); + $array = ['products' => ['item' => ['price' => 100]]]; + $this->assertTrue(Arr::has($array, 'products.item')); + $this->assertTrue(Arr::has($array, 'products.item.price')); + $this->assertFalse(Arr::has($array, 'products.foo')); + $this->assertFalse(Arr::has($array, 'products.item.foo')); + $array = ['foo' => null, 'bar' => ['baz' => null]]; + $this->assertTrue(Arr::has($array, 'foo')); + $this->assertTrue(Arr::has($array, 'bar.baz')); + $array = ['foo', 'bar']; + $this->assertFalse(Arr::has($array, null)); + $this->assertFalse(Arr::has([], null)); + $array = ['products' => ['item' => ['price' => 100]]]; + $this->assertTrue(Arr::has($array, ['products.item'])); + $this->assertTrue(Arr::has($array, ['products.item', 'products.item.price'])); + $this->assertTrue(Arr::has($array, ['products', 'products'])); + $this->assertFalse(Arr::has($array, ['foo'])); + $this->assertFalse(Arr::has($array, [])); + $this->assertFalse(Arr::has($array, ['products.item', 'products.price'])); + $this->assertFalse(Arr::has([], [null])); + } + + public function testIsAssoc() + { + $this->assertTrue(Arr::isAssoc(['a' => 'a', 0 => 'b'])); + $this->assertTrue(Arr::isAssoc([1 => 'a', 0 => 'b'])); + $this->assertTrue(Arr::isAssoc([1 => 'a', 2 => 'b'])); + $this->assertFalse(Arr::isAssoc([0 => 'a', 1 => 'b'])); + $this->assertFalse(Arr::isAssoc(['a', 'b'])); + } + + public function testOnly() + { + $array = ['name' => 'ThinkPHP', 'price' => 100, 'orders' => 10]; + $array = Arr::only($array, ['name', 'price']); + $this->assertSame(['name' => 'ThinkPHP', 'price' => 100], $array); + } + + public function testPrepend() + { + $array = Arr::prepend(['one', 'two', 'three', 'four'], 'zero'); + $this->assertSame(['zero', 'one', 'two', 'three', 'four'], $array); + $array = Arr::prepend(['one' => 1, 'two' => 2], 0, 'zero'); + $this->assertSame(['zero' => 0, 'one' => 1, 'two' => 2], $array); + } + + public function testPull() + { + $array = ['name' => 'ThinkPHP', 'price' => 100]; + $name = Arr::pull($array, 'name'); + $this->assertSame('ThinkPHP', $name); + $this->assertSame(['price' => 100], $array); + // Only works on first level keys + $array = ['i@example.com' => 'Joe', 'jack@localhost' => 'Jane']; + $name = Arr::pull($array, 'i@example.com'); + $this->assertSame('Joe', $name); + $this->assertSame(['jack@localhost' => 'Jane'], $array); + // Does not work for nested keys + $array = ['emails' => ['i@example.com' => 'Joe', 'jack@localhost' => 'Jane']]; + $name = Arr::pull($array, 'emails.i@example.com'); + $this->assertNull($name); + $this->assertSame(['emails' => ['i@example.com' => 'Joe', 'jack@localhost' => 'Jane']], $array); + } + + public function testRandom() + { + $randomValue = Arr::random(['foo', 'bar', 'baz']); + $this->assertContains($randomValue, ['foo', 'bar', 'baz']); + $randomValues = Arr::random(['foo', 'bar', 'baz'], 1); + $this->assertIsArray($randomValues); + $this->assertCount(1, $randomValues); + $this->assertContains($randomValues[0], ['foo', 'bar', 'baz']); + $randomValues = Arr::random(['foo', 'bar', 'baz'], 2); + $this->assertIsArray($randomValues); + $this->assertCount(2, $randomValues); + $this->assertContains($randomValues[0], ['foo', 'bar', 'baz']); + $this->assertContains($randomValues[1], ['foo', 'bar', 'baz']); + } + + public function testSet() + { + $array = ['products' => ['item' => ['price' => 100]]]; + Arr::set($array, 'products.item.price', 200); + Arr::set($array, 'goods.item.price', 200); + $this->assertSame(['products' => ['item' => ['price' => 200]], 'goods' => ['item' => ['price' => 200]]], $array); + } + + public function testWhere() + { + $array = [100, '200', 300, '400', 500]; + $array = Arr::where($array, function ($value, $key) { + return is_string($value); + }); + $this->assertSame([1 => '200', 3 => '400'], $array); + } + + public function testWhereKey() + { + $array = ['10' => 1, 'foo' => 3, 20 => 2]; + $array = Arr::where($array, function ($value, $key) { + return is_numeric($key); + }); + $this->assertSame(['10' => 1, 20 => 2], $array); + } + + public function testForget() + { + $array = ['products' => ['item' => ['price' => 100]]]; + Arr::forget($array, null); + $this->assertSame(['products' => ['item' => ['price' => 100]]], $array); + $array = ['products' => ['item' => ['price' => 100]]]; + Arr::forget($array, []); + $this->assertSame(['products' => ['item' => ['price' => 100]]], $array); + $array = ['products' => ['item' => ['price' => 100]]]; + Arr::forget($array, 'products.item'); + $this->assertSame(['products' => []], $array); + $array = ['products' => ['item' => ['price' => 100]]]; + Arr::forget($array, 'products.item.price'); + $this->assertSame(['products' => ['item' => []]], $array); + $array = ['products' => ['item' => ['price' => 100]]]; + Arr::forget($array, 'products.final.price'); + $this->assertSame(['products' => ['item' => ['price' => 100]]], $array); + $array = ['shop' => ['cart' => [150 => 0]]]; + Arr::forget($array, 'shop.final.cart'); + $this->assertSame(['shop' => ['cart' => [150 => 0]]], $array); + $array = ['products' => ['item' => ['price' => ['original' => 50, 'taxes' => 60]]]]; + Arr::forget($array, 'products.item.price.taxes'); + $this->assertSame(['products' => ['item' => ['price' => ['original' => 50]]]], $array); + $array = ['products' => ['item' => ['price' => ['original' => 50, 'taxes' => 60]]]]; + Arr::forget($array, 'products.item.final.taxes'); + $this->assertSame(['products' => ['item' => ['price' => ['original' => 50, 'taxes' => 60]]]], $array); + $array = ['products' => ['item' => ['price' => 50], null => 'something']]; + Arr::forget($array, ['products.amount.all', 'products.item.price']); + $this->assertSame(['products' => ['item' => [], null => 'something']], $array); + // Only works on first level keys + $array = ['i@example.com' => 'Joe', 'i@thinkphp.com' => 'Jane']; + Arr::forget($array, 'i@example.com'); + $this->assertSame(['i@thinkphp.com' => 'Jane'], $array); + // Does not work for nested keys + $array = ['emails' => ['i@example.com' => ['name' => 'Joe'], 'jack@localhost' => ['name' => 'Jane']]]; + Arr::forget($array, ['emails.i@example.com', 'emails.jack@localhost']); + $this->assertSame(['emails' => ['i@example.com' => ['name' => 'Joe']]], $array); + } + + public function testWrap() + { + $string = 'a'; + $array = ['a']; + $object = new stdClass(); + $object->value = 'a'; + $this->assertSame(['a'], Arr::wrap($string)); + $this->assertSame($array, Arr::wrap($array)); + $this->assertSame([$object], Arr::wrap($object)); + } +} diff --git a/vendor/topthink/think-helper/tests/CollectionTest.php b/vendor/topthink/think-helper/tests/CollectionTest.php new file mode 100644 index 0000000..b69c175 --- /dev/null +++ b/vendor/topthink/think-helper/tests/CollectionTest.php @@ -0,0 +1,70 @@ + 'Hello']); + $this->assertSame(['name' => 'Hello', 'id' => 1], $c->merge(['id' => 1])->all()); + } + + public function testFirst() + { + $c = new Collection(['name' => 'Hello', 'age' => 25]); + + $this->assertSame('Hello', $c->first()); + } + + public function testLast() + { + $c = new Collection(['name' => 'Hello', 'age' => 25]); + + $this->assertSame(25, $c->last()); + } + + public function testToArray() + { + $c = new Collection(['name' => 'Hello', 'age' => 25]); + + $this->assertSame(['name' => 'Hello', 'age' => 25], $c->toArray()); + } + + public function testToJson() + { + $c = new Collection(['name' => 'Hello', 'age' => 25]); + + $this->assertSame(json_encode(['name' => 'Hello', 'age' => 25]), $c->toJson()); + $this->assertSame(json_encode(['name' => 'Hello', 'age' => 25]), (string) $c); + $this->assertSame(json_encode(['name' => 'Hello', 'age' => 25]), json_encode($c)); + } + + public function testSerialize() + { + $c = new Collection(['name' => 'Hello', 'age' => 25]); + + $sc = serialize($c); + $c = unserialize($sc); + + $this->assertSame(['name' => 'Hello', 'age' => 25], $c->all()); + } + + public function testGetIterator() + { + $c = new Collection(['name' => 'Hello', 'age' => 25]); + + $this->assertInstanceOf(\ArrayIterator::class, $c->getIterator()); + + $this->assertSame(['name' => 'Hello', 'age' => 25], $c->getIterator()->getArrayCopy()); + } + + public function testCount() + { + $c = new Collection(['name' => 'Hello', 'age' => 25]); + + $this->assertCount(2, $c); + } +} diff --git a/vendor/topthink/think-helper/tests/StrTest.php b/vendor/topthink/think-helper/tests/StrTest.php new file mode 100644 index 0000000..813ad4c --- /dev/null +++ b/vendor/topthink/think-helper/tests/StrTest.php @@ -0,0 +1,59 @@ +assertSame('fooBar', Str::camel('FooBar')); + $this->assertSame('fooBar', Str::camel('FooBar')); + $this->assertSame('fooBar', Str::camel('foo_bar')); + $this->assertSame('fooBar', Str::camel('_foo_bar')); + $this->assertSame('fooBar', Str::camel('_foo_bar_')); + } + + public function testStudly() + { + $this->assertSame('FooBar', Str::studly('fooBar')); + $this->assertSame('FooBar', Str::studly('_foo_bar')); + $this->assertSame('FooBar', Str::studly('_foo_bar_')); + $this->assertSame('FooBar', Str::studly('_foo_bar_')); + } + + public function testSnake() + { + $this->assertSame('think_p_h_p_framework', Str::snake('ThinkPHPFramework')); + $this->assertSame('think_php_framework', Str::snake('ThinkPhpFramework')); + $this->assertSame('think php framework', Str::snake('ThinkPhpFramework', ' ')); + $this->assertSame('think_php_framework', Str::snake('Think Php Framework')); + $this->assertSame('think_php_framework', Str::snake('Think Php Framework ')); + // ensure cache keys don't overlap + $this->assertSame('think__php__framework', Str::snake('ThinkPhpFramework', '__')); + $this->assertSame('think_php_framework_', Str::snake('ThinkPhpFramework_', '_')); + $this->assertSame('think_php_framework', Str::snake('think php Framework')); + $this->assertSame('think_php_frame_work', Str::snake('think php FrameWork')); + // prevent breaking changes + $this->assertSame('foo-bar', Str::snake('foo-bar')); + $this->assertSame('foo-_bar', Str::snake('Foo-Bar')); + $this->assertSame('foo__bar', Str::snake('Foo_Bar')); + $this->assertSame('żółtałódka', Str::snake('ŻółtaŁódka')); + } + + public function testTitle() + { + $this->assertSame('Welcome Back', Str::title('welcome back')); + } + + public function testRandom() + { + $this->assertIsString(Str::random(10)); + } + + public function testUpper() + { + $this->assertSame('USERNAME', Str::upper('username')); + $this->assertSame('USERNAME', Str::upper('userNaMe')); + } +} diff --git a/vendor/topthink/think-helper/tests/TestCase.php b/vendor/topthink/think-helper/tests/TestCase.php new file mode 100644 index 0000000..87f6cb3 --- /dev/null +++ b/vendor/topthink/think-helper/tests/TestCase.php @@ -0,0 +1,13 @@ + + */ +class TestCase extends BaseTestCase +{ +} diff --git a/vendor/topthink/think-orm/.gitignore b/vendor/topthink/think-orm/.gitignore new file mode 100644 index 0000000..82cfc4e --- /dev/null +++ b/vendor/topthink/think-orm/.gitignore @@ -0,0 +1,3 @@ +.idea +composer.lock +vendor diff --git a/vendor/topthink/think-orm/src/Model.php b/vendor/topthink/think-orm/src/Model.php index 00016d0..761f780 100644 --- a/vendor/topthink/think-orm/src/Model.php +++ b/vendor/topthink/think-orm/src/Model.php @@ -260,11 +260,12 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab /** * 创建新的模型实例 * @access public - * @param array $data 数据 - * @param mixed $where 更新条件 + * @param array $data 数据 + * @param mixed $where 更新条件 + * @param array $options 参数 * @return Model */ - public function newInstance(array $data = [], $where = null): Model + public function newInstance(array $data = [], $where = null, array $options = []): Model { $model = new static($data); @@ -970,21 +971,25 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab } // ArrayAccess + #[\ReturnTypeWillChange] public function offsetSet($name, $value) { $this->setAttr($name, $value); } + #[\ReturnTypeWillChange] public function offsetExists($name): bool { return $this->__isset($name); } + #[\ReturnTypeWillChange] public function offsetUnset($name) { $this->__unset($name); } + #[\ReturnTypeWillChange] public function offsetGet($name) { return $this->getAttr($name); @@ -1037,10 +1042,6 @@ abstract class Model implements JsonSerializable, ArrayAccess, Arrayable, Jsonab return call_user_func_array(static::$macro[static::class][$method]->bindTo($this, static::class), $args); } - if ('withattr' == strtolower($method)) { - return call_user_func_array([$this, 'withAttribute'], $args); - } - return call_user_func_array([$this->db(), $method], $args); } diff --git a/vendor/topthink/think-orm/src/Paginator.php b/vendor/topthink/think-orm/src/Paginator.php index d8d43d7..2f755ef 100644 --- a/vendor/topthink/think-orm/src/Paginator.php +++ b/vendor/topthink/think-orm/src/Paginator.php @@ -410,7 +410,8 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J * @return Traversable An instance of an object implementing Iterator or * Traversable */ - public function getIterator() + #[\ReturnTypeWillChange] + public function getIterator(): Traversable { return new ArrayIterator($this->items->all()); } @@ -421,7 +422,8 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J * @param mixed $offset * @return bool */ - public function offsetExists($offset) + #[\ReturnTypeWillChange] + public function offsetExists($offset): bool { return $this->items->offsetExists($offset); } @@ -432,6 +434,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J * @param mixed $offset * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->items->offsetGet($offset); @@ -443,6 +446,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J * @param mixed $offset * @param mixed $value */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->items->offsetSet($offset, $value); @@ -455,6 +459,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J * @return void * @since 5.0.0 */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { $this->items->offsetUnset($offset); @@ -498,6 +503,7 @@ abstract class Paginator implements ArrayAccess, Countable, IteratorAggregate, J /** * Specify data which should be serialized to JSON */ + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->toArray(); diff --git a/vendor/topthink/think-orm/src/db/BaseQuery.php b/vendor/topthink/think-orm/src/db/BaseQuery.php index a0acdbe..7bb778a 100644 --- a/vendor/topthink/think-orm/src/db/BaseQuery.php +++ b/vendor/topthink/think-orm/src/db/BaseQuery.php @@ -137,7 +137,7 @@ abstract class BaseQuery $query->name($this->name); } - if (isset($this->options['json'])) { + if (!empty($this->options['json'])) { $query->json($this->options['json'], $this->options['json_assoc']); } @@ -278,7 +278,11 @@ abstract class BaseQuery public function column($field, string $key = ''): array { $result = $this->connection->column($this, $field, $key); - $this->resultSet($result, false); + + if (count($result) != count($result, 1)) { + $this->resultSet($result, false); + } + return $result; } @@ -867,6 +871,7 @@ abstract class BaseQuery { $this->options['json'] = $json; $this->options['json_assoc'] = $assoc; + return $this; } @@ -1124,7 +1129,7 @@ abstract class BaseQuery * 查找单条记录 * @access public * @param mixed $data 查询数据 - * @return array|Model|null|static + * @return array|Model|null|static|mixed * @throws Exception * @throws ModelNotFoundException * @throws DataNotFoundException @@ -1149,7 +1154,7 @@ abstract class BaseQuery if (!empty($this->model)) { // 返回模型对象 - $this->resultToModel($result, $this->options); + $this->resultToModel($result); } else { $this->result($result); } @@ -1178,7 +1183,7 @@ abstract class BaseQuery $this->parseView($options); } - foreach (['data', 'order', 'join', 'union'] as $name) { + foreach (['data', 'order', 'join', 'union', 'filter', 'json', 'with_attr', 'with_relation_attr'] as $name) { if (!isset($options[$name])) { $options[$name] = []; } @@ -1188,7 +1193,7 @@ abstract class BaseQuery $options['strict'] = $this->connection->getConfig('fields_strict'); } - foreach (['master', 'lock', 'fetch_sql', 'array', 'distinct', 'procedure'] as $name) { + foreach (['master', 'lock', 'fetch_sql', 'array', 'distinct', 'procedure', 'with_cache'] as $name) { if (!isset($options[$name])) { $options[$name] = false; } diff --git a/vendor/topthink/think-orm/src/db/Fetch.php b/vendor/topthink/think-orm/src/db/Fetch.php index 16caed2..a997a85 100644 --- a/vendor/topthink/think-orm/src/db/Fetch.php +++ b/vendor/topthink/think-orm/src/db/Fetch.php @@ -421,10 +421,8 @@ class Fetch if (!empty($options['group'])) { // 支持GROUP - $bind = $this->query->getBind(); - $subSql = $this->query->options($options)->field('count(' . $field . ') AS think_count')->bind($bind)->buildSql(); - - $query = $this->query->newQuery()->table([$subSql => '_group_count_']); + $subSql = $this->query->field('count(' . $field . ') AS think_count')->buildSql(); + $query = $this->query->newQuery()->table([$subSql => '_group_count_']); return $query->fetchsql()->aggregate('COUNT', '*'); } else { diff --git a/vendor/topthink/think-orm/src/db/Mongo.php b/vendor/topthink/think-orm/src/db/Mongo.php index 5e8a09a..cf6e9c4 100644 --- a/vendor/topthink/think-orm/src/db/Mongo.php +++ b/vendor/topthink/think-orm/src/db/Mongo.php @@ -630,7 +630,7 @@ class Mongo extends BaseQuery $options['table'] = $this->getTable(); } - foreach (['where', 'data'] as $name) { + foreach (['where', 'data', 'projection', 'filter', 'json', 'with_attr', 'with_relation_attr'] as $name) { if (!isset($options[$name])) { $options[$name] = []; } @@ -649,10 +649,6 @@ class Mongo extends BaseQuery $options['modifiers'] = $modifiers; } - if (!isset($options['projection'])) { - $options['projection'] = []; - } - if (!isset($options['typeMap'])) { $options['typeMap'] = $this->getConfig('type_map'); } diff --git a/vendor/topthink/think-orm/src/db/PDOConnection.php b/vendor/topthink/think-orm/src/db/PDOConnection.php index 1a3d4a2..40ac99e 100644 --- a/vendor/topthink/think-orm/src/db/PDOConnection.php +++ b/vendor/topthink/think-orm/src/db/PDOConnection.php @@ -279,7 +279,7 @@ abstract class PDOConnection extends Connection */ protected function getFieldType(string $type): string { - if (0 === strpos($type, 'set') || 0 === strpos($type, 'enum')) { + if (0 === stripos($type, 'set') || 0 === stripos($type, 'enum')) { $result = 'string'; } elseif (preg_match('/(double|float|decimal|real|numeric)/is', $type)) { $result = 'float'; @@ -287,11 +287,11 @@ abstract class PDOConnection extends Connection $result = 'int'; } elseif (preg_match('/bool/is', $type)) { $result = 'bool'; - } elseif (0 === strpos($type, 'timestamp')) { + } elseif (0 === stripos($type, 'timestamp')) { $result = 'timestamp'; - } elseif (0 === strpos($type, 'datetime')) { + } elseif (0 === stripos($type, 'datetime')) { $result = 'datetime'; - } elseif (0 === strpos($type, 'date')) { + } elseif (0 === stripos($type, 'date')) { $result = 'date'; } else { $result = 'string'; @@ -1273,7 +1273,7 @@ abstract class PDOConnection extends Connection $type = is_array($val) ? $val[1] : PDO::PARAM_STR; if (self::PARAM_FLOAT == $type || PDO::PARAM_STR == $type) { - $value = '\'' . addslashes($value) . '\''; + $value = '\'' . addcslashes($value, "'") . '\''; } elseif (PDO::PARAM_INT == $type && '' === $value) { $value = '0'; } diff --git a/vendor/topthink/think-orm/src/db/Raw.php b/vendor/topthink/think-orm/src/db/Raw.php index 833fbf0..b956ff6 100644 --- a/vendor/topthink/think-orm/src/db/Raw.php +++ b/vendor/topthink/think-orm/src/db/Raw.php @@ -64,8 +64,4 @@ class Raw return $this->bind; } - public function __toString() - { - return (string) $this->value; - } } diff --git a/vendor/topthink/think-orm/src/db/builder/Sqlite.php b/vendor/topthink/think-orm/src/db/builder/Sqlite.php index 40cab7f..ff17c5d 100644 --- a/vendor/topthink/think-orm/src/db/builder/Sqlite.php +++ b/vendor/topthink/think-orm/src/db/builder/Sqlite.php @@ -24,8 +24,8 @@ class Sqlite extends Builder /** * limit * @access public - * @param Query $query 查询对象 - * @param mixed $limit + * @param Query $query 查询对象 + * @param mixed $limit * @return string */ public function parseLimit(Query $query, string $limit): string @@ -47,7 +47,7 @@ class Sqlite extends Builder /** * 随机排序 * @access protected - * @param Query $query 查询对象 + * @param Query $query 查询对象 * @return string */ protected function parseRand(Query $query): string @@ -58,9 +58,9 @@ class Sqlite extends Builder /** * 字段和表名处理 * @access public - * @param Query $query 查询对象 - * @param mixed $key 字段名 - * @param bool $strict 严格检测 + * @param Query $query 查询对象 + * @param mixed $key 字段名 + * @param bool $strict 严格检测 * @return string */ public function parseKey(Query $query, $key, bool $strict = false): string @@ -73,7 +73,7 @@ class Sqlite extends Builder $key = trim($key); - if (strpos($key, '.')) { + if (strpos($key, '.') && !preg_match('/[,\'\"\(\)`\s]/', $key)) { [$table, $key] = explode('.', $key, 2); $alias = $query->getOptions('alias'); @@ -88,10 +88,26 @@ class Sqlite extends Builder } } + if ('*' != $key && !preg_match('/[,\'\"\*\(\)`.\s]/', $key)) { + $key = '`' . $key . '`'; + } + if (isset($table)) { - $key = $table . '.' . $key; + $key = '`' . $table . '`.' . $key; } return $key; } + + /** + * 设置锁机制 + * @access protected + * @param Query $query 查询对象 + * @param bool|string $lock + * @return string + */ + protected function parseLock(Query $query, $lock = false): string + { + return ''; + } } diff --git a/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php b/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php index ffb72de..0015a24 100644 --- a/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php +++ b/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php @@ -54,36 +54,39 @@ trait ModelRelationQuery /** * 设置需要隐藏的输出属性 * @access public - * @param array $hidden 需要隐藏的字段名 + * @param array $hidden 属性列表 * @return $this */ - public function hidden(array $hidden) + public function hidden(array $hidden = []) { $this->options['hidden'] = $hidden; + return $this; } /** * 设置需要输出的属性 * @access public - * @param array $visible 需要输出的属性 + * @param array $visible * @return $this */ - public function visible(array $visible) + public function visible(array $visible = []) { $this->options['visible'] = $visible; + return $this; } /** - * 设置需要追加输出的属性 + * 设置需要附加的输出属性 * @access public - * @param array $append 需要追加的属性 + * @param array $append 属性列表 * @return $this */ - public function append(array $append) + public function append(array $append = []) { $this->options['append'] = $append; + return $this; } @@ -130,10 +133,11 @@ trait ModelRelationQuery */ public function relation(array $relation) { - if (!empty($relation)) { - $this->options['relation'] = $relation; + if (empty($this->model) || empty($relation)) { + return $this; } + $this->options['relation'] = $relation; return $this; } @@ -175,16 +179,30 @@ trait ModelRelationQuery /** * 设置数据字段获取器 * @access public - * @param string|array $name 字段名 - * @param callable $callback 闭包获取器 + * @param string|array $name 字段名 + * @param callable $callback 闭包获取器 * @return $this */ public function withAttr($name, callable $callback = null) { if (is_array($name)) { - $this->options['with_attr'] = $name; - } else { - $this->options['with_attr'][$name] = $callback; + foreach ($name as $key => $val) { + $this->withAttr($key, $val); + } + return $this; + } + + $this->options['with_attr'][$name] = $callback; + + if (strpos($name, '.')) { + [$relation, $field] = explode('.', $name); + + if (!empty($this->options['json']) && in_array($relation, $this->options['json'])) { + + } else { + $this->options['with_relation_attr'][$relation][$field] = $callback; + unset($this->options['with_attr'][$name]); + } } return $this; @@ -198,10 +216,11 @@ trait ModelRelationQuery */ public function with($with) { - if (!empty($with)) { - $this->options['with'] = (array) $with; + if (empty($this->model) || empty($with)) { + return $this; } + $this->options['with'] = (array) $with; return $this; } @@ -214,7 +233,7 @@ trait ModelRelationQuery */ public function withJoin($with, string $joinType = '') { - if (empty($with)) { + if (empty($this->model) || empty($with)) { return $this; } @@ -246,7 +265,6 @@ trait ModelRelationQuery } $this->via(); - $this->options['with_join'] = $with; return $this; @@ -263,16 +281,20 @@ trait ModelRelationQuery */ protected function withAggregate($relations, string $aggregate = 'count', $field = '*', bool $subQuery = true) { + if (empty($this->model)) { + return $this; + } + if (!$subQuery) { - $this->options['with_count'][] = [$relations, $aggregate, $field]; - } else { - if (!isset($this->options['field'])) { - $this->field('*'); - } + $this->options['with_aggregate'][] = [(array) $relations, $aggregate, $field]; + return $this; + } - $this->model->relationCount($this, (array) $relations, $aggregate, $field, true); + if (!isset($this->options['field'])) { + $this->field('*'); } + $this->model->relationCount($this, (array) $relations, $aggregate, $field, true); return $this; } @@ -287,6 +309,10 @@ trait ModelRelationQuery */ public function withCache($relation = true, $key = true, $expire = null, string $tag = null) { + if (empty($this->model)) { + return $this; + } + if (false === $relation || false === $key || !$this->getConnection()->getCache()) { return $this; } @@ -406,6 +432,32 @@ trait ModelRelationQuery return $this->model->hasWhere($relation, $where, $fields, $joinType, $this); } + /** + * JSON字段数据转换 + * @access protected + * @param array $result 查询数据 + * @return void + */ + protected function jsonModelResult(array &$result): void + { + $withAttr = $this->options['with_attr']; + foreach ($this->options['json'] as $name) { + if (!isset($result[$name])) { + continue; + } + + $jsonData = json_decode($result[$name], true); + + if (isset($withAttr[$name])) { + foreach ($withAttr[$name] as $key => $closure) { + $jsonData[$key] = $closure($jsonData[$key] ?? null, $jsonData); + } + } + + $result[$name] = !$this->options['json_assoc'] ? (object) $jsonData : $jsonData; + } + } + /** * 查询数据转换为模型数据集对象 * @access protected @@ -418,33 +470,24 @@ trait ModelRelationQuery return $this->model->toCollection(); } - // 检查动态获取器 - if (!empty($this->options['with_attr'])) { - foreach ($this->options['with_attr'] as $name => $val) { - if (strpos($name, '.')) { - [$relation, $field] = explode('.', $name); - - $withRelationAttr[$relation][$field] = $val; - unset($this->options['with_attr'][$name]); - } - } - } - - $withRelationAttr = $withRelationAttr ?? []; + $this->options['is_resultSet'] = true; foreach ($resultSet as $key => &$result) { // 数据转换为模型对象 - $this->resultToModel($result, $this->options, true, $withRelationAttr); - } - - if (!empty($this->options['with'])) { - // 预载入 - $result->eagerlyResultSet($resultSet, $this->options['with'], $withRelationAttr, false, $this->options['with_cache'] ?? false); + $this->resultToModel($result); } - if (!empty($this->options['with_join'])) { - // 预载入 - $result->eagerlyResultSet($resultSet, $this->options['with_join'], $withRelationAttr, true, $this->options['with_cache'] ?? false); + foreach (['with', 'with_join'] as $with) { + // 关联预载入 + if (!empty($this->options[$with])) { + $result->eagerlyResultSet( + $resultSet, + $this->options[$with], + $this->options['with_relation_attr'], + 'with_join' == $with ? true : false, + $this->options['with_cache'] ?? false + ); + } } // 模型数据集转换 @@ -455,70 +498,84 @@ trait ModelRelationQuery * 查询数据转换为模型对象 * @access protected * @param array $result 查询数据 - * @param array $options 查询参数 - * @param bool $resultSet 是否为数据集查询 - * @param array $withRelationAttr 关联字段获取器 * @return void */ - protected function resultToModel(array &$result, array $options = [], bool $resultSet = false, array $withRelationAttr = []): void + protected function resultToModel(array &$result): void { - // 动态获取器 - if (!empty($options['with_attr']) && empty($withRelationAttr)) { - foreach ($options['with_attr'] as $name => $val) { - if (strpos($name, '.')) { - [$relation, $field] = explode('.', $name); - - $withRelationAttr[$relation][$field] = $val; - unset($options['with_attr'][$name]); - } - } - } - - // JSON 数据处理 - if (!empty($options['json'])) { - $this->jsonResult($result, $options['json'], $options['json_assoc'], $withRelationAttr); + // JSON数据处理 + if (!empty($this->options['json'])) { + $this->jsonModelResult($result); } - $result = $this->model - ->newInstance($result, $resultSet ? null : $this->getModelUpdateCondition($options)); + $result = $this->model->newInstance( + $result, + !empty($this->options['is_resultSet']) ? null : $this->getModelUpdateCondition($this->options), + $this->options + ); - // 动态获取器 - if (!empty($options['with_attr'])) { - $result->withAttribute($options['with_attr']); - } - - // 输出属性控制 - if (!empty($options['visible'])) { - $result->visible($options['visible']); - } elseif (!empty($options['hidden'])) { - $result->hidden($options['hidden']); + // 模型数据处理 + foreach ($this->options['filter'] as $filter) { + call_user_func_array($filter, [$result, $this->options]); } - if (!empty($options['append'])) { - $result->append($options['append']); + // 关联查询 + if (!empty($this->options['relation'])) { + $result->relationQuery($this->options['relation'], $this->options['with_relation_attr']); } - // 关联查询 - if (!empty($options['relation'])) { - $result->relationQuery($options['relation'], $withRelationAttr); + // 关联预载入查询 + if (empty($this->options['is_resultSet'])) { + foreach (['with', 'with_join'] as $with) { + if (!empty($this->options[$with])) { + $result->eagerlyResult( + $this->options[$with], + $this->options['with_relation_attr'], + 'with_join' == $with ? true : false, + $this->options['with_cache'] ?? false + ); + } + } } - // 预载入查询 - if (!$resultSet && !empty($options['with'])) { - $result->eagerlyResult($result, $options['with'], $withRelationAttr, false, $options['with_cache'] ?? false); + // 关联统计查询 + if (!empty($this->options['with_aggregate'])) { + foreach ($this->options['with_aggregate'] as $val) { + $result->relationCount($this, $val[0], $val[1], $val[2], false); + } } - // JOIN预载入查询 - if (!$resultSet && !empty($options['with_join'])) { - $result->eagerlyResult($result, $options['with_join'], $withRelationAttr, true, $options['with_cache'] ?? false); + // 动态获取器 + if (!empty($this->options['with_attr'])) { + $result->withAttr($this->options['with_attr']); } - // 关联统计 - if (!empty($options['with_count'])) { - foreach ($options['with_count'] as $val) { - $result->relationCount($this, (array) $val[0], $val[1], $val[2], false); + foreach (['hidden', 'visible', 'append'] as $name) { + if (!empty($this->options[$name])) { + $result->$name($this->options[$name]); } } + + // 刷新原始数据 + $result->refreshOrigin(); + } + + /** + * 查询软删除数据 + * @access public + * @return Query + */ + public function withTrashed() + { + return $this->model ? $this->model->queryWithTrashed() : $this; } + /** + * 只查询软删除数据 + * @access public + * @return Query + */ + public function onlyTrashed() + { + return $this->model ? $this->model->queryOnlyTrashed() : $this; + } } diff --git a/vendor/topthink/think-orm/src/db/concern/ResultOperation.php b/vendor/topthink/think-orm/src/db/concern/ResultOperation.php index 77409d1..ea26916 100644 --- a/vendor/topthink/think-orm/src/db/concern/ResultOperation.php +++ b/vendor/topthink/think-orm/src/db/concern/ResultOperation.php @@ -26,6 +26,23 @@ use think\Model; */ trait ResultOperation { + /** + * 设置数据处理(支持模型) + * @access public + * @param callable $filter 数据处理Callable + * @param string $index 索引(唯一) + * @return $this + */ + public function filter(callable $filter, string $index = null) + { + if ($index) { + $this->options['filter'][$index] = $filter; + } else { + $this->options['filter'][] = $filter; + } + return $this; + } + /** * 是否允许返回空数据(或空模型) * @access public @@ -58,15 +75,20 @@ trait ResultOperation */ protected function result(array &$result): void { + // JSON数据处理 if (!empty($this->options['json'])) { - $this->jsonResult($result, $this->options['json'], true); + $this->jsonResult($result); } + // 查询数据处理 + foreach ($this->options['filter'] as $filter) { + $result = call_user_func_array($filter, [$result, $this->options]); + } + + // 获取器 if (!empty($this->options['with_attr'])) { $this->getResultAttr($result, $this->options['with_attr']); } - - $this->filterResult($result); } /** @@ -78,22 +100,8 @@ trait ResultOperation */ protected function resultSet(array &$resultSet, bool $toCollection = true): void { - if (!empty($this->options['json'])) { - foreach ($resultSet as &$result) { - $this->jsonResult($result, $this->options['json'], true); - } - } - - if (!empty($this->options['with_attr'])) { - foreach ($resultSet as &$result) { - $this->getResultAttr($result, $this->options['with_attr']); - } - } - - if (!empty($this->options['visible']) || !empty($this->options['hidden'])) { - foreach ($resultSet as &$result) { - $this->filterResult($result); - } + foreach ($resultSet as &$result) { + $this->result($result); } // 返回Collection对象 @@ -102,28 +110,6 @@ trait ResultOperation } } - /** - * 处理数据的可见和隐藏 - * @access protected - * @param array $result 查询数据 - * @return void - */ - protected function filterResult(&$result): void - { - $array = []; - if (!empty($this->options['visible'])) { - foreach ($this->options['visible'] as $key) { - $array[] = $key; - } - $result = array_intersect_key($result, array_flip($array)); - } elseif (!empty($this->options['hidden'])) { - foreach ($this->options['hidden'] as $key) { - $array[] = $key; - } - $result = array_diff_key($result, array_flip($array)); - } - } - /** * 使用获取器处理数据 * @access protected @@ -170,7 +156,7 @@ trait ResultOperation * 查找单条记录 不存在返回空数据(或者空模型) * @access public * @param mixed $data 数据 - * @return array|Model|static + * @return array|Model|static|mixed */ public function findOrEmpty($data = null) { @@ -180,30 +166,17 @@ trait ResultOperation /** * JSON字段数据转换 * @access protected - * @param array $result 查询数据 - * @param array $json JSON字段 - * @param bool $assoc 是否转换为数组 - * @param array $withRelationAttr 关联获取器 + * @param array $result 查询数据 * @return void */ - protected function jsonResult(array &$result, array $json = [], bool $assoc = false, array $withRelationAttr = []): void + protected function jsonResult(array &$result): void { - foreach ($json as $name) { + foreach ($this->options['json'] as $name) { if (!isset($result[$name])) { continue; } $result[$name] = json_decode($result[$name], true); - - if (isset($withRelationAttr[$name])) { - foreach ($withRelationAttr[$name] as $key => $closure) { - $result[$name][$key] = $closure($result[$name][$key] ?? null, $result[$name]); - } - } - - if (!$assoc) { - $result[$name] = (object) $result[$name]; - } } } @@ -242,7 +215,7 @@ trait ResultOperation * 查找单条记录 如果不存在则抛出异常 * @access public * @param array|string|Query|Closure $data 数据 - * @return array|Model|static + * @return array|Model|static|mixed * @throws ModelNotFoundException * @throws DataNotFoundException */ diff --git a/vendor/topthink/think-orm/src/db/concern/WhereQuery.php b/vendor/topthink/think-orm/src/db/concern/WhereQuery.php index d2deb03..ef845f5 100644 --- a/vendor/topthink/think-orm/src/db/concern/WhereQuery.php +++ b/vendor/topthink/think-orm/src/db/concern/WhereQuery.php @@ -361,9 +361,7 @@ trait WhereQuery $field = $this->options['via'] . '.' . $field; } - if ($field instanceof Raw) { - return $this->whereRaw($field, is_array($op) ? $op : [], $logic); - } elseif ($strict) { + if ($strict) { // 使用严格模式查询 if ('=' == $op) { $where = $this->whereEq($field, $condition); diff --git a/vendor/topthink/think-orm/src/db/connector/Sqlite.php b/vendor/topthink/think-orm/src/db/connector/Sqlite.php index c664f20..3e42a90 100644 --- a/vendor/topthink/think-orm/src/db/connector/Sqlite.php +++ b/vendor/topthink/think-orm/src/db/connector/Sqlite.php @@ -42,7 +42,7 @@ class Sqlite extends PDOConnection public function getFields(string $tableName): array { [$tableName] = explode(' ', $tableName); - $sql = 'PRAGMA table_info( ' . $tableName . ' )'; + $sql = 'PRAGMA table_info( \'' . $tableName . '\' )'; $pdo = $this->getPDOStatement($sql); $result = $pdo->fetchAll(PDO::FETCH_ASSOC); diff --git a/vendor/topthink/think-orm/src/model/Collection.php b/vendor/topthink/think-orm/src/model/Collection.php index f017e32..c8ff385 100644 --- a/vendor/topthink/think-orm/src/model/Collection.php +++ b/vendor/topthink/think-orm/src/model/Collection.php @@ -157,7 +157,7 @@ class Collection extends BaseCollection public function withAttr($name, $callback = null) { $this->each(function (Model $model) use ($name, $callback) { - $model->withAttribute($name, $callback); + $model->withAttr($name, $callback); }); return $this; diff --git a/vendor/topthink/think-orm/src/model/concern/Attribute.php b/vendor/topthink/think-orm/src/model/concern/Attribute.php index 34cb59a..e4aa07b 100644 --- a/vendor/topthink/think-orm/src/model/concern/Attribute.php +++ b/vendor/topthink/think-orm/src/model/concern/Attribute.php @@ -250,6 +250,17 @@ trait Attribute return $this; } + /** + * 刷新对象原始数据(为当前数据) + * @access public + * @return $this + */ + public function refreshOrigin() + { + $this->origin = $this->data; + return $this; + } + /** * 获取对象原始数据 如果不存在指定字段返回null * @access public @@ -371,6 +382,9 @@ trait Attribute } elseif (isset($this->type[$name])) { // 类型转换 $value = $this->writeTransform($value, $this->type[$name]); + } elseif (is_object($value) && method_exists($value, '__toString')) { + // 对象类型 + $value = $value->__toString(); } // 设置数据对象属性 @@ -531,6 +545,10 @@ trait Attribute */ protected function getJsonValue($name, $value) { + if (is_null($value)) { + return $value; + } + foreach ($this->withAttr[$name] as $key => $closure) { if ($this->jsonAssoc) { $value[$key] = $closure($value[$key], $value); @@ -633,11 +651,11 @@ trait Attribute * @param callable $callback 闭包获取器 * @return $this */ - public function withAttribute($name, callable $callback = null) + public function withAttr($name, callable $callback = null) { if (is_array($name)) { foreach ($name as $key => $val) { - $this->withAttribute($key, $val); + $this->withAttr($key, $val); } } else { $name = $this->getRealFieldName($name); diff --git a/vendor/topthink/think-orm/src/model/concern/Conversion.php b/vendor/topthink/think-orm/src/model/concern/Conversion.php index 35d96d0..22d6256 100644 --- a/vendor/topthink/think-orm/src/model/concern/Conversion.php +++ b/vendor/topthink/think-orm/src/model/concern/Conversion.php @@ -330,6 +330,7 @@ trait Conversion } // JsonSerializable + #[\ReturnTypeWillChange] public function jsonSerialize() { return $this->toArray(); diff --git a/vendor/topthink/think-orm/src/model/concern/RelationShip.php b/vendor/topthink/think-orm/src/model/concern/RelationShip.php index 33c1b89..8faadf4 100644 --- a/vendor/topthink/think-orm/src/model/concern/RelationShip.php +++ b/vendor/topthink/think-orm/src/model/concern/RelationShip.php @@ -291,14 +291,13 @@ trait RelationShip /** * 预载入关联查询 返回模型对象 * @access public - * @param Model $result 数据对象 * @param array $relations 关联 * @param array $withRelationAttr 关联获取器 * @param bool $join 是否为JOIN方式 * @param mixed $cache 关联缓存 * @return void */ - public function eagerlyResult(Model $result, array $relations, array $withRelationAttr = [], bool $join = false, $cache = false): void + public function eagerlyResult(array $relations, array $withRelationAttr = [], bool $join = false, $cache = false): void { foreach ($relations as $key => $relation) { $subRelation = []; @@ -333,7 +332,7 @@ trait RelationShip $relationCache = $cache[$relationName] ?? []; } - $relationResult->eagerlyResult($result, $relationName, $subRelation, $closure, $relationCache, $join); + $relationResult->eagerlyResult($this, $relationName, $subRelation, $closure, $relationCache, $join); } } diff --git a/vendor/topthink/think-orm/src/model/concern/SoftDelete.php b/vendor/topthink/think-orm/src/model/concern/SoftDelete.php index 8d76bb0..117f1ef 100644 --- a/vendor/topthink/think-orm/src/model/concern/SoftDelete.php +++ b/vendor/topthink/think-orm/src/model/concern/SoftDelete.php @@ -55,6 +55,16 @@ trait SoftDelete return $model->withTrashedData(true)->db(); } + /** + * 查询软删除数据 + * @access public + * @return Query + */ + public function queryWithTrashed(): Query + { + return $this->withTrashedData(true)->db(); + } + /** * 是否包含软删除数据 * @access protected @@ -86,6 +96,23 @@ trait SoftDelete return $model->db(); } + /** + * 只查询软删除数据 + * @access public + * @return Query + */ + public function queryOnlyTrashed(): Query + { + $field = $this->getDeleteTimeField(true); + + if ($field) { + return $this->db() + ->useSoftDelete($field, $this->getWithTrashedExp()); + } + + return $this->db(); + } + /** * 获取软删除数据的查询条件 * @access protected @@ -152,12 +179,12 @@ trait SoftDelete public static function destroy($data, bool $force = false): bool { // 传入空值(包括空字符串和空数组)的时候不会做任何的数据删除操作,但传入0则是有效的 - if(empty($data) && $data !== 0){ + if (empty($data) && 0 !== $data) { return false; } // 仅当强制删除时包含软删除数据 $model = (new static()); - if($force){ + if ($force) { $model->withTrashedData(true); } $query = $model->db(false); diff --git a/vendor/topthink/think-orm/src/model/relation/BelongsTo.php b/vendor/topthink/think-orm/src/model/relation/BelongsTo.php index 941e1d4..0802b11 100644 --- a/vendor/topthink/think-orm/src/model/relation/BelongsTo.php +++ b/vendor/topthink/think-orm/src/model/relation/BelongsTo.php @@ -236,12 +236,11 @@ class BelongsTo extends OneToOne $relationModel->exists(true); } + // 设置关联属性 + $result->setRelation($relation, $relationModel); if (!empty($this->bindAttr)) { // 绑定关联属性 $this->bindAttr($result, $relationModel); - } else { - // 设置关联属性 - $result->setRelation($relation, $relationModel); } } } @@ -277,12 +276,12 @@ class BelongsTo extends OneToOne $relationModel->exists(true); } + // 设置关联属性 + $result->setRelation($relation, $relationModel); + if (!empty($this->bindAttr)) { // 绑定关联属性 $this->bindAttr($result, $relationModel); - } else { - // 设置关联属性 - $result->setRelation($relation, $relationModel); } } diff --git a/vendor/topthink/think-orm/src/model/relation/BelongsToMany.php b/vendor/topthink/think-orm/src/model/relation/BelongsToMany.php index 5f177c1..9890906 100644 --- a/vendor/topthink/think-orm/src/model/relation/BelongsToMany.php +++ b/vendor/topthink/think-orm/src/model/relation/BelongsToMany.php @@ -19,7 +19,6 @@ use think\db\Raw; use think\Model; use think\model\Pivot; use think\model\Relation; -use think\Paginator; /** * 多对多关联类 @@ -120,31 +119,6 @@ class BelongsToMany extends Relation } } - /** - * 合成中间表模型 - * @access protected - * @param array|Collection|Paginator $models - */ - protected function hydratePivot(iterable $models) - { - foreach ($models as $model) { - $pivot = []; - - foreach ($model->getData() as $key => $val) { - if (strpos($key, '__')) { - [$name, $attr] = explode('__', $key, 2); - - if ('pivot' == $name) { - $pivot[$attr] = $val; - unset($model->$key); - } - } - } - - $model->setRelation($this->pivotDataName, $this->newPivot($pivot)); - } - } - /** * 延迟获取关联数据 * @access public @@ -158,62 +132,33 @@ class BelongsToMany extends Relation $closure($this->getClosureType($closure)); } - $result = $this->relation($subRelation) + return $this->relation($subRelation) ->select() ->setParent(clone $this->parent); - - $this->hydratePivot($result); - - return $result; - } - - /** - * 重载select方法 - * @access public - * @param mixed $data - * @return Collection - */ - public function select($data = null): Collection - { - $this->baseQuery(); - $result = $this->query->select($data); - $this->hydratePivot($result); - - return $result; - } - - /** - * 重载paginate方法 - * @access public - * @param int|array $listRows - * @param int|bool $simple - * @return Paginator - */ - public function paginate($listRows = null, $simple = false): Paginator - { - $this->baseQuery(); - $result = $this->query->paginate($listRows, $simple); - $this->hydratePivot($result); - - return $result; } /** - * 重载find方法 + * 组装Pivot模型 * @access public - * @param mixed $data - * @return Model + * @param Model $result 模型对象 + * @return array */ - public function find($data = null) + protected function matchPivot(Model $result): array { - $this->baseQuery(); - $result = $this->query->find($data); - - if ($result && !$result->isEmpty()) { - $this->hydratePivot([$result]); + $pivot = []; + foreach ($result->getData() as $key => $val) { + if (strpos($key, '__')) { + [$name, $attr] = explode('__', $key, 2); + + if ('pivot' == $name) { + $pivot[$attr] = $val; + unset($result->$key); + } + } } - return $result; + $result->setRelation($this->pivotDataName, $this->newPivot($pivot)); + return $pivot; } /** @@ -405,24 +350,13 @@ class BelongsToMany extends Relation // 组装模型数据 $data = []; foreach ($list as $set) { - $pivot = []; - foreach ($set->getData() as $key => $val) { - if (strpos($key, '__')) { - [$name, $attr] = explode('__', $key, 2); - if ('pivot' == $name) { - $pivot[$attr] = $val; - unset($set->$key); - } - } - } - $key = $pivot[$this->localKey]; + $pivot = $this->matchPivot($set); + $key = $pivot[$this->localKey]; if ($this->withLimit && isset($data[$key]) && count($data[$key]) >= $this->withLimit) { continue; } - $set->setRelation($this->pivotDataName, $this->newPivot($pivot)); - $data[$key][] = $set; } @@ -673,6 +607,10 @@ class BelongsToMany extends Relation $foreignKey = $this->foreignKey; $localKey = $this->localKey; + $this->query->filter(function ($result, $options) { + $this->matchPivot($result); + }); + // 关联查询 if (null === $this->parent->getKey()) { $condition = ['pivot.' . $localKey, 'exp', new Raw('=' . $this->parent->getTable() . '.' . $this->parent->getPk())]; diff --git a/vendor/topthink/think-orm/src/model/relation/HasManyThrough.php b/vendor/topthink/think-orm/src/model/relation/HasManyThrough.php index d4b7d91..fc62026 100644 --- a/vendor/topthink/think-orm/src/model/relation/HasManyThrough.php +++ b/vendor/topthink/think-orm/src/model/relation/HasManyThrough.php @@ -258,8 +258,14 @@ class HasManyThrough extends Relation $closure($this->getClosureType($closure)); } + $throughKey = $this->throughKey; + + if ($this->baseQuery) { + $throughKey = Str::snake(class_basename($this->model)) . "." . $this->throughKey; + } + $list = $this->query - ->where($this->throughKey, 'in', $keys) + ->where($throughKey, 'in', $keys) ->cache($cache[0] ?? false, $cache[1] ?? null, $cache[2] ?? null) ->select(); diff --git a/vendor/topthink/think-orm/src/model/relation/HasOne.php b/vendor/topthink/think-orm/src/model/relation/HasOne.php index be4927b..269f0d7 100644 --- a/vendor/topthink/think-orm/src/model/relation/HasOne.php +++ b/vendor/topthink/think-orm/src/model/relation/HasOne.php @@ -234,13 +234,12 @@ class HasOne extends OneToOne $relationModel->setParent(clone $result); $relationModel->exists(true); } + // 设置关联属性 + $result->setRelation($relation, $relationModel); if (!empty($this->bindAttr)) { // 绑定关联属性 $this->bindAttr($result, $relationModel); - } else { - // 设置关联属性 - $result->setRelation($relation, $relationModel); } } } @@ -276,11 +275,12 @@ class HasOne extends OneToOne $relationModel->exists(true); } + // 设置关联属性 + $result->setRelation($relation, $relationModel); + if (!empty($this->bindAttr)) { // 绑定关联属性 $this->bindAttr($result, $relationModel); - } else { - $result->setRelation($relation, $relationModel); } }