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); } }