作者 lyh

gx

... ... @@ -35,7 +35,7 @@ class GoogleSearchController extends BaseController
]);
//查询详情数据
$searchDetailModel = new GoogleSearchDetail();
$this->map['project_id']= $this->user['project_id'];
$this->map['project_id']= 711;
$data = $searchDetailModel->lists($this->map,$this->page,$this->row);
if(!empty($data)){
if($this->param['type'] == 'country'){
... ...
... ... @@ -47,7 +47,7 @@ class ChatController extends BaseController
}
/**
* @remark :发送消息
* @remark :发送消息(流返回)
* @name :sendMessage
* @author :lyh
* @method :post
... ...
... ... @@ -40,17 +40,17 @@ class GoogleKeywordInsightLogic extends BaseLogic
$this->service = new RapIdApIService();
$data = $this->service->requestUrl($this->param['keyword']);
if(!empty($data)){
// DB::beginTransaction();
DB::beginTransaction();
//保存数据库
// try {
try {
$detailModel = new GoogleKeywordInsightDetail();
$this->model->saveInsight($this->user['project_id'],$this->param['keyword'],$data);
$detailModel->saveInsightDetail($this->user['project_id'],$this->param['keyword'],$data);
// DB::commit();
// }catch (\Exception $e){
// DB::rollBack();
// $this->fail('保存失败,请联系管理员');
// }
DB::commit();
}catch (\Exception $e){
DB::rollBack();
$this->fail('保存失败,请联系管理员');
}
}
}
return $this->success();
... ...