Test.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\controller\store;
  12. use app\services\order\cashier\CashierOrderServices;
  13. use app\services\other\CityAreaServices;
  14. use app\services\other\SystemCityServices;
  15. use crmeb\services\HttpService;
  16. use crmeb\utils\Captcha;
  17. class Test
  18. {
  19. public function index(CashierOrderServices $services)
  20. {
  21. dump($services->mpSort([
  22. [
  23. 'coupon_price' => '50.00',
  24. 'id' => 1,
  25. ],
  26. [
  27. 'coupon_price' => '10.00',
  28. 'id' => 3,
  29. ],
  30. [
  31. 'coupon_price' => '100.00',
  32. 'id' => 5,
  33. ],
  34. [
  35. 'coupon_price' => '20.00',
  36. 'id' => 2,
  37. ]
  38. ], 'coupon_price'));
  39. }
  40. public function code()
  41. {
  42. return app()->make(Captcha::class)->create();
  43. }
  44. }