<?php // Copyright 2015 The Haohaoxiuche Team Authors. All right reserved. // Use of this source that is governed by a Apache-style // license that can be found in the LICENSE file. // // 技術版API編號101 請求發送短信驗證碼 // // @authors hjboss <*****@*****.**> 2015-12-18# // @version 1.0.0 // @package hhxc if (!defined('HHXC')) { die('Permission denied'); } $chars = RandomChars(); switch ($params['opt']) { case '0': $condition = array('schema' => 'hh_techuser', 'filter' => array('username_d' => Assign($params['phone']))); if (empty($params['phoneaes']) == FALSE) { $condition['filter']['username'] = Assign($params['phoneaes']); } $record = StorageFindOne($condition); if (is_array($record) and empty($record) == FALSE) { $result['msg'] = '该号码已经被注册!'; die(JsonEncode($result)); } $params['message'] = SMS_ACTION_REGISTER . $chars; break; case '1': $condition = array('schema' => 'hh_techuser', 'filter' => array('username_d' => Assign($params['phone']))); if (empty($params['phoneaes']) == FALSE) {
<?php // Copyright 2015 The Haohaoxiuche Team Authors. All right reserved. // Use of this source that is governed by a Apache-style // license that can be found in the LICENSE file. // // 技術版API編號001 用戶首次安裝軟件提交設備ID // // @authors hjboss <*****@*****.**> 2015-12-14# // @version 1.0.0 // @package hhxc $GLOBALS['DATA'] = array(array('device' => 'android', 'deviceid' => 'a8e814b47e6' . RandomChars(5)), array('device' => 'ios', 'deviceid' => 'a8e814b47e6a5' . RandomChars(3)));