setInc('now_money', $price); } /**减讲师余额 * @param $mer_id * @param $price * @return int|true * @throws \think\Exception */ public static function decMerchantNowMoney($mer_id, $price) { return self::where('id', $mer_id)->setDec('now_money', $price); } /**获取$mer_id * @param $uid * @return mixed */ public static function getMerId($uid) { return self::where(['uid' => $uid, 'status' => 1, 'is_del' => 0, 'estate' => 1])->value('id'); } }