|
|
@@ -24,7 +24,7 @@ class CheckWx
|
|
|
if (!isset($data['openid'])) return response()->json(['code'=> 202,'msg'=>'缺少openid','data'=>null]);
|
|
|
$openid = $data['openid'];
|
|
|
|
|
|
- $tree_type = $data['tree_type'];
|
|
|
+ $tree_type = $data['tree_type'] ?? null;
|
|
|
if (! isset(SysMenu::tree[$tree_type])) return response()->json(['code' => 1,'msg' => '缺少tree_type','data' => null]);
|
|
|
$title = SysMenu::tree[$tree_type];
|
|
|
|