|
@@ -40,7 +40,7 @@
|
|
|
BasicFunction.get_data("smartGoods/list?isDel=0&ownerId=" + userid, function (response) {
|
|
|
// console.log("------ Data Rcvd in me --------");
|
|
|
// console.log(response);
|
|
|
- if (response.ret === "10000") {
|
|
|
+ if (response.ret === "10000" && response.model !== undefined && response.model.list !== undefined) {
|
|
|
let list = response.model.list;
|
|
|
list.forEach(gift => {
|
|
|
if (gift.sort !== 4) b_a = false; // 限制上传1个礼物
|