|
@@ -4,6 +4,7 @@ import java.net.InetAddress;
|
|
|
import java.net.UnknownHostException;
|
|
|
import java.util.regex.Pattern;
|
|
|
|
|
|
+import com.iamberry.wechat.tools.NameUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -69,7 +70,7 @@ public class PayServiceImpl implements PayService {
|
|
|
return payResult;
|
|
|
}
|
|
|
Object object = wxPayUtil.getPackage(openid, orderId, money,
|
|
|
- ip, reqPayGoodsName, wxPayUtil.appid, backUrl);
|
|
|
+ ip, reqPayGoodsName, NameUtils.appId, backUrl);
|
|
|
if (object.getClass() == String.class) {
|
|
|
payResult.setPaySuccess(true);
|
|
|
payResult.setPayData(object.toString());
|