mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -177,7 +177,7 @@ class OrderController extends Controller | |||||||
|         $gateway->setAppId(config('v2board.alipay_appid')); |         $gateway->setAppId(config('v2board.alipay_appid')); | ||||||
|         $gateway->setPrivateKey(config('v2board.alipay_privkey')); // 可以是路径,也可以是密钥内容 |         $gateway->setPrivateKey(config('v2board.alipay_privkey')); // 可以是路径,也可以是密钥内容 | ||||||
|         $gateway->setAlipayPublicKey(config('v2board.alipay_pubkey')); // 可以是路径,也可以是密钥内容 |         $gateway->setAlipayPublicKey(config('v2board.alipay_pubkey')); // 可以是路径,也可以是密钥内容 | ||||||
|         $gateway->setNotifyUrl(config('v2board.app_url', env('APP_URL')) . '/api/v1/guest/order/alipayNotify'); |         $gateway->setNotifyUrl(url('/api/v1/guest/order/alipayNotify')); | ||||||
|         $request = $gateway->purchase(); |         $request = $gateway->purchase(); | ||||||
|         $request->setBizContent([ |         $request->setBizContent([ | ||||||
|             'subject'      => config('v2board.app_name', 'V2Board') . ' - 订阅', |             'subject'      => config('v2board.app_name', 'V2Board') . ' - 订阅', | ||||||
| @@ -205,7 +205,7 @@ class OrderController extends Controller | |||||||
|             'currency' => 'hkd', |             'currency' => 'hkd', | ||||||
|             'type' => 'alipay', |             'type' => 'alipay', | ||||||
|             'redirect' => [ |             'redirect' => [ | ||||||
|                 'return_url' => config('v2board.app_url', env('APP_URL')) . '/api/v1/guest/order/stripeReturn' |                 'return_url' => url('/api/v1/guest/order/stripeReturn') | ||||||
|             ] |             ] | ||||||
|         ]); |         ]); | ||||||
|         if (!$source['redirect']['url']) { |         if (!$source['redirect']['url']) { | ||||||
| @@ -229,7 +229,7 @@ class OrderController extends Controller | |||||||
|             'currency' => 'hkd', |             'currency' => 'hkd', | ||||||
|             'type' => 'wechat', |             'type' => 'wechat', | ||||||
|             'redirect' => [ |             'redirect' => [ | ||||||
|                 'return_url' => config('v2board.app_url', env('APP_URL')) . '/api/v1/guest/order/stripeReturn' |                 'return_url' => url('/api/v1/guest/order/stripeReturn') | ||||||
|             ] |             ] | ||||||
|         ]); |         ]); | ||||||
|         if (!$source['wechat']['qr_code_url']) { |         if (!$source['wechat']['qr_code_url']) { | ||||||
|   | |||||||
| @@ -111,7 +111,7 @@ CREATE TABLE `v2_user` ( | |||||||
|   `u` bigint(20) NOT NULL DEFAULT '0', |   `u` bigint(20) NOT NULL DEFAULT '0', | ||||||
|   `d` bigint(20) NOT NULL DEFAULT '0', |   `d` bigint(20) NOT NULL DEFAULT '0', | ||||||
|   `transfer_enable` bigint(20) NOT NULL DEFAULT '0', |   `transfer_enable` bigint(20) NOT NULL DEFAULT '0', | ||||||
|   `enable` tinyint(1) NOT NULL DEFAULT '0', |   `enable` tinyint(1) NOT NULL DEFAULT '1', | ||||||
|   `banned` tinyint(1) NOT NULL DEFAULT '0', |   `banned` tinyint(1) NOT NULL DEFAULT '0', | ||||||
|   `is_admin` tinyint(1) NOT NULL DEFAULT '0', |   `is_admin` tinyint(1) NOT NULL DEFAULT '0', | ||||||
|   `last_login_at` int(11) NOT NULL, |   `last_login_at` int(11) NOT NULL, | ||||||
| @@ -132,4 +132,4 @@ CREATE TABLE `v2_user` ( | |||||||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||||||
|  |  | ||||||
|  |  | ||||||
| -- 2019-11-22 05:01:40 | -- 2019-11-23 14:25:15 | ||||||
		Reference in New Issue
	
	Block a user