作者 lyh

gx

@@ -205,7 +205,6 @@ class ProductController extends BaseController @@ -205,7 +205,6 @@ class ProductController extends BaseController
205 ]); 205 ]);
206 $info = $product->read(['id'=>$this->param['id']]); 206 $info = $product->read(['id'=>$this->param['id']]);
207 $info = $this->handleParam($info); 207 $info = $this->handleParam($info);
208 -  
209 return $this->response('success',Code::SUCCESS,$info); 208 return $this->response('success',Code::SUCCESS,$info);
210 } 209 }
211 210
@@ -56,6 +56,8 @@ class Product extends Base @@ -56,6 +56,8 @@ class Product extends Base
56 $v['url'] = getImageUrl($v['url']); 56 $v['url'] = getImageUrl($v['url']);
57 $value[$k] = $v; 57 $value[$k] = $v;
58 } 58 }
  59 + }else{
  60 + $value = json_decode([]);
59 } 61 }
60 return $value; 62 return $value;
61 } 63 }
@@ -74,6 +76,8 @@ class Product extends Base @@ -74,6 +76,8 @@ class Product extends Base
74 $v = getImageUrl($v); 76 $v = getImageUrl($v);
75 $value[$k] = $v; 77 $value[$k] = $v;
76 } 78 }
  79 + }else{
  80 + $value = json_decode([]);
77 } 81 }
78 return $value; 82 return $value;
79 } 83 }