提交新代码
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user