dieu chinh update tung doi tuong neu so luong <10
This commit is contained in:
@@ -116,4 +116,16 @@ class ListManagement extends \yii\db\ActiveRecord {
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function getAllFeatures() {
|
||||
$features = json_decode($this->image, true);
|
||||
$f = [];
|
||||
foreach ($features as $k => $v) {
|
||||
$f[] = $v['features'];
|
||||
if (isset($v['features512']))
|
||||
if (count($v['features512']))
|
||||
$f[] = $v['features512'];
|
||||
}
|
||||
return $f;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user