Authored by lijing

优化三元运算符

@@ -364,9 +364,9 @@ const getOrders = (params) => { @@ -364,9 +364,9 @@ const getOrders = (params) => {
364 // status: value.status === 0 ? true : false, 364 // status: value.status === 0 ? true : false,
365 uid: value.uid, 365 uid: value.uid,
366 order_code: value.order_code, 366 order_code: value.order_code,
367 - goluck: value.status === 0 ? true : false,  
368 - lucky: value.status === 1 ? true : false,  
369 - unlucky: value.status === 2 ? true : false, 367 + goluck: value.status === 0,
  368 + lucky: value.status === 1,
  369 + unlucky: value.status === 2,
370 }); 370 });
371 371
372 // 计算商品总数 372 // 计算商品总数