Skip to content

Commit

Permalink
调整trait
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-tech-commits committed Nov 12, 2020
1 parent a4a3373 commit 6aed61c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -55,7 +55,7 @@ public function store(CompanyCertificationRequest $request)
public function update(CompanyCertificationRequest $request, CompanyCertification $companycertification)
{
$user = Api::user();
if ($user->is_verified) {
if ($user->is_company_verified) {
return $this->failed('认证已通过,不能修改');
}
if ($user->companyCertification->id != $companycertification->id) {
Expand Down
Expand Up @@ -12,7 +12,7 @@ public function companyCertification() :HasOne
return $this->hasOne(CompanyCertification::class);
}

public function getIsVerifiedAttribute()
public function getIsCompanyVerifiedAttribute()
{
return $this->companyCertification && ($this->companyCertification->status == 1);
}
Expand Down

0 comments on commit 6aed61c

Please sign in to comment.