GameTjkl10_Buy.php 600 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Models;
  3. class GameTjkl10_Buy extends BaseModel
  4. {
  5. public $num=3;//开奖号码个数
  6. protected $table="game_tjkl10_buy";
  7. public $timestamps = false;
  8. //撤单
  9. function Cancel($where){
  10. $res=$this->where($where)->where('status',0)->update(['delstatus'=>2]);
  11. if($res){
  12. return -5051262422;//作废失败
  13. }
  14. return 1;
  15. }
  16. function cancel_order($order_id){
  17. $res=$this->where('order_id',$order_id)->update(['delstatus'=>2]);
  18. if(!$res){
  19. return -7021021122;
  20. }
  21. return 1;
  22. }
  23. }