DBInsertTest: function () {
//数据库插入数据测试
var Sign = AV.Object.extend('Sign');
var date = new Date();//获取当前时间
var stu_id = this.data.stu_id;
//var sign = new Sign();
for (var i = 0; i < stu_id.length; i++) {
var sign = new Sign();
sign.set('course_id', 'kc001');//课程id
sign.set('stu_id', stu_id[i]._serverData.stu_id);
console.log('i='+i);
console.log('stu_id:'+stu_id[i]._serverData.stu_id)
sign.set('cr_id', 'cr001');
sign.set('signup_time', date);
sign.set('sign_duration', 180);
sign.save();
}
},
代码如上,是循环往数据库中插入20条数据,但是插入10跳后提示
请问该如何解决wx.request上限的问题?