|
@@ -432,13 +432,13 @@ class Dispatch extends Common
|
|
|
$res = $orderModel->insertGetId($data);
|
|
|
if($res) {
|
|
|
//冻结用户钻石
|
|
|
- $userWhere['id'] = $this->auth->id;
|
|
|
+ /*$userWhere['id'] = $this->auth->id;
|
|
|
$money = bcmul($authInfo["price"],$num);
|
|
|
$res1 = model('User')->where($userWhere)->setDec("jewel",$money);//用户扣减金额
|
|
|
$res2 = model('User')->where($userWhere)->setInc("frozen",$money);//用户冻结金额
|
|
|
if (!$res1 || !$res2) {
|
|
|
throw new Exception('用户扣减金额失败');
|
|
|
- }
|
|
|
+ }*/
|
|
|
\app\common\model\Message::addMessage($authInfo["user_id"],"派单通知","您的技能:".$skillInfo["name"]."有人下单啦,请注意查看!");
|
|
|
Db::commit();
|
|
|
$this->success('订单创建成功!',["order_no"=>$out_trade_no]);
|