|
|
@@ -304,68 +304,6 @@ sql;
|
|
|
dd($uploaded . '/' . $count);
|
|
|
}
|
|
|
|
|
|
- function tlog(Request $request)
|
|
|
- {
|
|
|
- app('LogService')->log(__METHOD__, 'cczdelme' . __FUNCTION__, json_encode($request->all()), null);
|
|
|
- }
|
|
|
-
|
|
|
- function setCache(Request $request)
|
|
|
- {
|
|
|
- $today = now();
|
|
|
- Cache::put('storedTest', $today);
|
|
|
- return "cacheing:'$today'<script>localStorage.setItem('storedTest','{$today}')</script>";
|
|
|
- }
|
|
|
-
|
|
|
- function getCache(Request $request)
|
|
|
- {
|
|
|
- $cache = Cache::get('storedTest');
|
|
|
- return "cacheing get:'$cache'<script>document.write('<br>localStorage:'+localStorage.getItem('storedTest'))</script>";
|
|
|
- }
|
|
|
-
|
|
|
- function t1(Request $request)
|
|
|
- {
|
|
|
- $times=12345;
|
|
|
- $start_at = microtime(true);
|
|
|
- for($i=0;$i<$times;$i++){
|
|
|
- Cache::put(md5('k_delme'.$i), 'a');
|
|
|
- }
|
|
|
- echo microtime(true)-$start_at, '<br>';
|
|
|
-
|
|
|
- $start_at = microtime(true);
|
|
|
- for($i=0;$i<$times;$i++){
|
|
|
- Cache::get(md5('k_delme'.$i));
|
|
|
- }
|
|
|
- echo microtime(true)-$start_at, '<br>';
|
|
|
-
|
|
|
- $start_at = microtime(true);
|
|
|
- for($i=0;$i<$times;$i++){
|
|
|
- Cache::pull(md5('k_delme'.$i));
|
|
|
- }
|
|
|
- echo microtime(true)-$start_at, '<br>';
|
|
|
- for($i=0;$i<$times;$i++){
|
|
|
- Redis::set(md5('k_delme'.$i), 'a');
|
|
|
- }
|
|
|
- echo microtime(true)-$start_at, '<br>';
|
|
|
-
|
|
|
- $start_at = microtime(true);
|
|
|
- for($i=0;$i<$times;$i++){
|
|
|
- Redis::get(md5('k_delme'.$i));
|
|
|
- }
|
|
|
- echo microtime(true)-$start_at, '<br>';
|
|
|
-
|
|
|
- $start_at = microtime(true);
|
|
|
- for($i=0;$i<$times;$i++){
|
|
|
- Redis::del(md5('k_delme'.$i));
|
|
|
- }
|
|
|
- echo microtime(true)-$start_at, '<br>';
|
|
|
- }
|
|
|
-
|
|
|
- function packageT(Request $request)
|
|
|
- {
|
|
|
- $package = Package::where('created_at', '<', '2020-07-08')->whereNotNull('logistic_number')->first();
|
|
|
- $package->fetchLogistic();
|
|
|
- }
|
|
|
-
|
|
|
function injectJS(Request $request)
|
|
|
{
|
|
|
$items = RejectedBillItem::whereHas('rejectedBill', function ($query) {
|