1.抖音
This commit is contained in:
parent
b7d88c7e93
commit
60e3e84cb3
|
@ -304,6 +304,7 @@
|
||||||
<Compile Include="Config\OtherConfig.cs" />
|
<Compile Include="Config\OtherConfig.cs" />
|
||||||
<Compile Include="Config\ServerConfig.cs" />
|
<Compile Include="Config\ServerConfig.cs" />
|
||||||
<Compile Include="Config\SystemConfig.cs" />
|
<Compile Include="Config\SystemConfig.cs" />
|
||||||
|
<Compile Include="Cps\DouyinApi.cs" />
|
||||||
<Compile Include="Cps\DouyinApiV2.cs" />
|
<Compile Include="Cps\DouyinApiV2.cs" />
|
||||||
<Compile Include="Cps\douyin_form_login.cs">
|
<Compile Include="Cps\douyin_form_login.cs">
|
||||||
<SubType>Form</SubType>
|
<SubType>Form</SubType>
|
||||||
|
@ -556,6 +557,7 @@
|
||||||
<Compile Include="Tools\CloudApiHelper.cs" />
|
<Compile Include="Tools\CloudApiHelper.cs" />
|
||||||
<Compile Include="Tools\CloudBlack.cs" />
|
<Compile Include="Tools\CloudBlack.cs" />
|
||||||
<Compile Include="Tools\DouyinGoodsInfo.cs" />
|
<Compile Include="Tools\DouyinGoodsInfo.cs" />
|
||||||
|
<Compile Include="Tools\DYHelper.cs" />
|
||||||
<Compile Include="Tools\DYHelperV2.cs" />
|
<Compile Include="Tools\DYHelperV2.cs" />
|
||||||
<Compile Include="Tools\KSHelper.cs" />
|
<Compile Include="Tools\KSHelper.cs" />
|
||||||
<Compile Include="Tools\PointManageConfig.cs" />
|
<Compile Include="Tools\PointManageConfig.cs" />
|
||||||
|
|
|
@ -254,7 +254,7 @@ promotion_id = {promotion_id}");
|
||||||
groupid = promotion_id_tmp;
|
groupid = promotion_id_tmp;
|
||||||
var cps = CpsClient.Members.FirstOrDefault(f => f.online && f.cpstype == CpsType.抖音联盟);
|
var cps = CpsClient.Members.FirstOrDefault(f => f.online && f.cpstype == CpsType.抖音联盟);
|
||||||
if (cps == null) return string.Empty;
|
if (cps == null) return string.Empty;
|
||||||
string goodid = new DouyinApiV2(cps).GetPromotionId(groupid, out promotion_id);
|
string goodid = new DouyinApi(cps).GetPromotionId(groupid, out promotion_id);
|
||||||
if (!string.IsNullOrWhiteSpace(goodid))
|
if (!string.IsNullOrWhiteSpace(goodid))
|
||||||
{
|
{
|
||||||
return goodid;
|
return goodid;
|
||||||
|
|
|
@ -20,18 +20,6 @@ using System.Web;
|
||||||
|
|
||||||
namespace Api.Framework.Cps
|
namespace Api.Framework.Cps
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// 抖音订单状态
|
|
||||||
/// </summary>
|
|
||||||
public enum DouyinOrderStatus : int
|
|
||||||
{
|
|
||||||
全部订单 = 1,
|
|
||||||
SETTLE = 2,//结算
|
|
||||||
PAY_SUCC = 3,//订单付款
|
|
||||||
REFUND = 5,//退款/失效
|
|
||||||
订单维权中 = 6,
|
|
||||||
CONFIRM = 7,//确定收货
|
|
||||||
}
|
|
||||||
public class DouyinApiV2 : BaseCpsApi
|
public class DouyinApiV2 : BaseCpsApi
|
||||||
{
|
{
|
||||||
internal DouyinApiV2(fl_cps_member member) : base(member) { }
|
internal DouyinApiV2(fl_cps_member member) : base(member) { }
|
||||||
|
|
|
@ -158,7 +158,7 @@ Regex.IsMatch(mess, @"\[语音=(.+?)\]")
|
||||||
var reg = Regex.Match(mess, "([︽#]{2}[A-Za-z0-9]{11,14}[︽#]{2})");
|
var reg = Regex.Match(mess, "([︽#]{2}[A-Za-z0-9]{11,14}[︽#]{2})");
|
||||||
if (reg.Success)
|
if (reg.Success)
|
||||||
{
|
{
|
||||||
return DouyinApiV2.(reg.Groups[1].Value, out promotion_id, out title);
|
return DouyinApi.AnalysisCmdToGoodsUrl(reg.Groups[1].Value, out promotion_id, out title);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
|
|
Loading…
Reference in New Issue