cblink-service/meituan-dispatch
Composer 安装命令:
composer require cblink-service/meituan-dispatch
包简介
Package description here.
README 文档
README
主要用户 Cblink 美团配送服务平台请求的SDK.
Installing
$ composer require cblink-service/meituan-dispatch -vvv
Usage
美团关联门店创建
$data = [
"AppId" => "123",
"secret"=>"test",
"app_key"=>"test",
"delivery_id" => 169736,
"order_id" => 169736,
"poi_seq" => 40101,
"shop_id" => "test_0001",
"delivery_service_code" => 4011,
"receiver_name" => "test",
"receiver_address" => "深圳",
"receiver_phone" => 13944702732,
"receiver_lng" => "116427694",
"receiver_lat" => 39902779,
"goods_value" => "100",
"goods_weight" => 1,
"goods_detail" => "",
];
$config = [
// 配置信息
'private' => true,
'base_url' => 'http://test.com',
'app_id' => '123',
'key' => 'test',
'secret' => 'test',
'uuid' => ''
];
$result = (new MeituanDispathService($config))->order->createShopOrder($data);
创建商户信息
$data = [
'name' => 'test',
'app_key' => 'test',
'secret' => 'test',
'callback_status_url' => 'http://my.erp.cblink.test/api/hook/meituan/general/dispatch/status',
'callback_error_url' => 'http://my.erp.cblink.test/api/hook/meituan/general/dispatch/exception',
'callback_scope_url' => '',
'callback_risk_url' => '',
'callback_shop_url' => '',
];
$config = [
// 配置信息
'private' => true,
'base_url' => 'http://meituan-dispatch.erp.cblink.test/',
'app_id' => '45799194',
'key' => 'kK4xEVJk4N',
'secret' => 'NLkhKSnLIbMSJuHQyiBKMgU3Pk5Sua',
'uuid' => ''
];
$result = (new MeituanDispath($config))->order->registerMerchant($data);
TODO
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT
cblink-service/meituan-dispatch 适用场景与选型建议
cblink-service/meituan-dispatch 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 873 次下载、GitHub Stars 达 2, 最近一次更新时间为 2020 年 04 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 cblink-service/meituan-dispatch 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cblink-service/meituan-dispatch 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 873
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-27