支付完成回调处理

This commit is contained in:
2022-09-15 17:09:09 +08:00
parent ee6d826334
commit 85fb0dc23d
2 changed files with 6 additions and 4 deletions

View File

@@ -7,4 +7,9 @@ use think\Model;
class Order extends Model
{
protected $autoWriteTimestamp = true;
public function paid(){
$this->status = 1;
$this->save();
}
}