Plugin Directory

Changeset 2654939


Ignore:
Timestamp:
01/10/2022 02:16:14 AM (4 years ago)
Author:
jtexpress
Message:

fix chinese item name

Location:
jt-express/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jt-express/trunk/includes/class-jnt-api.php

    r2607825 r2654939  
    2626                        'qty' => $value['qty'],
    2727                        'weight' => $value['weight'],
    28                         'item_name' => substr($value['item'], 0, 200),
     28                        'item_name' => mb_substr($value['item'], 0, 200, 'UTF-8'),
    2929                        'payType'   => $value['payType'],
    3030                        'goodsType' => $value['goodsType'],
     
    168168        $response = wp_remote_post($url, array('sslverify' => false, 'headers' => $header, 'body' => $json_data));
    169169        $res = wp_remote_retrieve_body($response);
    170         file_put_contents('abc.txt', $res);
    171170       
    172171        $res = json_decode($res, true);
  • jt-express/trunk/jnt.php

    r2607825 r2654939  
    44Description: WooCommerce integration for J&T.
    55Author: woocs
    6 Version: 1.0.23
     6Version: 1.0.24
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
     
    1313}
    1414
    15 define( 'JNT_VERSION', '1.0.23' );
     15define( 'JNT_VERSION', '1.0.24' );
    1616define( 'JNT_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    1717
Note: See TracChangeset for help on using the changeset viewer.