1
This commit is contained in:
25
application/api/job/gpt.php
Normal file
25
application/api/job/gpt.php
Normal 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']);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user