|
@@ -9,8 +9,11 @@ class Base
|
|
|
|
|
|
protected $data;
|
|
|
|
|
|
- public function __construct()
|
|
|
+ public function __construct($state = 1)
|
|
|
{
|
|
|
+ if ($state == 2) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
$id = Dever::input('appid');
|
|
|
if (!$id || $id < 0) {
|
|
@@ -144,7 +147,7 @@ class Base
|
|
|
*
|
|
|
* @return mixed
|
|
|
*/
|
|
|
- protected function type($type = 1)
|
|
|
+ public function type($type = 1)
|
|
|
{
|
|
|
$config = array
|
|
|
(
|