|
@@ -64,8 +64,8 @@ class TestMemberCard extends TestCase
|
|
|
$card_no = $extra_info['input']['card_no'];
|
|
|
$card_type = mtopcard\topcard_type($extra_info['input']['card_type']);
|
|
|
|
|
|
- if(!$topcard->add($card_no,$card_type,$add_time)) {
|
|
|
- Log::record("{$card_no} 已经录入",Log::DEBUG);
|
|
|
+ if(!$topcard->get_card($card_no)) {
|
|
|
+ $topcard->add($card_no,$card_type,$add_time);
|
|
|
}
|
|
|
|
|
|
if(in_array($order_state,[ORDER_STATE_PAY, ORDER_STATE_SEND, ORDER_STATE_SUCCESS]))
|