diff --git a/app/Controller/PurchaseLimitController.php b/app/Controller/PurchaseLimitController.php index 4e9e3fe..7bb2d22 100644 --- a/app/Controller/PurchaseLimitController.php +++ b/app/Controller/PurchaseLimitController.php @@ -34,10 +34,4 @@ class PurchaseLimitController extends BaseController return $this->success($res); } - public function test() - { - $res = $this->purchaseLimitService->PurchaseLimit($this->request->input('global_order_id')); - return $this->success($res); - } - } diff --git a/app/Service/PurchaseLimitService.php b/app/Service/PurchaseLimitService.php index 9568302..5fe5f02 100644 --- a/app/Service/PurchaseLimitService.php +++ b/app/Service/PurchaseLimitService.php @@ -101,14 +101,4 @@ class PurchaseLimitService implements PurchaseLimitServiceInterface return true; } - public function test($params) - { - $ssdb = ApplicationContext::getContainer()->get(SSDBTask::class); - //添加领取记录到ssdb - $data = [ - '620',1561, - ]; - $test = $ssdb->exec('multi_hset', SsdbKeysPrefix::PURCHASE_RECORD. date('Ymd') .'_620', $data); - return $test; - } } \ No newline at end of file diff --git a/app/Service/PurchaseLimitServiceInterface.php b/app/Service/PurchaseLimitServiceInterface.php index da0f536..9ff3184 100644 --- a/app/Service/PurchaseLimitServiceInterface.php +++ b/app/Service/PurchaseLimitServiceInterface.php @@ -14,5 +14,4 @@ interface PurchaseLimitServiceInterface public function PurchaseLimit($orderGoods); - public function test($params); } \ No newline at end of file diff --git a/config/routes.php b/config/routes.php index 6a3dc03..ca3dcf5 100644 --- a/config/routes.php +++ b/config/routes.php @@ -61,7 +61,7 @@ Router::addGroup('/v1/',function (){ //加入购物车 Router::post('ShopCar/addShopCar', 'App\Controller\ShopCarController@addShopCar'); Router::post('ShopCar/updateShopCar', 'App\Controller\ShopCarController@updateShopCar'); - Router::post('PurchaseLimit/test', 'App\Controller\PurchaseLimitController@test'); + Router::post('PurchaseLimit/delSsdbPurchaseRecord', 'App\Controller\PurchaseLimitController@delSsdbPurchaseRecord'); Router::post('PurchaseLimit/getStoreIdByMarketId', 'App\Controller\PurchaseLimitController@getStoreIdByMarketId');