mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2026-07-13 00:31:07 +08:00
Compare commits
No commits in common. "4f96423812e0e9a1a2d618aa7e8158a3894900c4" and "b14ce9c381ee6855bcd1e23e0690981733ffe92a" have entirely different histories.
4f96423812
...
b14ce9c381
3
We.php
3
We.php
@ -59,7 +59,6 @@ use WeChat\Exceptions\InvalidInstanceException;
|
||||
* ----- WeMini -----
|
||||
* @method \WeMini\Crypt WeMiniCrypt($options = []) static 小程序数据加密处理
|
||||
* @method \WeMini\Delivery WeMiniDelivery($options = []) static 小程序即时配送
|
||||
* @method \WeMini\Shipping WeMiniShipping($options = []) satic 小程序发货信息
|
||||
* @method \WeMini\Guide WeMiniGuide($options = []) static 小程序导购助手
|
||||
* @method \WeMini\Image WeMiniImage($options = []) static 小程序图像处理
|
||||
* @method \WeMini\Live WeMiniLive($options = []) static 小程序直播接口
|
||||
@ -95,7 +94,7 @@ class We
|
||||
* 定义当前版本
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = '1.2.53';
|
||||
const VERSION = '1.2.52';
|
||||
|
||||
/**
|
||||
* 静态配置
|
||||
|
||||
@ -1,118 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace WeMini;
|
||||
|
||||
use WeChat\Contracts\BasicWeChat;
|
||||
|
||||
/**
|
||||
* 小程序发货信息管理服务
|
||||
* @class Shipping
|
||||
* @package WeMini
|
||||
*/
|
||||
class Shipping extends BasicWeChat
|
||||
{
|
||||
|
||||
/**
|
||||
* 发货信息录入接口
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
public function upload($data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/wxa/sec/order/upload_shipping_info?access_token=ACCESS_TOKEN';
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 发货信息合单录入接口
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
public function combined($data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/wxa/sec/order/upload_combined_shipping_info?access_token=ACCESS_TOKEN';
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询订单发货状态
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
public function query($data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/wxa/sec/order/get_order?access_token=ACCESS_TOKEN';
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询订单列表
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
public function qlist($data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/wxa/sec/order/get_order_list?access_token=ACCESS_TOKEN';
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 确认收货提醒接口
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
public function confirm($data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/wxa/sec/order/notify_confirm_receive?access_token=ACCESS_TOKEN';
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 消息跳转路径设置接口
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
public function setJump($data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/wxa/sec/order/set_msg_jump_path?access_token=ACCESS_TOKEN';
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询小程序是否已开通发货信息管理服务
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
public function isTrade($data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/wxa/sec/order/is_trade_managed?access_token=ACCESS_TOKEN';
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询小程序是否已完成交易结算管理确认
|
||||
* @param array $data
|
||||
* @return array
|
||||
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||
* @throws \WeChat\Exceptions\LocalCacheException
|
||||
*/
|
||||
public function isCompleted($data)
|
||||
{
|
||||
$url = 'https://api.weixin.qq.com/wxa/sec/order/is_trade_management_confirmation_completed?access_token=ACCESS_TOKEN';
|
||||
return $this->callPostApi($url, $data, true);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user