Silent 6 éve
szülő
commit
54eea4f31a
1 módosított fájl, 5 hozzáadás és 2 törlés
  1. 5 2
      wechat/pages/index/index.js

+ 5 - 2
wechat/pages/index/index.js

xqd xqd
@@ -94,7 +94,7 @@ Page({
   },
   updateShareInfo() {
     var pt_student = wx.getStorageSync('pt_student')
-    if (!pt_student) {
+    if (pt_student) {
       wx.request({
         url: api.getShareInfoUrl,
         method: 'GET',
@@ -270,10 +270,13 @@ Page({
       showPopup: true
     })
     var pt_student = wx.getStorageSync('pt_student')
-    if(!pt_student) {
+    if(pt_student) {
       wx.request({
         url: api.getShareTextUrl,
         method: 'GET',
+        data: {
+          'student_id': app.globalData.ptStudent.id
+        },
         success: res => {
           if (res.data.status == 'success') {
             wx.setStorageSync('check_card_start_time', '')