This commit is contained in:
王金磊
2023-04-23 09:29:55 +08:00
parent fed98c4397
commit 7e8f5d6612
10 changed files with 437 additions and 24 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace app\api\job;
use think\queue\Job;
class gpt {
//put your code here
public function fire(Job $job, $data) {
$this->push($data);
$job->delete();
}
/**
* 发送邮件的逻辑
* @param type $data
*/
public function push($data){
GptChar($data['message'],$data['ckey'],$data['mid']);
}
}