作者 lihan
1 个管道 的构建 通过 耗费 0 秒

赠送积分模块

... ... @@ -221,9 +221,7 @@ class PayController extends HomeBaseController
];
if (Db::name('zj_order')->update($update)) {
//赠送先赠送一半积分逻辑
$this->integral();
$this->integral($oid);
echo "<xml><return_code><![CDATA[SUCCESS]]></return_code><return_msg><![CDATA[OK]]></return_msg></xml>";
exit();
}
... ... @@ -232,9 +230,9 @@ class PayController extends HomeBaseController
}
//赠送积分模块
private function integral()
public function integral()
{
$oid = 156;
$oid = 165;
//判断该订单是否属于赠送积分订单
$info = Db::name('zj_order')->field('step,cid,pay_type')->where(['id' => $oid])->find();
if ($info['cid'] == 2 && $info['step'] == 2) {
... ...