main
parent
d2b700fc82
commit
623e8bf8e1
|
|
@ -417,6 +417,19 @@ public class PayController extends BaseController
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value = "/iosPay")
|
||||||
|
public AjaxResult iosPay(@RequestBody IosPayArg iosPayArg){
|
||||||
|
if (iosPayArg.getUserId() == null || iosPayArg.getLevel() == null) {
|
||||||
|
return AjaxResult.error(2001,"请检查参数!");
|
||||||
|
}
|
||||||
|
AppOrder appOrder = new AppOrder();
|
||||||
|
appOrder.setId(0l);
|
||||||
|
appOrder.setLevel(iosPayArg.getLevel());
|
||||||
|
appOrder.setUserId(iosPayArg.getUserId());
|
||||||
|
updateUser(appOrder);
|
||||||
|
return AjaxResult.success("success");
|
||||||
|
}
|
||||||
|
|
||||||
public void updateUser(AppOrder appOrder){
|
public void updateUser(AppOrder appOrder){
|
||||||
// 修改用户信息
|
// 修改用户信息
|
||||||
AppUser appUser = appUserMapper.selectAppUserById(appOrder.getUserId());
|
AppUser appUser = appUserMapper.selectAppUserById(appOrder.getUserId());
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,34 @@
|
||||||
|
package com.ruoyi.app.domain;
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.web.domain.BaseEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 订单对象 app_order
|
||||||
|
*
|
||||||
|
* @author wyh
|
||||||
|
* @date 2024-04-25
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class IosPayArg extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
@Excel(name = "支付天数")
|
||||||
|
private int day;
|
||||||
|
|
||||||
|
@Excel(name = "支付类型: 1微信2支付宝3兑换码")
|
||||||
|
private int paySoure;
|
||||||
|
|
||||||
|
/** 支付金额 */
|
||||||
|
@Excel(name = "支付金额")
|
||||||
|
private String price;
|
||||||
|
|
||||||
|
@Excel(name = "会员等级,1-7天,2-一个月,3-一年")
|
||||||
|
private Integer level;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue