作者 lyh

gx

... ... @@ -61,6 +61,7 @@ class AyrReleaseController extends BaseController
'post'=>$this->param['content'],
'platforms'=>$this->param['platforms'],
'mediaUrls'=>$this->param['mediaUrls'],//参数处理
'idempotencyKey'=>$this->param['idempotencyKey'],//时间(如是过去时间,立即发布)
];
//发送请求注册社交用户
$res = $ayrShare->post_send_msg($param,$share_info['profile_key']);
... ...
... ... @@ -8,7 +8,8 @@ use App\Models\User\User;
class Blog extends Base
{
protected $table = 'gl_blog';
//连接数据库
protected $connection = 'custom_mysql';
public function user(){
return $this->hasMany(User::class,'operator_id','id');
}
... ...
... ... @@ -7,4 +7,7 @@ use App\Models\Base;
class BlogCategory extends Base
{
protected $table = 'gl_blog_category';
//连接数据库
protected $connection = 'custom_mysql';
}
... ...
... ... @@ -7,4 +7,6 @@ use App\Models\Base;
class BlogLabel extends Base
{
protected $table = 'gl_blog_label';
//连接数据库
protected $connection = 'custom_mysql';
}
... ...
... ... @@ -7,4 +7,6 @@ use App\Models\Base;
class File extends Base
{
protected $table = 'gl_file';
//连接数据库
protected $connection = 'custom_mysql';
}
... ...
... ... @@ -8,20 +8,6 @@ class Image extends Base
{
protected $table = 'gl_image';
public $timestamps = true;
/**
* @param $hash
* @name :(获取图片详情)image_read
* @author :lyh
* @method :post
* @time :2023/5/4 11:50
*/
public function image_read($hash){
$info = $this->read(['hash'=>$hash]);
if(empty($info)){
return false;
}
return $info;
}
//连接数据库
protected $connection = 'custom_mysql';
}
... ...
... ... @@ -9,4 +9,6 @@ class Mail extends Base
protected $table = 'gl_mail';
//自动维护create_at创建时间 updated_at修改时间
public $timestamps = true;
//连接数据库
protected $connection = 'custom_mysql';
}
... ...
... ... @@ -9,4 +9,6 @@ class MailUser extends Base
protected $table = 'gl_mail_user';
//自动维护create_at创建时间 updated_at修改时间
public $timestamps = true;
//连接数据库
protected $connection = 'custom_mysql';
}
... ...
... ... @@ -7,6 +7,6 @@ use App\Models\Base;
class NewsCategory extends Base
{
protected $table = 'gl_news_category';
//数据库配置
protected $connection = '';
//连接数据库
protected $connection = 'custom_mysql';
}
... ...
... ... @@ -7,4 +7,6 @@ use App\Models\Base;
class NewsLabel extends Base
{
protected $table = 'gl_news_label';
//连接数据库
protected $connection = 'custom_mysql';
}
... ...
... ... @@ -253,5 +253,5 @@ Route::group([], function () {
// Route::any('/', [\App\Http\Controllers\Bside\ComController::class, 'get_country'])->name('get_country');
Route::get('/file/download', [\App\Http\Controllers\Bside\FileController::class, 'download'])->name('file_download');
Route::any('/image/{hash}/{type?}/{w?}/{h?}', [\App\Http\Controllers\file\ImageController::class,'index'])->name('image_show');
Route::any('/file_hash/{hash}/{type?}/', [\App\Http\Controllers\file\FileController::class,'index'])->name('file_show');
Route::any('/file_hash/{hash}/', [\App\Http\Controllers\file\FileController::class,'index'])->name('file_show');
});
... ...