{"id":30368511,"url":"https://github.com/ledccn/shan-song","last_synced_at":"2026-01-20T16:50:46.979Z","repository":{"id":295771704,"uuid":"991185410","full_name":"ledccn/shan-song","owner":"ledccn","description":"闪送开放平台，自营商户SDK","archived":false,"fork":false,"pushed_at":"2025-08-03T06:58:18.000Z","size":332,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-12T23:24:43.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ledccn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-27T08:51:13.000Z","updated_at":"2025-08-03T06:55:07.000Z","dependencies_parsed_at":"2025-05-27T10:15:15.685Z","dependency_job_id":"62f52527-6c84-4037-9efa-74fa1966cffe","html_url":"https://github.com/ledccn/shan-song","commit_stats":null,"previous_names":["ledccn/shan-song"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/ledccn/shan-song","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fshan-song","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fshan-song/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fshan-song/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fshan-song/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledccn","download_url":"https://codeload.github.com/ledccn/shan-song/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledccn%2Fshan-song/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278741109,"owners_count":26037540,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-20T01:34:34.245Z","updated_at":"2025-10-07T08:20:27.730Z","avatar_url":"https://github.com/ledccn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 说明\n\n闪送开放平台，自营商户SDK\n\n## 安装\n\n`composer require ledc/shan-song`\n\n## 使用说明\n\n开箱即用，只需要传入一个配置，初始化一个实例即可：\n\n```php\nuse Ledc\\ShanSong\\Config;\nuse Ledc\\ShanSong\\Merchant;\n\n//更多配置项，可以查看 配置管理类的属性 Ledc\\ShanSong\\Config\n$config = [\n    'shopId' =\u003e '',\n    'clientId' =\u003e '',\n    'appSecret' =\u003e '',\n    'testShopId' =\u003e '',\n    'debug' =\u003e true,\n    'enabled' =\u003e true,\n];\n\n$merchant = new Merchant(new Config($config));\n```\n\n在创建实例后，所有的方法都可以由IDE自动补全；例如：\n\n```php\n/** @var \\Ledc\\ShanSong\\Merchant $merchant */\n// 查询开通城市\n$merchant-\u003eopenCitiesLists();\n\n// 分页查询商户店铺\n$merchant-\u003equeryAllStores();\n\n// 查询城市可指定的交通工具\n$merchant-\u003eoptionalTravelWay();\n\n// 订单计费\n$merchant-\u003eorderCalculate();\n\n// 提交订单\n$merchant-\u003eorderPlace();\n\n// 订单加价\n$merchant-\u003eaddition();\n\n// 查询订单详情\n$merchant-\u003eorderInfo();\n\n// 查询闪送员位置信息\n$merchant-\u003ecourierInfo();\n\n// 查询订单续重加价金额\n$merchant-\u003ecalculateOrderAddWeightFee();\n\n// 支付订单续重费用\n$merchant-\u003epayAddWeightFee();\n\n// 订单预取消\n$merchant-\u003epreAbortOrder();\n\n// 订单取消\n$merchant-\u003eabortOrder();\n\n// 确认物品送回\n$merchant-\u003econfirmGoodsReturn();\n\n// 店铺操作（新增店铺、修改店铺）\n$merchant-\u003estoreOperation();\n\n// 查询账号额度\n$merchant-\u003egetUserAccount();\n\n// 修改收件人手机号\n$merchant-\u003eupdateToMobile();\n\n// 批量新增店铺\n$merchant-\u003eaddStores();\n\n// 更多...\n```\n\n## 二次开发\n\n配置管理类：`Ledc\\ShanSong\\Config`\n\n闪送自营商户：`Ledc\\ShanSong\\Merchant`\n\n闪送HttpClient：`Ledc\\ShanSong\\HttpClient`，您可以引入该特性自定义HttpClient。\n\n## 官方文档\n\nhttps://open.ishansong.com/joinGuide\n\n## 捐赠\n\n![reward](reward.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fshan-song","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledccn%2Fshan-song","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledccn%2Fshan-song/lists"}