Commit 3ba9b57c authored by wwccw0591's avatar wwccw0591

client

parent 072ddaad
<?php
use Business\User\LoginV2Model;
class AuthinfoController extends \Our\Controller_Abstract
{
public $req;
private $userAuth;
private $userAuthService;
public function init()
{
$this->req = $this->getRequest()->getPost();
$this->userAuthService = \Business\Auth\UserAuthServiceModel::getInstance();
}
public function indexAction()
{
session_id('b63spmehh43ao0d6kot5ulj7n7');
// ini_set('session.gc_maxlifetime', 5000);
$sesObject=\Yaf\Session::getInstance();
$sesObject->start();
exit;
// echo $sesObject->get('test');
// exit;
$name = $this->req->getQuery('name');
throw new Exception('hello ', 404);
}
public function otherLoginAction(){
$this->req=$this->getRequest()->getQuery();
$postData['key']=$this->req['key'];
$postData['authSign']=$this->req['authSign'];
if($postData['authSign']==md5($postData['key'].\Our\SecretKeys::authKey)){
session_id($postData['key']);
$this->sess=\Yaf\Session::getInstance();
$this->sess->start();
$memberId=$this->sess->get('member_id');
if(!empty($memberId)){
$this->sess->set('other_login',\Our\ApiConst::one);
}else{
}
}else{
}
\Yaf\Dispatcher::getInstance()->disableView();
}
public function testAction()
{
$login = LoginV2Model::getInstance();
echo $login->login();
}
public function saveMember()
{
if ($this->memberData && $this->key) {
foreach ($this->memberData as $key => $value) {
if (empty($this->memberData[$key])) {
$this->memberData[$key] = 0;
}
}
$this->redis->tableHMSet($this->key, $this->memberData, \Our\ApiConst::tenDaySecond);
}
}
public function takeAccessAction()
{
$data=$this->req[\Our\NameConst::data];
//$this->success($data);
if (!$data[\Our\NameConst::nonce] || !$data[\Our\NameConst::timestamp] || !$data[\Our\NameConst::deviceType] || !$this->req[\Our\NameConst::sign]) {
Error\ErrorModel::throwException(\Error\CodeConfigModel::authError);
}
$authKey = $this->userAuthService->getAuthKey($data[\Our\NameConst::nonce], $data[\Our\NameConst::timestamp], $data[\Our\NameConst::deviceType], $this->req[\Our\NameConst::sign],$this->req[\Our\NameConst::encryptType]);
$this->success(array(\Our\NameConst::sessionKey => $authKey));
}
}
<?php
use Error\ErrorModel;
use Error\CodeConfigModel;
use Our\NameConst;
use Our\Common;
use Business\User\MemberServiceModel;
use Business\Store\ShopkeeperServiceModel;
/**
* 我是店主
*
* @date 2018-5-10
* @author csw <993768343@qq.com>
*/
class ShopkeeperController extends \Our\Controller_AbstractApi {
public $memberService;
public $shopkeeperService;
public function init(){
parent::init();
$this->memberService = MemberServiceModel::getInstance();
$this->shopkeeperService = ShopkeeperServiceModel::getInstance();
}
/**
* 店主首页
*/
public function indexAction() {
$result = $this->shopkeeperService->getShopkeeper($this->memberId);
$this->success($result);
}
/**
* 获得店铺统计数据ccw:18305954587
*/
public function statisticsAction(){
$result = $this->shopkeeperService->getStatistics($this->memberId);
$this->success($result);
if($result){
$this->success(array(),\Our\DescribeConst::successMessage,\Our\DescribeConst::successMessage);
}
}
/**
* 分类店铺销量排行(及列表第一页)
*/
public function myStoreClassRankAction() {
$gcId = isset($this->req['data']['gcId'])?$this->req['data']['gcId']:\Our\ApiConst::zero;
if(empty($gcId)){
ErrorModel::throwException(CodeConfigModel::emptyGcId);
}
$pageIndex = $this->getPageIndex();
$pageSize=$this->getPageSize(\Our\ApiConst::salePageSize);
$result = $this->shopkeeperService->getMyStoreClassRank($this->memberId,$gcId,$pageIndex,$pageSize);
$this->success($result);
if($result){
$this->success(array(),\Our\DescribeConst::successMessage,\Our\DescribeConst::successMessage);
}
}
/**
* 分类店铺销量排行分页
*/
public function storeClassRankAction() {
$gcId = $this->req['data']['gcId'];
$pageIndex = (int)$this->req['data']['pageIndex'];
$pageSize=isset($this->req['data']['pageSize'])?$this->req['data']['pageSize']:10;
if(empty($gcId)){
ErrorModel::throwException(CodeConfigModel::illegalAccess);
}
$result = $this->shopkeeperService->getStoreClassRankList($gcId,$pageIndex,$pageSize);
$this->success($result);
if($result){
$this->success(array(),\Our\DescribeConst::successMessage,\Our\DescribeConst::successMessage);
}
}
/**
* 店铺关注会员统计(及列表第一页)
*/
public function storeMemberStatsAction(){
$pageIndex = $this->getPageIndex();
$pageSize=$this->getPageSize(\Our\ApiConst::pageSizeTen);
$keyword = (isset($this->req['data']['keyword'])&&!empty($this->req['data']['keyword']))?$this->req['data']['keyword']:'';
$sort = isset($this->req['data']['sort'])?$this->req['data']['sort']:\Our\ApiConst::one;
$result = $this->shopkeeperService->getStoreMemberStats($this->memberId,$pageIndex,$pageSize,$sort,$keyword);
$this->success($result);
if($result){
$this->success(array(),\Our\DescribeConst::successMessage,\Our\DescribeConst::successMessage);
}
}
/**
* 店铺关注会员统计列表
*/
public function membersStatsAction(){
$pageIndex = (int)$this->getPageIndex();
$pageSize=$this->getPageSize(\Our\ApiConst::pageSizeTen);
$keyword = trim($this->req['data']['keyword']);
$sort = isset($this->req['data']['sort'])?$this->req['data']['sort']:\Our\ApiConst::one;
$result = $this->shopkeeperService->getMemberStats($this->memberId,$pageIndex,$pageSize,$sort,$keyword);
$this->success($result);
if($result){
$this->success(array(),\Our\DescribeConst::successMessage,\Our\DescribeConst::successMessage);
}
}
/**
* 接单
*/
public function orderReceiveAction(){
$orderId = $this->req['data']['orderId'];
$result = $this->shopkeeperService->orderReceive($this->memberId, $orderId);
if ($result) {
$this->success(array(), \Our\DescribeConst::successMessage, \Our\DescribeConst::successMessage);
}else{
ErrorModel::throwException(CodeConfigModel::receiveError);
}
}
/**
* 店铺订单列表(第一页数据)
*/
public function storeOrdersAction(){
$pageIndex = (int)$this->req['data']['pageIndex'];
$pageIndex = $pageIndex?$pageIndex:0;
$pageSize=isset($this->req['data']['pageSize'])?$this->req['data']['pageSize']:10;
$orderState = isset($this->req['data']['orderState'])?$this->req['data']['orderState']:'';
$keyword = isset($this->req['data']['keyword'])?$this->req['data']['keyword']:'';
$result = $this->shopkeeperService->getStoreOrders($this->memberId,$pageIndex,$pageSize,$orderState,$keyword);
$this->success($result);
if($result){
$this->success(array(),\Our\DescribeConst::successMessage,\Our\DescribeConst::successMessage);
}
}
/**
* 店铺订单列表(分页)
*/
public function ordersAction(){
$pageIndex = $this->getPageIndex();
$pageSize=$this->getPageSize();
$orderState = isset($this->req['data']['orderState'])?$this->req['data']['orderState']:'';
$keyword = isset($this->req['data']['keyword'])?$this->req['data']['keyword']:'';
$result = $this->shopkeeperService->getOrders($this->memberId,$pageIndex,$pageSize,$orderState,$keyword);
$this->success($result);
if($result){
$this->success(array(),\Our\DescribeConst::successMessage,\Our\DescribeConst::successMessage);
}
}
/**
* 订单详情
*/
public function orderDetailAction(){
$orderId = $this->req['data']['orderId'];
if(empty($orderId)){
ErrorModel::throwException(CodeConfigModel::emptyOrderIdForPay);
}
$result = $this->shopkeeperService->getOrderDetail($this->memberId,$orderId);
$this->success($result);
if($result){
$this->success(array(),\Our\DescribeConst::successMessage,\Our\DescribeConst::successMessage);
}
}
}
<?php
use Business\User\LoginV2Model;
use Error\ErrorModel;
use Error\CodeConfigModel;
use Our\NameConst;
use Our\Common;
use Business\User\MemberServiceModel;
class UserController extends \Our\Controller_AbstractIndex {
public $memberService;
public function init(){
parent::init();
$this->memberService=MemberServiceModel::getInstance();
}
private function indexAction() {
$login=LoginV2Model::getInstance();
echo $login->login();
}
/**
* 用户登录
*
* @ccw
*/
public function loginAction(){
if(parent::isLogin()){
ErrorModel::throwException(CodeConfigModel::isLogin);
}else{
$data=$this->req['data'];
$mobile=$data[NameConst::mobile];
$password=$data[NameConst::password];
if($this->memberService->checkUserNamePassWord($mobile,$password)){
$member= $this->memberService->getOneByMobileAndPassword($mobile,$password);
//第二步保存扫码会员信息
$result = $this->memberService->saveStoreMembers($member['member_id']);
if(!$result){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::saveStoreMemberFailed);
}
/**
* 合并第三方授权信息
*/
if($member){
$result = $this->memberService->saveLoginMapping($member,$data);
if(!$result['status']){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::loginBindUserInfoFailed);
}
if(isset($result['member'])&&$member){
$member = array_merge($member,$result['member']);
}
}
$userToken=$this->memberService->findMbUserTokenByMemberId($member['member_id']);
if(!empty($userToken['token'])){
$this->updateOldLoginKey($userToken['token']);
//$this->memberService->clearKey($userToken['token']);
}
if($member){
$this->memberService->clearKey($this->key);
$this->key=Common::bulidToken($mobile,$password);
session_id($this->key);
$this->sess['member_id']=(int)$member['member_id'];
$this->sess[NameConst::sessionKey]=$this->key;
$member[NameConst::sessionKey]=$this->key;
$this->memberService->saveMember($member);
$this->success(array('key'=>$this->key,'memberName'=>$member['member_name'],'memberAvatar'=>$member['memberAvatarUrl'],'memberId'=>(int)$member['member_id']));
}else{
ErrorModel::throwException(CodeConfigModel::errorUsernameOrPassword);
}
}
}
ErrorModel::throwException(CodeConfigModel::noLogin);
}
public function loginWithWechatInfoAction(){
if(parent::isLogin()){
ErrorModel::throwException(CodeConfigModel::isLogin);
}else {
$data = $this->req['data'];
$authInfo = $this->sess->get('wxAuthInfo');
$data['deviceType'] = \Our\ApiConst::wechatDeviceType;
$data['userType'] = \Our\ApiConst::wechatUserType;
$member= $this->memberService->loginWithWechatInfo($data,$authInfo);
if($member){
/*$userToken=$this->memberService->findMbUserTokenByMemberId($member['member_id']);
$this->memberService->clearKey($userToken['token']);*/
$userToken=$this->memberService->getWxUserToken($member['member_id']);
if(!empty($userToken)){
$this->updateOldLoginKey($userToken);
}
$this->memberService->clearKey($this->key);
$this->key=Common::bulidToken('', '', '', \Our\ApiConst::wechatDeviceType);
$this->memberService->saveWxUserToken($this->key,$member['member_id']);
session_id($this->key);
$this->sess['member_id'] = $member['member_id'];
$this->sess['user_type'] = \Our\ApiConst::wechatUserType;
$this->sess[NameConst::sessionKey]=$this->key;
$member[NameConst::sessionKey]=$this->key;
//$this->memberService->saveMember($member);
$this->success(array('key'=>$this->key,'memberName'=>$member['member_name'],'memberAvatar'=>$member['memberAvatarUrl']));
}
ErrorModel::throwException(CodeConfigModel::wxAuthInfoLoginFailed);
}
}
/**
* 用户信息注册
*/
public function registerAction(){
$where = $this->req['data'];
$member = $this->memberService->saveRegisterInfo($where);
if($member){
$userToken=$this->memberService->findMbUserTokenByMemberId($member['member_id']);
$this->memberService->clearKey($userToken['token']);
$this->memberService->clearKey($this->key);
$this->key=Common::bulidToken('', '', '', \Our\ApiConst::wechatDeviceType);
session_id($this->key);
$this->sess['member_id']=$member['member_id'];
$this->sess[NameConst::sessionKey]=$this->key;
$member[NameConst::sessionKey]=$this->key;
$this->memberService->saveMember($member);
$this->success(array('key'=>$this->key,'memberName'=>$member['member_name'],'memberAvatar'=>$member['memberAvatarUrl'],'memberId'=>$member['member_id']));
}
ErrorModel::throwException(CodeConfigModel::registerMemberFailed);
}
public function loginWithThirdPlatformInfoAction(){
$where = $this->req['data'];
$member = $this->memberService->loginWithThirdPlatformInfo($where);
if($member){
$userToken=$this->memberService->findMbUserTokenByMemberId($member['member_id']);
if(!empty($userToken['token'])){
$this->updateOldLoginKey($userToken['token']);
}
//第二步保存扫码会员信息
$result = $this->memberService->saveStoreMembers($member['member_id']);
if(!$result){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::saveStoreMemberFailed);
}
$this->memberService->clearKey($this->key);
$this->key=Common::bulidToken('', '', '', \Our\ApiConst::wechatDeviceType);
session_id($this->key);
$this->sess['member_id']=$member['member_id'];
$this->sess['user_type'] = $where['userType'];
$this->sess[NameConst::sessionKey]=$this->key;
$member[NameConst::sessionKey]=$this->key;
$member['login_time']=TIMESTAMP;
$this->memberService->saveMember($member);
$this->success(array('userFlag'=>\Our\ApiConst::one,'key'=>$this->key,'memberName'=>$member['member_name'],'memberAvatar'=>$member['memberAvatarUrl'],'memberId'=>(int)$member['member_id']));
}else{
$this->success(array('userFlag'=>\Our\ApiConst::zero));
}
}
public function isLoginAction(){
$isLogin = \Our\ApiConst::zero;
if(parent::isLogin()){
$isLogin = \Our\ApiConst::one;
}
$this->success(array('isLogin'=>$isLogin));
}
}
...@@ -10,7 +10,7 @@ application.dispatcher.catchException = true ...@@ -10,7 +10,7 @@ application.dispatcher.catchException = true
; Index默认的模块 ; Index默认的模块
; Api模块用于手机应用的数据接口 ; Api模块用于手机应用的数据接口
; Admin模块用于后台管理 ; Admin模块用于后台管理
application.modules = Index,Api,Admin application.modules = Index,Api,Admin,Client
[productone : common] [productone : common]
; 数据库配置 ; 数据库配置
......
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单的html5 File测试 for pic2base64</title>
<style>
</style>
<script>
</script>
</head>
<body>
<form action="/client/authInfo/takeAccess" method="post">
随机字符:<input name="data[nonce]" value="abcdef"/><br />
订单id:<input name="data[timestamp]" value="b1234567891"/><br />
设备类型:<input name="data[deviceType]" value="1"/><br />
加密类型:<input name="encryptType" value="2"/><br />
签名:<input name="sign" value="8ec749e9de775b4b6ae77f8c6cf3b7cf"/><br />
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单的html5 File测试 for pic2base64</title>
<style>
</style>
</head>
<body>
<form action="/client/shopkeeper/index" method="post">
用户登录状态key:<input name="data[key]" value="ceb72deab920ac0edb7272b2ed9dfa1e"/><br />
<p id="img_area"></p>
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单的html5 File测试 for pic2base64</title>
<style>
</style>
</head>
<body>
<form action="/shopkeeper/myStoreClassRank" method="post">
用户登录状态key:<input name="data[key]" value="ceb72deab920ac0edb7272b2ed9dfa1e"/><br />
店铺分类id:<input name="data[gcId]" value="1132"/><br />
<p id="img_area"></p>
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单的html5 File测试 for pic2base64</title>
<style>
</style>
</head>
<body>
<form action="/shopkeeper/orderDetail" method="post">
用户登录状态key:<input name="data[key]" value="ceb72deab920ac0edb7272b2ed9dfa1e"/><br />
订单id:<input name="data[orderId]" value="935"/><br />
<p id="img_area"></p>
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单的html5 File测试 for pic2base64</title>
<style>
</style>
</head>
<body>
<form action="/shopkeeper/orderReceive" method="post">
用户登录状态key:<input name="data[key]" value="ceb72deab920ac0edb7272b2ed9dfa1e"/><br />
订单id:<input name="data[orderId]" value="935"/><br />
<p id="img_area"></p>
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单的html5 File测试 for pic2base64</title>
<style>
</style>
</head>
<body>
<form action="/shopkeeper/orders" method="post">
用户登录状态key:<input name="data[key]" value="ceb72deab920ac0edb7272b2ed9dfa1e"/><br />
订单状态id:<input name="data[orderState]" value=""/><br />
keyword:<input name="data[keyword]" value="400"/><br />
<p id="img_area"></p>
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单的html5 File测试 for pic2base64</title>
<style>
</style>
</head>
<body>
<form action="/shopkeeper/statistics" method="post">
用户登录状态key:<input name="data[key]" value="ceb72deab920ac0edb7272b2ed9dfa1e"/><br />
<p id="img_area"></p>
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单的html5 File测试 for pic2base64</title>
<style>
</style>
</head>
<body>
<form action="/shopkeeper/storeMemberStats" method="post">
用户登录状态key:<input name="data[key]" value="ceb72deab920ac0edb7272b2ed9dfa1e"/><br />
订单id:<input name="data[sort]" value="1"/><br />
<p id="img_area"></p>
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单的html5 File测试 for pic2base64</title>
<style>
</style>
</head>
<body>
<form action="/user/login" method="post">
用户名:<input name="data[mobile]" value="18305954587"/><br />
密码:<input name="data[password]" value="123456"/><br />
key:<input name="data[key]" value="c2e5e7bfce8a727c7fb6f696bcaa23ac"/><br />
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>第三方平台登录</title>
<style>
</style>
</head>
<body>
<form action="/user/loginWithThirdPlatformInfo" method="post">
key:<input name="data[key]" value="6a620108735f413ab3e86511ff11ca99"/><br />
用户头像:<input name="data[avatar]" value="https://tva3.sinaimg.cn/crop.0.1.1242.1242.180/4711809ejw8f387zus4vpj20yi0ykjwd.jpg"/><br />
性别:<input name="data[gender]" value="1"/><br />
第三方用户来源:<input name="data[userType]" value="1"/><br />
昵称:<input name="data[nickname]" value="lindongming"/><br />
第三方唯一识别符:<input name="data[openid]" value="lindongming"/><br />
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>简单的html5 File测试 for pic2base64</title>
<style>
</style>
</head>
<body>
<form action="/user/loginWithWechatInfo" method="post">
用户头像:<input name="data[avatar]" value="https://tva3.sinaimg.cn/crop.0.1.1242.1242.180/4711809ejw8f387zus4vpj20yi0ykjwd.jpg"/><br />
key:<input name="data[key]" value="28d391fe06706bff971e2ef95d3dcdbb"/><br />
gender:<input name="data[gender]" value="1"/><br />
encryptedData:<input name="data[encryptedData]" value="7vq6fElU/Ly3EXz5o/kyPWyUW8LwN5oKkyX6k3OSJ+QVLSWv0nmhpWik7MnemEr9K6ToLaRnVmgtCqg8/D0Lq+xcyr6DQGvY1ihB8UecVoc3Qrz9A9OKGK1RvIoa82Z+KCXG1cg9BYWOXyCaoXw6HmqLiBD42nyC2uwUg3ShgiX0noo1H8uu7f2MRW5ig94JGnSgbqqVI3dh8cJW9oFA1fzPrT/48NbUWJjbApPhuR4SCLkf6a2d628t7Giym296BZ9jUTalJDTKxI3jWgr1ll7G0toE9oePrkvH5c9BWgDJ+YrdjpqSTeXXpiHFPDpBQqt8d0+5t6m5kGmGSKi0zM9ze+u/t3qL5b3uBo9GPAGpUrVZeBYlxUEoxGruFwdg6H/cPMQOOlSyabsiF9VMLl+kdAW4C2SunZIHgvYZ3dhyaDHJOqcCUSuqVTZY7Yi/X8U+uVFxCRDNRAJ/L39kHP/p+eDqoaMZethMKp/bfPQGCL32RSQzFA1BEcoZ9AEZMLZCIyS6vvjNlw/LHyUVQg=="/><br />
iv:<input name="data[iv]" value="3pbYLsryffNZbzPqaNBneQ=="/><br />
nickname:<input name="data[nickname]" value="lindongming123"/><br />
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户注册</title>
<style>
</style>
</head>
<body>
<form action="/user/register" method="post">
手机号码:<input name="data[mobile]" value="18305954587"/><br />
短信验证码:<input name="data[code]" value="123456"/><br />
密码:<input name="data[password]" value="123456a"/><br />
设备类型:<input name="data[deviceType]" value="1"/><br />
设备唯一识别码:<input name="data[deviceUniqueCode]" value="1"/><br />
key:<input name="data[key]" value="c2e5e7bfce8a727c7fb6f696bcaa23ac"/><br />
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
<?php <?php
echo json_encode($_SERVER);exit;
$res=file_exists('/www/web/testadmin_shenbd_com/public_html/data/upload/mall/avatar/member_avatar_26.jpg'); $res=file_exists('/www/web/testadmin_shenbd_com/public_html/data/upload/mall/avatar/member_avatar_26.jpg');
var_dump($res); var_dump($res);
exit; exit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment