CommissionCronTask.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. declare (strict_types=1);
  3. namespace app\command;
  4. use AdaPaySdk\Drawcash;
  5. use AdaPaySdk\PaymentConfirm;
  6. use AdaPaySdk\SettleAccount;
  7. use app\common\model\merchant\order\OrderMerchant;
  8. use app\common\model\store\order\StoreOrder;
  9. use app\common\model\user\User;
  10. use app\common\model\user\UserCertification;
  11. use app\common\repositories\merchant\order\OrderGzcRepository;
  12. use app\common\repositories\merchant\order\OrderMerchantRepository;
  13. use app\common\repositories\store\order\StoreOrderStatusRepository;
  14. use app\common\repositories\store\order\StoreRefundOrderRepository;
  15. use app\common\repositories\store\product\ProductRepository;
  16. use app\common\repositories\user\UserBillRepository;
  17. use app\common\repositories\user\UserRepository;
  18. use app\common\repositories\user\UserThirdRepository;
  19. use app\controller\api\Common;
  20. use app\controller\api\cron\CommissionCron;
  21. use app\controller\api\merchant\sxy\Access;
  22. use app\controller\api\store\product\Jd;
  23. use app\controller\api\util\Signature;
  24. use app\traits\GongApiRequest;
  25. use app\traits\GzcApiRequest;
  26. use app\traits\ShouxinyiApiRequest;
  27. use Carbon\Carbon;
  28. use think\App;
  29. use think\console\Command;
  30. use think\console\Input;
  31. use think\console\Output;
  32. use think\Exception;
  33. use think\facade\Db;
  34. use think\facade\Log;
  35. use app\common\repositories\store\order\StoreOrderRepository;
  36. use think\facade\Request;
  37. /**
  38. * Class PensionTasks
  39. * @package app\command
  40. * @author: php迷途小书童
  41. * @created: 2021/3/19 9:14
  42. */
  43. class CommissionCronTask extends Command
  44. {
  45. /**
  46. * @var string
  47. */
  48. private $appid;
  49. /**
  50. * @var string
  51. */
  52. private $appKey;
  53. /**
  54. * @var string
  55. */
  56. private $secretKey;
  57. /**
  58. * @var string
  59. */
  60. private $url;
  61. protected function configure()
  62. {
  63. // 指令配置
  64. $this->setName('CommissionCronTask')
  65. ->setDescription('the CommissionCronTask command');
  66. }
  67. protected function execute(Input $input, Output $output)
  68. {
  69. $commissionCron = new CommissionCron();
  70. $commissionCron->platform_income_detail_get();
  71. }
  72. }