|
@@ -100,7 +100,7 @@ class Base
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
- public function sendCode($skin = false, $mobile = false, $state = false)
|
|
|
+ public function sendCode($skin = false, $mobile = false, $state = false, $key = 'code')
|
|
|
{
|
|
|
$skin = Dever::input('skin', $skin);
|
|
|
$mobile = Dever::input('mobile', $mobile);
|
|
@@ -134,7 +134,7 @@ class Base
|
|
|
$code = $this->createCode();
|
|
|
|
|
|
|
|
|
- $result = $this->send($skin, $mobile, array('code' => $code));
|
|
|
+ $result = $this->send($skin, $mobile, array($key => $code));
|
|
|
|
|
|
|
|
|
$insert = array();
|