AyrReleaseLogic.php
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
namespace App\Http\Logic\Bside\AyrShare;
use App\Http\Logic\Bside\BaseLogic;
use App\Models\AyrShare\AyrRelease;
class AyrReleaseLogic extends BaseLogic
{
public function __construct()
{
parent::__construct();
$this->model = new AyrRelease();
$this->param = $this->requestAll;
}
/**
* @name :(发布社交写入数据库)release_add
* @author :lyh
* @method :post
* @time :2023/5/9 9:38
*/
public function release_add(){
$rs = $this->model->add($this->param);
if($rs === false){
$this->fail('error');
}
return $this->success();
}
/**
* @name :(上传第三方平台)0ayr_release_add
* @author :lyh
* @method :post
* @time :2023/5/9 10:02
*/
public function ayr_release_add(){
$param = [
'post'=>$this->param['content'],
'platforms'=>$this->param['platforms']
];
}
/**
* @name :(发布到youtube)post_facebook
* @author :lyh
* @method :post
* @time :2023/5/9 10:05
*/
public function post_facebook(){
return $this->success();
}
public function post_
}