TestCommand.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\Mail\ExampleEmail;
  4. use App\Models\Factoring;
  5. use App\Models\FactoringContract;
  6. use App\Models\FactoringContractFile;
  7. use App\Models\FactoringProperty;
  8. use App\Models\Firm;
  9. use App\Models\IndentNum;
  10. use App\Models\Member;
  11. use App\Models\MemberSeal;
  12. use App\Models\SignMember;
  13. use App\Models\SignSeal;
  14. use App\Models\SignSealAuth;
  15. use App\Servers\ESign\comm\EsignLogHelper;
  16. use App\Servers\ESign\ESignContractServer;
  17. use App\Servers\ESign\ESignFirmServer;
  18. use App\Servers\ESign\ESignServer;
  19. use App\Servers\Financing\ContractServer;
  20. use App\Servers\Financing\FinancingServer;
  21. use App\Servers\Firm\FirmServer;
  22. use App\Servers\System\EmailServer;
  23. use App\Servers\System\JobServer;
  24. use App\Servers\System\RedisDataServer;
  25. use App\Servers\System\SmsServer;
  26. use App\Servers\Wps\ExcelServer;
  27. use App\Servers\Wps\WordServer;
  28. use App\Servers\Wps\WpsServer;
  29. use Illuminate\Console\Command;
  30. use Illuminate\Support\Facades\Log;
  31. use Illuminate\Support\Facades\Storage;
  32. class TestCommand extends Command
  33. {
  34. /**
  35. * The name and signature of the console command.
  36. *
  37. * @var string
  38. */
  39. protected $signature = 'test';
  40. /**
  41. * The console command description.
  42. *
  43. * @var string
  44. */
  45. protected $description = '测试命令';
  46. /**
  47. * Create a new command instance.
  48. *
  49. * @return void
  50. */
  51. public function __construct()
  52. {
  53. parent::__construct();
  54. }
  55. /**
  56. * Execute the console command.
  57. *
  58. * @return int
  59. */
  60. public function handle()
  61. {
  62. // dd(11111);
  63. // $file_path = 'storage/contract/测试.docx';
  64. //
  65. // $json = '{"name": "江雨","text":"测试一下","phone":"13012341234"}';
  66. // $file = WordServer::creatServer()->replaceWordText($file_path,'123.docx',$json);
  67. // dd($file);
  68. // ESignContractServer::creatServer()->setContractContract(111,11);
  69. // dd(111);
  70. $content='尊敬的,您有待认证信息,点击认证 ';
  71. $r = SmsServer::creatServer()->sendContent('18323851679',$content);
  72. dd($r);
  73. $Res = ESignServer::creatServer()->personsidentityinfo(1,18323851679,'江雨',500221200002194310);
  74. dd($Res);
  75. }
  76. }