$order_refund_id, "name"=>$name , "type"=>$type, "json"=>$json_str, "images"=>$images, "pf_operator"=>$pf_operator, "pf_behavior"=>$pf_behavior ]; RefundHis::create($his); } // /** * 获取凭证图片 */ public function getImagesAttr($value) { if($value){ $arr = array_map(function($v){ $oss_domain = config('chef.sso_domain_text'); return (stripos($v,"http") === false) ? $oss_domain.'/'.$v : $v; },explode(',',$value)); return $arr; } return []; } // // config('chef.sso_domain_text') // /** // * 获取凭证图片 // */ // public function getImagesAttr($value) // { // if($value){ // $arr = array_map(function($v){ // $setting = Setting:: getItem('storage',10001); // $oss_domain = $setting['engine']['aliyun']['domain']??''; // return (stripos($v,"http") === false) ? $oss_domain.'/'.$v : $v; // },explode(',',$value)); // return $arr; // } // return []; // } // /** // * 存凭证图片 // */ public function setImagesAttr($value) { if($value&&is_array($value)){ return implode(',',$value); } return $value; } }