|
@@ -22,6 +22,16 @@ class Base
|
|
$this->save = new Save(false, 'cookie');
|
|
$this->save = new Save(false, 'cookie');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function getToken($request = array())
|
|
|
|
+ {
|
|
|
|
+ return http_build_query(Dever::token($request));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public function getUrl($method, $request = array())
|
|
|
|
+ {
|
|
|
|
+ return Dever::proxy($method, $this->getToken($request));
|
|
|
|
+ }
|
|
|
|
+
|
|
protected function info()
|
|
protected function info()
|
|
{
|
|
{
|
|
return $this->save->get(self::NAME);
|
|
return $this->save->get(self::NAME);
|
|
@@ -57,7 +67,7 @@ class Base
|
|
$info = Dever::load('passport/code-total', $param);
|
|
$info = Dever::load('passport/code-total', $param);
|
|
|
|
|
|
if ($info >= 1) {
|
|
if ($info >= 1) {
|
|
- $check = Dever::load('passport/code-check', $param);
|
|
|
|
|
|
+ $check = Dever::load('passport/code-one', $param);
|
|
|
|
|
|
if ($check) {
|
|
if ($check) {
|
|
if (time() - $check['cdate'] < Dever::config('base', 'project')->mobileCode['time']) {
|
|
if (time() - $check['cdate'] < Dever::config('base', 'project')->mobileCode['time']) {
|