|
@@ -351,4 +351,27 @@ class WechatMenuService extends BaseService
|
|
|
return "操作成功";
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 点击事件回复
|
|
|
+ * name: getClickInfoContent
|
|
|
+ * @param $wechatInfoId
|
|
|
+ * date 2023/07/12 16:37
|
|
|
+ */
|
|
|
+ public static function getClickInfoContent($wechatAppId,$key)
|
|
|
+ {
|
|
|
+ $info = WechatAccountMenuDetail::query()::where([
|
|
|
+ 'status' => 1,
|
|
|
+ 'wechat_authorization_info_id' => $wechatAppId,
|
|
|
+ ])->first();
|
|
|
+ if (is_empty($info)){
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ $content = $info->msg_content;
|
|
|
+ if (empty($content)){
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+ $content = getProp($content,$key);
|
|
|
+ return $content ?: "";
|
|
|
+ }
|
|
|
+
|
|
|
}
|