Skip to content

Commit 7f1a884

Browse files
committed
v1.3.6
1 parent 6b6f550 commit 7f1a884

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

lib/wechat-sdk/wechat-sdk.php

+3-6
Original file line numberDiff line numberDiff line change
@@ -2382,13 +2382,8 @@ public function refundOrder($orderId, $refundId, $total_fee, $refund_fee = 0, $e
23822382
$params['refund_fee'] = (int)($refund_fee * 100);
23832383
$params['op_user_id'] = $this->mch_id;
23842384
$params['sign'] = self::_getOrderMd5($params);
2385-
$data = $this->_array2Xml($params);
2386-
2387-
WP_Weixin::log($data);
2388-
2385+
$data = $this->_array2Xml($params);
23892386
$data = $this->http(self::PAY_REFUND_ORDER_URL, $data, 'POST', true);
2390-
2391-
WP_Weixin::log($data);
23922387

23932388
return self::parsePayRequest($data);
23942389
}
@@ -2802,6 +2797,8 @@ private function getErrorMessage($code = null) {
28022797
return 'WeChat API: Invalid in-stock quantity';
28032798
case 40124:
28042799
return 'WeChat API: Membership card settings reached the limit of custom_field';
2800+
case 40125:
2801+
return 'WeChat API: Invalid appsecret';
28052802
case 40127:
28062803
return 'WeChat API: Coupon has been deleted by user or is in the process of being transferred';
28072804
case 40130:

readme.txt

+10-5
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ This section describes how to install the plugin and get it working.
105105

106106
== Changelog ==
107107

108+
= 1.3.6 =
109+
* WeChat SDK: Update error codes and descriptions
110+
* WC tested up to: 3.9.0
111+
108112
= 1.3.5 =
109113
* WeChat SDK: Update error codes and descriptions
110114
* WeChat SDK: Add Broadcast methods (`mass_preview` `mass_to_users`, `mass_to_all_or_tag`, `mass_delete`, `mass_check_status`)
@@ -115,11 +119,12 @@ This section describes how to install the plugin and get it working.
115119
* WeChat SDK: response to erquests coming from WeChat handled using Customer Service interface instead of passive response
116120
* WeChat SDK: removed "event" ; added "voice", "mpnews", "video" and "menu" message types
117121
* Settings: decrease coupling with companion plugins
118-
* Add plugin version headers for companion plugins to check compatibility
119-
* Add `wp_weixin_ajax_safe()` function to allow WP Weixin to run during specific ajax requests
120-
* Add filter hook `wp_weixin_ecommerce_description` to allow extensions to customise the WeChat Pay Settings description.
121-
* Add check to output logs only when WordPress debug is activated
122-
* Add a notice on WooCommerce account edit page: WeChat registered users have an auto-generated password and it should be changed using the "Lost your password?" link in a web browser.
122+
* Added plugin version headers for companion plugins to check compatibility
123+
* Added `wp_weixin_ajax_safe()` function to allow WP Weixin to run during specific ajax requests
124+
* Added filter hook `wp_weixin_ecommerce_description` to allow extensions to customise the WeChat Pay Settings description.
125+
* Added check to output logs only when WordPress debug is activated
126+
* Added a notice on WooCommerce account edit page: WeChat registered users have an auto-generated password and it should be changed using the "Lost your password?" link in a web browser.
127+
* Added a template to tell users how to change their password when their account has been created automatically after they visited the site with WeChat browser.
123128
* Added a metabox to override the title and description of WeChat links when sharing a post on WeChat.
124129
* Use user meta to save follower status and react to events using the responder instead of relying on transient and cookies.
125130
* Display the featured image of the post in previously visited if exists instead of default image when following with force follow

wp-weixin.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
Plugin Name: WP Weixin
44
Plugin URI: https://github.com/froger-me/wp-weixin
55
Description: WordPress WeChat integration
6-
Version: 1.3.5
6+
Version: 1.3.6
77
Author: Alexandre Froger
88
Author URI: https://froger.me
99
Text Domain: wp-weixin
1010
Domain Path: /languages
11-
WC tested up to: 3.8.1
11+
WC tested up to: 3.9.0
1212
*/
1313

1414
if ( ! defined( 'ABSPATH' ) ) {

0 commit comments

Comments
 (0)