Skip to content

Instantly share code, notes, and snippets.

View xx19941215's full-sized avatar
🎯
Focusing

xiaoxiao.ust xx19941215

🎯
Focusing
View GitHub Profile
@Hanson
Hanson / LogServiceProvider.php
Created November 25, 2019 10:03
Laravel global model's log. You can rerord the admin's operation.
<?php
namespace App\Providers;
use App\Models\AdminLog;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\ServiceProvider;
class LogServiceProvider extends ServiceProvider
#!/usr/bin/env python2
# lrdcq
# usage python2 unwxapkg.py filename
import sys, os
import struct
class WxapkgFile(object):
nameLen = 0