소스 검색

修复报错

shish 6 년 전
부모
커밋
1456c11dea
3개의 변경된 파일4개의 추가작업 그리고 15개의 파일을 삭제
  1. 0 10
      app/business/controllers/AdminController.php
  2. 3 4
      app/business/controllers/OrderController.php
  3. 1 1
      biz/goods/services/GoodsCategoryService.php

+ 0 - 10
app/business/controllers/AdminController.php

@@ -20,15 +20,5 @@ class AdminController extends BaseController
 		util::success($auth);
 		util::success($auth);
 	}
 	}
 	
 	
-	//退出登陆 shish 2019.11.26
-	public function actionLogout()
-	{
-		$adminId = $this->adminId;
-		$r = jwt::delToken($adminId);
-		if ($r) {
-			util::ok();
-		}
-		util::fail();
-	}
 	
 	
 }
 }

+ 3 - 4
app/business/controllers/OrderController.php

@@ -21,9 +21,7 @@ use common\components\configDict;
 
 
 class OrderController extends BaseController
 class OrderController extends BaseController
 {
 {
-	
-	
-	
+
 	public function actionList()
 	public function actionList()
 	{
 	{
 		$get = Yii::$app->request->get();
 		$get = Yii::$app->request->get();
@@ -50,7 +48,8 @@ class OrderController extends BaseController
 		return [
 		return [
 			'orderId' => '201911232278449',
 			'orderId' => '201911232278449',
 			'price' => '390',
 			'price' => '390',
-			'progress' => [
+			'progress' => 4,
+			'list' => [
 				[
 				[
 					'name' => '下单',
 					'name' => '下单',
 					'reach' => 1,
 					'reach' => 1,

+ 1 - 1
biz/goods/services/GoodsCategoryService.php

@@ -22,7 +22,7 @@ class GoodsCategoryService extends BaseService
 			return $data;
 			return $data;
 		}
 		}
 		$ids = array_column($list, 'gId');
 		$ids = array_column($list, 'gId');
-		$list = GoodsService::getAllByCondition(['id' => ['in', $ids]], 'inTurn DESC', 'goodsName,shopImg,price,sold');
+		$list = GoodsService::getAllByCondition(['id' => ['in', $ids]], 'inTurn DESC', 'goodsName,shopImg,price,sold,id');
 		$data['list'] = GoodsClass::groupGoodsBaseInfo($list);
 		$data['list'] = GoodsClass::groupGoodsBaseInfo($list);
 		return $data;
 		return $data;
 	}
 	}