作者 lyh

gx

... ... @@ -88,10 +88,7 @@ class AyrReleaseController extends BaseController
}
//发送请求发布社交文章
$res = $ayrShare->post_send_msg($param,$share_info['profile_key']);
//保存数据库
if($res){
$ayrReleaseLogic->release_add($res);
}
$ayrReleaseLogic->release_add($res);
//保存返回的内容
$this->response('success',Code::SUCCESS,json_decode($res));
}
... ...
... ... @@ -636,6 +636,8 @@ class ProjectLogic extends BaseLogic
public function channelSource($param){
switch ($param['type']){
case Project::TYPE_ZERO:
return array_push(Zone::pluck('title', 'id')->toArray(),[5,'所有']);
case Project::TYPE_ONE:
return Zone::pluck('title', 'id')->toArray();
case Project::TYPE_TWO:
... ...
... ... @@ -47,10 +47,7 @@ class AyrReleaseLogic extends BaseLogic
$this->param['platforms'] = json_encode($this->param['platforms']);
$info = $this->model->read(['platforms'=>$this->param['platforms'],'operator_id'=>$this->param['operator_id'],'project_id'=>$this->param['project_id'],'title'=>$this->param['title']]);
if($info === false){
$rs = $this->model->add($this->param);
if($rs === false){
$this->fail('error');
}
$this->model->add($this->param);
}
return $this->success();
}
... ...