Skip to content

wujingke/zjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

宅急送标准对接SDK

安装

composer require wujingke/zjs

更新你的依赖包 composer update 或者全新安装 composer install

例子

use ZJS\Order;  //订单类
use ZJS\Sender;  //发件人
use ZJS\Receiver; //收件人




//下订单
$sender = new Sender();

$sender->name = "xxx";
$sender->phone="028-82487225";
$sender->prov="四川省";
$sender->city="成都市";
$sender->district="成华区";
$sender->address="四川省成都市成华区xxxx";

$receiver  =new  Receiver();
$receiver->name = "裕承保险";
$receiver->mobile="028-82487225";
$receiver->prov="四川省";
$receiver->city="成都市";
$receiver->district="成华区";
$receiver->address="四川省成都市成华区xxxxxx";
$order = new  Order('xx', 'xx', 'xx', 'http://zjs.com.cn/');


$order->setOrderId(time());
$order->setSender($sender);
$order->setReceiver($receiver);
$order->setItem('我的1', 1);
$order->setItem('我的2', 1);
$order->setItems('', 1);


//取消订单

$order = new  Order('xx', 'xx', 'xx', 'http://zjs.com.cn/');

$order->setOrderId(time());
$order->cancel())

About

宅急送php SDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages