浏览代码

未加密入参

zealerChina 1 年之前
父节点
当前提交
a4c8bab64c
共有 2 个文件被更改,包括 8 次插入2 次删除
  1. 4 0
      application/admin/view/produceorder/detail.html
  2. 4 2
      application/common/service/ZopBaseService.php

+ 4 - 0
application/admin/view/produceorder/detail.html

@@ -142,6 +142,10 @@ td:first-child {
         <td colspan="2"><b>推送错误信息</b></td>
     </tr>
     <tr>
+        <td>{:__('入参未加密参数')}:</td>
+        <td>{$row['original_import_params']}</td>
+    </tr>
+    <tr>
         <td>{:__('入参')}:</td>
         <td>{$row['import_params']}</td>
     </tr>

+ 4 - 2
application/common/service/ZopBaseService.php

@@ -214,12 +214,12 @@ class ZopBaseService
             'uuid' => $uuid
         ];
 
-        $reqObj = [
+        $reqObjBase = [
             'head' => $head,
             'body' => $params
         ];
 
-        $reqObj = self::encrypt($reqObj, $aes);
+        $reqObj = self::encrypt($reqObjBase, $aes);
 
         $reqParam = [
             'appCode' => $appCode,
@@ -235,12 +235,14 @@ class ZopBaseService
         $resArr = json_decode($result, true);
         if ($urlPath == '/link/king/identity/cust/v2') {
             if ($resArr['aCode'] != '0000' || $resArr['bCode']!= '0000') {
+                $order->original_import_params = json_encode($reqObjBase, JSON_UNESCAPED_UNICODE);
                 $order->import_params = json_encode($reqParam);
                 $order->export_params = $result;
                 $order->save();
             }
         } else {
             if ($resArr['rspCode'] != '0000') {
+                $order->original_import_params = json_encode($reqObjBase, JSON_UNESCAPED_UNICODE);
                 $order->import_params = json_encode($reqParam);
                 $order->export_params = $result;
                 $order->save();