Authored by 郝肖肖

LibModels 中的Wap 替换成 Web

... ... @@ -147,4 +147,24 @@ class OrderData
// 调用接口获得数据
return Yohobuy::post(Yohobuy::API_URL, $param);
}
/**
* 查看订单详情
*
* @param string $orderCode 订单号
* @param int $uid 用户ID
* @param string $sessionKey 用户会话
* @return array
*/
public static function viewOrderData($orderCode, $uid, $sessionKey)
{
$param = Yohobuy::param();
$param['method'] = 'app.SpaceOrders.info';
$param['order_code'] = $orderCode;
$param['uid'] = $uid;
$param['session_key'] = $sessionKey;
$param['client_secret'] = Sign::getSign($param);
return Yohobuy::get(Yohobuy::API_URL, $param);
}
}
... ...
... ... @@ -6,7 +6,7 @@ use LibModels\Web\Home\ReturnsData;
use WebPlugin\Helpers;
use WebPlugin\HelperSearch;
use WebPlugin\Images;
use LibModels\Wap\Home\OrderData;
use LibModels\Web\Home\OrderData;
use Api\Yohobuy;
/**
... ...
... ... @@ -5,8 +5,6 @@ use WebPlugin\Helpers;
use Home\UserModel;
use Home\FavoriteModel;
use LibModels\Web\Product\FavoriteData;
use LibModels\Wap\Home\UserData;
use WebPlugin\Images;
/**
* 商品收藏
... ...
<?php
use Action\WebAction;
use Passport\PassportModel;
use LibModels\Wap\Passport\RegData;
use LibModels\Web\Passport\RegData;
use WebPlugin\Helpers;
class EmailbindController extends WebAction
... ...
... ... @@ -2,7 +2,7 @@
use Action\WebAction;
use Passport\PassportModel;
use LibModels\Wap\Passport\RegData;
use LibModels\Web\Passport\RegData;
use WebPlugin\Helpers;
class ThirdloginController extends WebAction
... ...