|
|
@@ -39,7 +39,7 @@ class OrderRepository
|
|
|
$openid = WechatUser::getOpenId($orderInfo['uid']);
|
|
|
$bodyContent = StoreOrder::getProductTitle($orderInfo['cart_id']);
|
|
|
$site_name = sys_config('site_name');
|
|
|
- if (!$bodyContent && !$site_name) exception('支付参数缺少:请前往后台设置->系统设置-> 填写 网站名称');
|
|
|
+ if (!$bodyContent && !$site_name) exception('缺少支付参数');
|
|
|
return MiniProgramService::jsPay($openid, $orderInfo['order_id'], $orderInfo['pay_price'], 'product', StoreOrder::getSubstrUTf8($site_name . ' - ' . $bodyContent, 30));
|
|
|
}
|
|
|
|
|
|
@@ -66,7 +66,7 @@ class OrderRepository
|
|
|
$openid = WechatUser::getOpenId($porderInfo['uid']);
|
|
|
$bodyContent = StoreOrderBatch::getProductTitleBatch($subOrders);
|
|
|
$site_name = sys_config('site_name');
|
|
|
- if (!$bodyContent && !$site_name) exception('支付参数缺少:请前往后台设置->系统设置-> 填写 网站名称');
|
|
|
+ if (!$bodyContent && !$site_name) exception('缺少支付参数');
|
|
|
return MiniProgramService::jsPay($openid, $porderInfo['porder_id'], $fieldValues['pay_price'], 'product', StoreOrder::getSubstrUTf8($site_name . ' - ' . $bodyContent, 30));
|
|
|
}
|
|
|
|
|
|
@@ -91,7 +91,7 @@ class OrderRepository
|
|
|
$openid = WechatUser::uidToOpenid($orderInfo['uid'], 'openid');
|
|
|
$bodyContent = StoreOrder::getProductTitle($orderInfo['cart_id']);
|
|
|
$site_name = sys_config('site_name');
|
|
|
- if (!$bodyContent && !$site_name) exception('支付参数缺少:请前往后台设置->系统设置-> 填写 网站名称');
|
|
|
+ if (!$bodyContent && !$site_name) exception('缺少支付参数');
|
|
|
return WechatService::jsPay($openid, $orderInfo['porder_id'], $orderInfo['total_price'], 'product', StoreOrder::getSubstrUTf8($site_name . ' - ' . $bodyContent, 30));
|
|
|
}
|
|
|
|
|
|
@@ -119,7 +119,7 @@ class OrderRepository
|
|
|
$openid = WechatUser::uidToOpenid($porderInfo['uid'], 'openid');
|
|
|
$bodyContent = StoreOrderBatch::getProductTitleBatch($subOrders);
|
|
|
$site_name = sys_config('site_name');
|
|
|
- if (!$bodyContent && !$site_name) exception('支付参数缺少:请前往后台设置->系统设置-> 填写 网站名称');
|
|
|
+ if (!$bodyContent && !$site_name) exception('缺少支付参数');
|
|
|
return WechatService::jsPay($openid, $porderInfo['porder_id'], $porderInfo['total_price'], 'product', StoreOrder::getSubstrUTf8($site_name . ' - ' . $bodyContent, 30));
|
|
|
}
|
|
|
|
|
|
@@ -156,7 +156,7 @@ class OrderRepository
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
- public static function h5PayBatch($porderId, $field = 'order_id')
|
|
|
+ public static function h5PayBatch($porderId, $field = 'porder_id')
|
|
|
{
|
|
|
if (is_string($porderId))
|
|
|
$porderInfo = StoreOrderBatch::where($field, $porderId)->find();
|
|
|
@@ -208,7 +208,7 @@ class OrderRepository
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
- public static function wxAppPayBatch($porderId, $field = 'order_id')
|
|
|
+ public static function wxAppPayBatch($porderId, $field = 'porder_id')
|
|
|
{
|
|
|
if (is_string($porderId))
|
|
|
$porderInfo = StoreOrderBatch::where($field, $porderId)->find();
|