提交新代码

This commit is contained in:
root
2025-05-24 13:53:34 +00:00
parent 68aa6e33f5
commit 7739e31db3
2 changed files with 22 additions and 20 deletions
File diff suppressed because one or more lines are too long
+6 -4
View File
@@ -26,7 +26,11 @@ class Premium
public function __construct($data, $botid) public function __construct($data, $botid)
{ {
$botinfo = Db::name("admin_bot")->where("botid", $botid)->find(); $botinfo = Db::name("admin_bot")->cache(60)->where("botid", $botid)->find();
//var_dump($botinfo,$botid);
if(empty($botinfo)){
return "bot error";
}
$this->data = $data; $this->data = $data;
$this->bots = $botinfo; $this->bots = $botinfo;
$this->Customer=new Customer(); $this->Customer=new Customer();
@@ -65,9 +69,7 @@ class Premium
//var_dump($func, $from, $chat, $date); //var_dump($func, $from, $chat, $date);
if (isset($chat['type'])) { if (isset($chat['type'])) {
if ($chat['type'] == "private") { if ($chat['type'] == "private") {
$this->userinfo = $this->Member->where('userid', $from['id'])->where('botid', $this->bots['botid'])->find();
$this->userinfo = $this->Member->where('userid', '=', $from['id'])->where('botid', $this->bots['botid'])->find();
$handlename = $this->handlename($from); $handlename = $this->handlename($from);