作者 lyh

gx

... ... @@ -201,14 +201,14 @@ class LoginController extends BaseController
}
/**
* @remark :登录成功获取用户信息
* @remark :登录成功响应
* @name :getWechatLoginInfo
* @author :lyh
* @method :post
* @time :2023/9/1 10:12
*/
public function getWechatLoginInfo(){
$info = Cache::get($this->param['Ticket']);
$info = Cache::get($this->param['ticket']);
$this->response('success',Code::SUCCESS,$info);
}
... ...
... ... @@ -174,8 +174,8 @@ class BTemplateLogic extends BaseLogic
*/
public function templateSave(){
//查询当前模版是否已保存
// DB::beginTransaction();
// try {
DB::beginTransaction();
try {
$info = $this->webTemplateInfo($this->param['template_id'],$this->param['source'],$this->param['source_id']);
//字符串截取
$this->param = $this->stringProcessing($this->param);
... ... @@ -186,11 +186,11 @@ class BTemplateLogic extends BaseLogic
$this->model->edit($this->param,['id'=>$info['id']]);
}
$this->setTemplateLog($this->param);
// DB::commit();
// }catch (\Exception $e){
// DB::rollBack();
// $this->fail('error');
// }
DB::commit();
}catch (\Exception $e){
DB::rollBack();
$this->fail('error');
}
//通知更新
$this->homeOrProduct($this->param['source'],$this->param['source_id']);
return $this->success();
... ...