|
|
@ -7,22 +7,35 @@ use Illuminate\Foundation\Bus\DispatchesJobs; |
|
|
use Illuminate\Foundation\Validation\ValidatesRequests; |
|
|
use Illuminate\Foundation\Validation\ValidatesRequests; |
|
|
use App\Http\Controllers\Controller as BaseController; |
|
|
use App\Http\Controllers\Controller as BaseController; |
|
|
use Illuminate\Support\Facades\Storage; |
|
|
use Illuminate\Support\Facades\Storage; |
|
|
|
|
|
use App\Models\FinancialRecord; |
|
|
|
|
|
|
|
|
class TestController extends BaseController |
|
|
class TestController extends BaseController |
|
|
{ |
|
|
{ |
|
|
public function Test(){ |
|
|
public function Test(){ |
|
|
$ret = null; |
|
|
$ret = null; |
|
|
try { |
|
|
|
|
|
//code...
|
|
|
|
|
|
$ret = Storage::disk('oss')->put('test_file.txt', 'Contents'); |
|
|
|
|
|
|
|
|
|
|
|
} catch (\Throwable $th) { |
|
|
|
|
|
//throw $th;
|
|
|
|
|
|
dd($th); |
|
|
|
|
|
} |
|
|
|
|
|
// $ret = Storage::get('test_file.txt');
|
|
|
|
|
|
|
|
|
// dump(FinancialRecord::where('id',1));
|
|
|
|
|
|
// $ret = FinancialRecord::getFinancialRecordModel(1);
|
|
|
|
|
|
|
|
|
|
|
|
// $s = $ret::where('id',1)->first();
|
|
|
|
|
|
// dump($s);
|
|
|
|
|
|
|
|
|
|
|
|
// $ret = FinancialRecord::getFinancialRecordModel(2);
|
|
|
|
|
|
// $s = $ret::where('id',1)->first();
|
|
|
|
|
|
// dump($s);
|
|
|
|
|
|
|
|
|
|
|
|
// $ret = FinancialRecord::getFinancialRecordModel(3);
|
|
|
|
|
|
// $s = $ret::where('id',1)->first();
|
|
|
|
|
|
// dump($s);
|
|
|
|
|
|
|
|
|
|
|
|
// $ret = FinancialRecord::getFinancialRecordModel(4);
|
|
|
|
|
|
// $s = $ret::where('id',1)->first();
|
|
|
|
|
|
// dump($s);
|
|
|
|
|
|
|
|
|
|
|
|
$ret = FinancialRecord::getFinancialRecordModel(5); |
|
|
|
|
|
$s = $ret::where('id',1)->first(); |
|
|
|
|
|
dump($s); |
|
|
|
|
|
|
|
|
dd($ret); |
|
|
|
|
|
return 1; |
|
|
return 1; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |