AyrShareLogic.php
931 字节
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
<?php
namespace App\Http\Logic\Bside\AyrShare;
use App\Helper\AyrShare as AyrShareHelper;
use App\Http\Logic\Bside\BaseLogic;
use App\Models\AyrShare\AyrShare;
class AyrShareLogic extends BaseLogic
{
public function __construct()
{
parent::__construct();
$this->model = new AyrShare();
$this->param = $this->requestAll;
}
/**
* @name :(创建账号并绑定)ayr_add
* @author :lyh
* @method :post
* @time :2023/5/6 9:19
*/
public function ayr_share_add(){
$param = [
'title'=>md5(uniqid().time())
];
$ayrShareHelper = new AyrShareHelper();
$res = $ayrShareHelper->post_create_profiles($param);
if($res['status'] == 'fail'){
$this->response('绑定失败');
}
$data = [
'title'=>$res['title'],
''
];
$this->model->add($data);
}
}