订阅详情续费下单链接补齐 require_subscription=1 并更新测试
This commit is contained in:
@@ -148,6 +148,7 @@
|
||||
'plan_id' => $subscription->plan_id,
|
||||
'site_subscription_id' => $subscription->id,
|
||||
'order_type' => 'renewal',
|
||||
'require_subscription' => '1',
|
||||
'quantity' => 1,
|
||||
'remark' => (string) config('saasshop.platform_orders.renewal_order_remark_prefix', '来自订阅:') . $subscription->subscription_no,
|
||||
// 保留 back:创建订单 -> 订单详情后可一键返回本订阅详情
|
||||
|
||||
@@ -62,6 +62,7 @@ class AdminSiteSubscriptionShowCreateRenewalOrderLinkContainsBackTest extends Te
|
||||
'plan_id' => $plan->id,
|
||||
'site_subscription_id' => $sub->id,
|
||||
'order_type' => 'renewal',
|
||||
'require_subscription' => '1',
|
||||
'quantity' => 1,
|
||||
'remark' => '来自订阅:' . $sub->subscription_no,
|
||||
'back' => '/admin/site-subscriptions/' . $sub->id,
|
||||
|
||||
@@ -62,6 +62,7 @@ class AdminSiteSubscriptionShowCreateRenewalOrderLinkTest extends TestCase
|
||||
$res->assertSee('plan_id=' . $plan->id, false);
|
||||
$res->assertSee('site_subscription_id=' . $sub->id, false);
|
||||
$res->assertSee('order_type=renewal', false);
|
||||
$res->assertSee('require_subscription=1', false);
|
||||
$res->assertSee('quantity=1', false);
|
||||
$res->assertSee('remark=', false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user