Commit 99c21dd8 authored by zhz's avatar zhz

Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into master_dev

parents 76c66110 678db1bb
...@@ -26,6 +26,26 @@ class AuthinfoController extends \Our\Controller_Abstract ...@@ -26,6 +26,26 @@ class AuthinfoController extends \Our\Controller_Abstract
$name = $this->req->getQuery('name'); $name = $this->req->getQuery('name');
throw new Exception('hello ', 404); 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() public function testAction()
{ {
......
<?php
class SearchController extends \Our\Controller_AbstractIndex {
public $memberId;
public function createIndexAction()
{
$serchService=\Business\Search\SearchServiceModel::getInstance();
$res=$serchService->createShopKeeperOrders();
$this->success($res);
}
public function createIkIndexAction()
{
$serchService=\Business\Search\SearchServiceModel::getInstance();
$res=$serchService->createShopKeeperIkOrders();
$this->success($res);
}
public function insertRowAction()
{
$serchService=\Business\Search\SearchServiceModel::getInstance();
$res=$serchService->insertRows();
$this->success($res);
}
public function searchAction()
{
$serchService=\Business\Search\SearchServiceModel::getInstance();
$res=$serchService->searchRows();
$this->success($res);
}
}
...@@ -14,11 +14,18 @@ class UserController extends \Our\Controller_AbstractIndex { ...@@ -14,11 +14,18 @@ class UserController extends \Our\Controller_AbstractIndex {
} }
public function indexAction() { private function indexAction() {
$login=LoginV2Model::getInstance(); $login=LoginV2Model::getInstance();
echo $login->login(); echo $login->login();
} }
private function updateOldLoginKey($token){
$params['authSign']=md5($token.\Our\SecretKeys::authKey);
$params['key']=$token;
$paramsStr=http_build_query($params);
$domain= Bootstrap::getUrlIniConfig('resourcesHost');
$getUrl=$domain.\Our\PathConst::authInfoOtherLogin.'?'.$paramsStr;
file_get_contents($getUrl);
}
/** /**
* 用户登录 * 用户登录
* *
...@@ -41,12 +48,15 @@ class UserController extends \Our\Controller_AbstractIndex { ...@@ -41,12 +48,15 @@ class UserController extends \Our\Controller_AbstractIndex {
if(!$result['status']){ if(!$result['status']){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::loginBindUserInfoFailed); \Error\ErrorModel::throwException(\Error\CodeConfigModel::loginBindUserInfoFailed);
} }
if(isset($result['member'])&&$member){ if(isset($result['member'])&&$member){
$member = array_merge($member,$result['member']); $member = array_merge($member,$result['member']);
} }
} }
$userToken=$this->memberService->findMbUserTokenByMemberId($member['member_id']); $userToken=$this->memberService->findMbUserTokenByMemberId($member['member_id']);
$this->memberService->clearKey($userToken['token']); if(!empty($userToken['token'])){
$this->updateOldLoginKey($userToken['token']);
//$this->memberService->clearKey($userToken['token']);
}
if($member){ if($member){
$this->memberService->clearKey($this->key); $this->memberService->clearKey($this->key);
$this->key=Common::bulidToken($mobile,$password); $this->key=Common::bulidToken($mobile,$password);
...@@ -129,6 +139,7 @@ class UserController extends \Our\Controller_AbstractIndex { ...@@ -129,6 +139,7 @@ class UserController extends \Our\Controller_AbstractIndex {
$this->sess['user_type'] = $where['userType']; $this->sess['user_type'] = $where['userType'];
$this->sess[NameConst::sessionKey]=$this->key; $this->sess[NameConst::sessionKey]=$this->key;
$member[NameConst::sessionKey]=$this->key; $member[NameConst::sessionKey]=$this->key;
$member['login_time']=TIMESTAMP;
$this->memberService->saveMember($member); $this->memberService->saveMember($member);
$this->success(array('userFlag'=>\Our\ApiConst::one,'key'=>$this->key,'memberName'=>$member['member_name'],'memberAvatar'=>$member['memberAvatarUrl'])); $this->success(array('userFlag'=>\Our\ApiConst::one,'key'=>$this->key,'memberName'=>$member['member_name'],'memberAvatar'=>$member['memberAvatarUrl']));
}else{ }else{
......
...@@ -445,12 +445,14 @@ class OrderConfirmUtil { ...@@ -445,12 +445,14 @@ class OrderConfirmUtil {
$orderGoods['goods_group'] = serialize($storeCart['goodsList']); $orderGoods['goods_group'] = serialize($storeCart['goodsList']);
$orderGoods['goods_price'] = $storeCart['goodsPrice']; $orderGoods['goods_price'] = $storeCart['goodsPrice'];
$orderGoods['goods_commonid'] = \Our\ApiConst::zero; $orderGoods['goods_commonid'] = \Our\ApiConst::zero;
$orderGoods['goods_spec'] = '';
}else{ }else{
$orderGoods['goods_price'] = \Goods\GoodsUtil::getInstance()->getRealPrice($storeCart['goodsId'],$this->memberId); $orderGoods['goods_price'] = \Goods\GoodsUtil::getInstance()->getRealPrice($storeCart['goodsId'],$this->memberId);
$orderGoods['goods_commonid'] = $storeCart['goodsCommonId']; $orderGoods['goods_commonid'] = $storeCart['goodsCommonId'];
if($orderGoods['sale_act_id']&&$orderGoods['sale_id']){//当前商品有参与销售活动结算时 if($orderGoods['sale_act_id']&&$orderGoods['sale_id']){//当前商品有参与销售活动结算时
$this->saleGoodsIds[] = $storeCart['goodsId']; $this->saleGoodsIds[] = $storeCart['goodsId'];
} }
$orderGoods['goods_group'] = '';
} }
$orderGoods['gmt_create'] = TIMESTAMP; $orderGoods['gmt_create'] = TIMESTAMP;
......
...@@ -14,13 +14,13 @@ class AdvConst { ...@@ -14,13 +14,13 @@ class AdvConst {
const advPositionHomeTop = 1050; //首页头部广告位 const advPositionHomeTop = 1050; //首页头部广告位
const advPositionHomeMiddle = 1050; //首页中部广告位 const advPositionHomeMiddle = 1052; //首页中部广告位
const advPositionPopUp = 1050; //平台首页弹窗广告 const advPositionPopUp = 1050; //平台首页弹窗广告
const advIntervalSecond = 2000; //广告位默认轮播时间间隔,单位毫秒 const advIntervalSecond = 2000; //广告位默认轮播时间间隔,单位毫秒
const advPositionClassTop = 1050; //平台一级分类广告 const advPositionClassTop = 1053; //平台一级分类广告
const advEmptyCart = 1051; //购物车为空时广告位 const advEmptyCart = 1051; //购物车为空时广告位
......
...@@ -11,7 +11,8 @@ class ApiConst ...@@ -11,7 +11,8 @@ class ApiConst
const randLengh = 8; const randLengh = 8;
//10天数秒 //10天数秒
const tenDaySecond = 864000; // const tenDaySecond = 864000;
const tenDaySecond = 300;
//一天 //一天
const oneDaySecond = 86400; const oneDaySecond = 86400;
//半天 //半天
...@@ -131,6 +132,8 @@ class ApiConst ...@@ -131,6 +132,8 @@ class ApiConst
const refundSellerAgree = 2; const refundSellerAgree = 2;
const refundSellerRefuse = 3; const refundSellerRefuse = 3;
const refundTypeGoods = 2; const refundTypeGoods = 2;
const returnTypeNotReturn=1;
const returnTypeMustReturn=2;
const refundTypeMoney = 1; const refundTypeMoney = 1;
const refundApplyOnlyMoney = 1; const refundApplyOnlyMoney = 1;
......
<?php <?php
namespace Our; namespace Our;
use Business\User\MemberServiceModel;
use Error\CodeConfigModel; use Error\CodeConfigModel;
use Error\ErrorModel; use Error\ErrorModel;
/** /**
...@@ -33,6 +34,11 @@ abstract class Controller_AbstractApi extends \Our\Controller_Abstract { ...@@ -33,6 +34,11 @@ abstract class Controller_AbstractApi extends \Our\Controller_Abstract {
if(empty($this->memberId)){ if(empty($this->memberId)){
ErrorModel::throwException(CodeConfigModel::noLogin); ErrorModel::throwException(CodeConfigModel::noLogin);
} }
if(isset($sess['other_login']) && $sess['other_login']==ApiConst::one){
$memberService=MemberServiceModel::getInstance();
$memberService->clearKey($this->req['data']['key']);
ErrorModel::throwException(CodeConfigModel::otherDriverLogin);
}
\Yaf\Dispatcher::getInstance()->disableView(); \Yaf\Dispatcher::getInstance()->disableView();
} }
public function getAuthKey(){ public function getAuthKey(){
......
...@@ -151,6 +151,8 @@ class NameConst { ...@@ -151,6 +151,8 @@ class NameConst {
const leftBracket = '['; const leftBracket = '[';
const rightBracket = ']'; const rightBracket = ']';
const elasticName='elastic.master'; const elasticName='elastic.master';
const shopkeeper='shopkeeper';
} }
?> ?>
\ No newline at end of file
...@@ -39,6 +39,8 @@ class PathConst { ...@@ -39,6 +39,8 @@ class PathConst {
const orderConfirmTaskAddTime="/orderConfirmTaskAddTime.conf"; const orderConfirmTaskAddTime="/orderConfirmTaskAddTime.conf";
const orderId="orderId={0}"; const orderId="orderId={0}";
const authInfoOtherLogin="/authInfo/otherLogin";
//const favoritesStoreFavTimeConf="favoritesStoreFavTime.conf"; //const favoritesStoreFavTimeConf="favoritesStoreFavTime.conf";
......
...@@ -443,7 +443,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel ...@@ -443,7 +443,7 @@ class GoodsCommonServiceModel extends \Business\AbstractModel
$return = $FavoritesInstance->insertOrUpdate(array('member_id'=>$memberId,'goods_commonid'=>$goodsCommonId,'fav_time'=>time())); $return = $FavoritesInstance->insertOrUpdate(array('member_id'=>$memberId,'goods_commonid'=>$goodsCommonId,'fav_time'=>time()));
if((int)$return > 0){ if((int)$return > 0){
//删除缓存 //删除缓存
\Our\RedisHelper::delCachedFunction(\Redis\Db4\FavoritesRedisModel::getInstance(),array(&$FavoritesInstance, 'getOne'),array('*',array('goods_commonid'=>$goodsCommonId,'member_id'=>$memberId)),array($memberId)); \Our\RedisHelper::delCachedFunction(\Redis\Db4\FavoritesRedisModel::getInstance(),array(&$FavoritesInstance, 'getOne'),array('*',array('member_id'=>$memberId,'goods_commonid'=>$goodsCommonId)),array($memberId));
\Our\RedisHelper::delCachedFunction(\Redis\Db4\FavoritesRedisModel::getInstance(),array(&$FavoritesInstance, 'getList'),array(),array($memberId)); \Our\RedisHelper::delCachedFunction(\Redis\Db4\FavoritesRedisModel::getInstance(),array(&$FavoritesInstance, 'getList'),array(),array($memberId));
//更新个人中心首页数量 //更新个人中心首页数量
\DAO\MemberModel::getInstance()->_changeNum(\Our\NameConst::goodsCollection,$memberId); \DAO\MemberModel::getInstance()->_changeNum(\Our\NameConst::goodsCollection,$memberId);
......
...@@ -565,6 +565,7 @@ class OrderServiceModel extends \Business\AbstractModel ...@@ -565,6 +565,7 @@ class OrderServiceModel extends \Business\AbstractModel
//商店相关信息 //商店相关信息
$this->store = \Our\RedisHelper::cachedFunction(\Redis\Db5\OrderRedisModel::getInstance(), array(&$storeDao, 'getInfoById'), array($this->order['storeId'], $this->storeField), \Our\ApiConst::oneDaySecond); $this->store = \Our\RedisHelper::cachedFunction(\Redis\Db5\OrderRedisModel::getInstance(), array(&$storeDao, 'getInfoById'), array($this->order['storeId'], $this->storeField), \Our\ApiConst::oneDaySecond);
$orderGoods=$goodsDao->convert($this->orderGoodsList); $orderGoods=$goodsDao->convert($this->orderGoodsList);
if(empty($orderGoods)){ if(empty($orderGoods)){
$orderGoods=array(); $orderGoods=array();
} }
...@@ -581,8 +582,11 @@ class OrderServiceModel extends \Business\AbstractModel ...@@ -581,8 +582,11 @@ class OrderServiceModel extends \Business\AbstractModel
'reciverName' => $this->orderCommon['reciverName'], 'reciverName' => $this->orderCommon['reciverName'],
'mobPhone' => $reciverInfo['mob_phone'], 'mobPhone' => $reciverInfo['mob_phone'],
'street' => $reciverInfo['street'], 'street' => $reciverInfo['street'],
'lng'=>isset($reciverInfo['lng'])?$reciverInfo['lng']:ApiConst::zero,
'lat'=>isset($reciverInfo['lat'])?$reciverInfo['lat']:ApiConst::zero,
'subAddress' => isset($reciverInfo['sub_address']) ? $reciverInfo['sub_address'] : '', 'subAddress' => isset($reciverInfo['sub_address']) ? $reciverInfo['sub_address'] : '',
'orderGoods' => $orderGoods, 'orderGoods' => $orderGoods,
'shippingFee'=>$this->order['shippingFee'],
); );
return $returnData; return $returnData;
......
...@@ -22,7 +22,7 @@ use Our\ImageUtil; ...@@ -22,7 +22,7 @@ use Our\ImageUtil;
class RefundServiceModel extends \Business\AbstractModel class RefundServiceModel extends \Business\AbstractModel
{ {
private $orderField = "buyer_id as buyerId,buyer_name as buyerName,order_id as orderId,order_sn as orderSn,store_name as storeName,add_time as AddTime,store_id as storeId,goods_amount as goodsAmount,shipping_fee as shippingFee,order_amount as orderAmount,shipping_type as shippingType,payment_type as paymentType,order_state as orderState,shipping_fee as shippingFee,refund_state as refundState,order_type as orderType,is_receive_payment as isReceivePayment,need_shipping_fee as needShippingFee,payment_code as paymentCode,delay_time as delayTime"; private $orderField = "buyer_id as buyerId,buyer_name as buyerName,order_id as orderId,order_sn as orderSn,store_name as storeName,add_time as AddTime,store_id as storeId,goods_amount as goodsAmount,shipping_fee as shippingFee,order_amount as orderAmount,shipping_type as shippingType,payment_type as paymentType,order_state as orderState,shipping_fee as shippingFee,refund_state as refundState,order_type as orderType,is_receive_payment as isReceivePayment,need_shipping_fee as needShippingFee,payment_code as paymentCode,delay_time as delayTime";
private $orderGoodsField = "commis_rate as commisRate,goods_type as goodsType,order_id as orderId,rec_id as recId,goods_id as goodsId,goods_name as goodsName,goods_price as goodsPrice,goods_num as goodsNum,goods_image as goodsImage,goods_pay_price as goodsPayPrice,sale_act_id as saleActId,sale_id as saleId,comment_state as commentState,is_refund as isRefund,goods_spec as goodsSpec,goods_group as goodsGroup"; private $orderGoodsField = "commis_rate as commisRate,goods_type as goodsType,order_id as orderId,rec_id as recId,goods_id as goodsId,goods_name as goodsName,goods_price as goodsPrice,goods_num as goodsNum,goods_image as goodsImage,goods_pay_price as goodsPayPrice,sale_act_id as saleActId,sale_id as saleId,comment_state as commentState,is_refund as isRefund,goods_spec as goodsSpec,goods_group as goodsGroup,refund_id as refundId";
private $addressField = " mob_phone as MobPhone,tel_phone as TelPhone,address as address,area_info as areaInfo,lng,lat,address_id as addressId,subaddress as subAddress"; private $addressField = " mob_phone as MobPhone,tel_phone as TelPhone,address as address,area_info as areaInfo,lng,lat,address_id as addressId,subaddress as subAddress";
private $daddressField = "address_id as addressId,store_id as storeId,seller_name as sellerName,area_id as areaId,city_id as cityId,area_info as areaInfo,address,telphone,company,is_store_address as isStoreAddress,is_default as isDefault"; private $daddressField = "address_id as addressId,store_id as storeId,seller_name as sellerName,area_id as areaId,city_id as cityId,area_info as areaInfo,address,telphone,company,is_store_address as isStoreAddress,is_default as isDefault";
...@@ -337,6 +337,12 @@ class RefundServiceModel extends \Business\AbstractModel ...@@ -337,6 +337,12 @@ class RefundServiceModel extends \Business\AbstractModel
$orderGoodsDao = \DAO\Order\OrderGoodsModel::getInstance(DbNameConst::masterDBConnectName); $orderGoodsDao = \DAO\Order\OrderGoodsModel::getInstance(DbNameConst::masterDBConnectName);
$orderLogDao = \DAO\Order\OrderLogModel::getInstance(DbNameConst::masterDBConnectName); $orderLogDao = \DAO\Order\OrderLogModel::getInstance(DbNameConst::masterDBConnectName);
$orderGoods = $orderGoodsDao->getOneByOrderIdAndGoodsId($refund['orderId'], $refund['goodsId'], $this->orderGoodsField); $orderGoods = $orderGoodsDao->getOneByOrderIdAndGoodsId($refund['orderId'], $refund['goodsId'], $this->orderGoodsField);
if(empty($orderGoods)){
ErrorModel::throwException(CodeConfigModel::notExistOrderGoods);
}
if($orderGoods['refundId']>ApiConst::zero){
ErrorModel::throwException(CodeConfigModel::alreadyExsitRefundGoods);
}
$refundAmount = $refund['refundAmount'];//退款金额 $refundAmount = $refund['refundAmount'];//退款金额
if ($orderInfo['paymentTime']) { if ($orderInfo['paymentTime']) {
if (($refundAmount < ApiConst::zero) || ($refundAmount > $orderGoods['goodsPayPrice'])) { if (($refundAmount < ApiConst::zero) || ($refundAmount > $orderGoods['goodsPayPrice'])) {
...@@ -392,6 +398,8 @@ class RefundServiceModel extends \Business\AbstractModel ...@@ -392,6 +398,8 @@ class RefundServiceModel extends \Business\AbstractModel
$refundArrayUnLine=Common::convertUnderline($refundArray); $refundArrayUnLine=Common::convertUnderline($refundArray);
$state = $refundReturnDao->addRefundReturn($refundArray,$orderInfo,$orderGoods); $state = $refundReturnDao->addRefundReturn($refundArray,$orderInfo,$orderGoods);
if ($state) { if ($state) {
$orderDao->deleteOrderCache($memberId,$refund['orderId']);
$refundReturnDao->deleteRefundCache($memberId);
$refundStateName=$refundReturnDao->getRefundTextStatus($refundArrayUnLine); $refundStateName=$refundReturnDao->getRefundTextStatus($refundArrayUnLine);
$orderGoodsDao->update(array('rec_id'=>$orderGoods['recId']),array('refund_state_name'=>$refundStateName,'refund_id'=>$state)); $orderGoodsDao->update(array('rec_id'=>$orderGoods['recId']),array('refund_state_name'=>$refundStateName,'refund_id'=>$state));
$orderLogDao->addRefundOrderLog($orderInfo['orderId'],$refundArray['refund_type'],DescribeConst::buyer,$orderInfo['buyerName'],$orderInfo['orderState']); $orderLogDao->addRefundOrderLog($orderInfo['orderId'],$refundArray['refund_type'],DescribeConst::buyer,$orderInfo['buyerName'],$orderInfo['orderState']);
...@@ -446,20 +454,24 @@ class RefundServiceModel extends \Business\AbstractModel ...@@ -446,20 +454,24 @@ class RefundServiceModel extends \Business\AbstractModel
$info['canPlatformIn'] = $refundReturnDao->isPlatformIn($info) ? ApiConst::one : ApiConst::zero; $info['canPlatformIn'] = $refundReturnDao->isPlatformIn($info) ? ApiConst::one : ApiConst::zero;
$info['canSendShippingType'] = $refundReturnDao->checkIsAddReturnShipping($info) ? ApiConst::one : ApiConst::zero; $info['canSendShippingType'] = $refundReturnDao->checkIsAddReturnShipping($info) ? ApiConst::one : ApiConst::zero;
if($info['refundShippingType']==ApiConst::bySeller){ if($info['refundShippingType']==ApiConst::bySeller){
if(!$info['diliverymanId']){ if($info['returnType']==ApiConst::returnTypeMustReturn){
$info['diliveryman']=ArrayConst::defaultDeliveryMan; if(!$info['diliverymanId']){
}else{ $info['diliveryman']=ArrayConst::defaultDeliveryMan;
$diliveryMan=$diliveryManDao->findById($info['diliverymanId']);
if(!empty($diliveryMan)){
$diliveryMan=array(
'id'=>$diliveryMan['id'],
'trueName'=>$diliveryMan['true_name'],
'mobile'=>$diliveryMan['mobile'],
);
$info['diliveryman']=$diliveryMan;
}else{ }else{
$info['diliveryman']=new \stdClass(); $diliveryMan=$diliveryManDao->findById($info['diliverymanId']);
if(!empty($diliveryMan)){
$diliveryMan=array(
'id'=>$diliveryMan['id'],
'trueName'=>$diliveryMan['true_name'],
'mobile'=>$diliveryMan['mobile'],
);
$info['diliveryman']=$diliveryMan;
}else{
$info['diliveryman']=new \stdClass();
}
} }
}else{
$info['diliveryman']=new \stdClass();
} }
}else{ }else{
$info['diliveryman']=new \stdClass(); $info['diliveryman']=new \stdClass();
......
<?php
namespace Business\Search;
/**
* 店铺service
*
* @date 2018-5-15
* @author zhz
*/
class SearchServiceModel extends \Business\AbstractModel
{
public function init()
{
}
public function createShopKeeperOrders()
{
$elasticsToolElasticssearch=\Elastics\ElasticsToolModel::getInstance('orders');
$res=$elasticsToolElasticssearch->createIndexDetail();
return $res;
}
public function createShopKeeperIkOrders()
{
$elasticsToolElasticssearch=\Elastics\ElasticsToolModel::getInstance('orders');
$delRes=$elasticsToolElasticssearch->deleteIndex();
$createRes=$elasticsToolElasticssearch->createIkField();
$postData=array(
['goodsName'=>""闺蜜"崔顺实被韩检方传唤 韩总统府促彻查真相"],
['goodsName'=>"韩举行"护国训练" 青瓦台:决不许国家安全出问题"],
['goodsName'=>"韩举行"护国训练" 青瓦台:决不许国家安全出问题"],
['goodsName'=>"媒体称FBI已经取得搜查令 检视希拉里电邮"],
['goodsName'=>"村上春树获安徒生奖 演讲中谈及欧洲排外问题"],
['goodsName'=>"希拉里团队炮轰FBI 参院民主党领袖批其“违法”"],
);
$res=$elasticsToolElasticssearch->postBulkDoc($postData);
return $res;
}
public function insertRows()
{
$elasticsToolElasticssearch=\Elastics\ElasticsToolModel::getInstance('orders');
$row=array(
'name'=>'陈传文',
'age'=>46,
'sex'=>'男',
);
$res=$elasticsToolElasticssearch->createDocument($row);
return $res;
}
public function searchRows(){
$elasticsToolElasticssearch=\Elastics\ElasticsToolModel::getInstance('orders');
$query=array(
'goodsName'=>'希拉里和韩国',
);
$res=$elasticsToolElasticssearch->searchMatch($query);
return $res;
}
/**
* 类实例
*
* @var \DAO\UserModel
*/
private static $_instance = null;
/**
* 单例模式获取类实例
*
*/
public static function getInstance()
{
if (!(self::$_instance instanceof self)) {
self::$_instance = new self();
}
return self::$_instance;
}
}
...@@ -57,7 +57,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel ...@@ -57,7 +57,7 @@ class ShopkeeperServiceModel extends \Business\AbstractModel
$storeTodayStats = $storeStatisticsDayDao->getById($storeId); $storeTodayStats = $storeStatisticsDayDao->getById($storeId);
$data['storeId'] = $store['store_id']; $data['storeId'] = $store['store_id'];
$data['storeName'] = $store['store_name']; $data['storeName'] = $store['store_name'];
$data['storeLable'] = $store['store_label']; $data['storeLabel'] = $store['store_label'];
$data['goodsCount'] = isset($storeStats['goodsCount']) ? $storeStats['goodsCount'] : ApiConst::zero; $data['goodsCount'] = isset($storeStats['goodsCount']) ? $storeStats['goodsCount'] : ApiConst::zero;
$data['orderCount'] = isset($storeStats['orderCount']) ? $storeStats['orderCount'] : ApiConst::zero; $data['orderCount'] = isset($storeStats['orderCount']) ? $storeStats['orderCount'] : ApiConst::zero;
$data['orderTotal'] = isset($storeStats['orderTotal']) ? $storeStats['orderTotal'] : ApiConst::zero; $data['orderTotal'] = isset($storeStats['orderTotal']) ? $storeStats['orderTotal'] : ApiConst::zero;
......
...@@ -102,11 +102,11 @@ class AddressServiceModel extends \Business\AbstractModel { ...@@ -102,11 +102,11 @@ class AddressServiceModel extends \Business\AbstractModel {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::addressNotExist); \Error\ErrorModel::throwException(\Error\CodeConfigModel::addressNotExist);
} }
$sess = \Yaf\Session::getInstance(); $sess = \Yaf\Session::getInstance();
$newAddress['addressId'] = $address['address_id']; $newAddress['addressId'] = $address['addressId'];
$newAddress['address'] = $address['address']; $newAddress['address'] = $address['address'];
$newAddress['tagType'] = $address['tag_type']; $newAddress['tagType'] = $address['tagType'];
$returnAddresses[] = $newAddress; $returnAddresses[] = $newAddress;
$choosedAddressId = $address['address_id']; $choosedAddressId = $address['addressId'];
$newAddress = $address; $newAddress = $address;
$newAddress['lng'] = $address['lng']; $newAddress['lng'] = $address['lng'];
$newAddress['lat'] = $address['lat']; $newAddress['lat'] = $address['lat'];
...@@ -265,7 +265,6 @@ class AddressServiceModel extends \Business\AbstractModel { ...@@ -265,7 +265,6 @@ class AddressServiceModel extends \Business\AbstractModel {
* @throws \Exception * @throws \Exception
*/ */
public function getMyAddress($where,$memberId){ public function getMyAddress($where,$memberId){
$addressDao = \DAO\AddressModel::getInstance(); $addressDao = \DAO\AddressModel::getInstance();
$columns = $addressDao->getAddressColumns(); $columns = $addressDao->getAddressColumns();
if($where['addressId']){ if($where['addressId']){
...@@ -277,7 +276,7 @@ class AddressServiceModel extends \Business\AbstractModel { ...@@ -277,7 +276,7 @@ class AddressServiceModel extends \Business\AbstractModel {
if(!$address||($address&&$address['member_id']!=$memberId)){ if(!$address||($address&&$address['member_id']!=$memberId)){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::addressNotExist); \Error\ErrorModel::throwException(\Error\CodeConfigModel::addressNotExist);
} }
} };
if($address){ if($address){
$address = \Our\Common::convertUnderline($address); $address = \Our\Common::convertUnderline($address);
$address['subAddress'] = $address['subaddress']; $address['subAddress'] = $address['subaddress'];
......
...@@ -4,6 +4,7 @@ namespace Business\User; ...@@ -4,6 +4,7 @@ namespace Business\User;
use DAO\MbUserTokenModel; use DAO\MbUserTokenModel;
use DAO\MemberModel; use DAO\MemberModel;
use DAO\SaleMemberModel;
use Error\CodeConfigModel; use Error\CodeConfigModel;
use Error\ErrorModel; use Error\ErrorModel;
use Our\ApiConst; use Our\ApiConst;
...@@ -285,7 +286,19 @@ class MemberServiceModel extends \Business\AbstractModel ...@@ -285,7 +286,19 @@ class MemberServiceModel extends \Business\AbstractModel
} }
$scan_sale_ids = $sess->get('scan_sale_ids'); $scan_sale_ids = $sess->get('scan_sale_ids');
if($scan_sale_ids){ if($scan_sale_ids){
\DAO\SaleModel::getInstance()->getList(array('sale_id'=>array('in',$scan_sale_ids)),'sale_act_id,member_id'); $saleIds = array_keys($scan_sale_ids);
$saleList = \DAO\SaleModel::getInstance()->getList(array('sale_id'=>array('in',$saleIds)),'sale_id,sale_act_id,member_id');
$saleMembers = array();
foreach($saleList as $sale){
$saleMember = array();
$saleMember['member_id'] = $memberId;
$saleMember['store_id'] = $scan_sale_ids[$sale['sale_id']];
$saleMember['sale_id'] = $sale['member_id'];
$saleMember['sale_act_id'] = $sale['sale_act_id'];
$saleMembers[]=$saleMember;
}
$resultSaleMember = \DAO\SaleMemberModel::getInstance()->insertAllOrUpdate($saleMembers);
return $resultSaleMember;
} }
return true; return true;
} }
......
...@@ -36,7 +36,7 @@ class ShareServiceModel extends \Business\AbstractModel ...@@ -36,7 +36,7 @@ class ShareServiceModel extends \Business\AbstractModel
$data['driverType'] = $driverType; $data['driverType'] = $driverType;
$data['qrCode']=$this->growQrcode($data); $data['qrCode']=$this->growQrcode($data);
if($data['type']==ApiConst::shareStore){ if($data['type']==ApiConst::shareStore){
$storeDao=\DAO\StoreMemberModel::getInstance(DbNameConst::salveDBConnectName); $storeDao=\DAO\StoreModel::getInstance(DbNameConst::salveDBConnectName);
$data['address']=$storeDao->getAddress($data['id']); $data['address']=$storeDao->getAddress($data['id']);
} }
// $data['qrCode']=\Our\RedisHelper::cachedFunction(\Redis\Db0\MemberRedisModel::getInstance(), array(&$this, 'growQrcode'), array($data)); // $data['qrCode']=\Our\RedisHelper::cachedFunction(\Redis\Db0\MemberRedisModel::getInstance(), array(&$this, 'growQrcode'), array($data));
......
...@@ -329,8 +329,8 @@ class GoodsModel extends \DAO\AbstractModel { ...@@ -329,8 +329,8 @@ class GoodsModel extends \DAO\AbstractModel {
public function getFormatGoodsAttr($goodsSpecStr){ public function getFormatGoodsAttr($goodsSpecStr){
$goodsAttr = array(); $goodsAttr = array();
if(!empty($goodsSpecStr)){ if(!empty($goodsSpecStr)){
if(CommonExtension::isSerialized($goodsSpecStr)){ $goodsSpec = unserialize($goodsSpecStr);
$goodsSpec = unserialize($goodsSpecStr); if($goodsSpec){
if (is_array($goodsSpec) && count($goodsSpec) > 0) { if (is_array($goodsSpec) && count($goodsSpec) > 0) {
$goodsAttr = array(); $goodsAttr = array();
foreach ($goodsSpec as $key => $value) { foreach ($goodsSpec as $key => $value) {
...@@ -340,7 +340,6 @@ class GoodsModel extends \DAO\AbstractModel { ...@@ -340,7 +340,6 @@ class GoodsModel extends \DAO\AbstractModel {
} }
} }
} }
} }
return $goodsAttr; return $goodsAttr;
} }
...@@ -364,9 +363,12 @@ class GoodsModel extends \DAO\AbstractModel { ...@@ -364,9 +363,12 @@ class GoodsModel extends \DAO\AbstractModel {
public function getGoodsGroup($goodsGroup){ public function getGoodsGroup($goodsGroup){
$orderGoodses=array(); $orderGoodses=array();
if(!empty($goodsGroup)){ if(!empty($goodsGroup)){
$goodsGroup=unserialize($goodsGroup);; $goodsGroup=unserialize($goodsGroup);
$goodsGroup=json_decode(json_encode($goodsGroup),true);
foreach($goodsGroup as $orderGoods){ foreach($goodsGroup as $orderGoods){
unset($orderGoods['goodsSpec']); if(isset($orderGoods['goodsSpec'])){
unset($orderGoods['goodsSpec']);
}
$orderGoods['goodsImage']=\Our\ImageUtil::getGoodsImgUrl($orderGoods['goodsImagePath'],\Our\ImageConst::goods); $orderGoods['goodsImage']=\Our\ImageUtil::getGoodsImgUrl($orderGoods['goodsImagePath'],\Our\ImageConst::goods);
unset($orderGoods['goodsImagePath']); unset($orderGoods['goodsImagePath']);
array_push($orderGoodses,$orderGoods); array_push($orderGoodses,$orderGoods);
......
...@@ -102,7 +102,6 @@ class MemberModel extends \DAO\AbstractModel ...@@ -102,7 +102,6 @@ class MemberModel extends \DAO\AbstractModel
$this->setDb(\Our\DbNameConst::masterDBConnectName); $this->setDb(\Our\DbNameConst::masterDBConnectName);
$result = $this->db->update($this->_tableName)->rows($data)->where(array('member_id' => $memberId))->execute(); $result = $this->db->update($this->_tableName)->rows($data)->where(array('member_id' => $memberId))->execute();
if ($result) { if ($result) {
$memberDb0Redis = \Redis\Db0\MemberRedisModel::getInstance(); $memberDb0Redis = \Redis\Db0\MemberRedisModel::getInstance();
$member = $data; $member = $data;
if (isset($member['member_avatar']) && $member['member_avatar']) { if (isset($member['member_avatar']) && $member['member_avatar']) {
......
...@@ -168,10 +168,10 @@ class OrderGoodsModel extends \DAO\AbstractModel { ...@@ -168,10 +168,10 @@ class OrderGoodsModel extends \DAO\AbstractModel {
public function insertAll($datas){ public function insertAll($datas){
$this->setDb(\Our\DbNameConst::masterDBConnectName); $this->setDb(\Our\DbNameConst::masterDBConnectName);
$error = 0; $error = 0;
$baseSql = "insert IGNORE into {$this->_tableName}(order_id,store_id,goods_id,goods_name,goods_num,goods_image,goods_price,goods_pay_price,buyer_id,snapshot_id,goods_spec,goods_commonid,gc_id,gc_id_1,gc_id_2,gc_id_3,gmt_create,gmt_update,sale_act_id,sale_id) values"; $baseSql = "insert IGNORE into {$this->_tableName}(order_id,store_id,goods_id,goods_name,goods_num,goods_image,goods_price,goods_pay_price,buyer_id,snapshot_id,goods_spec,goods_commonid,gc_id,gc_id_1,gc_id_2,gc_id_3,gmt_create,gmt_update,sale_act_id,sale_id,goods_group) values";
$insertAllSql = $baseSql; $insertAllSql = $baseSql;
for ($i = 0; $i < count($datas); $i++) { for ($i = 0; $i < count($datas); $i++) {
$addSql = \Our\Common::format("('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}','{9}','{10}','{11}','{12}','{13}','{14}','{15}','{16}','{17}','{18}','{19}'),", $datas[$i]['order_id'], $datas[$i]['store_id'], $datas[$i]['goods_id'], $datas[$i]['goods_name'], $datas[$i]['goods_num'], $datas[$i]['goods_image'], $datas[$i]['goods_price'], $datas[$i]['goods_pay_price'], $datas[$i]['buyer_id'], $datas[$i]['snapshot_id'], $datas[$i]['goods_spec'], $datas[$i]['goods_commonid'], $datas[$i]['gc_id'], $datas[$i]['gc_id_1'], $datas[$i]['gc_id_2'], $datas[$i]['gc_id_3'], $datas[$i]['gmt_create'], $datas[$i]['gmt_update'], $datas[$i]['sale_act_id'], $datas[$i]['sale_id']); $addSql = \Our\Common::format("('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}','{9}','{10}','{11}','{12}','{13}','{14}','{15}','{16}','{17}','{18}','{19}','{20}'),", $datas[$i]['order_id'], $datas[$i]['store_id'], $datas[$i]['goods_id'], $datas[$i]['goods_name'], $datas[$i]['goods_num'], $datas[$i]['goods_image'], $datas[$i]['goods_price'], $datas[$i]['goods_pay_price'], $datas[$i]['buyer_id'], $datas[$i]['snapshot_id'], $datas[$i]['goods_spec'], $datas[$i]['goods_commonid'], $datas[$i]['gc_id'], $datas[$i]['gc_id_1'], $datas[$i]['gc_id_2'], $datas[$i]['gc_id_3'], $datas[$i]['gmt_create'], $datas[$i]['gmt_update'], $datas[$i]['sale_act_id'], $datas[$i]['sale_id'],$datas[$i]['goods_group']);
$insertAllSql .= $addSql; $insertAllSql .= $addSql;
if ($i % 1000 == 0 && $i != 0) { if ($i % 1000 == 0 && $i != 0) {
$insertAllSql = rtrim($insertAllSql, ','); $insertAllSql = rtrim($insertAllSql, ',');
......
<?php
namespace Elastics;
use Elasticsearch\ClientBuilder;
use Error\CodeConfigModel;
use Error\ErrorModel;
use Our\ApiConst;
use Our\NameConst;
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/8/17
* Time: 15:11
*/
class ElasticsToolModel
{
protected $dbName;
protected $tbName;
protected $client;
protected function __construct($dbName, $tbName)
{
$elasticConfig = \Our\Common::getConfig(NameConst::elasticName);
$configArray = array(
'host' => $elasticConfig->host,
'port' => $elasticConfig->port,
'scheme' => $elasticConfig->scheme
);
try {
$this->dbName = $dbName;
$this->tbName = $tbName;
$this->client = ClientBuilder::create()->setHosts($configArray)->build();
} catch (\Exception $e) {
ErrorModel::throwException(CodeConfigModel::elasticsError);
}
}
protected function initParams()
{
return [
'index' => $this->dbName,
'type' => $this->tbName
];
}
/**
* 创建索引 结果["acknowledged": true]
*/
public function createIndexDetail()
{
$params = [
'index' => $this->dbName, //索引名称
'body' => [
'settings' => [ //配置
'number_of_shards' => 3,//主分片数
'number_of_replicas' => 1 //主分片的副本数
],
'mappings' => [ //映射
'_default_' => [ //默认配置,每个类型缺省的配置使用默认配置
'_source' => [ // 存储原始文档
'enabled' => 'true'
],
'properties' => [ //配置数据结构与类型
'name' => [ //字段1
'type' => 'string',//类型 string、integer、float、double、boolean、date
'index' => 'analyzed',//索引是否精确值 analyzed not_analyzed
],
'age' => [ //字段2
'type' => 'integer',
],
'sex' => [ //字段3
'type' => 'string',
'index' => 'not_analyzed',
],
]
],
$this->tbName=> [
'properties' => [
'phone' => [
'type' => 'string',
],
]
],
],
]
];
$res = $this->client->indices()->create($params);
return $res;
}
/*
* 陈传文
* 创建索引在设置mapping之前要创建索引
*
*
*
* */
public function createIndex()
{
try {
$indexParams = [
'index' => $this->dbName,
];
$r = $this->client->indices()->create($indexParams);
return $r;
} catch (\Exception $e) {
ErrorModel::throwException(CodeConfigModel::elasticsError);
}
}
// public function create_index()
// {
// $indexParams['index'] = 'my_index';
// $indexParams['type'] = 'my_index';
// $indexParams['body']['settings']['number_of_shards'] = 2;
// $indexParams['body']['settings']['number_of_replicas'] = 0;
// $this->client->create($indexParams);
// }
public function add_document()
{
$params = array();
$params['body'] = array(
'testField' => 'dfdsfdsf'
);
$params['index'] = 'my_index';
$params['type'] = 'my_index';
$params['id'] = 'w1231313';
$ret = $this->client->index($params);
}
public function delete_index()
{
$deleteParams['index'] = 'my_index';
$this->client->indices()->delete($deleteParams);
}
public function deleteDocumentById($docId)
{
$deleteParams = array();
$deleteParams['index'] = $this->dbName;
$deleteParams['type'] = $this->tbName;
$deleteParams['id'] = $docId;
$retDelete = $this->client->delete($deleteParams);
return $retDelete;
}
public function update_document()
{
$updateParams = array();
$updateParams['index'] = 'my_index';
$updateParams['type'] = 'my_index';
$updateParams['id'] = 'my_id';
$updateParams['body']['doc']['asas'] = '111111';
$response = $this->client->update($updateParams);
}
//一般传where就可以了,
public function searchMatch($where,$pageIndex=ApiConst::pageIndex,$pageSize=ApiConst::pageSize,$sort=array('_score' => array('order' => 'desc')))
{
$searchParams['index'] = $this->dbName;
$searchParams['type'] = $this->tbName;
$from=($pageIndex)*$pageSize;
$searchParams['from'] = $from;
$searchParams['size'] = $pageSize;
$searchParams['sort'] =$sort;
$searchParams['body']=array(
'query'=>array('match'=>$where),
);
$retDoc = $this->client->search($searchParams);
if(!isset($retDoc['hits'])){
ErrorModel::throwException(CodeConfigModel::elasticsError);
}
$htis=$retDoc['hits']['hits'];
$returnData['list']=array_column($htis,'_source');
$returnData['total']=$retDoc['hits']['total'];
return $returnData;
}
public function getDocById($id)
{
$getParams = array();
$getParams['index'] = $this->dbName;
$getParams['type'] = $this->tbName;
$getParams['id'] = $id;
$retDoc = $this->client->get($getParams);
return $retDoc;
}
//更新文档
public function updateDocById($id, $updateArray)
{
$params = [
'index' => $this->dbName,
'type' => $this->tbName,
'id' => $id,
'body' => [
$updateArray
]
];
$res = $this->client->update($params);
return $res;
}
public function deleteDocById($id)
{
$getParams = array();
$getParams['index'] = $this->dbName;
$getParams['type'] = $this->tbName;
$getParams['id'] = $id;
$retDoc = $this->client->delete($id);
return $retDoc;
}
/**
* 删除索引
*/
public function deleteIndex()
{
$params = [
'index' => $this->dbName
];
$res = $this->client->indices()->delete($params);
return $res;
}
/**
* 删除索引
*/
public function deleteIndexType()
{
$params = [
'index' => $this->dbName,
'type' => $this->tbName
];
$res = $this->client->indices()->delete($params);
return $res;
}
/**
* 删除索引
*/
public function createDocument($row)
{
$params = [
'index' => $this->dbName,
'type' => $this->tbName,
'body' => $row
];
$res = $this->client->index($params);
return $res;
}
//插入多条 Document:
public function postBulkDoc($rows){
foreach($rows as $row){
$params['body'][] = [
'index' => [
'_index' => $this->dbName,
'_type' => $this->tbName,
]
];
$params['body'][]=$row;
}
$res = $this->client->bulk($params);
return $res;
}
public function createIkField(){
$params = [
'index' => $this->dbName, //索引名称
'body' => [
'settings' => [ //配置
'analysis' => array(
'analyzer'=>array(
'ik'=>[
'tokenizer'=>'ik_max_word',
]
)
),
],
'mappings' => [ //映射
$this->tbName => [ //默认配置,每个类型缺省的配置使用默认配置
'dynamic' => [ // 存储原始文档
'enabled' => 'true'
],
'properties' => [ //配置数据结构与类型
'goodsName' => [ //字段1
"type" =>"string",
"analyzer"=> "ik_max_word"
],
]
],
],
]
];
$res = $this->client->indices()->create($params);
return $res;
}
//添加属性
public function putMappings($column)
{
$params = [
'index' => $this->dbName,
'type' => $this->tbName,
'body' => [
$this->tbName => [
'properties' => [
$column
]
]
]
];
$res = $this->client->indices()->putMapping($params);
return $res;
}
public function searchDoc($query)
{
$params = [
'index' => $this->dbName,
'type' => $this->tbName,
'body' => [
'query' => $query
]
];
$res = $this->client->search($params);
return $res;
}
//查看mapping
public function getMappings()
{
$params = [
'index' =>$this->dbName,
];
$res = $this->es->indices()->getMapping($params);
return $res;
}
/**
* 类实例
*
* @var \DAO\UserModel
*/
private static $_instance = null;
/**
* 单例模式获取类实例
*
*/
public static function getInstance($type, $index = NameConst::shopkeeper)
{
if (!(self::$_instance instanceof self)) {
self::$_instance = new self($index, $type);
}
return self::$_instance;
}
}
\ No newline at end of file
<?php
namespace DAO;
use Elasticsearch\ClientBuilder;
use Error\CodeConfigModel;
use Error\ErrorModel;
use Our\NameConst;
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/8/17
* Time: 15:11
*/
class ElasticsTool{
protected $dbName;
protected $tbName;
protected $client;
protected function __construct($dbName,$tbName)
{
$elasticConfig=\Our\Common::getConfig(NameConst::elasticName);
$configArray=array(
'host' => $elasticConfig->host,
'port' => $elasticConfig->port,
'scheme' => $elasticConfig->scheme
);
try{
$this->dbName=$dbName;
$this->tbName=$tbName;
$this->client =ClientBuilder::create()->setHosts($configArray)->build();
}catch(\Exception $e){
ErrorModel::throwException(CodeConfigModel::elasticsError);
}
}
protected function initParams(){
return [
'index'=>$this->dbName,
'type'=>$this->tbName
];
}
/*
* 陈传文
* 创建索引在设置mapping之前要创建索引
*
*
*
* */
public function createIndex(){
try{
$indexParams=[
'index'=>$this->dbName,
];
$r=$this->client->indices()->create($indexParams);
}catch(\Exception $e){
ErrorModel::throwException(CodeConfigModel::elasticsError);
}
}
}
\ No newline at end of file
...@@ -89,6 +89,7 @@ class CodeConfigModel { ...@@ -89,6 +89,7 @@ class CodeConfigModel {
const updateMobileMembmerFailed = 10076; const updateMobileMembmerFailed = 10076;
const updateMobileMembmerMappingFailed = 10077; const updateMobileMembmerMappingFailed = 10077;
const currentMobileHasBeenBind = 10078; const currentMobileHasBeenBind = 10078;
const otherDriverLogin=10105;
//访问错误 //访问错误
const illegalAccess=200001; const illegalAccess=200001;
...@@ -261,6 +262,7 @@ class CodeConfigModel { ...@@ -261,6 +262,7 @@ class CodeConfigModel {
const notExistOrderGoods=300110; const notExistOrderGoods=300110;
const notExsitDeliver=300111; const notExsitDeliver=300111;
const notExsitOrder=300112; const notExsitOrder=300112;
const alreadyExsitRefundGoods=300113;
//店铺相关错误码 //店铺相关错误码
//商品分类 //商品分类
...@@ -652,6 +654,7 @@ class CodeConfigModel { ...@@ -652,6 +654,7 @@ class CodeConfigModel {
self::deliverError=>'快递跟踪失败,订单状态有误', self::deliverError=>'快递跟踪失败,订单状态有误',
self::notExsitDeliver=>'配送单不存在', self::notExsitDeliver=>'配送单不存在',
self::notExsitOrder=>'订单不存在', self::notExsitOrder=>'订单不存在',
self::alreadyExsitRefundGoods=>'退款订单已经存在',
self::deleteError=>'放入回收站失败,订单状态有误', self::deleteError=>'放入回收站失败,订单状态有误',
self::restoreError=>'永久删除、从回收站还原失败,订单状态有误', self::restoreError=>'永久删除、从回收站还原失败,订单状态有误',
self::shareError=>'分享失败,订单状态有误', self::shareError=>'分享失败,订单状态有误',
...@@ -741,6 +744,7 @@ class CodeConfigModel { ...@@ -741,6 +744,7 @@ class CodeConfigModel {
self::updateMobileMembmerFailed => '更新手机号对应会员信息失败', self::updateMobileMembmerFailed => '更新手机号对应会员信息失败',
self::updateMobileMembmerMappingFailed => '更新手机号码对应会员mapping信息失败', self::updateMobileMembmerMappingFailed => '更新手机号码对应会员mapping信息失败',
self::currentMobileHasBeenBind => '当前手机号码已经绑定其他微信,如需绑定,请先手机号码登录app进行微信解绑', self::currentMobileHasBeenBind => '当前手机号码已经绑定其他微信,如需绑定,请先手机号码登录app进行微信解绑',
self::otherDriverLogin=>'当前用户已被其他设备登录,请重新登录',
self::elasticsError=>'全文索引连接出错' self::elasticsError=>'全文索引连接出错'
); );
} }
......
<!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="/search/createIkIndex" method="post">
用户登录状态key:<input name="data[key]" value="52da049f7e2fbf0e10da32dfe909850e"/><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="/search/createIndex" method="post">
用户登录状态key:<input name="data[key]" value="52da049f7e2fbf0e10da32dfe909850e"/><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="/search/insertRow" method="post">
用户登录状态key:<input name="data[key]" value="52da049f7e2fbf0e10da32dfe909850e"/><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="/search/search" method="post">
用户登录状态key:<input name="data[key]" value="52da049f7e2fbf0e10da32dfe909850e"/><br />
<p id="img_area"></p>
<input type="submit" value="提交">
</form>
</body>
</html>
\ No newline at end of file
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
用户登录状态key:<input name="data[key]" value="ceb72deab920ac0edb7272b2ed9dfa1e"/><br /> 用户登录状态key:<input name="data[key]" value="ceb72deab920ac0edb7272b2ed9dfa1e"/><br />
配送订单id:<input name="data[id]" value="12"/><br /> 配送订单id:<input name="data[id]" value="12"/><br />
配送订单id:<input name="data[debug]" value="1"/><br />
<p id="img_area"></p> <p id="img_area"></p>
<input type="submit" value="提交"> <input type="submit" value="提交">
</form> </form>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
</head> </head>
<body> <body>
<form action="/order/getRefundDetail" method="post"> <form action="/order/getRefundDetail" method="post">
用户登录状态key:<input name="data[key]" value="ceb72deab920ac0edb7272b2ed9dfa1e"/><br /> 用户登录状态key:<input name="data[key]" value="52da049f7e2fbf0e10da32dfe909850e"/><br />
退款refundId:<input name="data[refundId]" value="316574"/><br /> 退款refundId:<input name="data[refundId]" value="8"/><br />
<p id="img_area"></p> <p id="img_area"></p>
<input type="submit" value="提交"> <input type="submit" value="提交">
</form> </form>
......
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