|
|
@@ -101,6 +101,26 @@ class ActivityService extends BaseService
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 详情
|
|
|
+ * @return array
|
|
|
+ */
|
|
|
+ public function getInfo(){
|
|
|
+ // 记录ID
|
|
|
+ $id = request()->input("id", 0);
|
|
|
+ $info = [];
|
|
|
+ if ($id) {
|
|
|
+ $info = $this->model->getInfo($id);
|
|
|
+ }
|
|
|
+ if($info){
|
|
|
+ if(isset($info['content'])){
|
|
|
+ $info['content'] = $info['content']? str_replace("\n","<br/>", $info['content']) :'';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return message(MESSAGE_OK, true, $info);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 添加或编辑
|
|
|
* @return array
|
|
|
* @since 2020/11/11
|