* adjust for get undone product.

This commit is contained in:
王怡栋
2021-10-26 16:25:25 +08:00
parent 089a1204f1
commit 4b31274644
+4 -4
View File
@@ -56,7 +56,7 @@ class userEntry extends Entry
if(!$fields) return $this->send(200, $info);
/* Set other fields. */
$fields = explode(',', $fields);
$fields = explode(',', strtolower($fields));
$this->loadModel('my');
foreach($fields as $field)
@@ -74,13 +74,13 @@ class userEntry extends Entry
}
break;
case 'undoneproduct':
$info->product = array('total' => 0, 'products' => array());
$info->undoneProduct = array('total' => 0, 'products' => array());
$products = $this->my->getProducts('undone');
if($products)
{
$info->product['total'] = $products->allCount;
$info->product['products'] = $products->products;
$info->undoneProduct['total'] = $products->allCount;
$info->undoneProduct['products'] = $products->products;
}
break;
case 'project':