AyrReleaseLogic.php 1.2 KB
<?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_
}