- 提问:{{ item.question }}
- 回复:{{ answer }}
+ 提问:{{ item.question }}
+ 回复:{{ item.answer }}
|
{{ date('Y-m-d',item.create_time) }} |
diff --git a/app/Http/Web/Views/my/orders.volt b/app/Http/Web/Views/my/orders.volt
index afcd3d55..d7f5acdd 100644
--- a/app/Http/Web/Views/my/orders.volt
+++ b/app/Http/Web/Views/my/orders.volt
@@ -32,7 +32,7 @@
{{ '¥%0.2f'|format(item.amount) }}
{{ order_status(item.status) }}
-
+
diff --git a/app/Http/Web/Views/my/refunds.volt b/app/Http/Web/Views/my/refunds.volt
index 5529e412..c771d167 100644
--- a/app/Http/Web/Views/my/refunds.volt
+++ b/app/Http/Web/Views/my/refunds.volt
@@ -32,7 +32,7 @@
{{ '¥%0.2f'|format(item.amount) }}
{{ refund_status(item.status) }}
-
+
diff --git a/app/Http/Web/Views/refund/info.volt b/app/Http/Web/Views/refund/info.volt
index ecdb7318..5f8a8d85 100644
--- a/app/Http/Web/Views/refund/info.volt
+++ b/app/Http/Web/Views/refund/info.volt
@@ -21,7 +21,6 @@
-
{% if refund.status == 'approved' %}
{% endif %}
@@ -53,8 +52,6 @@
}, 1500);
}
});
- }, function () {
-
});
});
});
diff --git a/app/Services/CourseStats.php b/app/Services/CourseStat.php
similarity index 84%
rename from app/Services/CourseStats.php
rename to app/Services/CourseStat.php
index e41492a8..b5195e95 100644
--- a/app/Services/CourseStats.php
+++ b/app/Services/CourseStat.php
@@ -3,8 +3,9 @@
namespace App\Services;
use App\Repos\Course as CourseRepo;
+use App\Repos\CourseRating as CourseRatingRepo;
-class CourseStats extends Service
+class CourseStat extends Service
{
public function updateLessonCount($courseId)
@@ -39,9 +40,18 @@ class CourseStats extends Service
$course = $courseRepo->findById($courseId);
- $rating = $courseRepo->averageRating($courseId);
+ $courseRatingRepo = new CourseRatingRepo();
- $course->rating = $rating;
+ $courseRating = $courseRatingRepo->findByCourseId($course->id);
+
+ $courseRating->rating = $courseRatingRepo->averageRating($course->id);
+ $courseRating->rating1 = $courseRatingRepo->averageRating1($course->id);
+ $courseRating->rating2 = $courseRatingRepo->averageRating2($course->id);
+ $courseRating->rating3 = $courseRatingRepo->averageRating3($course->id);
+
+ $courseRating->update();
+
+ $course->rating = $courseRating->rating;
$course->update();
}
diff --git a/app/Services/Frontend/Consult/ConsultCreate.php b/app/Services/Frontend/Consult/ConsultCreate.php
index 7a591a5d..3a3269f2 100644
--- a/app/Services/Frontend/Consult/ConsultCreate.php
+++ b/app/Services/Frontend/Consult/ConsultCreate.php
@@ -79,12 +79,14 @@ class ConsultCreate extends FrontendService
protected function incrCourseConsultCount(CourseModel $course)
{
$course->consult_count += 1;
+
$course->update();
}
protected function incrChapterConsultCount(ChapterModel $chapter)
{
$chapter->consult_count += 1;
+
$chapter->update();
}
diff --git a/app/Services/Frontend/Review/ReviewCreate.php b/app/Services/Frontend/Review/ReviewCreate.php
index 54bd2f3b..71b49b2c 100644
--- a/app/Services/Frontend/Review/ReviewCreate.php
+++ b/app/Services/Frontend/Review/ReviewCreate.php
@@ -4,6 +4,7 @@ namespace App\Services\Frontend\Review;
use App\Models\Course as CourseModel;
use App\Models\Review as ReviewModel;
+use App\Services\CourseStat as CourseStatService;
use App\Services\Frontend\CourseTrait;
use App\Services\Frontend\ReviewTrait;
use App\Services\Frontend\Service as FrontendService;
@@ -45,17 +46,25 @@ class ReviewCreate extends FrontendService
$review->create($data);
- $this->updateCourseRating($course);
-
$this->incrCourseReviewCount($course);
+ $this->updateCourseRating($course->id);
+
return $review;
}
protected function incrCourseReviewCount(CourseModel $course)
{
$course->review_count += 1;
+
$course->update();
}
+ public function updateCourseRating($courseId)
+ {
+ $service = new CourseStatService();
+
+ $service->updateRating($courseId);
+ }
+
}
diff --git a/app/Services/Frontend/Review/ReviewDelete.php b/app/Services/Frontend/Review/ReviewDelete.php
index 54c011f8..0868df94 100644
--- a/app/Services/Frontend/Review/ReviewDelete.php
+++ b/app/Services/Frontend/Review/ReviewDelete.php
@@ -3,6 +3,7 @@
namespace App\Services\Frontend\Review;
use App\Models\Course as CourseModel;
+use App\Services\CourseStat as CourseStatService;
use App\Services\Frontend\CourseTrait;
use App\Services\Frontend\ReviewTrait;
use App\Services\Frontend\Service as FrontendService;
@@ -30,7 +31,7 @@ class ReviewDelete extends FrontendService
$this->decrCourseReviewCount($course);
- $this->updateCourseRating($course);
+ $this->updateCourseRating($course->id);
}
protected function decrCourseReviewCount(CourseModel $course)
@@ -41,4 +42,11 @@ class ReviewDelete extends FrontendService
}
}
+ protected function updateCourseRating($courseId)
+ {
+ $service = new CourseStatService();
+
+ $service->updateRating($courseId);
+ }
+
}
diff --git a/app/Services/Frontend/Review/ReviewUpdate.php b/app/Services/Frontend/Review/ReviewUpdate.php
index 4753ce13..e5735e2c 100644
--- a/app/Services/Frontend/Review/ReviewUpdate.php
+++ b/app/Services/Frontend/Review/ReviewUpdate.php
@@ -2,6 +2,7 @@
namespace App\Services\Frontend\Review;
+use App\Services\CourseStat as CourseStatService;
use App\Services\Frontend\CourseTrait;
use App\Services\Frontend\ReviewTrait;
use App\Services\Frontend\Service as FrontendService;
@@ -38,7 +39,14 @@ class ReviewUpdate extends FrontendService
$review->update($data);
- $this->updateCourseRating($course);
+ $this->updateCourseRating($course->id);
+ }
+
+ protected function updateCourseRating($courseId)
+ {
+ $service = new CourseStatService();
+
+ $service->updateRating($courseId);
}
}
diff --git a/app/Services/Frontend/ReviewTrait.php b/app/Services/Frontend/ReviewTrait.php
index 4f1a3ec5..09502bf8 100644
--- a/app/Services/Frontend/ReviewTrait.php
+++ b/app/Services/Frontend/ReviewTrait.php
@@ -2,8 +2,6 @@
namespace App\Services\Frontend;
-use App\Models\Course as CourseModel;
-use App\Repos\CourseRating as CourseRatingRepo;
use App\Validators\Review as ReviewValidator;
trait ReviewTrait
@@ -16,22 +14,4 @@ trait ReviewTrait
return $validator->checkReview($id);
}
- public function updateCourseRating(CourseModel $course)
- {
- $repo = new CourseRatingRepo();
-
- $courseRating = $repo->findByCourseId($course->id);
-
- $courseRating->rating = $repo->averageRating($course->id);
- $courseRating->rating1 = $repo->averageRating1($course->id);
- $courseRating->rating2 = $repo->averageRating2($course->id);
- $courseRating->rating3 = $repo->averageRating3($course->id);
-
- $courseRating->update();
-
- $course->rating = $courseRating->rating;
-
- $course->update();
- }
-
}
diff --git a/composer.json b/composer.json
index 8037183f..f6a21c26 100644
--- a/composer.json
+++ b/composer.json
@@ -20,7 +20,7 @@
"hightman/xunsearch": "^1.4.14",
"aferrandini/phpqrcode": "1.0.1",
"xiaochong0302/ip2region": "^1.0",
- "joyqi/hyper-down": "dev-master"
+ "samdark/sitemap": "^2.2"
},
"require-dev": {
"odan/phinx-migrations-generator": "^4.6",
diff --git a/composer.lock b/composer.lock
index d2cc5c9d..0cebc28f 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "d95c023895ee3acc72bcd13024da3eb3",
+ "content-hash": "c572e75b0438b57f01c4b4a6ff65f174",
"packages": [
{
"name": "aferrandini/phpqrcode",
@@ -87,16 +87,16 @@
},
"type": "library",
"extra": {
- "branch-alias": {
- "dev-master": "1.1.x-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
+ "branch-alias": {
+ "dev-master": "1.1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
@@ -564,16 +564,16 @@
},
"notification-url": "https://packagist.jp/downloads/",
"license": [
- "GPL-2.0+"
+ "GPL-2.0+"
],
- "authors": [
- {
- "name": "hightman",
- "email": "hightman@twomice.net",
- "role": "Founder and project leader"
- }
- ],
- "description": "xunsearch php sdk, include yii, yii2 supports",
+ "authors": [
+ {
+ "name": "hightman",
+ "email": "hightman@twomice.net",
+ "role": "Founder and project leader"
+ }
+ ],
+ "description": "xunsearch php sdk, include yii, yii2 supports",
"homepage": "http://www.xunsearch.com/",
"keywords": [
"search engine",
@@ -583,48 +583,6 @@
],
"time": "2019-11-01T02:17:32+00:00"
},
- {
- "name": "joyqi/hyper-down",
- "version": "dev-master",
- "source": {
- "type": "git",
- "url": "https://github.com/SegmentFault/HyperDown.git",
- "reference": "e9bf808ff8cc1736b15a669e46f1d81f77ce026b"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/SegmentFault/HyperDown/zipball/e9bf808ff8cc1736b15a669e46f1d81f77ce026b",
- "reference": "e9bf808ff8cc1736b15a669e46f1d81f77ce026b",
- "shasum": "",
- "mirrors": [
- {
- "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
- "preferred": true
- }
- ]
- },
- "require": {
- "php": ">=5.4.0"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "HyperDown\\": "./"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "BSD"
- ],
- "authors": [
- {
- "name": "joyqi",
- "email": "joyqi@segmentfault.com"
- }
- ],
- "description": "A light weight markdown parser library",
- "time": "2019-11-18T09:50:06+00:00"
- },
{
"name": "monolog/monolog",
"version": "2.0.0",
@@ -645,16 +603,16 @@
}
]
},
- "require": {
- "php": "^7.2",
- "psr/log": "^1.0.1"
- },
- "provide": {
- "psr/log-implementation": "1.0.0"
- },
- "require-dev": {
- "aws/aws-sdk-php": "^2.4.9 || ^3.0",
- "doctrine/couchdb": "~1.0@dev",
+ "require": {
+ "php": "^7.2",
+ "psr/log": "^1.0.1"
+ },
+ "provide": {
+ "psr/log-implementation": "1.0.0"
+ },
+ "require-dev": {
+ "aws/aws-sdk-php": "^2.4.9 || ^3.0",
+ "doctrine/couchdb": "~1.0@dev",
"elasticsearch/elasticsearch": "^6.0",
"graylog2/gelf-php": "^1.4.2",
"jakub-onderka/php-parallel-lint": "^0.9",
@@ -732,9 +690,9 @@
}
]
},
- "require": {
- "php": ">=5.3.2"
- },
+ "require": {
+ "php": ">=5.3.2"
+ },
"require-dev": {
"phpunit/phpunit": "~4.0|~5.0"
},
@@ -1192,35 +1150,86 @@
"license": [
"MIT"
],
- "authors": [
- {
- "name": "Ralph Khattar",
- "email": "ralph.khattar@gmail.com"
- }
- ],
- "description": "A polyfill for getallheaders.",
- "time": "2019-03-08T08:55:37+00:00"
+ "authors": [
+ {
+ "name": "Ralph Khattar",
+ "email": "ralph.khattar@gmail.com"
+ }
+ ],
+ "description": "A polyfill for getallheaders.",
+ "time": "2019-03-08T08:55:37+00:00"
},
+ {
+ "name": "samdark/sitemap",
+ "version": "2.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/samdark/sitemap.git",
+ "reference": "dcfef471e79abca9d3c4d83dd6a7861cec1a596a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/samdark/sitemap/zipball/dcfef471e79abca9d3c4d83dd6a7861cec1a596a",
+ "reference": "dcfef471e79abca9d3c4d83dd6a7861cec1a596a",
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
+ },
+ "require": {
+ "ext-xmlwriter": "*",
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~4.4"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "samdark\\sitemap\\": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
{
- "name": "swiftmailer/swiftmailer",
- "version": "v6.2.1",
- "source": {
- "type": "git",
- "url": "https://github.com/swiftmailer/swiftmailer.git",
- "reference": "5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a"
- },
- "dist": {
- "type": "zip",
- "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a",
- "reference": "5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a",
- "shasum": "",
- "mirrors": [
- {
- "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
- "preferred": true
- }
- ]
- },
+ "name": "Alexander Makarov",
+ "email": "sam@rmcreative.ru",
+ "homepage": "http://rmcreative.ru/"
+ }
+ ],
+ "description": "Sitemap and sitemap index builder",
+ "homepage": "https://github.com/samdark/sitemap",
+ "keywords": [
+ "Sitemap"
+ ],
+ "time": "2019-03-27T09:31:20+00:00"
+ },
+ {
+ "name": "swiftmailer/swiftmailer",
+ "version": "v6.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/swiftmailer/swiftmailer.git",
+ "reference": "5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a",
+ "reference": "5397cd05b0a0f7937c47b0adcb4c60e5ab936b6a",
+ "shasum": "",
+ "mirrors": [
+ {
+ "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
+ "preferred": true
+ }
+ ]
+ },
"require": {
"egulias/email-validator": "~2.0",
"php": ">=7.0.0",
@@ -1929,9 +1938,9 @@
}
]
},
- "require": {
- "workerman/workerman": ">=3.1.8"
- },
+ "require": {
+ "workerman/workerman": ">=3.1.8"
+ },
"type": "library",
"autoload": {
"psr-4": {
@@ -2012,12 +2021,12 @@
"autoload": {
"psr-4": {
"Workerman\\": "./"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
"authors": [
{
"name": "walkor",
@@ -2074,16 +2083,16 @@
}
],
"description": "ip2region扩展包",
- "keywords": [
- "Ip2Region"
- ],
- "time": "2019-08-18T14:57:02+00:00"
- },
- {
- "name": "yansongda/pay",
- "version": "v2.8.6",
- "source": {
- "type": "git",
+ "keywords": [
+ "Ip2Region"
+ ],
+ "time": "2019-08-18T14:57:02+00:00"
+ },
+ {
+ "name": "yansongda/pay",
+ "version": "v2.8.6",
+ "source": {
+ "type": "git",
"url": "https://github.com/yansongda/pay.git",
"reference": "841999b65f97466ed1b405c52400c0c73aeaa3b5"
},
@@ -2109,34 +2118,34 @@
"symfony/http-foundation": "^4.0",
"yansongda/supports": "^2.0"
},
- "require-dev": {
- "mockery/mockery": "^1.2",
- "phpunit/phpunit": "^7.5"
- },
- "type": "library",
- "autoload": {
- "psr-4": {
- "Yansongda\\Pay\\": "src"
- }
- },
- "notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "yansongda",
- "email": "me@yansongda.cn"
- }
- ],
- "description": "专注 Alipay 和 WeChat 的支付扩展包",
- "keywords": [
- "alipay",
- "pay",
- "wechat"
- ],
- "time": "2019-09-21T15:05:57+00:00"
- },
+ "require-dev": {
+ "mockery/mockery": "^1.2",
+ "phpunit/phpunit": "^7.5"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Yansongda\\Pay\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "yansongda",
+ "email": "me@yansongda.cn"
+ }
+ ],
+ "description": "专注 Alipay 和 WeChat 的支付扩展包",
+ "keywords": [
+ "alipay",
+ "pay",
+ "wechat"
+ ],
+ "time": "2019-09-21T15:05:57+00:00"
+ },
{
"name": "yansongda/supports",
"version": "v2.1.3",
@@ -2177,16 +2186,16 @@
}
},
"notification-url": "https://packagist.org/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
- "name": "yansongda",
- "email": "me@yansongda.cn"
- }
- ],
- "description": "common components",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "yansongda",
+ "email": "me@yansongda.cn"
+ }
+ ],
+ "description": "common components",
"keywords": [
"Guzzle",
"array",
@@ -2442,16 +2451,16 @@
"name": "CakePHP Community",
"homepage": "https://github.com/cakephp/cache/graphs/contributors"
}
- ],
- "description": "Easy to use Caching library with support for multiple caching backends",
- "homepage": "https://cakephp.org",
- "keywords": [
- "cache",
- "caching",
- "cakephp"
- ],
- "time": "2019-11-20T00:00:46+00:00"
- },
+ ],
+ "description": "Easy to use Caching library with support for multiple caching backends",
+ "homepage": "https://cakephp.org",
+ "keywords": [
+ "cache",
+ "caching",
+ "cakephp"
+ ],
+ "time": "2019-11-20T00:00:46+00:00"
+ },
{
"name": "cakephp/collection",
"version": "3.8.7",
@@ -2752,16 +2761,16 @@
"type": "library",
"autoload": {
"psr-4": {
- "Cake\\Utility\\": "."
+ "Cake\\Utility\\": "."
},
- "files": [
- "bootstrap.php"
- ]
+ "files": [
+ "bootstrap.php"
+ ]
},
- "notification-url": "https://packagist.jp/downloads/",
- "license": [
- "MIT"
- ],
+ "notification-url": "https://packagist.jp/downloads/",
+ "license": [
+ "MIT"
+ ],
"authors": [
{
"name": "CakePHP Community",
@@ -3158,16 +3167,16 @@
}
},
"autoload": {
- "psr-4": {
- "Psr\\Container\\": "src/"
- }
- },
- "notification-url": "https://packagist.jp/downloads/",
- "license": [
- "MIT"
- ],
- "authors": [
- {
+ "psr-4": {
+ "Psr\\Container\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.jp/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
"name": "PHP-FIG",
"homepage": "http://www.php-fig.org/"
}
@@ -3755,16 +3764,16 @@
"license": [
"MIT"
],
- "authors": [
- {
- "name": "Nicolas Grekas",
- "email": "p@tchwork.com"
- },
- {
- "name": "Symfony Community",
- "homepage": "https://symfony.com/contributors"
- }
- ],
+ "authors": [
+ {
+ "name": "Nicolas Grekas",
+ "email": "p@tchwork.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
"description": "Generic abstractions related to writing services",
"homepage": "https://symfony.com",
"keywords": [
@@ -3889,23 +3898,23 @@
"require-dev": {
"symfony/console": "^4.4|^5.0"
},
- "suggest": {
- "symfony/console": "For validating YAML files using the lint command"
- },
- "type": "library",
- "extra": {
- "branch-alias": {
- "dev-master": "5.0-dev"
- }
- },
- "autoload": {
- "psr-4": {
- "Symfony\\Component\\Yaml\\": ""
- },
- "exclude-from-classmap": [
- "/Tests/"
- ]
- },
+ "suggest": {
+ "symfony/console": "For validating YAML files using the lint command"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.0-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Component\\Yaml\\": ""
+ },
+ "exclude-from-classmap": [
+ "/Tests/"
+ ]
+ },
"notification-url": "https://packagist.jp/downloads/",
"license": [
"MIT"
@@ -3983,9 +3992,7 @@
],
"aliases": [],
"minimum-stability": "stable",
- "stability-flags": {
- "joyqi/hyper-down": 20
- },
+ "stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
diff --git a/public/static/admin/css/common.css b/public/static/admin/css/common.css
index f87b3389..e9c99a37 100644
--- a/public/static/admin/css/common.css
+++ b/public/static/admin/css/common.css
@@ -116,6 +116,18 @@
text-align: center;
}
+.kg-item-elip {
+ width: 400px;
+}
+
+.layui-form .kg-rating {
+ margin-bottom: 0;
+}
+
+.kg-rating .layui-rate {
+ padding: 5px 0 0 0;
+}
+
input.kg-priority {
width: 60px;
}
diff --git a/public/static/web/css/common.css b/public/static/web/css/common.css
index 251bec90..e26ea8b0 100644
--- a/public/static/web/css/common.css
+++ b/public/static/web/css/common.css
@@ -182,6 +182,31 @@ body {
margin-bottom: 15px;
}
+.topic-title {
+ margin-bottom: 30px;
+ padding-bottom: 15px;
+ border-bottom: 2px solid #e6e6e6;
+ text-align: center;
+ font-size: 18px;
+}
+
+.page-info {
+ padding: 20px 50px;
+ min-height: 500px;
+}
+
+.page-title {
+ margin-bottom: 30px;
+ padding-bottom: 15px;
+ border-bottom: 1px solid #e6e6e6;
+ text-align: center;
+ font-size: 18px;
+}
+
+.help-list li {
+ line-height: 30px;
+}
+
.index-wrap .layui-tab {
margin-bottom: 0;
}
@@ -307,31 +332,6 @@ body {
margin-bottom: 5px;
}
-.topic-title {
- margin-bottom: 30px;
- padding-bottom: 15px;
- border-bottom: 2px solid #e6e6e6;
- text-align: center;
- font-size: 18px;
-}
-
-.page-info {
- padding: 20px 50px;
- min-height: 500px;
-}
-
-.page-title {
- margin-bottom: 30px;
- padding-bottom: 15px;
- border-bottom: 1px solid #e6e6e6;
- text-align: center;
- font-size: 18px;
-}
-
-.help-list li {
- line-height: 30px;
-}
-
.course-list {
margin-bottom: 20px;
}
@@ -1426,11 +1426,7 @@ body {
text-align: center;
}
-.consult-table .question {
- width: 450px;
-}
-
-.consult-table .answer {
+.consult-table .item-elip {
width: 450px;
}
diff --git a/scheduler.php b/scheduler.php
index 7a2d538b..c4b0b922 100644
--- a/scheduler.php
+++ b/scheduler.php
@@ -43,13 +43,10 @@ $scheduler->php($script, $bin, ['--task' => 'unlock_user', '--action' => 'main']
$scheduler->php($script, $bin, ['--task' => 'revoke_vip', '--action' => 'main'])
->daily(3, 11);
-$scheduler->php($script, $bin, ['--task' => 'count_course', '--action' => 'main'])
+$scheduler->php($script, $bin, ['--task' => 'live_notice_provider', '--action' => 'main'])
->daily(3, 17);
-$scheduler->php($script, $bin, ['--task' => 'live_notice_provider', '--action' => 'main'])
+$scheduler->php($script, $bin, ['--task' => 'clean_token', '--action' => 'main'])
->daily(3, 23);
-$scheduler->php($script, $bin, ['--task' => 'clean_token', '--action' => 'main'])
- ->daily(3, 31);
-
$scheduler->run();
\ No newline at end of file
|