li.shaoyi 1 năm trước cách đây
mục cha
commit
4929916690

+ 2 - 2
oem/tss/config/appconfig.json

@@ -1,8 +1,8 @@
 {
   "appId": "com.muchinfo.tss",
   "appName": "TCE",
-  "version": "1.0.18",
-  "versionCode": "100018",
+  "version": "1.0.20",
+  "versionCode": "100020",
   "apiUrl": "http://192.168.31.204:8080/cfg?key=test_204",
   "tradeChannel": "ws",
   "showLoginAlert": true,

+ 10 - 4
src/packages/mobile/views/account/authresult/Index.vue

@@ -6,7 +6,8 @@
         <div class="g-form__container" v-if="userInfo">
             <CellGroup inset>
                 <Cell :title="$t('user.authentication.customername')" :value="userInfo.customername" />
-                <Cell :title="$t('user.authentication.cardtype')" :value="getCertificateTypeCodeName(userInfo.cardtypeid)" />
+                <Cell :title="$t('user.authentication.cardtype')"
+                    :value="getCertificateTypeCodeName(userInfo.cardtypeid)" />
                 <Cell :title="$t('user.authentication.cardnum')" :value="userInfo.cardnum" />
                 <Cell :title="$t('user.authentication.cardfrontphoto')">
                     <Image fit="contain" :src="getFileUrl(userInfo.cardfrontphotourl)" width="100" height="100" />
@@ -17,7 +18,8 @@
                 <Cell :title="halfBodyPhotoTitle" v-if="showHalfBodyPhoto === '1'">
                     <Image fit="contain" :src="getFileUrl(userInfo.halfbodyphotourl)" width="100" height="100" />
                 </Cell>
-                <Cell :title="$t('user.authentication.authstatus')" :value="getAuthStatusName(userStore.userAccount.hasauth)" />
+                <Cell :title="$t('user.authentication.authstatus')"
+                    :value="getAuthStatusName(userStore.userAccount.hasauth)" />
             </CellGroup>
         </div>
         <Empty :description="$t('common.nodatas')" v-else />
@@ -32,8 +34,9 @@ import { queryWrDraftUserInfo } from '@/services/api/account'
 import { useRequest } from '@/hooks/request'
 import { getCertificateTypeCodeName } from '@/constants/account'
 import { getFileUrl } from '@/filters'
+import { decryptAES } from '@/services/websocket/package/crypto'
 import { getWskhOpenAccountConfigs } from '@/services/api/account'
-import { i18n ,useUserStore} from "@/stores"
+import { i18n, useUserStore } from "@/stores"
 
 const { t } = i18n.global
 const userStore = useUserStore()
@@ -46,7 +49,10 @@ const halfBodyPhotoTitle = shallowRef(t('user.authentication.halfbodyphoto'))
 useRequest(queryWrDraftUserInfo, {
     onSuccess: (res) => {
         /// 签约状态
-        userInfo.value = res.data[0]
+        userInfo.value = res.data[0] ?? {
+            ...userStore.userInfo,
+            cardnum: decryptAES(userStore.userInfo.cardnum)
+        }
     }
 })
 

+ 3 - 1
src/packages/tss/views/product/group/components/waterfall-list/index.vue

@@ -6,7 +6,8 @@
                 <div class="goods"
                     @click="$router.push({ name: 'product-list', query: { groupId: item.goodsgroupid } })">
                     <div class="goods-image">
-                        <img :src="item.thumurls" />
+                        <img :src="item.thumurls" v-if="item.thumurls" />
+                        <Image width="100%" height="160px" v-else />
                     </div>
                     <div class="goods-info">
                         <div class="goods-info__title">{{ item.goodsgroupname }}</div>
@@ -19,6 +20,7 @@
 
 <script lang="ts" setup>
 import { computed } from 'vue'
+import { Image } from 'vant'
 import { getFileUrl } from '@/filters'
 import { useUserStore } from '@/stores'
 import Waterfall from '@mobile/components/base/waterfall/index.vue'

+ 3 - 2
src/services/websocket/build/index.ts

@@ -7,7 +7,7 @@ import { i18n } from '@/stores';
 /**
  * MTP2.0 长链通信类
  */
-export class MTP2WebSocket<T extends Package40 | Package50>{
+export class MTP2WebSocket<T extends Package40 | Package50> {
     /** 报文协议 */
     private readonly Package: Package<T>;
     /** 当前实例标识 */
@@ -283,7 +283,8 @@ export class MTP2WebSocket<T extends Package40 | Package50>{
                     switch (this.Package) {
                         // 4.0报文
                         case Package40: {
-                            cachePackageLength = new DataView(new Uint8Array(new Uint8Array(cache).subarray(1, 5)).buffer).getUint32(0, false);
+                            const uint8View = new Uint8Array(cache.slice(1, 5));
+                            cachePackageLength = new DataView(uint8View.buffer).getUint32(0, false);
                             if (cachePackageLength > 65535) {
                                 console.error('接收到长度超过65535的行情包');
                                 return;