Commit 635587a2 by lujunyi

返回图片

parent f08c6eef
...@@ -23,7 +23,7 @@ public function user() ...@@ -23,7 +23,7 @@ public function user()
public function getSignedPicAttribute($value) public function getSignedPicAttribute($value)
{ {
if (Str::contains($value, '//')) { if (Str::contains($value, '//') || ! $value) {
return $value; return $value;
} }
......
...@@ -23,7 +23,7 @@ public function pharmacy() ...@@ -23,7 +23,7 @@ public function pharmacy()
public function getSignedPicAttribute($value) public function getSignedPicAttribute($value)
{ {
if (Str::contains($value, '//')) { if (Str::contains($value, '//') || ! $value) {
return $value; return $value;
} }
......
...@@ -58,7 +58,7 @@ public function patient() ...@@ -58,7 +58,7 @@ public function patient()
public function getDrugBizLicenseAttribute($value) public function getDrugBizLicenseAttribute($value)
{ {
if (Str::contains($value, '//')) { if (Str::contains($value, '//') || ! $value) {
return $value; return $value;
} }
...@@ -67,7 +67,7 @@ public function getDrugBizLicenseAttribute($value) ...@@ -67,7 +67,7 @@ public function getDrugBizLicenseAttribute($value)
public function getBusinessLicenseAttribute($value) public function getBusinessLicenseAttribute($value)
{ {
if (Str::contains($value, '//')) { if (Str::contains($value, '//') || ! $value) {
return $value; return $value;
} }
...@@ -76,7 +76,7 @@ public function getBusinessLicenseAttribute($value) ...@@ -76,7 +76,7 @@ public function getBusinessLicenseAttribute($value)
public function getFoodBizLicenseAttribute($value) public function getFoodBizLicenseAttribute($value)
{ {
if (Str::contains($value, '//')) { if (Str::contains($value, '//') || ! $value) {
return $value; return $value;
} }
...@@ -85,7 +85,7 @@ public function getFoodBizLicenseAttribute($value) ...@@ -85,7 +85,7 @@ public function getFoodBizLicenseAttribute($value)
public function getMedDeviceBizLicenseAttribute($value) public function getMedDeviceBizLicenseAttribute($value)
{ {
if (Str::contains($value, '//')) { if (Str::contains($value, '//') || ! $value) {
return $value; return $value;
} }
...@@ -94,7 +94,7 @@ public function getMedDeviceBizLicenseAttribute($value) ...@@ -94,7 +94,7 @@ public function getMedDeviceBizLicenseAttribute($value)
public function getDrugInfoServiceCertAttribute($value) public function getDrugInfoServiceCertAttribute($value)
{ {
if (Str::contains($value, '//')) { if (Str::contains($value, '//') || ! $value) {
return $value; return $value;
} }
...@@ -103,7 +103,7 @@ public function getDrugInfoServiceCertAttribute($value) ...@@ -103,7 +103,7 @@ public function getDrugInfoServiceCertAttribute($value)
public function getPrePackagedFoodAttribute($value) public function getPrePackagedFoodAttribute($value)
{ {
if (Str::contains($value, '//')) { if (Str::contains($value, '//') || ! $value) {
return $value; return $value;
} }
......
...@@ -42,7 +42,7 @@ class PrescriptionModel extends Model ...@@ -42,7 +42,7 @@ class PrescriptionModel extends Model
public function getDoctorSignedPicAttribute($value) public function getDoctorSignedPicAttribute($value)
{ {
if (Str::contains($value, '//')) { if (Str::contains($value, '//') || ! $value) {
return $value; return $value;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment