mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-11-06 20:02:07 +08:00
fix: 更新小程序订单管理
This commit is contained in:
parent
c617666343
commit
97825e0556
@ -38,4 +38,33 @@ class Operation extends BasicWeChat
|
|||||||
$url = 'https://api.weixin.qq.com/wxaapi/userlog/userlog_search?access_token=ACCESS_TOKEN';
|
$url = 'https://api.weixin.qq.com/wxaapi/userlog/userlog_search?access_token=ACCESS_TOKEN';
|
||||||
return $this->callPostApi($url, $data, true);
|
return $this->callPostApi($url, $data, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取 mediaId 图片
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function getFeedbackmedia($data)
|
||||||
|
{
|
||||||
|
$query = http_build_query($data);
|
||||||
|
$url = 'https://api.weixin.qq.com/cgi-bin/media/getfeedbackmedia?'. $query .'&access_token=ACCESS_TOKEN';
|
||||||
|
return $this->callGetApi($url);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实时日志查询
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function getFeedback($data)
|
||||||
|
{
|
||||||
|
$query = http_build_query($data);
|
||||||
|
$url = 'https://api.weixin.qq.com/wxaapi/userlog/userlog_search?'.$query.'&access_token=ACCESS_TOKEN';
|
||||||
|
return $this->callGetApi($url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
95
WeMini/Shopping.php
Normal file
95
WeMini/Shopping.php
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | WeChatDeveloper
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 版权所有 2014~2025 ThinkAdmin [ thinkadmin.top ]
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 官方网站: https://thinkadmin.top
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | 开源协议 ( https://mit-license.org )
|
||||||
|
// | 免责声明 ( https://thinkadmin.top/disclaimer )
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
// | gitee 代码仓库:https://gitee.com/zoujingli/WeChatDeveloper
|
||||||
|
// | github 代码仓库:https://github.com/zoujingli/WeChatDeveloper
|
||||||
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace WeMini;
|
||||||
|
|
||||||
|
use WeChat\Contracts\BasicWeChat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小程序购物订单
|
||||||
|
* Class Shopping
|
||||||
|
* @package WeMini
|
||||||
|
*/
|
||||||
|
class Shopping extends BasicWeChat
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 上传购物详情
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
* @throws \WeChat\Exceptions\InvalidResponseException
|
||||||
|
* @throws \WeChat\Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function uploadShoppingInfo($data)
|
||||||
|
{
|
||||||
|
$url = 'https://api.weixin.qq.com/user-order/orders?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 uploadShippingInfo($data)
|
||||||
|
{
|
||||||
|
$url = 'https://api.weixin.qq.com/user-order/orders?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 uploadCombinedShoppingInfo($data)
|
||||||
|
{
|
||||||
|
$url = 'https://api.weixin.qq.com/user-order/orders?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 uploadCombinedShippingInfo($data)
|
||||||
|
{
|
||||||
|
$url = 'https://api.weixin.qq.com/user-order/orders?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 ShoppingInfoVerifyUploadResult($data)
|
||||||
|
{
|
||||||
|
$url = 'https://api.weixin.qq.com/user-order/shoppinginfo/verify?access_token=ACCESS_TOKEN';
|
||||||
|
return $this->callPostApi($url, $data, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user