|
|
@ -2,11 +2,9 @@ |
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Api; |
|
|
namespace App\Http\Controllers\Api; |
|
|
use App\Http\Controllers\Controller; |
|
|
use App\Http\Controllers\Controller; |
|
|
use App\Models\AdminSetting; |
|
|
|
|
|
use App\Models\Agent; |
|
|
use App\Models\Agent; |
|
|
use App\Models\MiniProgramUploadLog; |
|
|
use App\Models\MiniProgramUploadLog; |
|
|
use App\Service\OpenPlatform; |
|
|
use App\Service\OpenPlatform; |
|
|
use EasyWeChat\Factory; |
|
|
|
|
|
use Illuminate\Http\Request; |
|
|
use Illuminate\Http\Request; |
|
|
use Illuminate\Support\Facades\DB; |
|
|
use Illuminate\Support\Facades\DB; |
|
|
use Illuminate\Support\Facades\Log; |
|
|
use Illuminate\Support\Facades\Log; |
|
|
@ -29,6 +27,10 @@ class MiniProgramController extends Controller |
|
|
'created_at' => now(), |
|
|
'created_at' => now(), |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
Log::debug('小程序event调试[all]:', $request->all()); |
|
|
|
|
|
Log::debug('小程序event调试[getContent]:' . $request->getContent()); |
|
|
|
|
|
Log::debug('小程序event调试[getContent-json]:' . json_encode($request->getContent())); |
|
|
|
|
|
|
|
|
$openPlatform = new OpenPlatform(); |
|
|
$openPlatform = new OpenPlatform(); |
|
|
$server = $openPlatform->server(); |
|
|
$server = $openPlatform->server(); |
|
|
|
|
|
|
|
|
@ -44,6 +46,8 @@ class MiniProgramController extends Controller |
|
|
'created_at' => now() |
|
|
'created_at' => now() |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
|
|
|
Log::debug('小程序event调试[message]:', $message); |
|
|
|
|
|
|
|
|
if (isset($message['InfoType'], $message['status'], $message['msg'], $message['info']) && $message['status'] == 0 && $message['msg'] == 'OK') { |
|
|
if (isset($message['InfoType'], $message['status'], $message['msg'], $message['info']) && $message['status'] == 0 && $message['msg'] == 'OK') { |
|
|
//注册成功授权通知
|
|
|
//注册成功授权通知
|
|
|
if ($message['InfoType'] == 'notify_third_fasteregister') { |
|
|
if ($message['InfoType'] == 'notify_third_fasteregister') { |
|
|
|