|
@@ -209,6 +209,22 @@ class Journal extends Core
|
|
|
# 获取活动说明
|
|
|
$this->data['active'] = Dever::db('journal/active')->one(array('id' => $id));
|
|
|
|
|
|
+
|
|
|
+ if (!$this->data['active']) {
|
|
|
+ return $this->data;
|
|
|
+ }
|
|
|
+
|
|
|
+ $time = time();
|
|
|
+ if ($this->data['active'] && $time >= $this->data['active']['start'] && $time < $this->data['active']['end']) {
|
|
|
+ $this->data['active']['status'] = 1;
|
|
|
+ } else {
|
|
|
+ $this->data['active']['status'] = 2;
|
|
|
+ }
|
|
|
+
|
|
|
+ if ($time < $this->data['active']['start']) {
|
|
|
+ $this->data['active']['status'] = 3;
|
|
|
+ }
|
|
|
+
|
|
|
$this->data['active']['buy_title'] = '';
|
|
|
$this->data['active']['buy_desc'] = '';
|
|
|
if ($buy) {
|