Skip to content

Commit

Permalink
2.22.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Dooy committed Nov 26, 2024
1 parent 7b9db4d commit 639b3d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/api/mjapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export const flechTask= ( chat:Chat.Chat)=>{
}
export const subTask= async (data:any, chat:Chat.Chat )=>{
let d:any;
mlog('subTask', data )
try{
//return ;
if( data.action &&data.action=='change' ){ //执行变化
Expand Down Expand Up @@ -276,6 +277,9 @@ export const subTask= async (data:any, chat:Chat.Chat )=>{
d= await mjFetch('/mj/submit/describe' , data.data );
}else if( data.action &&data.action=='changeV2') { //执行动作!
d= await mjFetch('/mj/submit/action' , data.data );
if (d.description&& d.description.indexOf('confirm')>-1){
d= await mjFetch('/mj/submit/modal' , { taskId:d.result, prompt: d.properties.finalPrompt??''} );
}
}else {
let toData = {
"base64Array":data.fileBase64??[],
Expand All @@ -291,7 +295,8 @@ export const subTask= async (data:any, chat:Chat.Chat )=>{
mlog('submit',d );
//return ;
}
if(d.code==21){
//mlog("subTask rz >> ", d )
if(d.code==21 ){
d= await mjFetch('/mj/submit/modal' , { taskId:d.result} );
}

Expand Down

0 comments on commit 639b3d5

Please sign in to comment.