|
|
@@ -83,15 +83,13 @@ class Synthesis extends Api
|
|
|
|
|
|
Db::startTrans();
|
|
|
try {
|
|
|
-
|
|
|
+
|
|
|
// 合成订单
|
|
|
$productOrder->setSynthesisOrder($synthesis, $productList, $num, $this->auth->id);
|
|
|
|
|
|
// 添加新订单
|
|
|
- $result = WelfareLoginc::setUserWelfareLos($this->auth->id, $synthesis->product_id, $num, time(), $this->lan, $productOrder::Synthesi);
|
|
|
-
|
|
|
- //添加茶数量
|
|
|
- if($result['price'] > config('min_rwa_price')) $userModel::updateForRwaNum($this->auth->id, $this->auth->parent_id, $num, '+');
|
|
|
+ //$result = WelfareLoginc::setUserWelfareLos($this->auth->id, $synthesis->product_id, $num, time(), $this->lan, $productOrder::Synthesi);
|
|
|
+ WelfareLoginc::setUserProductOrder($num, 0, $synthesis->id, 0, $synthesis->product_id, $this->auth->id, $productOrder::Synthesi);
|
|
|
|
|
|
$synthesis->num += $num;
|
|
|
$synthesis->save();
|