|
|
@@ -74,8 +74,8 @@ class ProductController extends BaseController
|
|
|
if ($delStatus != 2) {
|
|
|
$where['delStatus'] = $delStatus;
|
|
|
}
|
|
|
- //输出标准会员价,即花店价,默认显示的是花店价
|
|
|
- $level = 1;
|
|
|
+ //散客价
|
|
|
+ $level = 0;
|
|
|
$data = ProductClass::getAllByCondition($where, ['actualSold' => SORT_DESC, 'inTurn' => SORT_DESC], "*");
|
|
|
$data = ProductClass::groupProductInfo($data, $level);
|
|
|
util::success(['list' => $data]);
|
|
|
@@ -120,7 +120,6 @@ class ProductController extends BaseController
|
|
|
{
|
|
|
$classId = Yii::$app->request->get('classId', 0);
|
|
|
$pyName = Yii::$app->request->get('py', '');
|
|
|
-
|
|
|
if ($pyName) {
|
|
|
$pyName = strtolower($pyName);
|
|
|
$where['py'] = $pyName;
|