|
|
@@ -34,8 +34,13 @@ use think\facade\Log;
|
|
|
class DouYinController extends BaseApiController
|
|
|
{
|
|
|
|
|
|
- public array $notNeedLogin = ['testNotify','getClientToken','register','account','getAllGoods','getGoodsDetail','submitOrderNotify','payNotify'];
|
|
|
-
|
|
|
+ public array $notNeedLogin = ['testNotify','getClientToken','register','account','getAllGoods','getGoodsDetail','submitOrderNotify','payNotify','payTailNotify'];
|
|
|
+ public function testNotify()
|
|
|
+ {
|
|
|
+ $params = $this->request->post();
|
|
|
+ Log::info('testNotify'.formatLogData($params));
|
|
|
+ return $this->success();
|
|
|
+ }
|
|
|
/**
|
|
|
* 手机号注册
|
|
|
* @author liugc <466014217@qq.com>
|
|
|
@@ -99,6 +104,16 @@ class DouYinController extends BaseApiController
|
|
|
|
|
|
|
|
|
// ******************************** 列表详情 _商品 _订单 _退款
|
|
|
+ /*
|
|
|
+ * 商品审核结果回调
|
|
|
+ */
|
|
|
+ public function goodsNotify()
|
|
|
+ {
|
|
|
+ $params = $this->request->post();
|
|
|
+ Log::info('goodsNotify:'.formatLogData($params));
|
|
|
+ return $this->success();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 所有商品
|
|
|
* @return \think\response\Json
|
|
|
@@ -170,7 +185,7 @@ class DouYinController extends BaseApiController
|
|
|
$params = $this->request->post();
|
|
|
$params['user_id'] = $this->userId;
|
|
|
$params['user_info'] = $this->userInfo;
|
|
|
- $requestOrderData = DouYinService::getPluginCreateOrderData($params['goods_id']??'',$params['quantity']??1,$params['douyin_order_id']??'',$params);
|
|
|
+ $requestOrderData = DouYinService::getPluginCreateOrderData($params['goods_id']??'',$params['quantity']??1,$params['dy_order_id']??'',$params);
|
|
|
return $this->success('',$requestOrderData);
|
|
|
} catch (\Exception $e) {
|
|
|
return $this->fail($e->getMessage());
|