作者 lyh

gx

@@ -25,7 +25,6 @@ class Product extends Base @@ -25,7 +25,6 @@ class Product extends Base
25 const STATUS_ON = 1; 25 const STATUS_ON = 1;
26 const STATUS_RECYCLE = 2; 26 const STATUS_RECYCLE = 2;
27 27
28 -// protected $appends = ['route'];  
29 28
30 public static function statusMap(){ 29 public static function statusMap(){
31 return [ 30 return [
@@ -148,10 +147,6 @@ class Product extends Base @@ -148,10 +147,6 @@ class Product extends Base
148 public function getRelatedProductIdAttribute($value){ 147 public function getRelatedProductIdAttribute($value){
149 return Arr::setToArr($value); 148 return Arr::setToArr($value);
150 } 149 }
151 -//  
152 -// public function getRouteAttribute(){  
153 -// return RouteMap::getRoute(RouteMap::SOURCE_PRODUCT, $this->id, $this->project_id);  
154 -// }  
155 150
156 // public static function getNumByProjectId($project_id){ 151 // public static function getNumByProjectId($project_id){
157 // return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); 152 // return self::where('project_id', $project_id)->where('status', self::STATUS_ON)->count();