rabin 1 年之前
父节点
当前提交
0d9969bc11
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      src/bao/connect/api/Notify.php
  2. 3 3
      src/dai/seller/lib/Order.php

+ 1 - 1
src/bao/connect/api/Notify.php

@@ -71,7 +71,7 @@ class Notify extends Api
             $update = array();
             $update['official_msg'] = $data['official_msg'] ?? '';
             $update['official_order_num'] = $data['official_order_num'] ?? '';
-            $update['channel_callback'] = Dever::json_encode($input);
+            $update['channel_callback'] = json_encode($input, JSON_UNESCAPED_UNICODE);
             $update['channel_callback_date'] = time();
             Dever::load('order', 'seller')->notify($order, $msg, $update);
         }

+ 3 - 3
src/dai/seller/lib/Order.php

@@ -40,7 +40,7 @@ class Order
         $data['price'] = $cash;
         $data['seller_id'] = $info['id'];
         $data['seller_order_num'] = $order;
-        $data['seller_request'] = Dever::json_encode(Dever::input());
+        $data['seller_request'] = json_encode(Dever::input(), JSON_UNESCAPED_UNICODE);
 
         $data['id'] = Dever::db('order', 'seller')->insert($data);
         if (!$data['id']) {
@@ -126,10 +126,10 @@ class Order
         $update['channel_id'] = $channel['id'];
         $update['channel_order_date'] = time();
         if (isset($result['request'])) {
-            $update['channel_request'] = Dever::json_encode($result['request']);
+            $update['channel_request'] = json_encode($result['request'], JSON_UNESCAPED_UNICODE);
         }
         if (isset($result['response'])) {
-            $update['channel_response'] = Dever::json_encode($result['response']);
+            $update['channel_response'] = json_encode($result['response'], JSON_UNESCAPED_UNICODE);
         }
         if (isset($channel['goods']['id'])) {
             $update['channel_goods_id'] = $channel['goods']['id'];