mirror of
				https://gitee.com/zoujingli/WeChatDeveloper.git
				synced 2025-10-31 01:42:09 +08:00 
			
		
		
		
	增加海关
This commit is contained in:
		
							parent
							
								
									463c677cfd
								
							
						
					
					
						commit
						60540547d1
					
				
							
								
								
									
										5
									
								
								We.php
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								We.php
									
									
									
									
									
								
							| @ -74,8 +74,9 @@ use WeChat\Exceptions\InvalidInstanceException; | |||||||
|  * |  * | ||||||
|  * ----- WePay ----- |  * ----- WePay ----- | ||||||
|  * @method \WePay\Bill WePayBill($options = []) static 微信商户账单及评论 |  * @method \WePay\Bill WePayBill($options = []) static 微信商户账单及评论 | ||||||
|  * @method \WePay\Coupon WePayCoupon($options = []) static 微信商户代金券 |  | ||||||
|  * @method \WePay\Order WePayOrder($options = []) static 微信商户订单 |  * @method \WePay\Order WePayOrder($options = []) static 微信商户订单 | ||||||
|  |  * @method \WePay\Coupon WePayCoupon($options = []) static 微信商户代金券 | ||||||
|  |  * @method \WePay\Custom WePayCustom($options = []) static 微信商户海关 | ||||||
|  * @method \WePay\Refund WePayRefund($options = []) static 微信商户退款 |  * @method \WePay\Refund WePayRefund($options = []) static 微信商户退款 | ||||||
|  * @method \WePay\Redpack WePayRedpack($options = []) static 微信红包支持 |  * @method \WePay\Redpack WePayRedpack($options = []) static 微信红包支持 | ||||||
|  * @method \WePay\Transfers WePayTransfers($options = []) static 微信商户打款到零钱 |  * @method \WePay\Transfers WePayTransfers($options = []) static 微信商户打款到零钱 | ||||||
| @ -87,7 +88,7 @@ class We | |||||||
|      * 定义当前版本 |      * 定义当前版本 | ||||||
|      * @var string |      * @var string | ||||||
|      */ |      */ | ||||||
|     const VERSION = '1.2.28'; |     const VERSION = '1.2.29'; | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|      * 静态配置 |      * 静态配置 | ||||||
|  | |||||||
							
								
								
									
										55
									
								
								WePay/Custom.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										55
									
								
								WePay/Custom.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,55 @@ | |||||||
|  | <?php | ||||||
|  | 
 | ||||||
|  | namespace WePay; | ||||||
|  | 
 | ||||||
|  | use WeChat\Contracts\BasicWePay; | ||||||
|  | 
 | ||||||
|  | /** | ||||||
|  |  * 商户提交订单到海关 | ||||||
|  |  * Class Custom | ||||||
|  |  * @package WePay | ||||||
|  |  */ | ||||||
|  | class Custom extends BasicWePay | ||||||
|  | { | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * 订单附加信息提交接口 | ||||||
|  |      * @param array $options | ||||||
|  |      * @return mixed | ||||||
|  |      * @throws \WeChat\Exceptions\InvalidResponseException | ||||||
|  |      * @throws \WeChat\Exceptions\LocalCacheException | ||||||
|  |      */ | ||||||
|  |     public function add(array $options = []) | ||||||
|  |     { | ||||||
|  |         $url = 'https://api.mch.weixin.qq.com/cgi-bin/mch/customs/customdeclareorder'; | ||||||
|  |         return $this->callPostApi($url, $options, false, 'MD5'); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * 订单附加信息查询接口 | ||||||
|  |      * @param array $options | ||||||
|  |      * @return array | ||||||
|  |      * @throws \WeChat\Exceptions\InvalidResponseException | ||||||
|  |      * @throws \WeChat\Exceptions\LocalCacheException | ||||||
|  |      */ | ||||||
|  |     public function get(array $options) | ||||||
|  |     { | ||||||
|  |         $url = 'https://api.mch.weixin.qq.com/cgi-bin/mch/customs/customdeclarequery'; | ||||||
|  |         return $this->callPostApi($url, $options, false, 'MD5'); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * 订单附加信息重推接口 | ||||||
|  |      * @param array $options | ||||||
|  |      * @return array | ||||||
|  |      * @throws \WeChat\Exceptions\InvalidResponseException | ||||||
|  |      * @throws \WeChat\Exceptions\LocalCacheException | ||||||
|  |      */ | ||||||
|  |     public function reset(array $options) | ||||||
|  |     { | ||||||
|  |         $url = 'https://api.mch.weixin.qq.com/cgi-bin/mch/newcustoms/customdeclareredeclare'; | ||||||
|  |         return $this->callPostApi($url, $options, false, 'MD5'); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user