作者 王智

修复生成订单号 失败

... ... @@ -8,6 +8,7 @@ use app\common\model\Version;
use Qiniu\Auth;
use think\Config;
use think\Hook;
//use EasyWeChat\Factory;
use EasyWeChat\Foundation\Application;
use think\Db;
... ... @@ -733,4 +734,10 @@ class Common extends Api
];
$this->success('成功', $data);
}
//定时任务
public function delNoPay()
{
Db::name('agreement')->where('createtime', '>', time() - 60)->where('pay', 0)->delete();
}
}
... ...
... ... @@ -347,6 +347,7 @@ class Index extends Api
'card_image' => $params['card_image'],
'status' => 0,
'refind_status' => 3,
'pay' => 0,
'createtime' => time(),
'updatetime' => time(),
'EXP_time' => time() + 86400 * 30
... ...