|
@@ -5,6 +5,7 @@ import com.fdkankan.pay.entity.StripeCustomer;
|
|
|
import com.fdkankan.pay.mapper.IStripeCustomerMapper;
|
|
|
import com.fdkankan.pay.service.IStripeCustomerService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
@@ -27,6 +28,9 @@ public class StripeCustomerServiceImpl extends ServiceImpl<IStripeCustomerMapper
|
|
|
|
|
|
@Override
|
|
|
public void saveByEmail(String customerEmail,String customer) {
|
|
|
+ if(StringUtils.isBlank(customerEmail) || StringUtils.isBlank(customer)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
StripeCustomer byUserName = this.getByUserName(customerEmail);
|
|
|
if(byUserName == null){
|
|
|
byUserName = new StripeCustomer();
|