新版仿ok交易所-后端
C2C
zyy
2025-10-27 d94a5b9c4c4b7f64eae59b19be2bb5019786b865
trading-order-admin/src/main/java/com/yami/trading/admin/controller/c2c/C2cUserController.java
@@ -30,6 +30,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
@@ -63,6 +64,9 @@
    @Autowired
    SysparaService sysparaService;
    @Autowired
    private PasswordEncoder passwordEncoder;
    /**
     * 获取 承兑商 列表
     */
@@ -87,7 +91,7 @@
        for (Object o:page.getRecords()){
           Map m= (Map) o;
            m.put("head_img", awsS3OSSFileService.getUrl(m.get("head_img").toString()));
            m.put("head_img", Constants.IMAGES_HTTP+m.get("head_img").toString());
        }
        return Result.succeed(page);
    }
@@ -415,7 +419,7 @@
            }
        } else if ("1".equals(c2c_user_type)) {
            ///  后台承兑商
            party = userService.register(username_front, password_front, usercode_front,Integer.valueOf(type_front),false);
            party = userService.register(username_front, passwordEncoder.encode(password_front), usercode_front,Integer.valueOf(type_front),false);
            if (null == party) {
                throw new YamiShopBindException("后台承兑商:注册失败");
              }