链街Dcat后台
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.

41 lines
1.1 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
  4. use Illuminate\Foundation\Bus\DispatchesJobs;
  5. use Illuminate\Foundation\Validation\ValidatesRequests;
  6. use App\Http\Controllers\Controller as BaseController;
  7. use Illuminate\Support\Facades\Storage;
  8. use App\Models\FinancialRecord;
  9. class TestController extends BaseController
  10. {
  11. public function Test(){
  12. $ret = null;
  13. // dump(FinancialRecord::where('id',1));
  14. // $ret = FinancialRecord::getFinancialRecordModel(1);
  15. // $s = $ret::where('id',1)->first();
  16. // dump($s);
  17. // $ret = FinancialRecord::getFinancialRecordModel(2);
  18. // $s = $ret::where('id',1)->first();
  19. // dump($s);
  20. // $ret = FinancialRecord::getFinancialRecordModel(3);
  21. // $s = $ret::where('id',1)->first();
  22. // dump($s);
  23. // $ret = FinancialRecord::getFinancialRecordModel(4);
  24. // $s = $ret::where('id',1)->first();
  25. // dump($s);
  26. $ret = FinancialRecord::getFinancialRecordModel(5);
  27. $s = $ret::where('id',1)->first();
  28. dump($s);
  29. return 1;
  30. }
  31. }