fix
This commit is contained in:
+14
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace Bx\Discount\Ajax;
|
||||
|
||||
use Bx\Discount\Agents\SpiderAgentManager;
|
||||
use Wt\Core\Ajax\AAjaxHandler;
|
||||
|
||||
class BxDiscount extends AAjaxHandler
|
||||
@@ -11,9 +12,21 @@ class BxDiscount extends AAjaxHandler
|
||||
$this->getResponse()->addData(['method' => 'ajaxStart']);
|
||||
}
|
||||
|
||||
public function spiderAgentDelete()
|
||||
{
|
||||
$agentManager = new SpiderAgentManager();
|
||||
$agentManager->delete();
|
||||
}
|
||||
|
||||
public function spiderAgentAdd()
|
||||
{
|
||||
$agentManager = new SpiderAgentManager();
|
||||
$agentManager->add();
|
||||
}
|
||||
|
||||
public function test()
|
||||
{
|
||||
$this->getResponse()->addData(['method' => 'test', 'version' => app()::getInstance('bx.discount')->module()->getVersion()]);
|
||||
$this->getResponse()->addData(['method' => 'test', 'version' => discountApp()->module()->getVersion()]);
|
||||
return $this->getResponse();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user