SystemVerifyOrder.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace app\adminapi\controller\v1\merchant;
  3. use app\adminapi\controller\AuthController;
  4. use app\models\store\StoreOrder;
  5. use crmeb\services\UtilService as Util;
  6. class SystemVerifyOrder extends AuthController
  7. {
  8. /**
  9. * 获取核销订单列表
  10. * return json
  11. */
  12. public function list()
  13. {
  14. $where = Util::getMore([
  15. ['data', ''],
  16. ['real_name', ''],
  17. ['store_id', ''],
  18. ['page', 1],
  19. ['limit', 20],
  20. ]);
  21. $where['mer_id'] = $this->merId ?: '';
  22. return $this->success(StoreOrder::VerifyOrder($where));
  23. }
  24. /**
  25. * 获取核销订单头部
  26. * @return mixed
  27. */
  28. public function getVerifyBadge()
  29. {
  30. $where = Util::postMore([
  31. ['real_name', ''],
  32. ['is_del', 0],
  33. ['data', ''],
  34. ['store_id', ''],
  35. ]);
  36. $where['mer_id'] = $this->merId ?: '';
  37. return $this->success(StoreOrder::getVerifyBadge($where));
  38. }
  39. /**
  40. * 订单列表推荐人详细
  41. * @param $uid
  42. * @return mixed
  43. * @throws \think\db\exception\DataNotFoundException
  44. * @throws \think\db\exception\DbException
  45. * @throws \think\db\exception\ModelNotFoundException
  46. */
  47. public function order_spread_user($uid)
  48. {
  49. return $this->success(StoreOrder::order_spread_user($uid));
  50. }
  51. }