Przeglądaj źródła

fix(api): 回退积分明细接口并调整配置环境地址

- 将积分明细接口恢复为老接口的 PUT 请求,注释掉新接口的 GET 请求
- 修改配置文件,启用 trial 环境地址为 http://47.109.84.152:8081
- 注释掉原先启用的正式环境地址
- 修复积分组件多余字符导致的代码格式问题
zhangtao 23 godzin temu
rodzic
commit
2ed4dd0ed5

+ 2 - 2
src/api/apiDefinitions.ts

@@ -44,8 +44,8 @@ export default {
   'xsb.categories':['GET', '/smqjh-pms/app-api/v1/categories'],
   'xsb.getCategoryProductList':['POST', '/smqjh-pms/app-api/v1/spu/getCategoryProductList'],
   'xsb.getProductDetail':['GET', '/smqjh-pms/app-api/v1/spu/getProductDetails'],
-  // 'xsb.findUserPointsPage':['PUT', '/smqjh-system/app-api/v1/points/findUserPointsPage'], //积分明细老接口
-  'xsb.findUserPointsPage':['GET', '/smqjh-system/app-api/v1/points/getPointsUserRecord'], //积分明细新接口
+  'xsb.findUserPointsPage':['PUT', '/smqjh-system/app-api/v1/points/findUserPointsPage'], //积分明细老接口
+  // 'xsb.findUserPointsPage':['GET', '/smqjh-system/app-api/v1/points/getPointsUserRecord'], //积分明细新接口
   'xsb.getUserPointsExpiryDate':['GET', '/smqjh-system/app-api/v1/points/getUserPointsExpiryDate'],
   'xsb.findUserPoints':['GET', '/smqjh-system/app-api/v1/points/findUserPoints'],
   'xsb.getSearchProductList':['POST', '/smqjh-pms/app-api/v1/spu/getSearchProductList'],

+ 2 - 2
src/config/index.ts

@@ -20,10 +20,10 @@ const mapEnvVersion = {
    */
   // trial: "http://192.168.1.166:8080/jeecg-boot",
   // trial: 'http://192.168.0.157:8080',
-  // trial: 'http://47.109.84.152:8081',
+  trial: 'http://47.109.84.152:8081',
   // trial: 'http://192.168.0.11:8081', // 王
   // trial: 'http://192.168.1.166:8080,
-  trial: 'https://smqjh.api.zswlgz.com',
+  // trial: 'https://smqjh.api.zswlgz.com',
   /**
    * 正式版
    */

+ 1 - 1
src/subPack-common/integral/index.vue

@@ -93,7 +93,7 @@ async function openPointsPopup() {
           <view class="text-[#FF4A39]">
             {{ item?.pointsTypeName }}{{ item?.variablePoints || 0 }}
           </view>
-        </view>+
+        </view>
         <view class="mt-20rpx flex items-center justify-between text-28rpx text-[#AAAAAA]">
           <view>{{ item?.updateTime }}</view>
           <view>当前可用积分 {{ item?.currentlyAvailablePoints || 0 }}</view>