* Date: 2018-4-3 */ namespace weapp\Systemdoctor\logic; use think\Db; use think\Model; class SystemdoctorLogic { /** * 获取插件配置信息 * @return [type] [description] */ public function getConfData($code) { $row = Db::name('weapp_systemdoctor')->where('code',$code)->order('id asc')->find(); if (!empty($row['data'])) { $row['data'] = json_decode($row['data'], true); } else { $row['data'] = []; } return $row; } }