There is no license information available for the latest version (dev-master) of this package.

宅急送接口

Maintainers

Details

github.com/wujingke/zjs

Source

Issues

Installs: 126

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 1

Open Issues: 0

Type:package

dev-master 2016-05-18 05:33 UTC

This package is not auto-updated.

Last update: 2024-11-18 07:38:32 UTC


README

安装

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())