1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\shopapi\controller;
-
-
- use app\common\basics\ShopApi;
- use app\common\server\JsonServer;
- use app\shopapi\logic\VerificationLogic;
- use app\shopapi\validate\VerificationValidate;
- use app\shopapi\logic\OrderLogic;
-
-
- class Verification extends ShopApi
- {
-
-
-
- public function lists()
- {
- $params = $this->request->get();
- $result = VerificationLogic::lists($params, $this->page_no, $this->page_size, $this->shop_id);
- return JsonServer::success('获取成功', $result);
- }
-
-
-
-
- public function detail()
- {
- $params = $this->request->get();
- (new VerificationValidate())->goCheck('detail', ['shop_id' => $this->shop_id]);
- $result = VerificationLogic::detail($params, $this->shop_id);
- return JsonServer::success('', $result);
- }
-
-
-
-
- public function confirm()
- {
- $params = $this->request->post();
- (new VerificationValidate())->goCheck('confirm', ['shop_id' => $this->shop_id]);
- $result = VerificationLogic::verification($params, $this->shop);
- if(false === $result) {
- return JsonServer::error(OrderLogic::getError() ?: '操作失败');
- }
- return JsonServer::success('操作成功');
- }
-
- }
|