From b02540aef65fa1bc2af72cff2d7f444108a5865e Mon Sep 17 00:00:00 2001
From: zhaoxiaoqiang
Date: Mon, 17 May 2021 09:20:54 +0800
Subject: [PATCH] 添加参数

---
 utils/ajaxFn.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/utils/ajaxFn.js b/utils/ajaxFn.js
index c5aea99..8f3086b 100644
--- a/utils/ajaxFn.js
+++ b/utils/ajaxFn.js
@@ -1,6 +1,7 @@
 const md5 = require('./md5.js')
 const app = getApp()
-const baseUrl = 'https://t.finlean.com'
+// const baseUrl = 'https://t.finlean.com'//测试服地址
+const baseUrl = 'https://zib.jycash.cn';//正式服地址
 /**
  * url请求地址
  * data 数据对象
@@ -9,6 +10,7 @@
  * fail失败回调
  * **/ 
 function $api(url,method,success,fail,needLogin,data){
+  console.log(url);
   my.showLoading({
     title: '正在加载...'
   });
@@ -27,6 +29,8 @@
     // params.sessionId = sessionId
     params.jttechSign = md5.hex_md5(str+sessionId)
   }
+  // params.platId=2442007150000402;//叮咚
+  params.platId=1452105140000101;//智享
   my.request({
     url: `${baseUrl}${url}`,
     headers: {'content-type':'application/json'},
@@ -40,8 +44,8 @@
     fail: fail,
     complete:function(res){
       // console.log(`耗时${Date.now() - timeStart}`, baseUrl + url);
-      
       if(res.status == 200){
+        console.log(res.data.body);
         setTimeout(function () {
           my.hideLoading();
         }, 1000);

--
Gitblit v1.8.0