fix: 添加路劲设置

This commit is contained in:
Gosowong 2023-05-24 09:38:14 +08:00
parent c7131979da
commit 9de5f02993
2 changed files with 2 additions and 2 deletions

View File

@ -332,7 +332,7 @@ class SystemConfig extends AuthController
if ($post['reward_integral'] < 0 || $post['reward_money'] < 0) return app('json')->fail(400558);
}
if (isset($post['order_shipping_open']) && $post['order_shipping_open'] == 1 && isset($post['order_shipping_url']) && $post['order_shipping_url'] !== "") {
if (isset($post['order_shipping_open']) && $post['order_shipping_open'] == 1 && isset($post['order_shipping_url'])) {
MiniOrderService::setMesJumpPathAndCheck($post['order_shipping_url']);
}
foreach ($post as $k => $v) {

View File

@ -181,7 +181,7 @@ class BaseOrder extends AbstractAPI
public function setMesJumpPath($path)
{
$params = [
'path' => '/pages/user/index'
'path' => $path
];
return $this->resultHandle($this->parseJSON('POST', [self::BASE_API . self::ORDER . 'set_msg_jump_path', json_encode($params)]));
}