You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Test.php 875B

2 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace app\controller\store;
  3. use app\services\order\cashier\CashierOrderServices;
  4. use app\services\other\CityAreaServices;
  5. use app\services\other\SystemCityServices;
  6. use crmeb\services\HttpService;
  7. use crmeb\utils\Captcha;
  8. class Test
  9. {
  10. public function index(CashierOrderServices $services)
  11. {
  12. dump($services->mpSort([
  13. [
  14. 'coupon_price' => '50.00',
  15. 'id' => 1,
  16. ],
  17. [
  18. 'coupon_price' => '10.00',
  19. 'id' => 3,
  20. ],
  21. [
  22. 'coupon_price' => '100.00',
  23. 'id' => 5,
  24. ],
  25. [
  26. 'coupon_price' => '20.00',
  27. 'id' => 2,
  28. ]
  29. ], 'coupon_price'));
  30. }
  31. public function code()
  32. {
  33. return app()->make(Captcha::class)->create();
  34. }
  35. }