| | |
| | | $paramL['image'] = $Qrcode->getImageE($param['template'], $template_id); |
| | | $paramL['style'] = json_encode($param['template'], JSON_UNESCAPED_UNICODE); |
| | | if ($model->add($paramL)) { |
| | | return $this->renderSuccess('编辑成功', url('business.template/index')); |
| | | return $this->renderSuccess('编辑成功'); |
| | | } |
| | | return $this->renderError('编辑失败'); |
| | | } |
| | |
| | | $paramI['image'] = $Qrcode->getImageE($param['template'], $template_id); |
| | | $modelBusiness = (new BusinessTemplate())->where(['template_id' => $template_id])->find(); |
| | | $modelBusiness->where(['template_id' => $template_id])->update($paramI); |
| | | return $this->renderSuccess('添加成功', url('business.template/index')); |
| | | return $this->renderSuccess('添加成功'); |
| | | } |
| | | return $this->renderError('添加失败'); |
| | | } |