think-orm

This commit is contained in:
2025-08-15 10:51:00 +08:00
parent b461dab6fb
commit dc60b38526
27 changed files with 169 additions and 49 deletions

View File

@@ -21,7 +21,7 @@ class AliossController extends Frontend
if(empty($file)) {
$this->error('参数不能为空');
}
$commoninfo = Db::connect(config('database.search_library'));
$commoninfo = Db::connect(config('think-orm.search_library'));
$endpoint = $commoninfo->name('common_info')->where(['type' => 68])->find()['value'];
$accessKeyId = $commoninfo->name('common_info')->where(['type' => 69])->find()['value'];
$secretAccessKey = $commoninfo->name('common_info')->where(['type' => 70])->find()['value'];
@@ -53,7 +53,7 @@ class AliossController extends Frontend
'Content-Encoding' => 'binary',
];
$res = $ossClient->putObject($bucket, $object, $content, $options);
Log::write('上传文件结果' . json_encode($res));
Log::info('上传文件结果' . json_encode($res));
if(!empty($res['info'])) {
return $this->ApiDataReturn(['data' => $befor_url . '/' . $object, 'msg' => 'success', 'code' => 0]);
}else {

View File

@@ -288,7 +288,7 @@ class DiscSpinningController extends Frontend
}
$page = 1;
$limit = 20;
$db = Db::connect(config('database.search_library'));
$db = Db::connect(config('think-orm.search_library'));
$list = $db->name('disc_spinning')
->where(['disc_type' => $get['source']]);
$count = $list->count();

View File

@@ -28,7 +28,7 @@ class UniCallBackController extends Frontend
'extra' => $this->request->param('extra', '') // 可选参数,默认空字符串
];
// 记录日志
Log::write("接收到uni-ad广告完播回调回调信息: " . json_encode($params));
Log::info("接收到uni-ad广告完播回调回调信息: " . json_encode($params));
// 调用服务处理回调
$result = UniAdCallbackRecord::adCallBack($params);
// 返回成功响应