|
|
@@ -164,64 +164,64 @@ class UserService extends BaseModel
|
|
|
* @author 段誉
|
|
|
* @date 2022/9/28 10:17
|
|
|
*/
|
|
|
- public function setImagesAttr($value,$data)
|
|
|
- {
|
|
|
- $imagesArr = explode(',',$data['images']);
|
|
|
- $imagesStr = '';
|
|
|
- foreach($imagesArr as $k=>$v){
|
|
|
- if($k==0){
|
|
|
- $imagesStr = clear_file_domain($v);
|
|
|
- }else{
|
|
|
- $imagesStr .=','. clear_file_domain($v);
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- return $imagesStr;
|
|
|
- }
|
|
|
- public function setDriverImageAttr($value,$data)
|
|
|
- {
|
|
|
- return $imagesStr = clear_file_domain($data['driver_image']);
|
|
|
- $imagesArr = explode(',',$data['driver_image']);
|
|
|
- $imagesStr = '';
|
|
|
- foreach($imagesArr as $k=>$v){
|
|
|
- if($k==0){
|
|
|
- $imagesStr = clear_file_domain($v);
|
|
|
- }else{
|
|
|
- $imagesStr .=','. clear_file_domain($v);
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- return $imagesStr;
|
|
|
- }
|
|
|
- public function setDrivingImageAttr($value,$data)
|
|
|
- {
|
|
|
- $imagesArr = explode(',',$data['driving_image']);
|
|
|
- $imagesStr = '';
|
|
|
- foreach($imagesArr as $k=>$v){
|
|
|
- if($k==0){
|
|
|
- $imagesStr = clear_file_domain($v);
|
|
|
- }else{
|
|
|
- $imagesStr .=','. clear_file_domain($v);
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- return $imagesStr;
|
|
|
- }
|
|
|
- public function setAgriculturalImageAttr($value,$data)
|
|
|
- {
|
|
|
- $imagesArr = explode(',',$data['agricultural_image']);
|
|
|
- $imagesStr = '';
|
|
|
- foreach($imagesArr as $k=>$v){
|
|
|
- if($k==0){
|
|
|
- $imagesStr = clear_file_domain($v);
|
|
|
- }else{
|
|
|
- $imagesStr .=','. clear_file_domain($v);
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- return $imagesStr;
|
|
|
- }
|
|
|
+// public function setImagesAttr($value,$data)
|
|
|
+// {
|
|
|
+// $imagesArr = explode(',',$data['images']);
|
|
|
+// $imagesStr = '';
|
|
|
+// foreach($imagesArr as $k=>$v){
|
|
|
+// if($k==0){
|
|
|
+// $imagesStr = clear_file_domain($v);
|
|
|
+// }else{
|
|
|
+// $imagesStr .=','. clear_file_domain($v);
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+// return $imagesStr;
|
|
|
+// }
|
|
|
+// public function setDriverImageAttr($value,$data)
|
|
|
+// {
|
|
|
+// return $imagesStr = clear_file_domain($data['driver_image']);
|
|
|
+// $imagesArr = explode(',',$data['driver_image']);
|
|
|
+// $imagesStr = '';
|
|
|
+// foreach($imagesArr as $k=>$v){
|
|
|
+// if($k==0){
|
|
|
+// $imagesStr = clear_file_domain($v);
|
|
|
+// }else{
|
|
|
+// $imagesStr .=','. clear_file_domain($v);
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+// return $imagesStr;
|
|
|
+// }
|
|
|
+// public function setDrivingImageAttr($value,$data)
|
|
|
+// {
|
|
|
+// $imagesArr = explode(',',$data['driving_image']);
|
|
|
+// $imagesStr = '';
|
|
|
+// foreach($imagesArr as $k=>$v){
|
|
|
+// if($k==0){
|
|
|
+// $imagesStr = clear_file_domain($v);
|
|
|
+// }else{
|
|
|
+// $imagesStr .=','. clear_file_domain($v);
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+//
|
|
|
+// return $imagesStr;
|
|
|
+// }
|
|
|
+// public function setAgriculturalImageAttr($value,$data)
|
|
|
+// {
|
|
|
+// $imagesArr = explode(',',$data['agricultural_image']);
|
|
|
+// $imagesStr = '';
|
|
|
+// foreach($imagesArr as $k=>$v){
|
|
|
+// if($k==0){
|
|
|
+// $imagesStr = clear_file_domain($v);
|
|
|
+// }else{
|
|
|
+// $imagesStr .=','. clear_file_domain($v);
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+// return $imagesStr;
|
|
|
+// }
|
|
|
/**
|
|
|
* @notes 加图片域名
|
|
|
* @param $value
|