diff --git a/application/index/view/default/buy/index.html b/application/index/view/default/buy/index.html
index bf73fba2e..fa2f6a2fc 100755
--- a/application/index/view/default/buy/index.html
+++ b/application/index/view/default/buy/index.html
@@ -571,12 +571,7 @@ function BuySubmitBack(e)
if(e.code == 0)
{
$.AMUI.progress.done();
- if($(window).width() < 640)
- {
- PromptBottom(e.msg, 'success', null, 50);
- } else {
- PromptCenter(e.msg, 'success');
- }
+ Prompt(e.msg, 'success');
setTimeout(function()
{
window.location.href = e.data.jump_url;
@@ -584,12 +579,7 @@ function BuySubmitBack(e)
} else {
$('form.form-validation').find('button[type="submit"]').button('reset');
$.AMUI.progress.done();
- if($(window).width() < 640)
- {
- PromptBottom(e.msg, null, null, 50);
- } else {
- PromptCenter(e.msg);
- }
+ Prompt(e.msg);
}
}
\ No newline at end of file
diff --git a/application/index/view/default/index/index.html b/application/index/view/default/index/index.html
index 609002114..fb89164d3 100755
--- a/application/index/view/default/index/index.html
+++ b/application/index/view/default/index/index.html
@@ -88,10 +88,10 @@
{{if !empty($article_list)}}
-
新闻头条
+
新闻头条
{{foreach $article_list as $article}}
- -
+
-
{{if isset($article['article_category_name'])}}
[
{{$article.article_category_name}}
]
diff --git a/application/service/ArticleService.php b/application/service/ArticleService.php
index 40113d7c3..f5be4ba6b 100755
--- a/application/service/ArticleService.php
+++ b/application/service/ArticleService.php
@@ -168,16 +168,16 @@ class ArticleService
}
// 编辑器内容
- $content = isset($params['content']) ? htmlspecialchars_decode($params['content']) : '';
+ $content = empty($params['content']) ? '' : ResourcesService::ContentStaticReplace(htmlspecialchars_decode($params['content']), 'add');
// 数据
- $images = ResourcesService::RichTextMatchContentImage($content, 'article');
+ $images = ResourcesService::RichTextMatchContentAttachment($content, 'article');
$data = [
'title' => $params['title'],
'title_color' => empty($params['title_color']) ? '' : $params['title_color'],
'article_category_id' => intval($params['article_category_id']),
'jump_url' => empty($params['jump_url']) ? '' : $params['jump_url'],
- 'content' => ResourcesService::ContentStaticReplace($content, 'add'),
+ 'content' => $content,
'images' => empty($images) ? '' : json_encode($images),
'images_count' => count($images),
'is_enable' => isset($params['is_enable']) ? intval($params['is_enable']) : 0,
diff --git a/application/service/CustomViewService.php b/application/service/CustomViewService.php
index d7da17c17..b229e48cf 100755
--- a/application/service/CustomViewService.php
+++ b/application/service/CustomViewService.php
@@ -146,13 +146,13 @@ class CustomViewService
}
// 编辑器内容
- $content = isset($params['content']) ? htmlspecialchars_decode($params['content']) : '';
+ $content = empty($params['content']) ? '' : ResourcesService::ContentStaticReplace(htmlspecialchars_decode($params['content']), 'add');
// 数据
- $images = ResourcesService::RichTextMatchContentImage($content, 'customview');
+ $images = ResourcesService::RichTextMatchContentAttachment($content, 'customview');
$data = [
'title' => $params['title'],
- 'content' => ResourcesService::ContentStaticReplace($content, 'add'),
+ 'content' => $content,
'images' => empty($images) ? '' : json_encode($images),
'images_count' => count($images),
'is_enable' => isset($params['is_enable']) ? intval($params['is_enable']) : 0,
diff --git a/application/service/OrderService.php b/application/service/OrderService.php
index 1f6476f44..2b235cedf 100755
--- a/application/service/OrderService.php
+++ b/application/service/OrderService.php
@@ -274,6 +274,10 @@ class OrderService
// 支付模块处理数据
'data' => $ret['data'],
+
+ // 支付日志id
+ 'order_id' => $pay_log['data']['id'],
+ 'order_no' => $pay_log['data']['log_no'],
];
// 是否线下支付
diff --git a/application/service/ResourcesService.php b/application/service/ResourcesService.php
index 20bd6134c..2529743fb 100755
--- a/application/service/ResourcesService.php
+++ b/application/service/ResourcesService.php
@@ -570,14 +570,15 @@ class ResourcesService
* @version 1.0.0
* @date 2020-06-16
* @desc description
- * @param [string] $content [内容]
- * @param [string] $type [模块名称]
+ * @param [string] $content [内容]
+ * @param [string] $business [业务模块名称]
+ * @param [string] $type [附件类型(images 图片, file 文件, video 视频)]
*/
- public static function RichTextMatchContentImage($content, $type)
+ public static function RichTextMatchContentAttachment($content, $business, $type = 'images')
{
if(!empty($content))
{
- $pattern = '//';
+ $pattern = '//';
preg_match_all($pattern, self::AttachmentPathHandle($content), $match);
return empty($match[1]) ? [] : $match[1];
}
diff --git a/application/service/ToutiaoService.php b/application/service/ToutiaoService.php
index b76e71c04..b9a51d26c 100644
--- a/application/service/ToutiaoService.php
+++ b/application/service/ToutiaoService.php
@@ -11,7 +11,6 @@
namespace app\service;
use think\Db;
-use app\service\PaymentService;
use app\service\OrderService;
/**
@@ -56,12 +55,12 @@ class ToutiaoService
}
// 获取订单信息
- $where = ['id'=>intval($params['id']), 'user_id' => $params['user']['id']];
- $order = Db::name('Order')->where($where)->find();
-
- // 支付方式
- $payment_id = empty($params['payment_id']) ? $order['payment_id'] : intval($params['payment_id']);
- $payment = PaymentService::PaymentList(['where'=>['id'=>$payment_id]]);
+ $where = ['id'=>$ret['data']['order_id'], 'user_id'=>$params['user']['id']];
+ $pay_log = Db::name('PayLog')->where($where)->find();
+ if(empty($pay_log))
+ {
+ return DataReturn('订单支付日志有误', -1);
+ }
// 头条需要的订单信息
$order_info = [
@@ -73,12 +72,12 @@ class ToutiaoService
'trade_type' => 'H5',
'product_code' => 'pay',
'payment_type' => 'direct',
- 'out_order_no' => $order['order_no'].GetNumberCode(6),
+ 'out_order_no' => $pay_log['log_no'],
'uid' => md5($params['user']['id']),
- 'total_amount' => $order['total_price']*100,
+ 'total_amount' => $pay_log['total_price']*100,
'currency' => 'CNY',
'subject' => '订单支付',
- 'body' => $order['order_no'],
+ 'body' => $pay_log['log_no'],
'trade_time' => time(),
'valid_time' => intval(MyC('common_order_close_limit_time', 30, true))*60,
'notify_url' => __MY_URL__,
@@ -86,7 +85,7 @@ class ToutiaoService
// 支付方式
$service = 1;
- switch($payment[0]['payment'])
+ switch($pay_log['payment'])
{
// 微信
case 'Weixin' :
diff --git a/application/tags.php b/application/tags.php
index 96eb8cd32..7fb4b4ce8 100755
--- a/application/tags.php
+++ b/application/tags.php
@@ -32,21 +32,5 @@ return array (
'log_write' =>
array (
),
- 'plugins_css' =>
- array (
- 0 => 'app\\plugins\\share\\Hook',
- ),
- 'plugins_js' =>
- array (
- 0 => 'app\\plugins\\share\\Hook',
- ),
- 'plugins_view_common_bottom' =>
- array (
- 0 => 'app\\plugins\\share\\Hook',
- ),
- 'plugins_view_goods_detail_photo_bottom' =>
- array (
- 0 => 'app\\plugins\\share\\Hook',
- ),
);
?>
\ No newline at end of file
diff --git a/config/app.php b/config/app.php
index 9ecec6f45..2912f4b2d 100755
--- a/config/app.php
+++ b/config/app.php
@@ -19,7 +19,7 @@ return [
// 应用地址
'app_host' => '',
// 应用调试模式
- 'app_debug' => false,
+ 'app_debug' => true,
// 应用Trace
'app_trace' => false,
// 是否支持多模块
diff --git a/public/static/admin/default/css/common.css b/public/static/admin/default/css/common.css
index 16954a261..d3b6eb4d0 100755
--- a/public/static/admin/default/css/common.css
+++ b/public/static/admin/default/css/common.css
@@ -25,7 +25,6 @@ time, mark, audio, video {
.w100 {width:100%;}
.fw-100 {font-weight:100;}
.fw-700 {font-weight:700;}
-#common-prompt {position:fixed;top:0;left:0;right:0;text-align:center;margin-top:0;padding:5px;font-size:14px;z-index:10000;}
.am-popover { border-radius:2px !important; }
.am-popover * {font-size: 12px;}
.am-icon-trash-o:before {width:12px !important;}
diff --git a/public/static/common/lib/ueditor/dialogs/map/map.html b/public/static/common/lib/ueditor/dialogs/map/map.html
index 54dca5544..27e264dc9 100755
--- a/public/static/common/lib/ueditor/dialogs/map/map.html
+++ b/public/static/common/lib/ueditor/dialogs/map/map.html
@@ -4,7 +4,7 @@
-
+