This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Libs; | |
use Illuminate\Support\Facades\Redis; | |
class RedisLib | |
{ | |
/** | |
* 加锁 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function () { | |
// ajax 全局设置 | |
$.ajaxSetup({ | |
headers: { | |
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content'), | |
// 'Content-type': 'multipart/form-data', | |
// "Content-type": "multipart/form-data; charset=utf-8; boundary=" + Math.random().toString().substr(2)), | |
}, | |
beforeSend: function () { | |
$('[type="submit"]').attr('disabled', true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$spreadsheet = @IOFactory::load(storage_path('app/public/template/开票申请单模板.xls')); | |
$spreadsheet->setActiveSheetIndex(0); | |
$worksheet = $spreadsheet->getActiveSheet(); | |
$worksheet->getCell('C2')->setValue(date('Y')); | |
$worksheet->getCell('C2')->setValue(date('Y')); | |
$worksheet->getCell('E2')->setValue(date('m')); | |
$worksheet->getCell('G2')->setValue(date('d')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Libs\Sms; | |
use App\Libs\Sms\Sms; | |
use App\Libs\RedisLib; | |
class SmsVerificationCode | |
{ | |
protected $seedLimit = 60; |
NewerOlder