Commit 635587a2 by lujunyi

返回图片

parent f08c6eef
......@@ -23,7 +23,7 @@ public function user()
public function getSignedPicAttribute($value)
{
if (Str::contains($value, '//')) {
if (Str::contains($value, '//') || ! $value) {
return $value;
}
......
......@@ -23,7 +23,7 @@ public function pharmacy()
public function getSignedPicAttribute($value)
{
if (Str::contains($value, '//')) {
if (Str::contains($value, '//') || ! $value) {
return $value;
}
......
......@@ -58,7 +58,7 @@ public function patient()
public function getDrugBizLicenseAttribute($value)
{
if (Str::contains($value, '//')) {
if (Str::contains($value, '//') || ! $value) {
return $value;
}
......@@ -67,7 +67,7 @@ public function getDrugBizLicenseAttribute($value)
public function getBusinessLicenseAttribute($value)
{
if (Str::contains($value, '//')) {
if (Str::contains($value, '//') || ! $value) {
return $value;
}
......@@ -76,7 +76,7 @@ public function getBusinessLicenseAttribute($value)
public function getFoodBizLicenseAttribute($value)
{
if (Str::contains($value, '//')) {
if (Str::contains($value, '//') || ! $value) {
return $value;
}
......@@ -85,7 +85,7 @@ public function getFoodBizLicenseAttribute($value)
public function getMedDeviceBizLicenseAttribute($value)
{
if (Str::contains($value, '//')) {
if (Str::contains($value, '//') || ! $value) {
return $value;
}
......@@ -94,7 +94,7 @@ public function getMedDeviceBizLicenseAttribute($value)
public function getDrugInfoServiceCertAttribute($value)
{
if (Str::contains($value, '//')) {
if (Str::contains($value, '//') || ! $value) {
return $value;
}
......@@ -103,7 +103,7 @@ public function getDrugInfoServiceCertAttribute($value)
public function getPrePackagedFoodAttribute($value)
{
if (Str::contains($value, '//')) {
if (Str::contains($value, '//') || ! $value) {
return $value;
}
......
......@@ -42,7 +42,7 @@ class PrescriptionModel extends Model
public function getDoctorSignedPicAttribute($value)
{
if (Str::contains($value, '//')) {
if (Str::contains($value, '//') || ! $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