weigang 5 years ago
parent
commit
605ace63c9
  1. 2
      app/Model/UserRelationBind.php

2
app/Model/UserRelationBind.php

@ -28,7 +28,7 @@ class UserRelationBind extends Model
public function setJsonDataAttribute($value) public function setJsonDataAttribute($value)
{ {
$this->attributes['json_data'] = json_encode(json_decode($value, true));
$this->attributes['json_data'] = $value ? json_encode(json_decode($value, true)) : '';
} }
} }
Loading…
Cancel
Save