|
@@ -14,6 +14,7 @@ class Sms
|
|
const resetpass_code = 2;
|
|
const resetpass_code = 2;
|
|
const getbonus_code = 3;
|
|
const getbonus_code = 3;
|
|
const getbind_code = 4;
|
|
const getbind_code = 4;
|
|
|
|
+ const bindbonus_register_code = 5;
|
|
|
|
|
|
/*
|
|
/*
|
|
* 发送手机短信
|
|
* 发送手机短信
|
|
@@ -68,7 +69,7 @@ class Sms
|
|
$time = $content['time'];
|
|
$time = $content['time'];
|
|
$type = intval($content['type']);
|
|
$type = intval($content['type']);
|
|
|
|
|
|
- static $templates = array(self::register_code => '59006', self::resetpass_code => '63477', self::getbonus_code => '63479', self::getbind_code => '59006');
|
|
|
|
|
|
+ static $templates = array(self::register_code => '59006', self::resetpass_code => '63477', self::getbonus_code => '63479', self::getbind_code => '59006', self::bindbonus_register_code => '92893');
|
|
if (!array_key_exists($type, $templates)) return -1;
|
|
if (!array_key_exists($type, $templates)) return -1;
|
|
|
|
|
|
return $this->send_msg($mobile, $code, $templates[$type], $time);
|
|
return $this->send_msg($mobile, $code, $templates[$type], $time);
|