Commit 1196989d authored by wangxuelai's avatar wangxuelai

'积分bug修复'

parent fdcd3d75
......@@ -288,7 +288,7 @@ function integralLog (data) {
url: apis.integralLog,
data: {
type: data.type || 1,
student_id: visitor && visitor.studentId,
student_id: data.student_id, // visitor && visitor.studentId,
source_type: data.source_type || 1,
source_id: data.source_id || 0
},
......
......@@ -348,7 +348,8 @@ Page({
integralLog({
type: 1,
source_type: 1,
source_id: info.id
source_id: info.id,
student_id: app.globalData.currentSchoolStudentId
}).then((res) => {
// const {integral} = res;
if (res.integral && Number(res.integral) > 0) {
......@@ -2681,7 +2682,8 @@ Page({
integralLog({
type: 1,
source_type: 1,
source_id: e.detail.themeId
source_id: e.detail.themeId,
student_id: app.globalData.currentSchoolStudentId
}).then((res) => {
// const {integral} = res;
if (res.integral && Number(res.integral) > 0) {
......
......@@ -181,7 +181,8 @@ Page({
integralLog({
type: 2,
source_type: 1,
source_id: this.data.cid
source_id: this.data.cid,
student_id: app.globalData.currentSchoolStudentId
}).then((res) => {
})
},
......@@ -286,7 +287,8 @@ Page({
integralLog({
type: 1,
source_type: 1,
source_id: this.data.cid
source_id: this.data.cid,
student_id: app.globalData.currentSchoolStudentId
}).then((res) => {
// const {integral} = res;
if (res.integral && Number(res.integral) > 0) {
......@@ -1104,7 +1106,8 @@ Page({
integralLog({
type: 1,
source_type: 1,
source_id: e.detail.themeId
source_id: e.detail.themeId,
student_id: app.globalData.currentSchoolStudentId
}).then((res) => {
// const {integral} = res;
if (res.integral && Number(res.integral) > 0) {
......
......@@ -228,7 +228,8 @@ Page({
integralLog({
type: 2,
source_type: 1,
source_id: this.data.cid
source_id: this.data.cid,
student_id: app.globalData.currentSchoolStudentId
}).then((res) => {})
},
/**
......@@ -331,7 +332,8 @@ Page({
integralLog({
type: 1,
source_type: 1,
source_id: this.data.cid
source_id: this.data.cid,
student_id: app.globalData.currentSchoolStudentId
}).then((res) => {
// const {integral} = res;
if (res.integral && Number(res.integral) > 0) {
......@@ -1087,7 +1089,8 @@ Page({
integralLog({
type: 1,
source_type: 1,
source_id: e.detail.themeId
source_id: e.detail.themeId,
student_id: app.globalData.currentSchoolStudentId
}).then((res) => {
// const {integral} = res;
if (res.integral && Number(res.integral) > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment