|
@@ -76,6 +76,9 @@ class AskController extends BaseController
|
|
|
if($blogger->status != 1){
|
|
|
return $this->fail(200016,[],'此答主没有经过认证');
|
|
|
}
|
|
|
+ if($blogger->ask_status != 1){
|
|
|
+ return $this->fail(200016,[],'此答主暂时不接受咨询');
|
|
|
+ }
|
|
|
|
|
|
//
|
|
|
$data = [
|
|
@@ -411,6 +414,10 @@ class AskController extends BaseController
|
|
|
DB::rollBack();
|
|
|
return $this->fail(200012);
|
|
|
}
|
|
|
+
|
|
|
+ //分钱给咨询者,扣除平台服务费及IOS渠道费
|
|
|
+ UserUtils::update_user_financial($order['user_id'], 104, $order['user_price'], '旁听收益'.$order['user_price']);
|
|
|
+
|
|
|
//直接修改订单状态,支付完成
|
|
|
$rs1 = DB::table('ask_sit_order')->where('id',$order_id)->update(['status'=>10,'paytime'=>time()]);
|
|
|
if(!$rs1){
|