Commit a91945ea authored by shiyu's avatar shiyu

手动发送短信

parent e9f2d859
...@@ -4,6 +4,7 @@ import com.wwdz.ch.core.api.OfficialAccountApi; ...@@ -4,6 +4,7 @@ import com.wwdz.ch.core.api.OfficialAccountApi;
import com.wwdz.ch.core.api.WxAppletApi; import com.wwdz.ch.core.api.WxAppletApi;
import com.wwdz.ch.core.entity.ConsignSaleSubscribeMsg; import com.wwdz.ch.core.entity.ConsignSaleSubscribeMsg;
import com.wwdz.ch.core.notify.AliSmsSender; import com.wwdz.ch.core.notify.AliSmsSender;
import com.wwdz.ch.core.util.PriceUtil;
import com.xxdxxs.utils.DateUtils; import com.xxdxxs.utils.DateUtils;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
...@@ -58,4 +59,13 @@ public class OfficialAccountApiTest { ...@@ -58,4 +59,13 @@ public class OfficialAccountApiTest {
String msg = "换藏小程序," + "测试专场" + "即将开始,请前往"+ url + "查看"; String msg = "换藏小程序," + "测试专场" + "即将开始,请前往"+ url + "查看";
aliSmsSender.sendSms(60652774, msg); aliSmsSender.sendSms(60652774, msg);
} }
@Test
public void sendSms() {
String url = wxAppletApi.getUrlLink("pages/saleAuctionDetail/index","itemId=32893616&shareRecordId=");
//发短信
String msg = "您已中拍商品'呱呱来财 ',成交价是6000元,如需购买请在一小时内完成付款,请前往"+ url + "查看";
aliSmsSender.sendSms("111", msg);
}
} }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment