|
|
@@ -13,6 +13,7 @@ import com.fs.common.param.LoginParam;
|
|
|
import com.fs.common.utils.PatternUtils;
|
|
|
import com.fs.common.utils.SecurityUtils;
|
|
|
import com.fs.common.utils.StringUtils;
|
|
|
+
|
|
|
import com.fs.company.domain.Company;
|
|
|
import com.fs.company.domain.CompanyUser;
|
|
|
import com.fs.company.param.CompanyUserCodeParam;
|
|
|
@@ -222,4 +223,33 @@ public class QwUserController extends BaseController {
|
|
|
return R.error("登录异常:"+e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
+//
|
|
|
+// @GetMapping("/getOpenidForRedPacket")
|
|
|
+// @ApiOperation("侧边栏发红包-获取外部联系人的openid(优先从本地映射表获取)")
|
|
|
+// public R getOpenidForRedPacket(@ApiParam(value = "外部联系人id", required = true) @RequestParam Long qwExternalContactId) {
|
|
|
+// String openid = qwExternalContactService.getOpenidByExternalContactId(qwExternalContactId);
|
|
|
+// if (StringUtils.isEmpty(openid)) {
|
|
|
+// return R.error("获取openid失败,该用户可能未关注公众号");
|
|
|
+// }
|
|
|
+// return R.ok().put("data", openid);
|
|
|
+// }
|
|
|
+//
|
|
|
+// @PostMapping("/sendRedPacket")
|
|
|
+// @ApiOperation("侧边栏发红包-给外部联系人发送企业红包(默认0.3元)")
|
|
|
+// public R sendRedPacket(@RequestBody SendRedPacketRequest request) {
|
|
|
+// Integer amount = request.getAmount() != null ? request.getAmount() : 30;
|
|
|
+// String wishing = request.getWishing() != null ? request.getWishing() : "";
|
|
|
+// String actName = request.getActName() != null ? request.getActName() : "";
|
|
|
+// String remark = request.getRemark() != null ? request.getRemark() : "";
|
|
|
+// if (!request.getQwExternalContactId().equals(6703893L)){
|
|
|
+// return R.ok();
|
|
|
+// }
|
|
|
+// SidebarRedPacketService.RedPacketSendResult result =
|
|
|
+// sidebarRedPacketService.sendSidebarRedPacket(request.getQwExternalContactId(), amount, wishing, actName, remark);
|
|
|
+// if (result.isSuccess()) {
|
|
|
+// return R.ok("发送成功").put("mchBillno", result.getMchBillno()).put("sendListid", result.getSendListid());
|
|
|
+// }
|
|
|
+// return R.error(result.getErrorMsg());
|
|
|
+// }
|
|
|
+
|
|
|
}
|