wangxiaodong 3 years ago
parent
commit
871a46d5b0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      app/admin/controller/Adv.php
  2. 1 1
      app/model/web/Adv.php

+ 1 - 1
app/admin/controller/Adv.php

@@ -215,7 +215,7 @@ class Adv extends BaseAdmin
 			$adv_position_list = $adv_position->getAdvPositionList();
 			$this->assign('adv_position_list', $adv_position_list['data']);
 			$adv_info = $adv->getAdvInfo($adv_id);
-			echo "<pre>";print_r($adv_info);exit;
+			//echo "<pre>";print_r($adv_info);exit;
 			$this->assign('adv_info', $adv_info['data']);
             $goods_list = Db::table('v4goods_sku')->field('sku_id,sku_name')->where(['goods_state'=>1,'verify_state'=>1,'is_delete'=>0])->select();
             $this->assign('goods_list',$goods_list);

+ 1 - 1
app/model/web/Adv.php

@@ -67,7 +67,7 @@ class Adv extends BaseModel
 		if (!empty($cache)) {
 			return $this->success($cache);
 		}
-		$res = model('adv')->getInfo([ [ 'adv_id', '=', $ap_id ] ], 'adv_id, adv_title, ap_id, adv_url, adv_image, slide_sort, price, background,sku_id');
+		$res = model('adv')->getInfo([ [ 'adv_id', '=', $ap_id ] ], 'adv_id, adv_title, ap_id, adv_url, adv_image, slide_sort, price, background,sku_id,info_id');
 		Cache::tag("adv")->set("adv_getAdvInfo_" . $ap_id, $res);
 		return $this->success($res);
 	}