Skip to content

Commit

Permalink
fix(后台): 修复老的公用配置查询 key 出错
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Nov 29, 2018
1 parent 4ef525a commit 16d0ae9
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions app/Models/CommonConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,4 @@ public function scopeByName(Builder $query, string $name): Builder
{
return $query->where('name', $name);
}

/**
* Set the keys for a save update query.
*
* @param \Illuminate\Database\Eloquent\Builder $query
* @return \Illuminate\Database\Eloquent\Builder
*/
protected function setKeysForSaveQuery(Builder $query)
{
foreach ($this->getKeyName() as $key) {
$query->where($key, '=', $this->original[$key] ?? $this->getAttribute($key));
}

return $query;
}
}

0 comments on commit 16d0ae9

Please sign in to comment.