You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
873 B
29 lines
873 B
<?php
|
|
|
|
defined('IN_IA') or exit('Access Denied');
|
|
|
|
class DefaultModuleProcessor extends WeModuleProcessor {
|
|
public function respond() {
|
|
global $_W, $engine;
|
|
if ('trace' == $this->message['type']
|
|
|| 'view_miniprogram' == $this->message['event']
|
|
|| 'VIEW' == $this->message['event']
|
|
) {
|
|
return $this->respText('');
|
|
}
|
|
$setting = uni_setting($_W['uniacid'], array('default'));
|
|
if (!empty($setting['default'])) {
|
|
$flag = array('image' => 'url', 'link' => 'url', 'text' => 'content');
|
|
$message = $this->message;
|
|
$message['type'] = 'text';
|
|
$message['content'] = $setting['default'];
|
|
$message['redirection'] = true;
|
|
$message['source'] = 'default';
|
|
$message['original'] = $this->message[$flag[$this->message['type']]];
|
|
$pars = $engine->analyzeText($message);
|
|
if (is_array($pars)) {
|
|
return array('params' => $pars);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|