mirror of
https://gitee.com/blackfox/geekai.git
synced 2025-12-07 01:08:24 +08:00
fix: 去除渠道
This commit is contained in:
parent
63be3f5f56
commit
5c8a237e27
@ -624,7 +624,7 @@ type CallBackVideoResult struct {
|
|||||||
func (s *Service) QueryKeLingTask(taskId string, channel string, action string) (VideoCallbackData, error) {
|
func (s *Service) QueryKeLingTask(taskId string, channel string, action string) (VideoCallbackData, error) {
|
||||||
var apiKey model.ApiKey
|
var apiKey model.ApiKey
|
||||||
err := s.db.Session(&gorm.Session{}).Where("type", "keling").
|
err := s.db.Session(&gorm.Session{}).Where("type", "keling").
|
||||||
Where("api_url", channel).
|
//Where("api_url", channel).
|
||||||
Where("enabled", true).
|
Where("enabled", true).
|
||||||
Order("last_used_at DESC").First(&apiKey).Error
|
Order("last_used_at DESC").First(&apiKey).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@ -96,7 +96,21 @@
|
|||||||
</el-icon>
|
</el-icon>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div class="camera-control">
|
|
||||||
|
<!-- 添加运镜类型选择 -->
|
||||||
|
<el-form-item label="运镜类型">
|
||||||
|
<el-select v-model="params.camera_control.type" placeholder="请选择运镜类型">
|
||||||
|
<el-option label="请选择" value="" />
|
||||||
|
<el-option label="简单运镜" value="simple" />
|
||||||
|
<el-option label="下移拉远" value="down_back" />
|
||||||
|
<el-option label="推进上移" value="forward_up" />
|
||||||
|
<el-option label="右旋推进" value="right_turn_forward" />
|
||||||
|
<el-option label="左旋推进" value="left_turn_forward" />
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
|
||||||
|
<!-- 仅在simple模式下显示详细配置 -->
|
||||||
|
<div class="camera-control" v-if="params.camera_control.type === 'simple'">
|
||||||
<el-form-item label="水平移动">
|
<el-form-item label="水平移动">
|
||||||
<el-slider
|
<el-slider
|
||||||
v-model="params.camera_control.config.horizontal"
|
v-model="params.camera_control.config.horizontal"
|
||||||
@ -392,7 +406,7 @@ const params = reactive({
|
|||||||
aspect_ratio: "16:9",
|
aspect_ratio: "16:9",
|
||||||
duration: "5",
|
duration: "5",
|
||||||
camera_control: {
|
camera_control: {
|
||||||
type: "simple",
|
type: "",
|
||||||
config: {
|
config: {
|
||||||
horizontal: 0,
|
horizontal: 0,
|
||||||
vertical: 0,
|
vertical: 0,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user