images = new Images(); } /** * 服务站专员评价小程序码 */ public function getServicePersonnel($id) { $param = "page=details&id={$id}"; $path = "zh_cjdianc/pages/Liar/loginindex"; $codeImg = $this->images->createQrCode($param,$path); $imgPath = 'public/upload/qrcode/'.date('Y') . '/' . date('m-d') . '/' . date('His').md5(time()).'.png';/* 生成唯一文件名 */ $res = $this->images->uploadOss($codeImg,$imgPath); if($res){ return ['status' => true ,'path' => $imgPath]; }else{ return ['status' => false ,'path' => '']; } } }