Order.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace app\index\controller;
  3. use app\index\model\OrderModel;
  4. use think\Controller;
  5. class Order extends Controller
  6. {
  7. public function check_rcode(){
  8. $order_sn = input('param.order_sn');
  9. $ret = ['check' => true,'order_sn' => $order_sn];
  10. json_success($ret);
  11. }
  12. public function order_bind_code(){
  13. $order_sn = input('param.order_sn');
  14. $OrderModel = new OrderModel();
  15. $order = $OrderModel->getOne($order_sn);
  16. if(empty($order)){
  17. return json(json_error_exception(1008));
  18. }
  19. $code = $this->createRandCode($order_sn);
  20. }
  21. public function createRandCode($order_sn){
  22. }
  23. }
  24. application/index/controller/Base.php application/index/controller/Box.php application/index/controller/Cabinet.php application/index/controller/Index.php application/index/controller/Node.php application/index/controller/Order.php
  25. application/index/controller/Role.php
  26. application/index/model/BoxModel.php
  27. application/index/model/CabinetModel.php
  28. application/index/model/NodeModel.php
  29. application/index/model/OrderModel.php
  30. application/index/model/RoleModel.php
  31. application/index/validate/CabinetValidate.php
  32. application/index/validate/RoleValidate.php
  33. application/index/validate/UserValidate.php
  34. conf/php-fpm/docker-php-fpm-start
  35. config/errorCode.php
  36. docker-compose-windows.yml
  37. route/route.php